From 42efe019770d37ca57a9ef8faad391dfd2ae3d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Mon, 5 Dec 2022 15:49:17 +0100 Subject: [PATCH] Add support for removing the initial state (#264) * Add support for removing the initial state * Update Studio * Update Studio * Update Studio * Make it possible to move a state to the root * Fix an issue with reparenting * Update Studio * Update Studio --- .../bundled-editor/assets/index.6be67cf0.js | 1037 ----------------- .../bundled-editor/assets/index.93e42c6d.js | 1037 +++++++++++++++++ .../client/bundled-editor/index.html | 2 +- .../src/MachineExtractResult.ts | 28 +- .../modifications/rename_state.test.ts | 1 - .../modifications/reparent_state.test.ts | 74 +- .../modifications/set_initial_state.test.ts | 66 ++ 7 files changed, 1196 insertions(+), 1049 deletions(-) delete mode 100644 apps/extension/client/bundled-editor/assets/index.6be67cf0.js create mode 100644 apps/extension/client/bundled-editor/assets/index.93e42c6d.js diff --git a/apps/extension/client/bundled-editor/assets/index.6be67cf0.js b/apps/extension/client/bundled-editor/assets/index.6be67cf0.js deleted file mode 100644 index 429d18f3..00000000 --- a/apps/extension/client/bundled-editor/assets/index.6be67cf0.js +++ /dev/null @@ -1,1037 +0,0 @@ -var h2n=Object.defineProperty;var p2n=(n,r,c)=>r in n?h2n(n,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[r]=c;var Yu=(n,r,c)=>(p2n(n,typeof r!="symbol"?r+"":r,c),c);function g2n(n,r){for(var c=0;cu[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function c(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerpolicy&&(p.referrerPolicy=d.referrerpolicy),d.crossorigin==="use-credentials"?p.credentials="include":d.crossorigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function u(d){if(d.ep)return;d.ep=!0;const p=c(d);fetch(d.href,p)}})();var KE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lue(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var PS={exports:{}},Mb={},U={exports:{}},sa={};/** - * @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 qq=Symbol.for("react.element"),b2n=Symbol.for("react.portal"),m2n=Symbol.for("react.fragment"),v2n=Symbol.for("react.strict_mode"),y2n=Symbol.for("react.profiler"),w2n=Symbol.for("react.provider"),x2n=Symbol.for("react.context"),S2n=Symbol.for("react.forward_ref"),E2n=Symbol.for("react.suspense"),k2n=Symbol.for("react.memo"),C2n=Symbol.for("react.lazy"),bkt=Symbol.iterator;function I2n(n){return n===null||typeof n!="object"?null:(n=bkt&&n[bkt]||n["@@iterator"],typeof n=="function"?n:null)}var SPt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EPt=Object.assign,kPt={};function KD(n,r,c){this.props=n,this.context=r,this.refs=kPt,this.updater=c||SPt}KD.prototype.isReactComponent={};KD.prototype.setState=function(n,r){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,r,"setState")};KD.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function CPt(){}CPt.prototype=KD.prototype;function VOe(n,r,c){this.props=n,this.context=r,this.refs=kPt,this.updater=c||SPt}var UOe=VOe.prototype=new CPt;UOe.constructor=VOe;EPt(UOe,KD.prototype);UOe.isPureReactComponent=!0;var mkt=Array.isArray,IPt=Object.prototype.hasOwnProperty,HOe={current:null},TPt={key:!0,ref:!0,__self:!0,__source:!0};function APt(n,r,c){var u,d={},p=null,m=null;if(r!=null)for(u in r.ref!==void 0&&(m=r.ref),r.key!==void 0&&(p=""+r.key),r)IPt.call(r,u)&&!TPt.hasOwnProperty(u)&&(d[u]=r[u]);var x=arguments.length-2;if(x===1)d.children=c;else if(1>>1,Se=ze[be];if(0>>1;bed(Tn,De))qnd(rr,Tn)?(ze[be]=rr,ze[qn]=De,be=qn):(ze[be]=Tn,ze[sn]=De,be=sn);else if(qnd(rr,De))ze[be]=rr,ze[qn]=De,be=qn;else break e}}return we}function d(ze,we){var De=ze.sortIndex-we.sortIndex;return De!==0?De:ze.id-we.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var m=Date,x=m.now();n.unstable_now=function(){return m.now()-x}}var E=[],k=[],T=1,P=null,I=3,O=!1,N=!1,j=!1,L=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(ze){for(var we=c(k);we!==null;){if(we.callback===null)u(k);else if(we.startTime<=ze)u(k),we.sortIndex=we.expirationTime,r(E,we);else break;we=c(k)}}function X(ze){if(j=!1,B(ze),!N)if(c(E)!==null)N=!0,jt(ne);else{var we=c(k);we!==null&&Me(X,we.startTime-ze)}}function ne(ze,we){N=!1,j&&(j=!1,$(ce),ce=-1),O=!0;var De=I;try{for(B(we),P=c(E);P!==null&&(!(P.expirationTime>we)||ze&&!ye());){var be=P.callback;if(typeof be=="function"){P.callback=null,I=P.priorityLevel;var Se=be(P.expirationTime<=we);we=n.unstable_now(),typeof Se=="function"?P.callback=Se:P===c(E)&&u(E),B(we)}else u(E);P=c(E)}if(P!==null)var Jt=!0;else{var sn=c(k);sn!==null&&Me(X,sn.startTime-we),Jt=!1}return Jt}finally{P=null,I=De,O=!1}}var Z=!1,H=null,ce=-1,pe=5,le=-1;function ye(){return!(n.unstable_now()-leze||125be?(ze.sortIndex=De,r(k,ze),c(E)===null&&ze===c(k)&&(j?($(ce),ce=-1):j=!0,Me(X,De-be))):(ze.sortIndex=Se,r(E,ze),N||O||(N=!0,jt(ne))),ze},n.unstable_shouldYield=ye,n.unstable_wrapCallback=function(ze){var we=I;return function(){var De=I;I=we;try{return ze.apply(this,arguments)}finally{I=De}}}})(OPt);(function(n){n.exports=OPt})(PPt);/** - * @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 _Pt=U.exports,Ab=PPt.exports;function hr(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,c=1;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bTe=Object.prototype.hasOwnProperty,_2n=/^[: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]*$/,ykt={},wkt={};function M2n(n){return bTe.call(wkt,n)?!0:bTe.call(ykt,n)?!1:_2n.test(n)?wkt[n]=!0:(ykt[n]=!0,!1)}function D2n(n,r,c,u){if(c!==null&&c.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return u?!1:c!==null?!c.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function N2n(n,r,c,u){if(r===null||typeof r>"u"||D2n(n,r,c,u))return!0;if(u)return!1;if(c!==null)switch(c.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function Vp(n,r,c,u,d,p,m){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=c,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=m}var n1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){n1[n]=new Vp(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];n1[r]=new Vp(r,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){n1[n]=new Vp(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){n1[n]=new Vp(n,2,!1,n,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(n){n1[n]=new Vp(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){n1[n]=new Vp(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){n1[n]=new Vp(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){n1[n]=new Vp(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){n1[n]=new Vp(n,5,!1,n.toLowerCase(),null,!1,!1)});var WOe=/[\-:]([a-z])/g;function GOe(n){return n[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(n){var r=n.replace(WOe,GOe);n1[r]=new Vp(r,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(WOe,GOe);n1[r]=new Vp(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(WOe,GOe);n1[r]=new Vp(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){n1[n]=new Vp(n,1,!1,n.toLowerCase(),null,!1,!1)});n1.xlinkHref=new Vp("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){n1[n]=new Vp(n,1,!1,n.toLowerCase(),null,!0,!0)});function XOe(n,r,c,u){var d=n1.hasOwnProperty(r)?n1[r]:null;(d!==null?d.type!==0:u||!(2x||d[m]!==p[x]){var E=` -`+d[m].replace(" at new "," at ");return n.displayName&&E.includes("")&&(E=E.replace("",n.displayName)),E}while(1<=m&&0<=x);break}}}finally{UIe=!1,Error.prepareStackTrace=c}return(n=n?n.displayName||n.name:"")?SU(n):""}function j2n(n){switch(n.tag){case 5:return SU(n.type);case 16:return SU("Lazy");case 13:return SU("Suspense");case 19:return SU("SuspenseList");case 0:case 2:case 15:return n=HIe(n.type,!1),n;case 11:return n=HIe(n.type.render,!1),n;case 1:return n=HIe(n.type,!0),n;default:return""}}function wTe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case wM:return"Fragment";case yM:return"Portal";case mTe:return"Profiler";case KOe:return"StrictMode";case vTe:return"Suspense";case yTe:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case NPt:return(n.displayName||"Context")+".Consumer";case DPt:return(n._context.displayName||"Context")+".Provider";case YOe:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case QOe:return r=n.displayName||null,r!==null?r:wTe(n.type)||"Memo";case FE:r=n._payload,n=n._init;try{return wTe(n(r))}catch{}}return null}function R2n(n){var r=n.type;switch(n.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=r.render,n=n.displayName||n.name||"",r.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wTe(r);case 8:return r===KOe?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function gk(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function RPt(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $2n(n){var r=RPt(n)?"checked":"value",c=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),u=""+n[r];if(!n.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var d=c.get,p=c.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(m){u=""+m,p.call(this,m)}}),Object.defineProperty(n,r,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(m){u=""+m},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ooe(n){n._valueTracker||(n._valueTracker=$2n(n))}function $Pt(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var c=r.getValue(),u="";return n&&(u=RPt(n)?n.checked?"true":"false":n.value),n=u,n!==c?(r.setValue(n),!0):!1}function zae(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function xTe(n,r){var c=r.checked;return Tl({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c!=null?c:n._wrapperState.initialChecked})}function Skt(n,r){var c=r.defaultValue==null?"":r.defaultValue,u=r.checked!=null?r.checked:r.defaultChecked;c=gk(r.value!=null?r.value:c),n._wrapperState={initialChecked:u,initialValue:c,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function LPt(n,r){r=r.checked,r!=null&&XOe(n,"checked",r,!1)}function STe(n,r){LPt(n,r);var c=gk(r.value),u=r.type;if(c!=null)u==="number"?(c===0&&n.value===""||n.value!=c)&&(n.value=""+c):n.value!==""+c&&(n.value=""+c);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}r.hasOwnProperty("value")?ETe(n,r.type,c):r.hasOwnProperty("defaultValue")&&ETe(n,r.type,gk(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(n.defaultChecked=!!r.defaultChecked)}function Ekt(n,r,c){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var u=r.type;if(!(u!=="submit"&&u!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+n._wrapperState.initialValue,c||r===n.value||(n.value=r),n.defaultValue=r}c=n.name,c!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,c!==""&&(n.name=c)}function ETe(n,r,c){(r!=="number"||zae(n.ownerDocument)!==n)&&(c==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+c&&(n.defaultValue=""+c))}var EU=Array.isArray;function FM(n,r,c,u){if(n=n.options,r){r={};for(var d=0;d"+r.valueOf().toString()+"",r=_oe.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;r.firstChild;)n.appendChild(r.firstChild)}});function DH(n,r){if(r){var c=n.firstChild;if(c&&c===n.lastChild&&c.nodeType===3){c.nodeValue=r;return}}n.textContent=r}var qU={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},L2n=["Webkit","ms","Moz","O"];Object.keys(qU).forEach(function(n){L2n.forEach(function(r){r=r+n.charAt(0).toUpperCase()+n.substring(1),qU[r]=qU[n]})});function VPt(n,r,c){return r==null||typeof r=="boolean"||r===""?"":c||typeof r!="number"||r===0||qU.hasOwnProperty(n)&&qU[n]?(""+r).trim():r+"px"}function UPt(n,r){n=n.style;for(var c in r)if(r.hasOwnProperty(c)){var u=c.indexOf("--")===0,d=VPt(c,r[c],u);c==="float"&&(c="cssFloat"),u?n.setProperty(c,d):n[c]=d}}var F2n=Tl({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 ITe(n,r){if(r){if(F2n[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(hr(137,n));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(hr(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(hr(61))}if(r.style!=null&&typeof r.style!="object")throw Error(hr(62))}}function TTe(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){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 ATe=null;function ZOe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var PTe=null,BM=null,zM=null;function Ikt(n){if(n=Xq(n)){if(typeof PTe!="function")throw Error(hr(280));var r=n.stateNode;r&&(r=Uue(r),PTe(n.stateNode,n.type,r))}}function HPt(n){BM?zM?zM.push(n):zM=[n]:BM=n}function qPt(){if(BM){var n=BM,r=zM;if(zM=BM=null,Ikt(n),r)for(n=0;n>>=0,n===0?32:31-(Y2n(n)/Q2n|0)|0}var Moe=64,Doe=4194304;function kU(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function qae(n,r){var c=n.pendingLanes;if(c===0)return 0;var u=0,d=n.suspendedLanes,p=n.pingedLanes,m=c&268435455;if(m!==0){var x=m&~d;x!==0?u=kU(x):(p&=m,p!==0&&(u=kU(p)))}else m=c&~d,m!==0?u=kU(m):p!==0&&(u=kU(p));if(u===0)return 0;if(r!==0&&r!==u&&(r&d)===0&&(d=u&-u,p=r&-r,d>=p||d===16&&(p&4194240)!==0))return r;if((u&4)!==0&&(u|=c&16),r=n.entangledLanes,r!==0)for(n=n.entanglements,r&=u;0c;c++)r.push(n);return r}function Wq(n,r,c){n.pendingLanes|=r,r!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,r=31-kw(r),n[r]=c}function txn(n,r){var c=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0=GU),jkt=String.fromCharCode(32),Rkt=!1;function fOt(n,r){switch(n){case"keyup":return Pxn.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dOt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xM=!1;function _xn(n,r){switch(n){case"compositionend":return dOt(r);case"keypress":return r.which!==32?null:(Rkt=!0,jkt);case"textInput":return n=r.data,n===jkt&&Rkt?null:n;default:return null}}function Mxn(n,r){if(xM)return n==="compositionend"||!s_e&&fOt(n,r)?(n=uOt(),rae=r_e=YE=null,xM=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:c,offset:r-n};n=u}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Bkt(c)}}function bOt(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?bOt(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function mOt(){for(var n=window,r=zae();r instanceof n.HTMLIFrameElement;){try{var c=typeof r.contentWindow.location.href=="string"}catch{c=!1}if(c)n=r.contentWindow;else break;r=zae(n.document)}return r}function a_e(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function zxn(n){var r=mOt(),c=n.focusedElem,u=n.selectionRange;if(r!==c&&c&&c.ownerDocument&&bOt(c.ownerDocument.documentElement,c)){if(u!==null&&a_e(c)){if(r=u.start,n=u.end,n===void 0&&(n=r),"selectionStart"in c)c.selectionStart=r,c.selectionEnd=Math.min(n,c.value.length);else if(n=(r=c.ownerDocument||document)&&r.defaultView||window,n.getSelection){n=n.getSelection();var d=c.textContent.length,p=Math.min(u.start,d);u=u.end===void 0?p:Math.min(u.end,d),!n.extend&&p>u&&(d=u,u=p,p=d),d=zkt(c,p);var m=zkt(c,u);d&&m&&(n.rangeCount!==1||n.anchorNode!==d.node||n.anchorOffset!==d.offset||n.focusNode!==m.node||n.focusOffset!==m.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),n.removeAllRanges(),p>u?(n.addRange(r),n.extend(m.node,m.offset)):(r.setEnd(m.node,m.offset),n.addRange(r)))}}for(r=[],n=c;n=n.parentNode;)n.nodeType===1&&r.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,SM=null,jTe=null,KU=null,RTe=!1;function Vkt(n,r,c){var u=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;RTe||SM==null||SM!==zae(u)||(u=SM,"selectionStart"in u&&a_e(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),KU&&FH(KU,u)||(KU=u,u=Xae(jTe,"onSelect"),0CM||(n.current=VTe[CM],VTe[CM]=null,CM--)}function pu(n,r){CM++,VTe[CM]=n.current,n.current=r}var bk={},B1=Nk(bk),J0=Nk(!1),C7=bk;function lD(n,r){var c=n.type.contextTypes;if(!c)return bk;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===r)return u.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in c)d[p]=r[p];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=r,n.__reactInternalMemoizedMaskedChildContext=d),d}function eg(n){return n=n.childContextTypes,n!=null}function Yae(){Mu(J0),Mu(B1)}function Kkt(n,r,c){if(B1.current!==bk)throw Error(hr(168));pu(B1,r),pu(J0,c)}function IOt(n,r,c){var u=n.stateNode;if(r=r.childContextTypes,typeof u.getChildContext!="function")return c;u=u.getChildContext();for(var d in u)if(!(d in r))throw Error(hr(108,R2n(n)||"Unknown",d));return Tl({},c,u)}function Qae(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||bk,C7=B1.current,pu(B1,n),pu(J0,J0.current),!0}function Ykt(n,r,c){var u=n.stateNode;if(!u)throw Error(hr(169));c?(n=IOt(n,r,C7),u.__reactInternalMemoizedMergedChildContext=n,Mu(J0),Mu(B1),pu(B1,n)):Mu(J0),pu(J0,c)}var iS=null,Hue=!1,i9e=!1;function TOt(n){iS===null?iS=[n]:iS.push(n)}function Jxn(n){Hue=!0,TOt(n)}function jk(){if(!i9e&&iS!==null){i9e=!0;var n=0,r=xc;try{var c=iS;for(xc=1;n>=m,d-=m,uS=1<<32-kw(r)+d|c<ce?(pe=H,H=null):pe=H.sibling;var le=I($,H,B[ce],X);if(le===null){H===null&&(H=pe);break}n&&H&&le.alternate===null&&r($,H),F=p(le,F,ce),Z===null?ne=le:Z.sibling=le,Z=le,H=pe}if(ce===B.length)return c($,H),tl&&U9($,ce),ne;if(H===null){for(;cece?(pe=H,H=null):pe=H.sibling;var ye=I($,H,le.value,X);if(ye===null){H===null&&(H=pe);break}n&&H&&ye.alternate===null&&r($,H),F=p(ye,F,ce),Z===null?ne=ye:Z.sibling=ye,Z=ye,H=pe}if(le.done)return c($,H),tl&&U9($,ce),ne;if(H===null){for(;!le.done;ce++,le=B.next())le=P($,le.value,X),le!==null&&(F=p(le,F,ce),Z===null?ne=le:Z.sibling=le,Z=le);return tl&&U9($,ce),ne}for(H=u($,H);!le.done;ce++,le=B.next())le=O(H,$,ce,le.value,X),le!==null&&(n&&le.alternate!==null&&H.delete(le.key===null?ce:le.key),F=p(le,F,ce),Z===null?ne=le:Z.sibling=le,Z=le);return n&&H.forEach(function(Ge){return r($,Ge)}),tl&&U9($,ce),ne}function L($,F,B,X){if(typeof B=="object"&&B!==null&&B.type===wM&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Poe:e:{for(var ne=B.key,Z=F;Z!==null;){if(Z.key===ne){if(ne=B.type,ne===wM){if(Z.tag===7){c($,Z.sibling),F=d(Z,B.props.children),F.return=$,$=F;break e}}else if(Z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===FE&&rCt(ne)===Z.type){c($,Z.sibling),F=d(Z,B.props),F.ref=JV($,Z,B),F.return=$,$=F;break e}c($,Z);break}else r($,Z);Z=Z.sibling}B.type===wM?(F=g7(B.props.children,$.mode,X,B.key),F.return=$,$=F):(X=fae(B.type,B.key,B.props,null,$.mode,X),X.ref=JV($,F,B),X.return=$,$=X)}return m($);case yM:e:{for(Z=B.key;F!==null;){if(F.key===Z)if(F.tag===4&&F.stateNode.containerInfo===B.containerInfo&&F.stateNode.implementation===B.implementation){c($,F.sibling),F=d(F,B.children||[]),F.return=$,$=F;break e}else{c($,F);break}else r($,F);F=F.sibling}F=d9e(B,$.mode,X),F.return=$,$=F}return m($);case FE:return Z=B._init,L($,F,Z(B._payload),X)}if(EU(B))return N($,F,B,X);if(XV(B))return j($,F,B,X);Boe($,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,F!==null&&F.tag===6?(c($,F.sibling),F=d(F,B),F.return=$,$=F):(c($,F),F=f9e(B,$.mode,X),F.return=$,$=F),m($)):c($,F)}return L}var dD=jOt(!0),ROt=jOt(!1),Kq={},Vx=Nk(Kq),UH=Nk(Kq),HH=Nk(Kq);function n7(n){if(n===Kq)throw Error(hr(174));return n}function b_e(n,r){switch(pu(HH,r),pu(UH,n),pu(Vx,Kq),n=r.nodeType,n){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:CTe(null,"");break;default:n=n===8?r.parentNode:r,r=n.namespaceURI||null,n=n.tagName,r=CTe(r,n)}Mu(Vx),pu(Vx,r)}function hD(){Mu(Vx),Mu(UH),Mu(HH)}function $Ot(n){n7(HH.current);var r=n7(Vx.current),c=CTe(r,n.type);r!==c&&(pu(UH,n),pu(Vx,c))}function m_e(n){UH.current===n&&(Mu(Vx),Mu(UH))}var El=Nk(0);function rce(n){for(var r=n;r!==null;){if(r.tag===13){var c=r.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var o9e=[];function v_e(){for(var n=0;nc?c:4,n(!0);var u=s9e.transition;s9e.transition={};try{n(!1),r()}finally{xc=c,s9e.transition=u}}function JOt(){return Sv().memoizedState}function r3n(n,r,c){var u=dk(n);if(c={lane:u,action:c,hasEagerState:!1,eagerState:null,next:null},e_t(n))t_t(r,c);else if(c=_Ot(n,r,c,u),c!==null){var d=Lp();Cw(c,n,u,d),n_t(c,r,u)}}function i3n(n,r,c){var u=dk(n),d={lane:u,action:c,hasEagerState:!1,eagerState:null,next:null};if(e_t(n))t_t(r,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var m=r.lastRenderedState,x=p(m,c);if(d.hasEagerState=!0,d.eagerState=x,Ow(x,m)){var E=r.interleaved;E===null?(d.next=d,p_e(r)):(d.next=E.next,E.next=d),r.interleaved=d;return}}catch{}finally{}c=_Ot(n,r,d,u),c!==null&&(d=Lp(),Cw(c,n,u,d),n_t(c,r,u))}}function e_t(n){var r=n.alternate;return n===Cl||r!==null&&r===Cl}function t_t(n,r){YU=ice=!0;var c=n.pending;c===null?r.next=r:(r.next=c.next,c.next=r),n.pending=r}function n_t(n,r,c){if((c&4194240)!==0){var u=r.lanes;u&=n.pendingLanes,c|=u,r.lanes=c,e_e(n,c)}}var oce={readContext:xv,useCallback:D1,useContext:D1,useEffect:D1,useImperativeHandle:D1,useInsertionEffect:D1,useLayoutEffect:D1,useMemo:D1,useReducer:D1,useRef:D1,useState:D1,useDebugValue:D1,useDeferredValue:D1,useTransition:D1,useMutableSource:D1,useSyncExternalStore:D1,useId:D1,unstable_isNewReconciler:!1},o3n={readContext:xv,useCallback:function(n,r){return kx().memoizedState=[n,r===void 0?null:r],n},useContext:xv,useEffect:oCt,useImperativeHandle:function(n,r,c){return c=c!=null?c.concat([n]):null,aae(4194308,4,XOt.bind(null,r,n),c)},useLayoutEffect:function(n,r){return aae(4194308,4,n,r)},useInsertionEffect:function(n,r){return aae(4,2,n,r)},useMemo:function(n,r){var c=kx();return r=r===void 0?null:r,n=n(),c.memoizedState=[n,r],n},useReducer:function(n,r,c){var u=kx();return r=c!==void 0?c(r):r,u.memoizedState=u.baseState=r,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},u.queue=n,n=n.dispatch=r3n.bind(null,Cl,n),[u.memoizedState,n]},useRef:function(n){var r=kx();return n={current:n},r.memoizedState=n},useState:iCt,useDebugValue:E_e,useDeferredValue:function(n){return kx().memoizedState=n},useTransition:function(){var n=iCt(!1),r=n[0];return n=n3n.bind(null,n[1]),kx().memoizedState=n,[r,n]},useMutableSource:function(){},useSyncExternalStore:function(n,r,c){var u=Cl,d=kx();if(tl){if(c===void 0)throw Error(hr(407));c=c()}else{if(c=r(),vh===null)throw Error(hr(349));(T7&30)!==0||BOt(u,r,c)}d.memoizedState=c;var p={value:c,getSnapshot:r};return d.queue=p,oCt(VOt.bind(null,u,p,n),[n]),u.flags|=2048,GH(9,zOt.bind(null,u,p,c,r),void 0,null),c},useId:function(){var n=kx(),r=vh.identifierPrefix;if(tl){var c=lS,u=uS;c=(u&~(1<<32-kw(u)-1)).toString(32)+c,r=":"+r+"R"+c,c=qH++,0<\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=m.createElement(c,{is:u.is}):(n=m.createElement(c),c==="select"&&(m=n,u.multiple?m.multiple=!0:u.size&&(m.size=u.size))):n=m.createElementNS(n,c),n[Dx]=r,n[VH]=u,f_t(n,r,!1,!1),r.stateNode=n;e:{switch(m=TTe(c,u),c){case"dialog":Cu("cancel",n),Cu("close",n),d=u;break;case"iframe":case"object":case"embed":Cu("load",n),d=u;break;case"video":case"audio":for(d=0;dgD&&(r.flags|=128,u=!0,eU(p,!1),r.lanes=4194304)}else{if(!u)if(n=rce(m),n!==null){if(r.flags|=128,u=!0,c=n.updateQueue,c!==null&&(r.updateQueue=c,r.flags|=4),eU(p,!0),p.tail===null&&p.tailMode==="hidden"&&!m.alternate&&!tl)return N1(r),null}else 2*Tf()-p.renderingStartTime>gD&&c!==1073741824&&(r.flags|=128,u=!0,eU(p,!1),r.lanes=4194304);p.isBackwards?(m.sibling=r.child,r.child=m):(c=p.last,c!==null?c.sibling=m:r.child=m,p.last=m)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Tf(),r.sibling=null,c=El.current,pu(El,u?c&1|2:c&1),r):(N1(r),null);case 22:case 23:return P_e(),u=r.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(r.flags|=8192),u&&(r.mode&1)!==0?(yb&1073741824)!==0&&(N1(r),r.subtreeFlags&6&&(r.flags|=8192)):N1(r),null;case 24:return null;case 25:return null}throw Error(hr(156,r.tag))}function h3n(n,r){switch(u_e(r),r.tag){case 1:return eg(r.type)&&Yae(),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return hD(),Mu(J0),Mu(B1),v_e(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 5:return m_e(r),null;case 13:if(Mu(El),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(hr(340));fD()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return Mu(El),null;case 4:return hD(),null;case 10:return h_e(r.type._context),null;case 22:case 23:return P_e(),null;case 24:return null;default:return null}}var Voe=!1,L1=!1,p3n=typeof WeakSet=="function"?WeakSet:Set,oi=null;function PM(n,r){var c=n.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(u){ef(n,r,u)}else c.current=null}function eAe(n,r,c){try{c()}catch(u){ef(n,r,u)}}var pCt=!1;function g3n(n,r){if($Te=Wae,n=mOt(),a_e(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var u=c.getSelection&&c.getSelection();if(u&&u.rangeCount!==0){c=u.anchorNode;var d=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{c.nodeType,p.nodeType}catch{c=null;break e}var m=0,x=-1,E=-1,k=0,T=0,P=n,I=null;t:for(;;){for(var O;P!==c||d!==0&&P.nodeType!==3||(x=m+d),P!==p||u!==0&&P.nodeType!==3||(E=m+u),P.nodeType===3&&(m+=P.nodeValue.length),(O=P.firstChild)!==null;)I=P,P=O;for(;;){if(P===n)break t;if(I===c&&++k===d&&(x=m),I===p&&++T===u&&(E=m),(O=P.nextSibling)!==null)break;P=I,I=P.parentNode}P=O}c=x===-1||E===-1?null:{start:x,end:E}}else c=null}c=c||{start:0,end:0}}else c=null;for(LTe={focusedElem:n,selectionRange:c},Wae=!1,oi=r;oi!==null;)if(r=oi,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,oi=n;else for(;oi!==null;){r=oi;try{var N=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var j=N.memoizedProps,L=N.memoizedState,$=r.stateNode,F=$.getSnapshotBeforeUpdate(r.elementType===r.type?j:bw(r.type,j),L);$.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var B=r.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(hr(163))}}catch(X){ef(r,r.return,X)}if(n=r.sibling,n!==null){n.return=r.return,oi=n;break}oi=r.return}return N=pCt,pCt=!1,N}function QU(n,r,c){var u=r.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&n)===n){var p=d.destroy;d.destroy=void 0,p!==void 0&&eAe(r,c,p)}d=d.next}while(d!==u)}}function Gue(n,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var c=r=r.next;do{if((c.tag&n)===n){var u=c.create;c.destroy=u()}c=c.next}while(c!==r)}}function tAe(n){var r=n.ref;if(r!==null){var c=n.stateNode;switch(n.tag){case 5:n=c;break;default:n=c}typeof r=="function"?r(n):r.current=n}}function p_t(n){var r=n.alternate;r!==null&&(n.alternate=null,p_t(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&(delete r[Dx],delete r[VH],delete r[zTe],delete r[Qxn],delete r[Zxn])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function g_t(n){return n.tag===5||n.tag===3||n.tag===4}function gCt(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||g_t(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function nAe(n,r,c){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?c.nodeType===8?c.parentNode.insertBefore(n,r):c.insertBefore(n,r):(c.nodeType===8?(r=c.parentNode,r.insertBefore(n,c)):(r=c,r.appendChild(n)),c=c._reactRootContainer,c!=null||r.onclick!==null||(r.onclick=Kae));else if(u!==4&&(n=n.child,n!==null))for(nAe(n,r,c),n=n.sibling;n!==null;)nAe(n,r,c),n=n.sibling}function rAe(n,r,c){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?c.insertBefore(n,r):c.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(rAe(n,r,c),n=n.sibling;n!==null;)rAe(n,r,c),n=n.sibling}var Kh=null,vw=!1;function PE(n,r,c){for(c=c.child;c!==null;)b_t(n,r,c),c=c.sibling}function b_t(n,r,c){if(zx&&typeof zx.onCommitFiberUnmount=="function")try{zx.onCommitFiberUnmount(Fue,c)}catch{}switch(c.tag){case 5:L1||PM(c,r);case 6:var u=Kh,d=vw;Kh=null,PE(n,r,c),Kh=u,vw=d,Kh!==null&&(vw?(n=Kh,c=c.stateNode,n.nodeType===8?n.parentNode.removeChild(c):n.removeChild(c)):Kh.removeChild(c.stateNode));break;case 18:Kh!==null&&(vw?(n=Kh,c=c.stateNode,n.nodeType===8?r9e(n.parentNode,c):n.nodeType===1&&r9e(n,c),$H(n)):r9e(Kh,c.stateNode));break;case 4:u=Kh,d=vw,Kh=c.stateNode.containerInfo,vw=!0,PE(n,r,c),Kh=u,vw=d;break;case 0:case 11:case 14:case 15:if(!L1&&(u=c.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var p=d,m=p.destroy;p=p.tag,m!==void 0&&((p&2)!==0||(p&4)!==0)&&eAe(c,r,m),d=d.next}while(d!==u)}PE(n,r,c);break;case 1:if(!L1&&(PM(c,r),u=c.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=c.memoizedProps,u.state=c.memoizedState,u.componentWillUnmount()}catch(x){ef(c,r,x)}PE(n,r,c);break;case 21:PE(n,r,c);break;case 22:c.mode&1?(L1=(u=L1)||c.memoizedState!==null,PE(n,r,c),L1=u):PE(n,r,c);break;default:PE(n,r,c)}}function bCt(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var c=n.stateNode;c===null&&(c=n.stateNode=new p3n),r.forEach(function(u){var d=k3n.bind(null,n,u);c.has(u)||(c.add(u),u.then(d,d))})}}function uw(n,r){var c=r.deletions;if(c!==null)for(var u=0;ud&&(d=m),u&=~p}if(u=d,u=Tf()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*m3n(u/1960))-u,10n?16:n,QE===null)var u=!1;else{if(n=QE,QE=null,cce=0,(ka&6)!==0)throw Error(hr(331));var d=ka;for(ka|=4,oi=n.current;oi!==null;){var p=oi,m=p.child;if((oi.flags&16)!==0){var x=p.deletions;if(x!==null){for(var E=0;ETf()-T_e?p7(n,0):I_e|=c),tg(n,r)}function k_t(n,r){r===0&&((n.mode&1)===0?r=1:(r=Doe,Doe<<=1,(Doe&130023424)===0&&(Doe=4194304)));var c=Lp();n=yS(n,r),n!==null&&(Wq(n,r,c),tg(n,c))}function E3n(n){var r=n.memoizedState,c=0;r!==null&&(c=r.retryLane),k_t(n,c)}function k3n(n,r){var c=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(c=d.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(hr(314))}u!==null&&u.delete(r),k_t(n,c)}var C_t;C_t=function(n,r,c){if(n!==null)if(n.memoizedProps!==r.pendingProps||J0.current)K0=!0;else{if((n.lanes&c)===0&&(r.flags&128)===0)return K0=!1,f3n(n,r,c);K0=(n.flags&131072)!==0}else K0=!1,tl&&(r.flags&1048576)!==0&&AOt(r,Jae,r.index);switch(r.lanes=0,r.tag){case 2:var u=r.type;cae(n,r),n=r.pendingProps;var d=lD(r,B1.current);UM(r,c),d=w_e(null,r,u,n,d,c);var p=x_e();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,eg(u)?(p=!0,Qae(r)):p=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,g_e(r),d.updater=que,r.stateNode=d,d._reactInternals=r,GTe(r,u,n,c),r=YTe(null,r,u,!0,p,c)):(r.tag=0,tl&&p&&c_e(r),Rp(null,r,d,c),r=r.child),r;case 16:u=r.elementType;e:{switch(cae(n,r),n=r.pendingProps,d=u._init,u=d(u._payload),r.type=u,d=r.tag=I3n(u),n=bw(u,n),d){case 0:r=KTe(null,r,u,n,c);break e;case 1:r=fCt(null,r,u,n,c);break e;case 11:r=uCt(null,r,u,n,c);break e;case 14:r=lCt(null,r,u,bw(u.type,n),c);break e}throw Error(hr(306,u,""))}return r;case 0:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),KTe(n,r,u,d,c);case 1:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),fCt(n,r,u,d,c);case 3:e:{if(c_t(r),n===null)throw Error(hr(387));u=r.pendingProps,p=r.memoizedState,d=p.element,MOt(n,r),nce(r,u,null,c);var m=r.memoizedState;if(u=m.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){d=pD(Error(hr(423)),r),r=dCt(n,r,u,c,d);break e}else if(u!==d){d=pD(Error(hr(424)),r),r=dCt(n,r,u,c,d);break e}else for(Eb=uk(r.stateNode.containerInfo.firstChild),Cb=r,tl=!0,yw=null,c=ROt(r,null,u,c),r.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(fD(),u===d){r=wS(n,r,c);break e}Rp(n,r,u,c)}r=r.child}return r;case 5:return $Ot(r),n===null&&HTe(r),u=r.type,d=r.pendingProps,p=n!==null?n.memoizedProps:null,m=d.children,FTe(u,d)?m=null:p!==null&&FTe(u,p)&&(r.flags|=32),a_t(n,r),Rp(n,r,m,c),r.child;case 6:return n===null&&HTe(r),null;case 13:return u_t(n,r,c);case 4:return b_e(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=dD(r,null,u,c):Rp(n,r,u,c),r.child;case 11:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),uCt(n,r,u,d,c);case 7:return Rp(n,r,r.pendingProps,c),r.child;case 8:return Rp(n,r,r.pendingProps.children,c),r.child;case 12:return Rp(n,r,r.pendingProps.children,c),r.child;case 10:e:{if(u=r.type._context,d=r.pendingProps,p=r.memoizedProps,m=d.value,pu(ece,u._currentValue),u._currentValue=m,p!==null)if(Ow(p.value,m)){if(p.children===d.children&&!J0.current){r=wS(n,r,c);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var x=p.dependencies;if(x!==null){m=p.child;for(var E=x.firstContext;E!==null;){if(E.context===u){if(p.tag===1){E=gS(-1,c&-c),E.tag=2;var k=p.updateQueue;if(k!==null){k=k.shared;var T=k.pending;T===null?E.next=E:(E.next=T.next,T.next=E),k.pending=E}}p.lanes|=c,E=p.alternate,E!==null&&(E.lanes|=c),qTe(p.return,c,r),x.lanes|=c;break}E=E.next}}else if(p.tag===10)m=p.type===r.type?null:p.child;else if(p.tag===18){if(m=p.return,m===null)throw Error(hr(341));m.lanes|=c,x=m.alternate,x!==null&&(x.lanes|=c),qTe(m,c,r),m=p.sibling}else m=p.child;if(m!==null)m.return=p;else for(m=p;m!==null;){if(m===r){m=null;break}if(p=m.sibling,p!==null){p.return=m.return,m=p;break}m=m.return}p=m}Rp(n,r,d.children,c),r=r.child}return r;case 9:return d=r.type,u=r.pendingProps.children,UM(r,c),d=xv(d),u=u(d),r.flags|=1,Rp(n,r,u,c),r.child;case 14:return u=r.type,d=bw(u,r.pendingProps),d=bw(u.type,d),lCt(n,r,u,d,c);case 15:return o_t(n,r,r.type,r.pendingProps,c);case 17:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),cae(n,r),r.tag=1,eg(u)?(n=!0,Qae(r)):n=!1,UM(r,c),NOt(r,u,d),GTe(r,u,d,c),YTe(null,r,u,!0,n,c);case 19:return l_t(n,r,c);case 22:return s_t(n,r,c)}throw Error(hr(156,r.tag))};function I_t(n,r){return ZPt(n,r)}function C3n(n,r,c,u){this.tag=n,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gv(n,r,c,u){return new C3n(n,r,c,u)}function __e(n){return n=n.prototype,!(!n||!n.isReactComponent)}function I3n(n){if(typeof n=="function")return __e(n)?1:0;if(n!=null){if(n=n.$$typeof,n===YOe)return 11;if(n===QOe)return 14}return 2}function hk(n,r){var c=n.alternate;return c===null?(c=gv(n.tag,r,n.key,n.mode),c.elementType=n.elementType,c.type=n.type,c.stateNode=n.stateNode,c.alternate=n,n.alternate=c):(c.pendingProps=r,c.type=n.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=n.flags&14680064,c.childLanes=n.childLanes,c.lanes=n.lanes,c.child=n.child,c.memoizedProps=n.memoizedProps,c.memoizedState=n.memoizedState,c.updateQueue=n.updateQueue,r=n.dependencies,c.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},c.sibling=n.sibling,c.index=n.index,c.ref=n.ref,c}function fae(n,r,c,u,d,p){var m=2;if(u=n,typeof n=="function")__e(n)&&(m=1);else if(typeof n=="string")m=5;else e:switch(n){case wM:return g7(c.children,d,p,r);case KOe:m=8,d|=8;break;case mTe:return n=gv(12,c,r,d|2),n.elementType=mTe,n.lanes=p,n;case vTe:return n=gv(13,c,r,d),n.elementType=vTe,n.lanes=p,n;case yTe:return n=gv(19,c,r,d),n.elementType=yTe,n.lanes=p,n;case jPt:return Kue(c,d,p,r);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case DPt:m=10;break e;case NPt:m=9;break e;case YOe:m=11;break e;case QOe:m=14;break e;case FE:m=16,u=null;break e}throw Error(hr(130,n==null?n:typeof n,""))}return r=gv(m,c,r,d),r.elementType=n,r.type=u,r.lanes=p,r}function g7(n,r,c,u){return n=gv(7,n,u,r),n.lanes=c,n}function Kue(n,r,c,u){return n=gv(22,n,u,r),n.elementType=jPt,n.lanes=c,n.stateNode={isHidden:!1},n}function f9e(n,r,c){return n=gv(6,n,null,r),n.lanes=c,n}function d9e(n,r,c){return r=gv(4,n.children!==null?n.children:[],n.key,r),r.lanes=c,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}function T3n(n,r,c,u,d){this.tag=r,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=WIe(0),this.expirationTimes=WIe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=WIe(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function M_e(n,r,c,u,d,p,m,x,E){return n=new T3n(n,r,c,x,E),r===1?(r=1,p===!0&&(r|=8)):r=0,p=gv(3,null,null,r),n.current=p,p.stateNode=n,p.memoizedState={element:u,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},g_e(p),n}function A3n(n,r,c){var u=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}r(),n.exports=Mb})(PS);const O_t=Lue(PS.exports);var __t,kCt=PS.exports;__t=kCt.createRoot,kCt.hydrateRoot;var Iw=Boolean(globalThis==null?void 0:globalThis.document)?U.exports.useLayoutEffect:U.exports.useEffect,ele={exports:{}},tle={};/** - * @license React - * react-jsx-runtime.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 D3n=U.exports,N3n=Symbol.for("react.element"),j3n=Symbol.for("react.fragment"),R3n=Object.prototype.hasOwnProperty,$3n=D3n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L3n={key:!0,ref:!0,__self:!0,__source:!0};function M_t(n,r,c){var u,d={},p=null,m=null;c!==void 0&&(p=""+c),r.key!==void 0&&(p=""+r.key),r.ref!==void 0&&(m=r.ref);for(u in r)R3n.call(r,u)&&!L3n.hasOwnProperty(u)&&(d[u]=r[u]);if(n&&n.defaultProps)for(u in r=n.defaultProps,r)d[u]===void 0&&(d[u]=r[u]);return{$$typeof:N3n,type:n,key:p,ref:m,props:d,_owner:$3n.current}}tle.Fragment=j3n;tle.jsx=M_t;tle.jsxs=M_t;(function(n){n.exports=tle})(ele);const Si=ele.exports.Fragment,V=ele.exports.jsx,We=ele.exports.jsxs;var R_e=U.exports.createContext({});R_e.displayName="ColorModeContext";function ZD(){const n=U.exports.useContext(R_e);if(n===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return n}function O7(n,r){const{colorMode:c}=ZD();return c==="dark"?r:n}var qoe={light:"chakra-ui-light",dark:"chakra-ui-dark"};function F3n(n={}){const{preventTransition:r=!0}=n,c={setDataset:u=>{const d=r?c.preventTransition():void 0;document.documentElement.dataset.theme=u,document.documentElement.style.colorScheme=u,d==null||d()},setClassName(u){document.body.classList.add(u?qoe.dark:qoe.light),document.body.classList.remove(u?qoe.light:qoe.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(u){var p;return((p=c.query().matches)!=null?p:u==="dark")?"dark":"light"},addListener(u){const d=c.query(),p=m=>{u(m.matches?"dark":"light")};return typeof d.addListener=="function"?d.addListener(p):d.addEventListener("change",p),()=>{typeof d.removeListener=="function"?d.removeListener(p):d.removeEventListener("change",p)}},preventTransition(){const u=document.createElement("style");return u.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(u),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(u)})})}}};return c}var B3n="chakra-ui-color-mode";function z3n(n){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let c;try{c=localStorage.getItem(n)||r}catch{}return c||r},set(r){try{localStorage.setItem(n,r)}catch{}}}}var V3n=z3n(B3n),CCt=()=>{};function ICt(n,r){return n.type==="cookie"&&n.ssr?n.get(r):r}function D_t(n){const{value:r,children:c,options:{useSystemColorMode:u,initialColorMode:d,disableTransitionOnChange:p}={},colorModeManager:m=V3n}=n,x=d==="dark"?"dark":"light",[E,k]=U.exports.useState(()=>ICt(m,x)),[T,P]=U.exports.useState(()=>ICt(m)),{getSystemTheme:I,setClassName:O,setDataset:N,addListener:j}=U.exports.useMemo(()=>F3n({preventTransition:p}),[p]),L=d==="system"&&!E?T:E,$=U.exports.useCallback(X=>{const ne=X==="system"?I():X;k(ne),O(ne==="dark"),N(ne),m.set(ne)},[m,I,O,N]);Iw(()=>{d==="system"&&P(I())},[]),U.exports.useEffect(()=>{const X=m.get();if(X){$(X);return}if(d==="system"){$("system");return}$(x)},[m,x,d,$]);const F=U.exports.useCallback(()=>{$(L==="dark"?"light":"dark")},[L,$]);U.exports.useEffect(()=>{if(!!u)return j($)},[u,j,$]);const B=U.exports.useMemo(()=>({colorMode:r!=null?r:L,toggleColorMode:r?CCt:F,setColorMode:r?CCt:$,forced:r!==void 0}),[L,F,$,r]);return V(R_e.Provider,{value:B,children:c})}D_t.displayName="ColorModeProvider";var cAe={exports:{}};(function(n,r){var c=200,u="__lodash_hash_undefined__",d=800,p=16,m=9007199254740991,x="[object Arguments]",E="[object Array]",k="[object AsyncFunction]",T="[object Boolean]",P="[object Date]",I="[object Error]",O="[object Function]",N="[object GeneratorFunction]",j="[object Map]",L="[object Number]",$="[object Null]",F="[object Object]",B="[object Proxy]",X="[object RegExp]",ne="[object Set]",Z="[object String]",H="[object Undefined]",ce="[object WeakMap]",pe="[object ArrayBuffer]",le="[object DataView]",ye="[object Float32Array]",Ge="[object Float64Array]",qe="[object Int8Array]",et="[object Int16Array]",tt="[object Int32Array]",jt="[object Uint8Array]",Me="[object Uint8ClampedArray]",ze="[object Uint16Array]",we="[object Uint32Array]",De=/[\\^$.*+?()[\]{}|]/g,be=/^\[object .+?Constructor\]$/,Se=/^(?:0|[1-9]\d*)$/,Jt={};Jt[ye]=Jt[Ge]=Jt[qe]=Jt[et]=Jt[tt]=Jt[jt]=Jt[Me]=Jt[ze]=Jt[we]=!0,Jt[x]=Jt[E]=Jt[pe]=Jt[T]=Jt[le]=Jt[P]=Jt[I]=Jt[O]=Jt[j]=Jt[L]=Jt[F]=Jt[X]=Jt[ne]=Jt[Z]=Jt[ce]=!1;var sn=typeof KE=="object"&&KE&&KE.Object===Object&&KE,Tn=typeof self=="object"&&self&&self.Object===Object&&self,qn=sn||Tn||Function("return this")(),rr=r&&!r.nodeType&&r,Zn=rr&&!0&&n&&!n.nodeType&&n,Gr=Zn&&Zn.exports===rr,Je=Gr&&sn.process,ct=function(){try{var Ve=Zn&&Zn.require&&Zn.require("util").types;return Ve||Je&&Je.binding&&Je.binding("util")}catch{}}(),rn=ct&&ct.isTypedArray;function Ne(Ve,ht,Kt){switch(Kt.length){case 0:return Ve.call(ht);case 1:return Ve.call(ht,Kt[0]);case 2:return Ve.call(ht,Kt[0],Kt[1]);case 3:return Ve.call(ht,Kt[0],Kt[1],Kt[2])}return Ve.apply(ht,Kt)}function ae(Ve,ht){for(var Kt=-1,Qr=Array(Ve);++Kt-1}function VW(Ve,ht){var Kt=this.__data__,Qr=Xk(Kt,Ve);return Qr<0?(++this.size,Kt.push([Ve,ht])):Kt[Qr][1]=ht,this}Rb.prototype.clear=LW,Rb.prototype.delete=FW,Rb.prototype.get=BW,Rb.prototype.has=zW,Rb.prototype.set=VW;function u3(Ve){var ht=-1,Kt=Ve==null?0:Ve.length;for(this.clear();++ht1?Kt[Ds-1]:void 0,qc=Ds>2?Kt[2]:void 0;for(Ka=Ve.length>3&&typeof Ka=="function"?(Ds--,Ka):void 0,qc&&lG(Kt[0],Kt[1],qc)&&(Ka=Ds<3?void 0:Ka,Ds=1),ht=Object(ht);++Qr-1&&Ve%1==0&&Ve0){if(++ht>=d)return arguments[0]}else ht=0;return Ve.apply(void 0,arguments)}}function vG(Ve){if(Ve!=null){try{return Sr.call(Ve)}catch{}try{return Ve+""}catch{}}return""}function Zk(Ve,ht){return Ve===ht||Ve!==Ve&&ht!==ht}var Jk=kN(function(){return arguments}())?kN:function(Ve){return LS(Ve)&&Ur.call(Ve,"callee")&&!Hr.call(Ve,"callee")},pT=Array.isArray;function gT(Ve){return Ve!=null&&_N(Ve.length)&&!bT(Ve)}function yG(Ve){return LS(Ve)&&gT(Ve)}var ON=zi||kG;function bT(Ve){if(!$w(Ve))return!1;var ht=Kk(Ve);return ht==O||ht==N||ht==k||ht==B}function _N(Ve){return typeof Ve=="number"&&Ve>-1&&Ve%1==0&&Ve<=m}function $w(Ve){var ht=typeof Ve;return Ve!=null&&(ht=="object"||ht=="function")}function LS(Ve){return Ve!=null&&typeof Ve=="object"}function wG(Ve){if(!LS(Ve)||Kk(Ve)!=F)return!1;var ht=Nt(Ve);if(ht===null)return!0;var Kt=Ur.call(ht,"constructor")&&ht.constructor;return typeof Kt=="function"&&Kt instanceof Kt&&Sr.call(Kt)==Zc}var MN=rn?me(rn):ZW;function xG(Ve){return oG(Ve,DN(Ve))}function DN(Ve){return gT(Ve)?fT(Ve,!0):JW(Ve)}var SG=sG(function(Ve,ht,Kt,Qr){CN(Ve,ht,Kt,Qr)});function EG(Ve){return function(){return Ve}}function NN(Ve){return Ve}function kG(){return!1}n.exports=SG})(cAe,cAe.exports);const bv=cAe.exports;function Tw(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}function r7(n,...r){return U3n(n)?n(...r):n}var U3n=n=>typeof n=="function",H3n=n=>/!(important)?$/.test(n),TCt=n=>typeof n=="string"?n.replace(/!(important)?$/,"").trim():n,uAe=(n,r)=>c=>{const u=String(r),d=H3n(u),p=TCt(u),m=n?`${n}.${p}`:p;let x=Tw(c.__cssMap)&&m in c.__cssMap?c.__cssMap[m].varRef:r;return x=TCt(x),d?`${x} !important`:x};function KH(n){const{scale:r,transform:c,compose:u}=n;return(p,m)=>{var k;const x=uAe(r,p)(m);let E=(k=c==null?void 0:c(x,m))!=null?k:x;return u&&(E=u(E,m)),E}}var Woe=(...n)=>r=>n.reduce((c,u)=>u(c),r);function lw(n,r){return c=>{const u={property:c,scale:n};return u.transform=KH({scale:n,transform:r}),u}}var q3n=({rtl:n,ltr:r})=>c=>c.direction==="rtl"?n:r;function W3n(n){const{property:r,scale:c,transform:u}=n;return{scale:c,property:q3n(r),transform:c?KH({scale:c,compose:u}):u}}var N_t=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function G3n(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...N_t].join(" ")}function X3n(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...N_t].join(" ")}var K3n={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Y3n={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Q3n(n){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":n,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Z3n={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},j_t="& > :not(style) ~ :not(style)",J3n={[j_t]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},e4n={[j_t]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},lAe={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},t4n=new Set(Object.values(lAe)),R_t=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),n4n=n=>n.trim();function r4n(n,r){var P;var c;if(n==null||R_t.has(n))return n;const u=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:d,values:p}=(P=(c=u.exec(n))==null?void 0:c.groups)!=null?P:{};if(!d||!p)return n;const m=d.includes("-gradient")?d:`${d}-gradient`,[x,...E]=p.split(",").map(n4n).filter(Boolean);if((E==null?void 0:E.length)===0)return n;const k=x in lAe?lAe[x]:x;E.unshift(k);const T=E.map(I=>{if(t4n.has(I))return I;const O=I.indexOf(" "),[N,j]=O!==-1?[I.substr(0,O),I.substr(O+1)]:[I],L=$_t(j)?j:j&&j.split(" "),$=`colors.${N}`,F=$ in r.__cssMap?r.__cssMap[$].varRef:N;return L?[F,...Array.isArray(L)?L:[L]].join(" "):F});return`${m}(${T.join(", ")})`}var $_t=n=>typeof n=="string"&&n.includes("(")&&n.includes(")"),i4n=(n,r)=>r4n(n,r!=null?r:{});function o4n(n){return/^var\(--.+\)$/.test(n)}var s4n=n=>{const r=parseFloat(n.toString()),c=n.toString().replace(String(r),"");return{unitless:!c,value:r,unit:c}},vx=n=>r=>`${n}(${r})`,Ea={filter(n){return n!=="auto"?n:K3n},backdropFilter(n){return n!=="auto"?n:Y3n},ring(n){return Q3n(Ea.px(n))},bgClip(n){return n==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:n}},transform(n){return n==="auto"?G3n():n==="auto-gpu"?X3n():n},vh(n){return n==="$100vh"?"var(--chakra-vh)":n},px(n){if(n==null)return n;const{unitless:r}=s4n(n);return r||typeof n=="number"?`${n}px`:n},fraction(n){return typeof n!="number"||n>1?n:`${n*100}%`},float(n,r){const c={left:"right",right:"left"};return r.direction==="rtl"?c[n]:n},degree(n){if(o4n(n)||n==null)return n;const r=typeof n=="string"&&!n.endsWith("deg");return typeof n=="number"||r?`${n}deg`:n},gradient:i4n,blur:vx("blur"),opacity:vx("opacity"),brightness:vx("brightness"),contrast:vx("contrast"),dropShadow:vx("drop-shadow"),grayscale:vx("grayscale"),hueRotate:vx("hue-rotate"),invert:vx("invert"),saturate:vx("saturate"),sepia:vx("sepia"),bgImage(n){return n==null||$_t(n)||R_t.has(n)?n:`url(${n})`},outline(n){const r=String(n)==="0"||String(n)==="none";return n!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:n}},flexDirection(n){var d;const{space:r,divide:c}=(d=Z3n[n])!=null?d:{},u={flexDirection:n};return r&&(u[r]=1),c&&(u[c]=1),u}},Ct={borderWidths:lw("borderWidths"),borderStyles:lw("borderStyles"),colors:lw("colors"),borders:lw("borders"),radii:lw("radii",Ea.px),space:lw("space",Woe(Ea.vh,Ea.px)),spaceT:lw("space",Woe(Ea.vh,Ea.px)),degreeT(n){return{property:n,transform:Ea.degree}},prop(n,r,c){return{property:n,scale:r,...r&&{transform:KH({scale:r,transform:c})}}},propT(n,r){return{property:n,transform:r}},sizes:lw("sizes",Woe(Ea.vh,Ea.px)),sizesT:lw("sizes",Woe(Ea.vh,Ea.fraction)),shadows:lw("shadows"),logical:W3n,blur:lw("blur",Ea.blur)},dae={background:Ct.colors("background"),backgroundColor:Ct.colors("backgroundColor"),backgroundImage:Ct.propT("backgroundImage",Ea.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ea.bgClip},bgSize:Ct.prop("backgroundSize"),bgPosition:Ct.prop("backgroundPosition"),bg:Ct.colors("background"),bgColor:Ct.colors("backgroundColor"),bgPos:Ct.prop("backgroundPosition"),bgRepeat:Ct.prop("backgroundRepeat"),bgAttachment:Ct.prop("backgroundAttachment"),bgGradient:Ct.propT("backgroundImage",Ea.gradient),bgClip:{transform:Ea.bgClip}};Object.assign(dae,{bgImage:dae.backgroundImage,bgImg:dae.backgroundImage});var qa={border:Ct.borders("border"),borderWidth:Ct.borderWidths("borderWidth"),borderStyle:Ct.borderStyles("borderStyle"),borderColor:Ct.colors("borderColor"),borderRadius:Ct.radii("borderRadius"),borderTop:Ct.borders("borderTop"),borderBlockStart:Ct.borders("borderBlockStart"),borderTopLeftRadius:Ct.radii("borderTopLeftRadius"),borderStartStartRadius:Ct.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Ct.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Ct.radii("borderTopRightRadius"),borderStartEndRadius:Ct.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Ct.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Ct.borders("borderRight"),borderInlineEnd:Ct.borders("borderInlineEnd"),borderBottom:Ct.borders("borderBottom"),borderBlockEnd:Ct.borders("borderBlockEnd"),borderBottomLeftRadius:Ct.radii("borderBottomLeftRadius"),borderBottomRightRadius:Ct.radii("borderBottomRightRadius"),borderLeft:Ct.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Ct.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Ct.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Ct.borders(["borderLeft","borderRight"]),borderInline:Ct.borders("borderInline"),borderY:Ct.borders(["borderTop","borderBottom"]),borderBlock:Ct.borders("borderBlock"),borderTopWidth:Ct.borderWidths("borderTopWidth"),borderBlockStartWidth:Ct.borderWidths("borderBlockStartWidth"),borderTopColor:Ct.colors("borderTopColor"),borderBlockStartColor:Ct.colors("borderBlockStartColor"),borderTopStyle:Ct.borderStyles("borderTopStyle"),borderBlockStartStyle:Ct.borderStyles("borderBlockStartStyle"),borderBottomWidth:Ct.borderWidths("borderBottomWidth"),borderBlockEndWidth:Ct.borderWidths("borderBlockEndWidth"),borderBottomColor:Ct.colors("borderBottomColor"),borderBlockEndColor:Ct.colors("borderBlockEndColor"),borderBottomStyle:Ct.borderStyles("borderBottomStyle"),borderBlockEndStyle:Ct.borderStyles("borderBlockEndStyle"),borderLeftWidth:Ct.borderWidths("borderLeftWidth"),borderInlineStartWidth:Ct.borderWidths("borderInlineStartWidth"),borderLeftColor:Ct.colors("borderLeftColor"),borderInlineStartColor:Ct.colors("borderInlineStartColor"),borderLeftStyle:Ct.borderStyles("borderLeftStyle"),borderInlineStartStyle:Ct.borderStyles("borderInlineStartStyle"),borderRightWidth:Ct.borderWidths("borderRightWidth"),borderInlineEndWidth:Ct.borderWidths("borderInlineEndWidth"),borderRightColor:Ct.colors("borderRightColor"),borderInlineEndColor:Ct.colors("borderInlineEndColor"),borderRightStyle:Ct.borderStyles("borderRightStyle"),borderInlineEndStyle:Ct.borderStyles("borderInlineEndStyle"),borderTopRadius:Ct.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Ct.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Ct.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Ct.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(qa,{rounded:qa.borderRadius,roundedTop:qa.borderTopRadius,roundedTopLeft:qa.borderTopLeftRadius,roundedTopRight:qa.borderTopRightRadius,roundedTopStart:qa.borderStartStartRadius,roundedTopEnd:qa.borderStartEndRadius,roundedBottom:qa.borderBottomRadius,roundedBottomLeft:qa.borderBottomLeftRadius,roundedBottomRight:qa.borderBottomRightRadius,roundedBottomStart:qa.borderEndStartRadius,roundedBottomEnd:qa.borderEndEndRadius,roundedLeft:qa.borderLeftRadius,roundedRight:qa.borderRightRadius,roundedStart:qa.borderInlineStartRadius,roundedEnd:qa.borderInlineEndRadius,borderStart:qa.borderInlineStart,borderEnd:qa.borderInlineEnd,borderTopStartRadius:qa.borderStartStartRadius,borderTopEndRadius:qa.borderStartEndRadius,borderBottomStartRadius:qa.borderEndStartRadius,borderBottomEndRadius:qa.borderEndEndRadius,borderStartRadius:qa.borderInlineStartRadius,borderEndRadius:qa.borderInlineEndRadius,borderStartWidth:qa.borderInlineStartWidth,borderEndWidth:qa.borderInlineEndWidth,borderStartColor:qa.borderInlineStartColor,borderEndColor:qa.borderInlineEndColor,borderStartStyle:qa.borderInlineStartStyle,borderEndStyle:qa.borderInlineEndStyle});var a4n={color:Ct.colors("color"),textColor:Ct.colors("color"),fill:Ct.colors("fill"),stroke:Ct.colors("stroke")},fAe={boxShadow:Ct.shadows("boxShadow"),mixBlendMode:!0,blendMode:Ct.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Ct.prop("backgroundBlendMode"),opacity:!0};Object.assign(fAe,{shadow:fAe.boxShadow});var c4n={filter:{transform:Ea.filter},blur:Ct.blur("--chakra-blur"),brightness:Ct.propT("--chakra-brightness",Ea.brightness),contrast:Ct.propT("--chakra-contrast",Ea.contrast),hueRotate:Ct.degreeT("--chakra-hue-rotate"),invert:Ct.propT("--chakra-invert",Ea.invert),saturate:Ct.propT("--chakra-saturate",Ea.saturate),dropShadow:Ct.propT("--chakra-drop-shadow",Ea.dropShadow),backdropFilter:{transform:Ea.backdropFilter},backdropBlur:Ct.blur("--chakra-backdrop-blur"),backdropBrightness:Ct.propT("--chakra-backdrop-brightness",Ea.brightness),backdropContrast:Ct.propT("--chakra-backdrop-contrast",Ea.contrast),backdropHueRotate:Ct.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Ct.propT("--chakra-backdrop-invert",Ea.invert),backdropSaturate:Ct.propT("--chakra-backdrop-saturate",Ea.saturate)},fce={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ea.flexDirection},experimental_spaceX:{static:J3n,transform:KH({scale:"space",transform:n=>n!==null?{"--chakra-space-x":n}:null})},experimental_spaceY:{static:e4n,transform:KH({scale:"space",transform:n=>n!=null?{"--chakra-space-y":n}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Ct.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Ct.space("gap"),rowGap:Ct.space("rowGap"),columnGap:Ct.space("columnGap")};Object.assign(fce,{flexDir:fce.flexDirection});var L_t={gridGap:Ct.space("gridGap"),gridColumnGap:Ct.space("gridColumnGap"),gridRowGap:Ct.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},u4n={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ea.outline},outlineOffset:!0,outlineColor:Ct.colors("outlineColor")},sv={width:Ct.sizesT("width"),inlineSize:Ct.sizesT("inlineSize"),height:Ct.sizes("height"),blockSize:Ct.sizes("blockSize"),boxSize:Ct.sizes(["width","height"]),minWidth:Ct.sizes("minWidth"),minInlineSize:Ct.sizes("minInlineSize"),minHeight:Ct.sizes("minHeight"),minBlockSize:Ct.sizes("minBlockSize"),maxWidth:Ct.sizes("maxWidth"),maxInlineSize:Ct.sizes("maxInlineSize"),maxHeight:Ct.sizes("maxHeight"),maxBlockSize:Ct.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Ct.propT("float",Ea.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(sv,{w:sv.width,h:sv.height,minW:sv.minWidth,maxW:sv.maxWidth,minH:sv.minHeight,maxH:sv.maxHeight,overscroll:sv.overscrollBehavior,overscrollX:sv.overscrollBehaviorX,overscrollY:sv.overscrollBehaviorY});var l4n={listStyleType:!0,listStylePosition:!0,listStylePos:Ct.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Ct.prop("listStyleImage")};function f4n(n,r,c,u){const d=typeof r=="string"?r.split("."):[r];for(u=0;u{const r=new WeakMap;return(u,d,p,m)=>{if(typeof u>"u")return n(u,d,p);r.has(u)||r.set(u,new Map);const x=r.get(u);if(x.has(d))return x.get(d);const E=n(u,d,p,m);return x.set(d,E),E}},h4n=d4n(f4n),p4n={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},g4n={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},h9e=(n,r,c)=>{const u={},d=h4n(n,r,{});for(const p in d)p in c&&c[p]!=null||(u[p]=d[p]);return u},b4n={srOnly:{transform(n){return n===!0?p4n:n==="focusable"?g4n:{}}},layerStyle:{processResult:!0,transform:(n,r,c)=>h9e(r,`layerStyles.${n}`,c)},textStyle:{processResult:!0,transform:(n,r,c)=>h9e(r,`textStyles.${n}`,c)},apply:{processResult:!0,transform:(n,r,c)=>h9e(r,n,c)}},eH={position:!0,pos:Ct.prop("position"),zIndex:Ct.prop("zIndex","zIndices"),inset:Ct.spaceT("inset"),insetX:Ct.spaceT(["left","right"]),insetInline:Ct.spaceT("insetInline"),insetY:Ct.spaceT(["top","bottom"]),insetBlock:Ct.spaceT("insetBlock"),top:Ct.spaceT("top"),insetBlockStart:Ct.spaceT("insetBlockStart"),bottom:Ct.spaceT("bottom"),insetBlockEnd:Ct.spaceT("insetBlockEnd"),left:Ct.spaceT("left"),insetInlineStart:Ct.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Ct.spaceT("right"),insetInlineEnd:Ct.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(eH,{insetStart:eH.insetInlineStart,insetEnd:eH.insetInlineEnd});var m4n={ring:{transform:Ea.ring},ringColor:Ct.colors("--chakra-ring-color"),ringOffset:Ct.prop("--chakra-ring-offset-width"),ringOffsetColor:Ct.colors("--chakra-ring-offset-color"),ringInset:Ct.prop("--chakra-ring-inset")},Iu={margin:Ct.spaceT("margin"),marginTop:Ct.spaceT("marginTop"),marginBlockStart:Ct.spaceT("marginBlockStart"),marginRight:Ct.spaceT("marginRight"),marginInlineEnd:Ct.spaceT("marginInlineEnd"),marginBottom:Ct.spaceT("marginBottom"),marginBlockEnd:Ct.spaceT("marginBlockEnd"),marginLeft:Ct.spaceT("marginLeft"),marginInlineStart:Ct.spaceT("marginInlineStart"),marginX:Ct.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Ct.spaceT("marginInline"),marginY:Ct.spaceT(["marginTop","marginBottom"]),marginBlock:Ct.spaceT("marginBlock"),padding:Ct.space("padding"),paddingTop:Ct.space("paddingTop"),paddingBlockStart:Ct.space("paddingBlockStart"),paddingRight:Ct.space("paddingRight"),paddingBottom:Ct.space("paddingBottom"),paddingBlockEnd:Ct.space("paddingBlockEnd"),paddingLeft:Ct.space("paddingLeft"),paddingInlineStart:Ct.space("paddingInlineStart"),paddingInlineEnd:Ct.space("paddingInlineEnd"),paddingX:Ct.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Ct.space("paddingInline"),paddingY:Ct.space(["paddingTop","paddingBottom"]),paddingBlock:Ct.space("paddingBlock")};Object.assign(Iu,{m:Iu.margin,mt:Iu.marginTop,mr:Iu.marginRight,me:Iu.marginInlineEnd,marginEnd:Iu.marginInlineEnd,mb:Iu.marginBottom,ml:Iu.marginLeft,ms:Iu.marginInlineStart,marginStart:Iu.marginInlineStart,mx:Iu.marginX,my:Iu.marginY,p:Iu.padding,pt:Iu.paddingTop,py:Iu.paddingY,px:Iu.paddingX,pb:Iu.paddingBottom,pl:Iu.paddingLeft,ps:Iu.paddingInlineStart,paddingStart:Iu.paddingInlineStart,pr:Iu.paddingRight,pe:Iu.paddingInlineEnd,paddingEnd:Iu.paddingInlineEnd});var v4n={textDecorationColor:Ct.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Ct.shadows("textShadow")},y4n={clipPath:!0,transform:Ct.propT("transform",Ea.transform),transformOrigin:!0,translateX:Ct.spaceT("--chakra-translate-x"),translateY:Ct.spaceT("--chakra-translate-y"),skewX:Ct.degreeT("--chakra-skew-x"),skewY:Ct.degreeT("--chakra-skew-y"),scaleX:Ct.prop("--chakra-scale-x"),scaleY:Ct.prop("--chakra-scale-y"),scale:Ct.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Ct.degreeT("--chakra-rotate")},w4n={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Ct.prop("transitionDuration","transition.duration"),transitionProperty:Ct.prop("transitionProperty","transition.property"),transitionTimingFunction:Ct.prop("transitionTimingFunction","transition.easing")},x4n={fontFamily:Ct.prop("fontFamily","fonts"),fontSize:Ct.prop("fontSize","fontSizes",Ea.px),fontWeight:Ct.prop("fontWeight","fontWeights"),lineHeight:Ct.prop("lineHeight","lineHeights"),letterSpacing:Ct.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},S4n={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Ct.spaceT("scrollMargin"),scrollMarginTop:Ct.spaceT("scrollMarginTop"),scrollMarginBottom:Ct.spaceT("scrollMarginBottom"),scrollMarginLeft:Ct.spaceT("scrollMarginLeft"),scrollMarginRight:Ct.spaceT("scrollMarginRight"),scrollMarginX:Ct.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Ct.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Ct.spaceT("scrollPadding"),scrollPaddingTop:Ct.spaceT("scrollPaddingTop"),scrollPaddingBottom:Ct.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Ct.spaceT("scrollPaddingLeft"),scrollPaddingRight:Ct.spaceT("scrollPaddingRight"),scrollPaddingX:Ct.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Ct.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function F_t(n){return Tw(n)&&n.reference?n.reference:String(n)}var nle=(n,...r)=>r.map(F_t).join(` ${n} `).replace(/calc/g,""),ACt=(...n)=>`calc(${nle("+",...n)})`,PCt=(...n)=>`calc(${nle("-",...n)})`,dAe=(...n)=>`calc(${nle("*",...n)})`,OCt=(...n)=>`calc(${nle("/",...n)})`,_Ct=n=>{const r=F_t(n);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:dAe(r,-1)},X9=Object.assign(n=>({add:(...r)=>X9(ACt(n,...r)),subtract:(...r)=>X9(PCt(n,...r)),multiply:(...r)=>X9(dAe(n,...r)),divide:(...r)=>X9(OCt(n,...r)),negate:()=>X9(_Ct(n)),toString:()=>n.toString()}),{add:ACt,subtract:PCt,multiply:dAe,divide:OCt,negate:_Ct});function E4n(n,r="-"){return n.replace(/\s+/g,r)}function k4n(n){const r=E4n(n.toString());return I4n(C4n(r))}function C4n(n){return n.includes("\\.")?n:!Number.isInteger(parseFloat(n.toString()))?n.replace(".","\\."):n}function I4n(n){return n.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function T4n(n,r=""){return[r,n].filter(Boolean).join("-")}function A4n(n,r){return`var(${n}${r?`, ${r}`:""})`}function P4n(n,r=""){return k4n(`--${T4n(n,r)}`)}function Ld(n,r,c){const u=P4n(n,c);return{variable:u,reference:A4n(u,r)}}function O4n(n){const r=n==null?0:n.length;return r?n[r-1]:void 0}function _4n(n){const r=parseFloat(n.toString()),c=n.toString().replace(String(r),"");return{unitless:!c,value:r,unit:c}}function hAe(n){if(n==null)return n;const{unitless:r}=_4n(n);return r||typeof n=="number"?`${n}px`:n}var B_t=(n,r)=>parseInt(n[1],10)>parseInt(r[1],10)?1:-1,$_e=n=>Object.fromEntries(Object.entries(n).sort(B_t));function MCt(n){const r=$_e(n);return Object.assign(Object.values(r),r)}function M4n(n){const r=Object.keys($_e(n));return new Set(r)}function DCt(n){var c;if(!n)return n;n=(c=hAe(n))!=null?c:n;const r=n.endsWith("px")?-1:-.0625;return typeof n=="number"?`${n+r}`:n.replace(/(\d+\.?\d*)/u,u=>`${parseFloat(u)+r}`)}function IU(n,r){const c=["@media screen"];return n&&c.push("and",`(min-width: ${hAe(n)})`),r&&c.push("and",`(max-width: ${hAe(r)})`),c.join(" ")}function D4n(n){var p;if(!n)return null;n.base=(p=n.base)!=null?p:"0px";const r=MCt(n),c=Object.entries(n).sort(B_t).map(([m,x],E,k)=>{var P;let[,T]=(P=k[E+1])!=null?P:[];return T=parseFloat(T)>0?DCt(T):void 0,{_minW:DCt(x),breakpoint:m,minW:x,maxW:T,maxWQuery:IU(null,T),minWQuery:IU(x),minMaxQuery:IU(x,T)}}),u=M4n(n),d=Array.from(u.values());return{keys:u,normalized:r,isResponsive(m){const x=Object.keys(m);return x.length>0&&x.every(E=>u.has(E))},asObject:$_e(n),asArray:MCt(n),details:c,media:[null,...r.map(m=>IU(m)).slice(1)],toArrayValue(m){if(!Tw(m))throw new Error("toArrayValue: value must be an object");const x=d.map(E=>{var k;return(k=m[E])!=null?k:null});for(;O4n(x)===null;)x.pop();return x},toObjectValue(m){if(!Array.isArray(m))throw new Error("toObjectValue: value must be an array");return m.reduce((x,E,k)=>{const T=d[k];return T!=null&&E!=null&&(x[T]=E),x},{})}}}var Wh={hover:(n,r)=>`${n}:hover ${r}, ${n}[data-hover] ${r}`,focus:(n,r)=>`${n}:focus ${r}, ${n}[data-focus] ${r}`,focusVisible:(n,r)=>`${n}:focus-visible ${r}`,focusWithin:(n,r)=>`${n}:focus-within ${r}`,active:(n,r)=>`${n}:active ${r}, ${n}[data-active] ${r}`,disabled:(n,r)=>`${n}:disabled ${r}, ${n}[data-disabled] ${r}`,invalid:(n,r)=>`${n}:invalid ${r}, ${n}[data-invalid] ${r}`,checked:(n,r)=>`${n}:checked ${r}, ${n}[data-checked] ${r}`,indeterminate:(n,r)=>`${n}:indeterminate ${r}, ${n}[aria-checked=mixed] ${r}, ${n}[data-indeterminate] ${r}`,readOnly:(n,r)=>`${n}:read-only ${r}, ${n}[readonly] ${r}, ${n}[data-read-only] ${r}`,expanded:(n,r)=>`${n}:read-only ${r}, ${n}[aria-expanded=true] ${r}, ${n}[data-expanded] ${r}`,placeholderShown:(n,r)=>`${n}:placeholder-shown ${r}`},OE=n=>z_t(r=>n(r,"&"),"[role=group]","[data-group]",".group"),Y4=n=>z_t(r=>n(r,"~ &"),"[data-peer]",".peer"),z_t=(n,...r)=>r.map(n).join(", "),rle={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:OE(Wh.hover),_peerHover:Y4(Wh.hover),_groupFocus:OE(Wh.focus),_peerFocus:Y4(Wh.focus),_groupFocusVisible:OE(Wh.focusVisible),_peerFocusVisible:Y4(Wh.focusVisible),_groupActive:OE(Wh.active),_peerActive:Y4(Wh.active),_groupDisabled:OE(Wh.disabled),_peerDisabled:Y4(Wh.disabled),_groupInvalid:OE(Wh.invalid),_peerInvalid:Y4(Wh.invalid),_groupChecked:OE(Wh.checked),_peerChecked:Y4(Wh.checked),_groupFocusWithin:OE(Wh.focusWithin),_peerFocusWithin:Y4(Wh.focusWithin),_peerPlaceholderShown:Y4(Wh.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},N4n=Object.keys(rle);function NCt(n,r){return Ld(String(n).replace(/\./g,"-"),void 0,r)}function j4n(n,r){let c={};const u={};for(const[d,p]of Object.entries(n)){const{isSemantic:m,value:x}=p,{variable:E,reference:k}=NCt(d,r==null?void 0:r.cssVarPrefix);if(!m){if(d.startsWith("space")){const I=d.split("."),[O,...N]=I,j=`${O}.-${N.join(".")}`,L=X9.negate(x),$=X9.negate(k);u[j]={value:L,var:E,varRef:$}}c[E]=x,u[d]={value:x,var:E,varRef:k};continue}const T=I=>{const N=[String(d).split(".")[0],I].join(".");if(!n[N])return I;const{reference:L}=NCt(N,r==null?void 0:r.cssVarPrefix);return L},P=Tw(x)?x:{default:x};c=bv(c,Object.entries(P).reduce((I,[O,N])=>{var F;var j;const L=T(N);if(O==="default")return I[E]=L,I;const $=(F=(j=rle)==null?void 0:j[O])!=null?F:O;return I[$]={[E]:L},I},{})),u[d]={value:k,var:E,varRef:k}}return{cssVars:c,cssMap:u}}function R4n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function $4n(n,r){const c={};for(const u of r)u in n&&(c[u]=n[u]);return c}var L4n=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function F4n(n){return $4n(n,L4n)}function B4n(n){return n.semanticTokens}function z4n(n){const{__cssMap:r,__cssVars:c,__breakpoints:u,...d}=n;return d}function V4n({tokens:n,semanticTokens:r}){var d,p;const c=Object.entries((d=pAe(n))!=null?d:{}).map(([m,x])=>[m,{isSemantic:!1,value:x}]),u=Object.entries((p=pAe(r,1))!=null?p:{}).map(([m,x])=>[m,{isSemantic:!0,value:x}]);return Object.fromEntries([...c,...u])}function pAe(n,r=1/0){return!Tw(n)&&!Array.isArray(n)||!r?n:Object.entries(n).reduce((c,[u,d])=>(Tw(d)||Array.isArray(d)?Object.entries(pAe(d,r-1)).forEach(([p,m])=>{c[`${u}.${p}`]=m}):c[u]=d,c),{})}function U4n(n){var r;const c=z4n(n),u=F4n(c),d=B4n(c),p=V4n({tokens:u,semanticTokens:d}),m=(r=c.config)==null?void 0:r.cssVarPrefix,{cssMap:x,cssVars:E}=j4n(p,{cssVarPrefix:m});return Object.assign(c,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...E},__cssMap:x,__breakpoints:D4n(c.breakpoints)}),c}var L_e=bv({},dae,qa,a4n,fce,sv,c4n,m4n,u4n,L_t,b4n,eH,fAe,Iu,S4n,x4n,v4n,y4n,l4n,w4n),H4n=Object.assign({},Iu,sv,fce,L_t,eH),q4n=Object.keys(H4n),W4n=[...Object.keys(L_e),...N4n],G4n={...L_e,...rle},X4n=n=>n in G4n,K4n=n=>r=>{if(!r.__breakpoints)return n;const{isResponsive:c,toArrayValue:u,media:d}=r.__breakpoints,p={};for(const m in n){let x=r7(n[m],r);if(x==null)continue;if(x=Tw(x)&&c(x)?u(x):x,!Array.isArray(x)){p[m]=x;continue}const E=x.slice(0,d.length).length;for(let k=0;kn.startsWith("--")&&typeof r=="string"&&!Q4n(r),J4n=(n,r)=>{var m,x;if(r==null)return r;const c=E=>{var k,T;return(T=(k=n.__cssMap)==null?void 0:k[E])==null?void 0:T.varRef},u=E=>{var k;return(k=c(E))!=null?k:E},[d,p]=Y4n(r);return r=(x=(m=c(d))!=null?m:u(p))!=null?x:u(r),r};function eSn(n){const{configs:r={},pseudos:c={},theme:u}=n,d=(p,m=!1)=>{var P,I;var x;const E=r7(p,u),k=K4n(E)(u);let T={};for(let O in k){const N=k[O];let j=r7(N,u);O in c&&(O=c[O]),Z4n(O,j)&&(j=J4n(u,j));let L=r[O];if(L===!0&&(L={property:O}),Tw(j)){T[O]=(P=T[O])!=null?P:{},T[O]=bv({},T[O],d(j,!0));continue}let $=(I=(x=L==null?void 0:L.transform)==null?void 0:x.call(L,j,u,E))!=null?I:j;$=L!=null&&L.processResult?d($,!0):$;const F=r7(L==null?void 0:L.property,u);if(!m&&(L==null?void 0:L.static)){const B=r7(L.static,u);T=bv({},T,B)}if(F&&Array.isArray(F)){for(const B of F)T[B]=$;continue}if(F){F==="&"&&Tw($)?T=bv({},T,$):T[F]=$;continue}if(Tw($)){T=bv({},T,$);continue}T[O]=$}return T};return d}var V_t=n=>r=>eSn({theme:r,pseudos:rle,configs:L_e})(n);function rl(n){return{definePartsStyle(r){return r},defineMultiStyleConfig(r){return{parts:n,...r}}}}function tSn(n,r){if(Array.isArray(n))return n;if(Tw(n))return r(n);if(n!=null)return[n]}function nSn(n,r){for(let c=r+1;c{bv(k,{[B]:I?F[B]:{[$]:F[B]}})});continue}if(!O){I?bv(k,F):k[$]=F;continue}k[$]=F}}return k}}function iSn(n){return r=>{var m;const{variant:c,size:u,theme:d}=r,p=rSn(d);return bv({},r7((m=n.baseStyle)!=null?m:{},r),p(n,"sizes",u,r),p(n,"variants",c,r))}}function oSn(n,r,c){var p;var u,d;return(p=(d=(u=n.__cssMap)==null?void 0:u[`${r}.${c}`])==null?void 0:d.varRef)!=null?p:c}function Fa(n){return R4n(n,["styleConfig","size","variant","colorScheme"])}function sSn(n){if(n.sheet)return n.sheet;for(var r=0;r0?Zh(JD,--ig):0,bD--,Jf===10&&(bD=1,ole--),Jf}function Ib(){return Jf=ig2||QH(Jf)>3?"":" "}function vSn(n,r){for(;--r&&Ib()&&!(Jf<48||Jf>102||Jf>57&&Jf<65||Jf>70&&Jf<97););return Yq(n,hae()+(r<6&&Ux()==32&&Ib()==32))}function bAe(n){for(;Ib();)switch(Jf){case n:return ig;case 34:case 39:n!==34&&n!==39&&bAe(Jf);break;case 40:n===41&&bAe(n);break;case 92:Ib();break}return ig}function ySn(n,r){for(;Ib()&&n+Jf!==47+10;)if(n+Jf===42+42&&Ux()===47)break;return"/*"+Yq(r,ig-1)+"*"+ile(n===47?n:Ib())}function wSn(n){for(;!QH(Ux());)Ib();return Yq(n,ig)}function xSn(n){return X_t(gae("",null,null,null,[""],n=G_t(n),0,[0],n))}function gae(n,r,c,u,d,p,m,x,E){for(var k=0,T=0,P=m,I=0,O=0,N=0,j=1,L=1,$=1,F=0,B="",X=d,ne=p,Z=u,H=B;L;)switch(N=F,F=Ib()){case 40:if(N!=108&&Zh(H,P-1)==58){gAe(H+=ic(pae(F),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:H+=pae(F);break;case 9:case 10:case 13:case 32:H+=mSn(N);break;case 92:H+=vSn(hae()-1,7);continue;case 47:switch(Ux()){case 42:case 47:Goe(SSn(ySn(Ib(),hae()),r,c),E);break;default:H+="/"}break;case 123*j:x[k++]=Ox(H)*$;case 125*j:case 59:case 0:switch(F){case 0:case 125:L=0;case 59+T:O>0&&Ox(H)-P&&Goe(O>32?RCt(H+";",u,c,P-1):RCt(ic(H," ","")+";",u,c,P-2),E);break;case 59:H+=";";default:if(Goe(Z=jCt(H,r,c,k,T,d,x,B,X=[],ne=[],P),p),F===123)if(T===0)gae(H,r,Z,Z,X,p,P,x,ne);else switch(I===99&&Zh(H,3)===110?100:I){case 100:case 109:case 115:gae(n,Z,Z,u&&Goe(jCt(n,Z,Z,0,0,d,x,B,d,X=[],P),ne),d,ne,P,x,u?X:ne);break;default:gae(H,Z,Z,Z,[""],ne,0,x,ne)}}k=T=O=0,j=$=1,B=H="",P=m;break;case 58:P=1+Ox(H),O=N;default:if(j<1){if(F==123)--j;else if(F==125&&j++==0&&bSn()==125)continue}switch(H+=ile(F),F*j){case 38:$=T>0?1:(H+="\f",-1);break;case 44:x[k++]=(Ox(H)-1)*$,$=1;break;case 64:Ux()===45&&(H+=pae(Ib())),I=Ux(),T=P=Ox(B=H+=wSn(hae())),F++;break;case 45:N===45&&Ox(H)==2&&(j=0)}}return p}function jCt(n,r,c,u,d,p,m,x,E,k,T){for(var P=d-1,I=d===0?p:[""],O=z_e(I),N=0,j=0,L=0;N0?I[$]+" "+F:ic(F,/&\f/g,I[$])))&&(E[L++]=B);return sle(n,r,c,d===0?F_e:x,E,k,T)}function SSn(n,r,c){return sle(n,r,c,U_t,ile(gSn()),YH(n,2,-2),0)}function RCt(n,r,c,u){return sle(n,r,c,B_e,YH(n,0,u),YH(n,u+1,-1),u)}function qM(n,r){for(var c="",u=z_e(n),d=0;d6)switch(Zh(n,r+1)){case 109:if(Zh(n,r+4)!==45)break;case 102:return ic(n,/(.+:)(.+)-([^]+)/,"$1"+Wa+"$2-$3$1"+dce+(Zh(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~gAe(n,"stretch")?K_t(ic(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Zh(n,r+1)!==115)break;case 6444:switch(Zh(n,Ox(n)-3-(~gAe(n,"!important")&&10))){case 107:return ic(n,":",":"+Wa)+n;case 101:return ic(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wa+(Zh(n,14)===45?"inline-":"")+"box$3$1"+Wa+"$2$3$1"+R1+"$2box$3")+n}break;case 5936:switch(Zh(n,r+11)){case 114:return Wa+n+R1+ic(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Wa+n+R1+ic(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Wa+n+R1+ic(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Wa+n+R1+n+n}return n}var _Sn=function(r,c,u,d){if(r.length>-1&&!r.return)switch(r.type){case B_e:r.return=K_t(r.value,r.length);break;case H_t:return qM([nU(r,{value:ic(r.value,"@","@"+Wa)})],d);case F_e:if(r.length)return pSn(r.props,function(p){switch(hSn(p,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qM([nU(r,{props:[ic(p,/:(read-\w+)/,":"+dce+"$1")]})],d);case"::placeholder":return qM([nU(r,{props:[ic(p,/:(plac\w+)/,":"+Wa+"input-$1")]}),nU(r,{props:[ic(p,/:(plac\w+)/,":"+dce+"$1")]}),nU(r,{props:[ic(p,/:(plac\w+)/,R1+"input-$1")]})],d)}return""})}},MSn=[_Sn],DSn=function(r){var c=r.key;if(c==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(j){var L=j.getAttribute("data-emotion");L.indexOf(" ")!==-1&&(document.head.appendChild(j),j.setAttribute("data-s",""))})}var d=r.stylisPlugins||MSn,p={},m,x=[];m=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+c+' "]'),function(j){for(var L=j.getAttribute("data-emotion").split(" "),$=1;$=4;++u,d-=4)c=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,r=(c&65535)*1540483477+((c>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var USn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function HSn(n){var r=Object.create(null);return function(c){return r[c]===void 0&&(r[c]=n(c)),r[c]}}var qSn=/[A-Z]|^ms/g,WSn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tMt=function(r){return r.charCodeAt(1)===45},FCt=function(r){return r!=null&&typeof r!="boolean"},p9e=HSn(function(n){return tMt(n)?n:n.replace(qSn,"-$&").toLowerCase()}),BCt=function(r,c){switch(r){case"animation":case"animationName":if(typeof c=="string")return c.replace(WSn,function(u,d,p){return _x={name:d,styles:p,next:_x},d})}return USn[r]!==1&&!tMt(r)&&typeof c=="number"&&c!==0?c+"px":c};function ZH(n,r,c){if(c==null)return"";if(c.__emotion_styles!==void 0)return c;switch(typeof c){case"boolean":return"";case"object":{if(c.anim===1)return _x={name:c.name,styles:c.styles,next:_x},c.name;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)_x={name:u.name,styles:u.styles,next:_x},u=u.next;var d=c.styles+";";return d}return GSn(n,r,c)}case"function":{if(n!==void 0){var p=_x,m=c(n);return _x=p,ZH(n,r,m)}break}}if(r==null)return c;var x=r[c];return x!==void 0?x:c}function GSn(n,r,c){var u="";if(Array.isArray(c))for(var d=0;d{r.includes(u)||(c[u]=n[u])}),c}function a5n(n,r,c,u){const d=typeof r=="string"?r.split("."):[r];for(u=0;u{const r=new WeakMap;return(u,d,p,m)=>{if(typeof u>"u")return n(u,d,p);r.has(u)||r.set(u,new Map);const x=r.get(u);if(x.has(d))return x.get(d);const E=n(u,d,p,m);return x.set(d,E),E}},oMt=c5n(a5n);function sMt(n,r){const c={};return Object.keys(n).forEach(u=>{const d=n[u];r(d,u,n)&&(c[u]=d)}),c}var aMt=n=>sMt(n,r=>r!=null);function u5n(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var l5n=u5n(),bae=n=>n?"":void 0,cMt=(...n)=>n.filter(Boolean).join(" ");function uMt(n,...r){return o5n(n)?n(...r):n}function f5n(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}Object.freeze(["base","sm","md","lg","xl","2xl"]);function d5n(n={}){const{strict:r=!0,errorMessage:c="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:u}=n,d=U.exports.createContext(void 0);d.displayName=u;function p(){var m;const x=U.exports.useContext(d);if(!x&&r){const E=new Error(c);throw E.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,E,p),E}return x}return[d.Provider,p,d]}function ia(){return ia=Object.assign||function(n){for(var r=1;r=4;++u,d-=4)c=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,r=(c&65535)*1540483477+((c>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var y5n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w5n=/[A-Z]|^ms/g,x5n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fMt=function(r){return r.charCodeAt(1)===45},UCt=function(r){return r!=null&&typeof r!="boolean"},g9e=lMt(function(n){return fMt(n)?n:n.replace(w5n,"-$&").toLowerCase()}),HCt=function(r,c){switch(r){case"animation":case"animationName":if(typeof c=="string")return c.replace(x5n,function(u,d,p){return Mx={name:d,styles:p,next:Mx},d})}return y5n[r]!==1&&!fMt(r)&&typeof c=="number"&&c!==0?c+"px":c};function JH(n,r,c){if(c==null)return"";if(c.__emotion_styles!==void 0)return c;switch(typeof c){case"boolean":return"";case"object":{if(c.anim===1)return Mx={name:c.name,styles:c.styles,next:Mx},c.name;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Mx={name:u.name,styles:u.styles,next:Mx},u=u.next;var d=c.styles+";";return d}return S5n(n,r,c)}case"function":{if(n!==void 0){var p=Mx,m=c(n);return Mx=p,JH(n,r,m)}break}}if(r==null)return c;var x=r[c];return x!==void 0?x:c}function S5n(n,r,c){var u="";if(Array.isArray(c))for(var d=0;d96?k5n:C5n},GCt=function(r,c,u){var d;if(c){var p=c.shouldForwardProp;d=r.__emotion_forwardProp&&p?function(m){return r.__emotion_forwardProp(m)&&p(m)}:p}return typeof d!="function"&&u&&(d=r.__emotion_forwardProp),d},I5n=function n(r,c){var u=r.__emotion_real===r,d=u&&r.__emotion_base||r,p,m;c!==void 0&&(p=c.label,m=c.target);var x=GCt(r,c,u),E=x||WCt(d),k=!E("as");return function(){var T=arguments,P=u&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(p!==void 0&&P.push("label:"+p+";"),T[0]==null||T[0].raw===void 0)P.push.apply(P,T);else{P.push(T[0][0]);for(var I=T.length,O=1;O[P,I.selector]))}function x(){return Object.fromEntries(Object.entries(r).map(([P,I])=>[P,I.className]))}function E(T){const O=`chakra-${(["container","root"].includes(T!=null?T:"")?[n]:[n,T]).filter(Boolean).join("__")}`;return{className:O,selector:`.${O}`,toString:()=>T}}return{parts:d,toPart:E,extend:p,selectors:m,classnames:x,get keys(){return Object.keys(r)},__type:{}}}var A5n=cc("accordion").parts("root","container","button","panel").extend("icon"),P5n=cc("alert").parts("title","description","container").extend("icon","spinner"),O5n=cc("avatar").parts("label","badge","container").extend("excessLabel","group"),_5n=cc("breadcrumb").parts("link","item","container").extend("separator");cc("button").parts();var M5n=cc("checkbox").parts("control","icon","container").extend("label");cc("progress").parts("track","filledTrack").extend("label");var D5n=cc("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),N5n=cc("editable").parts("preview","input","textarea"),j5n=cc("form").parts("container","requiredIndicator","helperText"),R5n=cc("formError").parts("text","icon"),$5n=cc("input").parts("addon","field","element"),L5n=cc("list").parts("container","item","icon"),F5n=cc("menu").parts("button","list","item").extend("groupTitle","command","divider"),B5n=cc("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),z5n=cc("numberinput").parts("root","field","stepperGroup","stepper");cc("pininput").parts("field");var V5n=cc("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),U5n=cc("progress").parts("label","filledTrack","track"),H5n=cc("radio").parts("container","control","label"),q5n=cc("select").parts("field","icon"),W5n=cc("slider").parts("container","track","thumb","filledTrack","mark"),G5n=cc("stat").parts("container","label","helpText","number","icon"),X5n=cc("switch").parts("container","track","thumb"),K5n=cc("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Y5n=cc("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Q5n=cc("tag").parts("container","label","closeButton");function t1(n,r){Z5n(n)&&(n="100%");var c=J5n(n);return n=r===360?n:Math.min(r,Math.max(0,parseFloat(n))),c&&(n=parseInt(String(n*r),10)/100),Math.abs(n-r)<1e-6?1:(r===360?n=(n<0?n%r+r:n%r)/parseFloat(String(r)):n=n%r/parseFloat(String(r)),n)}function Xoe(n){return Math.min(1,Math.max(0,n))}function Z5n(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function J5n(n){return typeof n=="string"&&n.indexOf("%")!==-1}function dMt(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Koe(n){return n<=1?Number(n)*100+"%":n}function i7(n){return n.length===1?"0"+n:String(n)}function e6n(n,r,c){return{r:t1(n,255)*255,g:t1(r,255)*255,b:t1(c,255)*255}}function XCt(n,r,c){n=t1(n,255),r=t1(r,255),c=t1(c,255);var u=Math.max(n,r,c),d=Math.min(n,r,c),p=0,m=0,x=(u+d)/2;if(u===d)m=0,p=0;else{var E=u-d;switch(m=x>.5?E/(2-u-d):E/(u+d),u){case n:p=(r-c)/E+(r1&&(c-=1),c<1/6?n+(r-n)*(6*c):c<1/2?r:c<2/3?n+(r-n)*(2/3-c)*6:n}function t6n(n,r,c){var u,d,p;if(n=t1(n,360),r=t1(r,100),c=t1(c,100),r===0)d=c,p=c,u=c;else{var m=c<.5?c*(1+r):c+r-c*r,x=2*c-m;u=b9e(x,m,n+1/3),d=b9e(x,m,n),p=b9e(x,m,n-1/3)}return{r:u*255,g:d*255,b:p*255}}function KCt(n,r,c){n=t1(n,255),r=t1(r,255),c=t1(c,255);var u=Math.max(n,r,c),d=Math.min(n,r,c),p=0,m=u,x=u-d,E=u===0?0:x/u;if(u===d)p=0;else{switch(u){case n:p=(r-c)/x+(r>16,g:(n&65280)>>8,b:n&255}}var wAe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function s6n(n){var r={r:0,g:0,b:0},c=1,u=null,d=null,p=null,m=!1,x=!1;return typeof n=="string"&&(n=u6n(n)),typeof n=="object"&&(Q4(n.r)&&Q4(n.g)&&Q4(n.b)?(r=e6n(n.r,n.g,n.b),m=!0,x=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Q4(n.h)&&Q4(n.s)&&Q4(n.v)?(u=Koe(n.s),d=Koe(n.v),r=n6n(n.h,u,d),m=!0,x="hsv"):Q4(n.h)&&Q4(n.s)&&Q4(n.l)&&(u=Koe(n.s),p=Koe(n.l),r=t6n(n.h,u,p),m=!0,x="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(c=n.a)),c=dMt(c),{ok:m,format:n.format||x,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:c}}var a6n="[-\\+]?\\d+%?",c6n="[-\\+]?\\d*\\.\\d+%?",ZE="(?:"+c6n+")|(?:"+a6n+")",m9e="[\\s|\\(]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")\\s*\\)?",v9e="[\\s|\\(]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")\\s*\\)?",gw={CSS_UNIT:new RegExp(ZE),rgb:new RegExp("rgb"+m9e),rgba:new RegExp("rgba"+v9e),hsl:new RegExp("hsl"+m9e),hsla:new RegExp("hsla"+v9e),hsv:new RegExp("hsv"+m9e),hsva:new RegExp("hsva"+v9e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function u6n(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var r=!1;if(wAe[n])n=wAe[n],r=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c=gw.rgb.exec(n);return c?{r:c[1],g:c[2],b:c[3]}:(c=gw.rgba.exec(n),c?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=gw.hsl.exec(n),c?{h:c[1],s:c[2],l:c[3]}:(c=gw.hsla.exec(n),c?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=gw.hsv.exec(n),c?{h:c[1],s:c[2],v:c[3]}:(c=gw.hsva.exec(n),c?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=gw.hex8.exec(n),c?{r:bb(c[1]),g:bb(c[2]),b:bb(c[3]),a:QCt(c[4]),format:r?"name":"hex8"}:(c=gw.hex6.exec(n),c?{r:bb(c[1]),g:bb(c[2]),b:bb(c[3]),format:r?"name":"hex"}:(c=gw.hex4.exec(n),c?{r:bb(c[1]+c[1]),g:bb(c[2]+c[2]),b:bb(c[3]+c[3]),a:QCt(c[4]+c[4]),format:r?"name":"hex8"}:(c=gw.hex3.exec(n),c?{r:bb(c[1]+c[1]),g:bb(c[2]+c[2]),b:bb(c[3]+c[3]),format:r?"name":"hex"}:!1)))))))))}function Q4(n){return Boolean(gw.CSS_UNIT.exec(String(n)))}var Y7=function(){function n(r,c){r===void 0&&(r=""),c===void 0&&(c={});var u;if(r instanceof n)return r;typeof r=="number"&&(r=o6n(r)),this.originalInput=r;var d=s6n(r);this.originalInput=r,this.r=d.r,this.g=d.g,this.b=d.b,this.a=d.a,this.roundA=Math.round(100*this.a)/100,this.format=(u=c.format)!==null&&u!==void 0?u:d.format,this.gradientType=c.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=d.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},n.prototype.getLuminance=function(){var r=this.toRgb(),c,u,d,p=r.r/255,m=r.g/255,x=r.b/255;return p<=.03928?c=p/12.92:c=Math.pow((p+.055)/1.055,2.4),m<=.03928?u=m/12.92:u=Math.pow((m+.055)/1.055,2.4),x<=.03928?d=x/12.92:d=Math.pow((x+.055)/1.055,2.4),.2126*c+.7152*u+.0722*d},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(r){return this.a=dMt(r),this.roundA=Math.round(100*this.a)/100,this},n.prototype.toHsv=function(){var r=KCt(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},n.prototype.toHsvString=function(){var r=KCt(this.r,this.g,this.b),c=Math.round(r.h*360),u=Math.round(r.s*100),d=Math.round(r.v*100);return this.a===1?"hsv("+c+", "+u+"%, "+d+"%)":"hsva("+c+", "+u+"%, "+d+"%, "+this.roundA+")"},n.prototype.toHsl=function(){var r=XCt(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},n.prototype.toHslString=function(){var r=XCt(this.r,this.g,this.b),c=Math.round(r.h*360),u=Math.round(r.s*100),d=Math.round(r.l*100);return this.a===1?"hsl("+c+", "+u+"%, "+d+"%)":"hsla("+c+", "+u+"%, "+d+"%, "+this.roundA+")"},n.prototype.toHex=function(r){return r===void 0&&(r=!1),YCt(this.r,this.g,this.b,r)},n.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},n.prototype.toHex8=function(r){return r===void 0&&(r=!1),r6n(this.r,this.g,this.b,this.a,r)},n.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var r=Math.round(this.r),c=Math.round(this.g),u=Math.round(this.b);return this.a===1?"rgb("+r+", "+c+", "+u+")":"rgba("+r+", "+c+", "+u+", "+this.roundA+")"},n.prototype.toPercentageRgb=function(){var r=function(c){return Math.round(t1(c,255)*100)+"%"};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var r=function(c){return Math.round(t1(c,255)*100)};return this.a===1?"rgb("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%)":"rgba("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%, "+this.roundA+")"},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+YCt(this.r,this.g,this.b,!1),c=0,u=Object.entries(wAe);c=0,p=!c&&d&&(r.startsWith("hex")||r==="name");return p?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(u=this.toRgbString()),r==="prgb"&&(u=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(u=this.toHexString()),r==="hex3"&&(u=this.toHexString(!0)),r==="hex4"&&(u=this.toHex8String(!0)),r==="hex8"&&(u=this.toHex8String()),r==="name"&&(u=this.toName()),r==="hsl"&&(u=this.toHslString()),r==="hsv"&&(u=this.toHsvString()),u||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.l+=r/100,c.l=Xoe(c.l),new n(c)},n.prototype.brighten=function(r){r===void 0&&(r=10);var c=this.toRgb();return c.r=Math.max(0,Math.min(255,c.r-Math.round(255*-(r/100)))),c.g=Math.max(0,Math.min(255,c.g-Math.round(255*-(r/100)))),c.b=Math.max(0,Math.min(255,c.b-Math.round(255*-(r/100)))),new n(c)},n.prototype.darken=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.l-=r/100,c.l=Xoe(c.l),new n(c)},n.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},n.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},n.prototype.desaturate=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.s-=r/100,c.s=Xoe(c.s),new n(c)},n.prototype.saturate=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.s+=r/100,c.s=Xoe(c.s),new n(c)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(r){var c=this.toHsl(),u=(c.h+r)%360;return c.h=u<0?360+u:u,new n(c)},n.prototype.mix=function(r,c){c===void 0&&(c=50);var u=this.toRgb(),d=new n(r).toRgb(),p=c/100,m={r:(d.r-u.r)*p+u.r,g:(d.g-u.g)*p+u.g,b:(d.b-u.b)*p+u.b,a:(d.a-u.a)*p+u.a};return new n(m)},n.prototype.analogous=function(r,c){r===void 0&&(r=6),c===void 0&&(c=30);var u=this.toHsl(),d=360/c,p=[this];for(u.h=(u.h-(d*r>>1)+720)%360;--r;)u.h=(u.h+d)%360,p.push(new n(u));return p},n.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new n(r)},n.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var c=this.toHsv(),u=c.h,d=c.s,p=c.v,m=[],x=1/r;r--;)m.push(new n({h:u,s:d,v:p})),p=(p+x)%1;return m},n.prototype.splitcomplement=function(){var r=this.toHsl(),c=r.h;return[this,new n({h:(c+72)%360,s:r.s,l:r.l}),new n({h:(c+216)%360,s:r.s,l:r.l})]},n.prototype.onBackground=function(r){var c=this.toRgb(),u=new n(r).toRgb();return new n({r:u.r+(c.r-u.r)*c.a,g:u.g+(c.g-u.g)*c.a,b:u.b+(c.b-u.b)*c.a})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(r){for(var c=this.toHsl(),u=c.h,d=[this],p=360/r,m=1;mc.length;)n.count=null,n.seed&&(n.seed+=1),c.push(hMt(n));return n.count=r,c}var u=l6n(n.hue,n.seed),d=f6n(u,n),p=d6n(u,d,n),m={h:u,s:d,v:p};return n.alpha!==void 0&&(m.a=n.alpha),new Y7(m)}function l6n(n,r){var c=p6n(n),u=hce(c,r);return u<0&&(u=360+u),u}function f6n(n,r){if(r.hue==="monochrome")return 0;if(r.luminosity==="random")return hce([0,100],r.seed);var c=pMt(n).saturationRange,u=c[0],d=c[1];switch(r.luminosity){case"bright":u=55;break;case"dark":u=d-10;break;case"light":d=55;break}return hce([u,d],r.seed)}function d6n(n,r,c){var u=h6n(n,r),d=100;switch(c.luminosity){case"dark":d=u+20;break;case"light":u=(d+u)/2;break;case"random":u=0,d=100;break}return hce([u,d],c.seed)}function h6n(n,r){for(var c=pMt(n).lowerBounds,u=0;u=d&&r<=m){var E=(x-p)/(m-d),k=p-E*d;return E*r+k}}return 0}function p6n(n){var r=parseInt(n,10);if(!Number.isNaN(r)&&r<360&&r>0)return[r,r];if(typeof n=="string"){var c=bMt.find(function(m){return m.name===n});if(c){var u=gMt(c);if(u.hueRange)return u.hueRange}var d=new Y7(n);if(d.isValid){var p=d.toHsv().h;return[p,p]}}return[0,360]}function pMt(n){n>=334&&n<=360&&(n-=360);for(var r=0,c=bMt;r=d.hueRange[0]&&n<=d.hueRange[1])return d}throw Error("Color not found")}function hce(n,r){if(r===void 0)return Math.floor(n[0]+Math.random()*(n[1]+1-n[0]));var c=n[1]||1,u=n[0]||0;r=(r*9301+49297)%233280;var d=r/233280;return Math.floor(u+d*(c-u))}function gMt(n){var r=n.lowerBounds[0][0],c=n.lowerBounds[n.lowerBounds.length-1][0],u=n.lowerBounds[n.lowerBounds.length-1][1],d=n.lowerBounds[0][1];return{name:n.name,hueRange:n.hueRange,lowerBounds:n.lowerBounds,saturationRange:[r,c],brightnessRange:[u,d]}}var bMt=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function g6n(n,r,c,u,d){for(r=r.split?r.split("."):r,u=0;uObject.keys(n).length===0,Nd=(n,r,c)=>{const u=g6n(n,`colors.${r}`,r),{isValid:d}=new Y7(u);return d?u:c},m6n=n=>r=>{const c=Nd(r,n);return new Y7(c).isDark()?"dark":"light"},v6n=n=>r=>m6n(n)(r)==="dark",mD=(n,r)=>c=>{const u=Nd(c,n);return new Y7(u).setAlpha(r).toRgbString()},y6n=(n,r)=>c=>{const u=Nd(c,n);return new Y7(u).darken(r).toHexString()},w6n=(n,r)=>c=>new Y7(Nd(c,n)).lighten(r).toHexString();function ZCt(n="1rem",r="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${r} 25%, - transparent 25%, - transparent 50%, - ${r} 50%, - ${r} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${n} ${n}`}}function x6n(n){const r=hMt().toHexString();return!n||b6n(n)?r:n.string&&n.colors?E6n(n.string,n.colors):n.string&&!n.colors?S6n(n.string):n.colors&&!n.string?k6n(n.colors):r}function S6n(n){let r=0;if(n.length===0)return r.toString();for(let u=0;u>u*8&255).toString(16)}`.substr(-2);return c}function E6n(n,r){let c=0;if(n.length===0)return r[0];for(let u=0;uc.colorMode==="dark"?r:n}function K_e(n){const{orientation:r,vertical:c,horizontal:u}=n;return r?r==="vertical"?c:u:{}}function C6n(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}function mMt(n){return C6n(n)&&n.reference?n.reference:String(n)}var yle=(n,...r)=>r.map(mMt).join(` ${n} `).replace(/calc/g,""),JCt=(...n)=>`calc(${yle("+",...n)})`,e8t=(...n)=>`calc(${yle("-",...n)})`,xAe=(...n)=>`calc(${yle("*",...n)})`,t8t=(...n)=>`calc(${yle("/",...n)})`,n8t=n=>{const r=mMt(n);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:xAe(r,-1)},oS=Object.assign(n=>({add:(...r)=>oS(JCt(n,...r)),subtract:(...r)=>oS(e8t(n,...r)),multiply:(...r)=>oS(xAe(n,...r)),divide:(...r)=>oS(t8t(n,...r)),negate:()=>oS(n8t(n)),toString:()=>n.toString()}),{add:JCt,subtract:e8t,multiply:xAe,divide:t8t,negate:n8t});function I6n(n){return!Number.isInteger(parseFloat(n.toString()))}function T6n(n,r="-"){return n.replace(/\s+/g,r)}function vMt(n){const r=T6n(n.toString());return r.includes("\\.")?n:I6n(n)?r.replace(".","\\."):n}function A6n(n,r=""){return[r,vMt(n)].filter(Boolean).join("-")}function P6n(n,r){return`var(${vMt(n)}${r?`, ${r}`:""})`}function O6n(n,r=""){return`--${A6n(n,r)}`}function V1(n,r){const c=O6n(n,r==null?void 0:r.prefix);return{variable:c,reference:P6n(c,_6n(r==null?void 0:r.fallback))}}function _6n(n){return typeof n=="string"?n:n==null?void 0:n.reference}var{definePartsStyle:M6n,defineMultiStyleConfig:D6n}=rl(A5n.keys),N6n={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},j6n={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},R6n={pt:"2",px:"4",pb:"5"},$6n={fontSize:"1.25em"},L6n=M6n({container:N6n,button:j6n,panel:R6n,icon:$6n}),F6n=D6n({baseStyle:L6n}),{definePartsStyle:Jq,defineMultiStyleConfig:B6n}=rl(P5n.keys),Tb=Ld("alert-fg"),xS=Ld("alert-bg"),z6n=Jq({container:{bg:xS.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Tb.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Tb.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Y_e(n){const{theme:r,colorScheme:c}=n,u=mD(`${c}.200`,.16)(r);return{light:`colors.${c}.100`,dark:u}}var V6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark}}}}),U6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Tb.reference}}}),H6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Tb.reference}}}),q6n=Jq(n=>{const{colorScheme:r}=n;return{container:{[Tb.variable]:"colors.white",[xS.variable]:`colors.${r}.500`,_dark:{[Tb.variable]:"colors.gray.900",[xS.variable]:`colors.${r}.200`},color:Tb.reference}}}),W6n={subtle:V6n,"left-accent":U6n,"top-accent":H6n,solid:q6n},G6n=B6n({baseStyle:z6n,variants:W6n,defaultProps:{variant:"subtle",colorScheme:"blue"}}),yMt={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},X6n={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},K6n={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Y6n={...yMt,...X6n,container:K6n},wMt=Y6n,Q6n=n=>typeof n=="function";function yh(n,...r){return Q6n(n)?n(...r):n}var{definePartsStyle:xMt,defineMultiStyleConfig:Z6n}=rl(O5n.keys),WM=Ld("avatar-border-color"),y9e=Ld("avatar-bg"),J6n={borderRadius:"full",border:"0.2em solid",[WM.variable]:"white",_dark:{[WM.variable]:"colors.gray.800"},borderColor:WM.reference},eEn={[y9e.variable]:"colors.gray.200",_dark:{[y9e.variable]:"colors.whiteAlpha.400"},bgColor:y9e.reference},r8t=Ld("avatar-background"),tEn=n=>{const{name:r,theme:c}=n,u=r?x6n({string:r}):"colors.gray.400",d=v6n(u)(c);let p="white";return d||(p="gray.800"),{bg:r8t.reference,"&:not([data-loaded])":{[r8t.variable]:u},color:p,[WM.variable]:"colors.white",_dark:{[WM.variable]:"colors.gray.800"},borderColor:WM.reference,verticalAlign:"top"}},nEn=xMt(n=>({badge:yh(J6n,n),excessLabel:yh(eEn,n),container:yh(tEn,n)}));function _E(n){const r=n!=="100%"?wMt[n]:void 0;return xMt({container:{width:n,height:n,fontSize:`calc(${r!=null?r:n} / 2.5)`},excessLabel:{width:n,height:n},label:{fontSize:`calc(${r!=null?r:n} / 2.5)`,lineHeight:n!=="100%"?r!=null?r:n:void 0}})}var rEn={"2xs":_E(4),xs:_E(6),sm:_E(8),md:_E(12),lg:_E(16),xl:_E(24),"2xl":_E(32),full:_E("100%")},iEn=Z6n({baseStyle:nEn,sizes:rEn,defaultProps:{size:"md"}}),oEn={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},GM=Ld("badge-bg"),Fx=Ld("badge-color"),sEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.500`,.6)(c);return{[GM.variable]:`colors.${r}.500`,[Fx.variable]:"colors.white",_dark:{[GM.variable]:u,[Fx.variable]:"colors.whiteAlpha.800"},bg:GM.reference,color:Fx.reference}},aEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.200`,.16)(c);return{[GM.variable]:`colors.${r}.100`,[Fx.variable]:`colors.${r}.800`,_dark:{[GM.variable]:u,[Fx.variable]:`colors.${r}.200`},bg:GM.reference,color:Fx.reference}},cEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.200`,.8)(c);return{[Fx.variable]:`colors.${r}.500`,_dark:{[Fx.variable]:u},color:Fx.reference,boxShadow:`inset 0 0 0px 1px ${Fx.reference}`}},uEn={solid:sEn,subtle:aEn,outline:cEn},tH={baseStyle:oEn,variants:uEn,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:lEn,definePartsStyle:fEn}=rl(_5n.keys),dEn={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},hEn=fEn({link:dEn}),pEn=lEn({baseStyle:hEn}),gEn={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},SMt=n=>{const{colorScheme:r,theme:c}=n;if(r==="gray")return{color:Or("inherit","whiteAlpha.900")(n),_hover:{bg:Or("gray.100","whiteAlpha.200")(n)},_active:{bg:Or("gray.200","whiteAlpha.300")(n)}};const u=mD(`${r}.200`,.12)(c),d=mD(`${r}.200`,.24)(c);return{color:Or(`${r}.600`,`${r}.200`)(n),bg:"transparent",_hover:{bg:Or(`${r}.50`,u)(n)},_active:{bg:Or(`${r}.100`,d)(n)}}},bEn=n=>{const{colorScheme:r}=n,c=Or("gray.200","whiteAlpha.300")(n);return{border:"1px solid",borderColor:r==="gray"?c:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...yh(SMt,n)}},mEn={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},vEn=n=>{var x;const{colorScheme:r}=n;if(r==="gray"){const E=Or("gray.100","whiteAlpha.200")(n);return{bg:E,_hover:{bg:Or("gray.200","whiteAlpha.300")(n),_disabled:{bg:E}},_active:{bg:Or("gray.300","whiteAlpha.400")(n)}}}const{bg:c=`${r}.500`,color:u="white",hoverBg:d=`${r}.600`,activeBg:p=`${r}.700`}=(x=mEn[r])!=null?x:{},m=Or(c,`${r}.200`)(n);return{bg:m,color:Or(u,"gray.800")(n),_hover:{bg:Or(d,`${r}.300`)(n),_disabled:{bg:m}},_active:{bg:Or(p,`${r}.400`)(n)}}},yEn=n=>{const{colorScheme:r}=n;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Or(`${r}.500`,`${r}.200`)(n),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Or(`${r}.700`,`${r}.500`)(n)}}},wEn={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},xEn={ghost:SMt,outline:bEn,solid:vEn,link:yEn,unstyled:wEn},SEn={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},EEn={baseStyle:gEn,variants:xEn,sizes:SEn,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:mae,defineMultiStyleConfig:kEn}=rl(M5n.keys),nH=Ld("checkbox-size"),CEn=n=>{const{colorScheme:r}=n;return{w:nH.reference,h:nH.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Or(`${r}.500`,`${r}.200`)(n),borderColor:Or(`${r}.500`,`${r}.200`)(n),color:Or("white","gray.900")(n),_hover:{bg:Or(`${r}.600`,`${r}.300`)(n),borderColor:Or(`${r}.600`,`${r}.300`)(n)},_disabled:{borderColor:Or("gray.200","transparent")(n),bg:Or("gray.200","whiteAlpha.300")(n),color:Or("gray.500","whiteAlpha.500")(n)}},_indeterminate:{bg:Or(`${r}.500`,`${r}.200`)(n),borderColor:Or(`${r}.500`,`${r}.200`)(n),color:Or("white","gray.900")(n)},_disabled:{bg:Or("gray.100","whiteAlpha.100")(n),borderColor:Or("gray.100","transparent")(n)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Or("red.500","red.300")(n)}}},IEn={_disabled:{cursor:"not-allowed"}},TEn={userSelect:"none",_disabled:{opacity:.4}},AEn={transitionProperty:"transform",transitionDuration:"normal"},PEn=mae(n=>({icon:AEn,container:IEn,control:yh(CEn,n),label:TEn})),OEn={sm:mae({control:{[nH.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:mae({control:{[nH.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:mae({control:{[nH.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},pce=kEn({baseStyle:PEn,sizes:OEn,defaultProps:{size:"md",colorScheme:"blue"}}),rH=V1("close-button-size"),rU=V1("close-button-bg"),_En={w:[rH.reference],h:[rH.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[rU.variable]:"colors.blackAlpha.100",_dark:{[rU.variable]:"colors.whiteAlpha.100"}},_active:{[rU.variable]:"colors.blackAlpha.200",_dark:{[rU.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:rU.reference},MEn={lg:{[rH.variable]:"sizes.10",fontSize:"md"},md:{[rH.variable]:"sizes.8",fontSize:"xs"},sm:{[rH.variable]:"sizes.6",fontSize:"2xs"}},DEn={baseStyle:_En,sizes:MEn,defaultProps:{size:"md"}},{variants:NEn,defaultProps:jEn}=tH,REn={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},$En={baseStyle:REn,variants:NEn,defaultProps:jEn},LEn={w:"100%",mx:"auto",maxW:"prose",px:"4"},FEn={baseStyle:LEn},BEn={opacity:.6,borderColor:"inherit"},zEn={borderStyle:"solid"},VEn={borderStyle:"dashed"},UEn={solid:zEn,dashed:VEn},HEn={baseStyle:BEn,variants:UEn,defaultProps:{variant:"solid"}},{definePartsStyle:SAe,defineMultiStyleConfig:qEn}=rl(D5n.keys),w9e=Ld("drawer-bg"),x9e=Ld("drawer-box-shadow");function V_(n){return SAe(n==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:n}})}var WEn={bg:"blackAlpha.600",zIndex:"overlay"},GEn={display:"flex",zIndex:"modal",justifyContent:"center"},XEn=n=>{const{isFullHeight:r}=n;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[w9e.variable]:"colors.white",[x9e.variable]:"shadows.lg",_dark:{[w9e.variable]:"colors.gray.700",[x9e.variable]:"shadows.dark-lg"},bg:w9e.reference,boxShadow:x9e.reference}},KEn={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YEn={position:"absolute",top:"2",insetEnd:"3"},QEn={px:"6",py:"2",flex:"1",overflow:"auto"},ZEn={px:"6",py:"4"},JEn=SAe(n=>({overlay:WEn,dialogContainer:GEn,dialog:yh(XEn,n),header:KEn,closeButton:YEn,body:QEn,footer:ZEn})),ekn={xs:V_("xs"),sm:V_("md"),md:V_("lg"),lg:V_("2xl"),xl:V_("4xl"),full:V_("full")},tkn=qEn({baseStyle:JEn,sizes:ekn,defaultProps:{size:"xs"}}),{definePartsStyle:nkn,defineMultiStyleConfig:rkn}=rl(N5n.keys),ikn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},okn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},skn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},akn=nkn({preview:ikn,input:okn,textarea:skn}),ckn=rkn({baseStyle:akn}),{definePartsStyle:ukn,defineMultiStyleConfig:lkn}=rl(j5n.keys),XM=Ld("form-control-color"),fkn={marginStart:"1",[XM.variable]:"colors.red.500",_dark:{[XM.variable]:"colors.red.300"},color:XM.reference},dkn={mt:"2",[XM.variable]:"colors.gray.600",_dark:{[XM.variable]:"colors.whiteAlpha.600"},color:XM.reference,lineHeight:"normal",fontSize:"sm"},hkn=ukn({container:{width:"100%",position:"relative"},requiredIndicator:fkn,helperText:dkn}),pkn=lkn({baseStyle:hkn}),{definePartsStyle:gkn,defineMultiStyleConfig:bkn}=rl(R5n.keys),KM=Ld("form-error-color"),mkn={[KM.variable]:"colors.red.500",_dark:{[KM.variable]:"colors.red.300"},color:KM.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},vkn={marginEnd:"0.5em",[KM.variable]:"colors.red.500",_dark:{[KM.variable]:"colors.red.300"},color:KM.reference},ykn=gkn({text:mkn,icon:vkn}),wkn=bkn({baseStyle:ykn}),xkn={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Skn={baseStyle:xkn},Ekn={fontFamily:"heading",fontWeight:"bold"},kkn={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Ckn={baseStyle:Ekn,sizes:kkn,defaultProps:{size:"xl"}},{definePartsStyle:fS,defineMultiStyleConfig:Ikn}=rl($5n.keys),Tkn=fS({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ME={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},Akn={lg:fS({field:ME.lg,addon:ME.lg}),md:fS({field:ME.md,addon:ME.md}),sm:fS({field:ME.sm,addon:ME.sm}),xs:fS({field:ME.xs,addon:ME.xs})};function Q_e(n){const{focusBorderColor:r,errorBorderColor:c}=n;return{focusBorderColor:r||Or("blue.500","blue.300")(n),errorBorderColor:c||Or("red.500","red.300")(n)}}var Pkn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Or("gray.300","whiteAlpha.400")(n)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u),boxShadow:`0 0 0 1px ${Nd(r,u)}`},_focusVisible:{zIndex:1,borderColor:Nd(r,c),boxShadow:`0 0 0 1px ${Nd(r,c)}`}},addon:{border:"1px solid",borderColor:Or("inherit","whiteAlpha.50")(n),bg:Or("gray.100","whiteAlpha.300")(n)}}}),Okn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{border:"2px solid",borderColor:"transparent",bg:Or("gray.100","whiteAlpha.50")(n),_hover:{bg:Or("gray.200","whiteAlpha.100")(n)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u)},_focusVisible:{bg:"transparent",borderColor:Nd(r,c)}},addon:{border:"2px solid",borderColor:"transparent",bg:Or("gray.100","whiteAlpha.50")(n)}}}),_kn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u),boxShadow:`0px 1px 0px 0px ${Nd(r,u)}`},_focusVisible:{borderColor:Nd(r,c),boxShadow:`0px 1px 0px 0px ${Nd(r,c)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Mkn=fS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Dkn={outline:Pkn,filled:Okn,flushed:_kn,unstyled:Mkn},Ga=Ikn({baseStyle:Tkn,sizes:Akn,variants:Dkn,defaultProps:{size:"md",variant:"outline"}}),Nkn=n=>({bg:Or("gray.100","whiteAlpha")(n),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),jkn={baseStyle:Nkn},Rkn={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},$kn={baseStyle:Rkn},{defineMultiStyleConfig:Lkn,definePartsStyle:Fkn}=rl(L5n.keys),Bkn={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},zkn=Fkn({icon:Bkn}),Vkn=Lkn({baseStyle:zkn}),{defineMultiStyleConfig:Ukn,definePartsStyle:Hkn}=rl(F5n.keys),qkn=n=>({bg:Or("#fff","gray.700")(n),boxShadow:Or("sm","dark-lg")(n),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Wkn=n=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:Or("gray.100","whiteAlpha.100")(n)},_active:{bg:Or("gray.200","whiteAlpha.200")(n)},_expanded:{bg:Or("gray.100","whiteAlpha.100")(n)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Gkn={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Xkn={opacity:.6},Kkn={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Ykn={transitionProperty:"common",transitionDuration:"normal"},Qkn=Hkn(n=>({button:Ykn,list:yh(qkn,n),item:yh(Wkn,n),groupTitle:Gkn,command:Xkn,divider:Kkn})),Zkn=Ukn({baseStyle:Qkn}),{defineMultiStyleConfig:Jkn,definePartsStyle:EAe}=rl(B5n.keys),eCn={bg:"blackAlpha.600",zIndex:"modal"},tCn=n=>{const{isCentered:r,scrollBehavior:c}=n;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:c==="inside"?"hidden":"auto"}},nCn=n=>{const{scrollBehavior:r}=n;return{borderRadius:"md",bg:Or("white","gray.700")(n),color:"inherit",my:"16",zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:Or("lg","dark-lg")(n)}},rCn={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},iCn={position:"absolute",top:"2",insetEnd:"3"},oCn=n=>{const{scrollBehavior:r}=n;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}},sCn={px:"6",py:"4"},aCn=EAe(n=>({overlay:eCn,dialogContainer:yh(tCn,n),dialog:yh(nCn,n),header:rCn,closeButton:iCn,body:yh(oCn,n),footer:sCn}));function fw(n){return EAe(n==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:n}})}var cCn={xs:fw("xs"),sm:fw("sm"),md:fw("md"),lg:fw("lg"),xl:fw("xl"),"2xl":fw("2xl"),"3xl":fw("3xl"),"4xl":fw("4xl"),"5xl":fw("5xl"),"6xl":fw("6xl"),full:fw("full")},uCn=Jkn({baseStyle:aCn,sizes:cCn,defaultProps:{size:"md"}}),lCn={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},EMt=lCn,{defineMultiStyleConfig:fCn,definePartsStyle:kMt}=rl(z5n.keys),Z_e=V1("number-input-stepper-width"),CMt=V1("number-input-input-padding"),dCn=oS(Z_e).add("0.5rem").toString(),hCn={[Z_e.variable]:"sizes.6",[CMt.variable]:dCn},pCn=n=>{var c;var r;return(c=(r=yh(Ga.baseStyle,n))==null?void 0:r.field)!=null?c:{}},gCn={width:[Z_e.reference]},bCn=n=>({borderStart:"1px solid",borderStartColor:Or("inherit","whiteAlpha.300")(n),color:Or("inherit","whiteAlpha.800")(n),_active:{bg:Or("gray.200","whiteAlpha.300")(n)},_disabled:{opacity:.4,cursor:"not-allowed"}}),mCn=kMt(n=>{var r,c;return{root:hCn,field:(r=yh(pCn,n))!=null?r:{},stepperGroup:gCn,stepper:(c=yh(bCn,n))!=null?c:{}}});function Yoe(n){var x;var r,c;const u=(r=Ga.sizes)==null?void 0:r[n],d={lg:"md",md:"md",sm:"sm",xs:"sm"},p=(x=(c=u.field)==null?void 0:c.fontSize)!=null?x:"md",m=EMt.fontSizes[p];return kMt({field:{...u.field,paddingInlineEnd:CMt.reference,verticalAlign:"top"},stepper:{fontSize:oS(m).multiply(.75).toString(),_first:{borderTopEndRadius:d[n]},_last:{borderBottomEndRadius:d[n],mt:"-1px",borderTopWidth:1}}})}var vCn={xs:Yoe("xs"),sm:Yoe("sm"),md:Yoe("md"),lg:Yoe("lg")},yCn=fCn({baseStyle:mCn,sizes:vCn,variants:Ga.variants,defaultProps:Ga.defaultProps}),i8t,wCn={...(i8t=Ga.baseStyle)==null?void 0:i8t.field,textAlign:"center"},xCn={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},o8t,gPt,SCn={outline:n=>{var u;var r,c;return(u=(c=yh((r=Ga.variants)==null?void 0:r.outline,n))==null?void 0:c.field)!=null?u:{}},flushed:n=>{var u;var r,c;return(u=(c=yh((r=Ga.variants)==null?void 0:r.flushed,n))==null?void 0:c.field)!=null?u:{}},filled:n=>{var u;var r,c;return(u=(c=yh((r=Ga.variants)==null?void 0:r.filled,n))==null?void 0:c.field)!=null?u:{}},unstyled:(gPt=(o8t=Ga.variants)==null?void 0:o8t.unstyled.field)!=null?gPt:{}},ECn={baseStyle:wCn,sizes:xCn,variants:SCn,defaultProps:Ga.defaultProps},{defineMultiStyleConfig:kCn,definePartsStyle:CCn}=rl(V5n.keys),Qoe=V1("popper-bg"),ICn=V1("popper-arrow-bg"),s8t=V1("popper-arrow-shadow-color"),TCn={zIndex:10},ACn={[Qoe.variable]:"colors.white",bg:Qoe.reference,[ICn.variable]:Qoe.reference,[s8t.variable]:"colors.gray.200",_dark:{[Qoe.variable]:"colors.gray.700",[s8t.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},PCn={px:3,py:2,borderBottomWidth:"1px"},OCn={px:3,py:2},_Cn={px:3,py:2,borderTopWidth:"1px"},MCn={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},DCn=CCn({popper:TCn,content:ACn,header:PCn,body:OCn,footer:_Cn,closeButton:MCn}),NCn=kCn({baseStyle:DCn}),{defineMultiStyleConfig:jCn,definePartsStyle:TU}=rl(U5n.keys),RCn=n=>{const{colorScheme:r,theme:c,isIndeterminate:u,hasStripe:d}=n,p=Or(ZCt(),ZCt("1rem","rgba(0,0,0,0.1)"))(n),m=Or(`${r}.500`,`${r}.200`)(n),x=`linear-gradient( - to right, - transparent 0%, - ${Nd(c,m)} 50%, - transparent 100% - )`;return{...!u&&d&&p,...u?{bgImage:x}:{bgColor:m}}},$Cn={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},LCn=n=>({bg:Or("gray.100","whiteAlpha.300")(n)}),FCn=n=>({transitionProperty:"common",transitionDuration:"slow",...RCn(n)}),BCn=TU(n=>({label:$Cn,filledTrack:FCn(n),track:LCn(n)})),zCn={xs:TU({track:{h:"1"}}),sm:TU({track:{h:"2"}}),md:TU({track:{h:"3"}}),lg:TU({track:{h:"4"}})},VCn=jCn({sizes:zCn,baseStyle:BCn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:UCn,definePartsStyle:vae}=rl(H5n.keys),HCn=n=>{var r;const c=(r=yh(pce.baseStyle,n))==null?void 0:r.control;return{...c,borderRadius:"full",_checked:{...c==null?void 0:c._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},qCn=vae(n=>{var r,c,u,d;return{label:(c=(r=pce).baseStyle)==null?void 0:c.call(r,n).label,container:(d=(u=pce).baseStyle)==null?void 0:d.call(u,n).container,control:HCn(n)}}),WCn={md:vae({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:vae({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:vae({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},GCn=UCn({baseStyle:qCn,sizes:WCn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:XCn,definePartsStyle:KCn}=rl(q5n.keys),YCn=n=>{var r;return{...(r=Ga.baseStyle)==null?void 0:r.field,bg:Or("white","gray.700")(n),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Or("white","gray.700")(n)}}},QCn={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ZCn=KCn(n=>({field:YCn(n),icon:QCn})),Zoe={paddingInlineEnd:"8"},a8t,c8t,u8t,l8t,f8t,d8t,h8t,p8t,JCn={lg:{...(a8t=Ga.sizes)==null?void 0:a8t.lg,field:{...(c8t=Ga.sizes)==null?void 0:c8t.lg.field,...Zoe}},md:{...(u8t=Ga.sizes)==null?void 0:u8t.md,field:{...(l8t=Ga.sizes)==null?void 0:l8t.md.field,...Zoe}},sm:{...(f8t=Ga.sizes)==null?void 0:f8t.sm,field:{...(d8t=Ga.sizes)==null?void 0:d8t.sm.field,...Zoe}},xs:{...(h8t=Ga.sizes)==null?void 0:h8t.xs,field:{...(p8t=Ga.sizes)==null?void 0:p8t.xs.field,...Zoe},icon:{insetEnd:"1"}}},e8n=XCn({baseStyle:ZCn,sizes:JCn,variants:Ga.variants,defaultProps:Ga.defaultProps}),t8n=Ld("skeleton-start-color"),n8n=Ld("skeleton-end-color"),r8n=n=>{const r=Or("gray.100","gray.800")(n),c=Or("gray.400","gray.600")(n),{startColor:u=r,endColor:d=c,theme:p}=n,m=Nd(p,u),x=Nd(p,d);return{[t8n.variable]:m,[n8n.variable]:x,opacity:.7,borderRadius:"2px",borderColor:m,background:x}},i8n={baseStyle:r8n},S9e=Ld("skip-link-bg"),o8n={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[S9e.variable]:"colors.white",_dark:{[S9e.variable]:"colors.gray.700"},bg:S9e.reference}},s8n={baseStyle:o8n},{defineMultiStyleConfig:a8n,definePartsStyle:wle}=rl(W5n.keys),eq=Ld("slider-thumb-size"),tq=Ld("slider-track-size"),qE=Ld("slider-bg"),c8n=n=>{const{orientation:r}=n;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...K_e({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}},u8n=n=>({...K_e({orientation:n.orientation,horizontal:{h:tq.reference},vertical:{w:tq.reference}}),overflow:"hidden",borderRadius:"sm",[qE.variable]:"colors.gray.200",_dark:{[qE.variable]:"colors.whiteAlpha.200"},_disabled:{[qE.variable]:"colors.gray.300",_dark:{[qE.variable]:"colors.whiteAlpha.300"}},bg:qE.reference}),l8n=n=>{const{orientation:r}=n;return{...K_e({orientation:r,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:eq.reference,h:eq.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},f8n=n=>{const{colorScheme:r}=n;return{width:"inherit",height:"inherit",[qE.variable]:`colors.${r}.500`,_dark:{[qE.variable]:`colors.${r}.200`},bg:qE.reference}},d8n=wle(n=>({container:c8n(n),track:u8n(n),thumb:l8n(n),filledTrack:f8n(n)})),h8n=wle({container:{[eq.variable]:"sizes.4",[tq.variable]:"sizes.1"}}),p8n=wle({container:{[eq.variable]:"sizes.3.5",[tq.variable]:"sizes.1"}}),g8n=wle({container:{[eq.variable]:"sizes.2.5",[tq.variable]:"sizes.0.5"}}),b8n={lg:h8n,md:p8n,sm:g8n},m8n=a8n({baseStyle:d8n,sizes:b8n,defaultProps:{size:"md",colorScheme:"blue"}}),K9=V1("spinner-size"),v8n={width:[K9.reference],height:[K9.reference]},y8n={xs:{[K9.variable]:"sizes.3"},sm:{[K9.variable]:"sizes.4"},md:{[K9.variable]:"sizes.6"},lg:{[K9.variable]:"sizes.8"},xl:{[K9.variable]:"sizes.12"}},w8n={baseStyle:v8n,sizes:y8n,defaultProps:{size:"md"}},{defineMultiStyleConfig:x8n,definePartsStyle:IMt}=rl(G5n.keys),S8n={fontWeight:"medium"},E8n={opacity:.8,marginBottom:"2"},k8n={verticalAlign:"baseline",fontWeight:"semibold"},C8n={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},I8n=IMt({container:{},label:S8n,helpText:E8n,number:k8n,icon:C8n}),T8n={md:IMt({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},A8n=x8n({baseStyle:I8n,sizes:T8n,defaultProps:{size:"md"}}),{defineMultiStyleConfig:P8n,definePartsStyle:yae}=rl(X5n.keys),iH=V1("switch-track-width"),b7=V1("switch-track-height"),E9e=V1("switch-track-diff"),O8n=oS.subtract(iH,b7),kAe=V1("switch-thumb-x"),iU=V1("switch-bg"),_8n=n=>{const{colorScheme:r}=n;return{borderRadius:"full",p:"0.5",width:[iH.reference],height:[b7.reference],transitionProperty:"common",transitionDuration:"fast",[iU.variable]:"colors.gray.300",_dark:{[iU.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[iU.variable]:`colors.${r}.500`,_dark:{[iU.variable]:`colors.${r}.200`}},bg:iU.reference}},M8n={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[b7.reference],height:[b7.reference],_checked:{transform:`translateX(${kAe.reference})`}},D8n=yae(n=>({container:{[E9e.variable]:O8n,[kAe.variable]:E9e.reference,_rtl:{[kAe.variable]:oS(E9e).negate().toString()}},track:_8n(n),thumb:M8n})),N8n={sm:yae({container:{[iH.variable]:"1.375rem",[b7.variable]:"sizes.3"}}),md:yae({container:{[iH.variable]:"1.875rem",[b7.variable]:"sizes.4"}}),lg:yae({container:{[iH.variable]:"2.875rem",[b7.variable]:"sizes.6"}})},j8n=P8n({baseStyle:D8n,sizes:N8n,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:R8n,definePartsStyle:YM}=rl(K5n.keys),$8n=YM({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),gce={"&[data-is-numeric=true]":{textAlign:"end"}},L8n=YM(n=>{const{colorScheme:r}=n;return{th:{color:Or("gray.600","gray.400")(n),borderBottom:"1px",borderColor:Or(`${r}.100`,`${r}.700`)(n),...gce},td:{borderBottom:"1px",borderColor:Or(`${r}.100`,`${r}.700`)(n),...gce},caption:{color:Or("gray.600","gray.100")(n)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),F8n=YM(n=>{const{colorScheme:r}=n;return{th:{color:Or("gray.600","gray.400")(n),borderBottom:"1px",borderColor:Or(`${r}.100`,`${r}.700`)(n),...gce},td:{borderBottom:"1px",borderColor:Or(`${r}.100`,`${r}.700`)(n),...gce},caption:{color:Or("gray.600","gray.100")(n)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Or(`${r}.100`,`${r}.700`)(n)},td:{background:Or(`${r}.100`,`${r}.700`)(n)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),B8n={simple:L8n,striped:F8n,unstyled:{}},z8n={sm:YM({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:YM({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:YM({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},V8n=R8n({baseStyle:$8n,variants:B8n,sizes:z8n,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:U8n,definePartsStyle:Hx}=rl(Y5n.keys),H8n=n=>{const{orientation:r}=n;return{display:r==="vertical"?"flex":"block"}},q8n=n=>{const{isFitted:r}=n;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},W8n=n=>{const{align:r="start",orientation:c}=n;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:c==="vertical"?"column":"row"}},G8n={p:4},X8n=Hx(n=>({root:H8n(n),tab:q8n(n),tablist:W8n(n),tabpanel:G8n})),K8n={sm:Hx({tab:{py:1,px:4,fontSize:"sm"}}),md:Hx({tab:{fontSize:"md",py:2,px:4}}),lg:Hx({tab:{fontSize:"lg",py:3,px:4}})},Y8n=Hx(n=>{const{colorScheme:r,orientation:c}=n,u=c==="vertical",d=c==="vertical"?"borderStart":"borderBottom",p=u?"marginStart":"marginBottom";return{tablist:{[d]:"2px solid",borderColor:"inherit"},tab:{[d]:"2px solid",borderColor:"transparent",[p]:"-2px",_selected:{color:Or(`${r}.600`,`${r}.300`)(n),borderColor:"currentColor"},_active:{bg:Or("gray.200","whiteAlpha.300")(n)},_disabled:{_active:{bg:"none"}}}}}),Q8n=Hx(n=>{const{colorScheme:r}=n;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:Or(`${r}.600`,`${r}.300`)(n),borderColor:"inherit",borderBottomColor:Or("white","gray.800")(n)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Z8n=Hx(n=>{const{colorScheme:r}=n;return{tab:{border:"1px solid",borderColor:"inherit",bg:Or("gray.50","whiteAlpha.50")(n),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:Or("#fff","gray.800")(n),color:Or(`${r}.600`,`${r}.300`)(n),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),J8n=Hx(n=>{const{colorScheme:r,theme:c}=n;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Nd(c,`${r}.700`),bg:Nd(c,`${r}.100`)}}}}),eIn=Hx(n=>{const{colorScheme:r}=n;return{tab:{borderRadius:"full",fontWeight:"semibold",color:Or("gray.600","inherit")(n),_selected:{color:Or("#fff","gray.800")(n),bg:Or(`${r}.600`,`${r}.300`)(n)}}}}),tIn=Hx({}),nIn={line:Y8n,enclosed:Q8n,"enclosed-colored":Z8n,"soft-rounded":J8n,"solid-rounded":eIn,unstyled:tIn},rIn=U8n({baseStyle:X8n,sizes:K8n,variants:nIn,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iIn,definePartsStyle:m7}=rl(Q5n.keys),oIn={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},sIn={lineHeight:1.2,overflow:"visible"},aIn={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},cIn=m7({container:oIn,label:sIn,closeButton:aIn}),uIn={sm:m7({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:m7({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:m7({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},lIn={subtle:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.subtle(n)}}),solid:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.solid(n)}}),outline:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.outline(n)}})},fIn=iIn({variants:lIn,baseStyle:cIn,sizes:uIn,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),g8t,dIn={...(g8t=Ga.baseStyle)==null?void 0:g8t.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},b8t,bPt,hIn={outline:n=>{var c;var r;return(c=(r=Ga.variants)==null?void 0:r.outline(n).field)!=null?c:{}},flushed:n=>{var c;var r;return(c=(r=Ga.variants)==null?void 0:r.flushed(n).field)!=null?c:{}},filled:n=>{var c;var r;return(c=(r=Ga.variants)==null?void 0:r.filled(n).field)!=null?c:{}},unstyled:(bPt=(b8t=Ga.variants)==null?void 0:b8t.unstyled.field)!=null?bPt:{}},m8t,v8t,y8t,w8t,mPt,vPt,yPt,wPt,pIn={xs:(mPt=(m8t=Ga.sizes)==null?void 0:m8t.xs.field)!=null?mPt:{},sm:(vPt=(v8t=Ga.sizes)==null?void 0:v8t.sm.field)!=null?vPt:{},md:(yPt=(y8t=Ga.sizes)==null?void 0:y8t.md.field)!=null?yPt:{},lg:(wPt=(w8t=Ga.sizes)==null?void 0:w8t.lg.field)!=null?wPt:{}},gIn={baseStyle:dIn,sizes:pIn,variants:hIn,defaultProps:{size:"md",variant:"outline"}},Joe=V1("tooltip-bg"),k9e=V1("tooltip-fg"),bIn=V1("popper-arrow-bg"),mIn={bg:Joe.reference,color:k9e.reference,[Joe.variable]:"colors.gray.700",[k9e.variable]:"colors.whiteAlpha.900",_dark:{[Joe.variable]:"colors.gray.300",[k9e.variable]:"colors.gray.900"},[bIn.variable]:Joe.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},vIn={baseStyle:mIn},yIn={Accordion:F6n,Alert:G6n,Avatar:iEn,Badge:tH,Breadcrumb:pEn,Button:EEn,Checkbox:pce,CloseButton:DEn,Code:$En,Container:FEn,Divider:HEn,Drawer:tkn,Editable:ckn,Form:pkn,FormError:wkn,FormLabel:Skn,Heading:Ckn,Input:Ga,Kbd:jkn,Link:$kn,List:Vkn,Menu:Zkn,Modal:uCn,NumberInput:yCn,PinInput:ECn,Popover:NCn,Progress:VCn,Radio:GCn,Select:e8n,Skeleton:i8n,SkipLink:s8n,Slider:m8n,Spinner:w8n,Stat:A8n,Switch:j8n,Table:V8n,Tabs:rIn,Tag:fIn,Textarea:gIn,Tooltip:vIn},wIn={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},xIn=wIn,SIn={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},EIn=SIn,kIn={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},CIn=kIn,IIn={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},TIn=IIn,AIn={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},PIn=AIn,OIn={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},_In={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},MIn={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},DIn={property:OIn,easing:_In,duration:MIn},NIn=DIn,jIn={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},RIn=jIn,$In={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},LIn=$In,FIn={breakpoints:EIn,zIndices:RIn,radii:TIn,blur:LIn,colors:CIn,...EMt,sizes:wMt,shadows:PIn,space:yMt,borders:xIn,transition:NIn},BIn={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},zIn={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}};function VIn(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}var UIn=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function HIn(n){return VIn(n)?UIn.every(r=>Object.prototype.hasOwnProperty.call(n,r)):!1}var qIn="ltr",WIn={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},TMt={semanticTokens:BIn,direction:qIn,...FIn,components:yIn,styles:zIn,config:WIn};function AU(n){return typeof n=="function"}function GIn(...n){return r=>n.reduce((c,u)=>u(c),r)}function XIn(...n){let r=[...n],c=n[n.length-1];return HIn(c)&&r.length>1?r=r.slice(0,r.length-1):c=TMt,GIn(...r.map(u=>d=>AU(u)?u(d):KIn(d,u)))(c)}function KIn(...n){return bv({},...n,AMt)}function AMt(n,r,c,u){if((AU(n)||AU(r))&&Object.prototype.hasOwnProperty.call(u,c))return(...d)=>{const p=AU(n)?n(...d):n,m=AU(r)?r(...d):r;return bv({},p,m,AMt)}}var YIn=typeof Element<"u",QIn=typeof Map=="function",ZIn=typeof Set=="function",JIn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function wae(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var c,u,d;if(Array.isArray(n)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(!wae(n[u],r[u]))return!1;return!0}var p;if(QIn&&n instanceof Map&&r instanceof Map){if(n.size!==r.size)return!1;for(p=n.entries();!(u=p.next()).done;)if(!r.has(u.value[0]))return!1;for(p=n.entries();!(u=p.next()).done;)if(!wae(u.value[1],r.get(u.value[0])))return!1;return!0}if(ZIn&&n instanceof Set&&r instanceof Set){if(n.size!==r.size)return!1;for(p=n.entries();!(u=p.next()).done;)if(!r.has(u.value[0]))return!1;return!0}if(JIn&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(r)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(n[u]!==r[u])return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(d=Object.keys(n),c=d.length,c!==Object.keys(r).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,d[u]))return!1;if(YIn&&n instanceof Element)return!1;for(u=c;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&n.$$typeof)&&!wae(n[d[u]],r[d[u]]))return!1;return!0}return n!==n&&r!==r}var e9n=function(r,c){try{return wae(r,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}};function Q7(){const n=U.exports.useContext(_7);if(!n)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return n}function t9n(){const n=ZD(),r=Q7();return{...n,theme:r}}function n9n(n,r,c){var d,p;if(r==null)return r;const u=m=>{var x,E;return(E=(x=n.__breakpoints)==null?void 0:x.asArray)==null?void 0:E[m]};return(p=(d=u(r))!=null?d:u(c))!=null?p:c}function r9n(n,r,c){var d,p;if(r==null)return r;const u=m=>{var x,E;return(E=(x=n.__cssMap)==null?void 0:x[m])==null?void 0:E.value};return(p=(d=u(r))!=null?d:u(c))!=null?p:c}function i9n(n,r,c){const u=Array.isArray(r)?r:[r],d=Array.isArray(c)?c:[c];return p=>{const m=d.filter(Boolean),x=u.map((E,k)=>{var P,I;if(n==="breakpoints")return n9n(p,E,(P=m[k])!=null?P:E);const T=`${n}.${E}`;return r9n(p,T,(I=m[k])!=null?I:E)});return Array.isArray(r)?x:x[0]}}function o9n(n){const{cssVarsRoot:r,theme:c,children:u}=n,d=U.exports.useMemo(()=>U4n(c),[c]);return We(QSn,{theme:d,children:[V(s9n,{root:r}),u]})}function s9n({root:n=":host, :root"}){const r=[n,"[data-theme]"].join(",");return V(Qq,{styles:c=>({[r]:c.__cssVars})})}var[a9n,xle]=d5n({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function c9n(){const{colorMode:n}=ZD();return V(Qq,{styles:r=>{const c=oMt(r,"styles.global"),u=uMt(c,{theme:r,colorMode:n});return u?V_t(u)(r):void 0}})}var u9n=new Set([...W4n,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),l9n=new Set(["htmlWidth","htmlHeight","htmlSize"]);function f9n(n){return l9n.has(n)||!u9n.has(n)}var d9n=({baseStyle:n})=>r=>{const{theme:c,css:u,__css:d,sx:p,...m}=r,x=sMt(m,(P,I)=>X4n(I)),E=uMt(n,r),k=Object.assign({},d,E,aMt(x),p),T=V_t(k)(r.theme);return u?[T,u]:T};function C9e(n,r){const{baseStyle:c,...u}=r!=null?r:{};u.shouldForwardProp||(u.shouldForwardProp=f9n);const d=d9n({baseStyle:c}),p=yAe(n,u)(d);return ut.forwardRef(function(E,k){const{colorMode:T,forced:P}=ZD();return ut.createElement(p,{ref:k,"data-theme":P?T:void 0,...E})})}function kn(n){return U.exports.forwardRef(n)}function PMt(n,r={}){var T;const{styleConfig:c,...u}=r,{theme:d,colorMode:p}=t9n(),m=n?oMt(d,`components.${n}`):void 0,x=c||m,E=bv({theme:d,colorMode:p},(T=x==null?void 0:x.defaultProps)!=null?T:{},aMt(s5n(u,["children"]))),k=U.exports.useRef({});if(x){const I=iSn(x)(E);e9n(k.current,I)||(k.current=I)}return k.current}function U1(n,r={}){return PMt(n,r)}function il(n,r={}){return PMt(n,r)}function h9n(){const n=new Map;return new Proxy(C9e,{apply(r,c,u){return C9e(...u)},get(r,c){return n.has(c)||n.set(c,C9e(c)),n.get(c)}})}var Qt=h9n();function p9n(n,r){return`${n} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function Ec(n={}){const{name:r,strict:c=!0,hookName:u="useContext",providerName:d="Provider",errorMessage:p}=n,m=U.exports.createContext(void 0);m.displayName=r;function x(){var E;const k=U.exports.useContext(m);if(!k&&c){const T=new Error(p!=null?p:p9n(u,d));throw T.name="ContextError",(E=Error.captureStackTrace)==null||E.call(Error,T,x),T}return k}return[m.Provider,x,m]}function g9n(n,r){if(n!=null){if(typeof n=="function"){n(r);return}try{n.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${n}'`)}}}function _u(...n){return r=>{n.forEach(c=>{g9n(c,r)})}}function b9n(...n){return U.exports.useMemo(()=>_u(...n),n)}function x8t(n){return n.sort((r,c)=>{const u=r.compareDocumentPosition(c);if(u&Node.DOCUMENT_POSITION_FOLLOWING||u&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(u&Node.DOCUMENT_POSITION_PRECEDING||u&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(u&Node.DOCUMENT_POSITION_DISCONNECTED||u&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var m9n=n=>typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE;function S8t(n,r,c){let u=n+1;return c&&u>=r&&(u=0),u}function E8t(n,r,c){let u=n-1;return c&&u<0&&(u=r),u}var CAe=typeof window<"u"?U.exports.useLayoutEffect:U.exports.useEffect,bce=n=>n,v9n=class{constructor(){Yu(this,"descendants",new Map);Yu(this,"register",n=>{if(n!=null)return m9n(n)?this.registerNode(n):r=>{this.registerNode(r,n)}});Yu(this,"unregister",n=>{this.descendants.delete(n);const r=x8t(Array.from(this.descendants.keys()));this.assignIndex(r)});Yu(this,"destroy",()=>{this.descendants.clear()});Yu(this,"assignIndex",n=>{this.descendants.forEach(r=>{const c=n.indexOf(r.node);r.index=c,r.node.dataset.index=r.index.toString()})});Yu(this,"count",()=>this.descendants.size);Yu(this,"enabledCount",()=>this.enabledValues().length);Yu(this,"values",()=>Array.from(this.descendants.values()).sort((r,c)=>r.index-c.index));Yu(this,"enabledValues",()=>this.values().filter(n=>!n.disabled));Yu(this,"item",n=>{if(this.count()!==0)return this.values()[n]});Yu(this,"enabledItem",n=>{if(this.enabledCount()!==0)return this.enabledValues()[n]});Yu(this,"first",()=>this.item(0));Yu(this,"firstEnabled",()=>this.enabledItem(0));Yu(this,"last",()=>this.item(this.descendants.size-1));Yu(this,"lastEnabled",()=>{const n=this.enabledValues().length-1;return this.enabledItem(n)});Yu(this,"indexOf",n=>{var c;var r;return n&&(c=(r=this.descendants.get(n))==null?void 0:r.index)!=null?c:-1});Yu(this,"enabledIndexOf",n=>n==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(n)));Yu(this,"next",(n,r=!0)=>{const c=S8t(n,this.count(),r);return this.item(c)});Yu(this,"nextEnabled",(n,r=!0)=>{const c=this.item(n);if(!c)return;const u=this.enabledIndexOf(c.node),d=S8t(u,this.enabledCount(),r);return this.enabledItem(d)});Yu(this,"prev",(n,r=!0)=>{const c=E8t(n,this.count()-1,r);return this.item(c)});Yu(this,"prevEnabled",(n,r=!0)=>{const c=this.item(n);if(!c)return;const u=this.enabledIndexOf(c.node),d=E8t(u,this.enabledCount()-1,r);return this.enabledItem(d)});Yu(this,"registerNode",(n,r)=>{if(!n||this.descendants.has(n))return;const c=Array.from(this.descendants.keys()).concat(n),u=x8t(c);r!=null&&r.disabled&&(r.disabled=!!r.disabled);const d={node:n,index:-1,...r};this.descendants.set(n,d),this.assignIndex(u)})}};function y9n(){const n=U.exports.useRef(new v9n);return CAe(()=>()=>n.current.destroy()),n.current}var[w9n,OMt]=Ec({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function x9n(n){const r=OMt(),[c,u]=U.exports.useState(-1),d=U.exports.useRef(null);CAe(()=>()=>{!d.current||r.unregister(d.current)},[]),CAe(()=>{if(!d.current)return;const m=Number(d.current.dataset.index);c!=m&&!Number.isNaN(m)&&u(m)});const p=bce(n?r.register(n):r.register);return{descendants:r,index:c,enabledIndex:r.enabledIndexOf(d.current),register:_u(p,d)}}function J_e(){return[bce(w9n),()=>bce(OMt()),()=>y9n(),d=>x9n(d)]}var Pf=(...n)=>n.filter(Boolean).join(" "),k8t={path:We("g",{stroke:"currentColor",strokeWidth:"1.5",children:[V("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),V("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),V("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ao=kn((n,r)=>{const{as:c,viewBox:u,color:d="currentColor",focusable:p=!1,children:m,className:x,__css:E,...k}=n,T=Pf("chakra-icon",x),P={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d,...E},I={ref:r,focusable:p,className:T,__css:P},O=u!=null?u:k8t.viewBox;if(c&&typeof c!="string")return ut.createElement(Qt.svg,{as:c,...I,...k});const N=m!=null?m:k8t.path;return ut.createElement(Qt.svg,{verticalAlign:"middle",viewBox:O,...I,...k},N)});Ao.displayName="Icon";var S9n=Ao;function Ei(n){const{viewBox:r="0 0 24 24",d:c,displayName:u,defaultProps:d={}}=n,p=U.exports.Children.toArray(n.path),m=kn((x,E)=>V(Ao,{ref:E,viewBox:r,...d,...x,children:p.length?p:V("path",{fill:"currentColor",d:c})}));return m.displayName=u,m}function mh(n,r=[]){const c=U.exports.useRef(n);return U.exports.useEffect(()=>{c.current=n}),U.exports.useCallback((...u)=>{var d;return(d=c.current)==null?void 0:d.call(c,...u)},r)}function _Mt(n){const{value:r,defaultValue:c,onChange:u,shouldUpdate:d=(I,O)=>I!==O}=n,p=mh(u),m=mh(d),[x,E]=U.exports.useState(c),k=r!==void 0,T=k?r:x,P=mh(I=>{const N=typeof I=="function"?I(T):I;!m(T,N)||(k||E(N),p(N))},[k,p,T,m]);return[T,P]}const eMe=U.exports.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"}),Sle=U.exports.createContext({});function E9n(){return U.exports.useContext(Sle).visualElement}const eN=U.exports.createContext(null),Z7=typeof document<"u",mce=Z7?U.exports.useLayoutEffect:U.exports.useEffect,MMt=U.exports.createContext({strict:!1});function k9n(n,r,c,u){const d=E9n(),p=U.exports.useContext(MMt),m=U.exports.useContext(eN),x=U.exports.useContext(eMe).reducedMotion,E=U.exports.useRef(void 0);u=u||p.renderer,!E.current&&u&&(E.current=u(n,{visualState:r,parent:d,props:c,presenceId:m?m.id:void 0,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:x}));const k=E.current;return mce(()=>{k&&k.syncRender()}),U.exports.useEffect(()=>{k&&k.animationState&&k.animationState.animateChanges()}),mce(()=>()=>k&&k.notifyUnmount(),[]),k}function _M(n){return typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function C9n(n,r,c){return U.exports.useCallback(u=>{u&&n.mount&&n.mount(u),r&&(u?r.mount(u):r.unmount()),c&&(typeof c=="function"?c(u):_M(c)&&(c.current=u))},[r])}function nq(n){return typeof n=="string"||Array.isArray(n)}function Ele(n){return typeof n=="object"&&typeof n.start=="function"}const I9n=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function kle(n){return Ele(n.animate)||I9n.some(r=>nq(n[r]))}function DMt(n){return Boolean(kle(n)||n.variants)}function T9n(n,r){if(kle(n)){const{initial:c,animate:u}=n;return{initial:c===!1||nq(c)?c:void 0,animate:nq(u)?u:void 0}}return n.inherit!==!1?r:{}}function A9n(n){const{initial:r,animate:c}=T9n(n,U.exports.useContext(Sle));return U.exports.useMemo(()=>({initial:r,animate:c}),[C8t(r),C8t(c)])}function C8t(n){return Array.isArray(n)?n.join(" "):n}const Z4=n=>({isEnabled:r=>n.some(c=>!!r[c])}),rq={measureLayout:Z4(["layout","layoutId","drag"]),animation:Z4(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Z4(["exit"]),drag:Z4(["drag","dragControls"]),focus:Z4(["whileFocus"]),hover:Z4(["whileHover","onHoverStart","onHoverEnd"]),tap:Z4(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Z4(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Z4(["whileInView","onViewportEnter","onViewportLeave"])};function P9n(n){for(const r in n)r==="projectionNodeConstructor"?rq.projectionNodeConstructor=n[r]:rq[r].Component=n[r]}function Cle(n){const r=U.exports.useRef(null);return r.current===null&&(r.current=n()),r.current}const oH={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let O9n=1;function _9n(){return Cle(()=>{if(oH.hasEverUpdated)return O9n++})}const tMe=U.exports.createContext({});class M9n extends ut.Component{getSnapshotBeforeUpdate(){const{visualElement:r,props:c}=this.props;return r&&r.setProps(c),null}componentDidUpdate(){}render(){return this.props.children}}const NMt=U.exports.createContext({});function D9n({preloadedFeatures:n,createVisualElement:r,projectionNodeConstructor:c,useRender:u,useVisualState:d,Component:p}){n&&P9n(n);function m(x,E){const k={...U.exports.useContext(eMe),...x,layoutId:N9n(x)},{isStatic:T}=k;let P=null;const I=A9n(x),O=T?void 0:_9n(),N=d(x,T);if(!T&&Z7){I.visualElement=k9n(p,N,k,r);const j=U.exports.useContext(MMt).strict,L=U.exports.useContext(NMt);I.visualElement&&(P=I.visualElement.loadFeatures(x,j,n,O,c||rq.projectionNodeConstructor,L))}return We(M9n,{visualElement:I.visualElement,props:k,children:[P,V(Sle.Provider,{value:I,children:u(p,x,O,C9n(N,I.visualElement,E),N,T,I.visualElement)})]})}return U.exports.forwardRef(m)}function N9n({layoutId:n}){const r=U.exports.useContext(tMe).id;return r&&n!==void 0?r+"-"+n:n}function j9n(n){function r(u,d={}){return D9n(n(u,d))}if(typeof Proxy>"u")return r;const c=new Map;return new Proxy(r,{get:(u,d)=>(c.has(d)||c.set(d,r(d)),c.get(d))})}const R9n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nMe(n){return typeof n!="string"||n.includes("-")?!1:!!(R9n.indexOf(n)>-1||/[A-Z]/.test(n))}const vce={};function $9n(n){Object.assign(vce,n)}const yce=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","skew","skewX","skewY"],eW=new Set(yce);function jMt(n,{layout:r,layoutId:c}){return eW.has(n)||n.startsWith("origin")||(r||c!==void 0)&&(!!vce[n]||n==="opacity")}const Yx=n=>n===void 0?!1:!!n.getVelocity,L9n={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F9n=(n,r)=>yce.indexOf(n)-yce.indexOf(r);function B9n({transform:n,transformKeys:r},{enableHardwareAcceleration:c=!0,allowTransformNone:u=!0},d,p){let m="";r.sort(F9n);for(const x of r)m+=`${L9n[x]||x}(${n[x]}) `;return c&&!n.z&&(m+="translateZ(0)"),m=m.trim(),p?m=p(n,d?"":m):u&&d&&(m="none"),m}function RMt(n){return n.startsWith("--")}const z9n=(n,r)=>r&&typeof n=="number"?r.transform(n):n,$Mt=(n,r)=>c=>Math.max(Math.min(c,r),n),sH=n=>n%1?Number(n.toFixed(5)):n,iq=/(-)?([\d]*\.?[\d])+/g,IAe=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,V9n=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tW(n){return typeof n=="string"}const J7={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},aH=Object.assign(Object.assign({},J7),{transform:$Mt(0,1)}),ese=Object.assign(Object.assign({},J7),{default:1}),nW=n=>({test:r=>tW(r)&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),jE=nW("deg"),qx=nW("%"),ho=nW("px"),U9n=nW("vh"),H9n=nW("vw"),I8t=Object.assign(Object.assign({},qx),{parse:n=>qx.parse(n)/100,transform:n=>qx.transform(n*100)}),rMe=(n,r)=>c=>Boolean(tW(c)&&V9n.test(c)&&c.startsWith(n)||r&&Object.prototype.hasOwnProperty.call(c,r)),LMt=(n,r,c)=>u=>{if(!tW(u))return u;const[d,p,m,x]=u.match(iq);return{[n]:parseFloat(d),[r]:parseFloat(p),[c]:parseFloat(m),alpha:x!==void 0?parseFloat(x):1}},o7={test:rMe("hsl","hue"),parse:LMt("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:c,alpha:u=1})=>"hsla("+Math.round(n)+", "+qx.transform(sH(r))+", "+qx.transform(sH(c))+", "+sH(aH.transform(u))+")"},q9n=$Mt(0,255),I9e=Object.assign(Object.assign({},J7),{transform:n=>Math.round(q9n(n))}),JE={test:rMe("rgb","red"),parse:LMt("red","green","blue"),transform:({red:n,green:r,blue:c,alpha:u=1})=>"rgba("+I9e.transform(n)+", "+I9e.transform(r)+", "+I9e.transform(c)+", "+sH(aH.transform(u))+")"};function W9n(n){let r="",c="",u="",d="";return n.length>5?(r=n.substr(1,2),c=n.substr(3,2),u=n.substr(5,2),d=n.substr(7,2)):(r=n.substr(1,1),c=n.substr(2,1),u=n.substr(3,1),d=n.substr(4,1),r+=r,c+=c,u+=u,d+=d),{red:parseInt(r,16),green:parseInt(c,16),blue:parseInt(u,16),alpha:d?parseInt(d,16)/255:1}}const TAe={test:rMe("#"),parse:W9n,transform:JE.transform},jp={test:n=>JE.test(n)||TAe.test(n)||o7.test(n),parse:n=>JE.test(n)?JE.parse(n):o7.test(n)?o7.parse(n):TAe.parse(n),transform:n=>tW(n)?n:n.hasOwnProperty("red")?JE.transform(n):o7.transform(n)},FMt="${c}",BMt="${n}";function G9n(n){var r,c,u,d;return isNaN(n)&&tW(n)&&((c=(r=n.match(iq))===null||r===void 0?void 0:r.length)!==null&&c!==void 0?c:0)+((d=(u=n.match(IAe))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0)>0}function zMt(n){typeof n=="number"&&(n=`${n}`);const r=[];let c=0;const u=n.match(IAe);u&&(c=u.length,n=n.replace(IAe,FMt),r.push(...u.map(jp.parse)));const d=n.match(iq);return d&&(n=n.replace(iq,BMt),r.push(...d.map(J7.parse))),{values:r,numColors:c,tokenised:n}}function VMt(n){return zMt(n).values}function UMt(n){const{values:r,numColors:c,tokenised:u}=zMt(n),d=r.length;return p=>{let m=u;for(let x=0;xtypeof n=="number"?0:n;function K9n(n){const r=VMt(n);return UMt(n)(r.map(X9n))}const SS={test:G9n,parse:VMt,createTransformer:UMt,getAnimatableNone:K9n},Y9n=new Set(["brightness","contrast","saturate","opacity"]);function Q9n(n){let[r,c]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[u]=c.match(iq)||[];if(!u)return n;const d=c.replace(u,"");let p=Y9n.has(r)?1:0;return u!==c&&(p*=100),r+"("+p+d+")"}const Z9n=/([a-z-]*)\(.*?\)/g,AAe=Object.assign(Object.assign({},SS),{getAnimatableNone:n=>{const r=n.match(Z9n);return r?r.map(Q9n).join(" "):n}}),T8t={...J7,transform:Math.round},HMt={borderWidth:ho,borderTopWidth:ho,borderRightWidth:ho,borderBottomWidth:ho,borderLeftWidth:ho,borderRadius:ho,radius:ho,borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomRightRadius:ho,borderBottomLeftRadius:ho,width:ho,maxWidth:ho,height:ho,maxHeight:ho,size:ho,top:ho,right:ho,bottom:ho,left:ho,padding:ho,paddingTop:ho,paddingRight:ho,paddingBottom:ho,paddingLeft:ho,margin:ho,marginTop:ho,marginRight:ho,marginBottom:ho,marginLeft:ho,rotate:jE,rotateX:jE,rotateY:jE,rotateZ:jE,scale:ese,scaleX:ese,scaleY:ese,scaleZ:ese,skew:jE,skewX:jE,skewY:jE,distance:ho,translateX:ho,translateY:ho,translateZ:ho,x:ho,y:ho,z:ho,perspective:ho,transformPerspective:ho,opacity:aH,originX:I8t,originY:I8t,originZ:ho,zIndex:T8t,fillOpacity:aH,strokeOpacity:aH,numOctaves:T8t};function iMe(n,r,c,u){const{style:d,vars:p,transform:m,transformKeys:x,transformOrigin:E}=n;x.length=0;let k=!1,T=!1,P=!0;for(const I in r){const O=r[I];if(RMt(I)){p[I]=O;continue}const N=HMt[I],j=z9n(O,N);if(eW.has(I)){if(k=!0,m[I]=j,x.push(I),!P)continue;O!==(N.default||0)&&(P=!1)}else I.startsWith("origin")?(T=!0,E[I]=j):d[I]=j}if(k||u?d.transform=B9n(n,c,P,u):!r.transform&&d.transform&&(d.transform="none"),T){const{originX:I="50%",originY:O="50%",originZ:N=0}=E;d.transformOrigin=`${I} ${O} ${N}`}}const oMe=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function qMt(n,r,c){for(const u in r)!Yx(r[u])&&!jMt(u,c)&&(n[u]=r[u])}function J9n({transformTemplate:n},r,c){return U.exports.useMemo(()=>{const u=oMe();return iMe(u,r,{enableHardwareAcceleration:!c},n),Object.assign({},u.vars,u.style)},[r])}function e7n(n,r,c){const u=n.style||{},d={};return qMt(d,u,n),Object.assign(d,J9n(n,r,c)),n.transformValues?n.transformValues(d):d}function t7n(n,r,c){const u={},d=e7n(n,r,c);return n.drag&&n.dragListener!==!1&&(u.draggable=!1,d.userSelect=d.WebkitUserSelect=d.WebkitTouchCallout="none",d.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),u.style=d,u}const n7n=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],r7n=["whileTap","onTap","onTapStart","onTapCancel"],i7n=["onPan","onPanStart","onPanSessionStart","onPanEnd"],o7n=["whileInView","onViewportEnter","onViewportLeave","viewport"],s7n=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...o7n,...r7n,...n7n,...i7n]);function vD(n){return s7n.has(n)}let WMt=n=>!vD(n);function a7n(n){!n||(WMt=r=>r.startsWith("on")?!vD(r):n(r))}try{a7n(require("@emotion/is-prop-valid").default)}catch{}function c7n(n,r,c){const u={};for(const d in n)(WMt(d)||c===!0&&vD(d)||!r&&!vD(d)||n.draggable&&d.startsWith("onDrag"))&&(u[d]=n[d]);return u}function A8t(n,r,c){return typeof n=="string"?n:ho.transform(r+c*n)}function u7n(n,r,c){const u=A8t(r,n.x,n.width),d=A8t(c,n.y,n.height);return`${u} ${d}`}const l7n={offset:"stroke-dashoffset",array:"stroke-dasharray"},f7n={offset:"strokeDashoffset",array:"strokeDasharray"};function d7n(n,r,c=1,u=0,d=!0){n.pathLength=1;const p=d?l7n:f7n;n[p.offset]=ho.transform(-u);const m=ho.transform(r),x=ho.transform(c);n[p.array]=`${m} ${x}`}function sMe(n,{attrX:r,attrY:c,originX:u,originY:d,pathLength:p,pathSpacing:m=1,pathOffset:x=0,...E},k,T){iMe(n,E,k,T),n.attrs=n.style,n.style={};const{attrs:P,style:I,dimensions:O}=n;P.transform&&(O&&(I.transform=P.transform),delete P.transform),O&&(u!==void 0||d!==void 0||I.transform)&&(I.transformOrigin=u7n(O,u!==void 0?u:.5,d!==void 0?d:.5)),r!==void 0&&(P.x=r),c!==void 0&&(P.y=c),p!==void 0&&d7n(P,p,m,x,!1)}const GMt=()=>({...oMe(),attrs:{}});function h7n(n,r){const c=U.exports.useMemo(()=>{const u=GMt();return sMe(u,r,{enableHardwareAcceleration:!1},n.transformTemplate),{...u.attrs,style:{...u.style}}},[r]);if(n.style){const u={};qMt(u,n.style,n),c.style={...u,...c.style}}return c}function p7n(n=!1){return(c,u,d,p,{latestValues:m},x)=>{const k=(nMe(c)?h7n:t7n)(u,m,x),P={...c7n(u,typeof c=="string",n),...k,ref:p};return d&&(P["data-projection-id"]=d),U.exports.createElement(c,P)}}const XMt=n=>n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function KMt(n,{style:r,vars:c},u,d){Object.assign(n.style,r,d&&d.getProjectionStyles(u));for(const p in c)n.style.setProperty(p,c[p])}const YMt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function QMt(n,r,c,u){KMt(n,r,void 0,u);for(const d in r.attrs)n.setAttribute(YMt.has(d)?d:XMt(d),r.attrs[d])}function aMe(n){const{style:r}=n,c={};for(const u in r)(Yx(r[u])||jMt(u,n))&&(c[u]=r[u]);return c}function ZMt(n){const r=aMe(n);for(const c in n)if(Yx(n[c])){const u=c==="x"||c==="y"?"attr"+c.toUpperCase():c;r[u]=n[c]}return r}function JMt(n,r,c,u={},d={}){return typeof r=="function"&&(r=r(c!==void 0?c:n.custom,u,d)),typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"&&(r=r(c!==void 0?c:n.custom,u,d)),r}const oq=n=>Array.isArray(n),g7n=n=>Boolean(n&&typeof n=="object"&&n.mix&&n.toValue),eDt=n=>oq(n)?n[n.length-1]||0:n;function xae(n){const r=Yx(n)?n.get():n;return g7n(r)?r.toValue():r}function b7n({scrapeMotionValuesFromProps:n,createRenderState:r,onMount:c},u,d,p){const m={latestValues:m7n(u,d,p,n),renderState:r()};return c&&(m.mount=x=>c(u,x,m)),m}const tDt=n=>(r,c)=>{const u=U.exports.useContext(Sle),d=U.exports.useContext(eN),p=()=>b7n(n,r,u,d);return c?p():Cle(p)};function m7n(n,r,c,u){const d={},p=u(n);for(const I in p)d[I]=xae(p[I]);let{initial:m,animate:x}=n;const E=kle(n),k=DMt(n);r&&k&&!E&&n.inherit!==!1&&(m===void 0&&(m=r.initial),x===void 0&&(x=r.animate));let T=c?c.initial===!1:!1;T=T||m===!1;const P=T?x:m;return P&&typeof P!="boolean"&&!Ele(P)&&(Array.isArray(P)?P:[P]).forEach(O=>{const N=JMt(n,O);if(!N)return;const{transitionEnd:j,transition:L,...$}=N;for(const F in $){let B=$[F];if(Array.isArray(B)){const X=T?B.length-1:0;B=B[X]}B!==null&&(d[F]=B)}for(const F in j)d[F]=j[F]}),d}const v7n={useVisualState:tDt({scrapeMotionValuesFromProps:ZMt,createRenderState:GMt,onMount:(n,r,{renderState:c,latestValues:u})=>{try{c.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{c.dimensions={x:0,y:0,width:0,height:0}}sMe(c,u,{enableHardwareAcceleration:!1},n.transformTemplate),QMt(r,c)}})},y7n={useVisualState:tDt({scrapeMotionValuesFromProps:aMe,createRenderState:oMe})};function w7n(n,{forwardMotionProps:r=!1},c,u,d){return{...nMe(n)?v7n:y7n,preloadedFeatures:c,useRender:p7n(r),createVisualElement:u,projectionNodeConstructor:d,Component:n}}var hu;(function(n){n.Animate="animate",n.Hover="whileHover",n.Tap="whileTap",n.Drag="whileDrag",n.Focus="whileFocus",n.InView="whileInView",n.Exit="exit"})(hu||(hu={}));function Ile(n,r,c,u={passive:!0}){return n.addEventListener(r,c,u),()=>n.removeEventListener(r,c)}function PAe(n,r,c,u){U.exports.useEffect(()=>{const d=n.current;if(c&&d)return Ile(d,r,c,u)},[n,r,c,u])}function x7n({whileFocus:n,visualElement:r}){const{animationState:c}=r,u=()=>{c&&c.setActive(hu.Focus,!0)},d=()=>{c&&c.setActive(hu.Focus,!1)};PAe(r,"focus",n?u:void 0),PAe(r,"blur",n?d:void 0)}function nDt(n){return typeof PointerEvent<"u"&&n instanceof PointerEvent?n.pointerType==="mouse":n instanceof MouseEvent}function rDt(n){return!!n.touches}function S7n(n){return r=>{const c=r instanceof MouseEvent;(!c||c&&r.button===0)&&n(r)}}const E7n={pageX:0,pageY:0};function k7n(n,r="page"){const u=n.touches[0]||n.changedTouches[0]||E7n;return{x:u[r+"X"],y:u[r+"Y"]}}function C7n(n,r="page"){return{x:n[r+"X"],y:n[r+"Y"]}}function cMe(n,r="page"){return{point:rDt(n)?k7n(n,r):C7n(n,r)}}const iDt=(n,r=!1)=>{const c=u=>n(u,cMe(u));return r?S7n(c):c},I7n=()=>Z7&&window.onpointerdown===null,T7n=()=>Z7&&window.ontouchstart===null,A7n=()=>Z7&&window.onmousedown===null,P7n={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},O7n={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function oDt(n){return I7n()?n:T7n()?O7n[n]:A7n()?P7n[n]:n}function QM(n,r,c,u){return Ile(n,oDt(r),iDt(c,r==="pointerdown"),u)}function wce(n,r,c,u){return PAe(n,oDt(r),c&&iDt(c,r==="pointerdown"),u)}function sDt(n){let r=null;return()=>{const c=()=>{r=null};return r===null?(r=n,c):!1}}const P8t=sDt("dragHorizontal"),O8t=sDt("dragVertical");function aDt(n){let r=!1;if(n==="y")r=O8t();else if(n==="x")r=P8t();else{const c=P8t(),u=O8t();c&&u?r=()=>{c(),u()}:(c&&c(),u&&u())}return r}function cDt(){const n=aDt(!0);return n?(n(),!1):!0}function _8t(n,r,c){return(u,d)=>{!nDt(u)||cDt()||(n.animationState&&n.animationState.setActive(hu.Hover,r),c&&c(u,d))}}function _7n({onHoverStart:n,onHoverEnd:r,whileHover:c,visualElement:u}){wce(u,"pointerenter",n||c?_8t(u,!0,n):void 0,{passive:!n}),wce(u,"pointerleave",r||c?_8t(u,!1,r):void 0,{passive:!r})}const uDt=(n,r)=>r?n===r?!0:uDt(n,r.parentElement):!1;function uMe(n){return U.exports.useEffect(()=>()=>n(),[])}function lDt(n,r){var c={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&r.indexOf(u)<0&&(c[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(n);dMath.min(Math.max(c,n),r),T9e=.001,D7n=.01,M8t=10,N7n=.05,j7n=1;function R7n({duration:n=800,bounce:r=.25,velocity:c=0,mass:u=1}){let d,p;M7n(n<=M8t*1e3);let m=1-r;m=Sce(N7n,j7n,m),n=Sce(D7n,M8t,n/1e3),m<1?(d=k=>{const T=k*m,P=T*n,I=T-c,O=OAe(k,m),N=Math.exp(-P);return T9e-I/O*N},p=k=>{const P=k*m*n,I=P*c+c,O=Math.pow(m,2)*Math.pow(k,2)*n,N=Math.exp(-P),j=OAe(Math.pow(k,2),m);return(-d(k)+T9e>0?-1:1)*((I-O)*N)/j}):(d=k=>{const T=Math.exp(-k*n),P=(k-c)*n+1;return-T9e+T*P},p=k=>{const T=Math.exp(-k*n),P=(c-k)*(n*n);return T*P});const x=5/n,E=L7n(d,p,x);if(n=n*1e3,isNaN(E))return{stiffness:100,damping:10,duration:n};{const k=Math.pow(E,2)*u;return{stiffness:k,damping:m*2*Math.sqrt(u*k),duration:n}}}const $7n=12;function L7n(n,r,c){let u=c;for(let d=1;d<$7n;d++)u=u-n(u)/r(u);return u}function OAe(n,r){return n*Math.sqrt(1-r*r)}const F7n=["duration","bounce"],B7n=["stiffness","damping","mass"];function D8t(n,r){return r.some(c=>n[c]!==void 0)}function z7n(n){let r=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!D8t(n,B7n)&&D8t(n,F7n)){const c=R7n(n);r=Object.assign(Object.assign(Object.assign({},r),c),{velocity:0,mass:1}),r.isResolvedFromDuration=!0}return r}function lMe(n){var{from:r=0,to:c=1,restSpeed:u=2,restDelta:d}=n,p=lDt(n,["from","to","restSpeed","restDelta"]);const m={done:!1,value:r};let{stiffness:x,damping:E,mass:k,velocity:T,duration:P,isResolvedFromDuration:I}=z7n(p),O=N8t,N=N8t;function j(){const L=T?-(T/1e3):0,$=c-r,F=E/(2*Math.sqrt(x*k)),B=Math.sqrt(x/k)/1e3;if(d===void 0&&(d=Math.min(Math.abs(c-r)/100,.4)),F<1){const X=OAe(B,F);O=ne=>{const Z=Math.exp(-F*B*ne);return c-Z*((L+F*B*$)/X*Math.sin(X*ne)+$*Math.cos(X*ne))},N=ne=>{const Z=Math.exp(-F*B*ne);return F*B*Z*(Math.sin(X*ne)*(L+F*B*$)/X+$*Math.cos(X*ne))-Z*(Math.cos(X*ne)*(L+F*B*$)-X*$*Math.sin(X*ne))}}else if(F===1)O=X=>c-Math.exp(-B*X)*($+(L+B*$)*X);else{const X=B*Math.sqrt(F*F-1);O=ne=>{const Z=Math.exp(-F*B*ne),H=Math.min(X*ne,300);return c-Z*((L+F*B*$)*Math.sinh(H)+X*$*Math.cosh(H))/X}}}return j(),{next:L=>{const $=O(L);if(I)m.done=L>=P;else{const F=N(L)*1e3,B=Math.abs(F)<=u,X=Math.abs(c-$)<=d;m.done=B&&X}return m.value=m.done?c:$,m},flipTarget:()=>{T=-T,[r,c]=[c,r],j()}}}lMe.needsInterpolation=(n,r)=>typeof n=="string"||typeof r=="string";const N8t=n=>0,sq=(n,r,c)=>{const u=r-n;return u===0?1:(c-n)/u},rf=(n,r,c)=>-c*n+c*r+n;function A9e(n,r,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?n+(r-n)*6*c:c<1/2?r:c<2/3?n+(r-n)*(2/3-c)*6:n}function j8t({hue:n,saturation:r,lightness:c,alpha:u}){n/=360,r/=100,c/=100;let d=0,p=0,m=0;if(!r)d=p=m=c;else{const x=c<.5?c*(1+r):c+r-c*r,E=2*c-x;d=A9e(E,x,n+1/3),p=A9e(E,x,n),m=A9e(E,x,n-1/3)}return{red:Math.round(d*255),green:Math.round(p*255),blue:Math.round(m*255),alpha:u}}const V7n=(n,r,c)=>{const u=n*n,d=r*r;return Math.sqrt(Math.max(0,c*(d-u)+u))},U7n=[TAe,JE,o7],R8t=n=>U7n.find(r=>r.test(n)),fDt=(n,r)=>{let c=R8t(n),u=R8t(r),d=c.parse(n),p=u.parse(r);c===o7&&(d=j8t(d),c=JE),u===o7&&(p=j8t(p),u=JE);const m=Object.assign({},d);return x=>{for(const E in m)E!=="alpha"&&(m[E]=V7n(d[E],p[E],x));return m.alpha=rf(d.alpha,p.alpha,x),c.transform(m)}},_Ae=n=>typeof n=="number",H7n=(n,r)=>c=>r(n(c)),Tle=(...n)=>n.reduce(H7n);function dDt(n,r){return _Ae(n)?c=>rf(n,r,c):jp.test(n)?fDt(n,r):pDt(n,r)}const hDt=(n,r)=>{const c=[...n],u=c.length,d=n.map((p,m)=>dDt(p,r[m]));return p=>{for(let m=0;m{const c=Object.assign(Object.assign({},n),r),u={};for(const d in c)n[d]!==void 0&&r[d]!==void 0&&(u[d]=dDt(n[d],r[d]));return d=>{for(const p in u)c[p]=u[p](d);return c}};function $8t(n){const r=SS.parse(n),c=r.length;let u=0,d=0,p=0;for(let m=0;m{const c=SS.createTransformer(r),u=$8t(n),d=$8t(r);return u.numHSL===d.numHSL&&u.numRGB===d.numRGB&&u.numNumbers>=d.numNumbers?Tle(hDt(u.parsed,d.parsed),c):m=>`${m>0?r:n}`},W7n=(n,r)=>c=>rf(n,r,c);function G7n(n){if(typeof n=="number")return W7n;if(typeof n=="string")return jp.test(n)?fDt:pDt;if(Array.isArray(n))return hDt;if(typeof n=="object")return q7n}function X7n(n,r,c){const u=[],d=c||G7n(n[0]),p=n.length-1;for(let m=0;mc(sq(n,r,u))}function Y7n(n,r){const c=n.length,u=c-1;return d=>{let p=0,m=!1;if(d<=n[0]?m=!0:d>=n[u]&&(p=u-1,m=!0),!m){let E=1;for(;Ed||E===u);E++);p=E-1}const x=sq(n[p],n[p+1],d);return r[p](x)}}function gDt(n,r,{clamp:c=!0,ease:u,mixer:d}={}){const p=n.length;xce(p===r.length),xce(!u||!Array.isArray(u)||u.length===p-1),n[0]>n[p-1]&&(n=[].concat(n),r=[].concat(r),n.reverse(),r.reverse());const m=X7n(r,u,d),x=p===2?K7n(n,m):Y7n(n,m);return c?E=>x(Sce(n[0],n[p-1],E)):x}const Ale=n=>r=>1-n(1-r),fMe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,Q7n=n=>r=>Math.pow(r,n),bDt=n=>r=>r*r*((n+1)*r-n),Z7n=n=>{const r=bDt(n);return c=>(c*=2)<1?.5*r(c):.5*(2-Math.pow(2,-10*(c-1)))},mDt=1.525,J7n=4/11,eTn=8/11,tTn=9/10,dMe=n=>n,hMe=Q7n(2),nTn=Ale(hMe),vDt=fMe(hMe),yDt=n=>1-Math.sin(Math.acos(n)),pMe=Ale(yDt),rTn=fMe(pMe),gMe=bDt(mDt),iTn=Ale(gMe),oTn=fMe(gMe),sTn=Z7n(mDt),aTn=4356/361,cTn=35442/1805,uTn=16061/1805,Ece=n=>{if(n===1||n===0)return n;const r=n*n;return nn<.5?.5*(1-Ece(1-n*2)):.5*Ece(n*2-1)+.5;function dTn(n,r){return n.map(()=>r||vDt).splice(0,n.length-1)}function hTn(n){const r=n.length;return n.map((c,u)=>u!==0?u/(r-1):0)}function pTn(n,r){return n.map(c=>c*r)}function Sae({from:n=0,to:r=1,ease:c,offset:u,duration:d=300}){const p={done:!1,value:n},m=Array.isArray(r)?r:[n,r],x=pTn(u&&u.length===m.length?u:hTn(m),d);function E(){return gDt(x,m,{ease:Array.isArray(c)?c:dTn(m,c)})}let k=E();return{next:T=>(p.value=k(T),p.done=T>=d,p),flipTarget:()=>{m.reverse(),k=E()}}}function gTn({velocity:n=0,from:r=0,power:c=.8,timeConstant:u=350,restDelta:d=.5,modifyTarget:p}){const m={done:!1,value:r};let x=c*n;const E=r+x,k=p===void 0?E:p(E);return k!==E&&(x=k-r),{next:T=>{const P=-x*Math.exp(-T/u);return m.done=!(P>d||P<-d),m.value=m.done?k:k+P,m},flipTarget:()=>{}}}const L8t={keyframes:Sae,spring:lMe,decay:gTn};function bTn(n){if(Array.isArray(n.to))return Sae;if(L8t[n.type])return L8t[n.type];const r=new Set(Object.keys(n));return r.has("ease")||r.has("duration")&&!r.has("dampingRatio")?Sae:r.has("dampingRatio")||r.has("stiffness")||r.has("mass")||r.has("damping")||r.has("restSpeed")||r.has("restDelta")?lMe:Sae}const wDt=1/60*1e3,mTn=typeof performance<"u"?()=>performance.now():()=>Date.now(),xDt=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(mTn()),wDt);function vTn(n){let r=[],c=[],u=0,d=!1,p=!1;const m=new WeakSet,x={schedule:(E,k=!1,T=!1)=>{const P=T&&d,I=P?r:c;return k&&m.add(E),I.indexOf(E)===-1&&(I.push(E),P&&d&&(u=r.length)),E},cancel:E=>{const k=c.indexOf(E);k!==-1&&c.splice(k,1),m.delete(E)},process:E=>{if(d){p=!0;return}if(d=!0,[r,c]=[c,r],c.length=0,u=r.length,u)for(let k=0;k(n[r]=vTn(()=>aq=!0),n),{}),wTn=rW.reduce((n,r)=>{const c=Ple[r];return n[r]=(u,d=!1,p=!1)=>(aq||ETn(),c.schedule(u,d,p)),n},{}),xTn=rW.reduce((n,r)=>(n[r]=Ple[r].cancel,n),{});rW.reduce((n,r)=>(n[r]=()=>Ple[r].process(ZM),n),{});const STn=n=>Ple[n].process(ZM),SDt=n=>{aq=!1,ZM.delta=MAe?wDt:Math.max(Math.min(n-ZM.timestamp,yTn),1),ZM.timestamp=n,DAe=!0,rW.forEach(STn),DAe=!1,aq&&(MAe=!1,xDt(SDt))},ETn=()=>{aq=!0,MAe=!0,DAe||xDt(SDt)},kTn=()=>ZM;function EDt(n,r,c=0){return n-r-c}function CTn(n,r,c=0,u=!0){return u?EDt(r+-n,r,c):r-(n-r)+c}function ITn(n,r,c,u){return u?n>=r+c:n<=-c}const TTn=n=>{const r=({delta:c})=>n(c);return{start:()=>wTn.update(r,!0),stop:()=>xTn.update(r)}};function kDt(n){var r,c,{from:u,autoplay:d=!0,driver:p=TTn,elapsed:m=0,repeat:x=0,repeatType:E="loop",repeatDelay:k=0,onPlay:T,onStop:P,onComplete:I,onRepeat:O,onUpdate:N}=n,j=lDt(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=j,$,F=0,B=j.duration,X,ne=!1,Z=!0,H;const ce=bTn(j);!((c=(r=ce).needsInterpolation)===null||c===void 0)&&c.call(r,u,L)&&(H=gDt([0,100],[u,L],{clamp:!1}),u=0,L=100);const pe=ce(Object.assign(Object.assign({},j),{from:u,to:L}));function le(){F++,E==="reverse"?(Z=F%2===0,m=CTn(m,B,k,Z)):(m=EDt(m,B,k),E==="mirror"&&pe.flipTarget()),ne=!1,O&&O()}function ye(){$.stop(),I&&I()}function Ge(et){if(Z||(et=-et),m+=et,!ne){const tt=pe.next(Math.max(0,m));X=tt.value,H&&(X=H(X)),ne=Z?tt.done:m<=0}N==null||N(X),ne&&(F===0&&(B!=null||(B=m)),F{P==null||P(),$.stop()}}}function CDt(n,r){return r?n*(1e3/r):0}function ATn({from:n=0,velocity:r=0,min:c,max:u,power:d=.8,timeConstant:p=750,bounceStiffness:m=500,bounceDamping:x=10,restDelta:E=1,modifyTarget:k,driver:T,onUpdate:P,onComplete:I,onStop:O}){let N;function j(B){return c!==void 0&&Bu}function L(B){return c===void 0?u:u===void 0||Math.abs(c-B){var ne;P==null||P(X),(ne=B.onUpdate)===null||ne===void 0||ne.call(B,X)},onComplete:I,onStop:O}))}function F(B){$(Object.assign({type:"spring",stiffness:m,damping:x,restDelta:E},B))}if(j(n))F({from:n,velocity:r,to:L(n)});else{let B=d*r+n;typeof k<"u"&&(B=k(B));const X=L(B),ne=X===c?-1:1;let Z,H;const ce=pe=>{Z=H,H=pe,r=CDt(pe-Z,kTn().delta),(ne===1&&pe>X||ne===-1&&peN==null?void 0:N.stop()}}const NAe=n=>n.hasOwnProperty("x")&&n.hasOwnProperty("y"),F8t=n=>NAe(n)&&n.hasOwnProperty("z"),tse=(n,r)=>Math.abs(n-r);function IDt(n,r){if(_Ae(n)&&_Ae(r))return tse(n,r);if(NAe(n)&&NAe(r)){const c=tse(n.x,r.x),u=tse(n.y,r.y),d=F8t(n)&&F8t(r)?tse(n.z,r.z):0;return Math.sqrt(Math.pow(c,2)+Math.pow(u,2)+Math.pow(d,2))}}const TDt=(n,r)=>1-3*r+3*n,ADt=(n,r)=>3*r-6*n,PDt=n=>3*n,kce=(n,r,c)=>((TDt(r,c)*n+ADt(r,c))*n+PDt(r))*n,ODt=(n,r,c)=>3*TDt(r,c)*n*n+2*ADt(r,c)*n+PDt(r),PTn=1e-7,OTn=10;function _Tn(n,r,c,u,d){let p,m,x=0;do m=r+(c-r)/2,p=kce(m,u,d)-n,p>0?c=m:r=m;while(Math.abs(p)>PTn&&++x=DTn?NTn(m,P,n,c):I===0?P:_Tn(m,x,x+nse,n,c)}return m=>m===0||m===1?m:kce(p(m),r,u)}function RTn({onTap:n,onTapStart:r,onTapCancel:c,whileTap:u,visualElement:d}){const p=n||r||c||u,m=U.exports.useRef(!1),x=U.exports.useRef(null),E={passive:!(r||n||c||O)};function k(){x.current&&x.current(),x.current=null}function T(){return k(),m.current=!1,d.animationState&&d.animationState.setActive(hu.Tap,!1),!cDt()}function P(N,j){!T()||(uDt(d.getInstance(),N.target)?n&&n(N,j):c&&c(N,j))}function I(N,j){!T()||c&&c(N,j)}function O(N,j){k(),!m.current&&(m.current=!0,x.current=Tle(QM(window,"pointerup",P,E),QM(window,"pointercancel",I,E)),d.animationState&&d.animationState.setActive(hu.Tap,!0),r&&r(N,j))}wce(d,"pointerdown",p?O:void 0,E),uMe(k)}const $Tn="production",_Dt=typeof process>"u"||{}===void 0?$Tn:"production",B8t=new Set;function MDt(n,r,c){n||B8t.has(r)||(console.warn(r),c&&console.warn(c),B8t.add(r))}const jAe=new WeakMap,P9e=new WeakMap,LTn=n=>{const r=jAe.get(n.target);r&&r(n)},FTn=n=>{n.forEach(LTn)};function BTn({root:n,...r}){const c=n||document;P9e.has(c)||P9e.set(c,{});const u=P9e.get(c),d=JSON.stringify(r);return u[d]||(u[d]=new IntersectionObserver(FTn,{root:n,...r})),u[d]}function zTn(n,r,c){const u=BTn(r);return jAe.set(n,c),u.observe(n),()=>{jAe.delete(n),u.unobserve(n)}}function VTn({visualElement:n,whileInView:r,onViewportEnter:c,onViewportLeave:u,viewport:d={}}){const p=U.exports.useRef({hasEnteredView:!1,isInView:!1});let m=Boolean(r||c||u);d.once&&p.current.hasEnteredView&&(m=!1),(typeof IntersectionObserver>"u"?qTn:HTn)(m,p.current,n,d)}const UTn={some:0,all:1};function HTn(n,r,c,{root:u,margin:d,amount:p="some",once:m}){U.exports.useEffect(()=>{if(!n)return;const x={root:u==null?void 0:u.current,rootMargin:d,threshold:typeof p=="number"?p:UTn[p]},E=k=>{const{isIntersecting:T}=k;if(r.isInView===T||(r.isInView=T,m&&!T&&r.hasEnteredView))return;T&&(r.hasEnteredView=!0),c.animationState&&c.animationState.setActive(hu.InView,T);const P=c.getProps(),I=T?P.onViewportEnter:P.onViewportLeave;I&&I(k)};return zTn(c.getInstance(),x,E)},[n,u,d,p])}function qTn(n,r,c,{fallback:u=!0}){U.exports.useEffect(()=>{!n||!u||(_Dt!=="production"&&MDt(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{r.hasEnteredView=!0;const{onViewportEnter:d}=c.getProps();d&&d(null),c.animationState&&c.animationState.setActive(hu.InView,!0)}))},[n])}const ek=n=>r=>(n(r),null),WTn={inView:ek(VTn),tap:ek(RTn),focus:ek(x7n),hover:ek(_7n)};function bMe(){const n=U.exports.useContext(eN);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:c,register:u}=n,d=U.exports.useId();return U.exports.useEffect(()=>u(d),[]),!r&&c?[!1,()=>c&&c(d)]:[!0]}function GTn(){return XTn(U.exports.useContext(eN))}function XTn(n){return n===null?!0:n.isPresent}function DDt(n,r){if(!Array.isArray(r))return!1;const c=r.length;if(c!==n.length)return!1;for(let u=0;un*1e3,KTn={linear:dMe,easeIn:hMe,easeInOut:vDt,easeOut:nTn,circIn:yDt,circInOut:rTn,circOut:pMe,backIn:gMe,backInOut:oTn,backOut:iTn,anticipate:sTn,bounceIn:lTn,bounceInOut:fTn,bounceOut:Ece},z8t=n=>{if(Array.isArray(n)){xce(n.length===4);const[r,c,u,d]=n;return jTn(r,c,u,d)}else if(typeof n=="string")return KTn[n];return n},YTn=n=>Array.isArray(n)&&typeof n[0]!="number",V8t=(n,r)=>n==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&SS.test(r)&&!r.startsWith("url(")),$9=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),rse=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),O9e=()=>({type:"keyframes",ease:"linear",duration:.3}),QTn=n=>({type:"keyframes",duration:.8,values:n}),U8t={x:$9,y:$9,z:$9,rotate:$9,rotateX:$9,rotateY:$9,rotateZ:$9,scaleX:rse,scaleY:rse,scale:rse,opacity:O9e,backgroundColor:O9e,color:O9e,default:rse},ZTn=(n,r)=>{let c;return oq(r)?c=QTn:c=U8t[n]||U8t.default,{to:r,...c(r)}},JTn={...HMt,color:jp,backgroundColor:jp,outlineColor:jp,fill:jp,stroke:jp,borderColor:jp,borderTopColor:jp,borderRightColor:jp,borderBottomColor:jp,borderLeftColor:jp,filter:AAe,WebkitFilter:AAe},mMe=n=>JTn[n];function vMe(n,r){var c;let u=mMe(n);return u!==AAe&&(u=SS),(c=u.getAnimatableNone)===null||c===void 0?void 0:c.call(u,r)}const eAn={current:!1};function tAn({when:n,delay:r,delayChildren:c,staggerChildren:u,staggerDirection:d,repeat:p,repeatType:m,repeatDelay:x,from:E,...k}){return!!Object.keys(k).length}function nAn({ease:n,times:r,yoyo:c,flip:u,loop:d,...p}){const m={...p};return r&&(m.offset=r),p.duration&&(m.duration=Cce(p.duration)),p.repeatDelay&&(m.repeatDelay=Cce(p.repeatDelay)),n&&(m.ease=YTn(n)?n.map(z8t):z8t(n)),p.type==="tween"&&(m.type="keyframes"),(c||d||u)&&(c?m.repeatType="reverse":d?m.repeatType="loop":u&&(m.repeatType="mirror"),m.repeat=d||c||u||p.repeat),p.type!=="spring"&&(m.type="keyframes"),m}function rAn(n,r){var c,u;return(u=(c=(yMe(n,r)||{}).delay)!==null&&c!==void 0?c:n.delay)!==null&&u!==void 0?u:0}function iAn(n){return Array.isArray(n.to)&&n.to[0]===null&&(n.to=[...n.to],n.to[0]=n.from),n}function oAn(n,r,c){return Array.isArray(r.to)&&n.duration===void 0&&(n.duration=.8),iAn(r),tAn(n)||(n={...n,...ZTn(c,r.to)}),{...r,...nAn(n)}}function sAn(n,r,c,u,d){const p=yMe(u,n)||{};let m=p.from!==void 0?p.from:r.get();const x=V8t(n,c);m==="none"&&x&&typeof c=="string"?m=vMe(n,c):H8t(m)&&typeof c=="string"?m=q8t(c):!Array.isArray(c)&&H8t(c)&&typeof m=="string"&&(c=q8t(m));const E=V8t(n,m);function k(){const P={from:m,to:c,velocity:r.getVelocity(),onComplete:d,onUpdate:I=>r.set(I)};return p.type==="inertia"||p.type==="decay"?ATn({...P,...p}):kDt({...oAn(p,P,n),onUpdate:I=>{P.onUpdate(I),p.onUpdate&&p.onUpdate(I)},onComplete:()=>{P.onComplete(),p.onComplete&&p.onComplete()}})}function T(){const P=eDt(c);return r.set(P),d(),p.onUpdate&&p.onUpdate(P),p.onComplete&&p.onComplete(),{stop:()=>{}}}return!E||!x||p.type===!1?T:k}function H8t(n){return n===0||typeof n=="string"&&parseFloat(n)===0&&n.indexOf(" ")===-1}function q8t(n){return typeof n=="number"?0:vMe("",n)}function yMe(n,r){return n[r]||n.default||n}function wMe(n,r,c,u={}){return eAn.current&&(u={type:!1}),r.start(d=>{let p,m;const x=sAn(n,r,c,u,d),E=rAn(u,n),k=()=>m=x();return E?p=window.setTimeout(k,Cce(E)):k(),()=>{clearTimeout(p),m&&m.stop()}})}const aAn=n=>/^\-?\d*\.?\d+$/.test(n),cAn=n=>/^0[^.\s]+$/.test(n),NDt=1/60*1e3,uAn=typeof performance<"u"?()=>performance.now():()=>Date.now(),jDt=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(uAn()),NDt);function lAn(n){let r=[],c=[],u=0,d=!1,p=!1;const m=new WeakSet,x={schedule:(E,k=!1,T=!1)=>{const P=T&&d,I=P?r:c;return k&&m.add(E),I.indexOf(E)===-1&&(I.push(E),P&&d&&(u=r.length)),E},cancel:E=>{const k=c.indexOf(E);k!==-1&&c.splice(k,1),m.delete(E)},process:E=>{if(d){p=!0;return}if(d=!0,[r,c]=[c,r],c.length=0,u=r.length,u)for(let k=0;k(n[r]=lAn(()=>cq=!0),n),{}),Wx=iW.reduce((n,r)=>{const c=Ole[r];return n[r]=(u,d=!1,p=!1)=>(cq||hAn(),c.schedule(u,d,p)),n},{}),uq=iW.reduce((n,r)=>(n[r]=Ole[r].cancel,n),{}),_9e=iW.reduce((n,r)=>(n[r]=()=>Ole[r].process(JM),n),{}),dAn=n=>Ole[n].process(JM),RDt=n=>{cq=!1,JM.delta=RAe?NDt:Math.max(Math.min(n-JM.timestamp,fAn),1),JM.timestamp=n,$Ae=!0,iW.forEach(dAn),$Ae=!1,cq&&(RAe=!1,jDt(RDt))},hAn=()=>{cq=!0,RAe=!0,$Ae||jDt(RDt)},LAe=()=>JM;function xMe(n,r){n.indexOf(r)===-1&&n.push(r)}function SMe(n,r){const c=n.indexOf(r);c>-1&&n.splice(c,1)}class cH{constructor(){this.subscriptions=[]}add(r){return xMe(this.subscriptions,r),()=>SMe(this.subscriptions,r)}notify(r,c,u){const d=this.subscriptions.length;if(!!d)if(d===1)this.subscriptions[0](r,c,u);else for(let p=0;p!isNaN(parseFloat(n));class gAn{constructor(r){this.version="7.2.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new cH,this.velocityUpdateSubscribers=new cH,this.renderSubscribers=new cH,this.canTrackVelocity=!1,this.updateAndNotify=(c,u=!0)=>{this.prev=this.current,this.current=c;const{delta:d,timestamp:p}=LAe();this.lastUpdated!==p&&(this.timeDelta=d,this.lastUpdated=p,Wx.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),u&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Wx.postRender(this.velocityCheck),this.velocityCheck=({timestamp:c})=>{c!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=r,this.canTrackVelocity=pAn(this.current)}onChange(r){return this.updateSubscribers.add(r)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(r){return r(this.get()),this.renderSubscribers.add(r)}attach(r){this.passiveEffect=r}set(r,c=!0){!c||!this.passiveEffect?this.updateAndNotify(r,c):this.passiveEffect(r,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?CDt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(r){return this.stop(),new Promise(c=>{this.hasAnimated=!0,this.stopAnimation=r(c)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function yD(n){return new gAn(n)}const $Dt=n=>r=>r.test(n),bAn={test:n=>n==="auto",parse:n=>n},LDt=[J7,ho,qx,jE,H9n,U9n,bAn],oU=n=>LDt.find($Dt(n)),mAn=[...LDt,jp,SS],vAn=n=>mAn.find($Dt(n));function yAn(n){const r={};return n.forEachValue((c,u)=>r[u]=c.get()),r}function wAn(n){const r={};return n.forEachValue((c,u)=>r[u]=c.getVelocity()),r}function _le(n,r,c){const u=n.getProps();return JMt(u,r,c!==void 0?c:u.custom,yAn(n),wAn(n))}function xAn(n,r,c){n.hasValue(r)?n.getValue(r).set(c):n.addValue(r,yD(c))}function SAn(n,r){const c=_le(n,r);let{transitionEnd:u={},transition:d={},...p}=c?n.makeTargetAnimatable(c,!1):{};p={...p,...u};for(const m in p){const x=eDt(p[m]);xAn(n,m,x)}}function EAn(n,r,c){var u,d;const p=Object.keys(r).filter(x=>!n.hasValue(x)),m=p.length;if(!!m)for(let x=0;xFAe(n,p,c));u=Promise.all(d)}else if(typeof r=="string")u=FAe(n,r,c);else{const d=typeof r=="function"?_le(n,r,c.custom):r;u=FDt(n,d,c)}return u.then(()=>n.notifyAnimationComplete(r))}function FAe(n,r,c={}){var u;const d=_le(n,r,c.custom);let{transition:p=n.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(p=c.transitionOverride);const m=d?()=>FDt(n,d,c):()=>Promise.resolve(),x=!((u=n.variantChildren)===null||u===void 0)&&u.size?(k=0)=>{const{delayChildren:T=0,staggerChildren:P,staggerDirection:I}=p;return TAn(n,r,T+k,P,I,c)}:()=>Promise.resolve(),{when:E}=p;if(E){const[k,T]=E==="beforeChildren"?[m,x]:[x,m];return k().then(T)}else return Promise.all([m(),x(c.delay)])}function FDt(n,r,{delay:c=0,transitionOverride:u,type:d}={}){var p;let{transition:m=n.getDefaultTransition(),transitionEnd:x,...E}=n.makeTargetAnimatable(r);const k=n.getValue("willChange");u&&(m=u);const T=[],P=d&&((p=n.animationState)===null||p===void 0?void 0:p.getState()[d]);for(const I in E){const O=n.getValue(I),N=E[I];if(!O||N===void 0||P&&PAn(P,I))continue;let j={delay:c,...m};n.shouldReduceMotion&&eW.has(I)&&(j={...j,type:!1,delay:0});let L=wMe(I,O,N,j);Ice(k)&&(k.add(I),L=L.then(()=>k.remove(I))),T.push(L)}return Promise.all(T).then(()=>{x&&SAn(n,x)})}function TAn(n,r,c=0,u=0,d=1,p){const m=[],x=(n.variantChildren.size-1)*u,E=d===1?(k=0)=>k*u:(k=0)=>x-k*u;return Array.from(n.variantChildren).sort(AAn).forEach((k,T)=>{m.push(FAe(k,r,{...p,delay:c+E(T)}).then(()=>k.notifyAnimationComplete(r)))}),Promise.all(m)}function AAn(n,r){return n.sortNodePosition(r)}function PAn({protectedKeys:n,needsAnimating:r},c){const u=n.hasOwnProperty(c)&&r[c]!==!0;return r[c]=!1,u}const EMe=[hu.Animate,hu.InView,hu.Focus,hu.Hover,hu.Tap,hu.Drag,hu.Exit],OAn=[...EMe].reverse(),_An=EMe.length;function MAn(n){return r=>Promise.all(r.map(({animation:c,options:u})=>IAn(n,c,u)))}function DAn(n){let r=MAn(n);const c=jAn();let u=!0;const d=(E,k)=>{const T=_le(n,k);if(T){const{transition:P,transitionEnd:I,...O}=T;E={...E,...O,...I}}return E};function p(E){r=E(n)}function m(E,k){var T;const P=n.getProps(),I=n.getVariantContext(!0)||{},O=[],N=new Set;let j={},L=1/0;for(let F=0;F<_An;F++){const B=OAn[F],X=c[B],ne=(T=P[B])!==null&&T!==void 0?T:I[B],Z=nq(ne),H=B===k?X.isActive:null;H===!1&&(L=F);let ce=ne===I[B]&&ne!==P[B]&&Z;if(ce&&u&&n.manuallyAnimateOnMount&&(ce=!1),X.protectedKeys={...j},!X.isActive&&H===null||!ne&&!X.prevProp||Ele(ne)||typeof ne=="boolean")continue;const pe=NAn(X.prevProp,ne);let le=pe||B===k&&X.isActive&&!ce&&Z||F>L&&Z;const ye=Array.isArray(ne)?ne:[ne];let Ge=ye.reduce(d,{});H===!1&&(Ge={});const{prevResolvedValues:qe={}}=X,et={...qe,...Ge},tt=jt=>{le=!0,N.delete(jt),X.needsAnimating[jt]=!0};for(const jt in et){const Me=Ge[jt],ze=qe[jt];j.hasOwnProperty(jt)||(Me!==ze?oq(Me)&&oq(ze)?!DDt(Me,ze)||pe?tt(jt):X.protectedKeys[jt]=!0:Me!==void 0?tt(jt):N.add(jt):Me!==void 0&&N.has(jt)?tt(jt):X.protectedKeys[jt]=!0)}X.prevProp=ne,X.prevResolvedValues=Ge,X.isActive&&(j={...j,...Ge}),u&&n.blockInitialAnimation&&(le=!1),le&&!ce&&O.push(...ye.map(jt=>({animation:jt,options:{type:B,...E}})))}if(N.size){const F={};N.forEach(B=>{const X=n.getBaseTarget(B);X!==void 0&&(F[B]=X)}),O.push({animation:F})}let $=Boolean(O.length);return u&&P.initial===!1&&!n.manuallyAnimateOnMount&&($=!1),u=!1,$?r(O):Promise.resolve()}function x(E,k,T){var P;if(c[E].isActive===k)return Promise.resolve();(P=n.variantChildren)===null||P===void 0||P.forEach(O=>{var N;return(N=O.animationState)===null||N===void 0?void 0:N.setActive(E,k)}),c[E].isActive=k;const I=m(T,E);for(const O in c)c[O].protectedKeys={};return I}return{animateChanges:m,setActive:x,setAnimateFunction:p,getState:()=>c}}function NAn(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!DDt(r,n):!1}function L9(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jAn(){return{[hu.Animate]:L9(!0),[hu.InView]:L9(),[hu.Hover]:L9(),[hu.Tap]:L9(),[hu.Drag]:L9(),[hu.Focus]:L9(),[hu.Exit]:L9()}}const RAn={animation:ek(({visualElement:n,animate:r})=>{n.animationState||(n.animationState=DAn(n)),Ele(r)&&U.exports.useEffect(()=>r.subscribe(n),[r])}),exit:ek(n=>{const{custom:r,visualElement:c}=n,[u,d]=bMe(),p=U.exports.useContext(eN);U.exports.useEffect(()=>{c.isPresent=u;const m=c.animationState&&c.animationState.setActive(hu.Exit,!u,{custom:p&&p.custom||r});m&&!u&&m.then(d)},[u])})};class BDt{constructor(r,c,{transformPagePoint:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=D9e(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,P=IDt(k.offset,{x:0,y:0})>=3;if(!T&&!P)return;const{point:I}=k,{timestamp:O}=LAe();this.history.push({...I,timestamp:O});const{onStart:N,onMove:j}=this.handlers;T||(N&&N(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,k)},this.handlePointerMove=(k,T)=>{if(this.lastMoveEvent=k,this.lastMoveEventInfo=M9e(T,this.transformPagePoint),nDt(k)&&k.buttons===0){this.handlePointerUp(k,T);return}Wx.update(this.updatePoint,!0)},this.handlePointerUp=(k,T)=>{this.end();const{onEnd:P,onSessionEnd:I}=this.handlers,O=D9e(M9e(T,this.transformPagePoint),this.history);this.startEvent&&P&&P(k,O),I&&I(k,O)},rDt(r)&&r.touches.length>1)return;this.handlers=c,this.transformPagePoint=u;const d=cMe(r),p=M9e(d,this.transformPagePoint),{point:m}=p,{timestamp:x}=LAe();this.history=[{...m,timestamp:x}];const{onSessionStart:E}=c;E&&E(r,D9e(p,this.history)),this.removeListeners=Tle(QM(window,"pointermove",this.handlePointerMove),QM(window,"pointerup",this.handlePointerUp),QM(window,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),uq.update(this.updatePoint)}}function M9e(n,r){return r?{point:r(n.point)}:n}function W8t(n,r){return{x:n.x-r.x,y:n.y-r.y}}function D9e({point:n},r){return{point:n,delta:W8t(n,zDt(r)),offset:W8t(n,$An(r)),velocity:LAn(r,.1)}}function $An(n){return n[0]}function zDt(n){return n[n.length-1]}function LAn(n,r){if(n.length<2)return{x:0,y:0};let c=n.length-1,u=null;const d=zDt(n);for(;c>=0&&(u=n[c],!(d.timestamp-u.timestamp>Cce(r)));)c--;if(!u)return{x:0,y:0};const p=(d.timestamp-u.timestamp)/1e3;if(p===0)return{x:0,y:0};const m={x:(d.x-u.x)/p,y:(d.y-u.y)/p};return m.x===1/0&&(m.x=0),m.y===1/0&&(m.y=0),m}function ES(n){return n.max-n.min}function G8t(n,r=0,c=.01){return IDt(n,r)c&&(n=u?rf(c,n,u.max):Math.min(n,c)),n}function Q8t(n,r,c){return{min:r!==void 0?n.min+r:void 0,max:c!==void 0?n.max+c-(n.max-n.min):void 0}}function zAn(n,{top:r,left:c,bottom:u,right:d}){return{x:Q8t(n.x,c,d),y:Q8t(n.y,r,u)}}function Z8t(n,r){let c=r.min-n.min,u=r.max-n.max;return r.max-r.minu?c=sq(r.min,r.max-u,n.min):u>d&&(c=sq(n.min,n.max-d,r.min)),Sce(0,1,c)}function HAn(n,r){const c={};return r.min!==void 0&&(c.min=r.min-n.min),r.max!==void 0&&(c.max=r.max-n.min),c}const BAe=.35;function qAn(n=BAe){return n===!1?n=0:n===!0&&(n=BAe),{x:J8t(n,"left","right"),y:J8t(n,"top","bottom")}}function J8t(n,r,c){return{min:eIt(n,r),max:eIt(n,c)}}function eIt(n,r){var c;return typeof n=="number"?n:(c=n[r])!==null&&c!==void 0?c:0}const tIt=()=>({translate:0,scale:1,origin:0,originPoint:0}),fH=()=>({x:tIt(),y:tIt()}),nIt=()=>({min:0,max:0}),$1=()=>({x:nIt(),y:nIt()});function Cx(n){return[n("x"),n("y")]}function VDt({top:n,left:r,right:c,bottom:u}){return{x:{min:r,max:c},y:{min:n,max:u}}}function WAn({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function GAn(n,r){if(!r)return n;const c=r({x:n.left,y:n.top}),u=r({x:n.right,y:n.bottom});return{top:c.y,left:c.x,bottom:u.y,right:u.x}}function N9e(n){return n===void 0||n===1}function UDt({scale:n,scaleX:r,scaleY:c}){return!N9e(n)||!N9e(r)||!N9e(c)}function RE(n){return UDt(n)||rIt(n.x)||rIt(n.y)||n.z||n.rotate||n.rotateX||n.rotateY}function rIt(n){return n&&n!=="0%"}function Tce(n,r,c){const u=n-c,d=r*u;return c+d}function iIt(n,r,c,u,d){return d!==void 0&&(n=Tce(n,d,u)),Tce(n,c,u)+r}function zAe(n,r=0,c=1,u,d){n.min=iIt(n.min,r,c,u,d),n.max=iIt(n.max,r,c,u,d)}function HDt(n,{x:r,y:c}){zAe(n.x,r.translate,r.scale,r.originPoint),zAe(n.y,c.translate,c.scale,c.originPoint)}function XAn(n,r,c,u=!1){var d,p;const m=c.length;if(!m)return;r.x=r.y=1;let x,E;for(let k=0;k{this.stopAnimation(),c&&this.snapToCursor(cMe(x,"page").point)},d=(x,E)=>{var k;const{drag:T,dragPropagation:P,onDragStart:I}=this.getProps();T&&!P&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=aDt(T),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cx(O=>{var N,j;let L=this.getAxisMotionValue(O).get()||0;if(qx.test(L)){const $=(j=(N=this.visualElement.projection)===null||N===void 0?void 0:N.layout)===null||j===void 0?void 0:j.actual[O];$&&(L=ES($)*(parseFloat(L)/100))}this.originPoint[O]=L}),I==null||I(x,E),(k=this.visualElement.animationState)===null||k===void 0||k.setActive(hu.Drag,!0))},p=(x,E)=>{const{dragPropagation:k,dragDirectionLock:T,onDirectionLock:P,onDrag:I}=this.getProps();if(!k&&!this.openGlobalLock)return;const{offset:O}=E;if(T&&this.currentDirection===null){this.currentDirection=ePn(O),this.currentDirection!==null&&(P==null||P(this.currentDirection));return}this.updateAxis("x",E.point,O),this.updateAxis("y",E.point,O),this.visualElement.syncRender(),I==null||I(x,E)},m=(x,E)=>this.stop(x,E);this.panSession=new BDt(r,{onSessionStart:u,onStart:d,onMove:p,onSessionEnd:m},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(r,c){const u=this.isDragging;if(this.cancel(),!u)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p==null||p(r,c)}cancel(){var r,c;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(r=this.panSession)===null||r===void 0||r.end(),this.panSession=void 0;const{dragPropagation:u}=this.getProps();!u&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(c=this.visualElement.animationState)===null||c===void 0||c.setActive(hu.Drag,!1)}updateAxis(r,c,u){const{drag:d}=this.getProps();if(!u||!ise(r,d,this.currentDirection))return;const p=this.getAxisMotionValue(r);let m=this.originPoint[r]+u[r];this.constraints&&this.constraints[r]&&(m=BAn(m,this.constraints[r],this.elastic[r])),p.set(m)}resolveConstraints(){const{dragConstraints:r,dragElastic:c}=this.getProps(),{layout:u}=this.visualElement.projection||{},d=this.constraints;r&&_M(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&u?this.constraints=zAn(u.actual,r):this.constraints=!1,this.elastic=qAn(c),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&Cx(p=>{this.getAxisMotionValue(p)&&(this.constraints[p]=HAn(u.actual[p],this.constraints[p]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:c}=this.getProps();if(!r||!_M(r))return!1;const u=r.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const p=QAn(u,d.root,this.visualElement.getTransformPagePoint());let m=VAn(d.layout.actual,p);if(c){const x=c(WAn(m));this.hasMutatedConstraints=!!x,x&&(m=VDt(x))}return m}startAnimation(r){const{drag:c,dragMomentum:u,dragElastic:d,dragTransition:p,dragSnapToOrigin:m,onDragTransitionEnd:x}=this.getProps(),E=this.constraints||{},k=Cx(T=>{var P;if(!ise(T,c,this.currentDirection))return;let I=(P=E==null?void 0:E[T])!==null&&P!==void 0?P:{};m&&(I={min:0,max:0});const O=d?200:1e6,N=d?40:1e7,j={type:"inertia",velocity:u?r[T]:0,bounceStiffness:O,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...p,...I};return this.startAxisValueAnimation(T,j)});return Promise.all(k).then(x)}startAxisValueAnimation(r,c){const u=this.getAxisMotionValue(r);return wMe(r,u,0,c)}stopAnimation(){Cx(r=>this.getAxisMotionValue(r).stop())}getAxisMotionValue(r){var c,u;const d="_drag"+r.toUpperCase(),p=this.visualElement.getProps()[d];return p||this.visualElement.getValue(r,(u=(c=this.visualElement.getProps().initial)===null||c===void 0?void 0:c[r])!==null&&u!==void 0?u:0)}snapToCursor(r){Cx(c=>{const{drag:u}=this.getProps();if(!ise(c,u,this.currentDirection))return;const{projection:d}=this.visualElement,p=this.getAxisMotionValue(c);if(d&&d.layout){const{min:m,max:x}=d.layout.actual[c];p.set(r[c]-rf(m,x,.5))}})}scalePositionWithinConstraints(){var r;const{drag:c,dragConstraints:u}=this.getProps(),{projection:d}=this.visualElement;if(!_M(u)||!d||!this.constraints)return;this.stopAnimation();const p={x:0,y:0};Cx(x=>{const E=this.getAxisMotionValue(x);if(E){const k=E.get();p[x]=UAn({min:k,max:k},this.constraints[x])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=m?m({},""):"none",(r=d.root)===null||r===void 0||r.updateScroll(),d.updateLayout(),this.resolveConstraints(),Cx(x=>{if(!ise(x,c,null))return;const E=this.getAxisMotionValue(x),{min:k,max:T}=this.constraints[x];E.set(rf(k,T,p[x]))})}addListeners(){var r;ZAn.set(this.visualElement,this);const c=this.visualElement.getInstance(),u=QM(c,"pointerdown",k=>{const{drag:T,dragListener:P=!0}=this.getProps();T&&P&&this.start(k)}),d=()=>{const{dragConstraints:k}=this.getProps();_M(k)&&(this.constraints=this.resolveRefConstraints())},{projection:p}=this.visualElement,m=p.addEventListener("measure",d);p&&!p.layout&&((r=p.root)===null||r===void 0||r.updateScroll(),p.updateLayout()),d();const x=Ile(window,"resize",()=>this.scalePositionWithinConstraints()),E=p.addEventListener("didUpdate",({delta:k,hasLayoutChanged:T})=>{this.isDragging&&T&&(Cx(P=>{const I=this.getAxisMotionValue(P);!I||(this.originPoint[P]+=k[P].translate,I.set(I.get()+k[P].translate))}),this.visualElement.syncRender())});return()=>{x(),u(),m(),E==null||E()}}getProps(){const r=this.visualElement.getProps(),{drag:c=!1,dragDirectionLock:u=!1,dragPropagation:d=!1,dragConstraints:p=!1,dragElastic:m=BAe,dragMomentum:x=!0}=r;return{...r,drag:c,dragDirectionLock:u,dragPropagation:d,dragConstraints:p,dragElastic:m,dragMomentum:x}}}function ise(n,r,c){return(r===!0||r===n)&&(c===null||c===n)}function ePn(n,r=10){let c=null;return Math.abs(n.y)>r?c="y":Math.abs(n.x)>r&&(c="x"),c}function tPn(n){const{dragControls:r,visualElement:c}=n,u=Cle(()=>new JAn(c));U.exports.useEffect(()=>r&&r.subscribe(u),[u,r]),U.exports.useEffect(()=>u.addListeners(),[u])}function nPn({onPan:n,onPanStart:r,onPanEnd:c,onPanSessionStart:u,visualElement:d}){const p=n||r||c||u,m=U.exports.useRef(null),{transformPagePoint:x}=U.exports.useContext(eMe),E={onSessionStart:u,onStart:r,onMove:n,onEnd:(T,P)=>{m.current=null,c&&c(T,P)}};U.exports.useEffect(()=>{m.current!==null&&m.current.updateHandlers(E)});function k(T){m.current=new BDt(T,E,{transformPagePoint:x})}wce(d,"pointerdown",p&&k),uMe(()=>m.current&&m.current.end())}const rPn={pan:ek(nPn),drag:ek(tPn)},VAe={current:null},WDt={current:!1};function iPn(){if(WDt.current=!0,!!Z7)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>VAe.current=n.matches;n.addListener(r),r()}else VAe.current=!1}const ose=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function oPn(){const n=ose.map(()=>new cH),r={},c={clearAllListeners:()=>n.forEach(u=>u.clear()),updatePropListeners:u=>{ose.forEach(d=>{var p;const m="on"+d,x=u[m];(p=r[d])===null||p===void 0||p.call(r),x&&(r[d]=c[m](x))})}};return n.forEach((u,d)=>{c["on"+ose[d]]=p=>u.add(p),c["notify"+ose[d]]=(...p)=>u.notify(...p)}),c}function sPn(n,r,c){const{willChange:u}=r;for(const d in r){const p=r[d],m=c[d];if(Yx(p))n.addValue(d,p),Ice(u)&&u.add(d);else if(Yx(m))n.addValue(d,yD(p)),Ice(u)&&u.remove(d);else if(m!==p)if(n.hasValue(d)){const x=n.getValue(d);!x.hasAnimated&&x.set(p)}else{const x=n.getStaticValue(d);n.addValue(d,yD(x!==void 0?x:p))}}for(const d in c)r[d]===void 0&&n.removeValue(d);return r}const GDt=Object.keys(rq),aPn=GDt.length,XDt=({treeType:n="",build:r,getBaseTarget:c,makeTargetAnimatable:u,measureViewportBox:d,render:p,readValueFromInstance:m,removeValueFromRenderState:x,sortNodePosition:E,scrapeMotionValuesFromProps:k})=>({parent:T,props:P,presenceId:I,blockInitialAnimation:O,visualState:N,reducedMotionConfig:j},L={})=>{let $=!1;const{latestValues:F,renderState:B}=N;let X;const ne=oPn(),Z=new Map,H=new Map;let ce={};const pe={...F};let le;function ye(){!X||!$||(Ge(),p(X,B,P.style,we.projection))}function Ge(){r(we,B,F,L,P)}function qe(){ne.notifyUpdate(F)}function et(De,be){const Se=be.onChange(sn=>{F[De]=sn,P.onUpdate&&Wx.update(qe,!1,!0)}),Jt=be.onRenderRequest(we.scheduleRender);H.set(De,()=>{Se(),Jt()})}const{willChange:tt,...jt}=k(P);for(const De in jt){const be=jt[De];F[De]!==void 0&&Yx(be)&&(be.set(F[De],!1),Ice(tt)&&tt.add(De))}const Me=kle(P),ze=DMt(P),we={treeType:n,current:null,depth:T?T.depth+1:0,parent:T,children:new Set,presenceId:I,shouldReduceMotion:null,variantChildren:ze?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(T==null?void 0:T.isMounted()),blockInitialAnimation:O,isMounted:()=>Boolean(X),mount(De){$=!0,X=we.current=De,we.projection&&we.projection.mount(De),ze&&T&&!Me&&(le=T==null?void 0:T.addVariantChild(we)),Z.forEach((be,Se)=>et(Se,be)),WDt.current||iPn(),we.shouldReduceMotion=j==="never"?!1:j==="always"?!0:VAe.current,T==null||T.children.add(we),we.setProps(P)},unmount(){var De;(De=we.projection)===null||De===void 0||De.unmount(),uq.update(qe),uq.render(ye),H.forEach(be=>be()),le==null||le(),T==null||T.children.delete(we),ne.clearAllListeners(),X=void 0,$=!1},loadFeatures(De,be,Se,Jt,sn,Tn){const qn=[];for(let rr=0;rrwe.scheduleRender(),animationType:typeof Zn=="string"?Zn:"both",initialPromotionConfig:Tn,layoutScroll:ct})}return qn},addVariantChild(De){var be;const Se=we.getClosestVariantNode();if(Se)return(be=Se.variantChildren)===null||be===void 0||be.add(De),()=>Se.variantChildren.delete(De)},sortNodePosition(De){return!E||n!==De.treeType?0:E(we.getInstance(),De.getInstance())},getClosestVariantNode:()=>ze?we:T==null?void 0:T.getClosestVariantNode(),getLayoutId:()=>P.layoutId,getInstance:()=>X,getStaticValue:De=>F[De],setStaticValue:(De,be)=>F[De]=be,getLatestValues:()=>F,setVisibility(De){we.isVisible!==De&&(we.isVisible=De,we.scheduleRender())},makeTargetAnimatable(De,be=!0){return u(we,De,P,be)},measureViewportBox(){return d(X,P)},addValue(De,be){we.hasValue(De)&&we.removeValue(De),Z.set(De,be),F[De]=be.get(),et(De,be)},removeValue(De){var be;Z.delete(De),(be=H.get(De))===null||be===void 0||be(),H.delete(De),delete F[De],x(De,B)},hasValue:De=>Z.has(De),getValue(De,be){let Se=Z.get(De);return Se===void 0&&be!==void 0&&(Se=yD(be),we.addValue(De,Se)),Se},forEachValue:De=>Z.forEach(De),readValue:De=>F[De]!==void 0?F[De]:m(X,De,L),setBaseTarget(De,be){pe[De]=be},getBaseTarget(De){if(c){const be=c(P,De);if(be!==void 0&&!Yx(be))return be}return pe[De]},...ne,build(){return Ge(),B},scheduleRender(){Wx.render(ye,!1,!0)},syncRender:ye,setProps(De){(De.transformTemplate||P.transformTemplate)&&we.scheduleRender(),P=De,ne.updatePropListeners(De),ce=sPn(we,k(P),ce)},getProps:()=>P,getVariant:De=>{var be;return(be=P.variants)===null||be===void 0?void 0:be[De]},getDefaultTransition:()=>P.transition,getTransformPagePoint:()=>P.transformPagePoint,getVariantContext(De=!1){if(De)return T==null?void 0:T.getVariantContext();if(!Me){const Se=(T==null?void 0:T.getVariantContext())||{};return P.initial!==void 0&&(Se.initial=P.initial),Se}const be={};for(let Se=0;Se{const p=d.get();if(!UAe(p))return;const m=HAe(p,u);m&&d.set(m)});for(const d in r){const p=r[d];if(!UAe(p))continue;const m=HAe(p,u);!m||(r[d]=m,c&&c[d]===void 0&&(c[d]=p))}return{target:r,transitionEnd:c}}const fPn=new Set(["width","height","top","left","right","bottom","x","y"]),QDt=n=>fPn.has(n),dPn=n=>Object.keys(n).some(QDt),ZDt=(n,r)=>{n.set(r,!1),n.set(r)},sIt=n=>n===J7||n===ho;var aIt;(function(n){n.width="width",n.height="height",n.left="left",n.right="right",n.top="top",n.bottom="bottom"})(aIt||(aIt={}));const cIt=(n,r)=>parseFloat(n.split(", ")[r]),uIt=(n,r)=>(c,{transform:u})=>{if(u==="none"||!u)return 0;const d=u.match(/^matrix3d\((.+)\)$/);if(d)return cIt(d[1],r);{const p=u.match(/^matrix\((.+)\)$/);return p?cIt(p[1],n):0}},hPn=new Set(["x","y","z"]),pPn=yce.filter(n=>!hPn.has(n));function gPn(n){const r=[];return pPn.forEach(c=>{const u=n.getValue(c);u!==void 0&&(r.push([c,u.get()]),u.set(c.startsWith("scale")?1:0))}),r.length&&n.syncRender(),r}const lIt={width:({x:n},{paddingLeft:r="0",paddingRight:c="0"})=>n.max-n.min-parseFloat(r)-parseFloat(c),height:({y:n},{paddingTop:r="0",paddingBottom:c="0"})=>n.max-n.min-parseFloat(r)-parseFloat(c),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:uIt(4,13),y:uIt(5,14)},bPn=(n,r,c)=>{const u=r.measureViewportBox(),d=r.getInstance(),p=getComputedStyle(d),{display:m}=p,x={};m==="none"&&r.setStaticValue("display",n.display||"block"),c.forEach(k=>{x[k]=lIt[k](u,p)}),r.syncRender();const E=r.measureViewportBox();return c.forEach(k=>{const T=r.getValue(k);ZDt(T,x[k]),n[k]=lIt[k](E,p)}),n},mPn=(n,r,c={},u={})=>{r={...r},u={...u};const d=Object.keys(r).filter(QDt);let p=[],m=!1;const x=[];if(d.forEach(E=>{const k=n.getValue(E);if(!n.hasValue(E))return;let T=c[E],P=oU(T);const I=r[E];let O;if(oq(I)){const N=I.length,j=I[0]===null?1:0;T=I[j],P=oU(T);for(let L=j;L=0?window.pageYOffset:null,k=bPn(r,n,x);return p.length&&p.forEach(([T,P])=>{n.getValue(T).set(P)}),n.syncRender(),Z7&&E!==null&&window.scrollTo({top:E}),{target:k,transitionEnd:u}}else return{target:r,transitionEnd:u}};function vPn(n,r,c,u){return dPn(r)?mPn(n,r,c,u):{target:r,transitionEnd:u}}const yPn=(n,r,c,u)=>{const d=lPn(n,r,u);return r=d.target,u=d.transitionEnd,vPn(n,r,c,u)};function wPn(n){return window.getComputedStyle(n)}const JDt={treeType:"dom",readValueFromInstance(n,r){if(eW.has(r)){const c=mMe(r);return c&&c.default||0}else{const c=wPn(n),u=(RMt(r)?c.getPropertyValue(r):c[r])||0;return typeof u=="string"?u.trim():u}},sortNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1},getBaseTarget(n,r){var c;return(c=n.style)===null||c===void 0?void 0:c[r]},measureViewportBox(n,{transformPagePoint:r}){return qDt(n,r)},resetTransform(n,r,c){const{transformTemplate:u}=c;r.style.transform=u?u({},""):"none",n.scheduleRender()},restoreTransform(n,r){n.style.transform=r.style.transform},removeValueFromRenderState(n,{vars:r,style:c}){delete r[n],delete c[n]},makeTargetAnimatable(n,{transition:r,transitionEnd:c,...u},{transformValues:d},p=!0){let m=CAn(u,r||{},n);if(d&&(c&&(c=d(c)),u&&(u=d(u)),m&&(m=d(m))),p){EAn(n,u,m);const x=yPn(n,u,m,c);c=x.transitionEnd,u=x.target}return{transition:r,transitionEnd:c,...u}},scrapeMotionValuesFromProps:aMe,build(n,r,c,u,d){n.isVisible!==void 0&&(r.style.visibility=n.isVisible?"visible":"hidden"),iMe(r,c,u,d.transformTemplate)},render:KMt},xPn=XDt(JDt),SPn=XDt({...JDt,getBaseTarget(n,r){return n[r]},readValueFromInstance(n,r){var c;return eW.has(r)?((c=mMe(r))===null||c===void 0?void 0:c.default)||0:(r=YMt.has(r)?r:XMt(r),n.getAttribute(r))},scrapeMotionValuesFromProps:ZMt,build(n,r,c,u,d){sMe(r,c,u,d.transformTemplate)},render:QMt}),EPn=(n,r)=>nMe(n)?SPn(r,{enableHardwareAcceleration:!1}):xPn(r,{enableHardwareAcceleration:!0});function fIt(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const sU={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(ho.test(n))n=parseFloat(n);else return n;const c=fIt(n,r.target.x),u=fIt(n,r.target.y);return`${c}% ${u}%`}},dIt="_$css",kPn={correct:(n,{treeScale:r,projectionDelta:c})=>{const u=n,d=n.includes("var("),p=[];d&&(n=n.replace(YDt,O=>(p.push(O),dIt)));const m=SS.parse(n);if(m.length>5)return u;const x=SS.createTransformer(n),E=typeof m[0]!="number"?1:0,k=c.x.scale*r.x,T=c.y.scale*r.y;m[0+E]/=k,m[1+E]/=T;const P=rf(k,T,.5);typeof m[2+E]=="number"&&(m[2+E]/=P),typeof m[3+E]=="number"&&(m[3+E]/=P);let I=x(m);if(d){let O=0;I=I.replace(dIt,()=>{const N=p[O];return O++,N})}return I}};class CPn extends ut.Component{componentDidMount(){const{visualElement:r,layoutGroup:c,switchLayoutGroup:u,layoutId:d}=this.props,{projection:p}=r;$9n(TPn),p&&(c.group&&c.group.add(p),u&&u.register&&d&&u.register(p),p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,onExitComplete:()=>this.safeToRemove()})),oH.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:c,visualElement:u,drag:d,isPresent:p}=this.props,m=u.projection;return m&&(m.isPresent=p,d||r.layoutDependency!==c||c===void 0?m.willUpdate():this.safeToRemove(),r.isPresent!==p&&(p?m.promote():m.relegate()||Wx.postRender(()=>{var x;!((x=m.getStack())===null||x===void 0)&&x.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:r,layoutGroup:c,switchLayoutGroup:u}=this.props,{projection:d}=r;d&&(d.scheduleCheckAfterUnmount(),c!=null&&c.group&&c.group.remove(d),u!=null&&u.deregister&&u.deregister(d))}safeToRemove(){const{safeToRemove:r}=this.props;r==null||r()}render(){return null}}function IPn(n){const[r,c]=bMe(),u=U.exports.useContext(tMe);return V(CPn,{...n,layoutGroup:u,switchLayoutGroup:U.exports.useContext(NMt),isPresent:r,safeToRemove:c})}const TPn={borderRadius:{...sU,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sU,borderTopRightRadius:sU,borderBottomLeftRadius:sU,borderBottomRightRadius:sU,boxShadow:kPn},APn={measureLayout:IPn};function PPn(n,r,c={}){const u=Yx(n)?n:yD(n);return wMe("",u,r,c),{stop:()=>u.stop(),isAnimating:()=>u.isAnimating()}}const eNt=["TopLeft","TopRight","BottomLeft","BottomRight"],OPn=eNt.length,hIt=n=>typeof n=="string"?parseFloat(n):n,pIt=n=>typeof n=="number"||ho.test(n);function _Pn(n,r,c,u,d,p){var m,x,E,k;d?(n.opacity=rf(0,(m=c.opacity)!==null&&m!==void 0?m:1,MPn(u)),n.opacityExit=rf((x=r.opacity)!==null&&x!==void 0?x:1,0,DPn(u))):p&&(n.opacity=rf((E=r.opacity)!==null&&E!==void 0?E:1,(k=c.opacity)!==null&&k!==void 0?k:1,u));for(let T=0;Tur?1:c(sq(n,r,u))}function bIt(n,r){n.min=r.min,n.max=r.max}function dw(n,r){bIt(n.x,r.x),bIt(n.y,r.y)}function mIt(n,r,c,u,d){return n-=r,n=Tce(n,1/c,u),d!==void 0&&(n=Tce(n,1/d,u)),n}function NPn(n,r=0,c=1,u=.5,d,p=n,m=n){if(qx.test(r)&&(r=parseFloat(r),r=rf(m.min,m.max,r/100)-m.min),typeof r!="number")return;let x=rf(p.min,p.max,u);n===p&&(x-=r),n.min=mIt(n.min,r,c,x,d),n.max=mIt(n.max,r,c,x,d)}function vIt(n,r,[c,u,d],p,m){NPn(n,r[c],r[u],r[d],r.scale,p,m)}const jPn=["x","scaleX","originX"],RPn=["y","scaleY","originY"];function yIt(n,r,c,u){vIt(n.x,r,jPn,c==null?void 0:c.x,u==null?void 0:u.x),vIt(n.y,r,RPn,c==null?void 0:c.y,u==null?void 0:u.y)}function wIt(n){return n.translate===0&&n.scale===1}function nNt(n){return wIt(n.x)&&wIt(n.y)}function rNt(n,r){return n.x.min===r.x.min&&n.x.max===r.x.max&&n.y.min===r.y.min&&n.y.max===r.y.max}class $Pn{constructor(){this.members=[]}add(r){xMe(this.members,r),r.scheduleRender()}remove(r){if(SMe(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const c=this.members[this.members.length-1];c&&this.promote(c)}}relegate(r){const c=this.members.findIndex(d=>r===d);if(c===0)return!1;let u;for(let d=c;d>=0;d--){const p=this.members[d];if(p.isPresent!==!1){u=p;break}}return u?(this.promote(u),!0):!1}promote(r,c){var u;const d=this.lead;if(r!==d&&(this.prevLead=d,this.lead=r,r.show(),d)){d.instance&&d.scheduleRender(),r.scheduleRender(),r.resumeFrom=d,c&&(r.resumeFrom.preserveOpacity=!0),d.snapshot&&(r.snapshot=d.snapshot,r.snapshot.latestValues=d.animationValues||d.latestValues,r.snapshot.isShared=!0),!((u=r.root)===null||u===void 0)&&u.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:p}=r.options;p===!1&&d.hide()}}exitAnimationComplete(){this.members.forEach(r=>{var c,u,d,p,m;(u=(c=r.options).onExitComplete)===null||u===void 0||u.call(c),(m=(d=r.resumingFrom)===null||d===void 0?void 0:(p=d.options).onExitComplete)===null||m===void 0||m.call(p)})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const LPn="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function xIt(n,r,c){const u=n.x.translate/r.x,d=n.y.translate/r.y;let p=`translate3d(${u}px, ${d}px, 0) `;if(p+=`scale(${1/r.x}, ${1/r.y}) `,c){const{rotate:E,rotateX:k,rotateY:T}=c;E&&(p+=`rotate(${E}deg) `),k&&(p+=`rotateX(${k}deg) `),T&&(p+=`rotateY(${T}deg) `)}const m=n.x.scale*r.x,x=n.y.scale*r.y;return p+=`scale(${m}, ${x})`,p===LPn?"none":p}const FPn=(n,r)=>n.depth-r.depth;class BPn{constructor(){this.children=[],this.isDirty=!1}add(r){xMe(this.children,r),this.isDirty=!0}remove(r){SMe(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(FPn),this.isDirty=!1,this.children.forEach(r)}}const SIt=["","X","Y","Z"],EIt=1e3;function iNt({attachResizeListener:n,defaultParent:r,measureScroll:c,checkIsScrollRoot:u,resetTransform:d}){return class{constructor(m,x={},E=r==null?void 0:r()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(WPn),this.nodes.forEach(GPn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=m,this.latestValues=x,this.root=E?E.root||E:this,this.path=E?[...E.path,E]:[],this.parent=E,this.depth=E?E.depth+1:0,m&&this.root.registerPotentialNode(m,this);for(let k=0;kthis.root.updateBlockedByResize=!1;n(m,()=>{this.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(O,250),oH.hasAnimatedSinceResize&&(oH.hasAnimatedSinceResize=!1,this.nodes.forEach(qPn))})}k&&this.root.registerSharedNode(k,this),this.options.animate!==!1&&P&&(k||T)&&this.addEventListener("didUpdate",({delta:I,hasLayoutChanged:O,hasRelativeTargetChanged:N,layout:j})=>{var L,$,F,B,X;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const ne=($=(L=this.options.transition)!==null&&L!==void 0?L:P.getDefaultTransition())!==null&&$!==void 0?$:ZPn,{onLayoutAnimationStart:Z,onLayoutAnimationComplete:H}=P.getProps(),ce=!this.targetLayout||!rNt(this.targetLayout,j)||N,pe=!O&&N;if(((F=this.resumeFrom)===null||F===void 0?void 0:F.instance)||pe||O&&(ce||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(I,pe);const le={...yMe(ne,"layout"),onPlay:Z,onComplete:H};P.shouldReduceMotion&&(le.delay=0,le.type=!1),this.startAnimation(le)}else!O&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((X=(B=this.options).onExitComplete)===null||X===void 0||X.call(B));this.targetLayout=j})}unmount(){var m,x;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(m=this.getStack())===null||m===void 0||m.remove(this),(x=this.parent)===null||x===void 0||x.children.delete(this),this.instance=void 0,uq.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var m;return this.isAnimationBlocked||((m=this.parent)===null||m===void 0?void 0:m.isTreeAnimationBlocked())||!1}startUpdate(){var m;this.isUpdateBlocked()||(this.isUpdating=!0,(m=this.nodes)===null||m===void 0||m.forEach(XPn))}willUpdate(m=!0){var x,E,k;if(this.root.isUpdateBlocked()){(E=(x=this.options).onExitComplete)===null||E===void 0||E.call(x);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let O=0;O{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const m=this.measure(),x=this.removeTransform(this.removeElementScroll(m));AIt(x),this.snapshot={measured:m,layout:x,latestValues:{}}}updateLayout(){var m;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let k=0;k{var F;const B=$/1e3;CIt(I.x,m.x,B),CIt(I.y,m.y,B),this.setTargetDelta(I),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((F=this.relativeParent)===null||F===void 0?void 0:F.layout)&&(lH(O,this.layout.actual,this.relativeParent.layout.actual),YPn(this.relativeTarget,this.relativeTargetOrigin,O,B)),N&&(this.animationValues=P,_Pn(P,T,this.latestValues,B,L,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(0)}startAnimation(m){var x,E;this.notifyListeners("animationStart"),(x=this.currentAnimation)===null||x===void 0||x.stop(),this.resumingFrom&&((E=this.resumingFrom.currentAnimation)===null||E===void 0||E.stop()),this.pendingAnimation&&(uq.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Wx.update(()=>{oH.hasAnimatedSinceResize=!0,this.currentAnimation=PPn(0,EIt,{...m,onUpdate:k=>{var T;this.mixTargetDelta(k),(T=m.onUpdate)===null||T===void 0||T.call(m,k)},onComplete:()=>{var k;(k=m.onComplete)===null||k===void 0||k.call(m),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var m;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(m=this.getStack())===null||m===void 0||m.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var m;this.currentAnimation&&((m=this.mixTargetDelta)===null||m===void 0||m.call(this,EIt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const{targetWithTransforms:m,target:x,layout:E,latestValues:k}=this.getLead();!m||!x||!E||(dw(m,x),MM(m,k),uH(this.projectionDeltaWithTransform,this.layoutCorrected,m,k))}registerSharedNode(m,x){var E,k,T;this.sharedNodes.has(m)||this.sharedNodes.set(m,new $Pn),this.sharedNodes.get(m).add(x),x.promote({transition:(E=x.options.initialPromotionConfig)===null||E===void 0?void 0:E.transition,preserveFollowOpacity:(T=(k=x.options.initialPromotionConfig)===null||k===void 0?void 0:k.shouldPreserveFollowOpacity)===null||T===void 0?void 0:T.call(k,x)})}isLead(){const m=this.getStack();return m?m.lead===this:!0}getLead(){var m;const{layoutId:x}=this.options;return x?((m=this.getStack())===null||m===void 0?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:x}=this.options;return x?(m=this.getStack())===null||m===void 0?void 0:m.prevLead:void 0}getStack(){const{layoutId:m}=this.options;if(m)return this.root.sharedNodes.get(m)}promote({needsReset:m,transition:x,preserveFollowOpacity:E}={}){const k=this.getStack();k&&k.promote(this,E),m&&(this.projectionDelta=void 0,this.needsReset=!0),x&&this.setOptions({transition:x})}relegate(){const m=this.getStack();return m?m.relegate(this):!1}resetRotation(){const{visualElement:m}=this.options;if(!m)return;let x=!1;const E={};for(let k=0;k{var x;return(x=m.currentAnimation)===null||x===void 0?void 0:x.stop()}),this.root.nodes.forEach(kIt),this.root.sharedNodes.clear()}}}function zPn(n){n.updateLayout()}function VPn(n){var r,c,u;const d=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&d&&n.hasListeners("didUpdate")){const{actual:p,measured:m}=n.layout;n.options.animationType==="size"?Cx(P=>{const I=d.isShared?d.measured[P]:d.layout[P],O=ES(I);I.min=p[P].min,I.max=I.min+O}):n.options.animationType==="position"&&Cx(P=>{const I=d.isShared?d.measured[P]:d.layout[P],O=ES(p[P]);I.max=I.min+O});const x=fH();uH(x,p,d.layout);const E=fH();d.isShared?uH(E,n.applyTransform(m,!0),d.measured):uH(E,p,d.layout);const k=!nNt(x);let T=!1;if(!n.resumeFrom&&(n.relativeParent=n.getClosestProjectingParent(),n.relativeParent&&!n.relativeParent.resumeFrom)){const{snapshot:P,layout:I}=n.relativeParent;if(P&&I){const O=$1();lH(O,d.layout,P.layout);const N=$1();lH(N,p,I.actual),rNt(O,N)||(T=!0)}}n.notifyListeners("didUpdate",{layout:p,snapshot:d,delta:E,layoutDelta:x,hasLayoutChanged:k,hasRelativeTargetChanged:T})}else n.isLead()&&((u=(c=n.options).onExitComplete)===null||u===void 0||u.call(c));n.options.transition=void 0}function UPn(n){n.clearSnapshot()}function kIt(n){n.clearMeasurements()}function HPn(n){const{visualElement:r}=n.options;r!=null&&r.getProps().onBeforeLayoutMeasure&&r.notifyBeforeLayoutMeasure(),n.resetTransform()}function qPn(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0}function WPn(n){n.resolveTargetDelta()}function GPn(n){n.calcProjection()}function XPn(n){n.resetRotation()}function KPn(n){n.removeLeadSnapshot()}function CIt(n,r,c){n.translate=rf(r.translate,0,c),n.scale=rf(r.scale,1,c),n.origin=r.origin,n.originPoint=r.originPoint}function IIt(n,r,c,u){n.min=rf(r.min,c.min,u),n.max=rf(r.max,c.max,u)}function YPn(n,r,c,u){IIt(n.x,r.x,c.x,u),IIt(n.y,r.y,c.y,u)}function QPn(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const ZPn={duration:.45,ease:[.4,0,.1,1]};function JPn(n,r){let c=n.root;for(let p=n.path.length-1;p>=0;p--)if(Boolean(n.path[p].instance)){c=n.path[p];break}const d=(c&&c!==n.root?c.instance:document).querySelector(`[data-projection-id="${r}"]`);d&&n.mount(d,!0)}function TIt(n){n.min=Math.round(n.min),n.max=Math.round(n.max)}function AIt(n){TIt(n.x),TIt(n.y)}const eOn=iNt({attachResizeListener:(n,r)=>Ile(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),j9e={current:void 0},tOn=iNt({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!j9e.current){const n=new eOn(0,{});n.mount(window),n.setOptions({layoutScroll:!0}),j9e.current=n}return j9e.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>Boolean(window.getComputedStyle(n).position==="fixed")}),nOn={...RAn,...WTn,...rPn,...APn},H1=j9n((n,r)=>w7n(n,r,nOn,EPn,tOn));function oNt(){const n=U.exports.useRef(!1);return mce(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function rOn(){const n=oNt(),[r,c]=U.exports.useState(0),u=U.exports.useCallback(()=>{n.current&&c(r+1)},[r]);return[U.exports.useCallback(()=>Wx.postRender(u),[u]),r]}class iOn extends U.exports.Component{getSnapshotBeforeUpdate(r){const c=this.props.childRef.current;if(c&&r.isPresent&&!this.props.isPresent){const u=this.props.sizeRef.current;u.height=c.offsetHeight||0,u.width=c.offsetWidth||0,u.top=c.offsetTop,u.left=c.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function oOn({children:n,isPresent:r}){const c=U.exports.useId(),u=U.exports.useRef(null),d=U.exports.useRef({width:0,height:0,top:0,left:0});return U.exports.useInsertionEffect(()=>{const{width:p,height:m,top:x,left:E}=d.current;if(r||!u.current||!p||!m)return;u.current.dataset.motionPopId=c;const k=document.createElement("style");return document.head.appendChild(k),k.sheet&&k.sheet.insertRule(` - [data-motion-pop-id="${c}"] { - position: absolute !important; - width: ${p}px !important; - height: ${m}px !important; - top: ${x}px !important; - left: ${E}px !important; - } - `),()=>{document.head.removeChild(k)}},[r]),V(iOn,{isPresent:r,childRef:u,sizeRef:d,children:U.exports.cloneElement(n,{ref:u})})}const R9e=({children:n,initial:r,isPresent:c,onExitComplete:u,custom:d,presenceAffectsLayout:p,mode:m})=>{const x=Cle(sOn),E=U.exports.useId(),k=U.exports.useMemo(()=>({id:E,initial:r,isPresent:c,custom:d,onExitComplete:T=>{x.set(T,!0);for(const P of x.values())if(!P)return;u&&u()},register:T=>(x.set(T,!1),()=>x.delete(T))}),p?void 0:[c]);return U.exports.useMemo(()=>{x.forEach((T,P)=>x.set(P,!1))},[c]),U.exports.useEffect(()=>{!c&&!x.size&&u&&u()},[c]),m==="popLayout"&&(n=V(oOn,{isPresent:c,children:n})),V(eN.Provider,{value:k,children:n})};function sOn(){return new Map}const pM=n=>n.key||"";function aOn(n,r){n.forEach(c=>{const u=pM(c);r.set(u,c)})}function cOn(n){const r=[];return U.exports.Children.forEach(n,c=>{U.exports.isValidElement(c)&&r.push(c)}),r}const _S=({children:n,custom:r,initial:c=!0,onExitComplete:u,exitBeforeEnter:d,presenceAffectsLayout:p=!0,mode:m="sync"})=>{d&&(m="wait",MDt(!1,"Replace exitBeforeEnter with mode='wait'"));let[x]=rOn();const E=U.exports.useContext(tMe).forceRender;E&&(x=E);const k=oNt(),T=cOn(n);let P=T;const I=new Set,O=U.exports.useRef(P),N=U.exports.useRef(new Map).current,j=U.exports.useRef(!0);if(mce(()=>{j.current=!1,aOn(T,N),O.current=P}),uMe(()=>{j.current=!0,N.clear(),I.clear()}),j.current)return V(Si,{children:P.map(B=>V(R9e,{isPresent:!0,initial:c?void 0:!1,presenceAffectsLayout:p,mode:m,children:B},pM(B)))});P=[...P];const L=O.current.map(pM),$=T.map(pM),F=L.length;for(let B=0;B{if($.indexOf(B)!==-1)return;const X=N.get(B);if(!X)return;const ne=L.indexOf(B),Z=()=>{N.delete(B),I.delete(B);const H=O.current.findIndex(ce=>ce.key===B);if(O.current.splice(H,1),!I.size){if(O.current=T,k.current===!1)return;x(),u&&u()}};P.splice(ne,0,V(R9e,{isPresent:!1,onExitComplete:Z,custom:r,presenceAffectsLayout:p,mode:m,children:X},pM(X)))}),P=P.map(B=>{const X=B.key;return I.has(X)?B:V(R9e,{isPresent:!0,presenceAffectsLayout:p,mode:m,children:B},pM(B))}),_Dt!=="production"&&m==="wait"&&P.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),V(Si,{children:I.size?P:P.map(B=>U.exports.cloneElement(B))})};var oW=(...n)=>n.filter(Boolean).join(" ");function uOn(){return!1}var lOn=n=>{const{condition:r,message:c}=n;r&&uOn()&&console.warn(c)},s7={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},aU={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function qAe(n){var c;switch((c=n==null?void 0:n.direction)!=null?c:"right"){case"right":return aU.slideRight;case"left":return aU.slideLeft;case"bottom":return aU.slideDown;case"top":return aU.slideUp;default:return aU.slideRight}}var v7={enter:{duration:.2,ease:s7.easeOut},exit:{duration:.1,ease:s7.easeIn}},Aw={enter:(n,r)=>({...n,delay:typeof r=="number"?r:r==null?void 0:r.enter}),exit:(n,r)=>({...n,delay:typeof r=="number"?r:r==null?void 0:r.exit})},fOn=n=>n!=null&&parseInt(n.toString(),10)>0,PIt={exit:{height:{duration:.2,ease:s7.ease},opacity:{duration:.3,ease:s7.ease}},enter:{height:{duration:.3,ease:s7.ease},opacity:{duration:.4,ease:s7.ease}}},dOn={exit:({animateOpacity:n,startingHeight:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{...n&&{opacity:fOn(r)?1:0},height:r,transitionEnd:u==null?void 0:u.exit,transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(PIt.exit,d)}},enter:({animateOpacity:n,endingHeight:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{...n&&{opacity:1},height:r,transitionEnd:u==null?void 0:u.enter,transition:(p=c==null?void 0:c.enter)!=null?p:Aw.enter(PIt.enter,d)}}},lq=U.exports.forwardRef((n,r)=>{const{in:c,unmountOnExit:u,animateOpacity:d=!0,startingHeight:p=0,endingHeight:m="auto",style:x,className:E,transition:k,transitionEnd:T,...P}=n,[I,O]=U.exports.useState(!1);U.exports.useEffect(()=>{const F=setTimeout(()=>{O(!0)});return()=>clearTimeout(F)},[]),lOn({condition:Boolean(p>0&&u),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const N=parseFloat(p.toString())>0,j={startingHeight:p,endingHeight:m,animateOpacity:d,transition:I?k:{enter:{duration:0}},transitionEnd:{enter:T==null?void 0:T.enter,exit:u?T==null?void 0:T.exit:{...T==null?void 0:T.exit,display:N?"block":"none"}}},L=u?c:!0,$=c||u?"enter":"exit";return V(_S,{initial:!1,custom:j,children:L&&ut.createElement(H1.div,{ref:r,...P,className:oW("chakra-collapse",E),style:{overflow:"hidden",display:"block",...x},custom:j,variants:dOn,initial:u?"exit":!1,animate:$,exit:"exit"})})});lq.displayName="Collapse";var hOn={enter:({transition:n,transitionEnd:r,delay:c}={})=>{var u;return{opacity:1,transition:(u=n==null?void 0:n.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:r==null?void 0:r.enter}},exit:({transition:n,transitionEnd:r,delay:c}={})=>{var u;return{opacity:0,transition:(u=n==null?void 0:n.exit)!=null?u:Aw.exit(v7.exit,c),transitionEnd:r==null?void 0:r.exit}}},sNt={initial:"exit",animate:"enter",exit:"exit",variants:hOn},aNt=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,className:p,transition:m,transitionEnd:x,delay:E,...k}=r,T=d||u?"enter":"exit",P=u?d&&u:!0,I={transition:m,transitionEnd:x,delay:E};return V(_S,{custom:I,children:P&&ut.createElement(H1.div,{ref:c,className:oW("chakra-fade",p),custom:I,...sNt,animate:T,...k})})});aNt.displayName="Fade";var pOn={exit:({reverse:n,initialScale:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{opacity:0,...n?{scale:r,transitionEnd:u==null?void 0:u.exit}:{transitionEnd:{scale:r,...u==null?void 0:u.exit}},transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(v7.exit,d)}},enter:({transitionEnd:n,transition:r,delay:c})=>{var u;return{opacity:1,scale:1,transition:(u=r==null?void 0:r.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:n==null?void 0:n.enter}}},cNt={initial:"exit",animate:"enter",exit:"exit",variants:pOn},gOn=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,reverse:p=!0,initialScale:m=.95,className:x,transition:E,transitionEnd:k,delay:T,...P}=r,I=u?d&&u:!0,O=d||u?"enter":"exit",N={initialScale:m,reverse:p,transition:E,transitionEnd:k,delay:T};return V(_S,{custom:N,children:I&&ut.createElement(H1.div,{ref:c,className:oW("chakra-offset-slide",x),...cNt,animate:O,custom:N,...P})})});gOn.displayName="ScaleFade";var OIt={exit:{duration:.15,ease:s7.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},bOn={exit:({direction:n,transition:r,transitionEnd:c,delay:u})=>{var p;const{exit:d}=qAe({direction:n});return{...d,transition:(p=r==null?void 0:r.exit)!=null?p:Aw.exit(OIt.exit,u),transitionEnd:c==null?void 0:c.exit}},enter:({direction:n,transitionEnd:r,transition:c,delay:u})=>{var p;const{enter:d}=qAe({direction:n});return{...d,transition:(p=c==null?void 0:c.enter)!=null?p:Aw.enter(OIt.enter,u),transitionEnd:r==null?void 0:r.enter}}},uNt=U.exports.forwardRef(function(r,c){const{direction:u="right",style:d,unmountOnExit:p,in:m,className:x,transition:E,transitionEnd:k,delay:T,motionProps:P,...I}=r,O=qAe({direction:u}),N=Object.assign({position:"fixed"},O.position,d),j=p?m&&p:!0,L=m||p?"enter":"exit",$={transitionEnd:k,transition:E,direction:u,delay:T};return V(_S,{custom:$,children:j&&ut.createElement(H1.div,{...I,ref:c,initial:"exit",className:oW("chakra-slide",x),animate:L,exit:"exit",custom:$,variants:bOn,style:N,...P})})});uNt.displayName="Slide";var mOn={initial:({offsetX:n,offsetY:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{opacity:0,x:n,y:r,transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(v7.exit,d),transitionEnd:u==null?void 0:u.exit}},enter:({transition:n,transitionEnd:r,delay:c})=>{var u;return{opacity:1,x:0,y:0,transition:(u=n==null?void 0:n.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:r==null?void 0:r.enter}},exit:({offsetY:n,offsetX:r,transition:c,transitionEnd:u,reverse:d,delay:p})=>{var x;const m={x:r,y:n};return{opacity:0,transition:(x=c==null?void 0:c.exit)!=null?x:Aw.exit(v7.exit,p),...d?{...m,transitionEnd:u==null?void 0:u.exit}:{transitionEnd:{...m,...u==null?void 0:u.exit}}}}},WAe={initial:"initial",animate:"enter",exit:"exit",variants:mOn},vOn=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,reverse:p=!0,className:m,offsetX:x=0,offsetY:E=8,transition:k,transitionEnd:T,delay:P,...I}=r,O=u?d&&u:!0,N=d||u?"enter":"exit",j={offsetX:x,offsetY:E,reverse:p,transition:k,transitionEnd:T,delay:P};return V(_S,{custom:j,children:O&&ut.createElement(H1.div,{ref:c,className:oW("chakra-offset-slide",m),custom:j,...WAe,animate:N,...I})})});vOn.displayName="SlideFade";var sW=(...n)=>n.filter(Boolean).join(" ");function yOn(){return!1}var Mle=n=>{const{condition:r,message:c}=n;r&&yOn()&&console.warn(c)};function $9e(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[wOn,aW]=Ec({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[xOn,Dle]=Ec({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[SOn,gur,EOn,kOn]=J_e(),kMe=kn(function(r,c){const{getButtonProps:u}=Dle(),d=u(r,c),p=aW(),m={display:"flex",alignItems:"center",width:"100%",outline:0,...p.button};return ut.createElement(Qt.button,{...d,className:sW("chakra-accordion__button",r.className),__css:m})});kMe.displayName="AccordionButton";function COn(n){const{onChange:r,defaultIndex:c,index:u,allowMultiple:d,allowToggle:p,...m}=n;AOn(n),POn(n);const x=EOn(),[E,k]=U.exports.useState(-1);U.exports.useEffect(()=>()=>{k(-1)},[]);const[T,P]=_Mt({value:u,defaultValue(){return d?c!=null?c:[]:c!=null?c:-1},onChange:r});return{index:T,setIndex:P,htmlProps:m,getAccordionItemProps:O=>{let N=!1;return O!==null&&(N=Array.isArray(T)?T.includes(O):T===O),{isOpen:N,onChange:L=>{if(O!==null)if(d&&Array.isArray(T)){const $=L?T.concat(O):T.filter(F=>F!==O);P($)}else L?P(O):p&&P(-1)}}},focusedIndex:E,setFocusedIndex:k,descendants:x}}var[IOn,Nle]=Ec({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function TOn(n){const{isDisabled:r,isFocusable:c,id:u,...d}=n,{getAccordionItemProps:p,setFocusedIndex:m}=Nle(),x=U.exports.useRef(null),E=U.exports.useId(),k=u!=null?u:E,T=`accordion-button-${k}`,P=`accordion-panel-${k}`;OOn(n);const{register:I,index:O,descendants:N}=kOn({disabled:r&&!c}),{isOpen:j,onChange:L}=p(O===-1?null:O);_On({isOpen:j,isDisabled:r});const $=()=>{L==null||L(!0)},F=()=>{L==null||L(!1)},B=U.exports.useCallback(()=>{L==null||L(!j),m(O)},[O,m,j,L]),X=U.exports.useCallback(ce=>{const le={ArrowDown:()=>{const ye=N.nextEnabled(O);ye==null||ye.node.focus()},ArrowUp:()=>{const ye=N.prevEnabled(O);ye==null||ye.node.focus()},Home:()=>{const ye=N.firstEnabled();ye==null||ye.node.focus()},End:()=>{const ye=N.lastEnabled();ye==null||ye.node.focus()}}[ce.key];le&&(ce.preventDefault(),le(ce))},[N,O]),ne=U.exports.useCallback(()=>{m(O)},[m,O]),Z=U.exports.useCallback(function(pe={},le=null){return{...pe,type:"button",ref:_u(I,x,le),id:T,disabled:!!r,"aria-expanded":!!j,"aria-controls":P,onClick:$9e(pe.onClick,B),onFocus:$9e(pe.onFocus,ne),onKeyDown:$9e(pe.onKeyDown,X)}},[T,r,j,B,ne,X,P,I]),H=U.exports.useCallback(function(pe={},le=null){return{...pe,ref:le,role:"region",id:P,"aria-labelledby":T,hidden:!j}},[T,j,P]);return{isOpen:j,isDisabled:r,isFocusable:c,onOpen:$,onClose:F,getButtonProps:Z,getPanelProps:H,htmlProps:d}}function AOn(n){const r=n.index||n.defaultIndex,c=r!=null&&!Array.isArray(r)&&n.allowMultiple;Mle({condition:!!c,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof r},`})}function POn(n){Mle({condition:!!(n.allowMultiple&&n.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function OOn(n){Mle({condition:!!(n.isFocusable&&!n.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. - `})}function _On(n){Mle({condition:n.isOpen&&!!n.isDisabled,message:"Cannot open a disabled accordion item"})}function lNt(n){const{isOpen:r,isDisabled:c}=Dle(),{reduceMotion:u}=Nle(),d=sW("chakra-accordion__icon",n.className),p=aW(),m={opacity:c?.4:1,transform:r?"rotate(-180deg)":void 0,transition:u?void 0:"transform 0.2s",transformOrigin:"center",...p.icon};return V(Ao,{viewBox:"0 0 24 24","aria-hidden":!0,className:d,__css:m,...n,children:V("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}lNt.displayName="AccordionIcon";var CMe=kn(function(r,c){const{children:u,className:d}=r,{htmlProps:p,...m}=TOn(r),E={...aW().container,overflowAnchor:"none"},k=U.exports.useMemo(()=>m,[m]);return ut.createElement(xOn,{value:k},ut.createElement(Qt.div,{ref:c,...p,className:sW("chakra-accordion__item",d),__css:E},typeof u=="function"?u({isExpanded:!!m.isOpen,isDisabled:!!m.isDisabled}):u))});CMe.displayName="AccordionItem";var fNt=kn(function(r,c){const{className:u,motionProps:d,...p}=r,{reduceMotion:m}=Nle(),{getPanelProps:x,isOpen:E}=Dle(),k=x(p,c),T=sW("chakra-accordion__panel",u),P=aW();m||delete k.hidden;const I=ut.createElement(Qt.div,{...k,__css:P.panel,className:T});return m?I:V(lq,{in:E,...d,children:I})});fNt.displayName="AccordionPanel";var jle=kn(function({children:r,reduceMotion:c,...u},d){const p=il("Accordion",u),m=Fa(u),{htmlProps:x,descendants:E,...k}=COn(m),T=U.exports.useMemo(()=>({...k,reduceMotion:!!c}),[k,c]);return ut.createElement(SOn,{value:E},ut.createElement(IOn,{value:T},ut.createElement(wOn,{value:p},ut.createElement(Qt.div,{ref:d,...x,className:sW("chakra-accordion",u.className),__css:p.root},r))))});jle.displayName="Accordion";function MOn(){const{isOpen:n,isDisabled:r,onClose:c,onOpen:u}=Dle();return{isOpen:n,onClose:c,isDisabled:r,onOpen:u}}var DOn=(...n)=>n.filter(Boolean).join(" "),NOn=Zq({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),cW=kn((n,r)=>{const c=U1("Spinner",n),{label:u="Loading...",thickness:d="2px",speed:p="0.45s",emptyColor:m="transparent",className:x,...E}=Fa(n),k=DOn("chakra-spinner",x),T={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:d,borderBottomColor:m,borderLeftColor:m,animation:`${NOn} ${p} linear infinite`,...c};return ut.createElement(Qt.div,{ref:r,__css:T,className:k,...E},u&&ut.createElement(Qt.span,{srOnly:!0},u))});cW.displayName="Spinner";var Rle=(...n)=>n.filter(Boolean).join(" ");function jOn(n){return V(Ao,{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function ROn(n){return V(Ao,{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function _It(n){return V(Ao,{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[$On,LOn]=Ec({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[FOn,IMe]=Ec({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),dNt={info:{icon:ROn,colorScheme:"blue"},warning:{icon:_It,colorScheme:"orange"},success:{icon:jOn,colorScheme:"green"},error:{icon:_It,colorScheme:"red"},loading:{icon:cW,colorScheme:"blue"}};function BOn(n){return dNt[n].colorScheme}function zOn(n){return dNt[n].icon}var TMe=kn(function(r,c){var k;const{status:u="info",addRole:d=!0,...p}=Fa(r),m=(k=r.colorScheme)!=null?k:BOn(u),x=il("Alert",{...r,colorScheme:m}),E={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...x.container};return ut.createElement($On,{value:{status:u}},ut.createElement(FOn,{value:x},ut.createElement(Qt.div,{role:d?"alert":void 0,ref:c,...p,className:Rle("chakra-alert",r.className),__css:E})))});TMe.displayName="Alert";var hNt=kn(function(r,c){const u=IMe(),d={display:"inline",...u.description};return ut.createElement(Qt.div,{ref:c,...r,className:Rle("chakra-alert__desc",r.className),__css:d})});hNt.displayName="AlertDescription";function AMe(n){const{status:r}=LOn(),c=zOn(r),u=IMe(),d=r==="loading"?u.spinner:u.icon;return ut.createElement(Qt.span,{display:"inherit",...n,className:Rle("chakra-alert__icon",n.className),__css:d},n.children||V(c,{h:"100%",w:"100%"}))}AMe.displayName="AlertIcon";var pNt=kn(function(r,c){const u=IMe();return ut.createElement(Qt.div,{ref:c,...r,className:Rle("chakra-alert__title",r.className),__css:u.title})});pNt.displayName="AlertTitle";function VOn(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function UOn(n){const{loading:r,src:c,srcSet:u,onLoad:d,onError:p,crossOrigin:m,sizes:x,ignoreFallback:E}=n,[k,T]=U.exports.useState("pending");U.exports.useEffect(()=>{T(c?"loading":"pending")},[c]);const P=U.exports.useRef(),I=U.exports.useCallback(()=>{if(!c)return;O();const N=new Image;N.src=c,m&&(N.crossOrigin=m),u&&(N.srcset=u),x&&(N.sizes=x),r&&(N.loading=r),N.onload=j=>{O(),T("loaded"),d==null||d(j)},N.onerror=j=>{O(),T("failed"),p==null||p(j)},P.current=N},[c,m,u,x,d,p,r]),O=()=>{P.current&&(P.current.onload=null,P.current.onerror=null,P.current=null)};return Iw(()=>{if(!E)return k==="loading"&&I(),()=>{O()}},[k,I,E]),E?"loaded":k}var HOn=(n,r)=>n!=="loaded"&&r==="beforeLoadOrError"||n==="failed"&&r==="onError",Ace=kn(function(r,c){const{htmlWidth:u,htmlHeight:d,alt:p,...m}=r;return V("img",{width:u,height:d,ref:c,alt:p,...m})});Ace.displayName="NativeImage";var gNt=kn(function(r,c){const{fallbackSrc:u,fallback:d,src:p,srcSet:m,align:x,fit:E,loading:k,ignoreFallback:T,crossOrigin:P,fallbackStrategy:I="beforeLoadOrError",referrerPolicy:O,...N}=r,j=u!==void 0||d!==void 0,L=k!=null||T||!j,$=UOn({...r,ignoreFallback:L}),F=HOn($,I),B={ref:c,objectFit:E,objectPosition:x,...L?N:VOn(N,["onError","onLoad"])};return F?d||ut.createElement(Qt.img,{as:Ace,className:"chakra-image__placeholder",src:u,...B}):ut.createElement(Qt.img,{as:Ace,src:p,srcSet:m,crossOrigin:P,loading:k,referrerPolicy:O,className:"chakra-image",...B})});gNt.displayName="Image";kn((n,r)=>ut.createElement(Qt.img,{ref:r,as:Ace,className:"chakra-image",...n}));function tN(n){return U.exports.Children.toArray(n).filter(r=>U.exports.isValidElement(r))}var PMe=(...n)=>n.filter(Boolean).join(" "),[qOn,OMe]=Ec({name:"BreadcrumbStylesContext",errorMessage:`useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),WOn=kn(function(r,c){const u=il("Breadcrumb",r),d=Fa(r),{children:p,spacing:m="0.5rem",separator:x="/",className:E,listProps:k,...T}=d,P=tN(p),I=P.length,O=P.map((j,L)=>U.exports.cloneElement(j,{separator:x,spacing:m,isLastChild:I===L+1})),N=PMe("chakra-breadcrumb",E);return ut.createElement(Qt.nav,{ref:c,"aria-label":"breadcrumb",className:N,__css:u.container,...T},ut.createElement(qOn,{value:u},ut.createElement(Qt.ol,{className:"chakra-breadcrumb__list",...k,__css:{display:"flex",alignItems:"center",...u.list}},O)))});WOn.displayName="Breadcrumb";var GAe=kn(function(r,c){const{spacing:u,...d}=r,p=OMe(),m={mx:u,...p.separator};return ut.createElement(Qt.span,{ref:c,role:"presentation",...d,__css:m})});GAe.displayName="BreadcrumbSeparator";var _Me=kn(function(r,c){const{isCurrentPage:u,as:d,className:p,href:m,...x}=r,E=OMe(),k={ref:c,as:d,className:PMe("chakra-breadcrumb__link",p),...x};return u?ut.createElement(Qt.span,{"aria-current":"page",__css:E.link,...k}):ut.createElement(Qt.a,{__css:E.link,href:m,...k})});_Me.displayName="BreadcrumbLink";var GOn=kn(function(r,c){const{isCurrentPage:u,separator:d,isLastChild:p,spacing:m,children:x,className:E,...k}=r,P=tN(x).map(j=>j.type===_Me?U.exports.cloneElement(j,{isCurrentPage:u}):j.type===GAe?U.exports.cloneElement(j,{spacing:m,children:j.props.children||d}):j),I=OMe(),O={display:"inline-flex",alignItems:"center",...I.item},N=PMe("chakra-breadcrumb__list-item",E);return ut.createElement(Qt.li,{ref:c,className:N,...k,__css:O},P,!p&&V(GAe,{spacing:m,children:d}))});GOn.displayName="BreadcrumbItem";var $le=(...n)=>n.filter(Boolean).join(" "),MIt=n=>n?"":void 0,[XOn,KOn]=Ec({strict:!1,name:"ButtonGroupContext"});function XAe(n){const{children:r,className:c,...u}=n,d=U.exports.isValidElement(r)?U.exports.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,p=$le("chakra-button__icon",c);return ut.createElement(Qt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...u,className:p},d)}XAe.displayName="ButtonIcon";function KAe(n){const{label:r,placement:c,spacing:u="0.5rem",children:d=V(cW,{color:"currentColor",width:"1em",height:"1em"}),className:p,__css:m,...x}=n,E=$le("chakra-button__spinner",p),k=c==="start"?"marginEnd":"marginStart",T=U.exports.useMemo(()=>({display:"flex",alignItems:"center",position:r?"relative":"absolute",[k]:r?u:0,fontSize:"1em",lineHeight:"normal",...m}),[m,r,k,u]);return ut.createElement(Qt.div,{className:E,...x,__css:T},d)}KAe.displayName="ButtonSpinner";function YOn(n){const[r,c]=U.exports.useState(!n);return{ref:U.exports.useCallback(p=>{!p||c(p.tagName==="BUTTON")},[]),type:r?"button":void 0}}var Y0=kn((n,r)=>{const c=KOn(),u=U1("Button",{...c,...n}),{isDisabled:d=c==null?void 0:c.isDisabled,isLoading:p,isActive:m,children:x,leftIcon:E,rightIcon:k,loadingText:T,iconSpacing:P="0.5rem",type:I,spinner:O,spinnerPlacement:N="start",className:j,as:L,...$}=Fa(n),F=U.exports.useMemo(()=>{const Z={...u==null?void 0:u._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...u,...!!c&&{_focus:Z}}},[u,c]),{ref:B,type:X}=YOn(L),ne={rightIcon:k,leftIcon:E,iconSpacing:P,children:x};return ut.createElement(Qt.button,{disabled:d||p,ref:b9n(r,B),as:L,type:I!=null?I:X,"data-active":MIt(m),"data-loading":MIt(p),__css:F,className:$le("chakra-button",j),...$},p&&N==="start"&&V(KAe,{className:"chakra-button__spinner--start",label:T,placement:"start",spacing:P,children:O}),p?T||ut.createElement(Qt.span,{opacity:0},V(DIt,{...ne})):V(DIt,{...ne}),p&&N==="end"&&V(KAe,{className:"chakra-button__spinner--end",label:T,placement:"end",spacing:P,children:O}))});Y0.displayName="Button";function DIt(n){const{leftIcon:r,rightIcon:c,children:u,iconSpacing:d}=n;return We(Si,{children:[r&&V(XAe,{marginEnd:d,children:r}),u,c&&V(XAe,{marginStart:d,children:c})]})}var _w=kn(function(r,c){const{size:u,colorScheme:d,variant:p,className:m,spacing:x="0.5rem",isAttached:E,isDisabled:k,...T}=r,P=$le("chakra-button__group",m),I=U.exports.useMemo(()=>({size:u,colorScheme:d,variant:p,isDisabled:k}),[u,d,p,k]);let O={display:"inline-flex"};return E?O={...O,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:O={...O,"& > *:not(style) ~ *:not(style)":{marginStart:x}},ut.createElement(XOn,{value:I},ut.createElement(Qt.div,{ref:c,role:"group",__css:O,className:P,"data-attached":E?"":void 0,...T}))});_w.displayName="ButtonGroup";var Ev=kn((n,r)=>{const{icon:c,children:u,isRound:d,"aria-label":p,...m}=n,x=c||u,E=U.exports.isValidElement(x)?U.exports.cloneElement(x,{"aria-hidden":!0,focusable:!1}):null;return V(Y0,{padding:"0",borderRadius:d?"full":void 0,ref:r,"aria-label":p,...m,children:E})});Ev.displayName="IconButton";var nN=(...n)=>n.filter(Boolean).join(" "),sse=n=>n?"":void 0,L9e=n=>n?!0:void 0;function NIt(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[QOn,bNt]=Ec({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ZOn,rN]=Ec({strict:!1,name:"FormControlContext"});function JOn(n){const{id:r,isRequired:c,isInvalid:u,isDisabled:d,isReadOnly:p,...m}=n,x=U.exports.useId(),E=r||`field-${x}`,k=`${E}-label`,T=`${E}-feedback`,P=`${E}-helptext`,[I,O]=U.exports.useState(!1),[N,j]=U.exports.useState(!1),[L,$]=U.exports.useState(!1),F=U.exports.useCallback((H={},ce=null)=>({id:P,...H,ref:_u(ce,pe=>{!pe||j(!0)})}),[P]),B=U.exports.useCallback((H={},ce=null)=>{var pe,le;return{...H,ref:ce,"data-focus":sse(L),"data-disabled":sse(d),"data-invalid":sse(u),"data-readonly":sse(p),id:(pe=H.id)!=null?pe:k,htmlFor:(le=H.htmlFor)!=null?le:E}},[E,d,L,u,p,k]),X=U.exports.useCallback((H={},ce=null)=>({id:T,...H,ref:_u(ce,pe=>{!pe||O(!0)}),"aria-live":"polite"}),[T]),ne=U.exports.useCallback((H={},ce=null)=>({...H,...m,ref:ce,role:"group"}),[m]),Z=U.exports.useCallback((H={},ce=null)=>({...H,ref:ce,role:"presentation","aria-hidden":!0,children:H.children||"*"}),[]);return{isRequired:!!c,isInvalid:!!u,isReadOnly:!!p,isDisabled:!!d,isFocused:!!L,onFocus:()=>$(!0),onBlur:()=>$(!1),hasFeedbackText:I,setHasFeedbackText:O,hasHelpText:N,setHasHelpText:j,id:E,labelId:k,feedbackId:T,helpTextId:P,htmlProps:m,getHelpTextProps:F,getErrorMessageProps:X,getRootProps:ne,getLabelProps:B,getRequiredIndicatorProps:Z}}var MMe=kn(function(r,c){const u=il("Form",r),d=Fa(r),{getRootProps:p,htmlProps:m,...x}=JOn(d),E=nN("chakra-form-control",r.className);return ut.createElement(ZOn,{value:x},ut.createElement(QOn,{value:u},ut.createElement(Qt.div,{...p({},c),className:E,__css:u.container})))});MMe.displayName="FormControl";var mNt=kn(function(r,c){const u=rN(),d=bNt(),p=nN("chakra-form__helper-text",r.className);return ut.createElement(Qt.div,{...u==null?void 0:u.getHelpTextProps(r,c),__css:d.helperText,className:p})});mNt.displayName="FormHelperText";function Lle(n){const{isDisabled:r,isInvalid:c,isReadOnly:u,isRequired:d,...p}=DMe(n);return{...p,disabled:r,readOnly:u,required:d,"aria-invalid":L9e(c),"aria-required":L9e(d),"aria-readonly":L9e(u)}}function DMe(n){var N,j,L;const r=rN(),{id:c,disabled:u,readOnly:d,required:p,isRequired:m,isInvalid:x,isReadOnly:E,isDisabled:k,onFocus:T,onBlur:P,...I}=n,O=n["aria-describedby"]?[n["aria-describedby"]]:[];return(r==null?void 0:r.hasFeedbackText)&&(r==null?void 0:r.isInvalid)&&O.push(r.feedbackId),r!=null&&r.hasHelpText&&O.push(r.helpTextId),{...I,"aria-describedby":O.join(" ")||void 0,id:c!=null?c:r==null?void 0:r.id,isDisabled:(N=u!=null?u:k)!=null?N:r==null?void 0:r.isDisabled,isReadOnly:(j=d!=null?d:E)!=null?j:r==null?void 0:r.isReadOnly,isRequired:(L=p!=null?p:m)!=null?L:r==null?void 0:r.isRequired,isInvalid:x!=null?x:r==null?void 0:r.isInvalid,onFocus:NIt(r==null?void 0:r.onFocus,T),onBlur:NIt(r==null?void 0:r.onBlur,P)}}var[e_n,t_n]=Ec({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),vNt=kn((n,r)=>{const c=il("FormError",n),u=Fa(n),d=rN();return d!=null&&d.isInvalid?ut.createElement(e_n,{value:c},ut.createElement(Qt.div,{...d==null?void 0:d.getErrorMessageProps(u,r),className:nN("chakra-form__error-message",n.className),__css:{display:"flex",alignItems:"center",...c.text}})):null});vNt.displayName="FormErrorMessage";var n_n=kn((n,r)=>{const c=t_n(),u=rN();if(!(u!=null&&u.isInvalid))return null;const d=nN("chakra-form__error-icon",n.className);return V(Ao,{ref:r,"aria-hidden":!0,...n,__css:c.icon,className:d,children:V("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});n_n.displayName="FormErrorIcon";var iN=kn(function(r,c){var I;const u=U1("FormLabel",r),d=Fa(r),{className:p,children:m,requiredIndicator:x=V(yNt,{}),optionalIndicator:E=null,...k}=d,T=rN(),P=(I=T==null?void 0:T.getLabelProps(k,c))!=null?I:{ref:c,...k};return ut.createElement(Qt.label,{...P,className:nN("chakra-form__label",d.className),__css:{display:"block",textAlign:"start",...u}},m,T!=null&&T.isRequired?x:E)});iN.displayName="FormLabel";var yNt=kn(function(r,c){const u=rN(),d=bNt();if(!(u!=null&&u.isRequired))return null;const p=nN("chakra-form__required-indicator",r.className);return ut.createElement(Qt.span,{...u==null?void 0:u.getRequiredIndicatorProps(r,c),__css:d.requiredIndicator,className:p})});yNt.displayName="RequiredIndicator";function mk(n,r){const c=U.exports.useRef(!1),u=U.exports.useRef(!1);U.exports.useEffect(()=>{if(c.current&&u.current)return n();u.current=!0},r),U.exports.useEffect(()=>(c.current=!0,()=>{c.current=!1}),[])}var NMe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},r_n=Qt("span",{baseStyle:NMe});r_n.displayName="VisuallyHidden";var i_n=Qt("input",{baseStyle:NMe});i_n.displayName="VisuallyHiddenInput";var jIt=!1,Fle=null,wD=!1,YAe=new Set,o_n=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function s_n(n){return!(n.metaKey||!o_n&&n.altKey||n.ctrlKey)}function jMe(n,r){YAe.forEach(c=>c(n,r))}function RIt(n){wD=!0,s_n(n)&&(Fle="keyboard",jMe("keyboard",n))}function U_(n){Fle="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(wD=!0,jMe("pointer",n))}function a_n(n){n.target===window||n.target===document||(wD||(Fle="keyboard",jMe("keyboard",n)),wD=!1)}function c_n(){wD=!1}function $It(){return Fle!=="pointer"}function u_n(){if(typeof window>"u"||jIt)return;const{focus:n}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...c){wD=!0,n.apply(this,c)},document.addEventListener("keydown",RIt,!0),document.addEventListener("keyup",RIt,!0),window.addEventListener("focus",a_n,!0),window.addEventListener("blur",c_n,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",U_,!0),document.addEventListener("pointermove",U_,!0),document.addEventListener("pointerup",U_,!0)):(document.addEventListener("mousedown",U_,!0),document.addEventListener("mousemove",U_,!0),document.addEventListener("mouseup",U_,!0)),jIt=!0}function l_n(n){u_n(),n($It());const r=()=>n($It());return YAe.add(r),()=>{YAe.delete(r)}}var[bur,f_n]=Ec({name:"CheckboxGroupContext",strict:!1}),d_n=(...n)=>n.filter(Boolean).join(" "),Np=n=>n?"":void 0;function iv(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function h_n(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}function p_n(n){return ut.createElement(Qt.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...n},V("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function g_n(n){return ut.createElement(Qt.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...n},V("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function b_n(n){const{isIndeterminate:r,isChecked:c,...u}=n,d=r?g_n:p_n;return c||r?ut.createElement(Qt.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},V(d,{...u})):null}function m_n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function wNt(n={}){const r=DMe(n),{isDisabled:c,isReadOnly:u,isRequired:d,isInvalid:p,id:m,onBlur:x,onFocus:E,"aria-describedby":k}=r,{defaultChecked:T,isChecked:P,isFocusable:I,onChange:O,isIndeterminate:N,name:j,value:L,tabIndex:$=void 0,"aria-label":F,"aria-labelledby":B,"aria-invalid":X,...ne}=n,Z=m_n(ne,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),H=mh(O),ce=mh(x),pe=mh(E),[le,ye]=U.exports.useState(!1),[Ge,qe]=U.exports.useState(!1),[et,tt]=U.exports.useState(!1),[jt,Me]=U.exports.useState(!1);U.exports.useEffect(()=>l_n(ye),[]);const ze=U.exports.useRef(null),[we,De]=U.exports.useState(!0),[be,Se]=U.exports.useState(!!T),Jt=P!==void 0,sn=Jt?P:be,Tn=U.exports.useCallback(ae=>{if(u||c){ae.preventDefault();return}Jt||Se(sn?ae.target.checked:N?!0:ae.target.checked),H==null||H(ae)},[u,c,sn,Jt,N,H]);Iw(()=>{ze.current&&(ze.current.indeterminate=Boolean(N))},[N]),mk(()=>{c&&qe(!1)},[c,qe]),Iw(()=>{const ae=ze.current;!(ae!=null&&ae.form)||(ae.form.onreset=()=>{Se(!!T)})},[]);const qn=c&&!I,rr=U.exports.useCallback(ae=>{ae.key===" "&&Me(!0)},[Me]),Zn=U.exports.useCallback(ae=>{ae.key===" "&&Me(!1)},[Me]);Iw(()=>{if(!ze.current)return;ze.current.checked!==sn&&Se(ze.current.checked)},[ze.current]);const Gr=U.exports.useCallback((ae={},me=null)=>{const Te=Xe=>{Ge&&Xe.preventDefault(),Me(!0)};return{...ae,ref:me,"data-active":Np(jt),"data-hover":Np(et),"data-checked":Np(sn),"data-focus":Np(Ge),"data-focus-visible":Np(Ge&&le),"data-indeterminate":Np(N),"data-disabled":Np(c),"data-invalid":Np(p),"data-readonly":Np(u),"aria-hidden":!0,onMouseDown:iv(ae.onMouseDown,Te),onMouseUp:iv(ae.onMouseUp,()=>Me(!1)),onMouseEnter:iv(ae.onMouseEnter,()=>tt(!0)),onMouseLeave:iv(ae.onMouseLeave,()=>tt(!1))}},[jt,sn,c,Ge,le,et,N,p,u]),Je=U.exports.useCallback((ae={},me=null)=>({...Z,...ae,ref:_u(me,Te=>{!Te||De(Te.tagName==="LABEL")}),onClick:iv(ae.onClick,()=>{var Te;we||((Te=ze.current)==null||Te.click(),requestAnimationFrame(()=>{var Xe;(Xe=ze.current)==null||Xe.focus()}))}),"data-disabled":Np(c),"data-checked":Np(sn),"data-invalid":Np(p)}),[Z,c,sn,p,we]),ct=U.exports.useCallback((ae={},me=null)=>({...ae,ref:_u(ze,me),type:"checkbox",name:j,value:L,id:m,tabIndex:$,onChange:iv(ae.onChange,Tn),onBlur:iv(ae.onBlur,ce,()=>qe(!1)),onFocus:iv(ae.onFocus,pe,()=>qe(!0)),onKeyDown:iv(ae.onKeyDown,rr),onKeyUp:iv(ae.onKeyUp,Zn),required:d,checked:sn,disabled:qn,readOnly:u,"aria-label":F,"aria-labelledby":B,"aria-invalid":X?Boolean(X):p,"aria-describedby":k,"aria-disabled":c,style:NMe}),[j,L,m,Tn,ce,pe,rr,Zn,d,sn,qn,u,F,B,X,p,k,c,$]),rn=U.exports.useCallback((ae={},me=null)=>({...ae,ref:me,onMouseDown:iv(ae.onMouseDown,LIt),onTouchStart:iv(ae.onTouchStart,LIt),"data-disabled":Np(c),"data-checked":Np(sn),"data-invalid":Np(p)}),[sn,c,p]);return{state:{isInvalid:p,isFocused:Ge,isChecked:sn,isActive:jt,isHovered:et,isIndeterminate:N,isDisabled:c,isReadOnly:u,isRequired:d},getRootProps:Je,getCheckboxProps:Gr,getInputProps:ct,getLabelProps:rn,htmlProps:Z}}function LIt(n){n.preventDefault(),n.stopPropagation()}var v_n={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},y_n={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},w_n=Zq({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),x_n=Zq({from:{opacity:0},to:{opacity:1}}),S_n=Zq({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),E_n=kn(function(r,c){const u=f_n(),d={...u,...r},p=il("Checkbox",d),m=Fa(r),{spacing:x="0.5rem",className:E,children:k,iconColor:T,iconSize:P,icon:I=V(b_n,{}),isChecked:O,isDisabled:N=u==null?void 0:u.isDisabled,onChange:j,inputProps:L,...$}=m;let F=O;(u==null?void 0:u.value)&&m.value&&(F=u.value.includes(m.value));let B=j;(u==null?void 0:u.onChange)&&m.value&&(B=h_n(u.onChange,j));const{state:X,getInputProps:ne,getCheckboxProps:Z,getLabelProps:H,getRootProps:ce}=wNt({...$,isDisabled:N,isChecked:F,onChange:B}),pe=U.exports.useMemo(()=>({animation:X.isIndeterminate?`${x_n} 20ms linear, ${S_n} 200ms linear`:`${w_n} 200ms linear`,fontSize:P,color:T,...p.icon}),[T,P,,X.isIndeterminate,p.icon]),le=U.exports.cloneElement(I,{__css:pe,isIndeterminate:X.isIndeterminate,isChecked:X.isChecked});return ut.createElement(Qt.label,{__css:{...y_n,...p.container},className:d_n("chakra-checkbox",E),...ce()},V("input",{className:"chakra-checkbox__input",...ne(L,c)}),ut.createElement(Qt.span,{__css:{...v_n,...p.control},className:"chakra-checkbox__control",...Z()},le),k&&ut.createElement(Qt.span,{className:"chakra-checkbox__label",...H(),__css:{marginStart:x,...p.label}},k))});E_n.displayName="Checkbox";function k_n(n){return V(Ao,{focusable:"false","aria-hidden":!0,...n,children:V("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var uW=kn(function(r,c){const u=U1("CloseButton",r),{children:d,isDisabled:p,__css:m,...x}=Fa(r),E={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ut.createElement(Qt.button,{type:"button","aria-label":"Close",ref:c,disabled:p,__css:{...E,...u,...m},...x},d||V(k_n,{width:"1em",height:"1em"}))});uW.displayName="CloseButton";function C_n(n){const r=parseFloat(n);return typeof r!="number"||Number.isNaN(r)?0:r}function xNt(n,r){let c=C_n(n);const u=10**(r!=null?r:10);return c=Math.round(c*u)/u,r?c.toFixed(r):c.toString()}function FIt(n){if(!Number.isFinite(n))return 0;let r=1,c=0;for(;Math.round(n*r)/r!==n;)r*=10,c+=1;return c}function I_n(n,r,c){return n==null?n:(c{var le;return u==null?"":(le=F9e(u,p,c))!=null?le:""}),I=typeof d<"u",O=I?d:T,N=SNt($E(O),p),j=c!=null?c:N,L=U.exports.useCallback(le=>{le!==O&&(I||P(le.toString()),k==null||k(le.toString(),$E(le)))},[k,I,O]),$=U.exports.useCallback(le=>{let ye=le;return E&&(ye=I_n(ye,m,x)),xNt(ye,j)},[j,E,x,m]),F=U.exports.useCallback((le=p)=>{let ye;O===""?ye=$E(le):ye=$E(O)+le,ye=$(ye),L(ye)},[$,p,L,O]),B=U.exports.useCallback((le=p)=>{let ye;O===""?ye=$E(-le):ye=$E(O)-le,ye=$(ye),L(ye)},[$,p,L,O]),X=U.exports.useCallback(()=>{var ye;let le;u==null?le="":le=(ye=F9e(u,p,c))!=null?ye:m,L(le)},[u,c,p,L,m]),ne=U.exports.useCallback(le=>{var Ge;const ye=(Ge=F9e(le,p,j))!=null?Ge:m;L(ye)},[j,p,L,m]),Z=$E(O);return{isOutOfRange:Z>x||ZV(Qq,{styles:ENt}),P_n=()=>V(Qq,{styles:` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - font-feature-settings: 'kern'; - } - - *, - *::before, - *::after { - border-width: 0; - border-style: solid; - box-sizing: border-box; - } - - main { - display: block; - } - - hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - pre, - code, - kbd, - samp { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - b, - strong { - font-weight: bold; - } - - small { - font-size: 80%; - } - - sub, - sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - sub { - bottom: -0.25em; - } - - sup { - top: -0.5em; - } - - img { - border-style: none; - } - - button, - input, - optgroup, - select, - textarea { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - button, - input { - overflow: visible; - } - - button, - select { - text-transform: none; - } - - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner { - border-style: none; - padding: 0; - } - - fieldset { - padding: 0.35em 0.75em 0.625em; - } - - legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - progress { - vertical-align: baseline; - } - - textarea { - overflow: auto; - } - - [type="checkbox"], - [type="radio"] { - box-sizing: border-box; - padding: 0; - } - - [type="number"]::-webkit-inner-spin-button, - [type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - input[type="number"] { - -moz-appearance: textfield; - } - - [type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - [type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - details { - display: block; - } - - summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - body, - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre { - margin: 0; - } - - button { - background: transparent; - padding: 0; - } - - fieldset { - margin: 0; - padding: 0; - } - - ol, - ul { - margin: 0; - padding: 0; - } - - textarea { - resize: vertical; - } - - button, - [role="button"] { - cursor: pointer; - } - - button::-moz-focus-inner { - border: 0 !important; - } - - table { - border-collapse: collapse; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - font-size: inherit; - font-weight: inherit; - } - - button, - input, - optgroup, - select, - textarea { - padding: 0; - line-height: inherit; - color: inherit; - } - - img, - svg, - video, - canvas, - audio, - iframe, - embed, - object { - display: block; - } - - img, - video { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) { - outline: none; - box-shadow: none; - } - - select::-ms-expand { - display: none; - } - - ${ENt} - `});function y7(n,r,c,u){const d=mh(c);return U.exports.useEffect(()=>{const p=typeof n=="function"?n():n!=null?n:document;if(!(!c||!p))return p.addEventListener(r,d,u),()=>{p.removeEventListener(r,d,u)}},[r,n,u,d,c]),()=>{const p=typeof n=="function"?n():n!=null?n:document;p==null||p.removeEventListener(r,d,u)}}function O_n(n){return"current"in n}var kNt=()=>typeof window<"u";function __n(){var r;const n=navigator.userAgentData;return(r=n==null?void 0:n.platform)!=null?r:navigator.platform}var M_n=n=>kNt()&&n.test(navigator.vendor),D_n=n=>kNt()&&n.test(__n()),N_n=()=>D_n(/mac|iphone|ipad|ipod/i),j_n=()=>N_n()&&M_n(/apple/i);function R_n(n){const{ref:r,elements:c,enabled:u}=n,d=()=>{var m;var p;return(m=(p=r.current)==null?void 0:p.ownerDocument)!=null?m:document};y7(d,"pointerdown",p=>{if(!j_n()||!u)return;const m=p.target,E=(c!=null?c:[r]).some(k=>{const T=O_n(k)?k.current:k;return(T==null?void 0:T.contains(m))||T===m});d().activeElement!==m&&E&&(p.preventDefault(),m.focus())})}var $_n=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var r=document.activeElement,c=[],u=0;u"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=BIt[r.format]||BIt.default;window.clipboardData.setData(P,n)}else T.clipboardData.clearData(),T.clipboardData.setData(r.format,n);r.onCopy&&(T.preventDefault(),r.onCopy(T.clipboardData))}),document.body.appendChild(x),p.selectNodeContents(x),m.addRange(p);var k=document.execCommand("copy");if(!k)throw new Error("copy command was unsuccessful");E=!0}catch(T){c&&console.error("unable to copy using execCommand: ",T),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),E=!0}catch(P){c&&console.error("unable to copy using clipboardData: ",P),c&&console.error("falling back to prompt"),u=B_n("message"in r?r.message:F_n),window.prompt(u,n)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),x&&document.body.removeChild(x),d()}return E}var V_n=z_n,Ble=l5n?U.exports.useLayoutEffect:U.exports.useEffect;function zIt(n,r=[]){const c=U.exports.useRef(n);return Ble(()=>{c.current=n}),U.exports.useCallback((...u)=>{var d;return(d=c.current)==null?void 0:d.call(c,...u)},r)}function U_n(n,r){const c=n!==void 0;return[c,c&&typeof n<"u"?n:r]}function H_n(n,r){const c=U.exports.useId();return U.exports.useMemo(()=>n||[r,c].filter(Boolean).join("-"),[n,r,c])}function B9e(n={}){const{onClose:r,onOpen:c,isOpen:u,id:d}=n,p=zIt(c),m=zIt(r),[x,E]=U.exports.useState(n.defaultIsOpen||!1),[k,T]=U_n(u,x),P=H_n(d,"disclosure"),I=U.exports.useCallback(()=>{k||E(!1),m==null||m()},[k,m]),O=U.exports.useCallback(()=>{k||E(!0),p==null||p()},[k,p]),N=U.exports.useCallback(()=>{(T?I:O)()},[T,O,I]);return{isOpen:!!T,onOpen:O,onClose:I,onToggle:N,isControlled:k,getButtonProps:(j={})=>({...j,"aria-expanded":T,"aria-controls":P,onClick:f5n(j.onClick,N)}),getDisclosureProps:(j={})=>({...j,hidden:!T,id:P})}}function q_n(n,r){if(n!=null){if(typeof n=="function"){n(r);return}try{n.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${n}'`)}}}function RMe(...n){return U.exports.useMemo(()=>n.every(r=>r==null)?null:r=>{n.forEach(c=>{c&&q_n(c,r)})},n)}function $Me(n){const r=Object.assign({},n);for(let c in r)r[c]===void 0&&delete r[c];return r}var zle=kn(function(r,c){const{htmlSize:u,...d}=r,p=il("Input",d),m=Fa(d),x=Lle(m),E=Pf("chakra-input",r.className);return ut.createElement(Qt.input,{size:u,...x,__css:p.field,ref:c,className:E})});zle.displayName="Input";zle.id="Input";var[W_n,CNt]=Ec({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),G_n=kn(function(r,c){const u=il("Input",r),{children:d,className:p,...m}=Fa(r),x=Pf("chakra-input__group",p),E={},k=tN(d),T=u.field;k.forEach(I=>{var O,N;!u||(T&&I.type.id==="InputLeftElement"&&(E.paddingStart=(O=T.height)!=null?O:T.h),T&&I.type.id==="InputRightElement"&&(E.paddingEnd=(N=T.height)!=null?N:T.h),I.type.id==="InputRightAddon"&&(E.borderEndRadius=0),I.type.id==="InputLeftAddon"&&(E.borderStartRadius=0))});const P=k.map(I=>{var O,N;const j=$Me({size:((O=I.props)==null?void 0:O.size)||r.size,variant:((N=I.props)==null?void 0:N.variant)||r.variant});return I.type.id!=="Input"?U.exports.cloneElement(I,j):U.exports.cloneElement(I,Object.assign(j,E,I.props))});return ut.createElement(Qt.div,{className:x,ref:c,__css:{width:"100%",display:"flex",position:"relative"},...m},V(W_n,{value:u,children:P}))});G_n.displayName="InputGroup";var X_n={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},K_n=Qt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),LMe=kn(function(r,c){var x;const{placement:u="left",...d}=r,p=(x=X_n[u])!=null?x:{},m=CNt();return V(K_n,{ref:c,...d,__css:{...m.addon,...p}})});LMe.displayName="InputAddon";var INt=kn(function(r,c){return V(LMe,{ref:c,placement:"left",...r,className:Pf("chakra-input__left-addon",r.className)})});INt.displayName="InputLeftAddon";INt.id="InputLeftAddon";var TNt=kn(function(r,c){return V(LMe,{ref:c,placement:"right",...r,className:Pf("chakra-input__right-addon",r.className)})});TNt.displayName="InputRightAddon";TNt.id="InputRightAddon";var Y_n=Qt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Vle=kn(function(r,c){var k,T;const{placement:u="left",...d}=r,p=CNt(),m=p.field,E={[u==="left"?"insetStart":"insetEnd"]:"0",width:(k=m==null?void 0:m.height)!=null?k:m==null?void 0:m.h,height:(T=m==null?void 0:m.height)!=null?T:m==null?void 0:m.h,fontSize:m==null?void 0:m.fontSize,...p.element};return V(Y_n,{ref:c,__css:E,...d})});Vle.id="InputElement";Vle.displayName="InputElement";var ANt=kn(function(r,c){const{className:u,...d}=r,p=Pf("chakra-input__left-element",u);return V(Vle,{ref:c,placement:"left",className:p,...d})});ANt.id="InputLeftElement";ANt.displayName="InputLeftElement";var PNt=kn(function(r,c){const{className:u,...d}=r,p=Pf("chakra-input__right-element",u);return V(Vle,{ref:c,placement:"right",className:p,...d})});PNt.id="InputRightElement";PNt.displayName="InputRightElement";function Q_n(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function vk(n,r){return Array.isArray(n)?n.map(c=>c===null?null:r(c)):Q_n(n)?Object.keys(n).reduce((c,u)=>(c[u]=r(n[u]),c),{}):n!=null?r(n):null}var Z_n=kn(function(n,r){const{ratio:c=4/3,children:u,className:d,...p}=n,m=U.exports.Children.only(u),x=Pf("chakra-aspect-ratio",d);return ut.createElement(Qt.div,{ref:r,position:"relative",className:x,_before:{height:0,content:'""',display:"block",paddingBottom:vk(c,E=>`${1/E*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...p},m)});Z_n.displayName="AspectRatio";var ONt=kn(function(r,c){const u=U1("Badge",r),{className:d,...p}=Fa(r);return ut.createElement(Qt.span,{ref:c,className:Pf("chakra-badge",r.className),...p,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...u}})});ONt.displayName="Badge";var In=Qt("div");In.displayName="Box";var _Nt=kn(function(r,c){const{size:u,centerContent:d=!0,...p}=r;return V(In,{ref:c,boxSize:u,__css:{...d?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...p})});_Nt.displayName="Square";var J_n=kn(function(r,c){const{size:u,...d}=r;return V(_Nt,{size:u,ref:c,borderRadius:"9999px",...d})});J_n.displayName="Circle";var eMn=Qt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});eMn.displayName="Center";var tMn={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};kn(function(r,c){const{axis:u="both",...d}=r;return ut.createElement(Qt.div,{ref:c,__css:tMn[u],...d,position:"absolute"})});var FMe=kn(function(r,c){const u=U1("Code",r),{className:d,...p}=Fa(r);return ut.createElement(Qt.code,{ref:c,className:Pf("chakra-code",r.className),...p,__css:{display:"inline-block",...u}})});FMe.displayName="Code";var nMn=kn(function(r,c){const{className:u,centerContent:d,...p}=Fa(r),m=U1("Container",r);return ut.createElement(Qt.div,{ref:c,className:Pf("chakra-container",u),...p,__css:{...m,...d&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});nMn.displayName="Container";var mv=kn(function(r,c){const{borderLeftWidth:u,borderBottomWidth:d,borderTopWidth:p,borderRightWidth:m,borderWidth:x,borderStyle:E,borderColor:k,...T}=U1("Divider",r),{className:P,orientation:I="horizontal",__css:O,...N}=Fa(r),j={vertical:{borderLeftWidth:u||m||x||"1px",height:"100%"},horizontal:{borderBottomWidth:d||p||x||"1px",width:"100%"}};return ut.createElement(Qt.hr,{ref:c,"aria-orientation":I,...N,__css:{...T,border:"0",borderColor:k,borderStyle:E,...j[I],...O},className:Pf("chakra-divider",P)})});mv.displayName="Divider";var Bc=kn(function(r,c){const{direction:u,align:d,justify:p,wrap:m,basis:x,grow:E,shrink:k,...T}=r,P={display:"flex",flexDirection:u,alignItems:d,justifyContent:p,flexWrap:m,flexBasis:x,flexGrow:E,flexShrink:k};return ut.createElement(Qt.div,{ref:c,__css:P,...T})});Bc.displayName="Flex";var MNt=kn(function(r,c){const{templateAreas:u,gap:d,rowGap:p,columnGap:m,column:x,row:E,autoFlow:k,autoRows:T,templateRows:P,autoColumns:I,templateColumns:O,...N}=r,j={display:"grid",gridTemplateAreas:u,gridGap:d,gridRowGap:p,gridColumnGap:m,gridAutoColumns:I,gridColumn:x,gridRow:E,gridAutoFlow:k,gridAutoRows:T,gridTemplateRows:P,gridTemplateColumns:O};return ut.createElement(Qt.div,{ref:c,__css:j,...N})});MNt.displayName="Grid";function VIt(n){return vk(n,r=>r==="auto"?"auto":`span ${r}/span ${r}`)}var rMn=kn(function(r,c){const{area:u,colSpan:d,colStart:p,colEnd:m,rowEnd:x,rowSpan:E,rowStart:k,...T}=r,P=$Me({gridArea:u,gridColumn:VIt(d),gridRow:VIt(E),gridColumnStart:p,gridColumnEnd:m,gridRowStart:k,gridRowEnd:x});return ut.createElement(Qt.div,{ref:c,__css:P,...T})});rMn.displayName="GridItem";var MS=kn(function(r,c){const u=U1("Heading",r),{className:d,...p}=Fa(r);return ut.createElement(Qt.h2,{ref:c,className:Pf("chakra-heading",r.className),...p,__css:u})});MS.displayName="Heading";kn(function(r,c){const u=U1("Mark",r),d=Fa(r);return V(In,{ref:c,...d,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...u}})});var hh=kn(function(r,c){const u=U1("Kbd",r),{className:d,...p}=Fa(r);return ut.createElement(Qt.kbd,{ref:c,className:Pf("chakra-kbd",d),...p,__css:{fontFamily:"mono",...u}})});hh.displayName="Kbd";var fq=kn(function(r,c){const u=U1("Link",r),{className:d,isExternal:p,...m}=Fa(r);return ut.createElement(Qt.a,{target:p?"_blank":void 0,rel:p?"noopener":void 0,ref:c,className:Pf("chakra-link",d),...m,__css:u})});fq.displayName="Link";kn(function(r,c){const{isExternal:u,target:d,rel:p,className:m,...x}=r;return ut.createElement(Qt.a,{...x,ref:c,className:Pf("chakra-linkbox__overlay",m),rel:u?"noopener noreferrer":p,target:u?"_blank":d,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});kn(function(r,c){const{className:u,...d}=r;return ut.createElement(Qt.div,{ref:c,position:"relative",...d,className:Pf("chakra-linkbox",u),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[iMn,DNt]=Ec({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ule=kn(function(r,c){const u=il("List",r),{children:d,styleType:p="none",stylePosition:m,spacing:x,...E}=Fa(r),k=tN(d),P=x?{["& > *:not(style) ~ *:not(style)"]:{mt:x}}:{};return ut.createElement(iMn,{value:u},ut.createElement(Qt.ul,{ref:c,listStyleType:p,listStylePosition:m,role:"list",__css:{...u.container,...P},...E},k))});Ule.displayName="List";var BMe=kn((n,r)=>{const{as:c,...u}=n;return V(Ule,{ref:r,as:"ol",styleType:"decimal",marginStart:"1em",...u})});BMe.displayName="OrderedList";var zMe=kn(function(r,c){const{as:u,...d}=r;return V(Ule,{ref:c,as:"ul",styleType:"initial",marginStart:"1em",...d})});zMe.displayName="UnorderedList";var kae=kn(function(r,c){const u=DNt();return ut.createElement(Qt.li,{ref:c,...r,__css:u.item})});kae.displayName="ListItem";var oMn=kn(function(r,c){const u=DNt();return V(Ao,{ref:c,role:"presentation",...r,__css:u.icon})});oMn.displayName="ListIcon";var sMn=kn(function(r,c){const{columns:u,spacingX:d,spacingY:p,spacing:m,minChildWidth:x,...E}=r,k=Q7(),T=x?cMn(x,k):uMn(u);return V(MNt,{ref:c,gap:m,columnGap:d,rowGap:p,templateColumns:T,...E})});sMn.displayName="SimpleGrid";function aMn(n){return typeof n=="number"?`${n}px`:n}function cMn(n,r){return vk(n,c=>{const u=i9n("sizes",c,aMn(c))(r);return c===null?null:`repeat(auto-fit, minmax(${u}, 1fr))`})}function uMn(n){return vk(n,r=>r===null?null:`repeat(${r}, minmax(0, 1fr))`)}var lMn=Qt("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});lMn.displayName="Spacer";var QAe="& > *:not(style) ~ *:not(style)";function fMn(n){const{spacing:r,direction:c}=n,u={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return{flexDirection:c,[QAe]:vk(c,d=>u[d])}}function dMn(n){const{spacing:r,direction:c}=n,u={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":vk(c,d=>u[d])}}var NNt=n=>ut.createElement(Qt.div,{className:"chakra-stack__item",...n,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...n.__css}});NNt.displayName="StackItem";var z1=kn((n,r)=>{const{isInline:c,direction:u,align:d,justify:p,spacing:m="0.5rem",wrap:x,children:E,divider:k,className:T,shouldWrapChildren:P,...I}=n,O=c?"row":u!=null?u:"column",N=U.exports.useMemo(()=>fMn({direction:O,spacing:m}),[O,m]),j=U.exports.useMemo(()=>dMn({spacing:m,direction:O}),[m,O]),L=!!k,$=!P&&!L,F=U.exports.useMemo(()=>{const X=tN(E);return $?X:X.map((ne,Z)=>{const H=typeof ne.key<"u"?ne.key:Z,ce=Z+1===X.length,le=P?V(NNt,{children:ne},H):ne;if(!L)return le;const ye=U.exports.cloneElement(k,{__css:j}),Ge=ce?null:ye;return We(U.exports.Fragment,{children:[le,Ge]},H)})},[k,j,L,$,P,E]),B=Pf("chakra-stack",T);return ut.createElement(Qt.div,{ref:r,display:"flex",alignItems:d,justifyContent:p,flexDirection:N.flexDirection,flexWrap:x,className:B,__css:L?{}:{[QAe]:N[QAe]},...I},F)});z1.displayName="Stack";var nl=kn((n,r)=>V(z1,{align:"center",...n,direction:"row",ref:r}));nl.displayName="HStack";var jNt=n=>ut.createElement(Qt.div,{className:"chakra-stack__divider",...n,__css:{...n.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});jNt.displayName="StackDivider";var yk=kn((n,r)=>V(z1,{align:"center",...n,direction:"column",ref:r}));yk.displayName="VStack";var Bi=kn(function(r,c){const u=U1("Text",r),{className:d,align:p,decoration:m,casing:x,...E}=Fa(r),k=$Me({textAlign:r.align,textDecoration:r.decoration,textTransform:r.casing});return ut.createElement(Qt.p,{ref:c,className:Pf("chakra-text",r.className),...k,...E,__css:u})});Bi.displayName="Text";function UIt(n){return typeof n=="number"?`${n}px`:n}var hMn=kn(function(r,c){const{spacing:u="0.5rem",spacingX:d,spacingY:p,children:m,justify:x,direction:E,align:k,className:T,shouldWrapChildren:P,...I}=r,O=U.exports.useMemo(()=>{const{spacingX:j=u,spacingY:L=u}={spacingX:d,spacingY:p};return{"--chakra-wrap-x-spacing":$=>vk(j,F=>UIt(uAe("space",F)($))),"--chakra-wrap-y-spacing":$=>vk(L,F=>UIt(uAe("space",F)($))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:x,alignItems:k,flexDirection:E,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[u,d,p,x,k,E]),N=U.exports.useMemo(()=>P?U.exports.Children.map(m,(j,L)=>V(RNt,{children:j},L)):m,[m,P]);return ut.createElement(Qt.div,{ref:c,className:Pf("chakra-wrap",T),overflow:"hidden",...I},ut.createElement(Qt.ul,{className:"chakra-wrap__list",__css:O},N))});hMn.displayName="Wrap";var RNt=kn(function(r,c){const{className:u,...d}=r;return ut.createElement(Qt.li,{ref:c,__css:{display:"flex",alignItems:"flex-start"},className:Pf("chakra-wrap__listitem",u),...d})});RNt.displayName="WrapItem";var pMn={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},$Nt=pMn,H_=()=>{},gMn={document:$Nt,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:H_,removeEventListener:H_,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:H_,removeListener:H_}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)},setTimeout:()=>0,clearTimeout:H_,setInterval:()=>0,clearInterval:H_},bMn=gMn,mMn={window:bMn,document:$Nt},LNt=typeof window<"u"?{window,document}:mMn,VMe=U.exports.createContext(LNt);VMe.displayName="EnvironmentContext";function vMn(){return U.exports.useContext(VMe)}function FNt(n){const{children:r,environment:c}=n,[u,d]=U.exports.useState(null),[p,m]=U.exports.useState(!1);U.exports.useEffect(()=>m(!0),[]);const x=U.exports.useMemo(()=>{if(c)return c;const E=u==null?void 0:u.ownerDocument,k=u==null?void 0:u.ownerDocument.defaultView;return E?{document:E,window:k}:LNt},[u,c]);return We(VMe.Provider,{value:x,children:[r,!c&&p&&V("span",{id:"__chakra_env",hidden:!0,ref:E=>{U.exports.startTransition(()=>{E&&d(E)})}})]})}FNt.displayName="EnvironmentProvider";function yMn(n,r={}){const{ssr:c=!0,fallback:u}=r,d=vMn(),p=Array.isArray(n)?n:[n];let m=Array.isArray(u)?u:[u];m=m.filter(k=>k!=null);const[x,E]=U.exports.useState(()=>p.map((k,T)=>({media:k,matches:c?!!m[T]:d.window.matchMedia(k).matches})));return U.exports.useEffect(()=>{E(p.map(P=>({media:P,matches:d.window.matchMedia(P).matches})));const k=p.map(P=>d.window.matchMedia(P)),T=P=>{E(I=>I.slice().map(O=>O.media===P.media?{...O,matches:P.matches}:O))};return k.forEach(P=>{typeof P.addListener=="function"?P.addListener(T):P.addEventListener("change",T)}),()=>{k.forEach(P=>{typeof P.removeListener=="function"?P.removeListener(T):P.removeEventListener("change",T)})}},[d.window]),x.map(k=>k.matches)}var wMn=n=>n?"":void 0;function xMn(){const n=U.exports.useRef(new Map),r=n.current,c=U.exports.useCallback((d,p,m,x)=>{n.current.set(m,{type:p,el:d,options:x}),d.addEventListener(p,m,x)},[]),u=U.exports.useCallback((d,p,m,x)=>{d.removeEventListener(p,m,x),n.current.delete(m)},[]);return U.exports.useEffect(()=>()=>{r.forEach((d,p)=>{u(d.el,d.type,p,d.options)})},[u,r]),{add:c,remove:u}}function z9e(n){const r=n.target,{tagName:c,isContentEditable:u}=r;return c!=="INPUT"&&c!=="TEXTAREA"&&u!==!0}function BNt(n={}){const{ref:r,isDisabled:c,isFocusable:u,clickOnEnter:d=!0,clickOnSpace:p=!0,onMouseDown:m,onMouseUp:x,onClick:E,onKeyDown:k,onKeyUp:T,tabIndex:P,onMouseOver:I,onMouseLeave:O,...N}=n,[j,L]=U.exports.useState(!0),[$,F]=U.exports.useState(!1),B=xMn(),X=Me=>{!Me||Me.tagName!=="BUTTON"&&L(!1)},ne=j?P:P||0,Z=c&&!u,H=U.exports.useCallback(Me=>{if(c){Me.stopPropagation(),Me.preventDefault();return}Me.currentTarget.focus(),E==null||E(Me)},[c,E]),ce=U.exports.useCallback(Me=>{$&&z9e(Me)&&(Me.preventDefault(),Me.stopPropagation(),F(!1),B.remove(document,"keyup",ce,!1))},[$,B]),pe=U.exports.useCallback(Me=>{if(k==null||k(Me),c||Me.defaultPrevented||Me.metaKey||!z9e(Me.nativeEvent)||j)return;const ze=d&&Me.key==="Enter";p&&Me.key===" "&&(Me.preventDefault(),F(!0)),ze&&(Me.preventDefault(),Me.currentTarget.click()),B.add(document,"keyup",ce,!1)},[c,j,k,d,p,B,ce]),le=U.exports.useCallback(Me=>{if(T==null||T(Me),c||Me.defaultPrevented||Me.metaKey||!z9e(Me.nativeEvent)||j)return;p&&Me.key===" "&&(Me.preventDefault(),F(!1),Me.currentTarget.click())},[p,j,c,T]),ye=U.exports.useCallback(Me=>{Me.button===0&&(F(!1),B.remove(document,"mouseup",ye,!1))},[B]),Ge=U.exports.useCallback(Me=>{if(Me.button!==0)return;if(c){Me.stopPropagation(),Me.preventDefault();return}j||F(!0),Me.currentTarget.focus({preventScroll:!0}),B.add(document,"mouseup",ye,!1),m==null||m(Me)},[c,j,m,B,ye]),qe=U.exports.useCallback(Me=>{Me.button===0&&(j||F(!1),x==null||x(Me))},[x,j]),et=U.exports.useCallback(Me=>{if(c){Me.preventDefault();return}I==null||I(Me)},[c,I]),tt=U.exports.useCallback(Me=>{$&&(Me.preventDefault(),F(!1)),O==null||O(Me)},[$,O]),jt=_u(r,X);return j?{...N,ref:jt,type:"button","aria-disabled":Z?void 0:c,disabled:Z,onClick:H,onMouseDown:m,onMouseUp:x,onKeyUp:T,onKeyDown:k,onMouseOver:I,onMouseLeave:O}:{...N,ref:jt,role:"button","data-active":wMn($),"aria-disabled":c?"true":void 0,tabIndex:Z?void 0:ne,onClick:H,onMouseDown:Ge,onMouseUp:qe,onKeyUp:le,onKeyDown:pe,onMouseOver:et,onMouseLeave:tt}}function zNt(n){return n!=null&&typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE}function VNt(n){var c;if(!zNt(n))return!1;const r=(c=n.ownerDocument.defaultView)!=null?c:window;return n instanceof r.HTMLElement}function SMn(n){var c;var r;return(c=(r=UNt(n))==null?void 0:r.defaultView)!=null?c:window}function UNt(n){return zNt(n)?n.ownerDocument:document}function EMn(n){return UNt(n).activeElement}var HNt=n=>n.hasAttribute("tabindex"),kMn=n=>HNt(n)&&n.tabIndex===-1;function CMn(n){return Boolean(n.getAttribute("disabled"))===!0||Boolean(n.getAttribute("aria-disabled"))===!0}function qNt(n){return n.parentElement&&qNt(n.parentElement)?!0:n.hidden}function IMn(n){const r=n.getAttribute("contenteditable");return r!=="false"&&r!=null}function WNt(n){if(!VNt(n)||qNt(n)||CMn(n))return!1;const{localName:r}=n;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;const u={a:()=>n.hasAttribute("href"),audio:()=>n.hasAttribute("controls"),video:()=>n.hasAttribute("controls")};return r in u?u[r]():IMn(n)?!0:HNt(n)}function TMn(n){return n?VNt(n)&&WNt(n)&&!kMn(n):!1}var AMn=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],PMn=AMn.join(),OMn=n=>n.offsetWidth>0&&n.offsetHeight>0;function GNt(n){const r=Array.from(n.querySelectorAll(PMn));return r.unshift(n),r.filter(c=>WNt(c)&&OMn(c))}function _Mn(n){const r=n.current;if(!r)return!1;const c=EMn(r);return!c||r.contains(c)?!1:!!TMn(c)}function XNt(n,r){const{shouldFocus:c,visible:u,focusRef:d}=r,p=c&&!u;mk(()=>{if(!p||_Mn(n))return;const m=(d==null?void 0:d.current)||n.current;m&&requestAnimationFrame(()=>{m.focus()})},[p,n,d])}var MMn={preventScroll:!0,shouldFocus:!1};function DMn(n,r=MMn){const{focusRef:c,preventScroll:u,shouldFocus:d,visible:p}=r,m=NMn(n)?n.current:n,x=d&&p,E=U.exports.useRef(x),k=U.exports.useRef(p);Iw(()=>{!k.current&&p&&(E.current=x),k.current=p},[p,x]);const T=U.exports.useCallback(()=>{if(!(!p||!m||!E.current)&&(E.current=!1,!m.contains(document.activeElement)))if(c!=null&&c.current)requestAnimationFrame(()=>{var P;(P=c.current)==null||P.focus({preventScroll:u})});else{const P=GNt(m);P.length>0&&requestAnimationFrame(()=>{P[0].focus({preventScroll:u})})}},[p,u,m,c]);mk(()=>{T()},[T]),y7(m,"transitionend",T)}function NMn(n){return"current"in n}var ng="top",kv="bottom",Cv="right",rg="left",UMe="auto",lW=[ng,kv,Cv,rg],xD="start",dq="end",jMn="clippingParents",KNt="viewport",cU="popper",RMn="reference",HIt=lW.reduce(function(n,r){return n.concat([r+"-"+xD,r+"-"+dq])},[]),YNt=[].concat(lW,[UMe]).reduce(function(n,r){return n.concat([r,r+"-"+xD,r+"-"+dq])},[]),$Mn="beforeRead",LMn="read",FMn="afterRead",BMn="beforeMain",zMn="main",VMn="afterMain",UMn="beforeWrite",HMn="write",qMn="afterWrite",WMn=[$Mn,LMn,FMn,BMn,zMn,VMn,UMn,HMn,qMn];function Qx(n){return n?(n.nodeName||"").toLowerCase():null}function Dw(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function SD(n){var r=Dw(n).Element;return n instanceof r||n instanceof Element}function yv(n){var r=Dw(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function QNt(n){if(typeof ShadowRoot>"u")return!1;var r=Dw(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function GMn(n){var r=n.state;Object.keys(r.elements).forEach(function(c){var u=r.styles[c]||{},d=r.attributes[c]||{},p=r.elements[c];!yv(p)||!Qx(p)||(Object.assign(p.style,u),Object.keys(d).forEach(function(m){var x=d[m];x===!1?p.removeAttribute(m):p.setAttribute(m,x===!0?"":x)}))})}function XMn(n){var r=n.state,c={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,c.popper),r.styles=c,r.elements.arrow&&Object.assign(r.elements.arrow.style,c.arrow),function(){Object.keys(r.elements).forEach(function(u){var d=r.elements[u],p=r.attributes[u]||{},m=Object.keys(r.styles.hasOwnProperty(u)?r.styles[u]:c[u]),x=m.reduce(function(E,k){return E[k]="",E},{});!yv(d)||!Qx(d)||(Object.assign(d.style,x),Object.keys(p).forEach(function(E){d.removeAttribute(E)}))})}}const KMn={name:"applyStyles",enabled:!0,phase:"write",fn:GMn,effect:XMn,requires:["computeStyles"]};function Gx(n){return n.split("-")[0]}var w7=Math.max,Pce=Math.min,ED=Math.round;function kD(n,r){r===void 0&&(r=!1);var c=n.getBoundingClientRect(),u=1,d=1;if(yv(n)&&r){var p=n.offsetHeight,m=n.offsetWidth;m>0&&(u=ED(c.width)/m||1),p>0&&(d=ED(c.height)/p||1)}return{width:c.width/u,height:c.height/d,top:c.top/d,right:c.right/u,bottom:c.bottom/d,left:c.left/u,x:c.left/u,y:c.top/d}}function HMe(n){var r=kD(n),c=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-c)<=1&&(c=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:c,height:u}}function ZNt(n,r){var c=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(c&&QNt(c)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function kS(n){return Dw(n).getComputedStyle(n)}function YMn(n){return["table","td","th"].indexOf(Qx(n))>=0}function Rk(n){return((SD(n)?n.ownerDocument:n.document)||window.document).documentElement}function Hle(n){return Qx(n)==="html"?n:n.assignedSlot||n.parentNode||(QNt(n)?n.host:null)||Rk(n)}function qIt(n){return!yv(n)||kS(n).position==="fixed"?null:n.offsetParent}function QMn(n){var r=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,c=navigator.userAgent.indexOf("Trident")!==-1;if(c&&yv(n)){var u=kS(n);if(u.position==="fixed")return null}for(var d=Hle(n);yv(d)&&["html","body"].indexOf(Qx(d))<0;){var p=kS(d);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||r&&p.willChange==="filter"||r&&p.filter&&p.filter!=="none")return d;d=d.parentNode}return null}function fW(n){for(var r=Dw(n),c=qIt(n);c&&YMn(c)&&kS(c).position==="static";)c=qIt(c);return c&&(Qx(c)==="html"||Qx(c)==="body"&&kS(c).position==="static")?r:c||QMn(n)||r}function qMe(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function dH(n,r,c){return w7(n,Pce(r,c))}function ZMn(n,r,c){var u=dH(n,r,c);return u>c?c:u}function JNt(){return{top:0,right:0,bottom:0,left:0}}function ejt(n){return Object.assign({},JNt(),n)}function tjt(n,r){return r.reduce(function(c,u){return c[u]=n,c},{})}var JMn=function(r,c){return r=typeof r=="function"?r(Object.assign({},c.rects,{placement:c.placement})):r,ejt(typeof r!="number"?r:tjt(r,lW))};function eDn(n){var r,c=n.state,u=n.name,d=n.options,p=c.elements.arrow,m=c.modifiersData.popperOffsets,x=Gx(c.placement),E=qMe(x),k=[rg,Cv].indexOf(x)>=0,T=k?"height":"width";if(!(!p||!m)){var P=JMn(d.padding,c),I=HMe(p),O=E==="y"?ng:rg,N=E==="y"?kv:Cv,j=c.rects.reference[T]+c.rects.reference[E]-m[E]-c.rects.popper[T],L=m[E]-c.rects.reference[E],$=fW(p),F=$?E==="y"?$.clientHeight||0:$.clientWidth||0:0,B=j/2-L/2,X=P[O],ne=F-I[T]-P[N],Z=F/2-I[T]/2+B,H=dH(X,Z,ne),ce=E;c.modifiersData[u]=(r={},r[ce]=H,r.centerOffset=H-Z,r)}}function tDn(n){var r=n.state,c=n.options,u=c.element,d=u===void 0?"[data-popper-arrow]":u;d!=null&&(typeof d=="string"&&(d=r.elements.popper.querySelector(d),!d)||!ZNt(r.elements.popper,d)||(r.elements.arrow=d))}const nDn={name:"arrow",enabled:!0,phase:"main",fn:eDn,effect:tDn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function CD(n){return n.split("-")[1]}var rDn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iDn(n){var r=n.x,c=n.y,u=window,d=u.devicePixelRatio||1;return{x:ED(r*d)/d||0,y:ED(c*d)/d||0}}function WIt(n){var r,c=n.popper,u=n.popperRect,d=n.placement,p=n.variation,m=n.offsets,x=n.position,E=n.gpuAcceleration,k=n.adaptive,T=n.roundOffsets,P=n.isFixed,I=m.x,O=I===void 0?0:I,N=m.y,j=N===void 0?0:N,L=typeof T=="function"?T({x:O,y:j}):{x:O,y:j};O=L.x,j=L.y;var $=m.hasOwnProperty("x"),F=m.hasOwnProperty("y"),B=rg,X=ng,ne=window;if(k){var Z=fW(c),H="clientHeight",ce="clientWidth";if(Z===Dw(c)&&(Z=Rk(c),kS(Z).position!=="static"&&x==="absolute"&&(H="scrollHeight",ce="scrollWidth")),Z=Z,d===ng||(d===rg||d===Cv)&&p===dq){X=kv;var pe=P&&ne.visualViewport?ne.visualViewport.height:Z[H];j-=pe-u.height,j*=E?1:-1}if(d===rg||(d===ng||d===kv)&&p===dq){B=Cv;var le=P&&ne.visualViewport?ne.visualViewport.width:Z[ce];O-=le-u.width,O*=E?1:-1}}var ye=Object.assign({position:x},k&&rDn),Ge=T===!0?iDn({x:O,y:j}):{x:O,y:j};if(O=Ge.x,j=Ge.y,E){var qe;return Object.assign({},ye,(qe={},qe[X]=F?"0":"",qe[B]=$?"0":"",qe.transform=(ne.devicePixelRatio||1)<=1?"translate("+O+"px, "+j+"px)":"translate3d("+O+"px, "+j+"px, 0)",qe))}return Object.assign({},ye,(r={},r[X]=F?j+"px":"",r[B]=$?O+"px":"",r.transform="",r))}function oDn(n){var r=n.state,c=n.options,u=c.gpuAcceleration,d=u===void 0?!0:u,p=c.adaptive,m=p===void 0?!0:p,x=c.roundOffsets,E=x===void 0?!0:x,k={placement:Gx(r.placement),variation:CD(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:d,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,WIt(Object.assign({},k,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:m,roundOffsets:E})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,WIt(Object.assign({},k,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:E})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const sDn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oDn,data:{}};var ase={passive:!0};function aDn(n){var r=n.state,c=n.instance,u=n.options,d=u.scroll,p=d===void 0?!0:d,m=u.resize,x=m===void 0?!0:m,E=Dw(r.elements.popper),k=[].concat(r.scrollParents.reference,r.scrollParents.popper);return p&&k.forEach(function(T){T.addEventListener("scroll",c.update,ase)}),x&&E.addEventListener("resize",c.update,ase),function(){p&&k.forEach(function(T){T.removeEventListener("scroll",c.update,ase)}),x&&E.removeEventListener("resize",c.update,ase)}}const cDn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aDn,data:{}};var uDn={left:"right",right:"left",bottom:"top",top:"bottom"};function Cae(n){return n.replace(/left|right|bottom|top/g,function(r){return uDn[r]})}var lDn={start:"end",end:"start"};function GIt(n){return n.replace(/start|end/g,function(r){return lDn[r]})}function WMe(n){var r=Dw(n),c=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:c,scrollTop:u}}function GMe(n){return kD(Rk(n)).left+WMe(n).scrollLeft}function fDn(n){var r=Dw(n),c=Rk(n),u=r.visualViewport,d=c.clientWidth,p=c.clientHeight,m=0,x=0;return u&&(d=u.width,p=u.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=u.offsetLeft,x=u.offsetTop)),{width:d,height:p,x:m+GMe(n),y:x}}function dDn(n){var r,c=Rk(n),u=WMe(n),d=(r=n.ownerDocument)==null?void 0:r.body,p=w7(c.scrollWidth,c.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),m=w7(c.scrollHeight,c.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),x=-u.scrollLeft+GMe(n),E=-u.scrollTop;return kS(d||c).direction==="rtl"&&(x+=w7(c.clientWidth,d?d.clientWidth:0)-p),{width:p,height:m,x,y:E}}function XMe(n){var r=kS(n),c=r.overflow,u=r.overflowX,d=r.overflowY;return/auto|scroll|overlay|hidden/.test(c+d+u)}function njt(n){return["html","body","#document"].indexOf(Qx(n))>=0?n.ownerDocument.body:yv(n)&&XMe(n)?n:njt(Hle(n))}function hH(n,r){var c;r===void 0&&(r=[]);var u=njt(n),d=u===((c=n.ownerDocument)==null?void 0:c.body),p=Dw(u),m=d?[p].concat(p.visualViewport||[],XMe(u)?u:[]):u,x=r.concat(m);return d?x:x.concat(hH(Hle(m)))}function ZAe(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function hDn(n){var r=kD(n);return r.top=r.top+n.clientTop,r.left=r.left+n.clientLeft,r.bottom=r.top+n.clientHeight,r.right=r.left+n.clientWidth,r.width=n.clientWidth,r.height=n.clientHeight,r.x=r.left,r.y=r.top,r}function XIt(n,r){return r===KNt?ZAe(fDn(n)):SD(r)?hDn(r):ZAe(dDn(Rk(n)))}function pDn(n){var r=hH(Hle(n)),c=["absolute","fixed"].indexOf(kS(n).position)>=0,u=c&&yv(n)?fW(n):n;return SD(u)?r.filter(function(d){return SD(d)&&ZNt(d,u)&&Qx(d)!=="body"}):[]}function gDn(n,r,c){var u=r==="clippingParents"?pDn(n):[].concat(r),d=[].concat(u,[c]),p=d[0],m=d.reduce(function(x,E){var k=XIt(n,E);return x.top=w7(k.top,x.top),x.right=Pce(k.right,x.right),x.bottom=Pce(k.bottom,x.bottom),x.left=w7(k.left,x.left),x},XIt(n,p));return m.width=m.right-m.left,m.height=m.bottom-m.top,m.x=m.left,m.y=m.top,m}function rjt(n){var r=n.reference,c=n.element,u=n.placement,d=u?Gx(u):null,p=u?CD(u):null,m=r.x+r.width/2-c.width/2,x=r.y+r.height/2-c.height/2,E;switch(d){case ng:E={x:m,y:r.y-c.height};break;case kv:E={x:m,y:r.y+r.height};break;case Cv:E={x:r.x+r.width,y:x};break;case rg:E={x:r.x-c.width,y:x};break;default:E={x:r.x,y:r.y}}var k=d?qMe(d):null;if(k!=null){var T=k==="y"?"height":"width";switch(p){case xD:E[k]=E[k]-(r[T]/2-c[T]/2);break;case dq:E[k]=E[k]+(r[T]/2-c[T]/2);break}}return E}function hq(n,r){r===void 0&&(r={});var c=r,u=c.placement,d=u===void 0?n.placement:u,p=c.boundary,m=p===void 0?jMn:p,x=c.rootBoundary,E=x===void 0?KNt:x,k=c.elementContext,T=k===void 0?cU:k,P=c.altBoundary,I=P===void 0?!1:P,O=c.padding,N=O===void 0?0:O,j=ejt(typeof N!="number"?N:tjt(N,lW)),L=T===cU?RMn:cU,$=n.rects.popper,F=n.elements[I?L:T],B=gDn(SD(F)?F:F.contextElement||Rk(n.elements.popper),m,E),X=kD(n.elements.reference),ne=rjt({reference:X,element:$,strategy:"absolute",placement:d}),Z=ZAe(Object.assign({},$,ne)),H=T===cU?Z:X,ce={top:B.top-H.top+j.top,bottom:H.bottom-B.bottom+j.bottom,left:B.left-H.left+j.left,right:H.right-B.right+j.right},pe=n.modifiersData.offset;if(T===cU&&pe){var le=pe[d];Object.keys(ce).forEach(function(ye){var Ge=[Cv,kv].indexOf(ye)>=0?1:-1,qe=[ng,kv].indexOf(ye)>=0?"y":"x";ce[ye]+=le[qe]*Ge})}return ce}function bDn(n,r){r===void 0&&(r={});var c=r,u=c.placement,d=c.boundary,p=c.rootBoundary,m=c.padding,x=c.flipVariations,E=c.allowedAutoPlacements,k=E===void 0?YNt:E,T=CD(u),P=T?x?HIt:HIt.filter(function(N){return CD(N)===T}):lW,I=P.filter(function(N){return k.indexOf(N)>=0});I.length===0&&(I=P);var O=I.reduce(function(N,j){return N[j]=hq(n,{placement:j,boundary:d,rootBoundary:p,padding:m})[Gx(j)],N},{});return Object.keys(O).sort(function(N,j){return O[N]-O[j]})}function mDn(n){if(Gx(n)===UMe)return[];var r=Cae(n);return[GIt(n),r,GIt(r)]}function vDn(n){var r=n.state,c=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var d=c.mainAxis,p=d===void 0?!0:d,m=c.altAxis,x=m===void 0?!0:m,E=c.fallbackPlacements,k=c.padding,T=c.boundary,P=c.rootBoundary,I=c.altBoundary,O=c.flipVariations,N=O===void 0?!0:O,j=c.allowedAutoPlacements,L=r.options.placement,$=Gx(L),F=$===L,B=E||(F||!N?[Cae(L)]:mDn(L)),X=[L].concat(B).reduce(function(sn,Tn){return sn.concat(Gx(Tn)===UMe?bDn(r,{placement:Tn,boundary:T,rootBoundary:P,padding:k,flipVariations:N,allowedAutoPlacements:j}):Tn)},[]),ne=r.rects.reference,Z=r.rects.popper,H=new Map,ce=!0,pe=X[0],le=0;le=0,tt=et?"width":"height",jt=hq(r,{placement:ye,boundary:T,rootBoundary:P,altBoundary:I,padding:k}),Me=et?qe?Cv:rg:qe?kv:ng;ne[tt]>Z[tt]&&(Me=Cae(Me));var ze=Cae(Me),we=[];if(p&&we.push(jt[Ge]<=0),x&&we.push(jt[Me]<=0,jt[ze]<=0),we.every(function(sn){return sn})){pe=ye,ce=!1;break}H.set(ye,we)}if(ce)for(var De=N?3:1,be=function(Tn){var qn=X.find(function(rr){var Zn=H.get(rr);if(Zn)return Zn.slice(0,Tn).every(function(Gr){return Gr})});if(qn)return pe=qn,"break"},Se=De;Se>0;Se--){var Jt=be(Se);if(Jt==="break")break}r.placement!==pe&&(r.modifiersData[u]._skip=!0,r.placement=pe,r.reset=!0)}}const yDn={name:"flip",enabled:!0,phase:"main",fn:vDn,requiresIfExists:["offset"],data:{_skip:!1}};function KIt(n,r,c){return c===void 0&&(c={x:0,y:0}),{top:n.top-r.height-c.y,right:n.right-r.width+c.x,bottom:n.bottom-r.height+c.y,left:n.left-r.width-c.x}}function YIt(n){return[ng,Cv,kv,rg].some(function(r){return n[r]>=0})}function wDn(n){var r=n.state,c=n.name,u=r.rects.reference,d=r.rects.popper,p=r.modifiersData.preventOverflow,m=hq(r,{elementContext:"reference"}),x=hq(r,{altBoundary:!0}),E=KIt(m,u),k=KIt(x,d,p),T=YIt(E),P=YIt(k);r.modifiersData[c]={referenceClippingOffsets:E,popperEscapeOffsets:k,isReferenceHidden:T,hasPopperEscaped:P},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":P})}const xDn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wDn};function SDn(n,r,c){var u=Gx(n),d=[rg,ng].indexOf(u)>=0?-1:1,p=typeof c=="function"?c(Object.assign({},r,{placement:n})):c,m=p[0],x=p[1];return m=m||0,x=(x||0)*d,[rg,Cv].indexOf(u)>=0?{x,y:m}:{x:m,y:x}}function EDn(n){var r=n.state,c=n.options,u=n.name,d=c.offset,p=d===void 0?[0,0]:d,m=YNt.reduce(function(T,P){return T[P]=SDn(P,r.rects,p),T},{}),x=m[r.placement],E=x.x,k=x.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=E,r.modifiersData.popperOffsets.y+=k),r.modifiersData[u]=m}const kDn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EDn};function CDn(n){var r=n.state,c=n.name;r.modifiersData[c]=rjt({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const IDn={name:"popperOffsets",enabled:!0,phase:"read",fn:CDn,data:{}};function TDn(n){return n==="x"?"y":"x"}function ADn(n){var r=n.state,c=n.options,u=n.name,d=c.mainAxis,p=d===void 0?!0:d,m=c.altAxis,x=m===void 0?!1:m,E=c.boundary,k=c.rootBoundary,T=c.altBoundary,P=c.padding,I=c.tether,O=I===void 0?!0:I,N=c.tetherOffset,j=N===void 0?0:N,L=hq(r,{boundary:E,rootBoundary:k,padding:P,altBoundary:T}),$=Gx(r.placement),F=CD(r.placement),B=!F,X=qMe($),ne=TDn(X),Z=r.modifiersData.popperOffsets,H=r.rects.reference,ce=r.rects.popper,pe=typeof j=="function"?j(Object.assign({},r.rects,{placement:r.placement})):j,le=typeof pe=="number"?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),ye=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ge={x:0,y:0};if(!!Z){if(p){var qe,et=X==="y"?ng:rg,tt=X==="y"?kv:Cv,jt=X==="y"?"height":"width",Me=Z[X],ze=Me+L[et],we=Me-L[tt],De=O?-ce[jt]/2:0,be=F===xD?H[jt]:ce[jt],Se=F===xD?-ce[jt]:-H[jt],Jt=r.elements.arrow,sn=O&&Jt?HMe(Jt):{width:0,height:0},Tn=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:JNt(),qn=Tn[et],rr=Tn[tt],Zn=dH(0,H[jt],sn[jt]),Gr=B?H[jt]/2-De-Zn-qn-le.mainAxis:be-Zn-qn-le.mainAxis,Je=B?-H[jt]/2+De+Zn+rr+le.mainAxis:Se+Zn+rr+le.mainAxis,ct=r.elements.arrow&&fW(r.elements.arrow),rn=ct?X==="y"?ct.clientTop||0:ct.clientLeft||0:0,Ne=(qe=ye==null?void 0:ye[X])!=null?qe:0,ae=Me+Gr-Ne-rn,me=Me+Je-Ne,Te=dH(O?Pce(ze,ae):ze,Me,O?w7(we,me):we);Z[X]=Te,Ge[X]=Te-Me}if(x){var Xe,dt=X==="x"?ng:rg,Sn=X==="x"?kv:Cv,gn=Z[ne],yr=ne==="y"?"height":"width",Sr=gn+L[dt],Ur=gn-L[Sn],jr=[ng,rg].indexOf($)!==-1,ki=(Xe=ye==null?void 0:ye[ne])!=null?Xe:0,Zc=jr?Sr:gn-H[yr]-ce[yr]-ki+le.altAxis,Ee=jr?gn+H[yr]+ce[yr]-ki-le.altAxis:Ur,K=O&&jr?ZMn(Zc,gn,Ee):dH(O?Zc:Sr,gn,O?Ee:Ur);Z[ne]=K,Ge[ne]=K-gn}r.modifiersData[u]=Ge}}const PDn={name:"preventOverflow",enabled:!0,phase:"main",fn:ADn,requiresIfExists:["offset"]};function ODn(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function _Dn(n){return n===Dw(n)||!yv(n)?WMe(n):ODn(n)}function MDn(n){var r=n.getBoundingClientRect(),c=ED(r.width)/n.offsetWidth||1,u=ED(r.height)/n.offsetHeight||1;return c!==1||u!==1}function DDn(n,r,c){c===void 0&&(c=!1);var u=yv(r),d=yv(r)&&MDn(r),p=Rk(r),m=kD(n,d),x={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(u||!u&&!c)&&((Qx(r)!=="body"||XMe(p))&&(x=_Dn(r)),yv(r)?(E=kD(r,!0),E.x+=r.clientLeft,E.y+=r.clientTop):p&&(E.x=GMe(p))),{x:m.left+x.scrollLeft-E.x,y:m.top+x.scrollTop-E.y,width:m.width,height:m.height}}function NDn(n){var r=new Map,c=new Set,u=[];n.forEach(function(p){r.set(p.name,p)});function d(p){c.add(p.name);var m=[].concat(p.requires||[],p.requiresIfExists||[]);m.forEach(function(x){if(!c.has(x)){var E=r.get(x);E&&d(E)}}),u.push(p)}return n.forEach(function(p){c.has(p.name)||d(p)}),u}function jDn(n){var r=NDn(n);return WMn.reduce(function(c,u){return c.concat(r.filter(function(d){return d.phase===u}))},[])}function RDn(n){var r;return function(){return r||(r=new Promise(function(c){Promise.resolve().then(function(){r=void 0,c(n())})})),r}}function $Dn(n){var r=n.reduce(function(c,u){var d=c[u.name];return c[u.name]=d?Object.assign({},d,u,{options:Object.assign({},d.options,u.options),data:Object.assign({},d.data,u.data)}):u,c},{});return Object.keys(r).map(function(c){return r[c]})}var QIt={placement:"bottom",modifiers:[],strategy:"absolute"};function ZIt(){for(var n=arguments.length,r=new Array(n),c=0;c({var:n,varRef:r?`var(${n}, ${r})`:`var(${n})`}),ed={arrowShadowColor:q_("--popper-arrow-shadow-color"),arrowSize:q_("--popper-arrow-size","8px"),arrowSizeHalf:q_("--popper-arrow-size-half"),arrowBg:q_("--popper-arrow-bg"),transformOrigin:q_("--popper-transform-origin"),arrowOffset:q_("--popper-arrow-offset")};function zDn(n){if(n.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var VDn={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},UDn=n=>VDn[n],JIt={scroll:!0,resize:!0};function HDn(n){let r;return typeof n=="object"?r={enabled:!0,options:{...JIt,...n}}:r={enabled:n,options:JIt},r}var qDn={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},effect:({state:n})=>()=>{const r=n.elements.reference;n.elements.popper.style.width=`${r.offsetWidth}px`}},WDn={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:n})=>{e9t(n)},effect:({state:n})=>()=>{e9t(n)}},e9t=n=>{n.elements.popper.style.setProperty(ed.transformOrigin.var,UDn(n.placement))},GDn={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:n})=>{XDn(n)}},XDn=n=>{var r;if(!n.placement)return;const c=KDn(n.placement);if(((r=n.elements)==null?void 0:r.arrow)&&c){Object.assign(n.elements.arrow.style,{[c.property]:c.value,width:ed.arrowSize.varRef,height:ed.arrowSize.varRef,zIndex:-1});const u={[ed.arrowSizeHalf.var]:`calc(${ed.arrowSize.varRef} / 2)`,[ed.arrowOffset.var]:`calc(${ed.arrowSizeHalf.varRef} * -1)`};for(const d in u)n.elements.arrow.style.setProperty(d,u[d])}},KDn=n=>{if(n.startsWith("top"))return{property:"bottom",value:ed.arrowOffset.varRef};if(n.startsWith("bottom"))return{property:"top",value:ed.arrowOffset.varRef};if(n.startsWith("left"))return{property:"right",value:ed.arrowOffset.varRef};if(n.startsWith("right"))return{property:"left",value:ed.arrowOffset.varRef}},YDn={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:n})=>{t9t(n)},effect:({state:n})=>()=>{t9t(n)}},t9t=n=>{if(!n.elements.arrow)return;const r=n.elements.arrow.querySelector("[data-popper-arrow-inner]");!r||Object.assign(r.style,{transform:"rotate(45deg)",background:ed.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:zDn(n.placement)})},QDn={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ZDn={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function JDn(n,r="ltr"){var d;var c;const u=((c=QDn[n])==null?void 0:c[r])||n;return r==="ltr"?u:(d=ZDn[n])!=null?d:u}function KMe(n={}){const{enabled:r=!0,modifiers:c,placement:u="bottom",strategy:d="absolute",arrowPadding:p=8,eventListeners:m=!0,offset:x,gutter:E=8,flip:k=!0,boundary:T="clippingParents",preventOverflow:P=!0,matchWidth:I,direction:O="ltr"}=n,N=U.exports.useRef(null),j=U.exports.useRef(null),L=U.exports.useRef(null),$=JDn(u,O),F=U.exports.useRef(()=>{}),B=U.exports.useCallback(()=>{var le;!r||!N.current||!j.current||((le=F.current)==null||le.call(F),L.current=BDn(N.current,j.current,{placement:$,modifiers:[YDn,GDn,WDn,{...qDn,enabled:!!I},{name:"eventListeners",...HDn(m)},{name:"arrow",options:{padding:p}},{name:"offset",options:{offset:x!=null?x:[0,E]}},{name:"flip",enabled:!!k,options:{padding:8}},{name:"preventOverflow",enabled:!!P,options:{boundary:T}},...c!=null?c:[]],strategy:d}),L.current.forceUpdate(),F.current=L.current.destroy)},[$,r,c,I,m,p,x,E,k,P,T,d]);U.exports.useEffect(()=>()=>{var le;!N.current&&!j.current&&((le=L.current)==null||le.destroy(),L.current=null)},[]);const X=U.exports.useCallback(le=>{N.current=le,B()},[B]),ne=U.exports.useCallback((le={},ye=null)=>({...le,ref:_u(X,ye)}),[X]),Z=U.exports.useCallback(le=>{j.current=le,B()},[B]),H=U.exports.useCallback((le={},ye=null)=>({...le,ref:_u(Z,ye),style:{...le.style,position:d,minWidth:I?void 0:"max-content",inset:"0 auto auto 0"}}),[d,Z,I]),ce=U.exports.useCallback((le={},ye=null)=>{const{size:Ge,shadowColor:qe,bg:et,style:tt,...jt}=le;return{...jt,ref:ye,"data-popper-arrow":"",style:eNn(le)}},[]),pe=U.exports.useCallback((le={},ye=null)=>({...le,ref:ye,"data-popper-arrow-inner":""}),[]);return{update(){var le;(le=L.current)==null||le.update()},forceUpdate(){var le;(le=L.current)==null||le.forceUpdate()},transformOrigin:ed.transformOrigin.varRef,referenceRef:X,popperRef:Z,getPopperProps:H,getArrowProps:ce,getArrowInnerProps:pe,getReferenceProps:ne}}function eNn(n){const{size:r,shadowColor:c,bg:u,style:d}=n,p={...d,position:"absolute"};return r&&(p["--popper-arrow-size"]=r),c&&(p["--popper-arrow-shadow-color"]=c),u&&(p["--popper-arrow-bg"]=u),p}function YMe(n={}){const{onClose:r,onOpen:c,isOpen:u,id:d}=n,p=mh(c),m=mh(r),[x,E]=U.exports.useState(n.defaultIsOpen||!1),k=u!==void 0?u:x,T=u!==void 0,P=U.exports.useId(),I=d!=null?d:`disclosure-${P}`,O=U.exports.useCallback(()=>{T||E(!1),m==null||m()},[T,m]),N=U.exports.useCallback(()=>{T||E(!0),p==null||p()},[T,p]),j=U.exports.useCallback(()=>{k?O():N()},[k,N,O]);function L(F={}){return{...F,"aria-expanded":k,"aria-controls":I,onClick(B){var X;(X=F.onClick)==null||X.call(F,B),j()}}}function $(F={}){return{...F,hidden:!k,id:I}}return{isOpen:k,onOpen:N,onClose:O,onToggle:j,isControlled:T,getButtonProps:L,getDisclosureProps:$}}function tNn(n){const{ref:r,handler:c,enabled:u=!0}=n,d=mh(c),m=U.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;U.exports.useEffect(()=>{if(!u)return;const x=P=>{V9e(P,r)&&(m.isPointerDown=!0)},E=P=>{if(m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.isPointerDown&&c&&V9e(P,r)&&(m.isPointerDown=!1,d(P))},k=P=>{m.ignoreEmulatedMouseEvents=!0,c&&m.isPointerDown&&V9e(P,r)&&(m.isPointerDown=!1,d(P))},T=ijt(r.current);return T.addEventListener("mousedown",x,!0),T.addEventListener("mouseup",E,!0),T.addEventListener("touchstart",x,!0),T.addEventListener("touchend",k,!0),()=>{T.removeEventListener("mousedown",x,!0),T.removeEventListener("mouseup",E,!0),T.removeEventListener("touchstart",x,!0),T.removeEventListener("touchend",k,!0)}},[c,r,d,m,u])}function V9e(n,r){var c;const u=n.target;return n.button>0||u&&!ijt(u).contains(u)?!1:!((c=r.current)!=null&&c.contains(u))}function ijt(n){var r;return(r=n==null?void 0:n.ownerDocument)!=null?r:document}function ojt(n){const{isOpen:r,ref:c}=n,[u,d]=U.exports.useState(r),[p,m]=U.exports.useState(!1);return U.exports.useEffect(()=>{p||(d(r),m(!0))},[r,p,u]),y7(()=>c.current,"animationend",()=>{d(r)}),{present:!(r?!1:!u),onComplete(){var E;const k=SMn(c.current),T=new k.CustomEvent("animationend",{bubbles:!0});(E=c.current)==null||E.dispatchEvent(T)}}}function QMe(n){const{wasSelected:r,enabled:c,isSelected:u,mode:d="unmount"}=n;return!!(!c||u||d==="keepMounted"&&r)}var M7=(...n)=>n.filter(Boolean).join(" ");function nNn(n,...r){return rNn(n)?n(...r):n}var rNn=n=>typeof n=="function",iNn=n=>n?"":void 0;function JAe(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function oNn(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}function sNn(n){const{key:r}=n;return r.length===1||r.length>1&&/[^a-zA-Z0-9]/.test(r)}function aNn(n={}){const{timeout:r=300,preventDefault:c=()=>!0}=n,[u,d]=U.exports.useState([]),p=U.exports.useRef(),m=()=>{p.current&&(clearTimeout(p.current),p.current=null)},x=()=>{m(),p.current=setTimeout(()=>{d([]),p.current=null},r)};U.exports.useEffect(()=>m,[]);function E(k){return T=>{if(T.key==="Backspace"){const P=[...u];P.pop(),d(P);return}if(sNn(T)){const P=u.concat(T.key);c(T)&&(T.preventDefault(),T.stopPropagation()),d(P),k(P.join("")),x()}}}return E}function cNn(n,r,c,u){if(r==null)return u;if(!u)return n.find(m=>c(m).toLowerCase().startsWith(r.toLowerCase()));const d=n.filter(p=>c(p).toLowerCase().startsWith(r.toLowerCase()));if(d.length>0){let p;return d.includes(u)?(p=d.indexOf(u)+1,p===d.length&&(p=0),d[p]):(p=n.indexOf(d[0]),n[p])}return u}var[uNn,lNn,fNn,dNn]=J_e(),[hNn,dW]=Ec({strict:!1,name:"MenuContext"});function pNn(n,...r){const c=U.exports.useId(),u=n||c;return U.exports.useMemo(()=>r.map(d=>`${d}-${u}`),[u,r])}function sjt(n){var r;return(r=n==null?void 0:n.ownerDocument)!=null?r:document}function n9t(n){return sjt(n).activeElement===n}function gNn(n={}){const{id:r,closeOnSelect:c=!0,closeOnBlur:u=!0,autoSelect:d=!0,isLazy:p,isOpen:m,defaultIsOpen:x,onClose:E,onOpen:k,placement:T="bottom-start",lazyBehavior:P="unmount",direction:I,computePositionOnMount:O=!1,...N}=n,j=U.exports.useRef(null),L=U.exports.useRef(null),$=fNn(),F=U.exports.useCallback(()=>{requestAnimationFrame(()=>{var be;(be=j.current)==null||be.focus({preventScroll:!1})})},[]),B=U.exports.useCallback(()=>{const be=setTimeout(()=>{const Se=$.firstEnabled();Se&&Ge(Se.index)});Me.current.add(be)},[$]),X=U.exports.useCallback(()=>{const be=setTimeout(()=>{const Se=$.lastEnabled();Se&&Ge(Se.index)});Me.current.add(be)},[$]),ne=U.exports.useCallback(()=>{k==null||k(),d?B():F()},[d,B,F,k]),{isOpen:Z,onOpen:H,onClose:ce,onToggle:pe}=YMe({isOpen:m,defaultIsOpen:x,onClose:E,onOpen:ne});tNn({enabled:Z&&u,ref:j,handler:be=>{var Se;(Se=L.current)!=null&&Se.contains(be.target)||ce()}});const le=KMe({...N,enabled:Z||O,placement:T,direction:I}),[ye,Ge]=U.exports.useState(-1);mk(()=>{Z||Ge(-1)},[Z]),XNt(j,{focusRef:L,visible:Z,shouldFocus:!0});const qe=ojt({isOpen:Z,ref:j}),[et,tt]=pNn(r,"menu-button","menu-list"),jt=U.exports.useCallback(()=>{H(),F()},[H,F]),Me=U.exports.useRef(new Set([]));SNn(()=>{Me.current.forEach(be=>clearTimeout(be)),Me.current.clear()});const ze=U.exports.useCallback(()=>{H(),B()},[B,H]),we=U.exports.useCallback(()=>{H(),X()},[H,X]),De=U.exports.useCallback(()=>{var be,Se;const Jt=sjt(j.current),sn=(be=j.current)==null?void 0:be.contains(Jt.activeElement);if(!(Z&&!sn))return;const qn=(Se=$.item(ye))==null?void 0:Se.node;qn==null||qn.focus()},[Z,ye,$]);return{openAndFocusMenu:jt,openAndFocusFirstItem:ze,openAndFocusLastItem:we,onTransitionEnd:De,unstable__animationState:qe,descendants:$,popper:le,buttonId:et,menuId:tt,forceUpdate:le.forceUpdate,orientation:"vertical",isOpen:Z,onToggle:pe,onOpen:H,onClose:ce,menuRef:j,buttonRef:L,focusedIndex:ye,closeOnSelect:c,closeOnBlur:u,autoSelect:d,setFocusedIndex:Ge,isLazy:p,lazyBehavior:P}}function bNn(n={},r=null){const c=dW(),{onToggle:u,popper:d,openAndFocusFirstItem:p,openAndFocusLastItem:m}=c,x=U.exports.useCallback(E=>{const k=E.key,P={Enter:p,ArrowDown:p,ArrowUp:m}[k];P&&(E.preventDefault(),E.stopPropagation(),P(E))},[p,m]);return{...n,ref:_u(c.buttonRef,r,d.referenceRef),id:c.buttonId,"data-active":iNn(c.isOpen),"aria-expanded":c.isOpen,"aria-haspopup":"menu","aria-controls":c.menuId,onClick:JAe(n.onClick,u),onKeyDown:JAe(n.onKeyDown,x)}}function ePe(n){var r;return wNn(n)&&!!((r=n==null?void 0:n.getAttribute("role"))!=null&&r.startsWith("menuitem"))}function mNn(n={},r=null){const c=dW();if(!c)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:u,setFocusedIndex:d,menuRef:p,isOpen:m,onClose:x,menuId:E,isLazy:k,lazyBehavior:T,unstable__animationState:P}=c,I=lNn(),O=aNn({preventDefault:$=>$.key!==" "&&ePe($.target)}),N=U.exports.useCallback($=>{const F=$.key,X={Tab:Z=>Z.preventDefault(),Escape:x,ArrowDown:()=>{const Z=I.nextEnabled(u);Z&&d(Z.index)},ArrowUp:()=>{const Z=I.prevEnabled(u);Z&&d(Z.index)}}[F];if(X){$.preventDefault(),X($);return}const ne=O(Z=>{const H=cNn(I.values(),Z,ce=>{var le;var pe;return(le=(pe=ce==null?void 0:ce.node)==null?void 0:pe.textContent)!=null?le:""},I.item(u));if(H){const ce=I.indexOf(H.node);d(ce)}});ePe($.target)&&ne($)},[I,u,O,x,d]),j=U.exports.useRef(!1);m&&(j.current=!0);const L=QMe({wasSelected:j.current,enabled:k,mode:T,isSelected:P.present});return{...n,ref:_u(p,r),children:L?n.children:null,tabIndex:-1,role:"menu",id:E,style:{...n.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:JAe(n.onKeyDown,N)}}function vNn(n={}){const{popper:r,isOpen:c}=dW();return r.getPopperProps({...n,style:{visibility:c?"visible":"hidden",...n.style}})}function ajt(n={},r=null){const{onMouseEnter:c,onMouseMove:u,onMouseLeave:d,onClick:p,isDisabled:m,isFocusable:x,closeOnSelect:E,type:k,...T}=n,P=dW(),{setFocusedIndex:I,focusedIndex:O,closeOnSelect:N,onClose:j,menuRef:L,isOpen:$,menuId:F}=P,B=U.exports.useRef(null),X=`${F}-menuitem-${U.exports.useId()}`,{index:ne,register:Z}=dNn({disabled:m&&!x}),H=U.exports.useCallback(et=>{c==null||c(et),!m&&I(ne)},[I,ne,m,c]),ce=U.exports.useCallback(et=>{u==null||u(et),B.current&&!n9t(B.current)&&H(et)},[H,u]),pe=U.exports.useCallback(et=>{d==null||d(et),!m&&I(-1)},[I,m,d]),le=U.exports.useCallback(et=>{p==null||p(et),!!ePe(et.currentTarget)&&(E!=null?E:N)&&j()},[j,p,N,E]),ye=ne===O,Ge=m&&!x;mk(()=>{!$||(ye&&!Ge&&B.current?requestAnimationFrame(()=>{var et;(et=B.current)==null||et.focus()}):L.current&&!n9t(L.current)&&L.current.focus())},[ye,Ge,L,$]);const qe=BNt({onClick:le,onMouseEnter:H,onMouseMove:ce,onMouseLeave:pe,ref:_u(Z,B,r),isDisabled:m,isFocusable:x});return{...T,...qe,type:k!=null?k:qe.type,id:X,role:"menuitem",tabIndex:ye?0:-1}}function yNn(n={},r=null){const{type:c="radio",isChecked:u,...d}=n;return{...ajt(d,r),role:`menuitem${c}`,"aria-checked":u}}function wNn(n){var c;if(!xNn(n))return!1;const r=(c=n.ownerDocument.defaultView)!=null?c:window;return n instanceof r.HTMLElement}function xNn(n){return n!=null&&typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE}function SNn(n,r=[]){return U.exports.useEffect(()=>()=>n(),r)}var[ENn,hW]=Ec({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),cjt=n=>{const{children:r}=n,c=il("Menu",n),u=Fa(n),{direction:d}=Q7(),{descendants:p,...m}=gNn({...u,direction:d}),x=U.exports.useMemo(()=>m,[m]),{isOpen:E,onClose:k,forceUpdate:T}=x;return V(uNn,{value:p,children:V(hNn,{value:x,children:V(ENn,{value:c,children:nNn(r,{isOpen:E,onClose:k,forceUpdate:T})})})})};cjt.displayName="Menu";var kNn=kn((n,r)=>{const c=hW();return ut.createElement(Qt.button,{ref:r,...n,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...c.button}})}),ujt=kn((n,r)=>{const{children:c,as:u,...d}=n,p=bNn(d,r),m=u||kNn;return ut.createElement(m,{...p,className:M7("chakra-menu__menu-button",n.className)},ut.createElement(Qt.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},n.children))});ujt.displayName="MenuButton";var ljt=kn((n,r)=>{const c=hW();return ut.createElement(Qt.span,{ref:r,...n,__css:c.command,className:"chakra-menu__command"})});ljt.displayName="MenuCommand";var CNn=kn((n,r)=>{const{title:c,children:u,className:d,...p}=n,m=M7("chakra-menu__group__title",d),x=hW();return We("div",{ref:r,className:"chakra-menu__group",role:"group",children:[c&&ut.createElement(Qt.p,{className:m,...p,__css:x.groupTitle},c),u]})});CNn.displayName="MenuGroup";var qle=n=>{const{className:r,children:c,...u}=n,d=U.exports.Children.only(c),p=U.exports.isValidElement(d)?U.exports.cloneElement(d,{focusable:"false","aria-hidden":!0,className:M7("chakra-menu__icon",d.props.className)}):null,m=M7("chakra-menu__icon-wrapper",r);return ut.createElement(Qt.span,{className:m,...u,__css:{flexShrink:0}},p)};qle.displayName="MenuIcon";var fjt=kn((n,r)=>{const{type:c,...u}=n,d=hW(),p=u.as||c?c!=null?c:void 0:"button",m=U.exports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...d.item}),[d.item]);return ut.createElement(Qt.button,{ref:r,type:p,...u,__css:m})}),INn=n=>V("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...n,children:V("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),djt=kn((n,r)=>{const{icon:c,iconSpacing:u="0.75rem",...d}=n,p=yNn(d,r);return We(fjt,{...p,className:M7("chakra-menu__menuitem-option",d.className),children:[c!==null&&V(qle,{fontSize:"0.8em",marginEnd:u,opacity:n.isChecked?1:0,children:c||V(INn,{})}),V("span",{style:{flex:1},children:p.children})]})});djt.id="MenuItemOption";djt.displayName="MenuItemOption";var hjt=kn((n,r)=>{const{icon:c,iconSpacing:u="0.75rem",command:d,commandSpacing:p="0.75rem",children:m,...x}=n,E=ajt(x,r),T=c||d?V("span",{style:{pointerEvents:"none",flex:1},children:m}):m;return We(fjt,{...E,className:M7("chakra-menu__menuitem",E.className),children:[c&&V(qle,{fontSize:"0.8em",marginEnd:u,children:c}),T,d&&V(ljt,{marginStart:p,children:d})]})});hjt.displayName="MenuItem";var TNn={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},ANn=Qt(H1.div),pjt=kn(function(r,c){var O;var u;const{rootProps:d,motionProps:p,...m}=r,{isOpen:x,onTransitionEnd:E,unstable__animationState:k}=dW(),T=mNn(m,c),P=vNn(d),I=hW();return ut.createElement(Qt.div,{...P,__css:{zIndex:(O=r.zIndex)!=null?O:(u=I.list)==null?void 0:u.zIndex}},V(ANn,{variants:TNn,initial:!1,animate:x?"enter":"exit",__css:{outline:0,...I.list},...p,className:M7("chakra-menu__menu-list",T.className),...T,onUpdate:E,onAnimationComplete:oNn(k.onComplete,T.onAnimationComplete)}))});pjt.displayName="MenuList";var[PNn,ONn]=Ec({strict:!1,name:"PortalManagerContext"});function gjt(n){const{children:r,zIndex:c}=n;return V(PNn,{value:{zIndex:c},children:r})}gjt.displayName="PortalManager";var[bjt,_Nn]=Ec({strict:!1,name:"PortalContext"}),ZMe="chakra-portal",MNn=".chakra-portal",DNn=n=>V("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:n.zIndex,top:0,left:0,right:0},children:n.children}),NNn=n=>{const{appendToParentPortal:r,children:c}=n,[u,d]=U.exports.useState(null),p=U.exports.useRef(null),[,m]=U.exports.useState({});U.exports.useEffect(()=>m({}),[]);const x=_Nn(),E=ONn();Iw(()=>{if(!u)return;const T=u.ownerDocument,P=r&&x!=null?x:T.body;if(!P)return;p.current=T.createElement("div"),p.current.className=ZMe,P.appendChild(p.current),m({});const I=p.current;return()=>{P.contains(I)&&P.removeChild(I)}},[u]);const k=E!=null&&E.zIndex?V(DNn,{zIndex:E==null?void 0:E.zIndex,children:c}):c;return p.current?PS.exports.createPortal(V(bjt,{value:p.current,children:k}),p.current):V("span",{ref:T=>{T&&d(T)}})},jNn=n=>{const{children:r,containerRef:c,appendToParentPortal:u}=n,d=c.current,p=d!=null?d:typeof window<"u"?document.body:void 0,m=U.exports.useMemo(()=>{const E=d==null?void 0:d.ownerDocument.createElement("div");return E&&(E.className=ZMe),E},[d]),[,x]=U.exports.useState({});return Iw(()=>x({}),[]),Iw(()=>{if(!(!m||!p))return p.appendChild(m),()=>{p.removeChild(m)}},[m,p]),p&&m?PS.exports.createPortal(V(bjt,{value:u?m:null,children:r}),m):null};function s3(n){const{containerRef:r,...c}=n;return r?V(jNn,{containerRef:r,...c}):V(NNn,{...c})}s3.defaultProps={appendToParentPortal:!0};s3.className=ZMe;s3.selector=MNn;s3.displayName="Portal";var RNn=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},W_=new WeakMap,cse=new WeakMap,use={},U9e=0,mjt=function(n,r,c){r===void 0&&(r=RNn(n)),c===void 0&&(c="data-aria-hidden");var u=Array.isArray(n)?n:[n];use[c]||(use[c]=new WeakMap);var d=use[c],p=[],m=new Set,x=function(k){!k||m.has(k)||(m.add(k),x(k.parentNode))};u.forEach(x);var E=function(k){!k||u.indexOf(k)>=0||Array.prototype.forEach.call(k.children,function(T){if(m.has(T))E(T);else{var P=T.getAttribute("aria-hidden"),I=P!==null&&P!=="false",O=(W_.get(T)||0)+1,N=(d.get(T)||0)+1;W_.set(T,O),d.set(T,N),p.push(T),O===1&&I&&cse.set(T,!0),N===1&&T.setAttribute(c,"true"),I||T.setAttribute("aria-hidden","true")}})};return E(r),m.clear(),U9e++,function(){p.forEach(function(k){var T=W_.get(k)-1,P=d.get(k)-1;W_.set(k,T),d.set(k,P),T||(cse.has(k)||k.removeAttribute("aria-hidden"),cse.delete(k)),P||k.removeAttribute(c)}),U9e--,U9e||(W_=new WeakMap,W_=new WeakMap,cse=new WeakMap,use={})}};function $Nn(n,r){if(n==null)return{};var c={},u=Object.keys(n),d,p;for(p=0;p=0)&&(c[d]=n[d]);return c}var Dn={exports:{}},LNn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FNn=LNn,BNn=FNn;function vjt(){}function yjt(){}yjt.resetWarningCache=vjt;var zNn=function(){function n(u,d,p,m,x,E){if(E!==BNn){var k=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 k.name="Invariant Violation",k}}n.isRequired=n;function r(){return n}var c={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:yjt,resetWarningCache:vjt};return c.PropTypes=c,c};Dn.exports=zNn();var tPe="data-focus-lock",wjt="data-focus-lock-disabled",VNn="data-no-focus-lock",UNn="data-autofocus-inside",HNn="data-no-autofocus";function qNn(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function WNn(n,r){var c=U.exports.useState(function(){return{value:n,callback:r,facade:{get current(){return c.value},set current(u){var d=c.value;d!==u&&(c.value=u,c.callback(u,d))}}}})[0];return c.callback=r,c.facade}function JMe(n,r){return WNn(r||null,function(c){return n.forEach(function(u){return qNn(u,c)})})}var H9e={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var F1=function(){return F1=Object.assign||function(r){for(var c,u=1,d=arguments.length;u=0}).sort(sjn)},ajn=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],oDe=ajn.join(","),cjn="".concat(oDe,", [data-focus-guard]"),$jt=function(n,r){var c;return a3(((c=n.shadowRoot)===null||c===void 0?void 0:c.children)||n.children).reduce(function(u,d){return u.concat(d.matches(r?cjn:oDe)?[d]:[],$jt(d))},[])},sDe=function(n,r){return n.reduce(function(c,u){return c.concat($jt(u,r),u.parentNode?a3(u.parentNode.querySelectorAll(oDe)).filter(function(d){return d===u}):[])},[])},ujn=function(n){var r=n.querySelectorAll("[".concat(UNn,"]"));return a3(r).map(function(c){return sDe([c])}).reduce(function(c,u){return c.concat(u)},[])},aDe=function(n,r){return a3(n).filter(function(c){return _jt(r,c)}).filter(function(c){return rjn(c)})},r9t=function(n,r){return r===void 0&&(r=new Map),a3(n).filter(function(c){return Mjt(r,c)})},iPe=function(n,r,c){return Rjt(aDe(sDe(n,c),r),!0,c)},i9t=function(n,r){return Rjt(aDe(sDe(n),r),!1)},ljn=function(n,r){return aDe(ujn(n),r)},pq=function(n,r){return(n.shadowRoot?pq(n.shadowRoot,r):Object.getPrototypeOf(n).contains.call(n,r))||a3(n.children).some(function(c){return pq(c,r)})},fjn=function(n){for(var r=new Set,c=n.length,u=0;u0&&r.add(d),(p&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(u)}return n.filter(function(m,x){return!r.has(x)})},Ljt=function(n){return n.parentNode?Ljt(n.parentNode):n},cDe=function(n){var r=rPe(n);return r.filter(Boolean).reduce(function(c,u){var d=u.getAttribute(tPe);return c.push.apply(c,d?fjn(a3(Ljt(u).querySelectorAll("[".concat(tPe,'="').concat(d,'"]:not([').concat(wjt,'="disabled"])')))):[u]),c},[])},Fjt=function(n){return n.activeElement?n.activeElement.shadowRoot?Fjt(n.activeElement.shadowRoot):n.activeElement:void 0},uDe=function(){return document.activeElement?document.activeElement.shadowRoot?Fjt(document.activeElement.shadowRoot):document.activeElement:void 0},djn=function(n){return n===document.activeElement},hjn=function(n){return Boolean(a3(n.querySelectorAll("iframe")).some(function(r){return djn(r)}))},Bjt=function(n){var r=document&&uDe();return!r||r.dataset&&r.dataset.focusGuard?!1:cDe(n).some(function(c){return pq(c,r)||hjn(c)})},pjn=function(){var n=document&&uDe();return n?a3(document.querySelectorAll("[".concat(VNn,"]"))).some(function(r){return pq(r,n)}):!1},gjn=function(n,r){return r.filter(jjt).filter(function(c){return c.name===n.name}).filter(function(c){return c.checked})[0]||n},lDe=function(n,r){return jjt(n)&&n.name?gjn(n,r):n},bjn=function(n){var r=new Set;return n.forEach(function(c){return r.add(lDe(c,n))}),n.filter(function(c){return r.has(c)})},o9t=function(n){return n[0]&&n.length>1?lDe(n[0],n):n[0]},s9t=function(n,r){return n.length>1?n.indexOf(lDe(n[r],n)):r},zjt="NEW_FOCUS",mjn=function(n,r,c,u){var d=n.length,p=n[0],m=n[d-1],x=iDe(c);if(!(c&&n.indexOf(c)>=0)){var E=c!==void 0?r.indexOf(c):-1,k=u?r.indexOf(u):E,T=u?n.indexOf(u):-1,P=E-k,I=r.indexOf(p),O=r.indexOf(m),N=bjn(r),j=c!==void 0?N.indexOf(c):-1,L=j-(u?N.indexOf(u):E),$=s9t(n,0),F=s9t(n,d-1);if(E===-1||T===-1)return zjt;if(!P&&T>=0)return T;if(E<=I&&x&&Math.abs(P)>1)return F;if(E>=O&&x&&Math.abs(P)>1)return $;if(P&&Math.abs(L)>1)return T;if(E<=I)return F;if(E>O)return $;if(P)return Math.abs(P)>1?T:(d+T+P)%d}},oPe=function(n,r){return r===void 0&&(r=[]),r.push(n),n.parentNode&&oPe(n.parentNode.host||n.parentNode,r),r},q9e=function(n,r){for(var c=oPe(n),u=oPe(r),d=0;d=0)return p}return!1},Vjt=function(n,r,c){var u=rPe(n),d=rPe(r),p=u[0],m=!1;return d.filter(Boolean).forEach(function(x){m=q9e(m||x,x)||m,c.filter(Boolean).forEach(function(E){var k=q9e(p,E);k&&(!m||pq(k,m)?m=k:m=q9e(k,m))})}),m},vjn=function(n,r){return n.reduce(function(c,u){return c.concat(ljn(u,r))},[])},yjn=function(n){return function(r){var c;return r.autofocus||!!(!((c=Djt(r))===null||c===void 0)&&c.autofocus)||n.indexOf(r)>=0}},wjn=function(n,r){var c=new Map;return r.forEach(function(u){return c.set(u.node,u)}),n.map(function(u){return c.get(u)}).filter(ojn)},xjn=function(n,r){var c=document&&uDe(),u=cDe(n).filter(Oce),d=Vjt(c||n,n,u),p=new Map,m=i9t(u,p),x=iPe(u,p).filter(function(O){var N=O.node;return Oce(N)});if(!(!x[0]&&(x=m,!x[0]))){var E=i9t([d],p).map(function(O){var N=O.node;return N}),k=wjn(E,x),T=k.map(function(O){var N=O.node;return N}),P=mjn(T,E,c,r);if(P===zjt){var I=r9t(m.map(function(O){var N=O.node;return N})).filter(yjn(vjn(u,p)));return{node:I&&I.length?o9t(I):o9t(r9t(T))}}return P===void 0?P:k[P]}},Sjn=function(n){var r=cDe(n).filter(Oce),c=Vjt(n,n,r),u=new Map,d=iPe([c],u,!0),p=iPe(r,u).filter(function(m){var x=m.node;return Oce(x)}).map(function(m){var x=m.node;return x});return d.map(function(m){var x=m.node,E=m.index;return{node:x,index:E,lockItem:p.indexOf(x)>=0,guard:iDe(x)}})},Ejn=function(n,r){"focus"in n&&n.focus(r),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus()},W9e=0,G9e=!1,kjn=function(n,r,c){c===void 0&&(c={});var u=xjn(n,r);if(!G9e&&u){if(W9e>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),G9e=!0,setTimeout(function(){G9e=!1},1);return}W9e++,Ejn(u.node,c.focusOptions),W9e--}};const Ujt=kjn;function Hjt(n){var r=window,c=r.setImmediate;typeof c<"u"?c(n):setTimeout(n,1)}var Cjn=function(){return document&&document.activeElement===document.body},Ijn=function(){return Cjn()||pjn()},eD=null,DM=null,tD=null,gq=!1,Tjn=function(){return!0},Ajn=function(r){return(eD.whiteList||Tjn)(r)},Pjn=function(r,c){tD={observerNode:r,portaledElement:c}},Ojn=function(r){return tD&&tD.portaledElement===r};function a9t(n,r,c,u){var d=null,p=n;do{var m=u[p];if(m.guard)m.node.dataset.focusAutoGuard&&(d=m);else if(m.lockItem){if(p!==n)return;d=null}else break}while((p+=c)!==r);d&&(d.node.tabIndex=0)}var _jn=function(r){return r&&"current"in r?r.current:r},Mjn=function(r){return r?Boolean(gq):gq==="meanwhile"},Djn=function n(r,c,u){return c&&(c.host===r&&(!c.activeElement||u.contains(c.activeElement))||c.parentNode&&n(r,c.parentNode,u))},Njn=function(r,c){return c.some(function(u){return Djn(r,u,u)})},_ce=function(){var r=!1;if(eD){var c=eD,u=c.observed,d=c.persistentFocus,p=c.autoFocus,m=c.shards,x=c.crossFrame,E=c.focusOptions,k=u||tD&&tD.portaledElement,T=document&&document.activeElement;if(k){var P=[k].concat(m.map(_jn).filter(Boolean));if((!T||Ajn(T))&&(d||Mjn(x)||!Ijn()||!DM&&p)&&(k&&!(Bjt(P)||T&&Njn(T,P)||Ojn(T))&&(document&&!DM&&T&&!p?(T.blur&&T.blur(),document.body.focus()):(r=Ujt(P,DM,{focusOptions:E}),tD={})),gq=!1,DM=document&&document.activeElement),document){var I=document&&document.activeElement,O=Sjn(P),N=O.map(function(j){var L=j.node;return L}).indexOf(I);N>-1&&(O.filter(function(j){var L=j.guard,$=j.node;return L&&$.dataset.focusAutoGuard}).forEach(function(j){var L=j.node;return L.removeAttribute("tabIndex")}),a9t(N,O.length,1,O),a9t(N,-1,-1,O))}}}return r},qjt=function(r){_ce()&&r&&(r.stopPropagation(),r.preventDefault())},fDe=function(){return Hjt(_ce)},jjn=function(r){var c=r.target,u=r.currentTarget;u.contains(c)||Pjn(u,c)},Rjn=function(){return null},Wjt=function(){gq="just",setTimeout(function(){gq="meanwhile"},0)},$jn=function(){document.addEventListener("focusin",qjt),document.addEventListener("focusout",fDe),window.addEventListener("blur",Wjt)},Ljn=function(){document.removeEventListener("focusin",qjt),document.removeEventListener("focusout",fDe),window.removeEventListener("blur",Wjt)};function Fjn(n){return n.filter(function(r){var c=r.disabled;return!c})}function Bjn(n){var r=n.slice(-1)[0];r&&!eD&&$jn();var c=eD,u=c&&r&&r.id===c.id;eD=r,c&&!u&&(c.onDeactivation(),n.filter(function(d){var p=d.id;return p===c.id}).length||c.returnFocus(!r)),r?(DM=null,(!u||c.observed!==r.observed)&&r.onActivation(),_ce(),Hjt(_ce)):(Ljn(),DM=null)}Ijt.assignSyncMedium(jjn);Tjt.assignMedium(fDe);GNn.assignMedium(function(n){return n({moveFocusInside:Ujt,focusInside:Bjt})});const zjn=ZNn(Fjn,Bjn)(Rjn);var Gjt=U.exports.forwardRef(function(r,c){return V(Ajt,{sideCar:zjn,ref:c,...r})}),Xjt=Ajt.propTypes||{};Xjt.sideCar;$Nn(Xjt,["sideCar"]);Gjt.propTypes={};const Vjn=Gjt;var Kjt=n=>{const{initialFocusRef:r,finalFocusRef:c,contentRef:u,restoreFocus:d,children:p,isDisabled:m,autoFocus:x,persistentFocus:E,lockFocusAcrossFrames:k}=n,T=U.exports.useCallback(()=>{r!=null&&r.current?r.current.focus():u!=null&&u.current&&GNt(u.current).length===0&&requestAnimationFrame(()=>{var N;(N=u.current)==null||N.focus()})},[r,u]),P=U.exports.useCallback(()=>{var O;(O=c==null?void 0:c.current)==null||O.focus()},[c]);return V(Vjn,{crossFrame:k,persistentFocus:E,autoFocus:x,disabled:m,onActivation:T,onDeactivation:P,returnFocus:d&&!c,children:p})};Kjt.displayName="FocusLock";var pH="right-scroll-bar-position",gH="width-before-scroll-bar",Ujn="with-scroll-bars-hidden",Hjn="--removed-body-scroll-bar-size",Yjt=nDe(),X9e=function(){},Wle=U.exports.forwardRef(function(n,r){var c=U.exports.useRef(null),u=U.exports.useState({onScrollCapture:X9e,onWheelCapture:X9e,onTouchMoveCapture:X9e}),d=u[0],p=u[1],m=n.forwardProps,x=n.children,E=n.className,k=n.removeScrollBar,T=n.enabled,P=n.shards,I=n.sideCar,O=n.noIsolation,N=n.inert,j=n.allowPinchZoom,L=n.as,$=L===void 0?"div":L,F=eDe(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),B=I,X=JMe([c,r]),ne=F1(F1({},F),d);return We(Si,{children:[T&&V(B,{sideCar:Yjt,removeScrollBar:k,shards:P,noIsolation:O,inert:N,setCallbacks:p,allowPinchZoom:!!j,lockRef:c}),m?U.exports.cloneElement(U.exports.Children.only(x),F1(F1({},ne),{ref:X})):V($,{...F1({},ne,{className:E,ref:X}),children:x})]})});Wle.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wle.classNames={fullWidth:gH,zeroRight:pH};var qjn=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wjn(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=qjn();return r&&n.setAttribute("nonce",r),n}function Gjn(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function Xjn(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Kjn=function(){var n=0,r=null;return{add:function(c){n==0&&(r=Wjn())&&(Gjn(r,c),Xjn(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Yjn=function(){var n=Kjn();return function(r,c){U.exports.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&c])}},dDe=function(){var n=Yjn(),r=function(c){var u=c.styles,d=c.dynamic;return n(u,d),null};return r},Qjn={left:0,top:0,right:0,gap:0},K9e=function(n){return parseInt(n||"",10)||0},Zjn=function(n){var r=window.getComputedStyle(document.body),c=r[n==="padding"?"paddingLeft":"marginLeft"],u=r[n==="padding"?"paddingTop":"marginTop"],d=r[n==="padding"?"paddingRight":"marginRight"];return[K9e(c),K9e(u),K9e(d)]},Jjn=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Qjn;var r=Zjn(n),c=document.documentElement.clientWidth,u=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,u-c+r[2]-r[0])}},eRn=dDe(),tRn=function(n,r,c,u){var d=n.left,p=n.top,m=n.right,x=n.gap;return c===void 0&&(c="margin"),` - .`.concat(Ujn,` { - overflow: hidden `).concat(u,`; - padding-right: `).concat(x,"px ").concat(u,`; - } - body { - overflow: hidden `).concat(u,`; - overscroll-behavior: contain; - `).concat([r&&"position: relative ".concat(u,";"),c==="margin"&&` - padding-left: `.concat(d,`px; - padding-top: `).concat(p,`px; - padding-right: `).concat(m,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(x,"px ").concat(u,`; - `),c==="padding"&&"padding-right: ".concat(x,"px ").concat(u,";")].filter(Boolean).join(""),` - } - - .`).concat(pH,` { - right: `).concat(x,"px ").concat(u,`; - } - - .`).concat(gH,` { - margin-right: `).concat(x,"px ").concat(u,`; - } - - .`).concat(pH," .").concat(pH,` { - right: 0 `).concat(u,`; - } - - .`).concat(gH," .").concat(gH,` { - margin-right: 0 `).concat(u,`; - } - - body { - `).concat(Hjn,": ").concat(x,`px; - } -`)},Qjt=function(n){var r=n.noRelative,c=n.noImportant,u=n.gapMode,d=u===void 0?"margin":u,p=U.exports.useMemo(function(){return Jjn(d)},[d]);return V(eRn,{styles:tRn(p,!r,d,c?"":"!important")})},sPe=!1;if(typeof window<"u")try{var lse=Object.defineProperty({},"passive",{get:function(){return sPe=!0,!0}});window.addEventListener("test",lse,lse),window.removeEventListener("test",lse,lse)}catch{sPe=!1}var G_=sPe?{passive:!1}:!1,nRn=function(n){return n.tagName==="TEXTAREA"},Zjt=function(n,r){var c=window.getComputedStyle(n);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!nRn(n)&&c[r]==="visible")},rRn=function(n){return Zjt(n,"overflowY")},iRn=function(n){return Zjt(n,"overflowX")},c9t=function(n,r){var c=r;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var u=Jjt(n,c);if(u){var d=eRt(n,c),p=d[1],m=d[2];if(p>m)return!0}c=c.parentNode}while(c&&c!==document.body);return!1},oRn=function(n){var r=n.scrollTop,c=n.scrollHeight,u=n.clientHeight;return[r,c,u]},sRn=function(n){var r=n.scrollLeft,c=n.scrollWidth,u=n.clientWidth;return[r,c,u]},Jjt=function(n,r){return n==="v"?rRn(r):iRn(r)},eRt=function(n,r){return n==="v"?oRn(r):sRn(r)},aRn=function(n,r){return n==="h"&&r==="rtl"?-1:1},cRn=function(n,r,c,u,d){var p=aRn(n,window.getComputedStyle(r).direction),m=p*u,x=c.target,E=r.contains(x),k=!1,T=m>0,P=0,I=0;do{var O=eRt(n,x),N=O[0],j=O[1],L=O[2],$=j-L-p*N;(N||$)&&Jjt(n,x)&&(P+=$,I+=N),x=x.parentNode}while(!E&&x!==document.body||E&&(r.contains(x)||r===x));return(T&&(d&&P===0||!d&&m>P)||!T&&(d&&I===0||!d&&-m>I))&&(k=!0),k},fse=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},u9t=function(n){return[n.deltaX,n.deltaY]},l9t=function(n){return n&&"current"in n?n.current:n},uRn=function(n,r){return n[0]===r[0]&&n[1]===r[1]},lRn=function(n){return` - .block-interactivity-`.concat(n,` {pointer-events: none;} - .allow-interactivity-`).concat(n,` {pointer-events: all;} -`)},fRn=0,X_=[];function dRn(n){var r=U.exports.useRef([]),c=U.exports.useRef([0,0]),u=U.exports.useRef(),d=U.exports.useState(fRn++)[0],p=U.exports.useState(function(){return dDe()})[0],m=U.exports.useRef(n);U.exports.useEffect(function(){m.current=n},[n]),U.exports.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var j=xjt([n.lockRef.current],(n.shards||[]).map(l9t),!0).filter(Boolean);return j.forEach(function(L){return L.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),j.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var x=U.exports.useCallback(function(j,L){if("touches"in j&&j.touches.length===2)return!m.current.allowPinchZoom;var $=fse(j),F=c.current,B="deltaX"in j?j.deltaX:F[0]-$[0],X="deltaY"in j?j.deltaY:F[1]-$[1],ne,Z=j.target,H=Math.abs(B)>Math.abs(X)?"h":"v";if("touches"in j&&H==="h"&&Z.type==="range")return!1;var ce=c9t(H,Z);if(!ce)return!0;if(ce?ne=H:(ne=H==="v"?"h":"v",ce=c9t(H,Z)),!ce)return!1;if(!u.current&&"changedTouches"in j&&(B||X)&&(u.current=ne),!ne)return!0;var pe=u.current||ne;return cRn(pe,L,j,pe==="h"?B:X,!0)},[]),E=U.exports.useCallback(function(j){var L=j;if(!(!X_.length||X_[X_.length-1]!==p)){var $="deltaY"in L?u9t(L):fse(L),F=r.current.filter(function(ne){return ne.name===L.type&&ne.target===L.target&&uRn(ne.delta,$)})[0];if(F&&F.should){L.cancelable&&L.preventDefault();return}if(!F){var B=(m.current.shards||[]).map(l9t).filter(Boolean).filter(function(ne){return ne.contains(L.target)}),X=B.length>0?x(L,B[0]):!m.current.noIsolation;X&&L.cancelable&&L.preventDefault()}}},[]),k=U.exports.useCallback(function(j,L,$,F){var B={name:j,delta:L,target:$,should:F};r.current.push(B),setTimeout(function(){r.current=r.current.filter(function(X){return X!==B})},1)},[]),T=U.exports.useCallback(function(j){c.current=fse(j),u.current=void 0},[]),P=U.exports.useCallback(function(j){k(j.type,u9t(j),j.target,x(j,n.lockRef.current))},[]),I=U.exports.useCallback(function(j){k(j.type,fse(j),j.target,x(j,n.lockRef.current))},[]);U.exports.useEffect(function(){return X_.push(p),n.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:I}),document.addEventListener("wheel",E,G_),document.addEventListener("touchmove",E,G_),document.addEventListener("touchstart",T,G_),function(){X_=X_.filter(function(j){return j!==p}),document.removeEventListener("wheel",E,G_),document.removeEventListener("touchmove",E,G_),document.removeEventListener("touchstart",T,G_)}},[]);var O=n.removeScrollBar,N=n.inert;return We(Si,{children:[N?V(p,{styles:lRn(d)}):null,O?V(Qjt,{gapMode:"margin"}):null]})}const hRn=Cjt(Yjt,dRn);var tRt=U.exports.forwardRef(function(n,r){return V(Wle,{...F1({},n,{ref:r,sideCar:hRn})})});tRt.classNames=Wle.classNames;const pRn=tRt;var eT=(...n)=>n.filter(Boolean).join(" ");function PU(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var gRn=class{constructor(){Yu(this,"modals");this.modals=[]}add(n){this.modals.push(n)}remove(n){this.modals=this.modals.filter(r=>r!==n)}isTopModal(n){return this.modals[this.modals.length-1]===n}},aPe=new gRn;function bRn(n,r){U.exports.useEffect(()=>(r&&aPe.add(n),()=>{aPe.remove(n)}),[r,n])}function mRn(n){const{isOpen:r,onClose:c,id:u,closeOnOverlayClick:d=!0,closeOnEsc:p=!0,useInert:m=!0,onOverlayClick:x,onEsc:E}=n,k=U.exports.useRef(null),T=U.exports.useRef(null),[P,I,O]=yRn(u,"chakra-modal","chakra-modal--header","chakra-modal--body");vRn(k,r&&m),bRn(k,r);const N=U.exports.useRef(null),j=U.exports.useCallback(ce=>{N.current=ce.target},[]),L=U.exports.useCallback(ce=>{ce.key==="Escape"&&(ce.stopPropagation(),p&&(c==null||c()),E==null||E())},[p,c,E]),[$,F]=U.exports.useState(!1),[B,X]=U.exports.useState(!1),ne=U.exports.useCallback((ce={},pe=null)=>({role:"dialog",...ce,ref:_u(pe,k),id:P,tabIndex:-1,"aria-modal":!0,"aria-labelledby":$?I:void 0,"aria-describedby":B?O:void 0,onClick:PU(ce.onClick,le=>le.stopPropagation())}),[O,B,P,I,$]),Z=U.exports.useCallback(ce=>{ce.stopPropagation(),N.current===ce.target&&(!aPe.isTopModal(k)||(d&&(c==null||c()),x==null||x()))},[c,d,x]),H=U.exports.useCallback((ce={},pe=null)=>({...ce,ref:_u(pe,T),onClick:PU(ce.onClick,Z),onKeyDown:PU(ce.onKeyDown,L),onMouseDown:PU(ce.onMouseDown,j)}),[L,j,Z]);return{isOpen:r,onClose:c,headerId:I,bodyId:O,setBodyMounted:X,setHeaderMounted:F,dialogRef:k,overlayRef:T,getDialogProps:ne,getDialogContainerProps:H}}function vRn(n,r){const c=n.current;U.exports.useEffect(()=>{if(!(!n.current||!r))return mjt(n.current)},[r,n,c])}function yRn(n,...r){const c=U.exports.useId(),u=n||c;return U.exports.useMemo(()=>r.map(d=>`${d}-${u}`),[u,r])}var[wRn,tT]=Ec({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[xRn,wk]=Ec({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),hDe=n=>{const{portalProps:r,children:c,autoFocus:u,trapFocus:d,initialFocusRef:p,finalFocusRef:m,returnFocusOnClose:x,blockScrollOnMount:E,allowPinchZoom:k,preserveScrollBarGap:T,motionPreset:P,lockFocusAcrossFrames:I,onCloseComplete:O}=n,N=il("Modal",n),L={...mRn(n),autoFocus:u,trapFocus:d,initialFocusRef:p,finalFocusRef:m,returnFocusOnClose:x,blockScrollOnMount:E,allowPinchZoom:k,preserveScrollBarGap:T,motionPreset:P,lockFocusAcrossFrames:I};return V(xRn,{value:L,children:V(wRn,{value:N,children:V(_S,{onExitComplete:O,children:L.isOpen&&V(s3,{...r,children:c})})})})};hDe.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};hDe.displayName="Modal";var nRt=kn((n,r)=>{const{className:c,...u}=n,{bodyId:d,setBodyMounted:p}=wk();U.exports.useEffect(()=>(p(!0),()=>p(!1)),[p]);const m=eT("chakra-modal__body",c),x=tT();return ut.createElement(Qt.div,{ref:r,className:m,id:d,...u,__css:x.body})});nRt.displayName="ModalBody";var rRt=kn((n,r)=>{const{onClick:c,className:u,...d}=n,{onClose:p}=wk(),m=eT("chakra-modal__close-btn",u),x=tT();return V(uW,{ref:r,__css:x.closeButton,className:m,onClick:PU(c,E=>{E.stopPropagation(),p()}),...d})});rRt.displayName="ModalCloseButton";function iRt(n){const{autoFocus:r,trapFocus:c,dialogRef:u,initialFocusRef:d,blockScrollOnMount:p,allowPinchZoom:m,finalFocusRef:x,returnFocusOnClose:E,preserveScrollBarGap:k,lockFocusAcrossFrames:T}=wk(),[P,I]=bMe();return U.exports.useEffect(()=>{!P&&I&&setTimeout(I)},[P,I]),V(Kjt,{autoFocus:r,isDisabled:!c,initialFocusRef:d,finalFocusRef:x,restoreFocus:E,contentRef:u,lockFocusAcrossFrames:T,children:V(pRn,{removeScrollBar:!k,allowPinchZoom:m,enabled:p,forwardProps:!0,children:n.children})})}var SRn={slideInBottom:{...WAe,custom:{offsetY:16,reverse:!0}},slideInRight:{...WAe,custom:{offsetX:16,reverse:!0}},scale:{...cNt,custom:{initialScale:.95,reverse:!0}},none:{}},ERn=Qt(H1.section),kRn=n=>SRn[n||"none"],oRt=U.exports.forwardRef((n,r)=>{const{preset:c,motionProps:u=kRn(c),...d}=n;return V(ERn,{ref:r,...u,...d})});oRt.displayName="ModalTransition";var pDe=kn((n,r)=>{const{className:c,children:u,containerProps:d,motionProps:p,...m}=n,{getDialogProps:x,getDialogContainerProps:E}=wk(),k=x(m,r),T=E(d),P=eT("chakra-modal__content",c),I=tT(),O={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...I.dialog},N={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...I.dialogContainer},{motionPreset:j}=wk();return ut.createElement(iRt,null,ut.createElement(Qt.div,{...T,className:"chakra-modal__content-container",tabIndex:-1,__css:N},V(oRt,{preset:j,motionProps:p,className:P,...k,__css:O,children:u})))});pDe.displayName="ModalContent";var CRn=kn((n,r)=>{const{className:c,...u}=n,d=eT("chakra-modal__footer",c),p=tT(),m={display:"flex",alignItems:"center",justifyContent:"flex-end",...p.footer};return ut.createElement(Qt.footer,{ref:r,...u,__css:m,className:d})});CRn.displayName="ModalFooter";var sRt=kn((n,r)=>{const{className:c,...u}=n,{headerId:d,setHeaderMounted:p}=wk();U.exports.useEffect(()=>(p(!0),()=>p(!1)),[p]);const m=eT("chakra-modal__header",c),x=tT(),E={flex:0,...x.header};return ut.createElement(Qt.header,{ref:r,className:m,id:d,...u,__css:E})});sRt.displayName="ModalHeader";var IRn=Qt(H1.div),aRt=kn((n,r)=>{const{className:c,transition:u,motionProps:d,...p}=n,m=eT("chakra-modal__overlay",c),x=tT(),E={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...x.overlay},{motionPreset:k}=wk();return V(IRn,{...d||(k==="none"?{}:sNt),__css:E,ref:r,className:m,...p})});aRt.displayName="ModalOverlay";kn((n,r)=>V(pDe,{ref:r,role:"alertdialog",...n}));var[mur,TRn]=Ec(),ARn=Qt(uNt),PRn=kn((n,r)=>{const{className:c,children:u,motionProps:d,containerProps:p,...m}=n,{getDialogProps:x,getDialogContainerProps:E,isOpen:k}=wk(),T=x(m,r),P=E(p),I=eT("chakra-modal__content",c),O=tT(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...O.dialog},j={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...O.dialogContainer},{placement:L}=TRn();return ut.createElement(iRt,null,ut.createElement(Qt.div,{...P,className:"chakra-modal__content-container",__css:j},V(ARn,{motionProps:d,direction:L,in:k,className:I,...T,__css:N,children:u})))});PRn.displayName="DrawerContent";function ORn(n,r){const c=mh(n);U.exports.useEffect(()=>{let u=null;const d=()=>c();return r!==null&&(u=window.setInterval(d,r)),()=>{u&&window.clearInterval(u)}},[r,c])}var cRt=(...n)=>n.filter(Boolean).join(" "),Y9e=n=>n?!0:void 0;function yx(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var _Rn=n=>V(Ao,{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),MRn=n=>V(Ao,{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function f9t(n,r,c,u){U.exports.useEffect(()=>{var x;if(!n.current||!u)return;const d=(x=n.current.ownerDocument.defaultView)!=null?x:window,p=Array.isArray(r)?r:[r],m=new d.MutationObserver(E=>{for(const k of E)k.type==="attributes"&&k.attributeName&&p.includes(k.attributeName)&&c(k)});return m.observe(n.current,{attributes:!0,attributeFilter:p}),()=>m.disconnect()})}var DRn=50,d9t=300;function NRn(n,r){const[c,u]=U.exports.useState(!1),[d,p]=U.exports.useState(null),[m,x]=U.exports.useState(!0),E=U.exports.useRef(null),k=()=>clearTimeout(E.current);ORn(()=>{d==="increment"&&n(),d==="decrement"&&r()},c?DRn:null);const T=U.exports.useCallback(()=>{m&&n(),E.current=setTimeout(()=>{x(!1),u(!0),p("increment")},d9t)},[n,m]),P=U.exports.useCallback(()=>{m&&r(),E.current=setTimeout(()=>{x(!1),u(!0),p("decrement")},d9t)},[r,m]),I=U.exports.useCallback(()=>{x(!0),u(!1),k()},[]);return U.exports.useEffect(()=>()=>k(),[]),{up:T,down:P,stop:I,isSpinning:c}}var jRn=/^[Ee0-9+\-.]$/;function RRn(n){return jRn.test(n)}function $Rn(n,r){if(n.key==null)return!0;const c=n.ctrlKey||n.altKey||n.metaKey;return!(n.key.length===1)||c?!0:r(n.key)}function uRt(n={}){const{focusInputOnChange:r=!0,clampValueOnBlur:c=!0,keepWithinRange:u=!0,min:d=Number.MIN_SAFE_INTEGER,max:p=Number.MAX_SAFE_INTEGER,step:m=1,isReadOnly:x,isDisabled:E,isRequired:k,isInvalid:T,pattern:P="[0-9]*(.[0-9]+)?",inputMode:I="decimal",allowMouseWheel:O,id:N,onChange:j,precision:L,name:$,"aria-describedby":F,"aria-label":B,"aria-labelledby":X,onFocus:ne,onBlur:Z,onInvalid:H,getAriaValueText:ce,isValidCharacter:pe,format:le,parse:ye,...Ge}=n,qe=mh(ne),et=mh(Z),tt=mh(H),jt=mh(pe!=null?pe:RRn),Me=mh(ce),ze=T_n(n),{update:we,increment:De,decrement:be}=ze,[Se,Jt]=U.exports.useState(!1),sn=!(x||E),Tn=U.exports.useRef(null),qn=U.exports.useRef(null),rr=U.exports.useRef(null),Zn=U.exports.useRef(null),Gr=U.exports.useCallback(K=>K.split("").filter(jt).join(""),[jt]),Je=U.exports.useCallback(K=>{var ie;return(ie=ye==null?void 0:ye(K))!=null?ie:K},[ye]),ct=U.exports.useCallback(K=>{var ie;return((ie=le==null?void 0:le(K))!=null?ie:K).toString()},[le]);mk(()=>{(ze.valueAsNumber>p||ze.valueAsNumber{if(!Tn.current)return;if(Tn.current.value!=ze.value){const ie=Je(Tn.current.value);ze.setValue(Gr(ie))}},[Je,Gr]);const rn=U.exports.useCallback((K=m)=>{sn&&De(K)},[De,sn,m]),Ne=U.exports.useCallback((K=m)=>{sn&&be(K)},[be,sn,m]),ae=NRn(rn,Ne);f9t(rr,"disabled",ae.stop,ae.isSpinning),f9t(Zn,"disabled",ae.stop,ae.isSpinning);const me=U.exports.useCallback(K=>{if(K.nativeEvent.isComposing)return;const ke=Je(K.currentTarget.value);we(Gr(ke)),qn.current={start:K.currentTarget.selectionStart,end:K.currentTarget.selectionEnd}},[we,Gr,Je]),Te=U.exports.useCallback(K=>{var ke,nt;var ie;qe==null||qe(K),qn.current&&(K.target.selectionStart=(ke=qn.current.start)!=null?ke:(ie=K.currentTarget.value)==null?void 0:ie.length,K.currentTarget.selectionEnd=(nt=qn.current.end)!=null?nt:K.currentTarget.selectionStart)},[qe]),Xe=U.exports.useCallback(K=>{if(K.nativeEvent.isComposing)return;$Rn(K,jt)||K.preventDefault();const ie=dt(K)*m,ke=K.key,Nt={ArrowUp:()=>rn(ie),ArrowDown:()=>Ne(ie),Home:()=>we(d),End:()=>we(p)}[ke];Nt&&(K.preventDefault(),Nt(K))},[jt,m,rn,Ne,we,d,p]),dt=K=>{let ie=1;return(K.metaKey||K.ctrlKey)&&(ie=.1),K.shiftKey&&(ie=10),ie},Sn=U.exports.useMemo(()=>{const K=Me==null?void 0:Me(ze.value);if(K!=null)return K;const ie=ze.value.toString();return ie||void 0},[ze.value,Me]),gn=U.exports.useCallback(()=>{let K=ze.value;if(ze.value==="")return;/^[eE]/.test(ze.value.toString())?ze.setValue(""):(ze.valueAsNumberp&&(K=p),ze.cast(K))},[ze,p,d]),yr=U.exports.useCallback(()=>{Jt(!1),c&&gn()},[c,Jt,gn]),Sr=U.exports.useCallback(()=>{r&&requestAnimationFrame(()=>{var K;(K=Tn.current)==null||K.focus()})},[r]),Ur=U.exports.useCallback(K=>{K.preventDefault(),ae.up(),Sr()},[Sr,ae]),jr=U.exports.useCallback(K=>{K.preventDefault(),ae.down(),Sr()},[Sr,ae]);y7(()=>Tn.current,"wheel",K=>{var Hr;var ie;const nt=((Hr=(ie=Tn.current)==null?void 0:ie.ownerDocument)!=null?Hr:document).activeElement===Tn.current;if(!O||!nt)return;K.preventDefault();const Nt=dt(K)*m,cn=Math.sign(K.deltaY);cn===-1?rn(Nt):cn===1&&Ne(Nt)},{passive:!1});const ki=U.exports.useCallback((K={},ie=null)=>{const ke=E||u&&ze.isAtMax;return{...K,ref:_u(ie,rr),role:"button",tabIndex:-1,onPointerDown:yx(K.onPointerDown,nt=>{nt.button!==0||ke||Ur(nt)}),onPointerLeave:yx(K.onPointerLeave,ae.stop),onPointerUp:yx(K.onPointerUp,ae.stop),disabled:ke,"aria-disabled":Y9e(ke)}},[ze.isAtMax,u,Ur,ae.stop,E]),Zc=U.exports.useCallback((K={},ie=null)=>{const ke=E||u&&ze.isAtMin;return{...K,ref:_u(ie,Zn),role:"button",tabIndex:-1,onPointerDown:yx(K.onPointerDown,nt=>{nt.button!==0||ke||jr(nt)}),onPointerLeave:yx(K.onPointerLeave,ae.stop),onPointerUp:yx(K.onPointerUp,ae.stop),disabled:ke,"aria-disabled":Y9e(ke)}},[ze.isAtMin,u,jr,ae.stop,E]),Ee=U.exports.useCallback((K={},ie=null)=>{var ke,nt,Nt,cn;return{name:$,inputMode:I,type:"text",pattern:P,"aria-labelledby":X,"aria-label":B,"aria-describedby":F,id:N,disabled:E,...K,readOnly:(ke=K.readOnly)!=null?ke:x,"aria-readonly":(nt=K.readOnly)!=null?nt:x,"aria-required":(Nt=K.required)!=null?Nt:k,required:(cn=K.required)!=null?cn:k,ref:_u(Tn,ie),value:ct(ze.value),role:"spinbutton","aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Number.isNaN(ze.valueAsNumber)?void 0:ze.valueAsNumber,"aria-invalid":Y9e(T!=null?T:ze.isOutOfRange),"aria-valuetext":Sn,autoComplete:"off",autoCorrect:"off",onChange:yx(K.onChange,me),onKeyDown:yx(K.onKeyDown,Xe),onFocus:yx(K.onFocus,Te,()=>Jt(!0)),onBlur:yx(K.onBlur,et,yr)}},[$,I,P,X,B,ct,F,N,E,k,x,T,ze.value,ze.valueAsNumber,ze.isOutOfRange,d,p,Sn,me,Xe,Te,et,yr]);return{value:ct(ze.value),valueAsNumber:ze.valueAsNumber,isFocused:Se,isDisabled:E,isReadOnly:x,getIncrementButtonProps:ki,getDecrementButtonProps:Zc,getInputProps:Ee,htmlProps:Ge}}var[LRn,Gle]=Ec({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[FRn,gDe]=Ec({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),lRt=kn(function(r,c){const u=il("NumberInput",r),d=Fa(r),p=DMe(d),{htmlProps:m,...x}=uRt(p),E=U.exports.useMemo(()=>x,[x]);return ut.createElement(FRn,{value:E},ut.createElement(LRn,{value:u},ut.createElement(Qt.div,{...m,ref:c,className:cRt("chakra-numberinput",r.className),__css:{position:"relative",zIndex:0,...u.root}})))});lRt.displayName="NumberInput";var fRt=kn(function(r,c){const u=Gle();return ut.createElement(Qt.div,{"aria-hidden":!0,ref:c,...r,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...u.stepperGroup}})});fRt.displayName="NumberInputStepper";var dRt=kn(function(r,c){const{getInputProps:u}=gDe(),d=u(r,c),p=Gle();return ut.createElement(Qt.input,{...d,className:cRt("chakra-numberinput__field",r.className),__css:{width:"100%",...p.field}})});dRt.displayName="NumberInputField";var hRt=Qt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),pRt=kn(function(r,c){var m;const u=Gle(),{getDecrementButtonProps:d}=gDe(),p=d(r,c);return V(hRt,{...p,__css:u.stepper,children:(m=r.children)!=null?m:V(_Rn,{})})});pRt.displayName="NumberDecrementStepper";var gRt=kn(function(r,c){var m;const{getIncrementButtonProps:u}=gDe(),d=u(r,c),p=Gle();return V(hRt,{...d,__css:p.stepper,children:(m=r.children)!=null?m:V(MRn,{})})});gRt.displayName="NumberIncrementStepper";var pW=(...n)=>n.filter(Boolean).join(" ");function BRn(n,...r){return zRn(n)?n(...r):n}var zRn=n=>typeof n=="function";function wx(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function VRn(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}var[URn,oN]=Ec({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[HRn,gW]=Ec({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),K_={click:"click",hover:"hover"};function qRn(n={}){const{closeOnBlur:r=!0,closeOnEsc:c=!0,initialFocusRef:u,id:d,returnFocusOnClose:p=!0,autoFocus:m=!0,arrowSize:x,arrowShadowColor:E,trigger:k=K_.click,openDelay:T=200,closeDelay:P=200,isLazy:I,lazyBehavior:O="unmount",computePositionOnMount:N,...j}=n,{isOpen:L,onClose:$,onOpen:F,onToggle:B}=YMe(n),X=U.exports.useRef(null),ne=U.exports.useRef(null),Z=U.exports.useRef(null),H=U.exports.useRef(!1),ce=U.exports.useRef(!1);L&&(ce.current=!0);const[pe,le]=U.exports.useState(!1),[ye,Ge]=U.exports.useState(!1),qe=U.exports.useId(),et=d!=null?d:qe,[tt,jt,Me,ze]=["popover-trigger","popover-content","popover-header","popover-body"].map(me=>`${me}-${et}`),{referenceRef:we,getArrowProps:De,getPopperProps:be,getArrowInnerProps:Se,forceUpdate:Jt}=KMe({...j,enabled:L||!!N}),sn=ojt({isOpen:L,ref:Z});R_n({enabled:L,ref:ne}),XNt(Z,{focusRef:ne,visible:L,shouldFocus:p&&k===K_.click}),DMn(Z,{focusRef:u,visible:L,shouldFocus:m&&k===K_.click});const Tn=QMe({wasSelected:ce.current,enabled:I,mode:O,isSelected:sn.present}),qn=U.exports.useCallback((me={},Te=null)=>{const Xe={...me,style:{...me.style,transformOrigin:ed.transformOrigin.varRef,[ed.arrowSize.var]:x?`${x}px`:void 0,[ed.arrowShadowColor.var]:E},ref:_u(Z,Te),children:Tn?me.children:null,id:jt,tabIndex:-1,role:"dialog",onKeyDown:wx(me.onKeyDown,dt=>{c&&dt.key==="Escape"&&$()}),onBlur:wx(me.onBlur,dt=>{const Sn=h9t(dt),gn=Q9e(Z.current,Sn),yr=Q9e(ne.current,Sn);L&&r&&(!gn&&!yr)&&$()}),"aria-labelledby":pe?Me:void 0,"aria-describedby":ye?ze:void 0};return k===K_.hover&&(Xe.role="tooltip",Xe.onMouseEnter=wx(me.onMouseEnter,()=>{H.current=!0}),Xe.onMouseLeave=wx(me.onMouseLeave,dt=>{dt.nativeEvent.relatedTarget!==null&&(H.current=!1,setTimeout(()=>$(),P))})),Xe},[Tn,jt,pe,Me,ye,ze,k,c,$,L,r,P,E,x]),rr=U.exports.useCallback((me={},Te=null)=>be({...me,style:{visibility:L?"visible":"hidden",...me.style}},Te),[L,be]),Zn=U.exports.useCallback((me,Te=null)=>({...me,ref:_u(Te,X,we)}),[X,we]),Gr=U.exports.useRef(),Je=U.exports.useRef(),ct=U.exports.useCallback(me=>{X.current==null&&we(me)},[we]),rn=U.exports.useCallback((me={},Te=null)=>{const Xe={...me,ref:_u(ne,Te,ct),id:tt,"aria-haspopup":"dialog","aria-expanded":L,"aria-controls":jt};return k===K_.click&&(Xe.onClick=wx(me.onClick,B)),k===K_.hover&&(Xe.onFocus=wx(me.onFocus,()=>{Gr.current===void 0&&F()}),Xe.onBlur=wx(me.onBlur,dt=>{const Sn=h9t(dt),gn=!Q9e(Z.current,Sn);L&&r&&gn&&$()}),Xe.onKeyDown=wx(me.onKeyDown,dt=>{dt.key==="Escape"&&$()}),Xe.onMouseEnter=wx(me.onMouseEnter,()=>{H.current=!0,Gr.current=window.setTimeout(()=>F(),T)}),Xe.onMouseLeave=wx(me.onMouseLeave,()=>{H.current=!1,Gr.current&&(clearTimeout(Gr.current),Gr.current=void 0),Je.current=window.setTimeout(()=>{H.current===!1&&$()},P)})),Xe},[tt,L,jt,k,ct,B,F,r,$,T,P]);U.exports.useEffect(()=>()=>{Gr.current&&clearTimeout(Gr.current),Je.current&&clearTimeout(Je.current)},[]);const Ne=U.exports.useCallback((me={},Te=null)=>({...me,id:Me,ref:_u(Te,Xe=>{le(!!Xe)})}),[Me]),ae=U.exports.useCallback((me={},Te=null)=>({...me,id:ze,ref:_u(Te,Xe=>{Ge(!!Xe)})}),[ze]);return{forceUpdate:Jt,isOpen:L,onAnimationComplete:sn.onComplete,onClose:$,getAnchorProps:Zn,getArrowProps:De,getArrowInnerProps:Se,getPopoverPositionerProps:rr,getPopoverProps:qn,getTriggerProps:rn,getHeaderProps:Ne,getBodyProps:ae}}function Q9e(n,r){return n===r||(n==null?void 0:n.contains(r))}function h9t(n){var c;const r=n.currentTarget.ownerDocument.activeElement;return(c=n.relatedTarget)!=null?c:r}function bDe(n){const r=il("Popover",n),{children:c,...u}=Fa(n),d=Q7(),p=qRn({...u,direction:d.direction});return V(URn,{value:p,children:V(HRn,{value:r,children:BRn(c,{isOpen:p.isOpen,onClose:p.onClose,forceUpdate:p.forceUpdate})})})}bDe.displayName="Popover";var mDe=kn(function(r,c){const{getBodyProps:u}=oN(),d=gW();return ut.createElement(Qt.div,{...u(r,c),className:pW("chakra-popover__body",r.className),__css:d.body})});mDe.displayName="PopoverBody";var vDe=kn(function(r,c){const{onClose:u}=oN(),d=gW();return V(uW,{size:"sm",onClick:u,className:pW("chakra-popover__close-btn",r.className),__css:d.closeButton,ref:c,...r})});vDe.displayName="PopoverCloseButton";function WRn(n){if(!!n)return{enter:{...n.enter,visibility:"visible"},exit:{...n.exit,transitionEnd:{visibility:"hidden"}}}}var GRn={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},XRn=Qt(H1.section),bRt=kn(function(r,c){const{variants:u=GRn,...d}=r,{isOpen:p}=oN();return ut.createElement(XRn,{ref:c,variants:WRn(u),initial:!1,animate:p?"enter":"exit",...d})});bRt.displayName="PopoverTransition";var yDe=kn(function(r,c){const{rootProps:u,motionProps:d,...p}=r,{getPopoverProps:m,getPopoverPositionerProps:x,onAnimationComplete:E}=oN(),k=gW(),T={position:"relative",display:"flex",flexDirection:"column",...k.content};return ut.createElement(Qt.div,{...x(u),__css:k.popper,className:"chakra-popover__popper"},V(bRt,{...d,...m(p,c),onAnimationComplete:VRn(E,p.onAnimationComplete),className:pW("chakra-popover__content",r.className),__css:T}))});yDe.displayName="PopoverContent";function mRt(n){const r=gW();return ut.createElement(Qt.footer,{...n,className:pW("chakra-popover__footer",n.className),__css:r.footer})}mRt.displayName="PopoverFooter";var wDe=kn(function(r,c){const{getHeaderProps:u}=oN(),d=gW();return ut.createElement(Qt.header,{...u(r,c),className:pW("chakra-popover__header",r.className),__css:d.header})});wDe.displayName="PopoverHeader";function Mce(n){const r=U.exports.Children.only(n.children),{getTriggerProps:c}=oN();return U.exports.cloneElement(r,c(r.props,r.ref))}Mce.displayName="PopoverTrigger";var KRn=(...n)=>n.filter(Boolean).join(" "),YRn=n=>n?"":void 0;function QRn(n,r){const c={},u={};for(const[d,p]of Object.entries(n))r.includes(d)?c[d]=p:u[d]=p;return[c,u]}var vRt=kn(function(r,c){const{children:u,placeholder:d,className:p,...m}=r;return ut.createElement(Qt.select,{...m,ref:c,className:KRn("chakra-select",p)},d&&V("option",{value:"",children:d}),u)});vRt.displayName="SelectField";var yRt=kn((n,r)=>{var c;const u=il("Select",n),{rootProps:d,placeholder:p,icon:m,color:x,height:E,h:k,minH:T,minHeight:P,iconColor:I,iconSize:O,...N}=Fa(n),[j,L]=QRn(N,q4n),$=Lle(L),F={width:"100%",height:"fit-content",position:"relative",color:x},B={paddingEnd:"2rem",...u.field,_focus:{zIndex:"unset",...(c=u.field)==null?void 0:c._focus}};return ut.createElement(Qt.div,{className:"chakra-select__wrapper",__css:F,...j,...d},V(vRt,{ref:r,height:k!=null?k:E,minH:T!=null?T:P,placeholder:p,...$,__css:B,children:n.children}),V(wRt,{"data-disabled":YRn($.disabled),...(I||x)&&{color:I||x},__css:u.icon,...O&&{fontSize:O},children:m}))});yRt.displayName="Select";var ZRn=n=>V("svg",{viewBox:"0 0 24 24",...n,children:V("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),JRn=Qt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),wRt=n=>{const{children:r=V(ZRn,{}),...c}=n,u=U.exports.cloneElement(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return V(JRn,{...c,className:"chakra-select__icon-wrapper",children:U.exports.isValidElement(r)?u:null})};wRt.displayName="SelectIcon";var e$n=(...n)=>n.filter(Boolean).join(" "),p9t=n=>n?"":void 0,xRt=kn(function(r,c){const u=il("Switch",r),{spacing:d="0.5rem",children:p,...m}=Fa(r),{state:x,getInputProps:E,getCheckboxProps:k,getRootProps:T,getLabelProps:P}=wNt(m),I=U.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...u.container}),[u.container]),O=U.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...u.track}),[u.track]),N=U.exports.useMemo(()=>({userSelect:"none",marginStart:d,...u.label}),[d,u.label]);return ut.createElement(Qt.label,{...T(),className:e$n("chakra-switch",r.className),__css:I},V("input",{className:"chakra-switch__input",...E({},c)}),ut.createElement(Qt.span,{...k(),className:"chakra-switch__track",__css:O},ut.createElement(Qt.span,{__css:u.thumb,className:"chakra-switch__thumb","data-checked":p9t(x.isChecked),"data-hover":p9t(x.isHovered)})),p&&ut.createElement(Qt.span,{className:"chakra-switch__label",...P(),__css:N},p))});xRt.displayName="Switch";var SRt=(...n)=>n.filter(Boolean).join(" "),[t$n,nT]=Ec({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ERt=kn((n,r)=>{const c=il("Table",n),{className:u,...d}=Fa(n);return ut.createElement(t$n,{value:c},ut.createElement(Qt.table,{ref:r,__css:c.table,className:SRt("chakra-table",u),...d}))});ERt.displayName="Table";kn((n,r)=>{var m;const{overflow:c,overflowX:u,className:d,...p}=n;return ut.createElement(Qt.div,{ref:r,className:SRt("chakra-table__container",d),...p,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(m=c!=null?c:u)!=null?m:"auto",overflowY:"hidden",maxWidth:"100%"}})});var n$n=kn((n,r)=>{const{placement:c="bottom",...u}=n,d=nT();return ut.createElement(Qt.caption,{...u,ref:r,__css:{...d.caption,captionSide:c}})});n$n.displayName="TableCaption";var r$n=kn((n,r)=>{const c=nT();return ut.createElement(Qt.thead,{...n,ref:r,__css:c.thead})}),i$n=kn((n,r)=>{const c=nT();return ut.createElement(Qt.tbody,{...n,ref:r,__css:c.tbody})});kn((n,r)=>{const c=nT();return ut.createElement(Qt.tfoot,{...n,ref:r,__css:c.tfoot})});var g9t=kn(({isNumeric:n,...r},c)=>{const u=nT();return ut.createElement(Qt.th,{...r,ref:c,__css:u.th,"data-is-numeric":n})}),Z9e=kn((n,r)=>{const c=nT();return ut.createElement(Qt.tr,{...n,ref:r,__css:c.tr})}),dse=kn(({isNumeric:n,...r},c)=>{const u=nT();return ut.createElement(Qt.td,{...r,ref:c,__css:u.td,"data-is-numeric":n})}),sN=(...n)=>n.filter(Boolean).join(" ");function cPe(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[o$n,kRt,s$n,a$n]=J_e();function c$n(n){var F;const{defaultIndex:r,onChange:c,index:u,isManual:d,isLazy:p,lazyBehavior:m="unmount",orientation:x="horizontal",direction:E="ltr",...k}=n,[T,P]=U.exports.useState(r!=null?r:0),[I,O]=_Mt({defaultValue:r!=null?r:0,value:u,onChange:c});U.exports.useEffect(()=>{u!=null&&P(u)},[u]);const N=s$n(),j=U.exports.useId();return{id:`tabs-${(F=n.id)!=null?F:j}`,selectedIndex:I,focusedIndex:T,setSelectedIndex:O,setFocusedIndex:P,isManual:d,isLazy:p,lazyBehavior:m,orientation:x,descendants:N,direction:E,htmlProps:k}}var[u$n,bW]=Ec({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function l$n(n){const{focusedIndex:r,orientation:c,direction:u}=bW(),d=kRt(),p=U.exports.useCallback(m=>{const x=()=>{var F;const B=d.nextEnabled(r);B&&((F=B.node)==null||F.focus())},E=()=>{var F;const B=d.prevEnabled(r);B&&((F=B.node)==null||F.focus())},k=()=>{var F;const B=d.firstEnabled();B&&((F=B.node)==null||F.focus())},T=()=>{var F;const B=d.lastEnabled();B&&((F=B.node)==null||F.focus())},P=c==="horizontal",I=c==="vertical",O=m.key,N=u==="ltr"?"ArrowLeft":"ArrowRight",j=u==="ltr"?"ArrowRight":"ArrowLeft",$={[N]:()=>P&&E(),[j]:()=>P&&x(),ArrowDown:()=>I&&x(),ArrowUp:()=>I&&E(),Home:k,End:T}[O];$&&(m.preventDefault(),$(m))},[d,r,c,u]);return{...n,role:"tablist","aria-orientation":c,onKeyDown:cPe(n.onKeyDown,p)}}function CRt(n){const{isDisabled:r,isFocusable:c,...u}=n,{setSelectedIndex:d,isManual:p,id:m,setFocusedIndex:x,selectedIndex:E}=bW(),{index:k,register:T}=a$n({disabled:r&&!c}),P=k===E,I=()=>{d(k)},O=()=>{x(k),!p&&!(r&&c)&&d(k)},N=BNt({...u,ref:_u(T,n.ref),isDisabled:r,isFocusable:c,onClick:cPe(n.onClick,I)}),j="button";return{...N,id:IRt(m,k),role:"tab",tabIndex:P?0:-1,type:j,"aria-selected":P,"aria-controls":TRt(m,k),onFocus:r?void 0:cPe(n.onFocus,O)}}var[f$n,d$n]=Ec({});function h$n(n){const r=bW(),{id:c,selectedIndex:u}=r,p=tN(n.children).map((m,x)=>U.exports.createElement(f$n,{key:x,value:{isSelected:x===u,id:TRt(c,x),tabId:IRt(c,x),selectedIndex:u}},m));return{...n,children:p}}function p$n(n){const{children:r,...c}=n,{isLazy:u,lazyBehavior:d}=bW(),{isSelected:p,id:m,tabId:x}=d$n(),E=U.exports.useRef(!1);p&&(E.current=!0);const k=QMe({wasSelected:E.current,isSelected:p,enabled:u,mode:d});return{tabIndex:0,...c,children:k?r:null,role:"tabpanel","aria-labelledby":x,hidden:!p,id:m}}function g$n(){const n=bW(),r=kRt(),{selectedIndex:c,orientation:u}=n,d=u==="horizontal",p=u==="vertical",[m,x]=U.exports.useState(()=>{if(d)return{left:0,width:0};if(p)return{top:0,height:0}}),[E,k]=U.exports.useState(!1);return Iw(()=>{if(c==null)return;const T=r.item(c);if(T==null)return;d&&x({left:T.node.offsetLeft,width:T.node.offsetWidth}),p&&x({top:T.node.offsetTop,height:T.node.offsetHeight});const P=requestAnimationFrame(()=>{k(!0)});return()=>{P&&cancelAnimationFrame(P)}},[c,d,p,r]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:E?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...m}}function IRt(n,r){return`${n}--tab-${r}`}function TRt(n,r){return`${n}--tabpanel-${r}`}var[b$n,mW]=Ec({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),xDe=kn(function(r,c){const u=il("Tabs",r),{children:d,className:p,...m}=Fa(r),{htmlProps:x,descendants:E,...k}=c$n(m),T=U.exports.useMemo(()=>k,[k]),{isFitted:P,...I}=x;return ut.createElement(o$n,{value:E},ut.createElement(u$n,{value:T},ut.createElement(b$n,{value:u},ut.createElement(Qt.div,{className:sN("chakra-tabs",p),ref:c,...I,__css:u.root},d))))});xDe.displayName="Tabs";var m$n=kn(function(r,c){const u=g$n(),d={...r.style,...u},p=mW();return ut.createElement(Qt.div,{ref:c,...r,className:sN("chakra-tabs__tab-indicator",r.className),style:d,__css:p.indicator})});m$n.displayName="TabIndicator";var SDe=kn(function(r,c){const u=l$n({...r,ref:c}),d=mW(),p={display:"flex",...d.tablist};return ut.createElement(Qt.div,{...u,className:sN("chakra-tabs__tablist",r.className),__css:p})});SDe.displayName="TabList";var EDe=kn(function(r,c){const u=p$n({...r,ref:c}),d=mW();return ut.createElement(Qt.div,{outline:"0",...u,className:sN("chakra-tabs__tab-panel",r.className),__css:d.tabpanel})});EDe.displayName="TabPanel";var kDe=kn(function(r,c){const u=h$n(r),d=mW();return ut.createElement(Qt.div,{...u,width:"100%",ref:c,className:sN("chakra-tabs__tab-panels",r.className),__css:d.tabpanels})});kDe.displayName="TabPanels";var ARt=kn(function(r,c){const u=mW(),d=CRt({...r,ref:c}),p={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...u.tab};return ut.createElement(Qt.button,{...d,className:sN("chakra-tabs__tab",r.className),__css:p})});ARt.displayName="Tab";var v$n=(...n)=>n.filter(Boolean).join(" ");function y$n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}var w$n=["h","minH","height","minHeight"],PRt=kn((n,r)=>{const c=U1("Textarea",n),{className:u,rows:d,...p}=Fa(n),m=Lle(p),x=d?y$n(c,w$n):c;return ut.createElement(Qt.textarea,{ref:r,rows:d,...m,className:v$n("chakra-textarea",u),__css:x})});PRt.displayName="Textarea";function x$n(n,r){const c=mh(n);U.exports.useEffect(()=>{if(r==null)return;let u=null;return u=window.setTimeout(()=>{c()},r),()=>{u&&window.clearTimeout(u)}},[r,c])}function S$n(n,...r){return E$n(n)?n(...r):n}var E$n=n=>typeof n=="function",k$n=(n,r)=>n.find(c=>c.id===r);function b9t(n,r){const c=ORt(n,r),u=c?n[c].findIndex(d=>d.id===r):-1;return{position:c,index:u}}function ORt(n,r){for(const[c,u]of Object.entries(n))if(k$n(u,r))return c}function C$n(n){const r=n.includes("right"),c=n.includes("left");let u="center";return r&&(u="flex-end"),c&&(u="flex-start"),{display:"flex",flexDirection:"column",alignItems:u}}function I$n(n){const c=n==="top"||n==="bottom"?"0 auto":void 0,u=n.includes("top")?"env(safe-area-inset-top, 0px)":void 0,d=n.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,p=n.includes("left")?void 0:"env(safe-area-inset-right, 0px)",m=n.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:c,top:u,bottom:d,right:p,left:m}}var T$n={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},bH=A$n(T$n);function A$n(n){let r=n;const c=new Set,u=d=>{r=d(r),c.forEach(p=>p())};return{getState:()=>r,subscribe:d=>(c.add(d),()=>{u(()=>n),c.delete(d)}),removeToast:(d,p)=>{u(m=>({...m,[p]:m[p].filter(x=>x.id!=d)}))},notify:(d,p)=>{const m=P$n(d,p),{position:x,id:E}=m;return u(k=>{var I,O;const P=x.includes("top")?[m,...(I=k[x])!=null?I:[]]:[...(O=k[x])!=null?O:[],m];return{...k,[x]:P}}),E},update:(d,p)=>{!d||u(m=>{const x={...m},{position:E,index:k}=b9t(x,d);return E&&k!==-1&&(x[E][k]={...x[E][k],...p,message:_$n(p)}),x})},closeAll:({positions:d}={})=>{u(p=>{const m=["bottom","bottom-right","bottom-left","top","top-left","top-right"];return(d!=null?d:m).reduce((E,k)=>(E[k]=p[k].map(T=>({...T,requestClose:!0})),E),{...p})})},close:d=>{u(p=>{const m=ORt(p,d);return m?{...p,[m]:p[m].map(x=>x.id==d?{...x,requestClose:!0}:x)}:p})},isActive:d=>Boolean(b9t(bH.getState(),d).position)}}var m9t=0;function P$n(n,r={}){var d,p;m9t+=1;const c=(d=r.id)!=null?d:m9t,u=(p=r.position)!=null?p:"bottom";return{id:c,message:n,position:u,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>bH.removeToast(String(c),u),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}var O$n=n=>{const{status:r,variant:c="solid",id:u,title:d,isClosable:p,onClose:m,description:x,icon:E}=n,k=u?{root:`toast-${u}`,title:`toast-${u}-title`,description:`toast-${u}-description`}:void 0;return ut.createElement(TMe,{addRole:!1,status:r,variant:c,id:k==null?void 0:k.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},V(AMe,{children:E}),ut.createElement(Qt.div,{flex:"1",maxWidth:"100%"},d&&V(pNt,{id:k==null?void 0:k.title,children:d}),x&&V(hNt,{id:k==null?void 0:k.description,display:"block",children:x})),p&&V(uW,{size:"sm",onClick:m,position:"absolute",insetEnd:1,top:1}))};function _$n(n={}){const{render:r,toastComponent:c=O$n}=n;return d=>typeof r=="function"?r({...d,...n}):V(c,{...d,...n})}var M$n={initial:n=>{const{position:r}=n,c=["top","bottom"].includes(r)?"y":"x";let u=["top-right","bottom-right"].includes(r)?1:-1;return r==="bottom"&&(u=1),{opacity:0,[c]:u*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},_Rt=U.exports.memo(n=>{const{id:r,message:c,onCloseComplete:u,onRequestRemove:d,requestClose:p=!1,position:m="bottom",duration:x=5e3,containerStyle:E,motionVariants:k=M$n,toastSpacing:T="0.5rem"}=n,[P,I]=U.exports.useState(x),O=GTn();mk(()=>{O||u==null||u()},[O]),mk(()=>{I(x)},[x]);const N=()=>I(null),j=()=>I(x),L=()=>{O&&d()};U.exports.useEffect(()=>{O&&p&&d()},[O,p,d]),x$n(L,P);const $=U.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:T,...E}),[E,T]),F=U.exports.useMemo(()=>C$n(m),[m]);return ut.createElement(H1.li,{layout:!0,className:"chakra-toast",variants:k,initial:"initial",animate:"animate",exit:"exit",onHoverStart:N,onHoverEnd:j,custom:{position:m},style:F},ut.createElement(Qt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:$},S$n(c,{id:r,onClose:L})))});_Rt.displayName="ToastComponent";var D$n=n=>{const r=U.exports.useSyncExternalStore(bH.subscribe,bH.getState,bH.getState),{children:c,motionVariants:u,component:d=_Rt,portalProps:p}=n,x=Object.keys(r).map(E=>{const k=r[E];return V("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${E}`,style:I$n(E),children:V(_S,{initial:!1,children:k.map(T=>V(d,{motionVariants:u,...T},T.id))})},E)});return We(Si,{children:[c,V(s3,{...p,children:x})]})};function N$n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function j$n(n,r){const c={};for(const u of r)u in n&&(c[u]=n[u]);return c}var R$n={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function uU(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var Dce=n=>{var r;return((r=n.current)==null?void 0:r.ownerDocument)||document},uPe=n=>{var r,c;return((c=(r=n.current)==null?void 0:r.ownerDocument)==null?void 0:c.defaultView)||window};function $$n(n={}){const{openDelay:r=0,closeDelay:c=0,closeOnClick:u=!0,closeOnMouseDown:d,closeOnScroll:p,closeOnPointerDown:m=d,closeOnEsc:x=!0,onOpen:E,onClose:k,placement:T,id:P,isOpen:I,defaultIsOpen:O,arrowSize:N=10,arrowShadowColor:j,arrowPadding:L,modifiers:$,isDisabled:F,gutter:B,offset:X,direction:ne,...Z}=n,{isOpen:H,onOpen:ce,onClose:pe}=YMe({isOpen:I,defaultIsOpen:O,onOpen:E,onClose:k}),{referenceRef:le,getPopperProps:ye,getArrowInnerProps:Ge,getArrowProps:qe}=KMe({enabled:H,placement:T,arrowPadding:L,modifiers:$,gutter:B,offset:X,direction:ne}),et=U.exports.useId(),jt=`tooltip-${P!=null?P:et}`,Me=U.exports.useRef(null),ze=U.exports.useRef(),we=U.exports.useRef(),De=U.exports.useCallback(()=>{we.current&&(clearTimeout(we.current),we.current=void 0),pe()},[pe]),be=L$n(Me,De),Se=U.exports.useCallback(()=>{if(!F&&!ze.current){be();const Je=uPe(Me);ze.current=Je.setTimeout(ce,r)}},[be,F,ce,r]),Jt=U.exports.useCallback(()=>{ze.current&&(clearTimeout(ze.current),ze.current=void 0);const Je=uPe(Me);we.current=Je.setTimeout(De,c)},[c,De]),sn=U.exports.useCallback(()=>{H&&u&&Jt()},[u,Jt,H]),Tn=U.exports.useCallback(()=>{H&&m&&Jt()},[m,Jt,H]),qn=U.exports.useCallback(Je=>{H&&Je.key==="Escape"&&Jt()},[H,Jt]);y7(()=>Dce(Me),"keydown",x?qn:void 0),y7(()=>Dce(Me),"scroll",()=>{H&&p&&De()}),U.exports.useEffect(()=>()=>{clearTimeout(ze.current),clearTimeout(we.current)},[]),y7(()=>Me.current,"pointerleave",Jt);const rr=U.exports.useCallback((Je={},ct=null)=>({...Je,ref:_u(Me,ct,le),onPointerEnter:uU(Je.onPointerEnter,Ne=>{Ne.pointerType!=="touch"&&Se()}),onClick:uU(Je.onClick,sn),onPointerDown:uU(Je.onPointerDown,Tn),onFocus:uU(Je.onFocus,Se),onBlur:uU(Je.onBlur,Jt),"aria-describedby":H?jt:void 0}),[Se,Jt,Tn,H,jt,sn,le]),Zn=U.exports.useCallback((Je={},ct=null)=>ye({...Je,style:{...Je.style,[ed.arrowSize.var]:N?`${N}px`:void 0,[ed.arrowShadowColor.var]:j}},ct),[ye,N,j]),Gr=U.exports.useCallback((Je={},ct=null)=>{const rn={...Je.style,position:"relative",transformOrigin:ed.transformOrigin.varRef};return{ref:ct,...Z,...Je,id:jt,role:"tooltip",style:rn}},[Z,jt]);return{isOpen:H,show:Se,hide:Jt,getTriggerProps:rr,getTooltipProps:Gr,getTooltipPositionerProps:Zn,getArrowProps:qe,getArrowInnerProps:Ge}}var J9e="chakra-ui:close-tooltip";function L$n(n,r){return U.exports.useEffect(()=>{const c=Dce(n);return c.addEventListener(J9e,r),()=>c.removeEventListener(J9e,r)},[r,n]),()=>{const c=Dce(n),u=uPe(n);c.dispatchEvent(new u.CustomEvent(J9e))}}var F$n=Qt(H1.div),aN=kn((n,r)=>{var pe,le;const c=U1("Tooltip",n),u=Fa(n),d=Q7(),{children:p,label:m,shouldWrapChildren:x,"aria-label":E,hasArrow:k,bg:T,portalProps:P,background:I,backgroundColor:O,bgColor:N,motionProps:j,...L}=u,$=(le=(pe=I!=null?I:O)!=null?pe:T)!=null?le:N;if($){c.bg=$;const ye=oSn(d,"colors",$);c[ed.arrowBg.var]=ye}const F=$$n({...L,direction:d.direction}),B=typeof p=="string"||x;let X;if(B)X=ut.createElement(Qt.span,{display:"inline-block",tabIndex:0,...F.getTriggerProps()},p);else{const ye=U.exports.Children.only(p);X=U.exports.cloneElement(ye,F.getTriggerProps(ye.props,ye.ref))}const ne=!!E,Z=F.getTooltipProps({},r),H=ne?N$n(Z,["role","id"]):Z,ce=j$n(Z,["role","id"]);return m?We(Si,{children:[X,V(_S,{children:F.isOpen&&ut.createElement(s3,{...P},ut.createElement(Qt.div,{...F.getTooltipPositionerProps(),__css:{zIndex:c.zIndex,pointerEvents:"none"}},We(F$n,{variants:R$n,initial:"exit",animate:"enter",exit:"exit",...j,...H,__css:c,children:[m,ne&&ut.createElement(Qt.span,{srOnly:!0,...ce},E),k&&ut.createElement(Qt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ut.createElement(Qt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:c.bg}}))]})))})]}):V(Si,{children:p})});aN.displayName="Tooltip";var B$n=n=>{const{children:r,colorModeManager:c,portalZIndex:u,resetCSS:d=!0,theme:p={},environment:m,cssVarsRoot:x}=n,E=V(FNt,{environment:m,children:r});return V(o9n,{theme:p,cssVarsRoot:x,children:We(D_t,{colorModeManager:c,options:p.config,children:[d?V(P_n,{}):V(A_n,{}),V(c9n,{}),u?V(gjt,{zIndex:u,children:E}):E]})})};function z$n({children:n,theme:r=TMt,toastOptions:c,...u}){return We(B$n,{theme:r,...u,children:[n,V(D$n,{...c})]})}const LE={gray:{25:"#F7F8FA",50:"#EFEFF1",100:"#E1E2E5",200:"#C6C7CD",300:"#ABACB5",400:"#8F919D",500:"#757785",600:"#5D5F6A",700:"#45464F",800:"#2D2E34",850:"#212226",900:"#151618"},primary:{grid_temp:"#D6E7FF",500:"#056DFF",600:"#1956DD"},danger:{500:"#F44747",600:"#EF0F0F"},highlight:{500:"#FF5E00"},warning:{500:"#FF9044"},redAlpha:{100:"rgba(244, 71, 71, 0.1)"}},MRt={Default:{light:"white",dark:LE.gray[700]},Blue:{light:LE.primary[500],dark:LE.primary[500]},Orange:{light:LE.highlight[500],dark:LE.highlight[500]},Red:{light:LE.danger[500],dark:LE.danger[500]}},V$n=Object.keys(MRt),ei=()=>{const{colorMode:n,setColorMode:r}=ZD(),c=(d,p)=>{switch(n){case"light":return d;case"dark":return p!=null?p:d}},u=(d,p)=>MRt[p!=null?p:d][n];return{getEditorColor:U.exports.useCallback(u,[n]),getColorModeValue:U.exports.useCallback(c,[n]),setColorMode:r,colorMode:n}};var CDe={exports:{}},DRt={},IDe={exports:{}},NRt={};/** - * @license React - * use-sync-external-store-shim.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 ID=U.exports;function U$n(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var H$n=typeof Object.is=="function"?Object.is:U$n,q$n=ID.useState,W$n=ID.useEffect,G$n=ID.useLayoutEffect,X$n=ID.useDebugValue;function K$n(n,r){var c=r(),u=q$n({inst:{value:c,getSnapshot:r}}),d=u[0].inst,p=u[1];return G$n(function(){d.value=c,d.getSnapshot=r,e7e(d)&&p({inst:d})},[n,c,r]),W$n(function(){return e7e(d)&&p({inst:d}),n(function(){e7e(d)&&p({inst:d})})},[n]),X$n(c),c}function e7e(n){var r=n.getSnapshot;n=n.value;try{var c=r();return!H$n(n,c)}catch{return!0}}function Y$n(n,r){return r()}var Q$n=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Y$n:K$n;NRt.useSyncExternalStore=ID.useSyncExternalStore!==void 0?ID.useSyncExternalStore:Q$n;(function(n){n.exports=NRt})(IDe);/** - * @license React - * use-sync-external-store-shim/with-selector.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 Xle=U.exports,Z$n=IDe.exports;function J$n(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var eLn=typeof Object.is=="function"?Object.is:J$n,tLn=Z$n.useSyncExternalStore,nLn=Xle.useRef,rLn=Xle.useEffect,iLn=Xle.useMemo,oLn=Xle.useDebugValue;DRt.useSyncExternalStoreWithSelector=function(n,r,c,u,d){var p=nLn(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=iLn(function(){function E(O){if(!k){if(k=!0,T=O,O=u(O),d!==void 0&&m.hasValue){var N=m.value;if(d(N,O))return P=N}return P=O}if(N=P,eLn(T,O))return N;var j=u(O);return d!==void 0&&d(N,j)?N:(T=O,P=j)}var k=!1,T,P,I=c===void 0?null:c;return[function(){return E(r())},I===null?void 0:function(){return E(I())}]},[r,c,u,d]);var x=tLn(n,p[0],p[1]);return rLn(function(){m.hasValue=!0,m.value=x},[x]),oLn(x),x};(function(n){n.exports=DRt})(CDe);/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Nr=function(){return Nr=Object.assign||function(r){for(var c,u=1,d=arguments.length;u=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function na(n,r){var c=typeof Symbol=="function"&&n[Symbol.iterator];if(!c)return n;var u=c.call(n),d,p=[],m;try{for(;(r===void 0||r-- >0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p}function Fc(n,r,c){if(c||arguments.length===2)for(var u=0,d=r.length,p;u"u"||typeof u=="string"||PD(u)?{target:u,event:n}:Nr(Nr({},u),{event:n})});return c}function SLn(n){if(!(n===void 0||n===fLn))return mw(n)}function HRt(n,r,c,u,d){var p=n.options.guards,m={state:d,cond:r,_event:u};if(r.type===dPe)return((p==null?void 0:p[r.name])||r.predicate)(c,u.data,m);var x=p==null?void 0:p[r.type];if(!x)throw new Error("Guard '".concat(r.type,"' is not implemented on machine '").concat(n.id,"'."));return x(c,u.data,m)}function qRt(n){return typeof n=="string"?{type:n}:n}function vH(n,r,c){var u=function(){},d=typeof n=="object",p=d?n:null;return{next:((d?n.next:n)||u).bind(p),error:((d?n.error:r)||u).bind(p),complete:((d?n.complete:c)||u).bind(p)}}function pse(n,r){return"".concat(n,":invocation[").concat(r,"]")}var nD=Yh({type:aLn});function pPe(n,r){return r&&r[n]||void 0}function bq(n,r){var c;if(oc(n)||typeof n=="number"){var u=pPe(n,r);zc(u)?c={type:n,exec:u}:u?c=u:c={type:n,exec:void 0}}else if(zc(n))c={type:n.name||n.toString(),exec:n};else{var u=pPe(n.type,r);if(zc(u))c=Nr(Nr({},n),{exec:u});else if(u){var d=u.type||n.type;c=Nr(Nr(Nr({},u),n),{type:d})}else c=n}return c}var GE=function(n,r){if(!n)return[];var c=cN(n)?n:[n];return c.map(function(u){return bq(u,r)})};function MDe(n){var r=bq(n);return Nr(Nr({id:oc(n)?n:r.id},r),{type:r.type})}function q9(n){return oc(n)?{type:TD,event:n}:Kle(n,{to:Iv.Internal})}function ELn(n){return{type:TD,_event:Yh(n.event)}}function Kle(n,r){return{to:r?r.to:void 0,type:AD,event:zc(n)?n:_De(n),delay:r?r.delay:void 0,id:r&&r.id!==void 0?r.id:zc(n)?n.name:BRt(n)}}function kLn(n,r,c,u){var d={_event:c},p=Yh(zc(n.event)?n.event(r,c.data,d):n.event),m;if(oc(n.delay)){var x=u&&u[n.delay];m=zc(x)?x(r,c.data,d):x}else m=zc(n.delay)?n.delay(r,c.data,d):n.delay;var E=zc(n.to)?n.to(r,c.data,d):n.to;return Nr(Nr({},n),{to:E,_event:p,event:p.data,delay:m})}function CLn(n,r){return Kle(n,Nr(Nr({},r),{to:Iv.Parent}))}var ILn=function(n,r,c){return Nr(Nr({},n),{value:oc(n.expr)?n.expr:n.expr(r,c.data,{_event:c})})},TLn=function(n){return{type:jRt,sendId:n}};function ALn(n){var r=MDe(n);return{type:Uc.Start,activity:r,exec:void 0}}function PLn(n){var r=zc(n)?n:MDe(n);return{type:Uc.Stop,activity:r,exec:void 0}}function OLn(n,r,c){var u=zc(n.activity)?n.activity(r,c.data):n.activity,d=typeof u=="string"?{id:u}:u,p={type:Uc.Stop,activity:d};return p}var _Ln=function(n){return{type:PDe,assignment:n}};function MLn(n,r){var c=r?"#".concat(r):"";return"".concat(Uc.After,"(").concat(n,")").concat(c)}function gse(n,r){var c="".concat(Uc.DoneState,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function Tae(n,r){var c="".concat(Uc.DoneInvoke,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function _U(n,r){var c="".concat(Uc.ErrorPlatform,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function E9t(n,r){if(!FRt&&(!n||typeof n=="function")){var c=n;n=function(){for(var u=[],d=0;d0;){var k=d.shift();c=n.transition(c,k,E),u.forEach(function(T){return T.next(c)})}p=!1}},x=$Ln({id:r.id,send:function(k){d.push(k),m()},getSnapshot:function(){return c},subscribe:function(k,T,P){var I=vH(k,T,P);return u.add(I),I.next(c),{unsubscribe:function(){u.delete(I)}}}}),E={parent:r.parent,self:x,id:r.id||"anonymous",observers:u};return c=n.start?n.start(E):c,x}var XLn={sync:!1,autoForward:!1},If;(function(n){n[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped"})(If||(If={}));var KLn=function(){function n(r,c){c===void 0&&(c=n.defaultOptions);var u=this;this.machine=r,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=If.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(T,P){if(cN(T))return u.batch(T),u.state;var I=Yh(_De(T,P));if(u.status===If.Stopped)return u.state;if(u.status!==If.Running&&!u.options.deferEvents)throw new Error('Event "'.concat(I.name,'" was sent to uninitialized service "').concat(u.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options. -Event: `).concat(JSON.stringify(I.data)));return u.scheduler.schedule(function(){u.forward(I);var O=u._nextState(I);u.update(O,I)}),u._state},this.sendTo=function(T,P,I){var O=u.parent&&(P===Iv.Parent||u.parent.id===P),N=O?u.parent:oc(P)?u.children.get(P)||bse.get(P):xLn(P)?P:void 0;if(!N){if(!O)throw new Error("Unable to send event to child '".concat(P,"' from service '").concat(u.id,"'."));return}if("machine"in N){if(u.status!==If.Stopped||u.parent!==N||u.state.done){var j=Nr(Nr({},T),{name:T.name===cLn?"".concat(_U(u.id)):T.name,origin:u.sessionId});!I&&u.machine.config.predictableActionArguments?u._outgoingQueue.push([N,j]):N.send(j)}}else!I&&u.machine.config.predictableActionArguments?u._outgoingQueue.push([N,T.data]):N.send(T.data)},this._exec=function(T,P,I,O){O===void 0&&(O=u.machine.options.actions);var N=T.exec||pPe(T.type,O),j=zc(N)?N:N?N.exec:T.exec;if(j)try{return j(P,I.data,u.machine.config.predictableActionArguments?{action:T,_event:I}:{action:T,state:u.state,_event:I})}catch(Ge){throw u.parent&&u.parent.send({type:"xstate.error",data:Ge}),Ge}switch(T.type){case AD:var L=T;if(typeof L.delay=="number"){u.defer(L);return}else L.to?u.sendTo(L._event,L.to,I===nD):u.send(L._event);break;case jRt:u.cancel(T.sendId);break;case lPe:{if(u.status!==If.Running)return;var $=T.activity;if(!u.machine.config.predictableActionArguments&&!u.state.activities[$.id||$.type])break;if($.type===Uc.Invoke){var F=qRt($.src),B=u.machine.options.services?u.machine.options.services[F.type]:void 0,X=$.id,ne=$.data,Z="autoForward"in $?$.autoForward:!!$.forward;if(!B)return;var H=ne?jce(ne,P,I):void 0;if(typeof B=="string")return;var ce=zc(B)?B(P,I.data,{data:H,src:F,meta:$.meta}):B;if(!ce)return;var pe=void 0;PD(ce)&&(ce=H?ce.withContext(H):ce,pe={autoForward:Z}),u.spawn(ce,X,pe)}else u.spawnActivity($);break}case ADe:{u.stopChild(T.activity.id);break}case RRt:var le=T.label,ye=T.value;le?u.logger(le,ye):u.logger(ye);break}};var d=Nr(Nr({},n.defaultOptions),c),p=d.clock,m=d.logger,x=d.parent,E=d.id,k=E!==void 0?E:r.id;this.id=k,this.logger=m,this.clock=p,this.parent=x,this.options=d,this.scheduler=new C9t({deferEvents:this.options.deferEvents}),this.sessionId=bse.bookId()}return Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this;return this._initialState?this._initialState:gM(this,function(){return r._initialState=r.machine.initialState,r._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.prototype.execute=function(r,c){var u,d;try{for(var p=ha(r.actions),m=p.next();!m.done;m=p.next()){var x=m.value;this.exec(x,r,c)}}catch(E){u={error:E}}finally{try{m&&!m.done&&(d=p.return)&&d.call(p)}finally{if(u)throw u.error}}},n.prototype.update=function(r,c){var u,d,p,m,x,E,k,T,P=this;if(r._sessionid=this.sessionId,this._state=r,(!this.machine.config.predictableActionArguments||c===nD)&&this.options.execute)this.execute(this.state);else for(var I=void 0;I=this._outgoingQueue.shift();)I[0].send(I[1]);if(this.children.forEach(function(pe){P.state.children[pe.id]=pe}),this.devTools&&this.devTools.send(c.data,r),r.event)try{for(var O=ha(this.eventListeners),N=O.next();!N.done;N=O.next()){var j=N.value;j(r.event)}}catch(pe){u={error:pe}}finally{try{N&&!N.done&&(d=O.return)&&d.call(O)}finally{if(u)throw u.error}}try{for(var L=ha(this.listeners),$=L.next();!$.done;$=L.next()){var j=$.value;j(r,r.event)}}catch(pe){p={error:pe}}finally{try{$&&!$.done&&(m=L.return)&&m.call(L)}finally{if(p)throw p.error}}try{for(var F=ha(this.contextListeners),B=F.next();!B.done;B=F.next()){var X=B.value;X(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(pe){x={error:pe}}finally{try{B&&!B.done&&(E=F.return)&&E.call(F)}finally{if(x)throw x.error}}if(this.state.done){var ne=r.configuration.find(function(pe){return pe.type==="final"&&pe.parent===P.machine}),Z=ne&&ne.doneData?jce(ne.doneData,r.context,c):void 0;try{for(var H=ha(this.doneListeners),ce=H.next();!ce.done;ce=H.next()){var j=ce.value;j(Tae(this.id,Z))}}catch(pe){k={error:pe}}finally{try{ce&&!ce.done&&(T=H.return)&&T.call(H)}finally{if(k)throw k.error}}this._stop(),this._stopChildren()}},n.prototype.onTransition=function(r){return this.listeners.add(r),this.status===If.Running&&r(this.state,this.state.event),this},n.prototype.subscribe=function(r,c,u){var d=this,p=vH(r,c,u);this.listeners.add(p.next),this.status!==If.NotStarted&&p.next(this.state);var m=function(){d.doneListeners.delete(m),d.stopListeners.delete(m),p.complete()};return this.status===If.Stopped?p.complete():(this.onDone(m),this.onStop(m)),{unsubscribe:function(){d.listeners.delete(p.next),d.doneListeners.delete(m),d.stopListeners.delete(m)}}},n.prototype.onEvent=function(r){return this.eventListeners.add(r),this},n.prototype.onSend=function(r){return this.sendListeners.add(r),this},n.prototype.onChange=function(r){return this.contextListeners.add(r),this},n.prototype.onStop=function(r){return this.stopListeners.add(r),this},n.prototype.onDone=function(r){return this.doneListeners.add(r),this},n.prototype.off=function(r){return this.listeners.delete(r),this.eventListeners.delete(r),this.sendListeners.delete(r),this.stopListeners.delete(r),this.doneListeners.delete(r),this.contextListeners.delete(r),this},n.prototype.start=function(r){var c=this;if(this.status===If.Running)return this;this.machine._init(),bse.register(this.sessionId,this),this.initialized=!0,this.status=If.Running;var u=r===void 0?this.initialState:gM(this,function(){return zLn(r)?c.machine.resolveState(r):c.machine.resolveState(wb.from(r,c.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){c.update(u,nD)}),this},n.prototype._stopChildren=function(){this.children.forEach(function(r){zc(r.stop)&&r.stop()}),this.children.clear()},n.prototype._stop=function(){var r,c,u,d,p,m,x,E,k,T;try{for(var P=ha(this.listeners),I=P.next();!I.done;I=P.next()){var O=I.value;this.listeners.delete(O)}}catch(H){r={error:H}}finally{try{I&&!I.done&&(c=P.return)&&c.call(P)}finally{if(r)throw r.error}}try{for(var N=ha(this.stopListeners),j=N.next();!j.done;j=N.next()){var O=j.value;O(),this.stopListeners.delete(O)}}catch(H){u={error:H}}finally{try{j&&!j.done&&(d=N.return)&&d.call(N)}finally{if(u)throw u.error}}try{for(var L=ha(this.contextListeners),$=L.next();!$.done;$=L.next()){var O=$.value;this.contextListeners.delete(O)}}catch(H){p={error:H}}finally{try{$&&!$.done&&(m=L.return)&&m.call(L)}finally{if(p)throw p.error}}try{for(var F=ha(this.doneListeners),B=F.next();!B.done;B=F.next()){var O=B.value;this.doneListeners.delete(O)}}catch(H){x={error:H}}finally{try{B&&!B.done&&(E=F.return)&&E.call(F)}finally{if(x)throw x.error}}if(!this.initialized)return this;this.initialized=!1,this.status=If.Stopped,this._initialState=void 0;try{for(var X=ha(Object.keys(this.delayedEventsMap)),ne=X.next();!ne.done;ne=X.next()){var Z=ne.value;this.clock.clearTimeout(this.delayedEventsMap[Z])}}catch(H){k={error:H}}finally{try{ne&&!ne.done&&(T=X.return)&&T.call(X)}finally{if(k)throw k.error}}this.scheduler.clear(),this.scheduler=new C9t({deferEvents:this.options.deferEvents})},n.prototype.stop=function(){var r=this,c=this.scheduler;return this._stop(),c.schedule(function(){var u=Yh({type:"xstate.stop"}),d=gM(r,function(){var p=Sl(Fc([],na(r.state.configuration),!1).sort(function(T,P){return P.order-T.order}).map(function(T){return GE(T.onExit,r.machine.options.actions)})),m=na(Rce(r.machine,r.state,r.state.context,u,[p],r.machine.config.predictableActionArguments?r._exec:void 0,r.machine.config.predictableActionArguments||r.machine.config.preserveActionOrder),2),x=m[0],E=m[1],k=new wb({value:r.state.value,context:E,_event:u,_sessionid:r.sessionId,historyValue:void 0,history:r.state,actions:x.filter(function(T){return T.type!==TD&&(T.type!==AD||!!T.to&&T.to!==Iv.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:r.state.done,tags:r.state.tags,machine:r.machine});return k.changed=!0,k});r.update(d,u),r._stopChildren(),bse.free(r.sessionId)}),this},n.prototype.batch=function(r){var c=this;if(!(this.status===If.NotStarted&&this.options.deferEvents)){if(this.status!==If.Running)throw new Error("".concat(r.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(!!r.length){var u=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var d,p,m=c.state,x=!1,E=[],k=function(O){var N=Yh(O);c.forward(N),m=gM(c,function(){return c.machine.transition(m,N,void 0,u||void 0)}),E.push.apply(E,Fc([],na(c.machine.config.predictableActionArguments?m.actions:m.actions.map(function(j){return VLn(j,m)})),!1)),x=x||!!m.changed};try{for(var T=ha(r),P=T.next();!P.done;P=T.next()){var I=P.value;k(I)}}catch(O){d={error:O}}finally{try{P&&!P.done&&(p=T.return)&&p.call(T)}finally{if(d)throw d.error}}m.changed=x,m.actions=E,c.update(m,Yh(r[r.length-1]))})}},n.prototype.sender=function(r){return this.send.bind(this,r)},n.prototype._nextState=function(r,c){var u=this;c===void 0&&(c=!!this.machine.config.predictableActionArguments&&this._exec);var d=Yh(r);if(d.name.indexOf(v9t)===0&&!this.state.nextEvents.some(function(m){return m.indexOf(v9t)===0}))throw d.data.data;var p=gM(this,function(){return u.machine.transition(u.state,d,void 0,c||void 0)});return p},n.prototype.nextState=function(r){return this._nextState(r,!1)},n.prototype.forward=function(r){var c,u;try{for(var d=ha(this.forwardTo),p=d.next();!p.done;p=d.next()){var m=p.value,x=this.children.get(m);if(!x)throw new Error("Unable to forward event '".concat(r,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(m,"'."));x.send(r)}}catch(E){c={error:E}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(c)throw c.error}}},n.prototype.defer=function(r){var c=this;this.delayedEventsMap[r.id]=this.clock.setTimeout(function(){r.to?c.sendTo(r._event,r.to,!0):c.send(r._event)},r.delay)},n.prototype.cancel=function(r){this.clock.clearTimeout(this.delayedEventsMap[r]),delete this.delayedEventsMap[r]},n.prototype.exec=function(r,c,u){u===void 0&&(u=this.machine.options.actions),this._exec(r,c.context,c._event,u)},n.prototype.removeChild=function(r){var c;this.children.delete(r),this.forwardTo.delete(r),(c=this.state)===null||c===void 0||delete c.children[r]},n.prototype.stopChild=function(r){var c=this.children.get(r);!c||(this.removeChild(r),zc(c.stop)&&c.stop())},n.prototype.spawn=function(r,c,u){if(this.status!==If.Running)return GRt(r,c);if(x9t(r))return this.spawnPromise(Promise.resolve(r),c);if(zc(r))return this.spawnCallback(r,c);if(RLn(r))return this.spawnActor(r,c);if(wLn(r))return this.spawnObservable(r,c);if(PD(r))return this.spawnMachine(r,Nr(Nr({},u),{id:c}));if(bLn(r))return this.spawnBehavior(r,c);throw new Error('Unable to spawn entity "'.concat(c,'" of type "').concat(typeof r,'".'))},n.prototype.spawnMachine=function(r,c){var u=this;c===void 0&&(c={});var d=new n(r,Nr(Nr({},this.options),{parent:this,id:c.id||r.id})),p=Nr(Nr({},XLn),c);p.sync&&d.onTransition(function(x){u.send($Rt,{state:x,id:d.id})});var m=d;return this.children.set(d.id,m),p.autoForward&&this.forwardTo.add(d.id),d.onDone(function(x){u.removeChild(d.id),u.send(Yh(x,{origin:d.id}))}).start(),m},n.prototype.spawnBehavior=function(r,c){var u=GLn(r,{id:c,parent:this});return this.children.set(c,u),u},n.prototype.spawnPromise=function(r,c){var u,d=this,p=!1,m;r.then(function(E){p||(m=E,d.removeChild(c),d.send(Yh(Tae(c,E),{origin:c})))},function(E){if(!p){d.removeChild(c);var k=_U(c,E);try{d.send(Yh(k,{origin:c}))}catch{d.devTools&&d.devTools.send(k,d.state),d.machine.strict&&d.stop()}}});var x=(u={id:c,send:function(){},subscribe:function(E,k,T){var P=vH(E,k,T),I=!1;return r.then(function(O){I||(P.next(O),!I&&P.complete())},function(O){I||P.error(O)}),{unsubscribe:function(){return I=!0}}},stop:function(){p=!0},toJSON:function(){return{id:c}},getSnapshot:function(){return m}},u[WE]=function(){return this},u);return this.children.set(c,x),x},n.prototype.spawnCallback=function(r,c){var u,d=this,p=!1,m=new Set,x=new Set,E,k=function(I){E=I,x.forEach(function(O){return O(I)}),!p&&d.send(Yh(I,{origin:c}))},T;try{T=r(k,function(I){m.add(I)})}catch(I){this.send(_U(c,I))}if(x9t(T))return this.spawnPromise(T,c);var P=(u={id:c,send:function(I){return m.forEach(function(O){return O(I)})},subscribe:function(I){var O=vH(I);return x.add(O.next),{unsubscribe:function(){x.delete(O.next)}}},stop:function(){p=!0,zc(T)&&T()},toJSON:function(){return{id:c}},getSnapshot:function(){return E}},u[WE]=function(){return this},u);return this.children.set(c,P),P},n.prototype.spawnObservable=function(r,c){var u,d=this,p,m=r.subscribe(function(E){p=E,d.send(Yh(E,{origin:c}))},function(E){d.removeChild(c),d.send(Yh(_U(c,E),{origin:c}))},function(){d.removeChild(c),d.send(Yh(Tae(c),{origin:c}))}),x=(u={id:c,send:function(){},subscribe:function(E,k,T){return r.subscribe(E,k,T)},stop:function(){return m.unsubscribe()},getSnapshot:function(){return p},toJSON:function(){return{id:c}}},u[WE]=function(){return this},u);return this.children.set(c,x),x},n.prototype.spawnActor=function(r,c){return this.children.set(c,r),r},n.prototype.spawnActivity=function(r){var c=this.machine.options&&this.machine.options.activities?this.machine.options.activities[r.type]:void 0;if(!!c){var u=c(this.state.context,r);this.spawnEffect(r.id,u)}},n.prototype.spawnEffect=function(r,c){var u;this.children.set(r,(u={id:r,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:c||void 0,getSnapshot:function(){},toJSON:function(){return{id:r}}},u[WE]=function(){return this},u))},n.prototype.attachDev=function(){var r=DDe();if(this.options.devTools&&r){if(r.__REDUX_DEVTOOLS_EXTENSION__){var c=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=r.__REDUX_DEVTOOLS_EXTENSION__.connect(Nr(Nr({name:this.id,autoPause:!0,stateSanitizer:function(u){return{value:u.value,context:u.context,actions:u.actions}}},c),{features:Nr({jump:!1,skip:!1},c?c.features:void 0)}),this.machine),this.devTools.init(this.state)}WLn(this)}},n.prototype.toJSON=function(){return{id:this.id}},n.prototype[WE]=function(){return this},n.prototype.getSnapshot=function(){return this.status===If.NotStarted?this.initialState:this._state},n.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(r,c){return setTimeout(r,c)},clearTimeout:function(r){return clearTimeout(r)}},logger:console.log.bind(console),devTools:!1},n.interpret=NDe,n}();function NDe(n,r){var c=new KLn(n,r);return c}function YLn(n){if(typeof n=="string"){var r={type:n};return r.toString=function(){return n},r}return n}function mse(n){return Nr(Nr({type:fPe},n),{toJSON:function(){n.onDone,n.onError;var r=TDe(n,["onDone","onError"]);return Nr(Nr({},r),{type:fPe,src:YLn(n.src)})}})}var vse="",bPe="#",n7e="*",Q_={},Z_=function(n){return n[0]===bPe},QLn=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ZLn=function(){function n(r,c,u,d){u===void 0&&(u="context"in r?r.context:void 0);var p=this,m;this.config=r,this._context=u,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(QLn(),c),this.parent=d==null?void 0:d.parent,this.key=this.config.key||(d==null?void 0:d.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:LRt),this.id=this.config.id||Fc([this.machine.key],na(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(m=this.config.schema)!==null&&m!==void 0?m:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?OU(this.config.states,function(k,T){var P,I=new n(k,{},void 0,{parent:p,key:T});return Object.assign(p.idMap,Nr((P={},P[I.id]=I,P),I.idMap)),I}):Q_;var x=0;function E(k){var T,P;k.order=x++;try{for(var I=ha(XRt(k)),O=I.next();!O.done;O=I.next()){var N=O.value;E(N)}}catch(j){T={error:j}}finally{try{O&&!O.done&&(P=I.return)&&P.call(I)}finally{if(T)throw T.error}}}E(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(k){var T=k.event;return T===vse}):vse in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=mw(this.config.entry||this.config.onEntry).map(function(k){return bq(k)}),this.onExit=mw(this.config.exit||this.config.onExit).map(function(k){return bq(k)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=mw(this.config.invoke).map(function(k,T){var P,I;if(PD(k)){var O=pse(p.id,T);return p.machine.options.services=Nr((P={},P[O]=k,P),p.machine.options.services),mse({src:O,id:O})}else if(oc(k.src)){var O=k.id||pse(p.id,T);return mse(Nr(Nr({},k),{id:O,src:k.src}))}else if(PD(k.src)||zc(k.src)){var O=k.id||pse(p.id,T);return p.machine.options.services=Nr((I={},I[O]=k.src,I),p.machine.options.services),mse(Nr(Nr({id:O},k),{src:O}))}else{var N=k.src;return mse(Nr(Nr({id:pse(p.id,T)},k),{src:N}))}}),this.activities=mw(this.config.activities).concat(this.invoke).map(function(k){return MDe(k)}),this.transition=this.transition.bind(this),this.tags=mw(this.config.tags)}return n.prototype._init=function(){this.__cache.transitions||KRt(this).forEach(function(r){return r.on})},n.prototype.withConfig=function(r,c){var u=this.options,d=u.actions,p=u.activities,m=u.guards,x=u.services,E=u.delays;return new n(this.config,{actions:Nr(Nr({},d),r.actions),activities:Nr(Nr({},p),r.activities),guards:Nr(Nr({},m),r.guards),services:Nr(Nr({},x),r.services),delays:Nr(Nr({},E),r.delays)},c!=null?c:this.context)},n.prototype.withContext=function(r){return new n(this.config,this.options,r)},Object.defineProperty(n.prototype,"context",{get:function(){return zc(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:OU(this.states,function(r){return r.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return this.definition},Object.defineProperty(n.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var r=this.transitions;return this.__cache.on=r.reduce(function(c,u){return c[u.eventType]=c[u.eventType]||[],c[u.eventType].push(u),c},{})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),n.prototype.getCandidates=function(r){if(this.__cache.candidates[r])return this.__cache.candidates[r];var c=r===vse,u=this.transitions.filter(function(d){var p=d.eventType===r;return c?p:p||d.eventType===n7e});return this.__cache.candidates[r]=u,u},n.prototype.getDelayedTransitions=function(){var r=this,c=this.config.after;if(!c)return[];var u=function(p,m){var x=zc(p)?"".concat(r.id,":delay[").concat(m,"]"):p,E=MLn(x,r.id);return r.onEntry.push(Kle(E,{delay:p})),r.onExit.push(TLn(E)),E},d=cN(c)?c.map(function(p,m){var x=u(p.delay,m);return Nr(Nr({},p),{event:x})}):Sl(Object.keys(c).map(function(p,m){var x=c[p],E=oc(x)?{target:x}:x,k=isNaN(+p)?p:+p,T=u(k,m);return mw(E).map(function(P){return Nr(Nr({},P),{event:T,delay:k})})}));return d.map(function(p){var m=p.delay;return Nr(Nr({},r.formatTransition(p)),{delay:m})})},n.prototype.getStateNodes=function(r){var c,u=this;if(!r)return[];var d=r instanceof wb?r.value:mH(r,this.delimiter);if(oc(d)){var p=this.getStateNode(d).initial;return p!==void 0?this.getStateNodes((c={},c[d]=p,c)):[this,this.states[d]]}var m=Object.keys(d),x=[this];return x.push.apply(x,Fc([],na(Sl(m.map(function(E){return u.getStateNode(E).getStateNodes(d[E])}))),!1)),x},n.prototype.handles=function(r){var c=BRt(r);return this.events.includes(c)},n.prototype.resolveState=function(r){var c=r instanceof wb?r:wb.create(r),u=Array.from(MU([],this.getStateNodes(c.value)));return new wb(Nr(Nr({},c),{value:this.resolve(c.value),configuration:u,done:Aae(u,this),tags:k9t(u),machine:this.machine}))},n.prototype.transitionLeafNode=function(r,c,u){var d=this.getStateNode(r),p=d.next(c,u);return!p||!p.transitions.length?this.next(c,u):p},n.prototype.transitionCompoundNode=function(r,c,u){var d=Object.keys(r),p=this.getStateNode(d[0]),m=p._transition(r[d[0]],c,u);return!m||!m.transitions.length?this.next(c,u):m},n.prototype.transitionParallelNode=function(r,c,u){var d,p,m={};try{for(var x=ha(Object.keys(r)),E=x.next();!E.done;E=x.next()){var k=E.value,T=r[k];if(!!T){var P=this.getStateNode(k),I=P._transition(T,c,u);I&&(m[k]=I)}}}catch(F){d={error:F}}finally{try{E&&!E.done&&(p=x.return)&&p.call(x)}finally{if(d)throw d.error}}var O=Object.keys(m).map(function(F){return m[F]}),N=Sl(O.map(function(F){return F.transitions})),j=O.some(function(F){return F.transitions.length>0});if(!j)return this.next(c,u);var L=Sl(O.map(function(F){return F.entrySet})),$=Sl(Object.keys(m).map(function(F){return m[F].configuration}));return{transitions:N,entrySet:L,exitSet:Sl(O.map(function(F){return F.exitSet})),configuration:$,source:c,actions:Sl(Object.keys(m).map(function(F){return m[F].actions}))}},n.prototype._transition=function(r,c,u){return oc(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)},n.prototype.getTransitionData=function(r,c){return this._transition(r.value,r,Yh(c))},n.prototype.next=function(r,c){var u,d,p=this,m=c.name,x=[],E=[],k;try{for(var T=ha(this.getCandidates(m)),P=T.next();!P.done;P=T.next()){var I=P.value,O=I.cond,N=I.in,j=r.context,L=N?oc(N)&&Z_(N)?r.matches(mH(this.getStateNodeById(N).path,this.delimiter)):ODe(mH(N,this.delimiter),hLn(this.path.slice(0,-2))(r.value)):!0,$=!1;try{$=!O||HRt(this.machine,O,j,c,r)}catch(ne){throw new Error("Unable to evaluate guard '".concat(O.name||O.type,"' in transition for event '").concat(m,"' in state node '").concat(this.id,`': -`).concat(ne.message))}if($&&L){I.target!==void 0&&(E=I.target),x.push.apply(x,Fc([],na(I.actions),!1)),k=I;break}}}catch(ne){u={error:ne}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}if(!!k){if(!E.length)return{transitions:[k],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:x};var F=Sl(E.map(function(ne){return p.getRelativeStateNodes(ne,r.historyValue)})),B=!!k.internal,X=[];return B||E.forEach(function(ne){X.push.apply(X,Fc([],na(p.getExternalReentryNodes(ne)),!1))}),{transitions:[k],entrySet:X,exitSet:B?[]:[this],configuration:F,source:r,actions:x}}},n.prototype.getExternalReentryNodes=function(r){for(var c=[],u=na(r.order>this.order?[r,this]:[this,r],2),d=u[0],p=u[1];d&&d!==p;)c.push(d),d=d.parent;return d!==p?[]:(c.push(p),c)},n.prototype.getActions=function(r,c,u,d,p,m,x){var E,k,T,P,I=this,O=MU([],m?this.getStateNodes(m.value):[this]);try{for(var N=ha(r),j=N.next();!j.done;j=N.next()){var L=j.value;(!DU(O,L)||DU(u.entrySet,L.parent))&&u.entrySet.push(L)}}catch(le){E={error:le}}finally{try{j&&!j.done&&(k=N.return)&&k.call(N)}finally{if(E)throw E.error}}try{for(var $=ha(O),F=$.next();!F.done;F=$.next()){var L=F.value;(!DU(r,L)||DU(u.exitSet,L.parent))&&u.exitSet.push(L)}}catch(le){T={error:le}}finally{try{F&&!F.done&&(P=$.return)&&P.call($)}finally{if(T)throw T.error}}var B=Sl(u.entrySet.map(function(le){var ye=[];if(le.type!=="final")return ye;var Ge=le.parent;if(!Ge.parent)return ye;ye.push(gse(le.id,le.doneData),gse(Ge.id,le.doneData?jce(le.doneData,d,p):void 0));var qe=Ge.parent;return qe.type==="parallel"&&mq(qe).every(function(et){return Aae(u.configuration,et)})&&ye.push(gse(qe.id)),ye}));u.exitSet.sort(function(le,ye){return ye.order-le.order}),u.entrySet.sort(function(le,ye){return le.order-ye.order});var X=new Set(u.entrySet),ne=new Set(u.exitSet),Z=Array.from(X).map(function(le){var ye=le.onEntry,Ge=le.activities.map(function(qe){return ALn(qe)});return GE(x?Fc(Fc([],na(ye),!1),na(Ge),!1):Fc(Fc([],na(Ge),!1),na(ye),!1),I.machine.options.actions)}).concat([B.map(q9)]),H=Array.from(ne).map(function(le){return GE(Fc(Fc([],na(le.onExit),!1),na(le.activities.map(function(ye){return PLn(ye)})),!1),I.machine.options.actions)}),ce=H.concat([GE(u.actions,this.machine.options.actions)]).concat(Z);if(c){var pe=GE(Sl(Fc([],na(r),!1).sort(function(le,ye){return ye.order-le.order}).map(function(le){return le.onExit})),this.machine.options.actions).filter(function(le){return le.type!==TD&&(le.type!==AD||!!le.to&&le.to!==Iv.Internal)});return ce.concat([pe])}return ce},n.prototype.transition=function(r,c,u,d){r===void 0&&(r=this.initialState);var p=Yh(c),m;if(r instanceof wb)m=u===void 0?r:this.resolveState(wb.from(r,u));else{var x=oc(r)?this.resolve(Nce(this.getResolvedPath(r))):this.resolve(r),E=u!=null?u:this.machine.context;m=this.resolveState(wb.from(x,E))}if(this.strict&&!this.events.includes(p.name)&&!gLn(p.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(p.name,"'"));var k=this._transition(m.value,m,p)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:m,actions:[]},T=MU([],this.getStateNodes(m.value)),P=k.configuration.length?MU(T,k.configuration):T;return k.configuration=Fc([],na(P),!1),this.resolveTransition(k,m,m.context,d,p)},n.prototype.resolveRaisedTransition=function(r,c,u,d){var p,m=r.actions;return r=this.transition(r,c,void 0,d),r._event=u,r.event=u.data,(p=r.actions).unshift.apply(p,Fc([],na(m),!1)),r},n.prototype.resolveTransition=function(r,c,u,d,p){var m,x,E,k,T=this;p===void 0&&(p=nD);var P=r.configuration,I=!c||r.transitions.length>0,O=I?r.configuration:c?c.configuration:[],N=Aae(O,this),j=I?LLn(this.machine,P):void 0,L=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,$=this.getActions(new Set(O),N,r,u,p,c,d),F=c?Nr({},c.activities):{};try{for(var B=ha($),X=B.next();!X.done;X=B.next()){var ne=X.value;try{for(var Z=(E=void 0,ha(ne)),H=Z.next();!H.done;H=Z.next()){var ce=H.value;ce.type===lPe?F[ce.activity.id||ce.activity.type]=ce:ce.type===ADe&&(F[ce.activity.id||ce.activity.type]=!1)}}catch(sn){E={error:sn}}finally{try{H&&!H.done&&(k=Z.return)&&k.call(Z)}finally{if(E)throw E.error}}}}catch(sn){m={error:sn}}finally{try{X&&!X.done&&(x=B.return)&&x.call(B)}finally{if(m)throw m.error}}var pe=na(Rce(this,c,u,p,$,d,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),le=pe[0],ye=pe[1],Ge=na(mLn(le,function(sn){return sn.type===TD||sn.type===AD&&sn.to===Iv.Internal}),2),qe=Ge[0],et=Ge[1],tt=le.filter(function(sn){var Tn;return sn.type===lPe&&((Tn=sn.activity)===null||Tn===void 0?void 0:Tn.type)===fPe}),jt=tt.reduce(function(sn,Tn){return sn[Tn.activity.id]=NLn(Tn.activity,T.machine,ye,p),sn},c?Nr({},c.children):{}),Me=new wb({value:j||c.value,context:ye,_event:p,_sessionid:c?c._sessionid:null,historyValue:j?L?vLn(L,j):void 0:c?c.historyValue:void 0,history:!j||r.source?c:void 0,actions:j?et:[],activities:j?F:c?c.activities:{},events:[],configuration:O,transitions:r.transitions,children:jt,done:N,tags:k9t(O),machine:this}),ze=u!==ye;Me.changed=p.name===$Rt||ze;var we=Me.history;we&&delete we.history;var De=!N&&(this._transient||P.some(function(sn){return sn._transient}));if(!I&&(!De||p.name===vse))return Me;var be=Me;if(!N)for(De&&(be=this.resolveRaisedTransition(be,{type:sLn},p,d));qe.length;){var Se=qe.shift();be=this.resolveRaisedTransition(be,Se._event,p,d)}var Jt=be.changed||(we?!!be.actions.length||ze||typeof we.value!=typeof be.value||!QRt(be.value,we.value):void 0);return be.changed=Jt,be.history=we,be},n.prototype.getStateNode=function(r){if(Z_(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error("Unable to retrieve child state '".concat(r,"' from '").concat(this.id,"'; no child states exist."));var c=this.states[r];if(!c)throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return c},n.prototype.getStateNodeById=function(r){var c=Z_(r)?r.slice(bPe.length):r;if(c===this.id)return this;var u=this.machine.idMap[c];if(!u)throw new Error("Child state node '#".concat(c,"' does not exist on machine '").concat(this.id,"'"));return u},n.prototype.getStateNodeByPath=function(r){if(typeof r=="string"&&Z_(r))try{return this.getStateNodeById(r.slice(1))}catch{}for(var c=hPe(r,this.delimiter).slice(),u=this;c.length;){var d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u},n.prototype.resolve=function(r){var c,u=this;if(!r)return this.initialStateValue||Q_;switch(this.type){case"parallel":return OU(this.initialStateValue,function(p,m){return p?u.getStateNode(m).resolve(r[m]||p):Q_});case"compound":if(oc(r)){var d=this.getStateNode(r);return d.type==="parallel"||d.type==="compound"?(c={},c[r]=d.initialStateValue,c):r}return Object.keys(r).length?OU(r,function(p,m){return p?u.getStateNode(m).resolve(p):Q_}):this.initialStateValue||{};default:return r||Q_}},n.prototype.getResolvedPath=function(r){if(Z_(r)){var c=this.machine.idMap[r.slice(bPe.length)];if(!c)throw new Error("Unable to find state node '".concat(r,"'"));return c.path}return hPe(r,this.delimiter)},Object.defineProperty(n.prototype,"initialStateValue",{get:function(){var r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var c;if(this.type==="parallel")c=w9t(this.states,function(u){return u.initialStateValue||Q_},function(u){return u.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));c=$ce(this.states[this.initial])?this.initial:(r={},r[this.initial]=this.states[this.initial].initialStateValue,r)}else c={};return this.__cache.initialStateValue=c,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),n.prototype.getInitialState=function(r,c){this._init();var u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:Fc([],na(u),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)},Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this.initialStateValue;if(!r)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"target",{get:function(){var r;if(this.type==="history"){var c=this.config;oc(c.target)?r=Z_(c.target)?Nce(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r},enumerable:!1,configurable:!0}),n.prototype.getRelativeStateNodes=function(r,c,u){return u===void 0&&(u=!0),u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]},Object.defineProperty(n.prototype,"initialStateNodes",{get:function(){var r=this;if($ce(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var c=Iae(this.initialStateValue);return Sl(c.map(function(u){return r.getFromRelativePath(u)}))},enumerable:!1,configurable:!0}),n.prototype.getFromRelativePath=function(r){if(!r.length)return[this];var c=na(r),u=c[0],d=c.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(u,"' from node with no states"));var p=this.getStateNode(u);if(p.type==="history")return p.resolveHistory();if(!this.states[u])throw new Error("Child state '".concat(u,"' does not exist on '").concat(this.id,"'"));return this.states[u].getFromRelativePath(d)},n.prototype.historyValue=function(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:w9t(this.states,function(c,u){if(!r)return c.historyValue();var d=oc(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},function(c){return!c.history})}},n.prototype.resolveHistory=function(r){var c=this;if(this.type!=="history")return[this];var u=this.parent;if(!r){var d=this.target;return d?Sl(Iae(d).map(function(m){return u.getFromRelativePath(m)})):u.initialStateNodes}var p=pLn(u.path,"states")(r).current;return oc(p)?[u.getStateNode(p)]:Sl(Iae(p).map(function(m){return c.history==="deep"?u.getFromRelativePath(m):[u.states[m[0]]]}))},Object.defineProperty(n.prototype,"stateIds",{get:function(){var r=this,c=Sl(Object.keys(this.states).map(function(u){return r.states[u].stateIds}));return[this.id].concat(c)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"events",{get:function(){var r,c,u,d;if(this.__cache.events)return this.__cache.events;var p=this.states,m=new Set(this.ownEvents);if(p)try{for(var x=ha(Object.keys(p)),E=x.next();!E.done;E=x.next()){var k=E.value,T=p[k];if(T.states)try{for(var P=(u=void 0,ha(T.events)),I=P.next();!I.done;I=P.next()){var O=I.value;m.add("".concat(O))}}catch(N){u={error:N}}finally{try{I&&!I.done&&(d=P.return)&&d.call(P)}finally{if(u)throw u.error}}}}catch(N){r={error:N}}finally{try{E&&!E.done&&(c=x.return)&&c.call(x)}finally{if(r)throw r.error}}return this.__cache.events=Array.from(m)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ownEvents",{get:function(){var r=new Set(this.transitions.filter(function(c){return!(!c.target&&!c.actions.length&&c.internal)}).map(function(c){return c.eventType}));return Array.from(r)},enumerable:!1,configurable:!0}),n.prototype.resolveTarget=function(r){var c=this;if(r!==void 0)return r.map(function(u){if(!oc(u))return u;var d=u[0]===c.delimiter;if(d&&!c.parent)return c.getStateNodeByPath(u.slice(1));var p=d?c.key+u:u;if(c.parent)try{var m=c.parent.getStateNodeByPath(p);return m}catch(x){throw new Error("Invalid transition definition for state node '".concat(c.id,`': -`).concat(x.message))}else return c.getStateNodeByPath(p)})},n.prototype.formatTransition=function(r){var c=this,u=SLn(r.target),d="internal"in r?r.internal:u?u.some(function(E){return oc(E)&&E[0]===c.delimiter}):!0,p=this.machine.options.guards,m=this.resolveTarget(u),x=Nr(Nr({},r),{actions:GE(mw(r.actions)),cond:URt(r.cond,p),target:m,source:this,internal:d,eventType:r.event,toJSON:function(){return Nr(Nr({},x),{target:x.target?x.target.map(function(E){return"#".concat(E.id)}):void 0,source:"#".concat(c.id)})}});return x},n.prototype.formatTransitions=function(){var r,c,u=this,d;if(!this.config.on)d=[];else if(Array.isArray(this.config.on))d=this.config.on;else{var p=this.config.on,m=n7e,x=p[m],E=x===void 0?[]:x,k=TDe(p,[typeof m=="symbol"?m:m+""]);d=Sl(Object.keys(k).map(function(F){var B=Y_(F,k[F]);return B}).concat(Y_(n7e,E)))}var T=this.config.always?Y_("",this.config.always):[],P=this.config.onDone?Y_(String(gse(this.id)),this.config.onDone):[],I=Sl(this.invoke.map(function(F){var B=[];return F.onDone&&B.push.apply(B,Fc([],na(Y_(String(Tae(F.id)),F.onDone)),!1)),F.onError&&B.push.apply(B,Fc([],na(Y_(String(_U(F.id)),F.onError)),!1)),B})),O=this.after,N=Sl(Fc(Fc(Fc(Fc([],na(P),!1),na(I),!1),na(d),!1),na(T),!1).map(function(F){return mw(F).map(function(B){return u.formatTransition(B)})}));try{for(var j=ha(O),L=j.next();!L.done;L=j.next()){var $=L.value;N.push($)}}catch(F){r={error:F}}finally{try{L&&!L.done&&(c=j.return)&&c.call(j)}finally{if(r)throw r.error}}return N},n}(),I9t=!1;function sg(n,r){return!FRt&&!n.predictableActionArguments&&!I9t&&(I9t=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new ZLn(n,r)}var eo=_Ln,yH=CLn,ZRt=U.exports.useLayoutEffect;function mPe(n){var r=U.exports.useRef();return r.current||(r.current={v:n()}),r.current.v}var Lce=globalThis&&globalThis.__assign||function(){return Lce=Object.assign||function(n){for(var r,c=1,u=arguments.length;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function JRt(n,r){var c=mPe(function(){return typeof n=="function"?n():n}),u=r.context,d=r.guards,p=r.actions,m=r.activities,x=r.services,E=r.delays;r.state;var k=JLn(r,["context","guards","actions","activities","services","delays","state"]),T=mPe(function(){var P={context:u,guards:d,actions:p,activities:m,services:x,delays:E},I=c.withConfig(P,function(){return Lce(Lce({},c.context),u)});return NDe(I,k)});return ZRt(function(){Object.assign(T.machine.options.actions,p),Object.assign(T.machine.options.guards,d),Object.assign(T.machine.options.activities,m),Object.assign(T.machine.options.services,x),Object.assign(T.machine.options.delays,E)},[p,d,m,x,E]),T}function vW(n){for(var r=[],c=1;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function nFn(n){return n}function Nw(n){for(var r=[],c=1;c0||typeof P.changed=="boolean");return!(I.changed||O)},[m]),k=U.exports.useCallback(function(P){var I=m.subscribe(P).unsubscribe;return I},[m]),T=CDe.exports.useSyncExternalStoreWithSelector(k,x,x,nFn,E);return U.exports.useEffect(function(){var P=p.state;return m.start(P?wb.create(P):void 0),function(){m.stop(),m.status=If.NotStarted}},[]),[T,m.send,m]}function e$t(n){return"state"in n}function rFn(n){return"deferred"in n}function iFn(n){return"getSnapshot"in n?n.getSnapshot():e$t(n)?n.state:void 0}function oFn(n,r){r===void 0&&(r=iFn);var c=U.exports.useRef(n),u=U.exports.useRef([]),d=U.exports.useCallback(function(E){var k=n.subscribe(E).unsubscribe;return k},[n]),p=U.exports.useCallback(function(){return r(n)},[n,r]),m=IDe.exports.useSyncExternalStore(d,p,p),x=mPe(function(){return function(){for(var E=[],k=0;k0;){var E=u.current.shift();n.send(E)}},[n]),[m,x]}globalThis&&globalThis.__read;globalThis&&globalThis.__values;function sFn(n){return n.status!==0?n.state:n.machine.initialState}function T9t(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function vPe(n,r){if(T9t(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var c=Object.keys(n),u=Object.keys(r);if(c.length!==u.length)return!1;for(var d=0;d=p.length&&(p=void 0),{value:p&&p[E++],done:!p}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(p,m){var x=typeof Symbol=="function"&&p[Symbol.iterator];if(!x)return p;var E=x.call(p),k,T=[],P;try{for(;(m===void 0||m-- >0)&&!(k=E.next()).done;)T.push(k.value)}catch(I){P={error:I}}finally{try{k&&!k.done&&(x=E.return)&&x.call(E)}finally{if(P)throw P.error}}return T}function d(p,m,x){if(x||arguments.length===2)for(var E=0,k=m.length,T;E"u"||typeof Te=="string"||be(Te)?{target:Te,event:Ne}:r.__assign(r.__assign({},Te),{event:Ne})});return me}function rr(Ne){if(!(Ne===void 0||Ne===c.TARGETLESS_KEY))return ne(Ne)}function Zn(Ne,ae,me){if(!u.IS_PRODUCTION){var Te=Ne.stack?" Stacktrace was '".concat(Ne.stack,"'"):"";if(Ne===ae)console.error("Missing onError handler for invocation '".concat(me,"', error was '").concat(Ne,"'.").concat(Te));else{var Xe=ae.stack?" Stacktrace was '".concat(ae.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(me,"'. ")+"Original error: '".concat(Ne,"'. ").concat(Te," Current error is '").concat(ae,"'.").concat(Xe))}}}function Gr(Ne,ae,me,Te,Xe){var dt=Ne.options.guards,Sn={state:Xe,cond:ae,_event:Te};if(ae.type===c.DEFAULT_GUARD_TYPE)return((dt==null?void 0:dt[ae.name])||ae.predicate)(me,Te.data,Sn);var gn=dt==null?void 0:dt[ae.type];if(!gn)throw new Error("Guard '".concat(ae.type,"' is not implemented on machine '").concat(Ne.id,"'."));return gn(me,Te.data,Sn)}function Je(Ne){return typeof Ne=="string"?{type:Ne}:Ne}function ct(Ne,ae,me){var Te=function(){},Xe=typeof Ne=="object",dt=Xe?Ne:null;return{next:((Xe?Ne.next:Ne)||Te).bind(dt),error:((Xe?Ne.error:ae)||Te).bind(dt),complete:((Xe?Ne.complete:me)||Te).bind(dt)}}function rn(Ne,ae){return"".concat(Ne,":invocation[").concat(ae,"]")}n.createInvokeId=rn,n.evaluateGuard=Gr,n.flatten=B,n.getActionType=E,n.getEventType=x,n.interopSymbols=De,n.isActor=Se,n.isArray=et,n.isBehavior=pe,n.isBuiltInEvent=H,n.isFunction=tt,n.isMachine=be,n.isObservable=ze,n.isPromiseLike=ce,n.isStateLike=T,n.isString=jt,n.keys=p,n.mapContext=Z,n.mapFilterValues=N,n.mapValues=O,n.matchesState=m,n.nestedPath=L,n.normalizeTarget=rr,n.partition=le,n.path=j,n.pathToStateValue=I,n.pathsToStateValue=F,n.reportUnhandledExceptionOnInvocation=Zn,n.symbolObservable=we,n.toArray=ne,n.toArrayStrict=X,n.toEventObject=sn,n.toGuard=Me,n.toInvokeSource=Je,n.toObserver=ct,n.toSCXMLEvent=Tn,n.toStatePath=k,n.toStatePaths=$,n.toStateValue=P,n.toTransitionConfigArray=qn,n.uniqueId=Jt,n.updateContext=qe,n.updateHistoryStates=ye,n.updateHistoryValue=Ge})(zn);Object.defineProperty(pa,"__esModule",{value:!0});var Xa=DS,jb=Yle,bh=of,$a=zn,n$t=rT,FFn=$a.toSCXMLEvent({type:bh.init});function yPe(n,r){return r&&r[n]||void 0}function Qle(n,r){var c;if($a.isString(n)||typeof n=="number"){var u=yPe(n,r);$a.isFunction(u)?c={type:n,exec:u}:u?c=u:c={type:n,exec:void 0}}else if($a.isFunction(n))c={type:n.name||n.toString(),exec:n};else{var u=yPe(n.type,r);if($a.isFunction(u))c=Xa.__assign(Xa.__assign({},n),{exec:u});else if(u){var d=u.type||n.type;c=Xa.__assign(Xa.__assign(Xa.__assign({},u),n),{type:d})}else c=n}return c}var wPe=function(n,r){if(!n)return[];var c=$a.isArray(n)?n:[n];return c.map(function(u){return Qle(u,r)})};function jDe(n){var r=Qle(n);return Xa.__assign(Xa.__assign({id:$a.isString(n)?n:r.id},r),{type:r.type})}function BFn(n){return $a.isString(n)?{type:bh.raise,event:n}:uN(n,{to:jb.SpecialTargets.Internal})}function r$t(n){return{type:bh.raise,_event:$a.toSCXMLEvent(n.event)}}function uN(n,r){return{to:r?r.to:void 0,type:bh.send,event:$a.isFunction(n)?n:$a.toEventObject(n),delay:r?r.delay:void 0,id:r&&r.id!==void 0?r.id:$a.isFunction(n)?n.name:$a.getEventType(n)}}function i$t(n,r,c,u){var d={_event:c},p=$a.toSCXMLEvent($a.isFunction(n.event)?n.event(r,c.data,d):n.event),m;if($a.isString(n.delay)){var x=u&&u[n.delay];m=$a.isFunction(x)?x(r,c.data,d):x}else m=$a.isFunction(n.delay)?n.delay(r,c.data,d):n.delay;var E=$a.isFunction(n.to)?n.to(r,c.data,d):n.to;return Xa.__assign(Xa.__assign({},n),{to:E,_event:p,event:p.data,delay:m})}function RDe(n,r){return uN(n,Xa.__assign(Xa.__assign({},r),{to:jb.SpecialTargets.Parent}))}function zFn(n,r,c){return uN(r,Xa.__assign(Xa.__assign({},c),{to:n}))}function VFn(){return RDe(bh.update)}function UFn(n,r){return uN(n,Xa.__assign(Xa.__assign({},r),{to:function(c,u,d){var p=d._event;return p.origin}}))}var HFn=function(n,r){return{context:n,event:r}};function qFn(n,r){return n===void 0&&(n=HFn),{type:bh.log,label:r,expr:n}}var o$t=function(n,r,c){return Xa.__assign(Xa.__assign({},n),{value:$a.isString(n.expr)?n.expr:n.expr(r,c.data,{_event:c})})},WFn=function(n){return{type:bh.cancel,sendId:n}};function GFn(n){var r=jDe(n);return{type:jb.ActionTypes.Start,activity:r,exec:void 0}}function XFn(n){var r=$a.isFunction(n)?n:jDe(n);return{type:jb.ActionTypes.Stop,activity:r,exec:void 0}}function s$t(n,r,c){var u=$a.isFunction(n.activity)?n.activity(r,c.data):n.activity,d=typeof u=="string"?{id:u}:u,p={type:jb.ActionTypes.Stop,activity:d};return p}var KFn=function(n){return{type:bh.assign,assignment:n}};function YFn(n){return typeof n=="object"&&"type"in n}function QFn(n,r){var c=r?"#".concat(r):"";return"".concat(jb.ActionTypes.After,"(").concat(n,")").concat(c)}function ZFn(n,r){var c="".concat(jb.ActionTypes.DoneState,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function JFn(n,r){var c="".concat(jb.ActionTypes.DoneInvoke,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function eBn(n,r){var c="".concat(jb.ActionTypes.ErrorPlatform,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function tBn(n){return{type:jb.ActionTypes.Pure,get:n}}function nBn(n,r){if(!n$t.IS_PRODUCTION&&(!n||typeof n=="function")){var c=n;n=function(){for(var u=[],d=0;d0});if(!j)return this.next(c,u);var L=xr.flatten(O.map(function(F){return F.entrySet})),$=xr.flatten(Object.keys(m).map(function(F){return m[F].configuration}));return{transitions:N,entrySet:L,exitSet:xr.flatten(O.map(function(F){return F.exitSet})),configuration:$,source:c,actions:xr.flatten(Object.keys(m).map(function(F){return m[F].actions}))}},n.prototype._transition=function(r,c,u){return xr.isString(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)},n.prototype.getTransitionData=function(r,c){return this._transition(r.value,r,xr.toSCXMLEvent(c))},n.prototype.next=function(r,c){var u,d,p=this,m=c.name,x=[],E=[],k;try{for(var T=Cr.__values(this.getCandidates(m)),P=T.next();!P.done;P=T.next()){var I=P.value,O=I.cond,N=I.in,j=r.context,L=N?xr.isString(N)&&nM(N)?r.matches(xr.toStateValue(this.getStateNodeById(N).path,this.delimiter)):xr.matchesState(xr.toStateValue(N,this.delimiter),xr.path(this.path.slice(0,-2))(r.value)):!0,$=!1;try{$=!O||xr.evaluateGuard(this.machine,O,j,c,r)}catch(ne){throw new Error("Unable to evaluate guard '".concat(O.name||O.type,"' in transition for event '").concat(m,"' in state node '").concat(this.id,`': -`).concat(ne.message))}if($&&L){I.target!==void 0&&(E=I.target),x.push.apply(x,Cr.__spreadArray([],Cr.__read(I.actions),!1)),k=I;break}}}catch(ne){u={error:ne}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}if(!!k){if(!E.length)return{transitions:[k],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:x};var F=xr.flatten(E.map(function(ne){return p.getRelativeStateNodes(ne,r.historyValue)})),B=!!k.internal,X=[];return B||E.forEach(function(ne){X.push.apply(X,Cr.__spreadArray([],Cr.__read(p.getExternalReentryNodes(ne)),!1))}),{transitions:[k],entrySet:X,exitSet:B?[]:[this],configuration:F,source:r,actions:x}}},n.prototype.getExternalReentryNodes=function(r){for(var c=[],u=Cr.__read(r.order>this.order?[r,this]:[this,r],2),d=u[0],p=u[1];d&&d!==p;)c.push(d),d=d.parent;return d!==p?[]:(c.push(p),c)},n.prototype.getActions=function(r,c,u,d,p,m,x){var E,k,T,P,I=this,O=_d.getConfiguration([],m?this.getStateNodes(m.value):[this]);try{for(var N=Cr.__values(r),j=N.next();!j.done;j=N.next()){var L=j.value;(!_d.has(O,L)||_d.has(u.entrySet,L.parent))&&u.entrySet.push(L)}}catch(le){E={error:le}}finally{try{j&&!j.done&&(k=N.return)&&k.call(N)}finally{if(E)throw E.error}}try{for(var $=Cr.__values(O),F=$.next();!F.done;F=$.next()){var L=F.value;(!_d.has(r,L)||_d.has(u.exitSet,L.parent))&&u.exitSet.push(L)}}catch(le){T={error:le}}finally{try{F&&!F.done&&(P=$.return)&&P.call($)}finally{if(T)throw T.error}}var B=xr.flatten(u.entrySet.map(function(le){var ye=[];if(le.type!=="final")return ye;var Ge=le.parent;if(!Ge.parent)return ye;ye.push(Jl.done(le.id,le.doneData),Jl.done(Ge.id,le.doneData?xr.mapContext(le.doneData,d,p):void 0));var qe=Ge.parent;return qe.type==="parallel"&&_d.getChildren(qe).every(function(et){return _d.isInFinalState(u.configuration,et)})&&ye.push(Jl.done(qe.id)),ye}));u.exitSet.sort(function(le,ye){return ye.order-le.order}),u.entrySet.sort(function(le,ye){return le.order-ye.order});var X=new Set(u.entrySet),ne=new Set(u.exitSet),Z=Array.from(X).map(function(le){var ye=le.onEntry,Ge=le.activities.map(function(qe){return Jl.start(qe)});return Jl.toActionObjects(x?Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(ye),!1),Cr.__read(Ge),!1):Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(Ge),!1),Cr.__read(ye),!1),I.machine.options.actions)}).concat([B.map(Jl.raise)]),H=Array.from(ne).map(function(le){return Jl.toActionObjects(Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(le.onExit),!1),Cr.__read(le.activities.map(function(ye){return Jl.stop(ye)})),!1),I.machine.options.actions)}),ce=H.concat([Jl.toActionObjects(u.actions,this.machine.options.actions)]).concat(Z);if(c){var pe=Jl.toActionObjects(xr.flatten(Cr.__spreadArray([],Cr.__read(r),!1).sort(function(le,ye){return ye.order-le.order}).map(function(le){return le.onExit})),this.machine.options.actions).filter(function(le){return le.type!==xx.raise&&(le.type!==xx.send||!!le.to&&le.to!==L9t.SpecialTargets.Internal)});return ce.concat([pe])}return ce},n.prototype.transition=function(r,c,u,d){r===void 0&&(r=this.initialState);var p=xr.toSCXMLEvent(c),m;if(r instanceof J4.State)m=u===void 0?r:this.resolveState(J4.State.from(r,u));else{var x=xr.isString(r)?this.resolve(xr.pathToStateValue(this.getResolvedPath(r))):this.resolve(r),E=u!=null?u:this.machine.context;m=this.resolveState(J4.State.from(x,E))}if(!eM.IS_PRODUCTION&&p.name===dU)throw new Error("An event cannot have the wildcard type ('".concat(dU,"')"));if(this.strict&&!this.events.includes(p.name)&&!xr.isBuiltInEvent(p.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(p.name,"'"));var k=this._transition(m.value,m,p)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:m,actions:[]},T=_d.getConfiguration([],this.getStateNodes(m.value)),P=k.configuration.length?_d.getConfiguration(T,k.configuration):T;return k.configuration=Cr.__spreadArray([],Cr.__read(P),!1),this.resolveTransition(k,m,m.context,d,p)},n.prototype.resolveRaisedTransition=function(r,c,u,d){var p,m=r.actions;return r=this.transition(r,c,void 0,d),r._event=u,r.event=u.data,(p=r.actions).unshift.apply(p,Cr.__spreadArray([],Cr.__read(m),!1)),r},n.prototype.resolveTransition=function(r,c,u,d,p){var m,x,E,k,T=this;p===void 0&&(p=Jl.initEvent);var P=r.configuration,I=!c||r.transitions.length>0,O=I?r.configuration:c?c.configuration:[],N=_d.isInFinalState(O,this),j=I?_d.getValue(this.machine,P):void 0,L=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,$=this.getActions(new Set(O),N,r,u,p,c,d),F=c?Cr.__assign({},c.activities):{};try{for(var B=Cr.__values($),X=B.next();!X.done;X=B.next()){var ne=X.value;try{for(var Z=(E=void 0,Cr.__values(ne)),H=Z.next();!H.done;H=Z.next()){var ce=H.value;ce.type===xx.start?F[ce.activity.id||ce.activity.type]=ce:ce.type===xx.stop&&(F[ce.activity.id||ce.activity.type]=!1)}}catch(sn){E={error:sn}}finally{try{H&&!H.done&&(k=Z.return)&&k.call(Z)}finally{if(E)throw E.error}}}}catch(sn){m={error:sn}}finally{try{X&&!X.done&&(x=B.return)&&x.call(B)}finally{if(m)throw m.error}}var pe=Cr.__read(Jl.resolveActions(this,c,u,p,$,d,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),le=pe[0],ye=pe[1],Ge=Cr.__read(xr.partition(le,function(sn){return sn.type===xx.raise||sn.type===xx.send&&sn.to===L9t.SpecialTargets.Internal}),2),qe=Ge[0],et=Ge[1],tt=le.filter(function(sn){var Tn;return sn.type===xx.start&&((Tn=sn.activity)===null||Tn===void 0?void 0:Tn.type)===xx.invoke}),jt=tt.reduce(function(sn,Tn){return sn[Tn.activity.id]=FBn.createInvocableActor(Tn.activity,T.machine,ye,p),sn},c?Cr.__assign({},c.children):{}),Me=new J4.State({value:j||c.value,context:ye,_event:p,_sessionid:c?c._sessionid:null,historyValue:j?L?xr.updateHistoryValue(L,j):void 0:c?c.historyValue:void 0,history:!j||r.source?c:void 0,actions:j?et:[],activities:j?F:c?c.activities:{},events:[],configuration:O,transitions:r.transitions,children:jt,done:N,tags:_d.getTagsFromConfiguration(O),machine:this}),ze=u!==ye;Me.changed=p.name===xx.update||ze;var we=Me.history;we&&delete we.history;var De=!N&&(this._transient||P.some(function(sn){return sn._transient}));if(!I&&(!De||p.name===bM))return Me;var be=Me;if(!N)for(De&&(be=this.resolveRaisedTransition(be,{type:xx.nullEvent},p,d));qe.length;){var Se=qe.shift();be=this.resolveRaisedTransition(be,Se._event,p,d)}var Jt=be.changed||(we?!!be.actions.length||ze||typeof we.value!=typeof be.value||!J4.stateValuesEqual(be.value,we.value):void 0);return be.changed=Jt,be.history=we,be},n.prototype.getStateNode=function(r){if(nM(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error("Unable to retrieve child state '".concat(r,"' from '").concat(this.id,"'; no child states exist."));var c=this.states[r];if(!c)throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return c},n.prototype.getStateNodeById=function(r){var c=nM(r)?r.slice(SPe.length):r;if(c===this.id)return this;var u=this.machine.idMap[c];if(!u)throw new Error("Child state node '#".concat(c,"' does not exist on machine '").concat(this.id,"'"));return u},n.prototype.getStateNodeByPath=function(r){if(typeof r=="string"&&nM(r))try{return this.getStateNodeById(r.slice(1))}catch{}for(var c=xr.toStatePath(r,this.delimiter).slice(),u=this;c.length;){var d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u},n.prototype.resolve=function(r){var c,u=this;if(!r)return this.initialStateValue||tM;switch(this.type){case"parallel":return xr.mapValues(this.initialStateValue,function(p,m){return p?u.getStateNode(m).resolve(r[m]||p):tM});case"compound":if(xr.isString(r)){var d=this.getStateNode(r);return d.type==="parallel"||d.type==="compound"?(c={},c[r]=d.initialStateValue,c):r}return Object.keys(r).length?xr.mapValues(r,function(p,m){return p?u.getStateNode(m).resolve(p):tM}):this.initialStateValue||{};default:return r||tM}},n.prototype.getResolvedPath=function(r){if(nM(r)){var c=this.machine.idMap[r.slice(SPe.length)];if(!c)throw new Error("Unable to find state node '".concat(r,"'"));return c.path}return xr.toStatePath(r,this.delimiter)},Object.defineProperty(n.prototype,"initialStateValue",{get:function(){var r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var c;if(this.type==="parallel")c=xr.mapFilterValues(this.states,function(u){return u.initialStateValue||tM},function(u){return u.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));c=_d.isLeafNode(this.states[this.initial])?this.initial:(r={},r[this.initial]=this.states[this.initial].initialStateValue,r)}else c={};return this.__cache.initialStateValue=c,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),n.prototype.getInitialState=function(r,c){this._init();var u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:Cr.__spreadArray([],Cr.__read(u),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)},Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this.initialStateValue;if(!r)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"target",{get:function(){var r;if(this.type==="history"){var c=this.config;xr.isString(c.target)?r=nM(c.target)?xr.pathToStateValue(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r},enumerable:!1,configurable:!0}),n.prototype.getRelativeStateNodes=function(r,c,u){return u===void 0&&(u=!0),u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]},Object.defineProperty(n.prototype,"initialStateNodes",{get:function(){var r=this;if(_d.isLeafNode(this))return[this];if(this.type==="compound"&&!this.initial)return eM.IS_PRODUCTION||xr.warn(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var c=xr.toStatePaths(this.initialStateValue);return xr.flatten(c.map(function(u){return r.getFromRelativePath(u)}))},enumerable:!1,configurable:!0}),n.prototype.getFromRelativePath=function(r){if(!r.length)return[this];var c=Cr.__read(r),u=c[0],d=c.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(u,"' from node with no states"));var p=this.getStateNode(u);if(p.type==="history")return p.resolveHistory();if(!this.states[u])throw new Error("Child state '".concat(u,"' does not exist on '").concat(this.id,"'"));return this.states[u].getFromRelativePath(d)},n.prototype.historyValue=function(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:xr.mapFilterValues(this.states,function(c,u){if(!r)return c.historyValue();var d=xr.isString(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},function(c){return!c.history})}},n.prototype.resolveHistory=function(r){var c=this;if(this.type!=="history")return[this];var u=this.parent;if(!r){var d=this.target;return d?xr.flatten(xr.toStatePaths(d).map(function(m){return u.getFromRelativePath(m)})):u.initialStateNodes}var p=xr.nestedPath(u.path,"states")(r).current;return xr.isString(p)?[u.getStateNode(p)]:xr.flatten(xr.toStatePaths(p).map(function(m){return c.history==="deep"?u.getFromRelativePath(m):[u.states[m[0]]]}))},Object.defineProperty(n.prototype,"stateIds",{get:function(){var r=this,c=xr.flatten(Object.keys(this.states).map(function(u){return r.states[u].stateIds}));return[this.id].concat(c)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"events",{get:function(){var r,c,u,d;if(this.__cache.events)return this.__cache.events;var p=this.states,m=new Set(this.ownEvents);if(p)try{for(var x=Cr.__values(Object.keys(p)),E=x.next();!E.done;E=x.next()){var k=E.value,T=p[k];if(T.states)try{for(var P=(u=void 0,Cr.__values(T.events)),I=P.next();!I.done;I=P.next()){var O=I.value;m.add("".concat(O))}}catch(N){u={error:N}}finally{try{I&&!I.done&&(d=P.return)&&d.call(P)}finally{if(u)throw u.error}}}}catch(N){r={error:N}}finally{try{E&&!E.done&&(c=x.return)&&c.call(x)}finally{if(r)throw r.error}}return this.__cache.events=Array.from(m)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ownEvents",{get:function(){var r=new Set(this.transitions.filter(function(c){return!(!c.target&&!c.actions.length&&c.internal)}).map(function(c){return c.eventType}));return Array.from(r)},enumerable:!1,configurable:!0}),n.prototype.resolveTarget=function(r){var c=this;if(r!==void 0)return r.map(function(u){if(!xr.isString(u))return u;var d=u[0]===c.delimiter;if(d&&!c.parent)return c.getStateNodeByPath(u.slice(1));var p=d?c.key+u:u;if(c.parent)try{var m=c.parent.getStateNodeByPath(p);return m}catch(x){throw new Error("Invalid transition definition for state node '".concat(c.id,`': -`).concat(x.message))}else return c.getStateNodeByPath(p)})},n.prototype.formatTransition=function(r){var c=this,u=xr.normalizeTarget(r.target),d="internal"in r?r.internal:u?u.some(function(E){return xr.isString(E)&&E[0]===c.delimiter}):!0,p=this.machine.options.guards,m=this.resolveTarget(u),x=Cr.__assign(Cr.__assign({},r),{actions:Jl.toActionObjects(xr.toArray(r.actions)),cond:xr.toGuard(r.cond,p),target:m,source:this,internal:d,eventType:r.event,toJSON:function(){return Cr.__assign(Cr.__assign({},x),{target:x.target?x.target.map(function(E){return"#".concat(E.id)}):void 0,source:"#".concat(c.id)})}});return x},n.prototype.formatTransitions=function(){var r,c,u=this,d;if(!this.config.on)d=[];else if(Array.isArray(this.config.on))d=this.config.on;else{var p=this.config.on,m=dU,x=p[m],E=x===void 0?[]:x,k=Cr.__rest(p,[typeof m=="symbol"?m:m+""]);d=xr.flatten(Object.keys(k).map(function(F){!eM.IS_PRODUCTION&&F===bM&&xr.warn(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(u.id,'".'));var B=xr.toTransitionConfigArray(F,k[F]);return eM.IS_PRODUCTION||zBn(u,F,B),B}).concat(xr.toTransitionConfigArray(dU,E)))}var T=this.config.always?xr.toTransitionConfigArray("",this.config.always):[],P=this.config.onDone?xr.toTransitionConfigArray(String(Jl.done(this.id)),this.config.onDone):[];eM.IS_PRODUCTION||xr.warn(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var I=xr.flatten(this.invoke.map(function(F){var B=[];return F.onDone&&B.push.apply(B,Cr.__spreadArray([],Cr.__read(xr.toTransitionConfigArray(String(Jl.doneInvoke(F.id)),F.onDone)),!1)),F.onError&&B.push.apply(B,Cr.__spreadArray([],Cr.__read(xr.toTransitionConfigArray(String(Jl.error(F.id)),F.onError)),!1)),B})),O=this.after,N=xr.flatten(Cr.__spreadArray(Cr.__spreadArray(Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(P),!1),Cr.__read(I),!1),Cr.__read(d),!1),Cr.__read(T),!1).map(function(F){return xr.toArray(F).map(function(B){return u.formatTransition(B)})}));try{for(var j=Cr.__values(O),L=j.next();!L.done;L=j.next()){var $=L.value;N.push($)}}catch(F){r={error:F}}finally{try{L&&!L.done&&(c=j.return)&&c.call(j)}finally{if(r)throw r.error}}return N},n}();$De.StateNode=VBn;Object.defineProperty(Zle,"__esModule",{value:!0});var v$t=$De,UBn=rT,F9t=!1;function HBn(n,r,c){return c===void 0&&(c=n.context),new v$t.StateNode(n,r,c)}function qBn(n,r){return!UBn.IS_PRODUCTION&&!n.predictableActionArguments&&!F9t&&(F9t=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new v$t.StateNode(n,r)}Zle.Machine=HBn;Zle.createMachine=qBn;Object.defineProperty(t$t,"__esModule",{value:!0});var Sx=DS,B9t=pa,WBn=Zle,z9t=zn;function GBn(n,r){var c=r==null?void 0:r.events,u=r==null?void 0:r.actions,d={initialContext:n,assign:B9t.assign,events:c?z9t.mapValues(c,function(p,m){return function(){for(var x=[],E=0;Er,V9t=lN({value:""},{events:{VALUE_CHANGED_FROM_PARENT:n=>({value:n}),CHANGE:n=>({value:n}),FOCUS:()=>({}),BLUR:()=>({}),PICK_FROM_LIST:n=>({value:n}),UP_ARROW:()=>({}),DOWN_ARROW:()=>({})}}),Sse=eo((n,r)=>({value:r.value})),zDe=V9t.createMachine({initial:"unfocused",context:V9t.initialContext,on:{VALUE_CHANGED_FROM_PARENT:{actions:Sse}},states:{unfocused:{on:{FOCUS:{target:"focused"}}},focused:{on:{BLUR:{target:"unfocused"},CHANGE:{actions:[Sse]}},initial:"closed",states:{closed:{on:{CHANGE:{target:"open",actions:[Sse]},DOWN_ARROW:{target:"open",actions:["focusFirstOptionAfterTimeout"]}}},open:{on:{PICK_FROM_LIST:{target:"closed",actions:[Sse,"focusInput","onChange"]},UP_ARROW:{actions:"focusPrevOption"},DOWN_ARROW:{actions:"focusNextOption"}}}}}}}),XBn=y$t(zDe,n=>n.context.value),KBn=y$t(zDe,n=>n.matches("focused.open")),U9t=n=>Object.values(n).findIndex(r=>document.activeElement===r),xk=U.exports.forwardRef(function(r,c){const u=U.exports.useRef({}),d=U.exports.useRef(null),p=RMe(d,c),m=vW(zDe,{context:{value:r.defaultValue||r.value},actions:{onChange:I=>{var O;(O=r.onChange)==null||O.call(r,{target:{...d.current,value:I.value}})},focusFirstOptionAfterTimeout:()=>{setTimeout(()=>{var I,O;(O=(I=u.current)==null?void 0:I[0])==null||O.focus()})},focusNextOption:()=>{var O,N,j;const I=U9t(u.current);I===-1?(N=(O=u.current)==null?void 0:O[0])==null||N.focus():(j=u.current[I+1])==null||j.focus()},focusPrevOption:()=>{var O,N,j,L;const I=U9t(u.current);I===-1?(N=(O=u.current)==null?void 0:O[0])==null||N.focus():I===0?(j=d.current)==null||j.focus():(L=u.current[I-1])==null||L.focus()},focusInput:()=>{var I;(I=d.current)==null||I.focus()}}}),x=Al(m,XBn),E=Al(m,KBn);U.exports.useEffect(()=>{r.value&&m.send({type:"VALUE_CHANGED_FROM_PARENT",value:r.value})},[r.value]);const k=I=>{I.key==="ArrowDown"?(I.preventDefault(),m.send({type:"DOWN_ARROW"})):I.key==="ArrowUp"&&(I.preventDefault(),m.send({type:"UP_ARROW"}))},T=U.exports.useRef(null),P=U.exports.useMemo(()=>{try{return new RegExp(x,"i")}catch{return new RegExp("")}},[x]);return We(In,{ref:T,onBlur:I=>{setTimeout(()=>{var O;(O=T.current)!=null&&O.contains(document.activeElement)||m.send({type:"BLUR"})})},position:"relative",children:[V(Ji.Input,{...r,ref:p,onChange:I=>{var O;m.send({type:"CHANGE",value:I.target.value}),(O=r.onChange)==null||O.call(r,I)},onKeyDown:I=>{var O;k(I),(O=r.onKeyDown)==null||O.call(r,I)},onFocus:I=>{var O;m.send({type:"FOCUS"}),(O=r.onFocus)==null||O.call(r,I)},value:x||""}),V(yk,{hidden:!E,spacing:"0",position:"absolute",top:"100%",left:"0px",w:"full",maxH:"32",overflowY:"auto",shadow:"md",children:r.options.filter(I=>P.test(I)).map((I,O)=>V(YBn,{onClick:N=>{m.send({type:"PICK_FROM_LIST",value:I})},onKeyDown:k,ref:N=>u.current[O]=N,children:I},I))})]})}),YBn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return V(Y0,{...r,ref:c,display:"block",textAlign:"left",variant:"unstyled",w:"full",fontSize:"sm",paddingX:"2",py:"2",padding:"4",height:"auto",bg:u("gray.200","gray.800"),zIndex:"popover",rounded:"none",_focus:{bg:u("gray.100","gray.700")}})});ut.forwardRef(function({isCurrentPage:r,darkTextColor:c=!1,...u},d){const{getColorModeValue:p}=ei();return V(_Me,{...u,ref:d,isCurrentPage:r,textStyle:r?"semibold":"medium",color:r?p(c?"gray.800":"gray.50","gray.50"):p(c?"gray.600":"gray.300","gray.300"),fontSize:"sm",_hover:{...!r&&{color:p(c?"black":"white","white"),textDecoration:"underline"},...u._hover}})});const w$t={primary:{bg:"primary.500",interactionColor:"primary.600",color:"white"},gray:{bg:"gray.100",interactionColor:"gray.200",color:"gray.800"},danger:{bg:"danger.500",interactionColor:"danger.600",color:"white"},light:{bg:"white.500",interactionColor:"white.400",color:"gray.800"}},x$t={primary:{bg:"primary.500",interactionColor:"primary.600",color:"white"},gray:{bg:"gray.600",interactionColor:"gray.700",color:"white"},danger:{bg:"danger.500",interactionColor:"danger.600",color:"white"},light:{bg:"white.500",interactionColor:"white.400",color:"white"}},Vc=ut.forwardRef(({variant:n="primary",...r},c)=>{const{getColorModeValue:u}=ei(),{bg:d,interactionColor:p,color:m}=u(w$t,x$t)[n];return V(Y0,{variant:"solid",ref:c,bg:d,_hover:{bg:p},_active:{bg:p},_focus:{bg:p,outlineColor:p},color:m,...r})});Vc.displayName="StatelyButton";const S$t=n=>{const{getColorModeValue:r}=ei();return V(Ev,{variant:"unstyled",color:r("white","white"),height:"2em",minWidth:"2em",borderRadius:"2",display:"flex",flexDirection:"row",bg:r("transparent","transparent"),_hover:{bg:r("gray.100","gray.700")},_focus:{bg:r("gray.200","gray.800")},_active:{bg:r("gray.200","gray.800")},...n})},yW=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M4 4L14 14",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M14 4L4 14",stroke:"currentColor",strokeMiterlimit:"5"})]}),QBn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M7.75 14.375L16.75 5.375L13.375 2L4.375 11L3.25 15.5L7.75 14.375Z",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M4.375 11L7.75 14.375",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M11.125 4.25L14.5 7.625",stroke:"currentColor",strokeMiterlimit:"5"})]}),VDe=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M9 3V14.9996",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M14.9998 8.99978H3.00022",stroke:"currentColor",strokeMiterlimit:"5"})]}),ZBn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("rect",{x:"1",y:"1",width:"16",height:"16",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("rect",{x:"1",y:"1",width:"16",height:"5",rx:"1",fill:"currentColor"})]}),JBn=n=>{const{getColorModeValue:r}=ei();return We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("mask",{id:"path-2-inside-1",fill:r("white","white"),children:V("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5"})}),V("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"1 1",mask:"url(#path-2-inside-1)"})]})},ezn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M6.5 12.7568H7.45049V10.233H10.5495V12.7568H11.5V6.75684H10.5495V9.13779H7.45049V6.75684H6.5V12.7568Z",fill:"currentColor"})]}),tzn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("rect",{x:"2.5",y:"2.5",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M4.5 12H5.45049V9.47619H8.5495V12H9.5V6H8.5495V8.38095H5.45049V6H4.5V12Z",fill:"currentColor"}),V("path",{d:"M11.35 8.4L11.9 8.75L12.4 7.84L12.9 8.75L13.45 8.4L12.75 7.55L13.8 7.3L13.6 6.75L12.65 7.1L12.7 6H12.1L12.15 7.1L11.2 6.75L11 7.3L12.05 7.55L11.35 8.4Z",fill:"currentColor"})]}),nzn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5",fill:"currentColor"})]}),rzn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M10 14.7568L15 9.75684L10 4.75684",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"}),V("path",{d:"M5 9.75684L15 9.75684",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})]}),izn=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M10 11.7568L13 14.7568L16 11.7568",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"}),V("path",{d:"M4 13.7568L4 6.25684C4 5.9807 4.22386 5.75684 4.5 5.75684L12.5 5.75684C12.7761 5.75684 13 5.98069 13 6.25684L13 14.2568",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})]}),ozn=n=>V(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:V("path",{d:"M8.99999 9.75684L11.0502 7.63552C11.594 7.07291 12.3315 6.75684 13.1005 6.75684C13.8695 6.75684 14.607 7.07291 15.1508 7.63552C15.6945 8.19812 16 8.96119 16 9.75684C16 10.5525 15.6945 11.3155 15.1508 11.8782C14.607 12.4408 13.8695 12.7568 13.1005 12.7568C12.3315 12.7568 11.594 12.4408 11.0502 11.8782L8.99999 9.75684ZM8.99999 9.75684L6.94974 11.8782C6.40598 12.4408 5.66848 12.7568 4.89949 12.7568C4.1305 12.7568 3.393 12.4408 2.84924 11.8782C2.30548 11.3155 2 10.5525 2 9.75684C2 8.96119 2.30548 8.19813 2.84924 7.63552C3.393 7.07291 4.1305 6.75684 4.89949 6.75684C5.66848 6.75684 6.40598 7.07291 6.94974 7.63552L8.99999 9.75684Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})}),E$t=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M7 6.75684V4.25684C7 3.98069 7.22386 3.75684 7.5 3.75684H14.5C14.7761 3.75684 15 3.98069 15 4.25684V15.2568C15 15.533 14.7761 15.7568 14.5 15.7568H7.5C7.22386 15.7568 7 15.533 7 15.2568V12.7568",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M9 12.7568L12 9.75684L9 6.75684",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M2 9.75684H12",stroke:"currentColor",strokeMiterlimit:"5"})]}),k$t=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M10 12.7568L10 15.2568C10 15.533 9.77614 15.7568 9.5 15.7568L2.5 15.7568C2.22386 15.7568 2 15.533 2 15.2568L2 4.25684C2 3.98069 2.22386 3.75684 2.5 3.75684L9.5 3.75684C9.77614 3.75684 10 3.98069 10 4.25684L10 6.75684",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M12 6.75684L15 9.75684L12 12.7568",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M5 9.75684L15 9.75684",stroke:"currentColor",strokeMiterlimit:"5"})]}),szn=n=>We(Ao,{...n,viewBox:"0 0 24 24",children:[V("path",{d:"M0 0h24v24H0V0z",fill:"none"}),V("path",{d:"M10 8.64L15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z",fill:"currentColor"})]}),C$t=n=>We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M9 15.7568L15 14.7568V3.75684L9 4.75684L3 3.75684V14.7568L9 15.7568Z",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M9 4.75684V15.7568",stroke:"currentColor",strokeMiterlimit:"5"})]}),I$t=()=>We(Ao,{viewBox:"0 0 15 15",fill:"none",children:[V("path",{d:"M6.83332 12.6666C10.055 12.6666 12.6666 10.055 12.6666 6.83332C12.6666 3.61166 10.055 1 6.83332 1C3.61166 1 1 3.61166 1 6.83332C1 10.055 3.61166 12.6666 6.83332 12.6666Z",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),V("path",{d:"M15 15L11 11",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),V("path",{d:"M3.33325 6.8335H10.3332",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"})]}),T$t=()=>We(Ao,{viewBox:"0 0 15 15",fill:"none",children:[V("path",{d:"M6.83332 12.6666C10.055 12.6666 12.6666 10.055 12.6666 6.83332C12.6666 3.61166 10.055 1 6.83332 1C3.61166 1 1 3.61166 1 6.83332C1 10.055 3.61166 12.6666 6.83332 12.6666Z",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),V("path",{d:"M15 15L11 11",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),V("path",{d:"M3.33325 6.8335H10.3332",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),V("path",{d:"M6.83325 3.3335V10.3335",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"})]}),azn=()=>We(Ao,{viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M6 3H3V6",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M3 3L7 7",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M15 6V3H12",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M15 3L11 7",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M12 15H15V12",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M15 15L11 11",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M3 12V15H6",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M3 15L7 11",stroke:"currentColor",strokeMiterlimit:"5"})]}),czn=()=>V(Ao,{viewBox:"0 0 18 18",children:V("path",{d:"M5 7C4.46957 7 3.96086 6.78929 3.58579 6.41421C3.21071 6.03914 3 5.53043 3 5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3V3C5.53043 3 6.03914 3.21071 6.41421 3.58579C6.78929 3.96086 7 4.46957 7 5V13C7 13.5304 6.78929 14.0391 6.41421 14.4142C6.03914 14.7893 5.53043 15 5 15C4.46957 15 3.96086 14.7893 3.58579 14.4142C3.21071 14.0391 3 13.5304 3 13C3 12.4696 3.21071 11.9609 3.58579 11.5858C3.96086 11.2107 4.46957 11 5 11H13C13.5304 11 14.0391 11.2107 14.4142 11.5858C14.7893 11.9609 15 12.4696 15 13C15 13.5304 14.7893 14.0391 14.4142 14.4142C14.0391 14.7893 13.5304 15 13 15C12.4696 15 11.9609 14.7893 11.5858 14.4142C11.2107 14.0391 11 13.5304 11 13V5C11 4.46957 11.2107 3.96086 11.5858 3.58579C11.9609 3.21071 12.4696 3 13 3C13.5304 3 14.0391 3.21071 14.4142 3.58579C14.7893 3.96086 15 4.46957 15 5C15 5.53043 14.7893 6.03914 14.4142 6.41421C14.0391 6.78929 13.5304 7 13 7H5Z",stroke:"currentColor",strokeMiterlimit:"5"})}),uzn=n=>We(Ao,{viewBox:"0 0 18 18",fill:"none",...n,children:[V("path",{d:"M15 2H3V16H15V2Z",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M5 9H13",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M5 6H13",stroke:"currentColor",strokeMiterlimit:"5"}),V("path",{d:"M5 12H13",stroke:"currentColor",strokeMiterlimit:"5"})]}),UDe=n=>We(Ao,{viewBox:"0 0 24 24",...n,children:[V("circle",{cx:"12",cy:"19",r:"2",fill:"currentColor"}),V("path",{d:"M10 3h4v12h-4z",fill:"currentColor"})]}),HDe=n=>V(Ao,{viewBox:"0 0 24 24",...n,children:V("g",{children:V("path",{d:"M11.07,12.85c0.77-1.39,2.25-2.21,3.11-3.44c0.91-1.29,0.4-3.7-2.18-3.7c-1.69,0-2.52,1.28-2.87,2.34L6.54,6.96 C7.25,4.83,9.18,3,11.99,3c2.35,0,3.96,1.07,4.78,2.41c0.7,1.15,1.11,3.3,0.03,4.9c-1.2,1.77-2.35,2.31-2.97,3.45 c-0.25,0.46-0.35,0.76-0.35,2.24h-2.89C10.58,15.22,10.46,13.95,11.07,12.85z M14,20c0,1.1-0.9,2-2,2s-2-0.9-2-2c0-1.1,0.9-2,2-2 S14,18.9,14,20z",fill:"currentColor"})})}),lzn=()=>V(Ao,{viewBox:"0 0 18 18",children:V("path",{d:"M13.496 12.48a6.59 6.59 0 0 1-3.311-.915 6.56 6.56 0 0 1-2.396-2.456A6.531 6.531 0 0 1 7.937 2.5 6.577 6.577 0 0 0 3.88 4.935a6.534 6.534 0 0 0 .678 8.777A6.586 6.586 0 0 0 8.94 15.5a6.501 6.501 0 0 0 3.19-.827 6.473 6.473 0 0 0 2.37-2.283 6.846 6.846 0 0 1-1.004.09v0Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"})}),fzn=()=>We(Ao,{viewBox:"0 0 18 18",children:[V("path",{d:"m16.5 9-2.7 1.985.508 3.323-3.323-.508L9 16.5l-1.985-2.7-3.323.508.508-3.323L1.5 9l2.7-1.985-.508-3.323 3.323.508L9 1.5l1.985 2.7 3.323-.508-.508 3.323L16.5 9Z",stroke:"currentColor",fill:"transparent",strokeMiterlimit:"5"}),V("path",{d:"M9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"})]}),dzn=n=>{var c;const{getColorModeValue:r}=ei();return We(Ao,{...n,viewBox:"0 0 18 18",fill:"none",children:[V("path",{d:"M9 0L18 9 L9 18 L0 9Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"}),n.number!==void 0&&V("text",{x:"50%",y:"50%",dominantBaseline:"central",textAnchor:"middle",strokeWidth:"2",fill:(c=n.fill)!=null?c:r("white","black"),fontWeight:"bold",style:{fontVariationSettings:'"wght" 700',fontSize:"var(--chakra-fontSizes-xs)"},children:n.number})]})},hzn=()=>We(Ao,{viewBox:"0 0 23 22",children:[V("path",{d:"M18.883 1H3.23537C2.00081 1 1 1.99492 1 3.22222V18.7778C1 20.0051 2.00081 21 3.23537 21H18.883C20.1175 21 21.1183 20.0051 21.1183 18.7778V3.22222C21.1183 1.99492 20.1175 1 18.883 1Z",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),V("rect",{x:"1",y:"1",width:"8",height:"20",fill:"currentColor"})]}),pzn=()=>We(Ao,{viewBox:"0 0 23 22",children:[V("path",{d:"M18.883 1H3.23537C2.00081 1 1 1.99492 1 3.22222V18.7778C1 20.0051 2.00081 21 3.23537 21H18.883C20.1175 21 21.1183 20.0051 21.1183 18.7778V3.22222C21.1183 1.99492 20.1175 1 18.883 1Z",stroke:"currentColor",fill:"transparent",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M8 1V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),gzn=n=>V(Ao,{viewBox:"0 0 20 22",...n,children:We("svg",{fill:"none",children:[V("path",{d:"M10 7C14.9706 7 19 5.65685 19 4C19 2.34315 14.9706 1 10 1C5.02944 1 1 2.34315 1 4C1 5.65685 5.02944 7 10 7Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M19 11C19 12.66 15 14 10 14C5 14 1 12.66 1 11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M1 4V18C1 19.66 5 21 10 21C15 21 19 19.66 19 18V4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),bzn=n=>V(Ao,{viewBox:"0 0 22 22",fill:"none",...n,children:We("svg",{children:[V("path",{d:"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M11 15V11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M11 7H11.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),mzn=n=>We(Ao,{viewBox:"0 0 22 14",fill:"none",...n,children:[V("path",{d:"M15 13L21 7L15 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M7 1L1 7L7 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});Ei({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Ei({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Ei({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Ei({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Ei({displayName:"SunIcon",path:We("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[V("circle",{cx:"12",cy:"12",r:"5"}),V("path",{d:"M12 1v2"}),V("path",{d:"M12 21v2"}),V("path",{d:"M4.22 4.22l1.42 1.42"}),V("path",{d:"M18.36 18.36l1.42 1.42"}),V("path",{d:"M1 12h2"}),V("path",{d:"M21 12h2"}),V("path",{d:"M4.22 19.78l1.42-1.42"}),V("path",{d:"M18.36 5.64l1.42-1.42"})]})});var A$t=Ei({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Ei({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:V("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Ei({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Ei({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Ei({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Ei({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Ei({displayName:"ViewIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),V("circle",{cx:"12",cy:"12",r:"2"})]})});Ei({displayName:"ViewOffIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),V("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})});Ei({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Ei({displayName:"DeleteIcon",path:V("g",{fill:"currentColor",children:V("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});var vzn=Ei({displayName:"RepeatIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),V("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})});Ei({displayName:"RepeatClockIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),V("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})});Ei({displayName:"EditIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[V("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),V("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})});var yzn=Ei({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),zce=Ei({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Ei({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Ei({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Ei({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Ei({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Ei({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Ei({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Ei({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});Ei({displayName:"ExternalLinkIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[V("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),V("path",{d:"M15 3h6v6"}),V("path",{d:"M10 14L21 3"})]})});Ei({displayName:"LinkIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),V("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})});Ei({displayName:"PlusSquareIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[V("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),V("path",{d:"M12 8v8"}),V("path",{d:"M8 12h8"})]})});Ei({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Ei({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Ei({displayName:"TimeIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),V("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})});Ei({displayName:"ArrowRightIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),V("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});Ei({displayName:"ArrowLeftIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),V("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})});Ei({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Ei({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Ei({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Ei({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Ei({displayName:"EmailIcon",path:We("g",{fill:"currentColor",children:[V("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),V("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"})]})});Ei({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Ei({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Ei({displayName:"SpinnerIcon",path:We(Si,{children:[V("defs",{children:We("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[V("stop",{stopColor:"currentColor",offset:"0%"}),V("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"})]})}),We("g",{transform:"translate(2)",fill:"none",children:[V("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),V("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),V("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})]})]})});Ei({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Ei({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:V("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Ei({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});var wzn=Ei({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Ei({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Ei({displayName:"InfoOutlineIcon",path:We("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[V("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),V("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),V("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})});Ei({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Ei({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Ei({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Ei({displayName:"QuestionOutlineIcon",path:We("g",{stroke:"currentColor",strokeWidth:"1.5",children:[V("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),V("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),V("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});Ei({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});var xzn=Ei({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),Szn=Ei({viewBox:"0 0 14 14",path:V("g",{fill:"currentColor",children:V("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),Ezn=Ei({displayName:"MinusIcon",path:V("g",{fill:"currentColor",children:V("rect",{height:"4",width:"20",x:"2",y:"10"})})});Ei({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Il={},wW={};Object.defineProperty(wW,"__esModule",{value:!0});wW.bind=void 0;function kzn(n,r){var c=r.type,u=r.listener,d=r.options;return n.addEventListener(c,u,d),function(){n.removeEventListener(c,u,d)}}wW.bind=kzn;var tfe={},NM=KE&&KE.__assign||function(){return NM=Object.assign||function(n){for(var r,c=1,u=arguments.length;c"u"))return typeof n=="boolean"?{capture:n}:n}function Izn(n,r){if(r==null)return n;var c=NM(NM({},n),{options:NM(NM({},H9t(r)),H9t(n.options))});return c}function Tzn(n,r,c){var u=r.map(function(d){var p=Izn(d,c);return Czn.bind(n,p)});return function(){u.forEach(function(p){return p()})}}tfe.bindAll=Tzn;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.bindAll=n.bind=void 0;var r=wW;Object.defineProperty(n,"bind",{enumerable:!0,get:function(){return r.bind}});var c=tfe;Object.defineProperty(n,"bindAll",{enumerable:!0,get:function(){return c.bindAll}})})(Il);const P$t=n=>{switch(n){case"unstyled":return"transparent";default:return"white"}},O$t=n=>{switch(n){case"unstyled":return"transparent";default:return"whiteAlpha.100"}},Azn=U.exports.forwardRef(function({selectOnFocus:r,onFocus:c,onBlur:u,...d},p){const{getColorModeValue:m}=ei(),x=U.exports.useRef(null),E=RMe(p,x);return U.exports.useEffect(()=>{if(!!x.current)return Il.bind(x.current,{type:"blur",listener:k=>{r&&k.target.setSelectionRange(0,0),u==null||u(k)}})},[x,r,u]),V(zle,{type:"text",ref:E,borderWidth:"1px",borderRadius:"4px",borderColor:m("gray.100","whiteAlpha.50"),bg:m(P$t(d.variant),O$t(d.variant)),_placeholder:{color:m("gray.500","gray.400")},focusBorderColor:m("blue.500","blue.500"),_focus:{background:m("white","transparent"),boxShadow:"none"},_hover:{borderColor:m("gray.300","gray.600")},_invalid:{border:"none",bg:m("redAlpha.100","redAlpha.100")},onFocus:k=>{r&&k.target.setSelectionRange(0,k.target.value.length),c==null||c(k)},...d})}),Pzn=({...n})=>{const{getColorModeValue:r}=ei();return We(lRt,{...n,_placeholder:{color:r("gray.500","gray.400")},focusBorderColor:r("blue.500","blue.500"),_focus:{background:"transparent",boxShadow:"none"},_hover:{borderColor:r("gray.300","gray.600")},children:[V(dRt,{bg:r(P$t(n.variant),O$t(n.variant)),borderRadius:"4px",borderColor:r("gray.100","whiteAlpha.50"),_invalid:{border:"none",bg:r("redAlpha.100","redAlpha.100")}}),We(fRt,{children:[V(gRt,{}),V(pRt,{})]})]})},Ozn=({variant:n="primary",...r})=>{const{getColorModeValue:c}=ei(),{bg:u,interactionColor:d,color:p}=c(w$t,x$t)[n],{getInputProps:m,getIncrementButtonProps:x,getDecrementButtonProps:E}=uRt(r),k=x(),T=E(),P=m();return We(nl,{maxWidth:"56",children:[V(Ev,{...T,bg:u,_hover:{bg:d},_active:{bg:d},_focus:{bg:d,outlineColor:d,boxShadow:"none"},color:p,"aria-label":"Decrease",icon:V(Ezn,{})}),V(zle,{...P}),V(Ev,{...k,bg:u,_hover:{bg:d},_active:{bg:d},_focus:{bg:d,outlineColor:d},color:p,"aria-label":"Increase",icon:V(A$t,{})})]})},_zn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return V(PRt,{...r,ref:c,type:"text",borderRadius:"4px",borderWidth:"1px",borderColor:u("gray.100","whiteAlpha.50"),bg:u("white","whiteAlpha.100"),_placeholder:{color:u("gray.500","gray.400")},focusBorderColor:u("blue.500","blue.500"),_focus:{background:"transparent",boxShadow:"none"},_hover:{borderColor:u("gray.300","gray.600")},_invalid:{border:"none",bg:u("redAlpha.100","redAlpha.100")}})}),Mzn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return V(yRt,{...r,ref:c,borderRadius:"4px",borderWidth:"1px",borderColor:u("gray.100","whiteAlpha.50"),bg:u("white","whiteAlpha.100"),focusBorderColor:u("blue.500","blue.500"),_focus:{background:"transparent"},_placeholder:{color:u("gray.500","gray.400")},_hover:{borderColor:u("gray.300","gray.600")},_invalid:{border:"none",bg:u("redAlpha.100","redAlpha.100")},cursor:"pointer"})}),Dzn=({error:n,hint:r,hideLabel:c,columns:u,labelColumnWidth:d,errorProps:p={},...m})=>{const{getColorModeValue:x}=ei();return We(MMe,{...m,isInvalid:Boolean(n),children:[We(In,{display:u?"flex":"block",alignItems:u?"center":void 0,width:"100%",children:[!c&&V(iN,{color:x("gray.600","gray.400"),fontSize:"sm",_invalid:{color:x("danger.500","danger.500")},width:d||"auto",children:m.label}),u?V(In,{flex:"1",children:m.children}):m.children]}),n?V(vNt,{...p,color:x("danger.500","danger.500"),fontSize:"xs",children:n}):V(Si,{children:r&&V(mNt,{color:x("gray.600","gray.400"),children:r})})]})},Ji={Input:Azn,NumberInput:Pzn,SteppedNumberInput:Ozn,Textarea:_zn,Control:Dzn,Select:Mzn};U.exports.createContext({clickable:!0});const Nzn=()=>{const{toggleColorMode:n}=ZD(),r=O7(lzn,fzn),c=O7("dark","light");return U.exports.useMemo(()=>V(NU.MenuItem,{onClick:n,children:We(nl,{children:[V(r,{}),We("span",{children:["Switch to ",c," mode"]})]})}),[r,c,n])},jzn=n=>{const{children:r,...c}=n;return V(cjt,{isLazy:!0,gutter:4,autoSelect:!1,...c,children:r})},Rzn=n=>{const{getColorModeValue:r}=ei();return V(pjt,{rounded:"md",paddingLeft:"0",paddingY:"0.5",shadow:"lg",minWidth:"48",borderColor:r("gray.50","whiteAlpha.50"),bg:r("white","gray.850"),...n,_empty:{display:"none"}})},$zn=U.exports.forwardRef(function({variant:r="gray",...c},u){const{getColorModeValue:d}=ei();return V(hjt,{size:"sm",cursor:"pointer",bg:d("white","gray.850"),py:"1",sx:{"svg:first-of-type":{color:r==="danger"?d("danger.500","red.300"):d("gray.600","gray.400")}},_hover:{bg:d("gray.50","whiteAlpha.200")},_focus:{bg:d("gray.100","whiteAlpha.300")},...r==="primary"&&{bg:d("primary.600","primary.600"),_hover:{bg:d("primary.500","primary.500")}},...r==="danger"&&{color:d("danger.500","red.300"),_hover:{bg:d("redAlpha.100","redAlpha.100")},_focus:{bg:d("redAlpha.100","redAlpha.100")}},fontSize:"sm",variant:r,ref:u,...c})}),NU={Wrapper:jzn,MenuButton:ujt,MenuList:Rzn,MenuItem:$zn,ColorModeItem:Nzn},_$t=({bodyPadding:n="default",variant:r="gray",...c})=>{const{getColorModeValue:u}=ei();return We(hDe,{variant:r,...c,children:[V(aRt,{}),We(pDe,{rounded:"none",bg:u("white","gray.800"),children:[We(sRt,{pt:"3",px:"8",pb:"0",children:[V(Bi,{color:u("gray.600","gray.300"),textTransform:"uppercase",fontSize:"xs",letterSpacing:"wide",marginBottom:"1",...r==="danger"&&{color:u("danger.500","danger.500")},_empty:{display:"none"},children:c.eyebrow}),V(Bi,{fontSize:"2xl",letterSpacing:"tight",children:c.title}),Boolean(c.title)&&c.eyebrow?V(mv,{mt:"2"}):null]}),V(nRt,{...n==="default"&&{px:"8",py:"6"},...n==="none"&&{padding:"0"},children:c.children}),c.hideCloseButton||V(rRt,{minHeight:15,rounded:"none"})]})]})},Lzn=n=>V(xDe,{...n}),Fzn=n=>{const{getColorModeValue:r}=ei();return V(ARt,{color:r("gray.600","gray.300"),_selected:{color:r("black","white"),borderColor:r("black","white")},py:"4",...n})},F9={Tabs:Lzn,Tab:Fzn,TabList:SDe,TabPanels:kDe,TabPanel:EDe};var Bzn=Object.defineProperty,zzn=Object.defineProperties,Vzn=Object.getOwnPropertyDescriptors,Vce=Object.getOwnPropertySymbols,M$t=Object.prototype.hasOwnProperty,D$t=Object.prototype.propertyIsEnumerable,q9t=(n,r,c)=>r in n?Bzn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[r]=c,Af=(n,r)=>{for(var c in r||(r={}))M$t.call(r,c)&&q9t(n,c,r[c]);if(Vce)for(var c of Vce(r))D$t.call(r,c)&&q9t(n,c,r[c]);return n},Nx=(n,r)=>zzn(n,Vzn(r)),N$t=(n,r)=>{var c={};for(var u in n)M$t.call(n,u)&&r.indexOf(u)<0&&(c[u]=n[u]);if(n!=null&&Vce)for(var u of Vce(n))r.indexOf(u)<0&&D$t.call(n,u)&&(c[u]=n[u]);return c};const j$t=U.exports.createContext({activeStep:0}),qDe=()=>U.exports.useContext(j$t),Uzn=({value:n,children:r})=>{const[c,u]=U.exports.useState([]),d=n.state==="error",p=n.state==="loading",m=n.orientation==="vertical",x=n.orientation!=="vertical"&&n.labelOrientation==="vertical";return V(j$t.Provider,{value:Nx(Af({},n),{widths:c,setWidths:u,isError:d,isLoading:p,isVertical:m,isLabelVertical:x}),children:r})},Hzn=U.exports.memo(({index:n,isCompletedStep:r,children:c,isLastStep:u,hasLabel:d})=>{const{connector:p,stepIconContainer:m}=xle(),{isVertical:x,isLabelVertical:E,widths:k}=qDe(),T=()=>x?`calc(${m.width} / 2)`:d?0:2,P=U.exports.useMemo(()=>{const I={ms:T(),my:x?2:0,ps:x?4:0,me:x||E?0:2,height:x?"auto":"2px",alignSelf:x?"stretch":"auto",borderTopWidth:u||x?0:"2px",borderInlineStartWidth:u||!x?0:"2px",minHeight:u||!x?"auto":"1.5rem"};return E?Nx(Af({},I),{position:"absolute",top:`calc(${m.height} / 2 - ${I.height} / 2)`,left:`calc(((${k==null?void 0:k[n]}px + ${m.width}) / 2) + 8px)`,right:`calc((${k==null?void 0:k[n+1]}px - ${m.width}) / -2 + 8px)`}):I},[k,E,x,m.height,m.width]);return V(Qt.div,{__css:Af(Af({},P),p),"data-highlighted":bae(r),children:x&&c})}),qzn=Ei({viewBox:"0 0 14 14",path:V("g",{fill:"currentColor",children:V("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),Wzn=Ei({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),W9t=H1(Bc),G9t=H1(Wzn),Gzn=H1(Qt.span),hU={transition:{duration:.25},exit:{scale:.5,opacity:0},initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1}},Xzn=kn((n,r)=>{const{icon:c,iconLabel:u,label:d}=xle(),{isCompletedStep:p,isCurrentStep:m,isError:x,isLoading:E,isKeepError:k,icon:T,index:P,checkIcon:I}=n,O=Af({fontWeight:"medium",color:Or("gray.900","gray.100")(n),textAlign:"center",fontSize:"md"},d),N=ut.useMemo(()=>T||null,[T]),j=ut.useMemo(()=>I||qzn,[I]);return ut.useMemo(()=>{if(p)return x&&k?V(G9t,Nx(Af({color:"white"},hU),{style:c}),"icon"):V(W9t,Nx(Af({},hU),{children:V(j,{color:"white",style:c})}),"check-icon");if(m){if(x)return V(G9t,Nx(Af({color:"white"},hU),{style:c}),"icon");if(E)return V(cW,{width:c.width,height:c.height})}return N?V(W9t,Nx(Af({},hU),{children:V(N,{style:c})}),"step-icon"):V(Gzn,Nx(Af({ref:r,style:u,__css:O},hU),{children:(P||0)+1}),"label")},[p,m,x,E,N,c])}),Kzn=({isCurrentStep:n,opacity:r,label:c,description:u})=>{const{labelContainer:d,label:p,description:m}=xle(),{isLabelVertical:x}=qDe();return!!c||!!u?We(Qt.div,{"aria-current":n?"step":void 0,__css:Af({textAlign:x?"center":"left",alignItems:x?"center":"flex-start"},d),children:[!!c&&V(Qt.span,{__css:Af({mx:x?0:2,mt:x?1:0,opacity:r},p),children:c}),!!u&&V(Qt.span,{__css:Af({mx:x?0:2,mt:x?2:0,opacity:r},m),children:u})]}):null};kn((n,r)=>{const c=n,{children:u,description:d,icon:p,state:m,checkIcon:x,index:E,isCompletedStep:k,isCurrentStep:T,isLastStep:P,isKeepError:I,label:O}=c,N=N$t(c,["children","description","icon","state","checkIcon","index","isCompletedStep","isCurrentStep","isLastStep","isKeepError","label"]),{isVertical:j,isError:L,isLoading:$,isLabelVertical:F,checkIcon:B,onClickStep:X,clickable:ne,setWidths:Z,stepCount:H}=qDe(),{step:ce,stepContainer:pe,stepIconContainer:le}=xle(),ye=T||k,Ge=ye?1:.8,qe=tt=>{ne&&X&&X(tt)},et=U.exports.useCallback(tt=>{tt&&Z&&Z(jt=>jt.length===H?[tt.offsetWidth||0]:[...jt,tt.offsetWidth||0])},[le.width,le.height]);return V(Si,{children:We(Qt.li,Nx(Af({ref:r,onClick:()=>qe(E),"aria-disabled":!ye,__css:Af({opacity:Ge,flexDir:j?"column":"row",alignItems:j||F?"flex-start":"center",flex:P&&!j?"0 0 auto":"1 0 auto",justifyContent:P&&!j?"flex-end":"flex-start",_hover:{cursor:ne?"pointer":"default"}},ce)},N),{children:[We(Qt.div,{ref:et,__css:Af({flexDir:F?"column":"row"},pe),children:[V(Qt.div,{__css:le,"aria-current":ye&&I||T?"step":void 0,"data-invalid":bae((ye&&I||T)&&(L||m==="error")),"data-highlighted":bae(k),"data-clickable":bae(ne),children:V(_S,{exitBeforeEnter:!0,children:V(Xzn,Nx(Af({},{index:E,isError:L||m==="error",isLoading:$||m==="loading",isCurrentStep:T,isCompletedStep:k,isKeepError:I}),{icon:p,checkIcon:x!=null?x:B}))})}),V(Kzn,Af({label:O,description:d},{isCurrentStep:T,opacity:Ge}))]}),V(Hzn,{index:E,isLastStep:P,hasLabel:!!O||!!d,isCompletedStep:k||!1,children:V(lq,{style:{width:"100%"},in:T,children:(T||k)&&u})})]}))})});const Yzn=kn((n,r)=>{const c=il("Steps",n),u=Af({},c.steps),d=Fa(n),{className:p,activeStep:m,children:x,orientation:E,state:k,responsive:T,checkIcon:P,onClickStep:I,labelOrientation:O}=d,N=N$t(d,["className","activeStep","children","orientation","state","responsive","checkIcon","onClickStep","labelOrientation"]),j=U.exports.Children.toArray(x),L=j.length,$=()=>m<=j.length?U.exports.Children.map(j[m],ne=>{if(!!U.exports.isValidElement(ne))return U.exports.Children.map(ne.props.children,Z=>Z)}):null,F=!!I,[B]=yMn("(max-width: 43em)"),X=B&&T?"vertical":E;return V(a9n,{value:c,children:We(Uzn,{value:{activeStep:m,orientation:X,state:k,responsive:T,checkIcon:P,onClickStep:I,labelOrientation:O,clickable:F,colorScheme:n.colorScheme,stepCount:L},children:[V(Qt.ol,Nx(Af({ref:r,__css:Af({justifyContent:L===1?"flex-end":"space-between",flexDir:X==="vertical"?"column":"row"},u),className:cMt("chakra-steps",p)},N),{children:U.exports.Children.map(x,(ne,Z)=>{var H;const ce=(H=U.exports.isValidElement(ne)&&ne.props.isCompletedStep)!=null?H:Z({color:Or("gray.900","gray.100")(n),fontWeight:"medium",textAlign:"center",fontSize:"md"}),Jzn=n=>({color:Or("gray.800","gray.200")(n),marginTop:"-2px",textAlign:"center",fontSize:"sm"}),eVn=n=>{const{colorScheme:r}=n,c=Or("gray.200","gray.700")(n),u=Or(`${r}.500`,`${r}.200`)(n);return{flex:1,display:"flex",borderColor:c,transitionProperty:"border-color",transitionDuration:"normal",_highlighted:{borderColor:u}}},tVn=n=>{const{colorScheme:r}=n,c=Or("gray.200","gray.700")(n),u=`${r}.500`;return{display:"flex",borderRadius:"50%",alignItems:"center",justifyContent:"center",bg:c,borderColor:c,transitionProperty:"background, border-color",transitionDuration:"normal",_activeStep:{bg:Or(y6n(c,.5),w6n(c,.5))(n),borderColor:u,_invalid:{bg:"red.500",borderColor:"red.500"}},_highlighted:{bg:u,borderColor:u},"&[data-clickable]:hover":{borderColor:u}}},nVn=n=>({connector:eVn(n),description:Jzn(n),icon:Zzn,iconLabel:X9t(n),label:X9t(n),labelContainer:{display:"flex",flexDir:"column",justifyContent:"center"},step:{display:"flex",position:"relative"},stepContainer:{display:"flex",alignItems:"center"},stepIconContainer:tVn(n),steps:{fontFamily:"heading",textAlign:"center",width:"100%",display:"flex",flex:1}}),rVn={sm:{stepIconContainer:{width:"32px",height:"32px",borderWidth:"2px"},icon:{width:"14px",height:"14px"},label:{fontWeight:"medium",textAlign:"center",fontSize:"sm"},description:{fontWeight:"300",textAlign:"center",fontSize:"xs"}},md:{stepIconContainer:{width:"40px",height:"40px",borderWidth:"2px"},icon:{width:"18px",height:"18px"},label:{fontWeight:"medium",textAlign:"center",fontSize:"md"},description:{fontWeight:"300",textAlign:"center",fontSize:"sm"}},lg:{stepIconContainer:{width:"48px",height:"48px",borderWidth:"2px"},icon:{width:"22px",height:"22px"},label:{fontWeight:"bold",textAlign:"center",fontSize:"lg"},description:{fontWeight:"300",textAlign:"center",fontSize:"md"}}},iVn={size:"md",colorScheme:"green"},oVn={parts:Qzn.keys,baseStyle:nVn,sizes:rVn,defaultProps:iVn},sVn={initialColorMode:"dark",useSystemColorMode:!1},i7e=XIn({config:sVn,fonts:{heading:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},styles:{global:n=>({"*, *::before, *::after":{position:"relative"},"html, body":{backgroundColor:Or("#FAFBFC","gray.900")(n),color:n.colorMode==="dark"?"gray.50":"gray.800",padding:0,margin:0},strong:{fontWeight:700,fontVariationSettings:'"wght" 700'},".editor-line-error":{backgroundColor:"var(--chakra-colors-red-900)"}})},fontSizes:{"2xs":"0.6875rem",xs:"0.75rem",sm:"0.8125rem",md:"0.9375rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},textStyles:{hairline:{fontWeight:100,fontVariationSettings:'"wght" 100'},thin:{fontWeight:200,fontVariationSettings:'"wght" 200'},light:{fontWeight:300,fontVariationSettings:'"wght" 300'},normal:{fontWeight:400,fontVariationSettings:'"wght" 400'},medium:{fontWeight:500,fontVariationSettings:'"wght" 500'},semibold:{fontWeight:600,fontVariationSettings:'"wght" 600'},bold:{fontWeight:700,fontVariationSettings:'"wght" 700'},extrabold:{fontWeight:800,fontVariationSettings:'"wght" 800'},black:{fontWeight:900,fontVariationSettings:'"wght" 900'}},components:{Switch:{baseStyle:n=>({track:{_checked:{bg:Or("primary.500","primary.500")(n)}}})},Steps:oVn},colors:LE}),ph=n=>(Object.keys(n).forEach(r=>{const c=n[r];Array.isArray(c)&&c.length===0?delete n[r]:Array.isArray(c)&&c.length===1?n[r]=c[0]:(typeof c=="object"&&c&&Object.keys(c).length===0||typeof c=="string"&&c==="")&&delete n[r]}),n);function tk(n){const[r,c]=Object.entries(n.assignment)[0];return`assign({${r}: ${c}})`}function a7(n){return(n==null?void 0:n.type)==="xstate.assign"}const R$t=()=>{var n;return typeof window<"u"?window.location.origin:{}.NEXT_PUBLIC_VERCEL_URL?`https://${{}.NEXT_PUBLIC_VERCEL_URL}`:`http://localhost:${(n={}.PORT)!=null?n:"3000"}`};class $$t{constructor(r){this.getDeepChildren=u=>{const d=[],p=m=>{const x=this.map[m];x&&x.node.nodes.map(E=>{p(E.id),d.push(E.id)})};return p(u),d},this.getRelativeChildTarget=(u,d)=>{if(!this.isChildOrDeepChild(u,d))throw new Error("Target is not a child or deep child of source");return d.slice(u.length)},this.isChildOrDeepChild=(u,d)=>this.getDeepChildren(u).includes(d),this.isRootNode=u=>!this.map[u].parentId,this.isSibling=(u,d)=>{if(this.isSelfTransition(u,d))return!1;const p=this.map[u],m=this.map[d];return!p||!m?!1:p.parentId===m.parentId},this.isSelfTransition=(u,d)=>u===d,this.printXStateTargetAndInternal=(u,d)=>{const p=typeof d.internal<"u"&&!d.internal;if(this.isChildOrDeepChild(u,d.target)){const m=this.getRelativeChildTarget(u,d.target);return p?{target:m,internal:!1}:{target:m}}return this.isSelfTransition(u,d.target)?p?this.isRootNode(d.target)?{target:`#${d.target}`,internal:!1}:{target:this.map[u].node.data.key,internal:!1}:{target:void 0}:this.isSibling(u,d.target)?{target:this.map[d.target].node.data.key}:{target:`#${d.target}`}},this.map={};const c=(u,d)=>{this.map[u.id]={node:u,parentId:d},u.nodes.map(p=>{c(p,u.id)})};c(r.rootNode,void 0)}}function L$t(n,r=JSON.parse){const c=new $$t(n),u={actions:{},guards:{},services:{}};function d(m,x,E=0){const k={};m.nodes.forEach(L=>{k[L.data.key]=d(L,null,E+1)});const T={},P={};let I,O;m.data.invoke.forEach(L=>{L.jsImplementation&&(u.services[L.src]={jsImplementation:L.jsImplementation})}),[...m.data.entry,...m.data.exit].forEach(L=>{"jsImplementation"in L&&(u.actions[L.type]={jsImplementation:L.jsImplementation})});const N=m.data.invoke.map(L=>({src:L.src,id:L.id}));return n.edges.filter(L=>L.source===m.id).forEach(L=>{var F,B,X,ne;const $={target:`#${L.target}`,cond:(F=L.data.guard)==null?void 0:F.type,actions:L.data.actions.map(Z=>a7(Z)?tk(Z):Z.type),description:L.data.description,meta:L.data.metaEntries?Object.fromEntries(L.data.metaEntries):void 0};if(Object.assign($,c.printXStateTargetAndInternal(L.source,{...L.data,target:L.target})),(B=L.data.guard)!=null&&B.jsImplementation&&(u.guards[L.data.guard.type]={jsImplementation:L.data.guard.jsImplementation}),L.data.actions.forEach(Z=>{"jsImplementation"in Z&&(u.actions[Z.type]={jsImplementation:Z.jsImplementation})}),L.data.eventTypeData.type==="named"){const Z=L.data.eventTypeData.eventType;T[Z]||(T[Z]=[]),T[Z].push(ph($));return}if(L.data.eventTypeData.type==="after")P[L.data.eventTypeData.delay]||(P[L.data.eventTypeData.delay]=[]),P[L.data.eventTypeData.delay].push({target:`#${L.target}`,cond:(X=L.data.guard)==null?void 0:X.type,actions:L.data.actions.map(Z=>a7(Z)?tk(Z):Z.type),description:L.data.description,internal:L.data.internal,meta:L.data.metaEntries?Object.fromEntries(L.data.metaEntries):void 0});else if("invocationId"in L.data.eventTypeData){const Z=L.data.eventTypeData.invocationId,H=N.findIndex(ce=>ce.id===Z);if(H!==-1){const ce=N[H];L.data.eventTypeData.type==="invocation.done"?(ce.onDone||(ce.onDone=[]),ce.onDone.push(ph($))):L.data.eventTypeData.type==="invocation.error"&&(ce.onError||(ce.onError=[]),ce.onError.push(ph($)))}}else L.data.eventTypeData.type==="state.done"?(I=I!=null?I:[],I==null||I.push(ph($))):L.data.eventTypeData.type==="always"?(O=O!=null?O:[],O==null||O.push(ph($))):L.data.eventTypeData.type==="wildcard"&&(T["*"]=(ne=T["*"])!=null?ne:[],T["*"].push(ph($)))}),ph({...E===0&&{id:m.id,context:x?r(x):{}},...m.data,description:m.data.description||void 0,entry:m.data.entry.map(L=>a7(L)?tk(L):L.type),exit:m.data.exit.map(L=>a7(L)?tk(L):L.type),invoke:N.map(L=>({...L,id:nfe(L.id)?L.id:void 0})),after:ph(P),tags:m.data.tags.map(L=>L.tag),states:k,always:O,on:ph(T),history:m.data.type!=="history"?void 0:m.data.history,type:m.data.type&&["compound","atomic"].includes(m.data.type)?void 0:m.data.type,key:void 0,onDone:I})}return{config:d(n.rootNode,n.context),implementationMetadata:u}}const WDe=(n,r,c)=>`${n}#${r}[${c}]`;var Fk={exports:{}};(function(n){var r=function(){var c=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",p={};function m(E,k){if(!p[E]){p[E]={};for(var T=0;T>>8,T[P*2+1]=O%256}return T},decompressFromUint8Array:function(E){if(E==null)return x.decompress(E);for(var k=new Array(E.length/2),T=0,P=k.length;T>1}else{for(I=1,P=0;P>1}F--,F==0&&(F=Math.pow(2,X),X++),delete N[$]}else for(I=O[$],P=0;P>1;F--,F==0&&(F=Math.pow(2,X),X++),O[L]=B++,$=String(j)}if($!==""){if(Object.prototype.hasOwnProperty.call(N,$)){if($.charCodeAt(0)<256){for(P=0;P>1}else{for(I=1,P=0;P>1}F--,F==0&&(F=Math.pow(2,X),X++),delete N[$]}else for(I=O[$],P=0;P>1;F--,F==0&&(F=Math.pow(2,X),X++)}for(I=2,P=0;P>1;for(;;)if(Z=Z<<1,H==k-1){ne.push(T(Z));break}else H++;return ne.join("")},decompress:function(E){return E==null?"":E==""?null:x._decompress(E.length,32768,function(k){return E.charCodeAt(k)})},_decompress:function(E,k,T){var P=[],I=4,O=4,N=3,j="",L=[],$,F,B,X,ne,Z,H,ce={val:T(0),position:k,index:1};for($=0;$<3;$+=1)P[$]=$;for(B=0,ne=Math.pow(2,2),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;switch(B){case 0:for(B=0,ne=Math.pow(2,8),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;H=c(B);break;case 1:for(B=0,ne=Math.pow(2,16),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;H=c(B);break;case 2:return""}for(P[3]=H,F=H,L.push(H);;){if(ce.index>E)return"";for(B=0,ne=Math.pow(2,N),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;switch(H=B){case 0:for(B=0,ne=Math.pow(2,8),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;P[O++]=c(B),H=O-1,I--;break;case 1:for(B=0,ne=Math.pow(2,16),Z=1;Z!=ne;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),B|=(X>0?1:0)*Z,Z<<=1;P[O++]=c(B),H=O-1,I--;break;case 2:return L.join("")}if(I==0&&(I=Math.pow(2,N),N++),P[H])j=P[H];else if(H===O)j=F+F.charAt(0);else return null;L.push(j),P[O++]=F+j.charAt(0),I--,F=j,I==0&&(I=Math.pow(2,N),N++)}}};return x}();n!=null&&(n.exports=r)})(Fk);const aVn=n=>{try{const r=Fk.exports.decompressFromEncodedURIComponent(n);if(typeof r!="string")return;const c=JSON.parse(r);if("nodes"in c&&"edges"in c)return c}catch(r){console.error(r)}},cVn=n=>Fk.exports.compressToEncodedURIComponent(JSON.stringify(n)),GDe={parse:aVn,stringify:cVn},uVn=/^xstate\.after\((.*)\)#.*$/,F$t=n=>{if(n==="")return{type:"always"};if(n==="*")return{type:"wildcard"};try{const[,r]=n.match(uVn);if(typeof r!==void 0)return{type:"after",delay:r}}catch{}return n.startsWith("xstate.after.")?{type:"after",delay:n.substring(13)}:n.startsWith("done.invoke.")?{type:"invocation.done",invocationId:n.substring(12)}:n.startsWith("error.platform.")?{type:"invocation.error",invocationId:n.substring(15)}:n.startsWith("done.state.")?{type:"state.done"}:{type:"named",eventType:n}},o7e=n=>{const r=n.machine.getStateNodeByPath([]),c=n.path;return[r.key,...c].join(".")};function K9t(n,r,c){const u={},d=!r,m=sg(n).getStateNodeByPath([]),x=(T,P,I)=>{var O,N;return{...I,jsImplementation:(N=(O=c==null?void 0:c[P])==null?void 0:O[T])==null?void 0:N.jsImplementation}},E=T=>{var j,L,$,F;const P={};T.transitions.map(B=>{var Z,H,ce,pe,le;P[B.eventType]===void 0?P[B.eventType]=0:P[B.eventType]++;const X=WDe(B.source.id,B.eventType,P[B.eventType]),ne=(Z=r==null?void 0:r.edges[X])==null?void 0:Z.position;u[X]||(u[X]=[]),u[X].push({id:X,data:{eventTypeData:F$t(B.eventType),actions:B.actions.map(ye=>x(ye.type,"actions",ye)),guard:B.cond?x(B.cond.name,"guards",{type:B.cond.name,name:B.cond.name}):void 0,description:(ce=B.description)!=null?ce:(H=B.meta)==null?void 0:H.description,metaEntries:B.meta?Object.entries(B.meta):void 0,internal:B.internal},position:ne,source:o7e(B.source),target:o7e((le=(pe=B.target)==null?void 0:pe[0])!=null?le:B.source)})});const I=o7e(T),O=(j=r==null?void 0:r.nodes[I])==null?void 0:j.position,N=Object.values(T.states).map(E);return{id:I,position:O,data:{entry:(T.onEntry||[]).filter(Y9t).map(B=>x(B.type,"actions",B)),exit:(T.onExit||[]).filter(Y9t).map(B=>x(B.type,"actions",B)),description:($=T.description)!=null?$:(L=T.meta)==null?void 0:L.description,invoke:T.invoke.map(B=>{const X=typeof B.src=="string"?B.src:B.src.type;return x(X,"services",{id:B.id,src:X})})||[],key:T.key,tags:((F=T.tags)==null?void 0:F.map(B=>({tag:B})))||[],history:T.history===!1?void 0:T.history,initial:T.initial,type:T.type},nodes:N}},k=E(m);return{digraph:{context:"{}",rootNode:k,edges:Object.values(u).flat()},requiresAutolayout:d}}const Y9t=n=>{try{if(n.type==="xstate.send"&&n.id.startsWith("xstate.after")||n.type==="xstate.cancel"&&n.sendId.startsWith("xstate.after"))return!1}catch{}return!0};function XDe(){return Math.random().toString(36).slice(2)}const lVn=()=>`:invocation:${XDe()}`,nfe=n=>n?!n.includes(":invocation"):!1;function Uce(n,r,c){switch(n.type){case"named":return n.eventType;case"after":return`xstate.after(${n.delay})#${r}`;case"state.done":return`done.state.${r}`;case"always":return"";case"wildcard":return"*";case"invocation.done":return Q9t("done.invoke.",r,n.invocationId,c);case"invocation.error":return Q9t("error.platform.",r,n.invocationId,c)}}const Q9t=(n,r,c,u)=>{if(nfe(c))return`${n}${c}`;const d=u.findIndex(p=>p.id===c);return`${n}${zn.createInvokeId(r,d)}`},fVn=n=>{try{const r=Fk.exports.decompressFromEncodedURIComponent(n);return typeof r!="string"?void 0:JSON.parse(r)}catch(r){console.error(r)}},dVn=n=>Fk.exports.compressToEncodedURIComponent(JSON.stringify(n)),hVn={parse:fVn,stringify:dVn};var KDe={},YDe={};Object.defineProperty(YDe,"__esModule",{value:!0});YDe.default=pVn;function pVn(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(KDe,"__esModule",{value:!0});var B$t=KDe.RouterContext=void 0,gVn=YDe.default,bVn=gVn(U.exports);const mVn=bVn.default.createContext(null);B$t=KDe.RouterContext=mVn;function z$t(n){var r=U.exports.useRef();return r.current||(r.current={v:n()}),r.current.v}var s7e="__test_storage_support__",Z9t="@@test",rfe=function(r){r===void 0&&(r="local");try{var c=r==="session"?window.sessionStorage:window.localStorage;return c.setItem(s7e,Z9t),c.getItem(s7e)!==Z9t?!1:(c.removeItem(s7e),!0)}catch{return!1}},ife=function(){var r=Object.create(null);return{getItem:function(u){var d=r[u];return typeof d=="string"?d:null},setItem:function(u,d){r[u]=d},removeItem:function(u){delete r[u]},clear:function(){r=Object.create(null)}}};const mM="",EPe="#",pU="*",rM={},iM=n=>n[0]===EPe,vVn=()=>({actions:{},guards:{},services:{},activities:{},delays:{}}),yVn=(n,r,c)=>{const u=c.slice(0,-1).some(p=>!("cond"in p)&&!("in"in p)&&(zn.isString(p.target)||zn.isMachine(p.target))),d=r===mM?"the transient event":`event '${r}'`;zn.warn(!u,`One or more transitions for ${d} on state '${n.id}' are unreachable. Make sure that the default transition is the last one defined.`)};class rD{constructor(r,c,u="context"in r?r.context:void 0,d){var x;this.config=r,this._context=u,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(vVn(),c),this.parent=d==null?void 0:d.parent,this.key=this.config.key||(d==null?void 0:d.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$Fn),this.id=this.config.id||[this.machine.key,...this.path].join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(x=this.config.schema)!=null?x:{},this.description=this.config.description,J_||zn.warn(!("parallel"in this.config),`The "parallel" property is deprecated and will be removed in version 4.1. ${this.config.parallel?"Replace with `type: 'parallel'`":`Use \`type: '${this.type}'\``} in the config for state node '${this.id}' instead.`),this.initial=this.config.initial,this.states=this.config.states?zn.mapValues(this.config.states,(E,k)=>{const T=new rD(E,{},void 0,{parent:this,key:k});return Object.assign(this.idMap,{[T.id]:T,...T.idMap}),T}):rM;let p=0;function m(E){E.order=p++;for(const k of _9t(E))m(k)}m(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(({event:E})=>E===mM):mM in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=zn.toArray(this.config.entry||this.config.onEntry).map(E=>P9t(E)),this.onExit=zn.toArray(this.config.exit||this.config.onExit).map(E=>P9t(E)),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=zn.toArray(this.config.invoke).map((E,k)=>{if(zn.isMachine(E)){const T=zn.createInvokeId(this.id,k);return this.machine.options.services={[T]:E,...this.machine.options.services},wse({src:T,id:T})}else if(zn.isString(E.src)){const T=E.id||zn.createInvokeId(this.id,k);return wse({...E,id:T,src:E.src})}else if(zn.isMachine(E.src)||zn.isFunction(E.src)){const T=E.id||zn.createInvokeId(this.id,k);return this.machine.options.services={[T]:E.src,...this.machine.options.services},wse({id:T,...E,src:T})}else{const T=E.src;return wse({id:zn.createInvokeId(this.id,k),...E,src:T})}}),this.activities=zn.toArray(this.config.activities).concat(this.invoke).map(E=>mBn(E)),this.transition=this.transition.bind(this),this.tags=zn.toArray(this.config.tags)}_init(){this.__cache.transitions||SBn(this).forEach(r=>r.on)}withConfig(r,c){const{actions:u,activities:d,guards:p,services:m,delays:x}=this.options;return new rD(this.config,{actions:{...u,...r.actions},activities:{...d,...r.activities},guards:{...p,...r.guards},services:{...m,...r.services},delays:{...x,...r.delays}},c!=null?c:this.context)}withContext(r){return new rD(this.config,this.options,r)}get context(){return zn.isFunction(this._context)?this._context():this._context}get definition(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:zn.mapValues(this.states,r=>r.definition),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get on(){if(this.__cache.on)return this.__cache.on;const r=this.transitions;return this.__cache.on=r.reduce((c,u)=>(c[u.eventType]=c[u.eventType]||[],c[u.eventType].push(u),c),{})}get after(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)}get transitions(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)}getCandidates(r){if(this.__cache.candidates[r])return this.__cache.candidates[r];const c=r===mM,u=this.transitions.filter(d=>{const p=d.eventType===r;return c?p:p||d.eventType===pU});return this.__cache.candidates[r]=u,u}getDelayedTransitions(){const r=this.config.after;if(!r)return[];const c=(d,p)=>{const m=zn.isFunction(d)?`${this.id}:delay[${p}]`:d,x=sBn(m,this.id);return this.onEntry.push(hBn(x,{delay:d})),this.onExit.push(aBn(x)),x};return(zn.isArray(r)?r.map((d,p)=>{const m=c(d.delay,p);return{...d,event:m}}):zn.flatten(Object.keys(r).map((d,p)=>{const m=r[d],x=zn.isString(m)?{target:m}:m,E=isNaN(+d)?d:+d,k=c(E,p);return zn.toArray(x).map(T=>({...T,event:k,delay:E}))}))).map(d=>{const{delay:p}=d;return{...this.formatTransition(d),delay:p}})}getStateNodes(r){if(!r)return[];const c=r instanceof DE?r.value:zn.toStateValue(r,this.delimiter);if(zn.isString(c)){const p=this.getStateNode(c).initial;return p!==void 0?this.getStateNodes({[c]:p}):[this,this.states[c]]}const u=Object.keys(c),d=[this];return d.push(...zn.flatten(u.map(p=>this.getStateNode(p).getStateNodes(c[p])))),d}handles(r){const c=zn.getEventType(r);return this.events.includes(c)}resolveState(r){const c=r instanceof DE?r:DE.create(r),u=Array.from(lU([],this.getStateNodes(c.value)));return new DE({...c,value:this.resolve(c.value),configuration:u,done:Pae(u,this),tags:M9t(u),machine:this.machine})}transitionLeafNode(r,c,u){const p=this.getStateNode(r).next(c,u);return!p||!p.transitions.length?this.next(c,u):p}transitionCompoundNode(r,c,u){const d=Object.keys(r),m=this.getStateNode(d[0])._transition(r[d[0]],c,u);return!m||!m.transitions.length?this.next(c,u):m}transitionParallelNode(r,c,u){const d={};for(const T of Object.keys(r)){const P=r[T];if(!P)continue;const O=this.getStateNode(T)._transition(P,c,u);O&&(d[T]=O)}const p=Object.keys(d).map(T=>d[T]),m=zn.flatten(p.map(T=>T.transitions));if(!p.some(T=>T.transitions.length>0))return this.next(c,u);const E=zn.flatten(p.map(T=>T.entrySet)),k=zn.flatten(Object.keys(d).map(T=>d[T].configuration));return{transitions:m,entrySet:E,exitSet:zn.flatten(p.map(T=>T.exitSet)),configuration:k,source:c,actions:zn.flatten(Object.keys(d).map(T=>d[T].actions))}}_transition(r,c,u){return zn.isString(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)}getTransitionData(r,c){return this._transition(r.value,r,zn.toSCXMLEvent(c))}next(r,c){const u=c.name,d=[];let p=[],m;for(const T of this.getCandidates(u)){const{cond:P,in:I}=T,O=r.context,N=I?zn.isString(I)&&iM(I)?r.matches(zn.toStateValue(this.getStateNodeById(I).path,this.delimiter)):zn.matchesState(zn.toStateValue(I,this.delimiter),zn.path(this.path.slice(0,-2))(r.value)):!0;let j=!1;try{j=!P||zn.evaluateGuard(this.machine,P,O,c,r)}catch{}if(j&&N){T.target!==void 0&&(p=T.target),d.push(...T.actions),m=T;break}}if(!m)return;if(!p.length)return{transitions:[m],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:d};const x=zn.flatten(p.map(T=>this.getRelativeStateNodes(T,r.historyValue))),E=!!m.internal,k=E?[]:zn.flatten(x.map(T=>this.nodesFromChild(T)));return{transitions:[m],entrySet:k,exitSet:E?[]:[this],configuration:x,source:r,actions:d}}nodesFromChild(r){if(r.escapes(this))return[];const c=[];let u=r;for(;u&&u!==this;)c.push(u),u=u.parent;return c.push(this),c}escapes(r){if(this===r)return!1;let c=this.parent;for(;c;){if(c===r)return!1;c=c.parent}return!0}getActions(r,c,u,d){const p=lU([],d?this.getStateNodes(d.value):[this]),m=r.configuration.length?lU(p,r.configuration):p;for(const I of m)r7e(p,I)||r.entrySet.push(I);for(const I of p)(!r7e(m,I)||r7e(r.exitSet,I.parent))&&r.exitSet.push(I);zn.flatten(r.entrySet.map(I=>{const O=[];if(I.type!=="final")return O;const N=I.parent;if(!N.parent)return O;O.push(yse(I.id,I.doneData),yse(N.id,I.doneData?zn.mapContext(I.doneData,c,u):void 0));const j=N.parent;return j.type==="parallel"&&_9t(j).every(L=>Pae(r.configuration,L))&&O.push(yse(j.id)),O})),r.exitSet.sort((I,O)=>O.order-I.order),r.entrySet.sort((I,O)=>I.order-O.order);const x=new Set(r.entrySet),E=new Set(r.exitSet),[k,T]=[zn.flatten(Array.from(x).map(I=>[...I.activities.map(O=>gBn(O)),...I.onEntry])),zn.flatten(Array.from(E).map(I=>[...I.onExit,...I.activities.map(O=>bBn(O))]))];return O9t(T.concat(r.actions).concat(k),this.machine.options.actions)}transition(r=this.initialState,c,u){const d=zn.toSCXMLEvent(c);let p;if(r instanceof DE)p=u===void 0?r:this.resolveState(DE.from(r,u));else{const k=zn.isString(r)?this.resolve(zn.pathToStateValue(this.getResolvedPath(r))):this.resolve(r),T=u!=null?u:this.machine.context;p=this.resolveState(DE.from(k,T))}if(!J_&&d.name===pU)throw new Error(`An event cannot have the wildcard type ('${pU}')`);if(this.strict&&!this.events.includes(d.name)&&!zn.isBuiltInEvent(d.name))throw new Error(`Machine '${this.id}' does not accept event '${d.name}'`);const m=this._transition(p.value,p,d)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:p,actions:[]},x=lU([],this.getStateNodes(p.value)),E=m.configuration.length?lU(x,m.configuration):x;return m.configuration=[...E],this.resolveTransition(m,p,p.context,d)}resolveRaisedTransition(r,c,u){const d=r.actions;return r=this.transition(r,c),r._event=u,r.event=u.data,r.actions.unshift(...d),r}resolveTransition(r,c,u,d=fBn){const{configuration:p}=r,m=!c||r.transitions.length>0,x=m?EBn(this.machine,p):void 0,E=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,k=this.getActions(r,u,d,c),T=c?{...c.activities}:{};for(const ce of k)ce.type===A9t?T[ce.activity.id||ce.activity.type]=ce:ce.type===_Fn&&(T[ce.activity.id||ce.activity.type]=!1);const[P,I]=[[],u],[O,N]=zn.partition(P,ce=>ce.type===PFn||ce.type===OFn&&ce.to===Iv.Internal),L=P.filter(ce=>{var pe;return ce.type===A9t&&((pe=ce.activity)==null?void 0:pe.type)===AFn}).reduce((ce,pe)=>(ce[pe.activity.id]=RBn(pe.activity,this.machine,I,d),ce),c?{...c.children}:{}),$=m?r.configuration:c?c.configuration:[],F=Pae($,this),B=new DE({value:x||c.value,context:I,_event:d,_sessionid:c?c._sessionid:null,historyValue:x?E?zn.updateHistoryValue(E,x):void 0:c?c.historyValue:void 0,history:!x||r.source?c:void 0,actions:x?N:[],activities:x?T:c?c.activities:{},events:[],configuration:$,transitions:r.transitions,children:L,done:F,tags:M9t($),machine:this}),X=u!==I;B.changed=d.name===MFn||X;const{history:ne}=B;if(ne&&delete ne.history,!F&&(this._transient||p.some(ce=>ce._transient)),!m&&d.name===mM)return B;let Z=B;if(!F)for(;O.length;){const ce=O.shift();Z=this.resolveRaisedTransition(Z,ce._event,d)}const H=Z.changed||(ne?!!Z.actions.length||X||typeof ne.value!=typeof Z.value||!ABn(Z.value,ne.value):void 0);return Z.changed=H,Z.history=ne,Z}getStateNode(r){if(iM(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error(`Unable to retrieve child state '${r}' from '${this.id}'; no child states exist.`);const c=this.states[r];if(!c)throw new Error(`Child state '${r}' does not exist on '${this.id}'`);return c}getStateNodeById(r){const c=iM(r)?r.slice(EPe.length):r;if(c===this.id)return this;const u=this.machine.idMap[c];if(!u)throw new Error(`Child state node '#${c}' does not exist on machine '${this.id}'`);return u}getStateNodeByPath(r){if(typeof r=="string"&&iM(r))try{return this.getStateNodeById(r.slice(1))}catch{}const c=zn.toStatePath(r,this.delimiter).slice();let u=this;for(;c.length;){const d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u}resolve(r){if(!r)return this.initialStateValue||rM;switch(this.type){case"parallel":return zn.mapValues(this.initialStateValue,(c,u)=>c?this.getStateNode(u).resolve(r[u]||c):rM);case"compound":if(zn.isString(r)){const c=this.getStateNode(r);return c.type==="parallel"||c.type==="compound"?{[r]:c.initialStateValue}:r}return Object.keys(r).length?zn.mapValues(r,(c,u)=>c?this.getStateNode(u).resolve(c):rM):this.initialStateValue||{};default:return r||rM}}getResolvedPath(r){if(iM(r)){const c=this.machine.idMap[r.slice(EPe.length)];if(!c)throw new Error(`Unable to find state node '${r}'`);return c.path}return zn.toStatePath(r,this.delimiter)}get initialStateValue(){if(this.__cache.initialStateValue)return this.__cache.initialStateValue;let r;if(this.type==="parallel")r=zn.mapFilterValues(this.states,c=>c.initialStateValue||rM,c=>c.type!=="history");else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error(`Initial state '${String(this.initial)}' not found on '${this.key}'`);r=D9t(this.states[this.initial])?this.initial:{[this.initial]:this.states[this.initial].initialStateValue}}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue}getInitialState(r,c){this._init();const u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:u,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)}get initialState(){const{initialStateValue:r}=this;if(!r)throw new Error(`Cannot retrieve initial state from simple state '${this.id}'.`);return this.getInitialState(r)}get target(){let r;if(this.type==="history"){const c=this.config;zn.isString(c.target)?r=iM(c.target)?zn.pathToStateValue(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r}getRelativeStateNodes(r,c,u=!0){return u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]}get initialStateNodes(){if(D9t(this))return[this];if(this.type==="compound"&&!this.initial)return J_||zn.warn(!1,`Compound state node '${this.id}' has no initial state.`),[this];const r=zn.toStatePaths(this.initialStateValue);return zn.flatten(r.map(c=>this.getFromRelativePath(c)))}getFromRelativePath(r){if(!r.length)return[this];const[c,...u]=r;if(!this.states)throw new Error(`Cannot retrieve subPath '${c}' from node with no states`);const d=this.getStateNode(c);if(d.type==="history")return d.resolveHistory();if(!this.states[c])throw new Error(`Child state '${c}' does not exist on '${this.id}'`);return this.states[c].getFromRelativePath(u)}historyValue(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:zn.mapFilterValues(this.states,(c,u)=>{if(!r)return c.historyValue();const d=zn.isString(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},c=>!c.history)}}resolveHistory(r){if(this.type!=="history")return[this];const c=this.parent;if(!r){const d=this.target;return d?zn.flatten(zn.toStatePaths(d).map(p=>c.getFromRelativePath(p))):c.initialStateNodes}const u=zn.nestedPath(c.path,"states")(r).current;return zn.isString(u)?[c.getStateNode(u)]:zn.flatten(zn.toStatePaths(u).map(d=>this.history==="deep"?c.getFromRelativePath(d):[c.states[d[0]]]))}get stateIds(){const r=zn.flatten(Object.keys(this.states).map(c=>this.states[c].stateIds));return[this.id].concat(r)}get events(){if(this.__cache.events)return this.__cache.events;const{states:r}=this,c=new Set(this.ownEvents);if(r)for(const u of Object.keys(r)){const d=r[u];if(d.states)for(const p of d.events)c.add(`${p}`)}return this.__cache.events=Array.from(c)}get ownEvents(){const r=new Set(this.transitions.filter(c=>!(!c.target&&!c.actions.length&&c.internal)).map(c=>c.eventType));return Array.from(r)}resolveTarget(r){if(r!==void 0)return r.map(c=>{if(!zn.isString(c))return c;const u=c[0]===this.delimiter;if(u&&!this.parent)return this.getStateNodeByPath(c.slice(1));const d=u?this.key+c:c;if(this.parent)try{return this.parent.getStateNodeByPath(d)}catch(p){throw new Error(`Invalid transition definition for state node '${this.id}': -${p.message}`)}else return this.getStateNodeByPath(d)})}formatTransition(r){const c=zn.normalizeTarget(r.target),u="internal"in r?r.internal:c?c.some(x=>zn.isString(x)&&x[0]===this.delimiter):!0,{guards:d}=this.machine.options,p=this.resolveTarget(c),m={...r,actions:O9t(zn.toArray(r.actions)),cond:zn.toGuard(r.cond,d),target:p,source:this,internal:u,eventType:r.event,toJSON:()=>({...m,target:m.target?m.target.map(x=>`#${x.id}`):void 0,source:`#${this.id}`})};return m}formatTransitions(){let r;if(!this.config.on)r=[];else if(Array.isArray(this.config.on))r=this.config.on;else{const{[pU]:x=[],...E}=this.config.on;r=zn.flatten(Object.keys(E).map(k=>{!J_&&k===mM&&zn.warn(!1,`Empty string transition configs (e.g., \`{ on: { '': ... }}\`) for transient transitions are deprecated. Specify the transition in the \`{ always: ... }\` property instead. Please check the \`on\` configuration for "#${this.id}".`);const T=zn.toTransitionConfigArray(k,E[k]);return J_||yVn(this,k,T),T}).concat(zn.toTransitionConfigArray(pU,x)))}const c=this.config.always?zn.toTransitionConfigArray("",this.config.always):[],u=this.config.onDone?zn.toTransitionConfigArray(String(yse(this.id)),this.config.onDone):[];J_||zn.warn(!(this.config.onDone&&!this.parent),`Root nodes cannot have an ".onDone" transition. Please check the config of "${this.id}".`);const d=zn.flatten(this.invoke.map(x=>{const E=[];return x.onDone&&E.push(...zn.toTransitionConfigArray(String(uBn(x.id)),x.onDone)),x.onError&&E.push(...zn.toTransitionConfigArray(String(lBn(x.id)),x.onError)),E})),p=this.after,m=zn.flatten([...u,...d,...r,...c].map(x=>zn.toArray(x).map(E=>this.formatTransition(E))));for(const x of p)m.push(x);return m}}class wVn{constructor(r){this.config=r;const c=new rD(r);this.initialState=c.initialState}transition(r,c){var p;const u={guards:{}};return(p=c.guardNamesToEnsurePass)==null||p.map(m=>{u.guards[m]=()=>!0}),new rD(this.config,u).transition(r,c.event)}}function Hce(n,r){n.consumed=r!=null?r:!0}function jU(n){return n.consumed}var Bk={},V$t={exports:{}};(function(n){function r(c,u){Object.defineProperties(this,{x:{value:c,writable:!1,enumerable:!0,configurable:!1},y:{value:u,writable:!1,enumerable:!0,configurable:!1}})}r.prototype.clone=function(){return new this.constructor(this.x,this.y)},r.prototype.add=function(c){return new this.constructor(this.x+c.x,this.y+c.y)},r.prototype.subtract=function(c){return new this.constructor(this.x-c.x,this.y-c.y)},r.prototype.multiply=function(c){return new this.constructor(this.x*c,this.y*c)},r.prototype.divide=function(c){return new this.constructor(this.x/c,this.y/c)},r.prototype.equals=function(c){return this.x===c.x&&this.y===c.y},r.prototype.lerp=function(c,u){var d=1-u;return new this.constructor(this.x*d+c.x*u,this.y*d+c.y*u)},r.prototype.distanceFrom=function(c){var u=this.x-c.x,d=this.y-c.y;return Math.sqrt(u*u+d*d)},r.prototype.min=function(c){return new this.constructor(Math.min(this.x,c.x),Math.min(this.y,c.y))},r.prototype.max=function(c){return new this.constructor(Math.max(this.x,c.x),Math.max(this.y,c.y))},r.prototype.transform=function(c){return new this.constructor(c.a*this.x+c.c*this.y+c.e,c.b*this.x+c.d*this.y+c.f)},r.prototype.toString=function(){return"point("+this.x+","+this.y+")"},n.exports=r})(V$t);var U$t={exports:{}};(function(n){function r(c,u){Object.defineProperties(this,{x:{value:c,writable:!1,enumerable:!0,configurable:!1},y:{value:u,writable:!1,enumerable:!0,configurable:!1}})}r.fromPoints=function(c,u){return new r(u.x-c.x,u.y-c.y)},r.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.magnitude=function(){return this.x*this.x+this.y*this.y},r.prototype.dot=function(c){return this.x*c.x+this.y*c.y},r.prototype.cross=function(c){return this.x*c.y-this.y*c.x},r.prototype.determinant=function(c){return this.x*c.y-this.y*c.x},r.prototype.unit=function(){return this.divide(this.length())},r.prototype.add=function(c){return new this.constructor(this.x+c.x,this.y+c.y)},r.prototype.subtract=function(c){return new this.constructor(this.x-c.x,this.y-c.y)},r.prototype.multiply=function(c){return new this.constructor(this.x*c,this.y*c)},r.prototype.divide=function(c){return new this.constructor(this.x/c,this.y/c)},r.prototype.angleBetween=function(c){var u=this.dot(c)/(this.length()*c.length());u=Math.max(-1,Math.min(u,1));var d=Math.acos(u);return this.cross(c)<0?-d:d},r.prototype.perp=function(){return new this.constructor(-this.y,this.x)},r.prototype.perpendicular=function(c){return this.subtract(this.project(c))},r.prototype.project=function(c){var u=this.dot(c)/c.dot(c);return c.multiply(u)},r.prototype.transform=function(c){return new this.constructor(c.a*this.x+c.c*this.y,c.b*this.x+c.d*this.y)},r.prototype.equals=function(c){return this.x===c.x&&this.y===c.y},r.prototype.toString=function(){return"vector("+this.x+","+this.y+")"},n.exports=r})(U$t);var H$t={exports:{}};(function(n){function r(c,u,d,p,m,x){Object.defineProperties(this,{a:{value:c!==void 0?c:1,writable:!1,enumerable:!0,configurable:!1},b:{value:u!==void 0?u:0,writable:!1,enumerable:!0,configurable:!1},c:{value:d!==void 0?d:0,writable:!1,enumerable:!0,configurable:!1},d:{value:p!==void 0?p:1,writable:!1,enumerable:!0,configurable:!1},e:{value:m!==void 0?m:0,writable:!1,enumerable:!0,configurable:!1},f:{value:x!==void 0?x:0,writable:!1,enumerable:!0,configurable:!1}})}r.IDENTITY=new r(1,0,0,1,0,0),r.IDENTITY.isIdentity=function(){return!0},r.prototype.multiply=function(c){return this.isIdentity()?c:c.isIdentity()?this:new this.constructor(this.a*c.a+this.c*c.b,this.b*c.a+this.d*c.b,this.a*c.c+this.c*c.d,this.b*c.c+this.d*c.d,this.a*c.e+this.c*c.f+this.e,this.b*c.e+this.d*c.f+this.f)},r.prototype.inverse=function(){if(this.isIdentity())return this;var c=this.a*this.d-this.b*this.c;if(c===0)throw"Matrix is not invertible";var u=1/c,d=this.f*this.c-this.e*this.d,p=this.e*this.b-this.f*this.a;return new this.constructor(this.d*u,-this.b*u,-this.c*u,this.a*u,d*u,p*u)},r.prototype.translate=function(c,u){return new this.constructor(this.a,this.b,this.c,this.d,this.a*c+this.c*u+this.e,this.b*c+this.d*u+this.f)},r.prototype.scale=function(c){return new this.constructor(this.a*c,this.b*c,this.c*c,this.d*c,this.e,this.f)},r.prototype.scaleAt=function(c,u){var d=u.x-c*u.x,p=u.y-c*u.y;return new this.constructor(this.a*c,this.b*c,this.c*c,this.d*c,this.a*d+this.c*p+this.e,this.b*d+this.d*p+this.f)},r.prototype.scaleNonUniform=function(c,u){return new this.constructor(this.a*c,this.b*c,this.c*u,this.d*u,this.e,this.f)},r.prototype.scaleNonUniformAt=function(c,u,d){var p=d.x-c*d.x,m=d.y-u*d.y;return new this.constructor(this.a*c,this.b*c,this.c*u,this.d*u,this.a*p+this.c*m+this.e,this.b*p+this.d*m+this.f)},r.prototype.rotate=function(c){var u=Math.cos(c),d=Math.sin(c);return new this.constructor(this.a*u+this.c*d,this.b*u+this.d*d,this.a*-d+this.c*u,this.b*-d+this.d*u,this.e,this.f)},r.prototype.rotateAt=function(c,u){var d=Math.cos(c),p=Math.sin(c),m=-u.x+u.x*d-u.y*p,x=-u.y+u.y*d+u.x*p;return new this.constructor(this.a*d+this.c*p,this.b*d+this.d*p,this.a*-p+this.c*d,this.b*-p+this.d*d,this.a*m+this.c*x+this.e,this.b*m+this.d*x+this.f)},r.prototype.rotateFromVector=function(c){var u=c.unit(),d=u.x,p=u.y;return new this.constructor(this.a*d+this.c*p,this.b*d+this.d*p,this.a*-p+this.c*d,this.b*-p+this.d*d,this.e,this.f)},r.prototype.flipX=function(){return new this.constructor(-this.a,-this.b,this.c,this.d,this.e,this.f)},r.prototype.flipY=function(){return new this.constructor(this.a,this.b,-this.c,-this.d,this.e,this.f)},r.prototype.skewX=function(c){var u=Math.tan(c);return new this.constructor(this.a,this.b,this.a*u+this.c,this.b*u+this.d,this.e,this.f)},r.prototype.skewY=function(c){var u=Math.tan(c);return new this.constructor(this.a+this.c*u,this.b+this.d*u,this.c,this.d,this.e,this.f)},r.prototype.isIdentity=function(){return this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.e===0&&this.f===0},r.prototype.isInvertible=function(){return this.a*this.d-this.b*this.c!==0},r.prototype.getScale=function(){return{scaleX:Math.sqrt(this.a*this.a+this.c*this.c),scaleY:Math.sqrt(this.b*this.b+this.d*this.d)}},r.prototype.getDecomposition=function(){var c=(this.a+this.d)*.5,u=(this.a-this.d)*.5,d=(this.b+this.c)*.5,p=(this.b-this.c)*.5,m=Math.sqrt(c*c+p*p),x=Math.sqrt(u*u+d*d),E=m+x,k=m-x,T=Math.atan2(d,u),P=Math.atan2(p,c),I=(P-T)*.5,O=(P+T)*.5;return{translation:new this.constructor(1,0,0,1,this.e,this.f),rotation:this.constructor.IDENTITY.rotate(O),scale:new this.constructor(E,0,0,k,0,0),rotation0:this.constructor.IDENTITY.rotate(I)}},r.prototype.equals=function(c){return this.a===c.a&&this.b===c.b&&this.c===c.c&&this.d===c.d&&this.e===c.e&&this.f===c.f},r.prototype.toString=function(){return"matrix("+[this.a,this.b,this.c,this.d,this.e,this.f].join(",")+")"},n.exports=r})(H$t);Bk.Point2D=V$t.exports;Bk.Vector2D=U$t.exports;Bk.Matrix2D=H$t.exports;var ofe={},QDe={exports:{}};/** - * - * Polynomial.js - * - * copyright 2002, 2013 Kevin Lindsey - * - * contribution {@link http://github.com/Quazistax/kld-polynomial} - * @copyright 2015 Robert Benko (Quazistax) - * @license MIT - */(function(n){r.TOLERANCE=1e-6,r.ACCURACY=15,r.interpolate=function(u,d,p,m,x){if(u.constructor!==Array||d.constructor!==Array)throw new Error("Polynomial.interpolate: xs and ys must be arrays");if(isNaN(p)||isNaN(m)||isNaN(x))throw new Error("Polynomial.interpolate: n, offset, and x must be numbers");for(var E=0,k=0,T=new Array(p),P=new Array(p),I=0,O=Math.abs(x-u[m]),N=0;N=0;d--)this.coefs.push(u[d]);this._variable="t",this._s=0},r.prototype.eval=function(u){if(isNaN(u))throw new Error("Polynomial.eval: parameter must be a number");for(var d=0,p=this.coefs.length-1;p>=0;p--)d=d*u+this.coefs[p];return d},r.prototype.add=function(u){for(var d=new r,p=this.getDegree(),m=u.getDegree(),x=Math.max(p,m),E=0;E<=x;E++){var k=E<=p?this.coefs[E]:0,T=E<=m?u.coefs[E]:0;d.coefs[E]=k+T}return d},r.prototype.multiply=function(u){for(var d=new r,p=0;p<=this.getDegree()+u.getDegree();p++)d.coefs.push(0);for(var p=0;p<=this.getDegree();p++)for(var m=0;m<=u.getDegree();m++)d.coefs[p+m]+=this.coefs[p]*u.coefs[m];return d},r.prototype.divide_scalar=function(u){for(var d=0;d=0&&Math.abs(this.coefs[d])<=u;d--)this.coefs.pop()},r.prototype.bisection=function(u,d){var p=this.eval(u),m=this.eval(d),x;if(Math.abs(p)<=r.TOLERANCE)x=u;else if(Math.abs(m)<=r.TOLERANCE)x=d;else if(p*m<=0)for(var E=Math.log(d-u),k=Math.LN10*r.ACCURACY,T=Math.ceil((E+k)/Math.LN2),P=0;P=0;p--){var m=Math.round(this.coefs[p]*1e3)/1e3;if(m!=0){var x=m<0?" - ":" + ";m=Math.abs(m),p>0&&(m==1?m=this._variable:m+=this._variable),p>1&&(m+="^"+p),d.push(x),u.push(m)}}d[0]=d[0]==" + "?"":"-";for(var E="",p=0;p=m&&(T=r.interpolate(k,E,m,P-m,0),Math.abs(T.dy)<=x*T.y)));P++)E[P]=E[P-1],k[P]=.25*k[P-1];return T.y},r.prototype.getDegree=function(){return this.coefs.length-1},r.prototype.getDerivative=function(){for(var u=new r,d=1;d0){for(m=this.bisection(u,E[0]),m!=null&&p.push(m),i=0;i<=E.length-2;i++)m=this.bisection(E[i],E[i+1]),m!=null&&p.push(m);m=this.bisection(E[E.length-1],d),m!=null&&p.push(m)}else m=this.bisection(u,d),m!=null&&p.push(m)}return p},r.prototype.getLinearRoot=function(){var u=new Array,d=this.coefs[1];return d!=0&&u.push(-this.coefs[0]/d),u},r.prototype.getQuadraticRoots=function(){var u=new Array;if(this.getDegree()==2){var d=this.coefs[2],p=this.coefs[1]/d,m=this.coefs[0]/d,x=p*p-4*m;if(x>0){var E=Math.sqrt(x);u.push(.5*(-p+E)),u.push(.5*(-p-E))}else x==0&&u.push(.5*-p)}return u},r.prototype.getCubicRoots=function(){var u=new Array;if(this.getDegree()==3){var d=this.coefs[3],p=this.coefs[2]/d,m=this.coefs[1]/d,x=this.coefs[0]/d,E=(3*m-p*p)/3,k=(2*p*p*p-9*m*p+27*x)/27,T=p/3,P=k*k/4+E*E*E/27,I=k/2,O=this.zeroErrorEstimate();if(Math.abs(P)<=O&&(P=0),P>0){var N=Math.sqrt(P),j,L;j=-I+N,j>=0?L=Math.pow(j,1/3):L=-Math.pow(-j,1/3),j=-I-N,j>=0?L+=Math.pow(j,1/3):L-=Math.pow(-j,1/3),u.push(L-T)}else if(P<0){var $=Math.sqrt(-E/3),F=Math.atan2(Math.sqrt(-P),-I)/3,B=Math.cos(F),X=Math.sin(F),ne=Math.sqrt(3);u.push(2*$*B-T),u.push(-$*(B+ne*X)-T),u.push(-$*(B-ne*X)-T)}else{var j;I>=0?j=-Math.pow(I,1/3):j=Math.pow(-I,1/3),u.push(2*j-T),u.push(-j-T)}}return u};var c=function(u){return typeof u=="number"?u?u<0?-1:1:u===u?u:NaN:NaN};r.prototype.getQuarticRoots=function(){var u=[],d=this.getDegree();if(d==4){var p=new r;p.coefs=this.coefs.slice(),p.divide_scalar(p.coefs[d]);var m=1e-15;Math.abs(p.coefs[0])<10*m*Math.abs(p.coefs[3])&&(p.coefs[0]=0);var x=p.getDerivative(),E=x.getRoots().sort(function(B,X){return B-X}),k=[],T=E.length-1,P,I=this.bounds();maxabsX=Math.max(Math.abs(I.minX),Math.abs(I.maxX));var O=this.zeroErrorEstimate(maxabsX);for(P=0;P<=T;P++)k.push(p.eval(E[P]));for(P=0;P<=T;P++)Math.abs(k[P])-1){for(k[0]!=0?c(k[0])!=c(p.eval(E[0]-N)-k[0])&&(j.push(E[0]-N),L.push([I.minX,E[0]])):(u.push(E[0],E[0]),P++);P0)for(P=0;P"u"){var m=d.bounds();u=Math.max(Math.abs(m.minX),Math.abs(m.maxX))}if(u<.001)return 2*Math.abs(d.eval(p));var x=d.coefs.length-1,E=d.coefs[x];return 10*p*d.coefs.reduce(function(k,T,P){var I=T/E*Math.pow(u,P);return I>k?I:k},0)},r.prototype.bounds_UpperReal_Fujiwara=function(){var u=this.coefs,d=u.length-1,p=u[d];p!=1&&(u=this.coefs.map(function(P){return P/p}));var m=u.map(function(P,I){return I0)};var T=m.reduce(E,{max:0,nearmax:0});return{negX:-2*T.max,posX:2*k.max}},r.prototype.bounds_LowerReal_Fujiwara=function(){var u=new r;u.coefs=this.coefs.slice().reverse();var d=u.bounds_UpperReal_Fujiwara();return d.negX=1/d.negX,d.posX=1/d.posX,d},r.prototype.bounds=function(){var u=this.bounds_UpperReal_Fujiwara(),d={minX:u.negX,maxX:u.posX};return u.negX===0&&u.posX===0||(u.negX===0?d.minX=this.bounds_LowerReal_Fujiwara().posX:u.posX===0&&(d.maxX=this.bounds_LowerReal_Fujiwara().negX),d.minX>d.maxX&&(d.minX=d.maxX=0)),d},r.newton_secant_bisection=function(u,d,p,m,x,E){var k,T=0,P,I=0,O,N,j,L;k=u;var $=14,F=Math.pow(10,-$),B=typeof x=="number"&&typeof E=="number";if(B){if(x>E)throw new Error("newton root finding: min must be greater than max");if(j=d(x),L=d(E),c(j)==c(L))throw new Error("newton root finding: y values of bounds must be of opposite sign")}var X=function(){return Math.abs(O)<=F*Math.abs(k)||I==k-O-k},ne;for(ne=0;neE){if(c(j)==c(L))break;var Z=50,H=.25,ce=L-j,pe=E-x;if(ce==0?O=k-(x+pe*.5):Math.abs(ce/Math.min(j,L))>Z?O=k-(x+pe*(.5+(Math.abs(j)1&&($=Math.sqrt(L),c*=$,u*=$);var F=c*c,B=u*u,X=F*j,ne=B*N;$=(F*B-X-ne)/(X+ne),Math.abs($)jt;)tt-=jt;for(;tt<0;)tt+=jt;return m==!1&&(tt-=jt),{center:new Au(ce*E-pe*k+H.x,ce*k+pe*E+H.y),rx:c,ry:u,theta1:et,deltaTheta:tt}}function $i(n,r){this.init(n,r)}$i.prototype.init=function(n,r){this.type=n,this.params=r,this.meta={}};$i.TYPE={};var sc=$i.TYPE;sc.LINE="Line";sc.RECT="Rectangle";sc.ROUNDRECT="RoundRectangle";sc.CIRCLE="Circle";sc.ELLIPSE="Ellipse";sc.POLYGON="Polygon";sc.POLYLINE="Polyline";sc.PATH="Path";sc.ARC="Arc";sc.BEZIER2="Bezier2";sc.BEZIER3="Bezier3";function J9t(n){return n.split(" ").map(function(r){return r=r.split(","),new Au(r[0],r[1])})}$i.newShape=function(n,r){if(n=n.toLowerCase(),n==="line")return $i.newLine(new Au(r.x1,r.y1),new Au(r.x2,r.y2));if(n==="rect")return r.rx>0||r.ry>0?$i.newRoundRect(r.x,r.y,r.width,r.height,r.rx,r.ry):$i.newRect(r.x,r.y,r.width,r.height);if(n==="circle")return $i.newCircle(new Au(r.cx,r.cy),r.r);if(n==="ellipse")return $i.newEllipse(new Au(r.cx,r.cy),r.rx,r.ry);if(n==="polygon")return $i.newPolygon(J9t(r.points));if(n==="polyline")return $i.newPolyline(J9t(r.points));if(n==="path")return $i.newPath(r.d)};$i.newArc=function(n,r,c,u,d,p,m){var x=xVn(n,r,c,u,d,p,m);return new $i(sc.ARC,[x.center,x.rx,x.ry,d*Math.PI/180,x.theta1,x.deltaTheta])};$i.newBezier2=function(n,r,c){return new $i(sc.BEZIER2,[n,r,c])};$i.newBezier3=function(n,r,c,u){return new $i(sc.BEZIER3,[n,r,c,u])};$i.newCircle=function(n,r){return new $i(sc.CIRCLE,[n,r])};$i.newEllipse=function(n,r,c){return new $i(sc.ELLIPSE,[n,r,c])};$i.newLine=function(n,r){return new $i(sc.LINE,[n,r])};$i.newPolygon=function(n){return new $i(sc.POLYGON,[n])};$i.newPolyline=function(n){return new $i(sc.POLYLINE,[n])};$i.newRect=function(n,r,c,u){var d=[];return d.push(new Au(n,r)),d.push(new Au(n+c,r)),d.push(new Au(n+c,r+u)),d.push(new Au(n,r+u)),new $i(sc.RECT,[d])};var NE=function(n){return n*Math.PI/180};$i.newRoundRect=function(n,r,c,u,d,p){if(d===0&&p===0)return $i.newRect(n,r,c,u);d===0&&(d=p),p===0&&(p=d),d>c/2&&(d=c/2),p>u/2&&(d=u/2);var m=[],x=n,E=n+d,k=n+c-d,T=n+c,P=r,I=r+p,O=r+u-p,N=r+u;return m.push(new $i(sc.ARC,[new Au(E,I),d,p,0,NE(180),NE(90)])),m.push(new $i(sc.LINE,[new Au(E,P),new Au(k,P)])),m.push(new $i(sc.ARC,[new Au(k,I),d,p,0,NE(-90),NE(90)])),m.push(new $i(sc.LINE,[new Au(T,I),new Au(T,O)])),m.push(new $i(sc.ARC,[new Au(k,O),d,p,0,NE(0),NE(90)])),m.push(new $i(sc.LINE,[new Au(k,N),new Au(E,N)])),m.push(new $i(sc.ARC,[new Au(E,O),d,p,0,NE(90),NE(90)])),m.push(new $i(sc.LINE,[new Au(x,O),new Au(x,I)])),m[m.length-1].meta.closePath=!0,new $i(sc.ROUNDRECT,[m])};function SH(n,r){arguments.length>0&&this.init(n,r)}SH.prototype.init=function(n,r){this.type=n,this.text=r};SH.prototype.typeis=function(n){return this.type==n};var Sb={};Sb.COMMAND=0;Sb.NUMBER=1;Sb.EOD=2;Sb.PARAMS={A:["rx","ry","x-axis-rotation","large-arc-flag","sweep-flag","x","y"],a:["rx","ry","x-axis-rotation","large-arc-flag","sweep-flag","x","y"],C:["x1","y1","x2","y2","x","y"],c:["x1","y1","x2","y2","x","y"],H:["x"],h:["x"],L:["x","y"],l:["x","y"],M:["x","y"],m:["x","y"],Q:["x1","y1","x","y"],q:["x1","y1","x","y"],S:["x2","y2","x","y"],s:["x2","y2","x","y"],T:["x","y"],t:["x","y"],V:["y"],v:["y"],Z:[],z:[]};function SVn(n){for(var r=new Array;n!="";)if(n.match(/^([ \t\r\n,]+)/))n=n.substr(RegExp.$1.length);else if(n.match(/^([aAcChHlLmMqQsStTvVzZ])/))r[r.length]=new SH(Sb.COMMAND,RegExp.$1),n=n.substr(RegExp.$1.length);else if(n.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))r[r.length]=new SH(Sb.NUMBER,parseFloat(RegExp.$1)),n=n.substr(RegExp.$1.length);else throw new Error("Unrecognized segment command: "+n);return r[r.length]=new SH(Sb.EOD,null),r}$i.newPath=function(n){for(var r=SVn(n),c=0,u=r[c],d="BOD",p=[];!u.typeis(Sb.EOD);){var m,x=new Array;if(d=="BOD")if(u.text=="M"||u.text=="m")c++,m=Sb.PARAMS[u.text].length,d=u.text;else throw new Error("Path data must begin with a moveto command");else u.typeis(Sb.NUMBER)?m=Sb.PARAMS[d].length:(c++,m=Sb.PARAMS[u.text].length,d=u.text);if(c+m0&&this.init(n,r,c)}Pl.prototype.init=function(n,r,c){this.command=n,this.previous=c,this.points=[];for(var u=0;u0&&this.init("A",n,r)}D7.prototype=new Pl;D7.prototype.constructor=N7;D7.superclass=Pl.prototype;D7.prototype.init=function(n,r,c){var u=new Array,d=r.pop(),p=r.pop();u.push(p,d),D7.superclass.init.call(this,n,u,c),this.rx=parseFloat(r.shift()),this.ry=parseFloat(r.shift()),this.angle=parseFloat(r.shift()),this.arcFlag=parseFloat(r.shift()),this.sweepFlag=parseFloat(r.shift())};D7.prototype.getIntersectionParams=function(){return $i.newArc(this.previous.getLastPoint(),this.points[0],this.rx,this.ry,this.angle,this.arcFlag,this.sweepFlag)};function N7(n,r){arguments.length>0&&this.init("Q",n,r)}N7.prototype=new Pl;N7.prototype.constructor=N7;N7.superclass=Pl.prototype;N7.prototype.getIntersectionParams=function(){return $i.newBezier2(this.previous.getLastPoint(),this.points[0],this.points[1])};function j7(n,r){arguments.length>0&&this.init("C",n,r)}j7.prototype=new Pl;j7.prototype.constructor=j7;j7.superclass=Pl.prototype;j7.prototype.getLastControlPoint=function(){return this.points[1]};j7.prototype.getIntersectionParams=function(){return $i.newBezier3(this.previous.getLastPoint(),this.points[0],this.points[1],this.points[2])};function R7(n,r){arguments.length>0&&this.init("H",n,r)}R7.prototype=new Pl;R7.prototype.constructor=R7;R7.superclass=Pl.prototype;R7.prototype.init=function(n,r,c){var u=c.getLastPoint(),d=new Array;d.push(r.pop(),u.y),R7.superclass.init.call(this,n,d,c)};function $7(n,r){arguments.length>0&&this.init("V",n,r)}$7.prototype=new Pl;$7.prototype.constructor=$7;$7.superclass=Pl.prototype;$7.prototype.init=function(n,r,c){var u=c.getLastPoint(),d=new Array;d.push(u.x,r.pop()),$7.superclass.init.call(this,n,d,c)};function OD(n,r){arguments.length>0&&this.init("L",n,r)}OD.prototype=new Pl;OD.prototype.constructor=OD;OD.superclass=Pl.prototype;OD.prototype.getIntersectionParams=function(){return $i.newLine(this.previous.getLastPoint(),this.points[0])};function wq(n,r){arguments.length>0&&this.init("M",n,r)}wq.prototype=new Pl;wq.prototype.constructor=wq;wq.superclass=Pl.prototype;function L7(n,r){arguments.length>0&&this.init("T",n,r)}L7.prototype=new Pl;L7.prototype.constructor=L7;L7.superclass=Pl.prototype;L7.prototype.getControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[QqTt]$/)){var c=this.previous.getControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};L7.prototype.getIntersectionParams=function(){return $i.newBezier2(this.previous.getLastPoint(),this.getControlPoint(),this.points[0])};function Sk(n,r){arguments.length>0&&this.init("S",n,r)}Sk.prototype=new Pl;Sk.prototype.constructor=Sk;Sk.superclass=Pl.prototype;Sk.prototype.getFirstControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[SsCc]$/)){var c=this.previous.getLastControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};Sk.prototype.getLastControlPoint=function(){return this.points[0]};Sk.prototype.getIntersectionParams=function(){return $i.newBezier3(this.previous.getLastPoint(),this.getFirstControlPoint(),this.points[0],this.points[1])};function $d(n,r,c){arguments.length>0&&this.init(n,r,c)}$d.prototype=new Pl;$d.prototype.constructor=$d;$d.superclass=Pl.prototype;$d.prototype.init=function(n,r,c){this.command=n,this.previous=c,this.points=[];var u;this.previous?u=this.previous.getLastPoint():u=new Au(0,0);for(var d=0;d0&&this.init("z",n,r)}Ek.prototype=new $d;Ek.prototype.constructor=Ek;Ek.superclass=$d.prototype;Ek.prototype.getLastPoint=function(){for(var n=this.previous,r;n;){if(n.command.match(/^[mMzZ]$/)){r=n.getLastPoint();break}n=n.previous}return r};Ek.prototype.getIntersectionParams=function(){return $i.newLine(this.previous.getLastPoint(),this.getLastPoint())};function F7(n,r){arguments.length>0&&this.init("q",n,r)}F7.prototype=new $d;F7.prototype.constructor=F7;F7.superclass=$d.prototype;F7.prototype.getControlPoint=function(){return this.points[0]};F7.prototype.getIntersectionParams=function(){return $i.newBezier2(this.previous.getLastPoint(),this.points[0],this.points[1])};function B7(n,r){arguments.length>0&&this.init("c",n,r)}B7.prototype=new $d;B7.prototype.constructor=B7;B7.superclass=$d.prototype;B7.prototype.getLastControlPoint=function(){return this.points[1]};B7.prototype.getIntersectionParams=function(){return $i.newBezier3(this.previous.getLastPoint(),this.points[0],this.points[1],this.points[2])};function z7(n,r){arguments.length>0&&this.init("l",n,r)}z7.prototype=new $d;z7.prototype.constructor=z7;z7.superclass=$d.prototype;z7.prototype.toString=function(){new Array;var n,r;return this.previous?n=this.previous.getLastPoint():n=new Point(0,0),r=this.points[0].subtract(n),this.previous.constructor!=this.constuctor&&this.previous.constructor!=_D&&(cmd=this.command),cmd+r.toString()};z7.prototype.getIntersectionParams=function(){return $i.newLine(this.previous.getLastPoint(),this.points[0])};function _D(n,r){arguments.length>0&&this.init("m",n,r)}_D.prototype=new $d;_D.prototype.constructor=_D;_D.superclass=$d.prototype;function V7(n,r){arguments.length>0&&this.init("t",n,r)}V7.prototype=new $d;V7.prototype.constructor=V7;V7.superclass=$d.prototype;V7.prototype.getControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[QqTt]$/)){var c=this.previous.getControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};V7.prototype.getIntersectionParams=function(){return $i.newBezier2(this.previous.getLastPoint(),this.getControlPoint(),this.points[0])};function kk(n,r){arguments.length>0&&this.init("s",n,r)}kk.prototype=new $d;kk.prototype.constructor=kk;kk.superclass=$d.prototype;kk.prototype.getFirstControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[SsCc]$/)){var c=this.previous.getLastControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};kk.prototype.getLastControlPoint=function(){return this.points[0]};kk.prototype.getIntersectionParams=function(){return $i.newBezier3(this.previous.getLastPoint(),this.getFirstControlPoint(),this.points[0],this.points[1])};var W$t=$i;function sfe(n){this.init(n)}sfe.prototype.init=function(n){this.status=n,this.points=[]};sfe.prototype.appendPoint=function(n){this.points.push(n)};sfe.prototype.appendPoints=function(n){this.points=this.points.concat(n)};var G$t=sfe,NS={exports:{}},oT=G$t,X$t=Bk,Ck=X$t.Point2D,tf=X$t.Vector2D,Q0=ofe.Polynomial;function ZDe(n){var r=1e-15;n.sort(function(u,d){return u-d});for(var c=1;c0&&ye.length>0){var Ge=1e-4;e:for(var qe=0;qe0&&Se.length>0){var Jt=1e-4;e:for(var sn=0;sn0&&gn.length>0){var yr=1e-4;e:for(var Sr=0;Sr - * @license MIT - */var c7=Bk.Point2D,Q9=Bk.Vector2D,dv=Bk.Matrix2D,K$t=ofe.Polynomial,RU=W$t,Gh=G$t,a7e=NS.exports,Qh=RU.TYPE;function EVn(n,r){var c=n[0]*r[1]-r[0]*n[1],u=n[0]*r[2]-r[0]*n[2],d=n[0]*r[3]-r[0]*n[3],p=n[0]*r[4]-r[0]*n[4],m=n[0]*r[5]-r[0]*n[5],x=n[1]*r[2]-r[1]*n[2],E=n[1]*r[4]-r[1]*n[4],k=n[1]*r[5]-r[1]*n[5],T=n[2]*r[3]-r[2]*n[3],P=n[3]*r[4]-r[3]*n[4],I=n[3]*r[5]-r[3]*n[5],O=k+P,N=E-T;return new K$t(c*x-u*u,c*N+d*x-2*u*p,c*O+d*N-p*p-2*u*m,c*I+d*O-2*p*m,d*I-m*m)}function kVn(n,r,c,u,d,p,m,x){if(n.points.length===0)return n;if(x&&!x.isIdentity())var E=x.inverse();var k=[],T=new Q9(1,0),P=Math.PI*2,I=m<0,O=Math.abs(m)>Math.PI,N=new dv().scaleNonUniform(1,u/c).rotate(p),j=new dv().scaleNonUniform(1,u/c).rotate(p+m);p=(T.angleBetween(T.transform(N))+P)%P,m=T.transform(N).angleBetween(T.transform(j)),m=(O?P-Math.abs(m):Math.abs(m))*(I?-1:1);for(var L=new dv().rotate(d).multiply(N),$=0,F,B;$=0?(B=(B+2*P)%P,B<=m&&k.push(F)):(B=(B-2*P)%P,B>=m&&k.push(F));return n.points=k,n}function e7t(n,r){if(!(n.length===0||r.length===0)){var c=function(E,k){return E-1?H[0].distanceFrom(H[1])-1)){H.length==3&&(N=N%2);var ce=N+(N%2?-1:2),pe,le,ye;pe=H[N].distanceFrom(H[N+1]),le=H[N].distanceFrom(H[ce]),ye=H[N+1].distanceFrom(H[ce]),pe0){var F=Math.sqrt(j),B=(-O-F)/I,X=(-O+F)/I;X=X>1?X-L:X<0?X+L:X,B=B>1?B-L:B<0?B+L:B,(B<0||11&&X>1?p=new Gh("Outside"):p=new Gh("Inside"):(p=new Gh,0<=B&&B<=1&&p.appendPoint(u.lerp(d,B)),0<=X&&X<=1&&p.appendPoint(u.lerp(d,X)))}else{var ne=-O/I;0<=ne&&ne<=1?(p=new Gh,p.appendPoint(u.lerp(d,ne))):p=new Gh("Outside")}return p},intersectLineLine:function(n,r,c,u){var d,p=(u.x-c.x)*(n.y-c.y)-(u.y-c.y)*(n.x-c.x),m=(r.x-n.x)*(n.y-c.y)-(r.y-n.y)*(n.x-c.x),x=(u.y-c.y)*(r.x-n.x)-(u.x-c.x)*(r.y-n.y);if(x!==0){var E=p/x,k=m/x;0<=E&&E<=1&&0<=k&&k<=1?(d=new Gh,d.points.push(new c7(n.x+E*(r.x-n.x),n.y+E*(r.y-n.y)))):d=new Gh}else p===0||m===0?d=new Gh("Coincident"):d=new Gh("Parallel");return d},intersectRayRay:function(n,r,c,u){var d,p=(u.x-c.x)*(n.y-c.y)-(u.y-c.y)*(n.x-c.x),m=(r.x-n.x)*(n.y-c.y)-(r.y-n.y)*(n.x-c.x),x=(u.y-c.y)*(r.x-n.x)-(u.x-c.x)*(r.y-n.y);if(x!==0){var E=p/x;d=new Gh,d.points.push(new c7(n.x+E*(r.x-n.x),n.y+E*(r.y-n.y)))}else p===0||m===0?d=new Gh("Coincident"):d=new Gh("Parallel");return d}},Ik={};Ik[Qh.PATH]=zk.intersectPathShape;Ik[Qh.POLYLINE]=zk.intersectLinesShape;Ik[Qh.POLYGON]=zk.intersectLinesShape;Ik[Qh.RECT]=zk.intersectLinesShape;Ik[Qh.ROUNDRECT]=zk.intersectPathShape;Ik[Qh.ARC]=zk.intersectArcShape;function Ese(n,r,c,u){var d=n,p=r,m;if(d!==null&&p!==null){var x;if(x=Ik[d.type])m=x(d,p,c,u);else if(x=Ik[p.type])m=x(p,d,u,c);else{var E,k,T,P,I;d.type===Qh.CIRCLE?(k=[d.params[0],d.params[1],d.params[1]],P=Qh.ELLIPSE):(k=d.params.slice(),P=d.type),p.type===Qh.CIRCLE?(T=[p.params[0],p.params[1],p.params[1]],I=Qh.ELLIPSE):(T=p.params.slice(),I=p.type);var O=1,N,j=c instanceof dv&&u instanceof dv;if(j)if(P===Qh.ELLIPSE&&I===Qh.ELLIPSE){var L,$,F,B=k[0],X=k[1],ne=k[2],Z=T[0],H=T[1],ce=T[2];c=c.multiply(dv.IDENTITY.translate(B.x,B.y).scaleNonUniform(X/O,ne/O)),B=new c7(0,0),X=ne=O,u=u.multiply(dv.IDENTITY.translate(Z.x,Z.y).scaleNonUniform(H,ce)),Z=new c7(0,0),H=ce=1,F=c.inverse().multiply(u).getDecomposition(),L=F.rotation.inverse().multiply(F.translation.inverse()),$=F.scale,H=$.a,ce=$.d,B=B.transform(L),N=c.multiply(L.inverse()),k[0]=B,k[1]=X,k[2]=ne,T[0]=Z,T[1]=H,T[2]=ce}else{var pe=function(Ge,qe,et){var tt=function(jt){qe[jt]=qe[jt].transform(et)};if(Ge===Qh.LINE)tt(0),tt(1);else if(Ge===Qh.BEZIER2)tt(0),tt(1),tt(2);else if(Ge===Qh.BEZIER3)tt(0),tt(1),tt(2),tt(3);else throw new Error("Unknown shape: "+Ge)};if(I===Qh.ELLIPSE){var le;le=T,T=k,k=le,le=I,I=P,P=le,le=u,u=c,c=le}if(P===Qh.ELLIPSE){var B=k[0],X=k[1],ne=k[2];c=c.multiply(dv.IDENTITY.translate(B.x,B.y).scaleNonUniform(X/O,ne/O)),B=new c7(0,0),X=ne=O,$=c.inverse().multiply(u),pe(I,T,$),N=c,k[0]=B,k[1]=X,k[2]=ne}else pe(P,k,c),pe(I,T,u),N=dv.IDENTITY}if(P1||I<0||I>1)return!1;const O=c+P*(d-c),N=u+P*(p-u);return{x:O,y:N}}function kPe(n,r){const c={point:$U(n,[{x:r.left,y:r.top},{x:r.right,y:r.top}]),side:"top"},u={point:$U(n,[{x:r.right,y:r.top},{x:r.right,y:r.bottom}]),side:"right"},d={point:$U(n,[{x:r.right,y:r.bottom},{x:r.left,y:r.bottom}]),side:"bottom"},p={point:$U(n,[{x:r.left,y:r.bottom},{x:r.left,y:r.top}]),side:"left"};return[c,u,d,p].filter(m=>m.point!==!1)}function EH(n,r){for(const c of Object.values(r))if(kPe(n,c).length)return!0;return!1}function CVn(n,r){const c=n.map(r),u=Math.min(...c);return n[c.findIndex(d=>d===u)]}function u7(n){return n.map(([r,...c])=>[r,...c.map(u=>typeof u=="number"?u:`${u.x},${u.y}`)].join(" ")).join(" ")}function IVn(n,r=10){const c=[],u=[],d=[];for(const p of n){const[m]=p;["L","H","V"].includes(m)||d.length>1&&(c.push([...d]),d.length=0),d.push(p)}d.length>1&&c.push([...d]);for(const p of c){const m=p.map(([,k])=>k),x=TVn(AVn(m)),E=[p[0]];x.forEach((k,T,P)=>{if(T>=2&&T<=P.length-2&&PVn(P[T-1],k,P[T+1])){const{p1:I,p2:O,p:N}=OVn(P[T-1],k,P[T+1],r);E.push(["L",I],["C",I,N,O])}else T>0&&E.push(["L",k])}),u.push(...E)}return u}function TVn(n){const r=[];return n.forEach((c,u)=>{const[d,p,m]=[c,n[u+1],n[u+2]];if(!m||!p){r.push(d);return}const x={x:d.x+(p.x-d.x)/2,y:d.y+(p.y-d.y)/2};r.push(d,x)}),r}function AVn(n){const r=new Set,c=[];return n.forEach((u,d)=>{const p=n[d-1],m=n[d+1];if((p==null?void 0:p.x)===u.x&&u.x===(m==null?void 0:m.x)||(p==null?void 0:p.y)===u.y&&u.y===(m==null?void 0:m.y))return;const x=`${u.x}|${u.y}`;r.has(x)||c.push(u)}),c}function PVn(n,r,c){return!(n.x===r.x&&c.x===r.x||n.y===r.y&&c.y===r.y)}const r7t=(n,r)=>({type:"vector",x:r.x-n.x,y:r.y-n.y}),i7t=n=>{let r=n.x*n.x+n.y*n.y;return r=Math.sqrt(r),{type:"vector",x:n.x/r,y:n.y/r}},OVn=(n,r,c,u=10)=>{const d=r7t(r,n),p=r7t(r,c),m=Math.hypot(d.x,d.y),x=Math.hypot(p.x,p.y);if(m*x===0)return{p1:r,p2:r,p:r};const E=Math.min(u,m-.1,x-.1),k=i7t(d),T=i7t(p),P={x:r.x+k.x*E,y:r.y+k.y*E},I={x:r.x+T.x*E,y:r.y+T.y*E};return{p1:P,p2:I,p:r}},CPe={left:"right",right:"left",top:"bottom",bottom:"top"};function qce(n){return new Z0(n,n.side)}function sS(n){const r=Math.min(...n.map(p=>p.left)),c=Math.max(...n.map(p=>p.right)),u=Math.min(...n.map(p=>p.top)),d=Math.max(...n.map(p=>p.bottom));return new Du({left:r,right:c,top:u,bottom:d})}const _Vn=n=>n.width>0&&n.height>0,MVn=n=>jVn(n.center,144,49),DVn=(n,r)=>{const c=[n.center,r.center],u=kPe(c,n)[0],d=kPe(c,r)[0];return!u||!d?NVn(c[0],c[1]):new Du([u.point,d.point]).center};function NVn(n,r){return{x:(n.x+r.x)/2,y:(n.y+r.y)/2}}function LU(n,r,c){if(!(n.dy===0&&(n.yr.bottom))&&!(n.dx===0&&(n.xr.right))){if(n.dx>0&&n.xr.right&&c.includes("right"))return{x:r.right,y:n.y,side:"right"};if(n.dy>0&&n.yr.bottom&&c.includes("bottom"))return{x:n.x,y:r.bottom,side:"bottom"}}}class Du{toJSON(){const{top:r,left:c,bottom:u,right:d,width:p,height:m,x,y:E}=this;return{top:r,left:c,bottom:u,right:d,width:p,height:m,x,y:E}}constructor(r){if(Array.isArray(r)){const c=Math.min(r[0].x,r[1].x),u=Math.max(r[0].x,r[1].x)-c,d=Math.min(r[0].y,r[1].y),p=Math.max(r[0].y,r[1].y)-d;this.top=d,this.left=c,this.width=u,this.right=this.left+this.width,this.height=p,this.bottom=this.top+this.height,this.x=this.left,this.y=this.top}else this.top="top"in r?r.top:"y"in r?r.y:r.bottom-r.height,this.left="left"in r?r.left:"x"in r?r.x:r.right-r.width,this.bottom="bottom"in r?r.bottom:this.top+r.height,this.right="right"in r?r.right:this.left+r.width,this.width=this.right-this.left,this.height=this.bottom-this.top,this.x=this.left,this.y=this.top}point(r,c,u){const d={x:0,y:0,...u};switch(r){case"left":d.x=this.left;break;case"right":d.x=this.right;break;case"center":d.x=this.left+this.width/2;break}switch(c){case"top":d.y=this.top;break;case"bottom":d.y=this.bottom;break;case"center":d.y=this.top+this.height/2;break}return d}get center(){return{x:this.left+this.width/2,y:this.top+this.height/2}}centerSide(r,c=0){switch(r){case"left":return new Z0({x:this.left-c,y:this.center.y},"left");case"right":return new Z0({x:this.right+c,y:this.center.y},"right");case"top":return new Z0({x:this.center.x,y:this.top-c},"top");case"bottom":return new Z0({x:this.center.x,y:this.bottom+c},"bottom")}}relativeSide(r,c){switch(r){case"left":case"right":return{side:r,x:this[r],y:this.y+this.height*c};case"top":case"bottom":return{side:r,x:this.x+this.width*c,y:this[r]}}}getRelativeSidePoint(r){const{side:c}=r;switch(c){case"left":case"right":{const u=this.height===0?.5:(r.y-this.y)/this.height;return{side:c,percent:u}}case"top":case"bottom":{const u=this.width===0?.5:(r.x-this.x)/this.width;return{side:c,percent:u}}}}sideSegment(r){switch(r){case"left":return[{x:this.left,y:this.top},{x:this.left,y:this.bottom}];case"right":return[{x:this.right,y:this.top},{x:this.right,y:this.bottom}];case"top":return[{x:this.left,y:this.top},{x:this.right,y:this.top}];case"bottom":return[{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}];default:throw new Error("Invalid side")}}equals(r){return["top","left","bottom","right"].every(c=>r[c]===this[c])}translate(r,c){return new Du({left:this.left+r,top:this.top+c,width:this.width,height:this.height})}moveTo(r){return new Du({left:r.x,top:r.y,width:this.width,height:this.height})}expand(r){const c=typeof r=="number"?r:r.dx,u=typeof r=="number"?r:r.dy;return new Du({left:this.left-c,right:this.right+c,top:this.top-u,bottom:this.bottom+u})}getBox(){return[{x:this.left,y:this.top},{x:this.right,y:this.bottom}]}contains(r,c=0){return r.x>=this.left-c&&r.x<=this.right+c&&r.y>=this.top-c&&r.y<=this.bottom+c}containsRect(r){return r.right>this.left&&r.leftthis.top&&r.topn,CS=n=>n,Z$t=n=>n,l7=n=>n;function Zx({x:n,y:r},c){const u=c.getScreenCTM();return aS(u?{x:(n-u.e)/u.a,y:(r-u.f)/u.d}:{x:0,y:0})}function o7t(n,r){const c=Zx(CS({x:0,y:0}),r),u=Zx(CS(n),r);return Z$t({x:u.x-c.x,y:u.y-c.y})}function jx(n,r){return r?Zx(CS({x:n.clientX,y:n.clientY}),r):{x:n.clientX,y:n.clientY}}function eNe(n,r){if(!r)return new Du(n);const c=CS({x:n.left,y:n.top}),u=CS({x:n.right,y:n.bottom}),d=Zx(c,r),p=Zx(u,r);return new Du({left:d.x,right:p.x,top:d.y,bottom:p.y})}function J$t(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}const u7e=(n,r)=>n.leftr.left&&n.topr.top,rS=lN({session:null,ref:null,listenerOptions:{}},{events:{PRESS_SESSION_STARTED:({pointerId:n,point:r})=>({pointerId:n,point:r}),PRESS_SESSION_STOPPED:()=>({}),PRESS_POINT_MOVED:({point:n})=>({point:n})}}),s7t=rS.createMachine({preserveActionOrder:!0,initial:"check_session_data",states:{check_session_data:{always:[{cond:n=>!!n.session,target:"active",actions:yH(n=>rS.events.PRESS_SESSION_STARTED(n.session))},"idle"]},idle:{invoke:{id:"pressSessionStartedListener",src:({ref:n,listenerOptions:r})=>c=>{const u=n.current;if(!!u)return Il.bind(u,{type:"pointerdown",listener:d=>{if(jU(d))return;d.button===0&&c(rS.events.PRESS_SESSION_STARTED({pointerId:d.pointerId,point:{x:d.pageX,y:d.pageY}}))},options:r})}},on:{PRESS_SESSION_STARTED:{target:"active",actions:E9t(Iv.Parent)}}},active:{entry:["setSessionData"],exit:["releasePointer","clearSessionData"],invoke:{id:"pressSessionListeners",src:({ref:n,session:r,listenerOptions:c})=>u=>{const d=n.current;return Il.bindAll(d,[{type:"pointermove",listener:p=>{jU(p)||p.pointerId===r.pointerId&&(d.hasPointerCapture(p.pointerId)||d.setPointerCapture(p.pointerId),u(rS.events.PRESS_POINT_MOVED({point:{x:p.pageX,y:p.pageY}})))}},{type:"pointerup",listener:p=>{jU(p)||p.pointerId===r.pointerId&&(u(rS.events.PRESS_POINT_MOVED({point:{x:p.pageX,y:p.pageY}})),u(rS.events.PRESS_SESSION_STOPPED()))}},{type:"pointercancel",listener:p=>{jU(p)||p.pointerId===r.pointerId&&u(rS.events.PRESS_SESSION_STOPPED())}}],c)}},on:{PRESS_POINT_MOVED:{actions:["sendPointDelta","updatePoint"]},PRESS_SESSION_STOPPED:{target:"idle",actions:E9t(Iv.Parent)}}}}},{actions:{releasePointer:({ref:n,session:r})=>n.current.releasePointerCapture(r.pointerId),setSessionData:eo({session:(n,r)=>"pointerId"in r&&r.point?{pointerId:r.pointerId,point:r.point}:n.session}),clearSessionData:eo({session:null}),updatePoint:eo({session:(n,r)=>({...n.session,point:r.point})}),sendPointDelta:yH((n,r)=>({type:"POINTER_MOVED_BY",vector:l7({x:r.point.x-n.session.point.x,y:r.point.y-n.session.point.y})}))}});var VVn=function n(r,c){if(r===c)return!0;if(r&&c&&typeof r=="object"&&typeof c=="object"){if(r.constructor!==c.constructor)return!1;var u,d,p;if(Array.isArray(r)){if(u=r.length,u!=c.length)return!1;for(d=u;d--!==0;)if(!n(r[d],c[d]))return!1;return!0}if(r.constructor===RegExp)return r.source===c.source&&r.flags===c.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===c.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===c.toString();if(p=Object.keys(r),u=p.length,u!==Object.keys(c).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(c,p[d]))return!1;for(d=u;d--!==0;){var m=p[d];if(!n(r[m],c[m]))return!1}return!0}return r!==r&&c!==c};const el=24,Yf=new Du({x:0,y:0,width:el*5,height:el*2}),Cse=new Du({x:0,y:0,width:el*4,height:el*2});function Wce(n){return{x:n.currentRects.children.left+IPe.left,y:n.currentRects.children.bottom+IPe.bottom}}function eLt(){return Math.random().toString(36).slice(2)}const IPe={top:el*2,right:el*2,bottom:el*2,left:el*2};class Ju{constructor(r,c,u){var d,p;this.config=r,this.graph=c,this.parent=u,this.nodes=[],this.delta={dx:0,dy:0},this.uniqueId=eLt(),this.isHighlighted=!1,this._data={...r.data},this.invocations=r.data.invoke.map(m=>({src:m.src,internalUniqueId:m.id,userIdOverride:nfe(m.id)?m.id:void 0,jsImplementation:m.jsImplementation}))||[],this._position=(d=r.position)!=null?d:u?Wce(u):{x:0,y:0},this.graph=c,this.layoutStatus=u&&!r.position?"needs-layout":"done",this.labelSize=(p=r.size)!=null?p:{height:0,width:0},this.calculateRects(),this.config.nodes.forEach(m=>{this.addNode(m)}),this.calculateRects()}get labelRect(){const{x:r,y:c}=this.position,u=r+this.delta.dx,d=c+this.delta.dy,{width:p,height:m}=this.labelSize;return new Du({left:u,top:d,width:p,height:m})}getSelfRect(r){const{labelRect:c}=this;return new Du({x:c.x,y:c.y,width:Math.max(c.width,r.width),height:c.height})}get depth(){return this.parent?this.parent.depth+1:0}get position(){if(!this.nodes.length)return this._position;const r=this.getChildrenBounds();return{x:r.left,y:r.top-this.labelSize.height}}get edges(){return this.graph.snapshot.getNodeEdges(this)}calculateRects(){const r=UVn(this);this._rects={label:this.labelRect,self:this.getSelfRect(r),children:this.getChildrenBounds(),family:r}}get currentRects(){return{label:this._rects.label.translate(this.delta.dx,this.delta.dy),self:this._rects.self.translate(this.delta.dx,this.delta.dy),children:this._rects.children.translate(this.delta.dx,this.delta.dy),family:this._rects.family.translate(this.delta.dx,this.delta.dy)}}getIntersectingRect(r){const{x:c,y:u}=r;for(const d of["label","family"]){const p=this.currentRects[d];if(c>=p.left&&c<=p.right&&u>=p.top&&u<=p.bottom)return{rectKey:d,rect:p}}}getChildrenBounds(r){const c=this.getContainedEdges().filter(k=>!(k.source===this&&k.target===this));if(!this.nodes.length&&!c.length)return new Du({left:this._position.x,right:this._position.x,top:this.labelRect.bottom,bottom:this.labelRect.bottom,width:0,height:0});const u={padding:IPe,...r};let d=sS(this.nodes.map(k=>k.currentRects.family));c.length&&(d=sS([d,sS(c.map(k=>k.getBounds()))]));const p=d.top-u.padding.top,m=d.bottom+u.padding.bottom,x=d.left-u.padding.left,E=d.right+u.padding.right;return new Du({top:p,bottom:m,left:x,right:E})}getSerialisableId(){return this.parent?`${this.parent.getSerialisableId()}.${this.data.key}`:this.data.key}addNode(r){const c=new Ju(r,this.graph,this);return this.calculateRects(),this.nodes.push(c),c}getContainedEdges(){return this.graph.snapshot.edges.filter(r=>r.containingNode===this)}getTargetEdges(){return this.graph.snapshot.edges.filter(r=>r.target===this)}getSourceAndTargetEdges(){return this.graph.snapshot.edges.filter(r=>r.getNodeSource()===this||r.target===this)}toJSON(){return{id:this.getSerialisableId(),rect:this.labelRect,data:this.data,nodes:this.nodes,position:this.position,size:this.labelSize}}get data(){var c,u;const{_data:r}=this;switch(r.type||(r.type=this.nodes.length?"compound":"atomic"),r.type!=="history"&&(r.history=void 0),r.type){case"atomic":this.nodes.length>0?r.type="compound":r.initial=void 0;break;case"compound":(!r.initial||!this.nodes.map(d=>d.data.key).includes(r.initial))&&(r.initial=(c=this.nodes[0])==null?void 0:c.data.key),this.nodes.length===0&&(r.type="atomic",r.initial=void 0);break;case"parallel":r.initial=void 0;break;case"history":r.initial=void 0,r.history=(u=r.history)!=null?u:"shallow";break;case"final":r.initial=void 0;break}return r}isAncestorOf(r){let c=r.parent;for(;c;){if(c===this)return!0;c=c.parent}return!1}findBestSiblingPosition(r,c){const u=el*5,d=el*3,p=this._rects.family,m=c instanceof Ju?{width:el*7,height:el*3}:{width:el*4,height:el*2},x=Y$t[r],E=this.parent?this.parent.nodes.concat(this.parent.getContainedEdges()):[];function k(P){return P instanceof Ju?P._rects.family:P.getFamilyRect()}const T=E.filter(P=>P!==c).map(k);if(["top","bottom"].includes(r)){const{axis:P,crossAxis:I}=x,O=T.filter($=>$.topp.bottom+d*x.y);if(!O.length)return{[I]:this.position.x,[P]:p[r]+d*x[P]};const N=sS(O),j=Math.abs(p.left-N.left)j.leftp.right+u*x.x);if(!P.length)return{y:this.position.y,x:p[r]+u*x.x};const I=sS(P),O=Math.abs(p.top-I.top)Go(u.data.eventTypeData,r)).sort((u,d)=>u.getEdgeGroupIndex()-d.getEdgeGroupIndex());if(!!c.length)return c}getAppendantSourceFor(r){const c=this.getEdgeGroupFor(r);return c?tUn(c):this}}function Oae(n){const r=[];let c=n.parent;for(;c;)r.push(c),c=c.parent;return r}function tLt(n){return n.nodes.flatMap(r=>[r].concat(tLt(r)))}function UVn(n){if(!n.nodes.length)return n.labelRect;const r=n.getChildrenBounds();return sS([r,n.labelRect])}function a7t(n,r,c=el){return r.some(u=>u.leftn.left-c&&u.topn.top-c)}function HVn(n,r){const c=n.currentRects.family,d=(n.parent?n.parent.nodes.concat(n.parent.getContainedEdges()):[]).filter(T=>T!==n).map(qVn),p=el,m=Y$t[r],x=d.filter(T=>{switch(r){case"top":return T.topc.bottom;case"left":return T.leftc.right}}),k={top:aS({x:c.center.x-Yf.width/2,y:c.top-Yf.height-Cse.height*2}),right:aS({x:c.right+Cse.width*2,y:c.center.y-Yf.height/2}),bottom:aS({x:c.center.x-Yf.width/2,y:c.bottom+Cse.height*2}),left:aS({x:c.left-Yf.width-Cse.width*2,y:c.center.y-Yf.height/2})}[r];if(!a7t(c.moveTo(k),x))return k;x.sort((T,P)=>m.axis==="y"?Math.abs(T.center.x-c.center.x)-Math.abs(P.center.x-c.center.x):Math.abs(T.center.y-c.center.y)-Math.abs(P.center.y-c.center.y));for(const T of x){const P=m.axis==="x"?[Yf.moveTo({x:k.x,y:T.y-Yf.height-p}),Yf.moveTo({x:k.x,y:T.y+T.height+p}),Yf.moveTo({x:r==="left"?T.x-p:T.x+T.width+p,y:k.y})]:[Yf.moveTo({x:T.x-Yf.width-p,y:k.y}),Yf.moveTo({x:T.x+T.width+p,y:k.y}),Yf.moveTo({x:k.x,y:r==="top"?T.y-p:T.y+T.height+p})];for(const I of P)if(!a7t(I,x))return I.position}return aS({x:0,y:0})}function qVn(n){return n instanceof Ju?n._rects.family:n.getFamilyRect()}function WVn(n,r){var d;if(n===r)return(d=n.parent)!=null?d:n;const c=new Set([n]);let u=n.parent;for(;u;)c.add(u),u=u.parent;for(u=r;u;){if(c.has(u))return u;u=u.parent}return n.graph.snapshot.root}const GVn=n=>n.test(globalThis.navigator.platform),XVn=()=>GVn(/^Mac/),xq=n=>XVn()?n.metaKey:n.ctrlKey,KVn=n=>n.type==="email"||n.type==="password"||n.type==="search"||n.type==="tel"||n.type==="text"||n.type==="url",YVn=n=>!!n&&(/svg/i.test(n.tagName)||!!n.ownerSVGElement),fN=n=>n.tagName==="INPUT"&&KVn(n)||n.tagName==="TEXTAREA"||!YVn(n)&&n.isContentEditable,nLt=n=>{const r=n.getAttribute("role");if(r)return r.split(" ").filter(Boolean);switch(n.tagName){case"BUTTON":return["button"];case"SELECT":{const c=n.getAttribute("multiple"),u=n.getAttribute("multiple");return c&&u&&parseInt(u)>1?["listbox"]:["combobox"]}case"INPUT":switch(n.type){case"button":case"image":case"reset":case"submit":return["button"];case"checkbox":return["checkbox"];case"email":case"search":case"tel":case"text":case"url":return n.getAttribute("list")?["combobox"]:["textbox"];case"number":return["spinbutton"];case"radio":return["radio"];case"range":return["slider"];default:return[]}case"TEXTAREA":return["textbox"];default:return[]}},Ise=n=>{if(fN(n))return!0;if(n.tagName==="INPUT")return n.type==="range";const r={button:!0,combobox:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,radio:!0,radiogroup:!0,tab:!0,textbox:!0,treeitem:!0,tree:!0};return nLt(n).some(c=>r[c])},TPe=n=>n.tagName==="INPUT"||fN(n)||nLt(n).includes("button");function QVn(n,r){n.splice(n.indexOf(r),1)}function Go(n,r){return VVn(n,r)}function MD(n,r){return n.join()===r.join()}const c7t=new WeakMap,tNe=n=>{if(n.status!==0)return n.state;const r=c7t.get(n);if(r)return r;const c=n.machine.initialState;return c7t.set(n,c),c},Jh=n=>n.userIdOverride||n.internalUniqueId,rLt=n=>n.button===2,nNe=n=>{switch(n){case"atomic":case"compound":case void 0:return"normal";default:return n}},ZVn=n=>typeof n=="object"&&n!==null&&"message"in n&&typeof n.message=="string",JVn=n=>new Promise(r=>setTimeout(r,n)),iLt=(n,r)=>{let c;return(...u)=>{clearTimeout(c),c=setTimeout(()=>{n(...u)},r)}};function eUn(n){if(n===0)return"0 ms";n<0&&(n=-n);const r={years:12*4*7*1e3*60*60*24,months:4*7*1e3*60*60*24,weeks:7*1e3*60*60*24,days:1e3*60*60*24,hrs:1e3*60*60,min:1e3*60,sec:1e3,ms:1};let c="ms";for(const d in r)if(n>=r[d]){c=d;break}return`${Math.round((n/r[c]+Number.EPSILON)*100)/100} ${c}`}function Gce(n){const r=typeof n=="number"?n:+n.replace(/_/g,"");return typeof n=="number"||!isNaN(r)?`${eUn(r)}`:n}function Bx(n){return!!n.jsImplementation}function f7(n){return(n==null?void 0:n.type)==="xstate.assign"}const oLt=n=>{const r=["after","always","wildcard","named"],c=n.getNodeSource(),u=c.data.type==="parallel";return(c.nodes.some(p=>p.data.type==="final")||u)&&r.push("state.done"),c.invocations.length>0&&r.push("invocation.done","invocation.error"),r},Ix=n=>n instanceof Ju?n:n.getNodeSource();function tUn(n){return n[n.length-1]}function sLt(n){const r=new Map;for(const c of n){const u=c.id.match(/^(.+)\[(\d+)\]$/);if(!u){console.error("Invalid edge id",c.id);continue}const[,d,p]=u;let m=r.get(d);m||(m=[],r.set(d,m)),m.push({edgeConfig:c,index:parseInt(p,10)})}for(const c of r.values())c.sort(({index:u},{index:d})=>u-d);return[...r].map(([,c])=>c.map(({edgeConfig:u})=>u))}const aLt=(n,r)=>r.width/n.width;class DD{constructor(r,c){var x;const{minX:u,minY:d,width:p,height:m}=r;this.minX=u,this.minY=d,this.width=p,this.height=m,this.initial=(x=c!=null?c:r.initial)!=null?x:{minX:u,minY:d,width:p,height:m}}toJSON(){return{minX:this.minX,minY:this.minY,width:this.width,height:this.height,initial:this.initial}}get zoom(){return aLt(this,this.initial)}toString(){return`${this.minX} ${this.minY} ${this.width} ${this.height}`}getCenter(){return APe(this)}getZoomedOutViewBox(){return this.zoomTo(1)}zoomTo(r,c=this.getCenter()){return new DD(nUn(this,{zoom:r,zoomPoint:c},this.initial),this.initial)}move(r){return this.update({minX:this.minX+r.dx,minY:this.minY+r.dy,width:this.width,height:this.height})}zoomToRect(r,c){const u=r,d=u.width/u.height,p=c.width/c.height,m=J$t(u),x=this.zoom,E=this.getCenter(),k=this.move({dx:-(this.getCenter().x-m.x),dy:-(this.getCenter().y-m.y)});let T=(d>p?c.width*x/u.width:c.height*x/u.height)*.9;T=Math.min(T,1);const P=-c.center.x+E.x,I=-c.center.y+E.y;return k.zoomTo(T).move({dx:P,dy:I})}update(r){return new DD(r,this.initial)}}const APe=n=>J$t({x:n.minX,y:n.minY,width:n.width,height:n.height}),nUn=(n,{zoom:r,zoomPoint:c=APe(n)},u)=>{const d=r/aLt(n,u),p=u.width/r,m=u.height/r,x=APe(n),E=Z$t({x:c.x-x.x,y:c.y-x.y});return{minX:n.minX+E.x+(n.width-n.width/d)/2-E.x/d,minY:n.minY+E.y+(n.height-n.height/d)/2-E.y/d,width:p,height:m}},Tse=10,Ase=[.1,.13,.25,.5,.75,1,1.25,1.5,2,4,8,10],mb=lN({ref:{current:null},viewBox:JDe,persistedViewBox:void 0,selectionBox:null,graphActor:{}},{events:{select_all_nodes_and_events:()=>({}),fit_to_content:n=>({nodeId:n}),"viewbox.move":n=>({vector:n}),"zoom.set":(n,r)=>({value:n,origin:r}),"zoom.in":()=>({}),"zoom.out":()=>({}),"selection.start":n=>({point:n}),"selection.move":()=>({}),"selection.end":()=>({}),PRESS_SESSION_STARTED:({pointerId:n,point:r})=>({pointerId:n,point:r}),PRESS_SESSION_STOPPED:()=>({}),POINTER_MOVED_BY:({vector:n})=>({vector:n}),ENABLE_PANNING:(n=null)=>({sessionSeed:n}),DISABLE_PANNING:()=>({}),WHEEL_PRESSED:n=>({pressSession:n}),WHEEL_RELEASED:()=>({}),SPACEBAR_PRESSED:()=>({}),SPACEBAR_RELEASED:()=>({}),ENABLE_PAN_MODE:()=>({}),DISABLE_PAN_MODE:()=>({}),SET_VIEWBOX_SIZE:(n,r)=>({width:n,height:r})}}),Sq=mb.createMachine({id:"canvasInteractionsMachine",preserveActionOrder:!0,context:mb.initialContext,invoke:[{src:oUn},{src:iUn},{src:rUn}],type:"parallel",states:{mode:{initial:"selectable",states:{selectable:{invoke:{id:"selectionTracker",src:n=>s7t.withContext({...rS.initialContext,ref:n.ref})},initial:"idle",states:{idle:{on:{PRESS_SESSION_STARTED:"active"}},active:{entry:[eo({selectionBox:(n,r)=>{const c=r,u=Zx(CS({x:c.point.x,y:c.point.y}),n.ref.current);return[u,u]}}),yH(n=>({type:"selectionBox.change",selectionBox:n.selectionBox}))],exit:[eo({selectionBox:null}),yH(()=>({type:"selectionBox.change",selectionBox:null}))],on:{POINTER_MOVED_BY:{actions:[eo({selectionBox:(n,r)=>{const c=o7t(r.vector,n.ref.current);return[n.selectionBox[0],aS({x:n.selectionBox[1].x+c.x,y:n.selectionBox[1].y+c.y})]}}),yH(n=>({type:"selectionBox.change",selectionBox:n.selectionBox}))]},PRESS_SESSION_STOPPED:{target:"idle"}}}}},pannable:{invoke:{id:"panTracker",src:(n,r)=>s7t.withContext({...rS.initialContext,ref:n.ref,session:r.type==="ENABLE_PANNING"?r.sessionSeed:r.pressSession,listenerOptions:{capture:!0}})},initial:"idle",states:{idle:{tags:"grab",on:{PRESS_SESSION_STARTED:"active"}},active:{tags:"grabbing",initial:"grabbed",on:{PRESS_SESSION_STOPPED:".done"},states:{grabbed:{on:{POINTER_MOVED_BY:{target:"dragging",actions:"moveViewbox"}}},dragging:{on:{POINTER_MOVED_BY:{actions:"moveViewbox"}}},done:{type:"final"}},onDone:"idle"}}}},on:{ENABLE_PANNING:".pannable",DISABLE_PANNING:".selectable"}},panSwitcher:{initial:"lockable",states:{lockable:{initial:"released",states:{released:{invoke:{id:"panTriggerListener",src:n=>r=>{const c=n.ref.current;if(!c)return;const u=Il.bind(c,{type:"pointerdown",listener:p=>{p.button===1&&r(mb.events.WHEEL_PRESSED({pointerId:p.pointerId,point:CS({x:p.pageX,y:p.pageY})}))},options:{capture:!0}}),d=Il.bind(window,{type:"keydown",listener:p=>{const m=p.target;p.code==="Space"&&!TPe(m)&&r(mb.events.SPACEBAR_PRESSED())}});return()=>{u(),d()}}},on:{SPACEBAR_PRESSED:"spacebarPressed",WHEEL_PRESSED:"wheelPressed"}},spacebarPressed:{entry:q9(mb.events.ENABLE_PANNING()),exit:q9(mb.events.DISABLE_PANNING()),on:{SPACEBAR_RELEASED:"released"},invoke:{src:()=>n=>Il.bind(window,{type:"keyup",listener:r=>{r.code==="Space"&&n(mb.events.SPACEBAR_RELEASED())}})}},wheelPressed:{entry:q9((n,r)=>mb.events.ENABLE_PANNING(r.pressSession)),exit:q9(mb.events.DISABLE_PANNING()),on:{PRESS_SESSION_STOPPED:"released"}}},on:{ENABLE_PAN_MODE:"pan"}},pan:{entry:q9(mb.events.ENABLE_PANNING()),exit:q9(mb.events.DISABLE_PANNING()),on:{DISABLE_PAN_MODE:"lockable"}}}}},on:{SET_VIEWBOX_SIZE:{actions:[eo((n,r)=>{const c=r.width-n.viewBox.width,u=r.height-n.viewBox.height,d=n.viewBox.zoom,p={...n.viewBox.initial,width:r.width,height:r.height};return{viewBox:new DD({minX:n.viewBox.minX-c/2,minY:n.viewBox.minY-u/2,width:r.width,height:r.height,initial:p}).zoomTo(d),initialViewBox:p}}),cBn([{cond:n=>!n.persistedViewBox,actions:wH({type:"fit_to_content"})}])]},fit_to_content:{actions:eo((n,r)=>{const c=n.ref.current,{nodeId:u}=r,d=u?n.graphActor.snapshot.getNodeByUniqueId(u):n.graphActor.snapshot.root;if(!d)return n;const p=d.currentRects.family,m=c.parentElement,x=eNe(m.getBoundingClientRect(),c);return{viewBox:n.viewBox.zoomToRect(p,x)}})},select_all_nodes_and_events:{actions:n=>n.graphActor.send({type:"selectAll"})},"viewbox.move":{actions:"moveViewbox"},"zoom.set":{actions:mb.assign({viewBox:(n,r)=>n.viewBox.zoomTo(r.value,aS(r.origin))})},"zoom.in":{cond:n=>!!n.ref.current&&n.viewBox.zoom<10,actions:eo(n=>{var u;const r=n.viewBox.zoom,c=(u=Ase.find((d,p)=>d>r&&Ase[p-1]<=r))!=null?u:r;return{viewBox:n.viewBox.zoomTo(c)}})},"zoom.out":{cond:n=>!!n.ref.current&&n.viewBox.zoom>.1,actions:eo(n=>{var u;const r=n.viewBox.zoom,c=(u=Ase.find((d,p)=>d=r))!=null?u:r;return{viewBox:n.viewBox.zoomTo(c)}})}}},{actions:{moveViewbox:eo({viewBox:(n,r)=>{if(r.type!=="POINTER_MOVED_BY"&&r.type!=="viewbox.move")return n.viewBox;const c=o7t(r.vector,n.ref.current);return n.viewBox.move({dx:-c.x,dy:-c.y})}})}});function rUn(){return n=>Il.bind(window,{type:"keydown",options:{capture:!0},listener:r=>{const c=r.target;if(fN(c))return;const u=d=>{r.preventDefault(),r.stopPropagation(),n(d)};switch(r.key){case"ArrowUp":if(Ise(c))return;u({type:"viewbox.move",vector:kse.mul(l7({x:0,y:-Tse}),r.shiftKey?5:1)});return;case"ArrowLeft":if(Ise(c))return;u({type:"viewbox.move",vector:kse.mul(l7({x:-Tse,y:0}),r.shiftKey?5:1)});return;case"ArrowDown":if(Ise(c))return;u({type:"viewbox.move",vector:kse.mul(l7({x:0,y:Tse}),r.shiftKey?5:1)});return;case"ArrowRight":if(Ise(c))return;u({type:"viewbox.move",vector:kse.mul(l7({x:Tse,y:0}),r.shiftKey?5:1)});return;case"+":case"=":{if(xq(r)||r.shiftKey)return;u({type:"zoom.in"});return}case"-":if(xq(r)||r.shiftKey)return;u({type:"zoom.out"});return;case"0":case")":if(!r.shiftKey)return;u({type:"zoom.set",value:1,origin:{x:0,y:0}});return;case"1":case"!":if(!r.shiftKey)return;u({type:"fit_to_content"});return}}})}function iUn(n){function r(c){return!fN(c)}return()=>Il.bindAll(document,[{type:"copy",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"selection.copy",clipboardEvent:c}),c.preventDefault())}},{type:"cut",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"selection.cut",clipboardEvent:c}),c.preventDefault())}},{type:"paste",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"paste",clipboardEvent:c}),c.preventDefault())}}])}function oUn(n){return()=>Il.bind(window,{type:"keydown",listener:r=>{if(r.currentTarget&&!fN(r.target)&&r.target.tagName!=="BUTTON")switch(r.key){case"Escape":n.graphActor.send({type:"interact.cancel"});break;case"Enter":n.graphActor.send({type:"interact.enter"});break}}})}var sUn=U.exports.useLayoutEffect,aUn=function(r){var c=U.exports.useRef(r);return sUn(function(){c.current=r}),c};const rNe=n=>"export default "+n,cLt=n=>n.replace(/^export default (.*)$/m,"$1");function cUn(n){const r=aUn(n);return U.exports.useCallback((...c)=>r.current(...c),[r])}const uUn=n=>{switch(!0){case/^\{.*\}$/m.test(n.trim()):return"object";case/^\[.*\]$/m.test(n.trim()):return"array";case["true","false"].includes(n.trim()):return"boolean";case n.trim()==="null":return"unknown";case(n!==""&&!isNaN(Number(n))):return"number";default:return"string"}};function lUn(n,r){return Object.values(n).reduce((c,u)=>({...c,[u.key]:r?u.expression.replace(/"/g,""):u.expression}),{})}const Eq=n=>n.replace(/^"(.*)"$/,"$1"),uLt=n=>n.replace(/^{\n(.*)}$/s,"$1"),kq=n=>`"${Eq(n)}"`,fUn=n=>n.type==="string"&&n.isLiteral?kq(n.expression):n.expression;function afe(n){return`{${Object.entries(n).map(([,r])=>`${kq(r.key)}: ${fUn(r)}`).join(`, -`)}}`}const dUn=n=>{switch(n){case"string":case"number":case"boolean":case"array":case"object":return n;default:return"unknown"}};function hUn(n,r,c){return{uid:XDe(),key:n,type:c,expression:r,isNull:r==="null",value:null,isLiteral:!0}}function u7t(n,r){return{uid:XDe(),key:n,type:dUn(r.type),value:null,expression:r.text,isNull:r.type==="unknown",isLiteral:r.isLiteral}}function lLt(n){switch(n){case"array":return"[]";case"object":return"{}";case"boolean":return"false";case"number":return"0";case"string":return"";case"unknown":return"null";default:throw Error("Unhandled expression type")}}const pUn=n=>r=>!n||!n[r]?null:n[r],gUn={array:"Arr",object:"Obj",boolean:"Bool",number:"Num",string:"Str",unknown:"?"},bUn=n=>gUn[n];function fLt(n,r){const{[r]:c,...u}=n;return u}function iNe(n,r=JSON.parse){const c=new $$t(n);function u(p,m,x=0){var $;const E={};p.nodes.forEach(F=>{E[F.data.key]=u(F,null,x+1)});const k={},T={};let P,I;const O=p.data.invoke.map(F=>({src:F.src,id:F.id}));n.edges.filter(F=>F.source===p.id).forEach(F=>{var X,ne,Z;const B={target:`#${F.target}`,cond:(X=F.data.guard)==null?void 0:X.type,actions:F.data.actions.map(H=>f7(H)?tk(H):H.type),description:F.data.description,meta:F.data.metaEntries?Object.fromEntries(F.data.metaEntries):void 0};if(Object.assign(B,c.printXStateTargetAndInternal(F.source,{...F.data,target:F.target})),F.data.eventTypeData.type==="named"){const H=F.data.eventTypeData.eventType;k[H]||(k[H]=[]),k[H].push(ph(B));return}if(F.data.eventTypeData.type==="after")T[F.data.eventTypeData.delay]||(T[F.data.eventTypeData.delay]=[]),T[F.data.eventTypeData.delay].push({target:`#${F.target}`,cond:(ne=F.data.guard)==null?void 0:ne.type,actions:F.data.actions.map(H=>f7(H)?tk(H):H.type),description:F.data.description,meta:F.data.metaEntries?Object.fromEntries(F.data.metaEntries):void 0,internal:F.data.internal});else if("invocationId"in F.data.eventTypeData){const H=F.data.eventTypeData.invocationId,ce=O.findIndex(pe=>pe.id===H);if(ce!==-1){const pe=O[ce];F.data.eventTypeData.type==="invocation.done"?(pe.onDone||(pe.onDone=[]),pe.onDone.push(ph(B))):F.data.eventTypeData.type==="invocation.error"&&(pe.onError||(pe.onError=[]),pe.onError.push(ph(B)))}}else F.data.eventTypeData.type==="state.done"?(P=P!=null?P:[],P==null||P.push(ph(B))):F.data.eventTypeData.type==="always"?(I=I!=null?I:[],I==null||I.push(ph(B))):F.data.eventTypeData.type==="wildcard"&&(k["*"]=(Z=k["*"])!=null?Z:[],k["*"].push(ph(B)))});const{metaEntries:j,...L}=p.data;return ph({...x===0&&{id:p.id,context:m?r(m):{}},...L,description:($=p.data.description)!=null?$:void 0,meta:j?Object.fromEntries(j):void 0,entry:p.data.entry.map(F=>f7(F)?tk(F):F.type),exit:p.data.exit.map(F=>f7(F)?tk(F):F.type),invoke:O.map(F=>({...F,id:nfe(F.id)?F.id:void 0})),after:ph(T),tags:p.data.tags.map(F=>F.tag),states:E,always:I,on:ph(k),history:p.data.type!=="history"?void 0:p.data.history,type:p.data.type&&["compound","atomic"].includes(p.data.type)?void 0:p.data.type,key:void 0,onDone:P})}return{config:u(n.rootNode,n.context)}}function oNe(n){return{id:n.getSerialisableId(),data:{eventTypeData:n.data.eventTypeData,guard:n.data.guard,actions:n.data.actions,description:n.data.description,internal:n.data.internal,metaEntries:n.data.metaEntries},source:n.getNodeSource().getSerialisableId(),target:n.target.getSerialisableId(),position:n.position,size:n.size}}const cfe=n=>({id:n.getSerialisableId(),nodes:n.nodes.map(c=>cfe(c)),position:n.position,data:{...n.data,invoke:n.invocations.map(c=>({src:c.src,id:Jh(c),jsImplementation:c.jsImplementation}))},size:n.labelSize}),mUn=n=>n.type==="array"?"any[]":n.type==="object"?"Record":n.type;function vUn(n,r=c=>JSON.stringify(c)){const c=n.edges.map(u=>oNe(u));return{rootNode:cfe(n.root),context:r(n.data.context),edges:c}}function dLt(n){const r=n.edges.map(c=>oNe(c));return{rootNode:cfe(n.root),context:afe(n.data.context),edges:r}}function yUn(n){const r=dLt(n),c=Object.values(n.data.context).map(p=>`${kq(p.key)}: ${mUn(p)}`),u=n.edges.filter(p=>p.data.eventTypeData.type==="named"),d=Array.from(new Set(u.map(p=>kq(p.data.eventTypeData.eventType))));return{...r,schema:{context:c,events:d}}}const dN={toJSON:vUn,toJS:dLt,toTS:yUn};function xw(n){for(var r=arguments.length,c=Array(r>1?r-1:0),u=1;u3?r.i-4:r.i:Array.isArray(n)?1:sNe(n)?2:aNe(n)?3:0}function PPe(n,r){return hN(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function wUn(n,r){return hN(n)===2?n.get(r):n[r]}function hLt(n,r,c){var u=hN(n);u===2?n.set(r,c):u===3?(n.delete(r),n.add(c)):n[r]=c}function xUn(n,r){return n===r?n!==0||1/n==1/r:n!=n&&r!=r}function sNe(n){return CUn&&n instanceof Map}function aNe(n){return IUn&&n instanceof Set}function W9(n){return n.o||n.t}function cNe(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=AUn(n);delete r[Pb];for(var c=dNe(r),u=0;u1&&(n.set=n.add=n.clear=n.delete=SUn),Object.freeze(n),r&&Cq(n,function(c,u){return uNe(u,!0)},!0)),n}function SUn(){xw(2)}function lNe(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function Xx(n){var r=PUn[n];return r||xw(18,n),r}function l7t(){return Iq}function l7e(n,r){r&&(Xx("Patches"),n.u=[],n.s=[],n.v=r)}function Xce(n){OPe(n),n.p.forEach(EUn),n.p=null}function OPe(n){n===Iq&&(Iq=n.l)}function f7t(n){return Iq={p:[],l:Iq,h:n,m:!0,_:0}}function EUn(n){var r=n[Pb];r.i===0||r.i===1?r.j():r.O=!0}function f7e(n,r){r._=r.p.length;var c=r.p[0],u=n!==void 0&&n!==c;return r.h.g||Xx("ES5").S(r,n,u),u?(c[Pb].P&&(Xce(r),xw(4)),U7(n)&&(n=Kce(r,n),r.l||Yce(r,n)),r.u&&Xx("Patches").M(c[Pb].t,n,r.u,r.s)):n=Kce(r,c,[]),Xce(r),r.u&&r.v(r.u,r.s),n!==pLt?n:void 0}function Kce(n,r,c){if(lNe(r))return r;var u=r[Pb];if(!u)return Cq(r,function(p,m){return d7t(n,u,r,p,m,c)},!0),r;if(u.A!==n)return r;if(!u.P)return Yce(n,u.t,!0),u.t;if(!u.I){u.I=!0,u.A._--;var d=u.i===4||u.i===5?u.o=cNe(u.k):u.o;Cq(u.i===3?new Set(d):d,function(p,m){return d7t(n,u,d,p,m,c)}),Yce(n,d,!1),c&&n.u&&Xx("Patches").R(u,c,n.u,n.s)}return u.o}function d7t(n,r,c,u,d,p){if(ND(d)){var m=Kce(n,d,p&&r&&r.i!==3&&!PPe(r.D,u)?p.concat(u):void 0);if(hLt(c,u,m),!ND(m))return;n.m=!1}if(U7(d)&&!lNe(d)){if(!n.h.F&&n._<1)return;Kce(n,d),r&&r.A.l||Yce(n,d)}}function Yce(n,r,c){c===void 0&&(c=!1),n.h.F&&n.m&&uNe(r,c)}function d7e(n,r){var c=n[Pb];return(c?W9(c):n)[r]}function h7t(n,r){if(r in n)for(var c=Object.getPrototypeOf(n);c;){var u=Object.getOwnPropertyDescriptor(c,r);if(u)return u;c=Object.getPrototypeOf(c)}}function _Pe(n){n.P||(n.P=!0,n.l&&_Pe(n.l))}function h7e(n){n.o||(n.o=cNe(n.t))}function MPe(n,r,c){var u=sNe(r)?Xx("MapSet").N(r,c):aNe(r)?Xx("MapSet").T(r,c):n.g?function(d,p){var m=Array.isArray(d),x={i:m?1:0,A:p?p.A:l7t(),P:!1,I:!1,D:{},l:p,t:d,k:null,o:null,j:null,C:!1},E=x,k=DPe;m&&(E=[x],k=FU);var T=Proxy.revocable(E,k),P=T.revoke,I=T.proxy;return x.k=I,x.j=P,I}(r,c):Xx("ES5").J(r,c);return(c?c.A:l7t()).p.push(u),u}function kUn(n){return ND(n)||xw(22,n),function r(c){if(!U7(c))return c;var u,d=c[Pb],p=hN(c);if(d){if(!d.P&&(d.i<4||!Xx("ES5").K(d)))return d.t;d.I=!0,u=p7t(c,p),d.I=!1}else u=p7t(c,p);return Cq(u,function(m,x){d&&wUn(d.t,m)===x||hLt(u,m,r(x))}),p===3?new Set(u):u}(n)}function p7t(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return cNe(n)}var g7t,Iq,fNe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",CUn=typeof Map<"u",IUn=typeof Set<"u",b7t=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",pLt=fNe?Symbol.for("immer-nothing"):((g7t={})["immer-nothing"]=!0,g7t),m7t=fNe?Symbol.for("immer-draftable"):"__$immer_draftable",Pb=fNe?Symbol.for("immer-state"):"__$immer_state",TUn=""+Object.prototype.constructor,dNe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,AUn=Object.getOwnPropertyDescriptors||function(n){var r={};return dNe(n).forEach(function(c){r[c]=Object.getOwnPropertyDescriptor(n,c)}),r},PUn={},DPe={get:function(n,r){if(r===Pb)return n;var c=W9(n);if(!PPe(c,r))return function(d,p,m){var x,E=h7t(p,m);return E?"value"in E?E.value:(x=E.get)===null||x===void 0?void 0:x.call(d.k):void 0}(n,c,r);var u=c[r];return n.I||!U7(u)?u:u===d7e(n.t,r)?(h7e(n),n.o[r]=MPe(n.A.h,u,n)):u},has:function(n,r){return r in W9(n)},ownKeys:function(n){return Reflect.ownKeys(W9(n))},set:function(n,r,c){var u=h7t(W9(n),r);if(u!=null&&u.set)return u.set.call(n.k,c),!0;if(!n.P){var d=d7e(W9(n),r),p=d==null?void 0:d[Pb];if(p&&p.t===c)return n.o[r]=c,n.D[r]=!1,!0;if(xUn(c,d)&&(c!==void 0||PPe(n.t,r)))return!0;h7e(n),_Pe(n)}return n.o[r]===c&&typeof c!="number"&&(c!==void 0||r in n.o)||(n.o[r]=c,n.D[r]=!0,!0)},deleteProperty:function(n,r){return d7e(n.t,r)!==void 0||r in n.t?(n.D[r]=!1,h7e(n),_Pe(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var c=W9(n),u=Reflect.getOwnPropertyDescriptor(c,r);return u&&{writable:!0,configurable:n.i!==1||r!=="length",enumerable:u.enumerable,value:c[r]}},defineProperty:function(){xw(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){xw(12)}},FU={};Cq(DPe,function(n,r){FU[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),FU.deleteProperty=function(n,r){return FU.set.call(this,n,r,void 0)},FU.set=function(n,r,c){return DPe.set.call(this,n[0],r,c,n[0])};var OUn=function(){function n(c){var u=this;this.g=b7t,this.F=!0,this.produce=function(d,p,m){if(typeof d=="function"&&typeof p!="function"){var x=p;p=d;var E=u;return function(j){var L=this;j===void 0&&(j=x);for(var $=arguments.length,F=Array($>1?$-1:0),B=1;B<$;B++)F[B-1]=arguments[B];return E.produce(j,function(X){var ne;return(ne=p).call.apply(ne,[L,X].concat(F))})}}var k;if(typeof p!="function"&&xw(6),m!==void 0&&typeof m!="function"&&xw(7),U7(d)){var T=f7t(u),P=MPe(u,d,void 0),I=!0;try{k=p(P),I=!1}finally{I?Xce(T):OPe(T)}return typeof Promise<"u"&&k instanceof Promise?k.then(function(j){return l7e(T,m),f7e(j,T)},function(j){throw Xce(T),j}):(l7e(T,m),f7e(k,T))}if(!d||typeof d!="object"){if((k=p(d))===void 0&&(k=d),k===pLt&&(k=void 0),u.F&&uNe(k,!0),m){var O=[],N=[];Xx("Patches").M(d,k,O,N),m(O,N)}return k}xw(21,d)},this.produceWithPatches=function(d,p){if(typeof d=="function")return function(k){for(var T=arguments.length,P=Array(T>1?T-1:0),I=1;I=0;d--){var p=u[d];if(p.path.length===0&&p.op==="replace"){c=p.value;break}}d>-1&&(u=u.slice(d+1));var m=Xx("Patches").$;return ND(c)?m(c,u):this.produce(c,function(x){return m(x,u)})},n}(),Ob=new OUn,_Un=Ob.produce;Ob.produceWithPatches.bind(Ob);Ob.setAutoFreeze.bind(Ob);Ob.setUseProxies.bind(Ob);Ob.applyPatches.bind(Ob);Ob.createDraft.bind(Ob);Ob.finishDraft.bind(Ob);const gLt=_Un;var bLt={},hNe={},ufe={};ufe.byteLength=NUn;ufe.toByteArray=RUn;ufe.fromByteArray=FUn;var Rx=[],av=[],MUn=typeof Uint8Array<"u"?Uint8Array:Array,p7e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var oM=0,DUn=p7e.length;oM0)throw new Error("Invalid string. Length must be a multiple of 4");var c=n.indexOf("=");c===-1&&(c=r);var u=c===r?0:4-c%4;return[c,u]}function NUn(n){var r=mLt(n),c=r[0],u=r[1];return(c+u)*3/4-u}function jUn(n,r,c){return(r+c)*3/4-c}function RUn(n){var r,c=mLt(n),u=c[0],d=c[1],p=new MUn(jUn(n,u,d)),m=0,x=d>0?u-4:u,E;for(E=0;E>16&255,p[m++]=r>>8&255,p[m++]=r&255;return d===2&&(r=av[n.charCodeAt(E)]<<2|av[n.charCodeAt(E+1)]>>4,p[m++]=r&255),d===1&&(r=av[n.charCodeAt(E)]<<10|av[n.charCodeAt(E+1)]<<4|av[n.charCodeAt(E+2)]>>2,p[m++]=r>>8&255,p[m++]=r&255),p}function $Un(n){return Rx[n>>18&63]+Rx[n>>12&63]+Rx[n>>6&63]+Rx[n&63]}function LUn(n,r,c){for(var u,d=[],p=r;px?x:m+p));return u===1?(r=n[c-1],d.push(Rx[r>>2]+Rx[r<<4&63]+"==")):u===2&&(r=(n[c-2]<<8)+n[c-1],d.push(Rx[r>>10]+Rx[r>>4&63]+Rx[r<<2&63]+"=")),d.join("")}var pNe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */pNe.read=function(n,r,c,u,d){var p,m,x=d*8-u-1,E=(1<>1,T=-7,P=c?d-1:0,I=c?-1:1,O=n[r+P];for(P+=I,p=O&(1<<-T)-1,O>>=-T,T+=x;T>0;p=p*256+n[r+P],P+=I,T-=8);for(m=p&(1<<-T)-1,p>>=-T,T+=u;T>0;m=m*256+n[r+P],P+=I,T-=8);if(p===0)p=1-k;else{if(p===E)return m?NaN:(O?-1:1)*(1/0);m=m+Math.pow(2,u),p=p-k}return(O?-1:1)*m*Math.pow(2,p-u)};pNe.write=function(n,r,c,u,d,p){var m,x,E,k=p*8-d-1,T=(1<>1,I=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=u?0:p-1,N=u?1:-1,j=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(x=isNaN(r)?1:0,m=T):(m=Math.floor(Math.log(r)/Math.LN2),r*(E=Math.pow(2,-m))<1&&(m--,E*=2),m+P>=1?r+=I/E:r+=I*Math.pow(2,1-P),r*E>=2&&(m++,E/=2),m+P>=T?(x=0,m=T):m+P>=1?(x=(r*E-1)*Math.pow(2,d),m=m+P):(x=r*Math.pow(2,P-1)*Math.pow(2,d),m=0));d>=8;n[c+O]=x&255,O+=N,x/=256,d-=8);for(m=m<0;n[c+O]=m&255,O+=N,m/=256,k-=8);n[c+O-N]|=j*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(n){const r=ufe,c=pNe,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=x,n.SlowBuffer=F,n.INSPECT_MAX_BYTES=50;const d=2147483647;n.kMaxLength=d,x.TYPED_ARRAY_SUPPORT=p(),!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const Ee=new Uint8Array(1),K={foo:function(){return 42}};return Object.setPrototypeOf(K,Uint8Array.prototype),Object.setPrototypeOf(Ee,K),Ee.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(!!x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(!!x.isBuffer(this))return this.byteOffset}});function m(Ee){if(Ee>d)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');const K=new Uint8Array(Ee);return Object.setPrototypeOf(K,x.prototype),K}function x(Ee,K,ie){if(typeof Ee=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(Ee)}return E(Ee,K,ie)}x.poolSize=8192;function E(Ee,K,ie){if(typeof Ee=="string")return I(Ee,K);if(ArrayBuffer.isView(Ee))return N(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(Sr(Ee,ArrayBuffer)||Ee&&Sr(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Sr(Ee,SharedArrayBuffer)||Ee&&Sr(Ee.buffer,SharedArrayBuffer)))return j(Ee,K,ie);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ke=Ee.valueOf&&Ee.valueOf();if(ke!=null&&ke!==Ee)return x.from(ke,K,ie);const nt=L(Ee);if(nt)return nt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return x.from(Ee[Symbol.toPrimitive]("string"),K,ie);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}x.from=function(Ee,K,ie){return E(Ee,K,ie)},Object.setPrototypeOf(x.prototype,Uint8Array.prototype),Object.setPrototypeOf(x,Uint8Array);function k(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function T(Ee,K,ie){return k(Ee),Ee<=0?m(Ee):K!==void 0?typeof ie=="string"?m(Ee).fill(K,ie):m(Ee).fill(K):m(Ee)}x.alloc=function(Ee,K,ie){return T(Ee,K,ie)};function P(Ee){return k(Ee),m(Ee<0?0:$(Ee)|0)}x.allocUnsafe=function(Ee){return P(Ee)},x.allocUnsafeSlow=function(Ee){return P(Ee)};function I(Ee,K){if((typeof K!="string"||K==="")&&(K="utf8"),!x.isEncoding(K))throw new TypeError("Unknown encoding: "+K);const ie=B(Ee,K)|0;let ke=m(ie);const nt=ke.write(Ee,K);return nt!==ie&&(ke=ke.slice(0,nt)),ke}function O(Ee){const K=Ee.length<0?0:$(Ee.length)|0,ie=m(K);for(let ke=0;ke=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return Ee|0}function F(Ee){return+Ee!=Ee&&(Ee=0),x.alloc(+Ee)}x.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==x.prototype},x.compare=function(K,ie){if(Sr(K,Uint8Array)&&(K=x.from(K,K.offset,K.byteLength)),Sr(ie,Uint8Array)&&(ie=x.from(ie,ie.offset,ie.byteLength)),!x.isBuffer(K)||!x.isBuffer(ie))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ie)return 0;let ke=K.length,nt=ie.length;for(let Nt=0,cn=Math.min(ke,nt);Ntnt.length?(x.isBuffer(cn)||(cn=x.from(cn)),cn.copy(nt,Nt)):Uint8Array.prototype.set.call(nt,cn,Nt);else if(x.isBuffer(cn))cn.copy(nt,Nt);else throw new TypeError('"list" argument must be an Array of Buffers');Nt+=cn.length}return nt};function B(Ee,K){if(x.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||Sr(Ee,ArrayBuffer))return Ee.byteLength;if(typeof Ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ee);const ie=Ee.length,ke=arguments.length>2&&arguments[2]===!0;if(!ke&&ie===0)return 0;let nt=!1;for(;;)switch(K){case"ascii":case"latin1":case"binary":return ie;case"utf8":case"utf-8":return Xe(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie*2;case"hex":return ie>>>1;case"base64":return gn(Ee).length;default:if(nt)return ke?-1:Xe(Ee).length;K=(""+K).toLowerCase(),nt=!0}}x.byteLength=B;function X(Ee,K,ie){let ke=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((ie===void 0||ie>this.length)&&(ie=this.length),ie<=0)||(ie>>>=0,K>>>=0,ie<=K))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return we(this,K,ie);case"utf8":case"utf-8":return et(this,K,ie);case"ascii":return Me(this,K,ie);case"latin1":case"binary":return ze(this,K,ie);case"base64":return qe(this,K,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,K,ie);default:if(ke)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),ke=!0}}x.prototype._isBuffer=!0;function ne(Ee,K,ie){const ke=Ee[K];Ee[K]=Ee[ie],Ee[ie]=ke}x.prototype.swap16=function(){const K=this.length;if(K%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ie=0;ieie&&(K+=" ... "),""},u&&(x.prototype[u]=x.prototype.inspect),x.prototype.compare=function(K,ie,ke,nt,Nt){if(Sr(K,Uint8Array)&&(K=x.from(K,K.offset,K.byteLength)),!x.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(ie===void 0&&(ie=0),ke===void 0&&(ke=K?K.length:0),nt===void 0&&(nt=0),Nt===void 0&&(Nt=this.length),ie<0||ke>K.length||nt<0||Nt>this.length)throw new RangeError("out of range index");if(nt>=Nt&&ie>=ke)return 0;if(nt>=Nt)return-1;if(ie>=ke)return 1;if(ie>>>=0,ke>>>=0,nt>>>=0,Nt>>>=0,this===K)return 0;let cn=Nt-nt,Hr=ke-ie;const _o=Math.min(cn,Hr),Ko=this.slice(nt,Nt),Hs=K.slice(ie,ke);for(let zi=0;zi<_o;++zi)if(Ko[zi]!==Hs[zi]){cn=Ko[zi],Hr=Hs[zi];break}return cn2147483647?ie=2147483647:ie<-2147483648&&(ie=-2147483648),ie=+ie,Ur(ie)&&(ie=nt?0:Ee.length-1),ie<0&&(ie=Ee.length+ie),ie>=Ee.length){if(nt)return-1;ie=Ee.length-1}else if(ie<0)if(nt)ie=0;else return-1;if(typeof K=="string"&&(K=x.from(K,ke)),x.isBuffer(K))return K.length===0?-1:H(Ee,K,ie,ke,nt);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?nt?Uint8Array.prototype.indexOf.call(Ee,K,ie):Uint8Array.prototype.lastIndexOf.call(Ee,K,ie):H(Ee,[K],ie,ke,nt);throw new TypeError("val must be string, number or Buffer")}function H(Ee,K,ie,ke,nt){let Nt=1,cn=Ee.length,Hr=K.length;if(ke!==void 0&&(ke=String(ke).toLowerCase(),ke==="ucs2"||ke==="ucs-2"||ke==="utf16le"||ke==="utf-16le")){if(Ee.length<2||K.length<2)return-1;Nt=2,cn/=2,Hr/=2,ie/=2}function _o(Hs,zi){return Nt===1?Hs[zi]:Hs.readUInt16BE(zi*Nt)}let Ko;if(nt){let Hs=-1;for(Ko=ie;Kocn&&(ie=cn-Hr),Ko=ie;Ko>=0;Ko--){let Hs=!0;for(let zi=0;zint&&(ke=nt)):ke=nt;const Nt=K.length;ke>Nt/2&&(ke=Nt/2);let cn;for(cn=0;cn>>0,isFinite(ke)?(ke=ke>>>0,nt===void 0&&(nt="utf8")):(nt=ke,ke=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Nt=this.length-ie;if((ke===void 0||ke>Nt)&&(ke=Nt),K.length>0&&(ke<0||ie<0)||ie>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");let cn=!1;for(;;)switch(nt){case"hex":return ce(this,K,ie,ke);case"utf8":case"utf-8":return pe(this,K,ie,ke);case"ascii":case"latin1":case"binary":return le(this,K,ie,ke);case"base64":return ye(this,K,ie,ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,K,ie,ke);default:if(cn)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),cn=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function qe(Ee,K,ie){return K===0&&ie===Ee.length?r.fromByteArray(Ee):r.fromByteArray(Ee.slice(K,ie))}function et(Ee,K,ie){ie=Math.min(Ee.length,ie);const ke=[];let nt=K;for(;nt239?4:Nt>223?3:Nt>191?2:1;if(nt+Hr<=ie){let _o,Ko,Hs,zi;switch(Hr){case 1:Nt<128&&(cn=Nt);break;case 2:_o=Ee[nt+1],(_o&192)===128&&(zi=(Nt&31)<<6|_o&63,zi>127&&(cn=zi));break;case 3:_o=Ee[nt+1],Ko=Ee[nt+2],(_o&192)===128&&(Ko&192)===128&&(zi=(Nt&15)<<12|(_o&63)<<6|Ko&63,zi>2047&&(zi<55296||zi>57343)&&(cn=zi));break;case 4:_o=Ee[nt+1],Ko=Ee[nt+2],Hs=Ee[nt+3],(_o&192)===128&&(Ko&192)===128&&(Hs&192)===128&&(zi=(Nt&15)<<18|(_o&63)<<12|(Ko&63)<<6|Hs&63,zi>65535&&zi<1114112&&(cn=zi))}}cn===null?(cn=65533,Hr=1):cn>65535&&(cn-=65536,ke.push(cn>>>10&1023|55296),cn=56320|cn&1023),ke.push(cn),nt+=Hr}return jt(ke)}const tt=4096;function jt(Ee){const K=Ee.length;if(K<=tt)return String.fromCharCode.apply(String,Ee);let ie="",ke=0;for(;keke)&&(ie=ke);let nt="";for(let Nt=K;Ntke&&(K=ke),ie<0?(ie+=ke,ie<0&&(ie=0)):ie>ke&&(ie=ke),ieie)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(K,ie,ke){K=K>>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K],Nt=1,cn=0;for(;++cn>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K+--ie],Nt=1;for(;ie>0&&(Nt*=256);)nt+=this[K+--ie]*Nt;return nt},x.prototype.readUint8=x.prototype.readUInt8=function(K,ie){return K=K>>>0,ie||be(K,1,this.length),this[K]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(K,ie){return K=K>>>0,ie||be(K,2,this.length),this[K]|this[K+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(K,ie){return K=K>>>0,ie||be(K,2,this.length),this[K]<<8|this[K+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+this[K+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]*16777216+(this[K+1]<<16|this[K+2]<<8|this[K+3])},x.prototype.readBigUInt64LE=ki(function(K){K=K>>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&ae(K,this.length-8);const nt=ie+this[++K]*2**8+this[++K]*2**16+this[++K]*2**24,Nt=this[++K]+this[++K]*2**8+this[++K]*2**16+ke*2**24;return BigInt(nt)+(BigInt(Nt)<>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&ae(K,this.length-8);const nt=ie*2**24+this[++K]*2**16+this[++K]*2**8+this[++K],Nt=this[++K]*2**24+this[++K]*2**16+this[++K]*2**8+ke;return(BigInt(nt)<>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K],Nt=1,cn=0;for(;++cn=Nt&&(nt-=Math.pow(2,8*ie)),nt},x.prototype.readIntBE=function(K,ie,ke){K=K>>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=ie,Nt=1,cn=this[K+--nt];for(;nt>0&&(Nt*=256);)cn+=this[K+--nt]*Nt;return Nt*=128,cn>=Nt&&(cn-=Math.pow(2,8*ie)),cn},x.prototype.readInt8=function(K,ie){return K=K>>>0,ie||be(K,1,this.length),this[K]&128?(255-this[K]+1)*-1:this[K]},x.prototype.readInt16LE=function(K,ie){K=K>>>0,ie||be(K,2,this.length);const ke=this[K]|this[K+1]<<8;return ke&32768?ke|4294901760:ke},x.prototype.readInt16BE=function(K,ie){K=K>>>0,ie||be(K,2,this.length);const ke=this[K+1]|this[K]<<8;return ke&32768?ke|4294901760:ke},x.prototype.readInt32LE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},x.prototype.readInt32BE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},x.prototype.readBigInt64LE=ki(function(K){K=K>>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&ae(K,this.length-8);const nt=this[K+4]+this[K+5]*2**8+this[K+6]*2**16+(ke<<24);return(BigInt(nt)<>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&ae(K,this.length-8);const nt=(ie<<24)+this[++K]*2**16+this[++K]*2**8+this[++K];return(BigInt(nt)<>>0,ie||be(K,4,this.length),c.read(this,K,!0,23,4)},x.prototype.readFloatBE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),c.read(this,K,!1,23,4)},x.prototype.readDoubleLE=function(K,ie){return K=K>>>0,ie||be(K,8,this.length),c.read(this,K,!0,52,8)},x.prototype.readDoubleBE=function(K,ie){return K=K>>>0,ie||be(K,8,this.length),c.read(this,K,!1,52,8)};function Se(Ee,K,ie,ke,nt,Nt){if(!x.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>nt||KEe.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,ke=ke>>>0,!nt){const Hr=Math.pow(2,8*ke)-1;Se(this,K,ie,ke,Hr,0)}let Nt=1,cn=0;for(this[ie]=K&255;++cn>>0,ke=ke>>>0,!nt){const Hr=Math.pow(2,8*ke)-1;Se(this,K,ie,ke,Hr,0)}let Nt=ke-1,cn=1;for(this[ie+Nt]=K&255;--Nt>=0&&(cn*=256);)this[ie+Nt]=K/cn&255;return ie+ke},x.prototype.writeUint8=x.prototype.writeUInt8=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,1,255,0),this[ie]=K&255,ie+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,2,65535,0),this[ie]=K&255,this[ie+1]=K>>>8,ie+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,2,65535,0),this[ie]=K>>>8,this[ie+1]=K&255,ie+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,4,4294967295,0),this[ie+3]=K>>>24,this[ie+2]=K>>>16,this[ie+1]=K>>>8,this[ie]=K&255,ie+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,4,4294967295,0),this[ie]=K>>>24,this[ie+1]=K>>>16,this[ie+2]=K>>>8,this[ie+3]=K&255,ie+4};function Jt(Ee,K,ie,ke,nt){rn(K,ke,nt,Ee,ie,7);let Nt=Number(K&BigInt(4294967295));Ee[ie++]=Nt,Nt=Nt>>8,Ee[ie++]=Nt,Nt=Nt>>8,Ee[ie++]=Nt,Nt=Nt>>8,Ee[ie++]=Nt;let cn=Number(K>>BigInt(32)&BigInt(4294967295));return Ee[ie++]=cn,cn=cn>>8,Ee[ie++]=cn,cn=cn>>8,Ee[ie++]=cn,cn=cn>>8,Ee[ie++]=cn,ie}function sn(Ee,K,ie,ke,nt){rn(K,ke,nt,Ee,ie,7);let Nt=Number(K&BigInt(4294967295));Ee[ie+7]=Nt,Nt=Nt>>8,Ee[ie+6]=Nt,Nt=Nt>>8,Ee[ie+5]=Nt,Nt=Nt>>8,Ee[ie+4]=Nt;let cn=Number(K>>BigInt(32)&BigInt(4294967295));return Ee[ie+3]=cn,cn=cn>>8,Ee[ie+2]=cn,cn=cn>>8,Ee[ie+1]=cn,cn=cn>>8,Ee[ie]=cn,ie+8}x.prototype.writeBigUInt64LE=ki(function(K,ie=0){return Jt(this,K,ie,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=ki(function(K,ie=0){return sn(this,K,ie,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,!nt){const _o=Math.pow(2,8*ke-1);Se(this,K,ie,ke,_o-1,-_o)}let Nt=0,cn=1,Hr=0;for(this[ie]=K&255;++Nt>0)-Hr&255;return ie+ke},x.prototype.writeIntBE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,!nt){const _o=Math.pow(2,8*ke-1);Se(this,K,ie,ke,_o-1,-_o)}let Nt=ke-1,cn=1,Hr=0;for(this[ie+Nt]=K&255;--Nt>=0&&(cn*=256);)K<0&&Hr===0&&this[ie+Nt+1]!==0&&(Hr=1),this[ie+Nt]=(K/cn>>0)-Hr&255;return ie+ke},x.prototype.writeInt8=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,1,127,-128),K<0&&(K=255+K+1),this[ie]=K&255,ie+1},x.prototype.writeInt16LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,2,32767,-32768),this[ie]=K&255,this[ie+1]=K>>>8,ie+2},x.prototype.writeInt16BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,2,32767,-32768),this[ie]=K>>>8,this[ie+1]=K&255,ie+2},x.prototype.writeInt32LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,4,2147483647,-2147483648),this[ie]=K&255,this[ie+1]=K>>>8,this[ie+2]=K>>>16,this[ie+3]=K>>>24,ie+4},x.prototype.writeInt32BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||Se(this,K,ie,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ie]=K>>>24,this[ie+1]=K>>>16,this[ie+2]=K>>>8,this[ie+3]=K&255,ie+4},x.prototype.writeBigInt64LE=ki(function(K,ie=0){return Jt(this,K,ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=ki(function(K,ie=0){return sn(this,K,ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Tn(Ee,K,ie,ke,nt,Nt){if(ie+ke>Ee.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("Index out of range")}function qn(Ee,K,ie,ke,nt){return K=+K,ie=ie>>>0,nt||Tn(Ee,K,ie,4),c.write(Ee,K,ie,ke,23,4),ie+4}x.prototype.writeFloatLE=function(K,ie,ke){return qn(this,K,ie,!0,ke)},x.prototype.writeFloatBE=function(K,ie,ke){return qn(this,K,ie,!1,ke)};function rr(Ee,K,ie,ke,nt){return K=+K,ie=ie>>>0,nt||Tn(Ee,K,ie,8),c.write(Ee,K,ie,ke,52,8),ie+8}x.prototype.writeDoubleLE=function(K,ie,ke){return rr(this,K,ie,!0,ke)},x.prototype.writeDoubleBE=function(K,ie,ke){return rr(this,K,ie,!1,ke)},x.prototype.copy=function(K,ie,ke,nt){if(!x.isBuffer(K))throw new TypeError("argument should be a Buffer");if(ke||(ke=0),!nt&&nt!==0&&(nt=this.length),ie>=K.length&&(ie=K.length),ie||(ie=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),K.length-ie>>0,ke=ke===void 0?this.length:ke>>>0,K||(K=0);let Nt;if(typeof K=="number")for(Nt=ie;Nt2**32?nt=Je(String(ie)):typeof ie=="bigint"&&(nt=String(ie),(ie>BigInt(2)**BigInt(32)||ie<-(BigInt(2)**BigInt(32)))&&(nt=Je(nt)),nt+="n"),ke+=` It must be ${K}. Received ${nt}`,ke},RangeError);function Je(Ee){let K="",ie=Ee.length;const ke=Ee[0]==="-"?1:0;for(;ie>=ke+4;ie-=3)K=`_${Ee.slice(ie-3,ie)}${K}`;return`${Ee.slice(0,ie)}${K}`}function ct(Ee,K,ie){Ne(K,"offset"),(Ee[K]===void 0||Ee[K+ie]===void 0)&&ae(K,Ee.length-(ie+1))}function rn(Ee,K,ie,ke,nt,Nt){if(Ee>ie||Ee3?K===0||K===BigInt(0)?Hr=`>= 0${cn} and < 2${cn} ** ${(Nt+1)*8}${cn}`:Hr=`>= -(2${cn} ** ${(Nt+1)*8-1}${cn}) and < 2 ** ${(Nt+1)*8-1}${cn}`:Hr=`>= ${K}${cn} and <= ${ie}${cn}`,new Zn.ERR_OUT_OF_RANGE("value",Hr,Ee)}ct(ke,nt,Nt)}function Ne(Ee,K){if(typeof Ee!="number")throw new Zn.ERR_INVALID_ARG_TYPE(K,"number",Ee)}function ae(Ee,K,ie){throw Math.floor(Ee)!==Ee?(Ne(Ee,ie),new Zn.ERR_OUT_OF_RANGE(ie||"offset","an integer",Ee)):K<0?new Zn.ERR_BUFFER_OUT_OF_BOUNDS:new Zn.ERR_OUT_OF_RANGE(ie||"offset",`>= ${ie?1:0} and <= ${K}`,Ee)}const me=/[^+/0-9A-Za-z-_]/g;function Te(Ee){if(Ee=Ee.split("=")[0],Ee=Ee.trim().replace(me,""),Ee.length<2)return"";for(;Ee.length%4!==0;)Ee=Ee+"=";return Ee}function Xe(Ee,K){K=K||1/0;let ie;const ke=Ee.length;let nt=null;const Nt=[];for(let cn=0;cn55295&&ie<57344){if(!nt){if(ie>56319){(K-=3)>-1&&Nt.push(239,191,189);continue}else if(cn+1===ke){(K-=3)>-1&&Nt.push(239,191,189);continue}nt=ie;continue}if(ie<56320){(K-=3)>-1&&Nt.push(239,191,189),nt=ie;continue}ie=(nt-55296<<10|ie-56320)+65536}else nt&&(K-=3)>-1&&Nt.push(239,191,189);if(nt=null,ie<128){if((K-=1)<0)break;Nt.push(ie)}else if(ie<2048){if((K-=2)<0)break;Nt.push(ie>>6|192,ie&63|128)}else if(ie<65536){if((K-=3)<0)break;Nt.push(ie>>12|224,ie>>6&63|128,ie&63|128)}else if(ie<1114112){if((K-=4)<0)break;Nt.push(ie>>18|240,ie>>12&63|128,ie>>6&63|128,ie&63|128)}else throw new Error("Invalid code point")}return Nt}function dt(Ee){const K=[];for(let ie=0;ie>8,nt=ie%256,Nt.push(nt),Nt.push(ke);return Nt}function gn(Ee){return r.toByteArray(Te(Ee))}function yr(Ee,K,ie,ke){let nt;for(nt=0;nt=K.length||nt>=Ee.length);++nt)K[nt+ie]=Ee[nt];return nt}function Sr(Ee,K){return Ee instanceof K||Ee!=null&&Ee.constructor!=null&&Ee.constructor.name!=null&&Ee.constructor.name===K.name}function Ur(Ee){return Ee!==Ee}const jr=function(){const Ee="0123456789abcdef",K=new Array(256);for(let ie=0;ie<16;++ie){const ke=ie*16;for(let nt=0;nt<16;++nt)K[ke+nt]=Ee[ie]+Ee[nt]}return K}();function ki(Ee){return typeof BigInt>"u"?Zc:Ee}function Zc(){throw new Error("BigInt not supported")}})(hNe);var vLt={},yLt={},wLt={},BUn=function(r,c){return function(u,d){var p=d*2,m=c*2;u[p]=r[m],u[p+1]=r[m+1]}},gNe=BUn;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(gNe);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){for(var x=m.A,E=m.C,k=0;k<25;k+=5){for(var T=0;T<5;T++)(0,r.default)(x,k+T)(E,T);for(var P=0;P<5;P++){var I=(k+P)*2,O=(P+1)%5*2,N=(P+2)%5*2;x[I]^=~E[O]&E[N],x[I+1]^=~E[O+1]&E[N+1]}}},d=u;n.default=d})(wLt);var xLt={},SLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]),c=r;n.default=c})(SLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(SLt);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){var x=m.A,E=m.roundIndex,k=E*2;x[0]^=r.default[k],x[1]^=r.default[k+1]},d=u;n.default=d})(xLt);var ELt={},kLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1],c=r;n.default=c})(kLt);var CLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44],c=r;n.default=c})(CLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=d(kLt),c=d(CLt),u=d(gNe);function d(x){return x&&x.__esModule?x:{default:x}}var p=function(E){var k=E.A,T=E.C,P=E.W;(0,u.default)(k,1)(P,0);for(var I=0,O=0,N=0,j=32,L=0;L<24;L++){var $=r.default[L],F=c.default[L];(0,u.default)(k,$)(T,0),I=P[0],O=P[1],j=32-F,N=F<32?0:1,P[N]=I<>>j,P[(N+1)%2]=O<>>j,(0,u.default)(P,0)(k,$),(0,u.default)(T,0)(P,0)}},m=p;n.default=m})(ELt);var ILt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(gNe);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){for(var x=m.A,E=m.C,k=m.D,T=m.W,P=0,I=0,O=0;O<5;O++){var N=O*2,j=(O+5)*2,L=(O+10)*2,$=(O+15)*2,F=(O+20)*2;E[N]=x[N]^x[j]^x[L]^x[$]^x[F],E[N+1]=x[N+1]^x[j+1]^x[L+1]^x[$+1]^x[F+1]}for(var B=0;B<5;B++){(0,r.default)(E,(B+1)%5)(T,0),P=T[0],I=T[1],T[0]=P<<1|I>>>31,T[1]=I<<1|P>>>31,k[B*2]=E[(B+4)%5*2]^T[0],k[B*2+1]=E[(B+4)%5*2+1]^T[1];for(var X=0;X<25;X+=5)x[(X+B)*2]^=k[B*2],x[(X+B)*2+1]^=k[B*2+1]}},d=u;n.default=d})(ILt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=p(wLt),c=p(xLt),u=p(ELt),d=p(ILt);function p(E){return E&&E.__esModule?E:{default:E}}var m=function(){var k=new Uint32Array(10),T=new Uint32Array(10),P=new Uint32Array(2);return function(I){for(var O=0;O<24;O++)(0,d.default)({A:I,C:k,D:T,W:P}),(0,u.default)({A:I,C:k,W:P}),(0,r.default)({A:I,C:k}),(0,c.default)({A:I,roundIndex:O});k.fill(0),T.fill(0),P.fill(0)}},x=m;n.default=x})(yLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=hNe,c=u(yLt);function u(E){return E&&E.__esModule?E:{default:E}}var d=function(k,T){for(var P=0;P>>8,T[P+2]=k[I+1]>>>16,T[P+3]=k[I+1]>>>24,T[P+4]=k[I],T[P+5]=k[I]>>>8,T[P+6]=k[I]>>>16,T[P+7]=k[I]>>>24}return T},m=function(k){var T=this,P=k.capacity,I=k.padding,O=(0,c.default)(),N=200,j=P/8,L=N-P/4,$=0,F=new Uint32Array(N/4),B=r.Buffer.allocUnsafe(L);return this.absorb=function(X){for(var ne=0;ne=L&&(d(B,F),O(F),$=0);return T},this.squeeze=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne={buffer:X.buffer||r.Buffer.allocUnsafe(j),padding:X.padding||I,queue:r.Buffer.allocUnsafe(B.length),state:new Uint32Array(F.length)};B.copy(ne.queue);for(var Z=0;Z0&&arguments[0]!==void 0?arguments[0]:O;if(!this||this.constructor!==j)return new j($);if(I&&!I.includes($))throw new Error("Unsupported hash length");var F=new c.default({capacity:$});return this.update=function(B){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf8";if(r.Buffer.isBuffer(B))return F.absorb(B),L;if(typeof B=="string")return L.update(r.Buffer.from(B,X));throw new TypeError("Not a string or buffer")},this.digest=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"binary",X=typeof B=="string"?{format:B}:B,ne=F.squeeze({buffer:X.buffer,padding:X.padding||N});return X.format&&X.format!=="binary"?ne.toString(X.format):ne},this.reset=function(){return F.reset(),L},this}},p=d({allowedSizes:[224,256,384,512],defaultSize:512,padding:1});n.Keccak=p;var m=d({allowedSizes:[224,256,384,512],defaultSize:512,padding:6});n.SHA3=m;var x=d({allowedSizes:[128,256],defaultSize:256,padding:31});n.SHAKE=x;var E=p;n.SHA3Hash=E,m.SHA3Hash=E;var k=m;n.default=k})(bLt);function Qce(n){const r={edges:{},nodes:{}};for(const[,c]of Array.from(n.nodeMap))r.nodes[c.getSerialisableId()]={position:c.position};for(const[,c]of Array.from(n.edgeMap))r.edges[c.getSerialisableId()]={position:c.position};return Fk.exports.compressToEncodedURIComponent(JSON.stringify(r))}var xPt;const Tq=(xPt=globalThis.acquireVsCodeApi)==null?void 0:xPt.call(globalThis),zUn=typeof parent<"u"&&typeof window<"u"&&window.location.search.includes("runningInStatelyExtension=true"),bNe=Boolean(Tq)||zUn,VUn=n=>{if(Object.keys(n).length===0)return{};try{const r=GDe.parse(n.layout),c=JSON.parse(Fk.exports.decompressFromEncodedURIComponent(n.config)),u=n.themeKind;let d;return n.implementations&&(d=hVn.parse(n.implementations)),{config:c,layout:r,implementations:d,themeKind:u,distinctId:n.distinctId}}catch{return{}}};function UUn(n){return{...n,layout:GDe.parse(n.layoutString)}}const gU=n=>{!bNe||(Tq?Tq.postMessage(n):parent.postMessage(JSON.stringify(n),"*"))};let Pse=[];const NPe=typeof window<"u"&&bNe?Tq?UUn(window.__params):VUn(Object.fromEntries(new URLSearchParams(window.location.search))):{};let v7t=NPe.layout?Fk.exports.compressToEncodedURIComponent(JSON.stringify(NPe.layout)):void 0;const mr={enabled:bNe,params:NPe,putEditInExtensionQueue:n=>{Pse.push(n)},flushEditsToExtension:({reason:n})=>{if(!Pse.length)return;const r=Pse;Pse=[],gU({type:"MACHINE_CHANGED",edits:r,reason:n})},openLink:n=>gU({type:"OPEN_LINK",url:n}),selectNode:n=>{const[,...r]=n.split(".");gU({type:"NODE_SELECTED",path:r})},updateDefinition:n=>{if(Tq)return;const{config:r,implementationMetadata:c}=L$t(dN.toJSON(n)),u=Qce(n);v7t!==u&&(v7t=u,gU({type:"LAYOUT_UPDATED",layoutString:u})),gU({type:"DEFINITION_UPDATED",config:r,layoutString:u,implementations:c})}};let jPe,TLt;const y7t=rfe()?window.localStorage:ife();function HUn(){const c=new Date().getTime().toString(16).slice(1);return"xxxx-xxxx-4xxx-yxxx-xzx".replace(/[xy]/g,d=>{const p=Math.random()*16|0;return(d==="x"?p:p&3|8).toString(16)}).replace(/z/,c)}const qUn=typeof window<"u"&&typeof self.crypto.randomUUID=="function"?()=>self.crypto.randomUUID():HUn,WUn=()=>{const n=y7t.getItem("random.uuid");if(n)return n;const r=qUn();return y7t.setItem("random.uuid",r),r},GUn=()=>jPe&&TLt===!0?jPe.digest("hex"):mr.enabled&&mr.params.distinctId?mr.params.distinctId:WUn();let _ae=[];const ALt=()=>{if(_ae.length===0)return;const n=_ae.map(r=>({event:r.event,properties:{...r.properties,distinct_id:GUn()}}));_ae=[],fetch("/registry/api/analyze",{method:"POST",body:JSON.stringify(n)}).catch(console.log)},XUn=iLt(ALt,1e3),PLt=(n,r,{instantDelivery:c=!1}={})=>{const u=Math.floor(new Date().getTime()/1e3);_ae.push({event:n,properties:{...r,time:u}}),c?ALt():XUn()},KUn=iLt(PLt,1e3),YUn={identify:n=>{jPe=new bLt.SHA3().update(n)},hasGivenConsent:n=>{TLt=n},track:PLt,debouncedTrack:KUn},so=()=>{if(!(!mr.enabled&&(!{}.NEXT_PUBLIC_MIXPANEL_TOKEN||typeof window>"u")))return YUn};function Ose(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var OLt={exports:{}};(function(n,r){(function(c){n.exports=c()})(function(){return function(){function c(u,d,p){function m(k,T){if(!d[k]){if(!u[k]){var P=typeof Ose=="function"&&Ose;if(!T&&P)return P(k,!0);if(x)return x(k,!0);var I=new Error("Cannot find module '"+k+"'");throw I.code="MODULE_NOT_FOUND",I}var O=d[k]={exports:{}};u[k][0].call(O.exports,function(N){var j=u[k][1][N];return m(j||N)},O,O.exports,c,u,d,p)}return d[k].exports}for(var x=typeof Ose=="function"&&Ose,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},I=P.defaultLayoutOptions,O=I===void 0?{}:I,N=P.algorithms,j=N===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:N,L=P.workerFactory,$=P.workerUrl;if(m(this,k),this.defaultLayoutOptions=O,this.initialized=!1,typeof $>"u"&&typeof L>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var F=L;typeof $<"u"&&typeof L>"u"&&(F=function(ne){return new Worker(ne)});var B=F($);if(typeof B.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new E(B),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(X){return T.initialized=!0}).catch(console.err)}return p(k,[{key:"layout",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=I.layoutOptions,N=O===void 0?this.defaultLayoutOptions:O,j=I.logging,L=j===void 0?!1:j,$=I.measureExecutionTime,F=$===void 0?!1:$;return P?this.worker.postMessage({cmd:"layout",graph:P,layoutOptions:N,options:{logging:L,measureExecutionTime:F}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),k}();d.default=x;var E=function(){function k(T){var P=this;if(m(this,k),T===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=T,this.worker.onmessage=function(I){setTimeout(function(){P.receive(P,I)},0)}}return p(k,[{key:"postMessage",value:function(P){var I=this.id||0;this.id=I+1,P.id=I;var O=this;return new Promise(function(N,j){O.resolvers[I]=function(L,$){L?(O.convertGwtStyleError(L),j(L)):N($)},O.worker.postMessage(P)})}},{key:"receive",value:function(P,I){var O=I.data,N=P.resolvers[O.id];N&&(delete P.resolvers[O.id],O.error?N(O.error):N(null,O.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(P){if(!!P){var I=P.__java$exception;I&&(I.cause&&I.cause.backingJsObject&&(P.cause=I.cause.backingJsObject,this.convertGwtStyleError(P.cause)),delete P.__java$exception)}}}]),k}()},{}],2:[function(c,u,d){(function(p){var m;typeof window<"u"?m=window:typeof p<"u"?m=p:typeof self<"u"&&(m=self);function x(){}function E(){}function k(){}function T(){}function P(){}function I(){}function O(){}function N(){}function j(){}function L(){}function $(){}function F(){}function B(){}function X(){}function ne(){}function Z(){}function H(){}function ce(){}function pe(){}function le(){}function ye(){}function Ge(){}function qe(){}function et(){}function tt(){}function jt(){}function Me(){}function ze(){}function we(){}function De(){}function be(){}function Se(){}function Jt(){}function sn(){}function Tn(){}function qn(){}function rr(){}function Zn(){}function Gr(){}function Je(){}function ct(){}function rn(){}function Ne(){}function ae(){}function me(){}function Te(){}function Xe(){}function dt(){}function Sn(){}function gn(){}function yr(){}function Sr(){}function Ur(){}function jr(){}function ki(){}function Zc(){}function Ee(){}function K(){}function ie(){}function ke(){}function nt(){}function Nt(){}function cn(){}function Hr(){}function _o(){}function Ko(){}function Hs(){}function zi(){}function c3(){}function Hp(){}function SN(){}function $S(){}function MW(){}function Rw(){}function DW(){}function NW(){}function jW(){}function RW(){}function $W(){}function Rb(){}function LW(){}function FW(){}function BW(){}function zW(){}function VW(){}function u3(){}function UW(){}function EN(){}function HW(){}function qW(){}function WW(){}function l3(){}function uT(){}function lT(){}function Gk(){}function GW(){}function XW(){}function fT(){}function dT(){}function KW(){}function Xk(){}function f3(){}function YW(){}function Kk(){}function kN(){}function QW(){}function ZW(){}function JW(){}function CN(){}function eG(){}function tG(){}function IN(){}function nG(){}function rG(){}function TN(){}function iG(){}function oG(){}function sG(){}function aG(){}function Yk(){}function hT(){}function cG(){}function uG(){}function AN(){}function lG(){}function fG(){}function dG(){}function PN(){}function hG(){}function pG(){}function gG(){}function Qk(){}function bG(){}function mG(){}function vG(){}function Zk(){}function Jk(){}function pT(){}function gT(){}function yG(){}function ON(){}function bT(){}function _N(){}function $w(){}function LS(){}function wG(){}function MN(){}function xG(){}function DN(){}function SG(){}function EG(){}function NN(){}function kG(){}function Ve(){}function ht(){}function Kt(){}function Qr(){}function Ds(){}function Ka(){}function qc(){}function Ts(){}function Wc(){}function W1(){}function i1(){}function FS(){}function mT(){}function vT(){}function jN(){}function oje(){}function sje(){}function aje(){}function cje(){}function uje(){}function lje(){}function fje(){}function dje(){}function hje(){}function pje(){}function gje(){}function bje(){}function mje(){}function vje(){}function yje(){}function wje(){}function xje(){}function Sje(){}function Eje(){}function kje(){}function Cje(){}function Ije(){}function Tje(){}function Aje(){}function Pje(){}function Oje(){}function _je(){}function Mje(){}function Dje(){}function Nje(){}function jje(){}function Rje(){}function $je(){}function Lje(){}function Fje(){}function Bje(){}function zje(){}function Vje(){}function Uje(){}function Hje(){}function qje(){}function Wje(){}function Gje(){}function Xje(){}function Kje(){}function Yje(){}function Qje(){}function Zje(){}function Jje(){}function eRe(){}function tRe(){}function nRe(){}function rRe(){}function iRe(){}function oRe(){}function sRe(){}function aRe(){}function cRe(){}function uRe(){}function lRe(){}function fRe(){}function dRe(){}function hRe(){}function pRe(){}function gRe(){}function bRe(){}function mRe(){}function vRe(){}function yRe(){}function Zfe(){}function wRe(){}function xRe(){}function SRe(){}function ERe(){}function kRe(){}function CRe(){}function IRe(){}function TRe(){}function ARe(){}function PRe(){}function ORe(){}function _Re(){}function MRe(){}function DRe(){}function NRe(){}function jRe(){}function RRe(){}function $Re(){}function LRe(){}function FRe(){}function BRe(){}function zRe(){}function VRe(){}function URe(){}function HRe(){}function qRe(){}function WRe(){}function GRe(){}function XRe(){}function KRe(){}function YRe(){}function QRe(){}function ZRe(){}function JRe(){}function e$e(){}function t$e(){}function n$e(){}function r$e(){}function i$e(){}function o$e(){}function s$e(){}function a$e(){}function c$e(){}function u$e(){}function l$e(){}function f$e(){}function d$e(){}function h$e(){}function p$e(){}function g$e(){}function b$e(){}function m$e(){}function v$e(){}function y$e(){}function w$e(){}function x$e(){}function S$e(){}function E$e(){}function k$e(){}function C$e(){}function I$e(){}function T$e(){}function A$e(){}function P$e(){}function O$e(){}function _$e(){}function M$e(){}function D$e(){}function N$e(){}function j$e(){}function R$e(){}function $$e(){}function L$e(){}function Jfe(){}function F$e(){}function B$e(){}function z$e(){}function V$e(){}function U$e(){}function H$e(){}function q$e(){}function W$e(){}function G$e(){}function X$e(){}function K$e(){}function Y$e(){}function Q$e(){}function Z$e(){}function ede(){}function J$e(){}function eLe(){}function tLe(){}function nLe(){}function rLe(){}function iLe(){}function tde(){}function nde(){}function oLe(){}function rde(){}function ide(){}function sLe(){}function aLe(){}function cLe(){}function uLe(){}function lLe(){}function fLe(){}function dLe(){}function hLe(){}function pLe(){}function gLe(){}function bLe(){}function mLe(){}function vLe(){}function yLe(){}function wLe(){}function xLe(){}function SLe(){}function ELe(){}function kLe(){}function CLe(){}function ode(){}function ILe(){}function TLe(){}function ALe(){}function PLe(){}function OLe(){}function _Le(){}function MLe(){}function DLe(){}function NLe(){}function jLe(){}function RLe(){}function $Le(){}function LLe(){}function FLe(){}function BLe(){}function zLe(){}function VLe(){}function ULe(){}function HLe(){}function qLe(){}function WLe(){}function GLe(){}function XLe(){}function KLe(){}function YLe(){}function QLe(){}function ZLe(){}function JLe(){}function eFe(){}function tFe(){}function nFe(){}function rFe(){}function iFe(){}function oFe(){}function sFe(){}function aFe(){}function cFe(){}function uFe(){}function lFe(){}function fFe(){}function dFe(){}function hFe(){}function pFe(){}function gFe(){}function bFe(){}function mFe(){}function vFe(){}function yFe(){}function wFe(){}function xFe(){}function SFe(){}function EFe(){}function kFe(){}function CFe(){}function IFe(){}function TFe(){}function AFe(){}function CG(){}function IG(){}function TG(){}function PFe(){}function OFe(){}function _Fe(){}function MFe(){}function sde(){}function DFe(){}function NFe(){}function wUt(){}function jFe(){}function RFe(){}function $Fe(){}function LFe(){}function FFe(){}function BFe(){}function zFe(){}function VFe(){}function ag(){}function UFe(){}function d3(){}function ade(){}function HFe(){}function qFe(){}function WFe(){}function GFe(){}function XFe(){}function KFe(){}function YFe(){}function QFe(){}function ZFe(){}function JFe(){}function eBe(){}function tBe(){}function nBe(){}function rBe(){}function iBe(){}function oBe(){}function sBe(){}function aBe(){}function cBe(){}function uBe(){}function pt(){}function lBe(){}function fBe(){}function dBe(){}function hBe(){}function pBe(){}function gBe(){}function bBe(){}function mBe(){}function vBe(){}function yBe(){}function wBe(){}function AG(){}function xBe(){}function SBe(){}function RN(){}function cde(){}function EBe(){}function $N(){}function kBe(){}function LN(){}function CBe(){}function ude(){}function IBe(){}function TBe(){}function FN(){}function ABe(){}function PBe(){}function OBe(){}function _Be(){}function MBe(){}function DBe(){}function NBe(){}function lde(){}function jBe(){}function RBe(){}function BN(){}function fde(){}function PG(){}function $Be(){}function LBe(){}function FBe(){}function BBe(){}function xUt(){}function zBe(){}function VBe(){}function UBe(){}function HBe(){}function qBe(){}function WBe(){}function GBe(){}function XBe(){}function KBe(){}function YBe(){}function BS(){}function OG(){}function QBe(){}function ZBe(){}function JBe(){}function eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function aze(){}function cze(){}function uze(){}function lze(){}function fze(){}function dze(){}function hze(){}function pze(){}function gze(){}function bze(){}function mze(){}function vze(){}function yze(){}function wze(){}function xze(){}function Sze(){}function Eze(){}function kze(){}function Cze(){}function Ize(){}function Tze(){}function Aze(){}function Pze(){}function Oze(){}function _ze(){}function Mze(){}function Dze(){}function Nze(){}function jze(){}function Rze(){}function $ze(){}function Lze(){}function Fze(){}function Bze(){}function zze(){}function Vze(){}function Uze(){}function Hze(){}function qze(){}function Wze(){}function Gze(){}function Xze(){}function Kze(){}function Yze(){}function Qze(){}function Zze(){}function Jze(){}function eVe(){}function tVe(){}function nVe(){}function rVe(){}function iVe(){}function oVe(){}function sVe(){}function aVe(){}function cVe(){}function uVe(){}function lVe(){}function fVe(){}function dVe(){}function hVe(){}function pVe(){}function gVe(){}function bVe(){}function mVe(){}function vVe(){}function yVe(){}function wVe(){}function xVe(){}function SVe(){}function EVe(){}function kVe(){}function CVe(){}function IVe(){}function TVe(){}function AVe(){}function PVe(){}function OVe(){}function _Ve(){}function MVe(){}function DVe(){}function NVe(){}function jVe(){}function RVe(){}function $Ve(){}function LVe(){}function FVe(){}function BVe(){}function zVe(){}function VVe(){}function UVe(){}function dde(){}function HVe(){}function qVe(){}function _G(){sC()}function WVe(){ML()}function GVe(){yQ()}function XVe(){O8()}function KVe(){oye()}function YVe(){Bf()}function QVe(){mve()}function ZVe(){vP()}function JVe(){$T()}function eUe(){RT()}function tUe(){fA()}function nUe(){WKe()}function rUe(){W3()}function iUe(){iot()}function oUe(){q5()}function sUe(){pj()}function aUe(){m0()}function cUe(){Knt()}function uUe(){_ot()}function lUe(){Zwe()}function fUe(){Qe()}function dUe(){pat()}function hUe(){_rt()}function pUe(){gat()}function gUe(){mat()}function bUe(){Qnt()}function mUe(){Klt()}function vUe(){Fot()}function yUe(){irt()}function wUe(){hct()}function xUe(){GKe()}function SUe(){$ye()}function EUe(){_Z()}function kUe(){Znt()}function CUe(){J1t()}function IUe(){Fbe()}function TUe(){by()}function AUe(){FL()}function PUe(){eL()}function OUe(){Bye()}function _Ue(){oy()}function MUe(){IP()}function DUe(){XZ()}function NUe(){rZ()}function jUe(){m$()}function hde(){Pr()}function RUe(){Wme()}function pde(){iF()}function Of(){MJe()}function gde(){iQ()}function $Ue(){Cwe()}function bde(e){Ut(e)}function LUe(e){this.a=e}function zN(e){this.a=e}function FUe(e){this.a=e}function BUe(e){this.a=e}function mde(e){this.a=e}function vde(e){this.a=e}function MG(e){this.a=e}function zUe(e){this.a=e}function VUe(e){this.a=e}function UUe(e){this.a=e}function HUe(e){this.a=e}function qUe(e){this.a=e}function DG(e){this.a=e}function WUe(e){this.a=e}function NG(e){this.a=e}function GUe(e){this.a=e}function jG(e){this.a=e}function XUe(e){this.a=e}function KUe(e){this.a=e}function YUe(e){this.a=e}function QUe(e){this.a=e}function ZUe(e){this.a=e}function JUe(e){this.a=e}function eHe(e){this.a=e}function tHe(e){this.a=e}function nHe(e){this.a=e}function rHe(e){this.a=e}function iHe(e){this.a=e}function yde(e){this.a=e}function wde(e){this.a=e}function VN(e){this.a=e}function yT(e){this.a=e}function oHe(e){this.c=e}function xde(e){this.b=e}function cg(){this.a=[]}function sHe(e,t){e.a=t}function SUt(e,t){e.a=t}function EUt(e,t){e.b=t}function kUt(e,t){e.b=t}function CUt(e,t){e.b=t}function Sde(e,t){e.j=t}function IUt(e,t){e.g=t}function TUt(e,t){e.i=t}function AUt(e,t){e.c=t}function PUt(e,t){e.d=t}function OUt(e,t){e.d=t}function _Ut(e,t){e.c=t}function MUt(e,t){e.c=t}function ug(e,t){e.k=t}function RG(e,t){e.d=t}function DUt(e,t){e.a=t}function Ede(e,t){e.a=t}function kde(e,t){e.c=t}function NUt(e,t){e.a=t}function jUt(e,t){e.f=t}function RUt(e,t){e.f=t}function aHe(e,t){e.e=t}function Cde(e,t){e.g=t}function $Ut(e,t){e.e=t}function LUt(e,t){e.f=t}function FUt(e,t){e.i=t}function UN(e,t){e.i=t}function BUt(e,t){e.b=t}function Ide(e,t){e.o=t}function zUt(e,t){e.r=t}function VUt(e,t){e.a=t}function UUt(e,t){e.b=t}function HUt(e,t){e.n=t}function qUt(e,t){e.a=t}function WUt(e,t){e.a=t}function GUt(e,t){e.c=t}function XUt(e,t){e.c=t}function KUt(e,t){e.d=t}function YUt(e,t){e.e=t}function QUt(e,t){e.e=t}function ZUt(e,t){e.g=t}function JUt(e,t){e.a=t}function eHt(e,t){e.c=t}function tHt(e,t){e.d=t}function nHt(e,t){e.f=t}function rHt(e,t){e.j=t}function iHt(e,t){e.a=t}function oHt(e,t){e.a=t}function sHt(e,t){e.b=t}function cHe(e){e.b=e.a}function uHe(e){e.c=e.d.d}function eC(e){this.d=e}function lg(e){this.a=e}function zS(e){this.a=e}function wT(e){this.a=e}function lHe(e){this.a=e}function Tde(e){this.a=e}function xT(e){this.a=e}function ST(e){this.a=e}function Ade(e){this.a=e}function o1(e){this.a=e}function _v(e){this.a=e}function ET(e){this.a=e}function Pde(e){this.a=e}function Ode(e){this.a=e}function _de(e){this.a=e}function $G(e){this.a=e}function VS(e){this.b=e}function US(e){this.b=e}function Mde(e){this.b=e}function Q(e){this.c=e}function LG(e){this.c=e}function fHe(e){this.a=e}function Dde(e){this.a=e}function Nde(e){this.a=e}function Lr(e){this.a=e}function dHe(e){this.a=e}function jde(e){this.a=e}function Rde(e){this.a=e}function $de(e){this.a=e}function Lde(e){this.a=e}function Fde(e){this.a=e}function hHe(e){this.a=e}function pHe(e){this.a=e}function tC(e){this.a=e}function gHe(e){this.a=e}function bHe(e){this.a=e}function mHe(e){this.a=e}function vHe(e){this.a=e}function yHe(e){this.a=e}function wHe(e){this.a=e}function xHe(e){this.a=e}function SHe(e){this.a=e}function EHe(e){this.a=e}function kHe(e){this.a=e}function CHe(e){this.a=e}function IHe(e){this.a=e}function THe(e){this.a=e}function AHe(e){this.a=e}function PHe(e){this.a=e}function OHe(e){this.a=e}function _He(e){this.a=e}function MHe(e){this.a=e}function Bde(e){this.a=e}function HN(e){this.a=e}function DHe(e){this.a=e}function NHe(e){this.c=e}function jHe(e){this.a=e}function HS(e){this.a=e}function zde(e){this.a=e}function RHe(e){this.a=e}function $He(e){this.a=e}function LHe(e){this.a=e}function FHe(e){this.a=e}function BHe(e){this.a=e}function zHe(e){this.a=e}function Vde(e){this.a=e}function Ude(e){this.a=e}function Hde(e){this.a=e}function qN(e){this.a=e}function WN(e){this.e=e}function qS(e){this.a=e}function VHe(e){this.a=e}function h3(e){this.a=e}function qde(e){this.a=e}function UHe(e){this.a=e}function HHe(e){this.a=e}function qHe(e){this.a=e}function WHe(e){this.a=e}function GHe(e){this.a=e}function XHe(e){this.a=e}function KHe(e){this.a=e}function YHe(e){this.a=e}function QHe(e){this.a=e}function ZHe(e){this.a=e}function JHe(e){this.a=e}function Wde(e){this.a=e}function eqe(e){this.a=e}function tqe(e){this.a=e}function nqe(e){this.a=e}function rqe(e){this.a=e}function iqe(e){this.a=e}function oqe(e){this.a=e}function sqe(e){this.a=e}function aqe(e){this.a=e}function cqe(e){this.a=e}function uqe(e){this.a=e}function lqe(e){this.a=e}function fqe(e){this.a=e}function dqe(e){this.a=e}function hqe(e){this.a=e}function pqe(e){this.a=e}function gqe(e){this.a=e}function bqe(e){this.a=e}function mqe(e){this.a=e}function vqe(e){this.a=e}function yqe(e){this.a=e}function wqe(e){this.a=e}function xqe(e){this.a=e}function Sqe(e){this.a=e}function Eqe(e){this.a=e}function kqe(e){this.a=e}function Cqe(e){this.a=e}function Iqe(e){this.a=e}function Tqe(e){this.a=e}function Aqe(e){this.a=e}function Pqe(e){this.a=e}function Oqe(e){this.a=e}function _qe(e){this.a=e}function Mqe(e){this.a=e}function Dqe(e){this.a=e}function Nqe(e){this.a=e}function jqe(e){this.a=e}function Rqe(e){this.a=e}function $qe(e){this.a=e}function Lqe(e){this.c=e}function Fqe(e){this.b=e}function Bqe(e){this.a=e}function zqe(e){this.a=e}function Vqe(e){this.a=e}function Uqe(e){this.a=e}function Hqe(e){this.a=e}function qqe(e){this.a=e}function Wqe(e){this.a=e}function Gqe(e){this.a=e}function Xqe(e){this.a=e}function Kqe(e){this.a=e}function Yqe(e){this.a=e}function Qqe(e){this.a=e}function Zqe(e){this.a=e}function Jqe(e){this.a=e}function eWe(e){this.a=e}function tWe(e){this.a=e}function nWe(e){this.a=e}function rWe(e){this.a=e}function iWe(e){this.a=e}function oWe(e){this.a=e}function sWe(e){this.a=e}function aWe(e){this.a=e}function qp(e){this.a=e}function p3(e){this.a=e}function cWe(e){this.a=e}function uWe(e){this.a=e}function lWe(e){this.a=e}function fWe(e){this.a=e}function dWe(e){this.a=e}function hWe(e){this.a=e}function pWe(e){this.a=e}function gWe(e){this.a=e}function bWe(e){this.a=e}function mWe(e){this.a=e}function vWe(e){this.a=e}function yWe(e){this.a=e}function wWe(e){this.a=e}function xWe(e){this.a=e}function SWe(e){this.a=e}function EWe(e){this.a=e}function GN(e){this.a=e}function kWe(e){this.f=e}function CWe(e){this.a=e}function IWe(e){this.a=e}function TWe(e){this.a=e}function AWe(e){this.a=e}function PWe(e){this.a=e}function OWe(e){this.a=e}function _We(e){this.a=e}function MWe(e){this.a=e}function DWe(e){this.a=e}function NWe(e){this.a=e}function jWe(e){this.a=e}function RWe(e){this.a=e}function $We(e){this.a=e}function LWe(e){this.a=e}function FWe(e){this.a=e}function BWe(e){this.a=e}function zWe(e){this.a=e}function VWe(e){this.a=e}function UWe(e){this.a=e}function HWe(e){this.a=e}function qWe(e){this.a=e}function WWe(e){this.a=e}function GWe(e){this.a=e}function XWe(e){this.a=e}function KWe(e){this.a=e}function YWe(e){this.a=e}function QWe(e){this.a=e}function ZWe(e){this.a=e}function Gde(e){this.a=e}function Xr(e){this.b=e}function JWe(e){this.a=e}function eGe(e){this.a=e}function tGe(e){this.a=e}function nGe(e){this.a=e}function rGe(e){this.a=e}function iGe(e){this.a=e}function oGe(e){this.a=e}function sGe(e){this.a=e}function kT(e){this.a=e}function aGe(e){this.a=e}function cGe(e){this.b=e}function Xde(e){this.c=e}function XN(e){this.e=e}function uGe(e){this.a=e}function KN(e){this.a=e}function YN(e){this.a=e}function FG(e){this.a=e}function lGe(e){this.d=e}function fGe(e){this.a=e}function Kde(e){this.a=e}function Yde(e){this.a=e}function $b(e){this.e=e}function CT(){this.a=0}function g3(){BQe(this)}function Fe(){HX(this)}function Vn(){Gc(this)}function BG(){Btt(this)}function dGe(){}function Lb(){this.c=lIe}function aHt(e,t){t.Wb(e)}function hGe(e,t){e.b+=t}function cHt(e,t){Fi(t,e)}function uHt(e){return e.a}function lHt(e){return e.a}function fHt(e){return e.a}function dHt(e){return e.a}function hHt(e){return e.a}function ee(e){return e.e}function pHt(){return null}function gHt(){return null}function bHt(){Nhe(),nwn()}function mHt(e){e.b.rf(e.e)}function pGe(e,t){t.$c(e.a)}function nC(e,t){e.a=t-e.a}function rC(e,t){e.b=t-e.b}function IT(e,t){e.e=t,t.b=e}function vHt(e,t,s){e.Od(s,t)}function gGe(e){y5(),fne.be(e)}function Qde(e){qd(),this.a=e}function bGe(e){qd(),this.a=e}function mGe(e){qd(),this.a=e}function Zde(e){Xv(),this.a=e}function vGe(){this.a=this}function QN(){this.Bb|=256}function fg(){vZe.call(this)}function Jde(){vZe.call(this)}function ehe(){fg.call(this)}function zG(){fg.call(this)}function aa(){fg.call(this)}function yGe(){fg.call(this)}function TT(){fg.call(this)}function Cc(){fg.call(this)}function iC(){fg.call(this)}function jn(){fg.call(this)}function ol(){fg.call(this)}function wGe(){fg.call(this)}function xGe(){fg.call(this)}function b3(e){VL(e.c,e.b)}function yHt(e,t){TL(e.a,t)}function wHt(e,t){AQ(e.a,t)}function WS(e,t){Tr(e.e,t)}function xHt(e,t){ro(e.b,t)}function SHt(e,t){aye(e.c,t)}function ZN(e,t){Re(e.a,t)}function EHt(e,t){e.kd().Nb(t)}function SGe(e,t){e.length=t}function EGe(){this.b=new yQe}function Ro(){this.a=new Vn}function kGe(){this.a=new Vn}function JN(){this.a=new Fe}function VG(){this.a=new Fe}function the(){this.a=new Fe}function Ol(){this.a=new Ko}function dg(){this.a=new eot}function nhe(){this.a=new IN}function rhe(){this.a=new LKe}function ihe(){this.a=new Vnt}function ohe(){this.a=new sJe}function CGe(){this.a=new hrt}function IGe(){this.a=new Fe}function TGe(){this.a=new Fe}function AGe(){this.a=new Fe}function PGe(){this.a=new Fe}function OGe(){this.d=new Fe}function _Ge(){this.a=new Ro}function MGe(){this.b=new Vn}function DGe(){this.a=new Vn}function NGe(){this.a=new aUe}function jGe(){this.b=new Fe}function she(){this.e=new Fe}function ahe(e){this.a=csn(e)}function RGe(){this.d=new Fe}function che(){che=H,new Vn}function uhe(){ehe.call(this)}function lhe(){JN.call(this)}function $Ge(){oR.call(this)}function oC(){dGe.call(this)}function m3(){dGe.call(this)}function UG(){oC.call(this)}function fhe(){m3.call(this)}function LGe(){Fe.call(this)}function FGe(){Snt.call(this)}function BGe(){Snt.call(this)}function zGe(){mhe.call(this)}function VGe(){mhe.call(this)}function UGe(){mhe.call(this)}function HGe(){vhe.call(this)}function Ic(){ci.call(this)}function dhe(){kBe.call(this)}function hhe(){kBe.call(this)}function qGe(){oXe.call(this)}function WGe(){oXe.call(this)}function GGe(){Vn.call(this)}function XGe(){Vn.call(this)}function KGe(){Vn.call(this)}function YGe(){Ro.call(this)}function HG(){oat.call(this)}function QGe(){QN.call(this)}function qG(){Y1e.call(this)}function WG(){Y1e.call(this)}function phe(){Vn.call(this)}function GG(){Vn.call(this)}function ZGe(){Vn.call(this)}function ghe(){BN.call(this)}function JGe(){BN.call(this)}function eXe(){ghe.call(this)}function tXe(){dde.call(this)}function bhe(e){kKe.call(this,e)}function kHt(e){bhe.call(this,e)}function CHt(e){kKe.call(this,e)}function sC(){sC=H,rne=new E}function XG(){XG=H,ine=new vXe}function KG(){KG=H,one=new yXe}function mhe(){this.a=new Ro}function nXe(){this.a=new Fe}function rXe(){this.j=new Fe}function vhe(){this.a=new Vn}function GS(){this.a=new ci}function yhe(){this.a=new TFe}function iXe(){this.a=new aKe}function oXe(){this.a=new MBe}function ej(){ej=H,cne=new JQe}function IHt(e){bhe.call(this,e)}function THt(e){bhe.call(this,e)}function sXe(e){EY.call(this,e)}function aXe(e){EY.call(this,e)}function cXe(e){_Je.call(this,e)}function Fb(e){Nv.call(this,e)}function uXe(e){uX.call(this,e)}function whe(e){uX.call(this,e)}function YG(e){Lfn.call(this,e)}function qs(e){att.call(this,e)}function lXe(e){qs.call(this,e)}function v3(){yT.call(this,{})}function fXe(){fXe=H,Tyt=new ne}function dXe(){dXe=H,w4e=new x}function xhe(){xhe=H,x4e=new O}function tj(){tj=H,TI=new F}function AHt(e,t){e.e=t,Jht(e,t)}function PHt(e,t){e.a=t,Cdn(e)}function QG(e,t,s){e.a[t.g]=s}function OHt(e,t,s){Bun(s,e,t)}function _Ht(e,t){iXt(t.i,e.n)}function hXe(e,t){Gin(e).td(t)}function MHt(e,t){return e*e/t}function nj(e){s5(),this.a=e}function ZG(e){Rbe(),this.a=e}function pXe(e){DJe(),this.a=e}function aC(e){CK(),this.f=e}function JG(e){CK(),this.f=e}function cC(e){e.b=null,e.c=0}function rj(e){qs.call(this,e)}function fs(e){qs.call(this,e)}function gXe(e){qs.call(this,e)}function eX(e){att.call(this,e)}function _t(e){return Ut(e),e}function DHt(e){return new VN(e)}function NHt(e){return new Gv(e)}function Ae(e){return Ut(e),e}function AT(e){return Ut(e),e}function bXe(e,t){return e.g-t.g}function jHt(e,t){e.a.ec().Kc(t)}function XS(e){qs.call(this,e)}function Gt(e){qs.call(this,e)}function Ws(e){qs.call(this,e)}function mXe(e){qs.call(this,e)}function y3(e){qs.call(this,e)}function G1(e){qs.call(this,e)}function gu(e){Ut(e),this.a=e}function uC(e){j0e(e,e.length)}function lC(e){return e.b==e.c}function Mv(e){return!!e&&e.b}function RHt(e){return!!e&&e.k}function $Ht(e){return!!e&&e.j}function She(e){return Ut(e),e}function LHt(e){return Ut(e),e}function Ehe(e){return Dg(e),e}function Lw(e){qs.call(this,e)}function PT(e){qs.call(this,e)}function Fd(e){qs.call(this,e)}function tX(e){qs.call(this,e)}function $n(e){qs.call(this,e)}function nX(e){upe.call(this,e,0)}function rX(){gge.call(this,12,3)}function vXe(){NG.call(this,null)}function yXe(){NG.call(this,null)}function wXe(){throw ee(new jn)}function xXe(){throw ee(new jn)}function FHt(){throw ee(new jn)}function BHt(){throw ee(new jn)}function zHt(){throw ee(new jn)}function VHt(){throw ee(new jn)}function iX(){this.a=Ln(Un(Fo))}function w3(e){qd(),this.a=Un(e)}function SXe(e){Sbe(e),IT(e.a,e.a)}function EXe(e,t){e.Td(t),t.Sd(e)}function te(e,t){return Bnt(e,t)}function UHt(e,t){return e.a-t.a}function HHt(e,t){return e.a-t.a}function qHt(e,t){return e.a-t.a}function WHt(e,t){return t in e.a}function khe(e){fs.call(this,e)}function Che(e){fs.call(this,e)}function Bd(e){Gt.call(this,e)}function X1(){wT.call(this,"")}function fC(){wT.call(this,"")}function Wp(){wT.call(this,"")}function Dv(){wT.call(this,"")}function KS(e){VS.call(this,e)}function kXe(e){KS.call(this,e)}function Ihe(e){Yj.call(this,e)}function GHt(e,t,s){e.b.mf(t,s)}function XHt(e,t,s){t.td(e.a[s])}function KHt(e,t,s){t.we(e.a[s])}function ij(e,t){return nbe(e,t)}function CXe(e){return e.a?e.b:0}function YHt(e){return e.a?e.b:0}function QHt(e,t){return e.b=t,e}function IXe(e,t){return e.c=t,e}function TXe(e,t){return e.f=t,e}function ZHt(e,t){return e.g=t,e}function The(e,t){return e.a=t,e}function Ahe(e,t){return e.f=t,e}function JHt(e,t){return e.k=t,e}function Phe(e,t){return e.a=t,e}function eqt(e,t){return e.e=t,e}function tqt(e,t){e.b=!0,e.d=t}function nqt(e,t){e.b=new xs(t)}function Ohe(e,t){return e.e=t,e}function rqt(e,t){return e.f=t,e}function iqt(e,t){return e?0:t-1}function oqt(e,t){m0(),js(t,e)}function sqt(e,t){return e?t-1:0}function AXe(e,t){return e?0:t-1}function PXe(e){Xtt.call(this,e)}function _he(e){Xtt.call(this,e)}function OXe(e){wsn.call(this,e)}function _Xe(){F1e.call(this,"")}function MXe(){MXe=H,$yt=mln()}function oj(){oj=H,y5()}function DXe(){throw ee(new jn)}function NXe(){throw ee(new jn)}function jXe(){throw ee(new jn)}function RXe(){throw ee(new jn)}function $Xe(){throw ee(new jn)}function LXe(){this.b=0,this.a=0}function Bb(e,t){return e.b=t,e}function sj(e,t){return e.a=t,e}function dC(e,t){return e.a=t,e}function zb(e,t){return e.c=t,e}function YS(e,t){return e.c=t,e}function Vb(e,t){return e.d=t,e}function Ub(e,t){return e.e=t,e}function Mhe(e,t){return e.f=t,e}function QS(e,t){return e.b=t,e}function Ft(e,t){return e.b=t,e}function bt(e,t){return e.c=t,e}function mt(e,t){return e.d=t,e}function vt(e,t){return e.e=t,e}function aqt(e,t){return e.f=t,e}function yt(e,t){return e.g=t,e}function wt(e,t){return e.a=t,e}function xt(e,t){return e.i=t,e}function St(e,t){return e.j=t,e}function cqt(e,t){return e.j=t,e}function FXe(e,t){return e.k=t,e}function uqt(e,t){return e.b-t.b}function lqt(e,t){return e.g-t.g}function fqt(e,t){return e.s-t.s}function dqt(e,t){return t.Vf(e)}function hqt(e,t,s){aQt(e.a,t,s)}function aj(e){fK.call(this,e)}function Gp(e){fm.call(this,e)}function BXe(e){ZK.call(this,e)}function zXe(e){ZK.call(this,e)}function Yo(){this.a=0,this.b=0}function VXe(){throw ee(new jn)}function UXe(){throw ee(new jn)}function HXe(){throw ee(new jn)}function qXe(){throw ee(new jn)}function WXe(){throw ee(new jn)}function GXe(){throw ee(new jn)}function XXe(){throw ee(new jn)}function KXe(){throw ee(new jn)}function YXe(){throw ee(new jn)}function QXe(){throw ee(new jn)}function pqt(){throw ee(new aa)}function gqt(){throw ee(new aa)}function Hb(){Hb=H,eEt=vun()}function ZXe(){ZXe=H,Zi=Bln()}function ZS(){ZS=H,uIe=yun()}function JXe(){JXe=H,LEt=wun()}function Dhe(){Dhe=H,da=Sdn()}function Nhe(){Nhe=H,z0=j5()}function eKe(e,t){e.b=0,iy(e,t)}function bqt(e,t){e.c=t,e.b=!0}function jhe(e,t){for(;e.sd(t););}function tKe(e,t){return Jct(e.b,t)}function nKe(e,t){return ga(e,t)>0}function oX(e,t){return ga(e,t)<0}function rKe(e){return e.l|e.m<<22}function _f(e){return e.e&&e.e()}function mqt(e){return e?e.i:null}function sX(e){return e?e.d:null}function vqt(e){return e?e.g:null}function cj(e){return e.b!=e.d.c}function Xp(e){return a1(e),e.o}function hC(e){return i0(e),e.a}function Fw(e,t){return e.a+=t,e}function aX(e,t){return e.a+=t,e}function K1(e,t){return e.a+=t,e}function qb(e,t){return e.a+=t,e}function Rhe(e,t,s){e.splice(t,s)}function Bw(e,t){for(;e.ye(t););}function $he(e,t){return e.d[t.p]}function uj(e){this.a=new x3(e)}function Kp(e){this.a=new _K(e)}function iKe(){this.a=new RP(Ike)}function oKe(){this.b=new RP(hke)}function sKe(){this.b=new RP(_ie)}function aKe(){this.b=new RP(_ie)}function OT(e){this.a=new cKe(e)}function lj(e){this.a=0,this.b=e}function Lhe(e){I0t(),mwn(this,e)}function cKe(e){Ern(this,e,yln())}function _T(e){return!e||Att(e)}function uKe(e,t){return i0n(e,t)}function yqt(e,t){RZ(Ce(e.a),t)}function wqt(e,t){RZ(Ce(e.a),t)}function MT(e,t){Qw.call(this,e,t)}function JS(e,t){MT.call(this,e,t)}function Fhe(e,t){this.b=e,this.c=t}function zw(e,t){this.e=e,this.d=t}function lKe(e,t){this.a=e,this.b=t}function fKe(e,t){this.a=e,this.b=t}function dKe(e,t){this.a=e,this.b=t}function hKe(e,t){this.a=e,this.b=t}function pKe(e,t){this.a=e,this.b=t}function gKe(e,t){this.a=e,this.b=t}function bKe(e,t){this.a=e,this.b=t}function mKe(e,t){this.b=e,this.a=t}function vKe(e,t){this.b=e,this.a=t}function yKe(e,t){this.b=e,this.a=t}function wKe(e,t){this.b=e,this.a=t}function xKe(e,t){this.b=e,this.a=t}function SKe(e,t){this.a=e,this.b=t}function Vw(e,t){this.g=e,this.i=t}function Jn(e,t){this.f=e,this.g=t}function cX(e,t){this.a=e,this.b=t}function EKe(e,t){this.a=e,this.f=t}function kKe(e){B1e(e.dc()),this.c=e}function CKe(e){e.c?y1t(e):w1t(e)}function IKe(){nne==null&&(nne=[])}function fj(e){this.b=h(Un(e),84)}function TKe(e){this.a=h(Un(e),84)}function AKe(e){this.a=h(Un(e),14)}function Nv(e){this.a=h(Un(e),14)}function uX(e){this.b=h(Un(e),49)}function PKe(e,t){this.b=e,this.c=t}function xqt(e,t){this.a=e,this.b=t}function OKe(e,t){this.a=e,this.b=t}function lX(e,t){this.a=e,this.b=t}function _Ke(e,t){return sd(e.b,t)}function Wb(e,t){return ga(e,t)==0}function Sqt(e,t){return ga(e,t)>=0}function pC(e,t){return ga(e,t)!=0}function MKe(e,t){return e>t&&t0?e:t}function vWt(e,t){return e[e.length]=t}function yWt(e,t){return e[e.length]=t}function wWt(e,t){wd||(e.b=t)}function D1e(e){return e.b&&cJ(e),e.a}function N1e(e){return e.b&&cJ(e),e.c}function xWt(e){pc(Spt(e),new Bde(e))}function BQe(e){e.a=ge(dn,rt,1,8,5,1)}function HX(e){e.c=ge(dn,rt,1,0,5,1)}function bg(e){yR.call(this,e,e,e,e)}function xs(e){this.a=e.a,this.b=e.b}function j1e(e){return gYt(e.b.Ic(),e.a)}function SWt(e,t){return M$(UK(e.d),t)}function EWt(e,t){return M$(UK(e.g),t)}function kWt(e,t){return M$(UK(e.j),t)}function CWt(e,t){return r2(t,cd(e))}function IWt(e,t){return r2(t,cd(e))}function TWt(e){return e==null?0:ri(e)}function $o(e,t){Vi.call(this,e.b,t)}function AWt(e,t){On(ya(e.a),trt(t))}function PWt(e,t){On(nu(e.a),nrt(t))}function OWt(e,t,s){rd(s,s.i+e,s.j+t)}function zQe(e,t,s){ui(e.c[t.g],t.g,s)}function _Wt(e,t,s){h(e.c,67).Sh(t,s)}function qX(e,t,s){return ui(e,t,s),s}function R1e(){R1e=H,che(),S4e=new Vn}function Nn(){Nn=H,new VQe,new Fe}function VQe(){new Vn,new Vn,new Vn}function UQe(){UQe=H,uie=new I8(ioe)}function sl(){sl=H,qh=(QKe(),sEt)}function id(){id=H,m.Math.log(2)}function Wj(e){e.j=ge(j4e,Oe,308,0,0,1)}function HQe(e){this.a=e,t0e.call(this,e)}function WX(e){this.a=e,fj.call(this,e)}function GX(e){this.a=e,fj.call(this,e)}function RC(e){Er(),$b.call(this,e)}function co(e,t){IK(e.c,e.c.length,t)}function Ns(e){return e.at?1:0}function Qa(e,t,s){return{l:e,m:t,h:s}}function Kw(e,t,s){return Yme(t,s,e.c)}function MWt(e,t,s){return Fr(e.g,s,t)}function DWt(e,t,s){return Fr(e.k,s,t)}function NWt(e,t){return $u(),t.n.b+=e}function jWt(e,t,s){return Pvn(e,t,s),s}function WQe(e){fY(e,null),dY(e,null)}function RWt(e){Po(e,null),uo(e,null)}function $Wt(e,t){e.a!=null&&_Ye(t,e.a)}function LWt(e,t){return Fr(e.a,t.a,t)}function Xs(e){return new ot(e.a,e.b)}function L1e(e){return new ot(e.c,e.d)}function FWt(e){return new ot(e.c,e.d)}function GQe(e,t){return jvn(e.a,t,null)}function XQe(e,t){Cn(e),e.Ec(h(t,14))}function BWt(e,t,s){e.c.Tc(t,h(s,133))}function zWt(e,t,s){e.c.ei(t,h(s,133))}function $C(e,t){return Ymn(e.c,e.b,t)}function ue(e,t){return e!=null&&KQ(e,t)}function Gj(e){this.b=e,this.a=new Fe}function KQe(e){this.b=new Xk,this.a=e}function F1e(e){_pe.call(this),this.a=e}function YQe(){xj.call(this,"Range",2)}function QQe(){tA.call(this,null,null)}function ZQe(){eR.call(this,null,null)}function JQe(){Jn.call(this,"INSTANCE",0)}function eZe(){Ave(),this.a=new RP(KSe)}function B1e(e){if(!e)throw ee(new TT)}function z1e(e){if(!e)throw ee(new Cc)}function V1e(e){if(!e)throw ee(new aa)}function tZe(e){e.a=new Tn,e.c=new Tn}function nZe(e){return Rl(e,0,e.length)}function XX(e,t){return Pin(e.Ic(),t)!=-1}function VWt(e,t){return new mZe(e.Ic(),t)}function Xj(e){return e.Ob()?e.Pb():null}function U1e(e,t){return e.a.zc(t)!=null}function KX(e,t,s){return e.a[t.g][s.g]}function UWt(e,t,s,a){ui(e.a[t.g],s.g,a)}function HWt(e,t,s){h(e.Kb(s),163).Nb(t)}function rZe(e,t){e.c&&(f0e(t),Ant(t))}function qWt(e,t){e.q.setHours(t),H8(e,t)}function iZe(e,t,s){e.a=t^1502,e.b=s^ree}function WWt(e,t,s){return s?t!=0:t!=e-1}function GWt(e,t){return e.e[t.c.p][t.p]}function XWt(e,t){return e.a[t.c.p][t.p]}function od(e,t){return e.a[t.c.p][t.p]}function KWt(e,t){return e.j[t.p]=F1n(t)}function YWt(e,t){return Vge(e.f,t.og())}function QWt(e,t){return Vge(e.b,t.og())}function ZWt(e,t){return e.a0?t*t/e:t*t*100}function SGt(e,t){return e>0?t/(e*e):t*100}function EGt(e,t,s){return e.a*=t,e.b*=s,e}function Fv(e,t,s){return e.a+=t,e.b+=s,e}function iA(e,t,s){return e.a-=t,e.b-=s,e}function dpe(e,t){return e.a=t.a,e.b=t.b,e}function rR(e){return e.a=-e.a,e.b=-e.b,e}function NZe(e){e.d=new OZe(e),e.e=new Vn}function jZe(){this.a=new Kv,this.b=new Kv}function RZe(e){this.c=e,Oc(e,0),_c(e,0)}function $Ze(e){ci.call(this),g8(this,e)}function LZe(){Jn.call(this,"GROW_TREE",0)}function mu(e,t,s){tu.call(this,e,t,s,2)}function FZe(e,t){yC(),tA.call(this,e,t)}function hpe(e,t){Y1(),eR.call(this,e,t)}function BZe(e,t){Y1(),eR.call(this,e,t)}function zZe(e,t){Y1(),hpe.call(this,e,t)}function nK(e,t){sl(),vR.call(this,e,t)}function VZe(e,t){sl(),nK.call(this,e,t)}function ppe(e,t){sl(),nK.call(this,e,t)}function UZe(e,t){sl(),ppe.call(this,e,t)}function gpe(e,t){sl(),vR.call(this,e,t)}function HZe(e,t){sl(),vR.call(this,e,t)}function qZe(e,t){sl(),gpe.call(this,e,t)}function kGt(e,t){return e.c.Dc(h(t,133))}function bpe(e,t,s){return aF(FA(e,t),s)}function CGt(e,t,s){return t.Lk(e.e,e.c,s)}function IGt(e,t,s){return t.Mk(e.e,e.c,s)}function rK(e,t){return h0(e.e,h(t,48))}function TGt(e){return e==null?null:Ayn(e)}function AGt(e){return e==null?null:Kfn(e)}function PGt(e){return e==null?null:Fs(e)}function OGt(e){return e==null?null:Fs(e)}function zC(){zC=H,__=new qGe,new WGe}function VC(){VC=H,i9=new Xr("root")}function c5(e,t,s){var a;a=e.Xc(t),a.Rb(s)}function _Gt(e,t,s){m$(),e.Ye(t)&&s.td(e)}function MGt(e,t,s){E8(ya(e.a),t,trt(s))}function DGt(e,t,s){E8(nu(e.a),t,nrt(s))}function mpe(e,t,s){d$.call(this,e,t,s,null)}function WZe(e,t,s){d$.call(this,e,t,s,null)}function oA(e,t){this.c=e,zw.call(this,e,t)}function iR(e,t){this.a=e,oA.call(this,e,t)}function NGt(e,t){this.d=e,uHe(this),this.b=t}function vpe(e,t){jY.call(this,e),this.a=t}function ype(e,t){jY.call(this,e),this.a=t}function wpe(){oat.call(this),this.Bb|=Bo}function a1(e){e.o==null&&m1n(e)}function GZe(e,t){wd||Re(e.a,t)}function XZe(e){return e>8?0:e+1}function It(e){return GC(e==null||Rv(e)),e}function Ke(e){return GC(e==null||$v(e)),e}function Ln(e){return GC(e==null||to(e)),e}function Hd(e,t){return qK(t,y2e),e.f=t,e}function jGt(e,t){return $T(),B5(t.d.i,e)}function RGt(e,t){return W3(),new z1t(t,e)}function $Gt(e,t){return h(lm(e.b,t),149)}function LGt(e,t){return h(lm(e.c,t),227)}function iK(e){return h(st(e.a,e.b),286)}function KZe(e){return new ot(e.c,e.d+e.a)}function YZe(e){return $u(),MQe(h(e,196))}function FGt(e,t,s){return e.ue(t,s)<=0?s:t}function BGt(e,t,s){return e.ue(t,s)<=0?t:s}function QZe(e,t,s){++e.j,e.Ci(t,e.ji(t,s))}function sA(e,t,s){++e.j,e.Fi(),_Y(e,t,s)}function zGt(e,t){t.a?s0n(e,t):QX(e.a,t.b)}function Vi(e,t){Xr.call(this,e),this.a=t}function VGt(e){Gme.call(this,0,0),this.f=e}function xpe(e,t,s){return s=Hu(e,t,3,s),s}function Spe(e,t,s){return s=Hu(e,t,6,s),s}function Epe(e,t,s){return s=Hu(e,t,9,s),s}function ZZe(e,t,s){var a;a=e.Xc(t),a.Rb(s)}function JZe(e,t,s){return Nwe(e.c,e.b,t,s)}function kpe(e,t){return(t&Ir)%e.d.length}function eJe(e,t){this.c=e,fm.call(this,t)}function tJe(e,t){this.a=e,cGe.call(this,t)}function aA(e,t){this.a=e,cGe.call(this,t)}function Cpe(e){this.q=new m.Date(cm(e))}function nJe(e){this.a=(Rf(e,Iy),new Ba(e))}function rJe(e){this.a=(Rf(e,Iy),new Ba(e))}function Ipe(e){return l0(wQt(As(e)?jl(e):e))}function oK(e){return String.fromCharCode(e)}function UGt(e){return e==null?null:e.message}function HGt(e,t,s){return e.apply(t,s)}function Tpe(e,t,s){return M3(e,h(t,22),s)}function iJe(e,t,s){return e.a+=Rl(t,0,s),e}function Ape(e,t){var s;return s=e.e,e.e=t,s}function qGt(e,t){var s;s=e[nee],s.call(e,t)}function WGt(e,t){var s;s=e[nee],s.call(e,t)}function Bv(e,t){e.a.Tc(e.b,t),++e.b,e.c=-1}function GGt(e,t){return Zt(),e==t?0:e?1:-1}function XGt(e,t){return sX($ut(e.a,t,!0))}function KGt(e,t){return sX(Lut(e.a,t,!0))}function lf(e,t){return ij(new Array(t),e)}function YGt(e,t,s){hg(),sHe(e,t.Ce(e.a,s))}function zv(){zv=H,CSe=Tt((xu(),hb))}function UC(e){uin.call(this,e,(y$(),mne))}function Ppe(e,t){Xde.call(this,e),this.a=t}function sK(e,t){Xde.call(this,e),this.a=t}function oJe(){oR.call(this),this.a=new Yo}function Ope(){this.d=new Yo,this.e=new Yo}function _pe(){this.n=new Yo,this.o=new Yo}function sJe(){this.b=new Yo,this.c=new Fe}function aJe(){this.a=new Fe,this.b=new Fe}function cJe(){this.a=new IN,this.b=new EGe}function uJe(){this.a=new TGe,this.c=new mG}function oR(){this.n=new m3,this.i=new T3}function lJe(){this.a=new sUe,this.b=new W$e}function fJe(){this.b=new Ro,this.a=new Ro}function dJe(){this.a=new Fe,this.d=new Fe}function hJe(){this.b=new oKe,this.a=new XLe}function pJe(){this.b=new Vn,this.a=new Vn}function gJe(){gJe=H,nSe=new x,DB=new x}function cA(e){return!e.a&&(e.a=new X),e.a}function Rr(e,t){return e.a+=t.a,e.b+=t.b,e}function no(e,t){return e.a-=t.a,e.b-=t.b,e}function Mpe(e,t,s){return s=Hu(e,t,11,s),s}function QGt(e,t,s){s!=null&&R$(t,sZ(e,s))}function ZGt(e,t,s){s!=null&&$$(t,sZ(e,s))}function Dpe(e,t,s,a){yR.call(this,e,t,s,a)}function O3(e,t,s,a){$e.call(this,e,t,s,a)}function Vv(e,t){fs.call(this,vI+e+Qg+t)}function JGt(e,t){var s;return s=t.Ch(e.a),s}function bJe(e,t){return Fr(e.a,t,"")==null}function eXt(e,t){return e.n.a=(Ut(t),t+10)}function tXt(e,t){return e.n.a=(Ut(t),t+10)}function nXt(e,t){return t==e||o6(WL(t),e)}function rXt(e,t){return $T(),!B5(t.d.i,e)}function mJe(e){Gc(e.e),e.d.b=e.d,e.d.a=e.d}function uA(e){e.b?uA(e.b):e.f.c.xc(e.e,e.d)}function iXt(e,t){gg(e.f)?u1n(e,t):Yln(e,t)}function Npe(e,t,s,a){$e.call(this,e,t,s,a)}function vJe(e,t,s,a){Npe.call(this,e,t,s,a)}function yJe(e,t,s,a){OR.call(this,e,t,s,a)}function aK(e,t,s,a){OR.call(this,e,t,s,a)}function jpe(e,t,s,a){OR.call(this,e,t,s,a)}function wJe(e,t,s,a){aK.call(this,e,t,s,a)}function Rpe(e,t,s,a){aK.call(this,e,t,s,a)}function Ht(e,t,s,a){jpe.call(this,e,t,s,a)}function xJe(e,t,s,a){Rpe.call(this,e,t,s,a)}function SJe(e,t,s,a){M0e.call(this,e,t,s,a)}function EJe(e,t,s){this.a=e,upe.call(this,t,s)}function kJe(e,t,s){this.c=t,this.b=s,this.a=e}function oXt(e,t,s){return e.d=h(t.Kb(s),163)}function $pe(e,t,s){return e.lastIndexOf(t,s)}function Lpe(e,t){return e.vj().Ih().Dh(e,t)}function Fpe(e,t){return e.vj().Ih().Fh(e,t)}function CJe(e,t){return Ut(e),Pe(e)===Pe(t)}function kt(e,t){return Ut(e),Pe(e)===Pe(t)}function cK(e,t){return sX($ut(e.a,t,!1))}function uK(e,t){return sX(Lut(e.a,t,!1))}function sXt(e,t){return e.b.sd(new iYe(e,t))}function aXt(e,t){return e.b.sd(new oYe(e,t))}function IJe(e,t){return e.b.sd(new sYe(e,t))}function cXt(e,t){return _e(t,(Qe(),WO),e)}function uXt(e,t,s){return go(e[t.b],e[s.b])}function lXt(e,t){return Ya(e.a.d.p,t.a.d.p)}function fXt(e,t){return Ya(t.a.d.p,e.a.d.p)}function TJe(e){return e.c?Ps(e.c.a,e,0):-1}function dXt(e,t){return go(e.c-e.s,t.c-t.s)}function hXt(e){return e<100?null:new Gp(e)}function HC(e){return e==db||e==Hh||e==ja}function AJe(e){this.a=e,Sh(),gc(Date.now())}function PJe(e){this.c=e,LX.call(this,gF,0)}function Bpe(e,t){this.c=e,$K.call(this,e,t)}function OJe(e,t){mYt.call(this,e,e.length,t)}function zpe(e,t){if(!e)throw ee(new Gt(t))}function _Je(e){qd(),this.a=(Mt(),new KS(e))}function lA(e){u5(),this.d=e,this.a=new g3}function MJe(){MJe=H,PEt=ge(dn,rt,1,0,5,1)}function DJe(){DJe=H,fEt=ge(dn,rt,1,0,5,1)}function Vpe(){Vpe=H,OEt=ge(dn,rt,1,0,5,1)}function qd(){qd=H,new Qde((Mt(),Mt(),qo))}function lK(e,t){var s;return s=t,!!ome(e,s)}function pXt(e,t){wd||t&&(e.d=t)}function NJe(e,t){return ue(t,14)&&C1t(e.c,t)}function gXt(e,t,s){return h(e.c,67).gk(t,s)}function sR(e,t,s){return h(e.c,67).hk(t,s)}function bXt(e,t,s){return CGt(e,h(t,330),s)}function Upe(e,t,s){return IGt(e,h(t,330),s)}function mXt(e,t,s){return vft(e,h(t,330),s)}function jJe(e,t,s){return ufn(e,h(t,330),s)}function qC(e,t){return t==null?null:nL(e.b,t)}function Hpe(e){return $v(e)?(Ut(e),e):e.ke()}function aR(e){return!isNaN(e)&&!isFinite(e)}function fK(e){tZe(this),Dl(this),ks(this,e)}function vu(e){HX(this),r0e(this.c,0,e.Nc())}function RJe(e){wu(e.a),Oot(e.c,e.b),e.b=null}function dK(){dK=H,G4e=new qn,Lyt=new rr}function vXt(e){return gd(),er((uot(),Gyt),e)}function yXt(e){return y$(),er((Bot(),zyt),e)}function wXt(e){return xL(),er((Nit(),Jyt),e)}function xXt(e){return C$(),er((jit(),ewt),e)}function SXt(e){return ZL(),er((tct(),twt),e)}function EXt(e){return jf(),er((sot(),iwt),e)}function kXt(e){return Xc(),er((aot(),swt),e)}function CXt(e){return hc(),er((cot(),cwt),e)}function IXt(e){return hF(),er((mQe(),_wt),e)}function TXt(e){return mm(),er((Vot(),Dwt),e)}function AXt(e){return Z3(),er((Uot(),jwt),e)}function cR(e,t){if(!e)throw ee(new Gt(t))}function qpe(e,t){if(!e)throw ee(new gXe(t))}function PXt(e){return _8(),er((Hot(),Lwt),e)}function OXt(e){return hj(),er((Hrt(),Fwt),e)}function _Xt(e){return I$(),er((Rit(),n2t),e)}function MXt(e){return h8(),er((oot(),p2t),e)}function DXt(e){return cs(),er((Tst(),v2t),e)}function NXt(e){return U5(),er((qot(),E2t),e)}function Wpe(e){var t;return t=new OGe,t.b=e,t}function hK(e){var t;return t=new MW,t.e=e,t}function jXt(e,t,s){return hg(),e.a.Od(t,s),t}function $Je(e,t,s){this.d=e,this.b=s,this.a=t}function al(e,t,s){this.a=e,this.b=t,this.c=s}function LJe(e,t,s){this.a=e,this.b=t,this.c=s}function FJe(e,t,s){this.a=e,this.b=t,this.c=s}function Gpe(e,t,s){this.a=e,this.b=t,this.c=s}function BJe(e,t,s){this.a=e,this.b=t,this.c=s}function Xpe(e,t,s){this.a=e,this.b=t,this.c=s}function uR(e,t,s){this.b=e,this.a=t,this.c=s}function zJe(e,t,s){this.b=e,this.a=t,this.c=s}function VJe(e,t,s){this.b=e,this.c=t,this.a=s}function lR(e,t,s){this.e=t,this.b=e,this.d=s}function pK(e){yR.call(this,e.d,e.c,e.a,e.b)}function Kpe(e){yR.call(this,e.d,e.c,e.a,e.b)}function RXt(e){return tn(),er((Kst(),_2t),e)}function $Xt(e){return R5(),er(($it(),R2t),e)}function LXt(e){return vs(),er((vQe(),$2t),e)}function FXt(e){return Z$(),er((Wot(),B2t),e)}function BXt(e){return pd(),er((Got(),K2t),e)}function zXt(e){return YL(),er((qat(),rxt),e)}function VXt(e){return bm(),er((Tot(),nxt),e)}function UXt(e){return y2(),er((wst(),Q2t),e)}function HXt(e){return j$(),er((bot(),axt),e)}function qXt(e){return B3(),er((bit(),sxt),e)}function WXt(e){return P$(),er((mot(),cxt),e)}function GXt(e){return HA(),er((mit(),uxt),e)}function XXt(e){return _g(),er((vot(),fxt),e)}function KXt(e){return e4(),er((Vst(),ixt),e)}function YXt(e){return b$(),er((xit(),oxt),e)}function QXt(e){return BL(),er((Fst(),dxt),e)}function ZXt(e){return RA(),er((Sit(),hxt),e)}function JXt(e){return CP(),er((Bst(),pxt),e)}function eKt(e){return a6(),er((zst(),gxt),e)}function tKt(e){return Zo(),er((pct(),bxt),e)}function nKt(e){return L5(),er((Eot(),mxt),e)}function rKt(e){return g1(),er((Sot(),yxt),e)}function iKt(e){return s$(),er((wit(),wxt),e)}function oKt(e){return gl(),er((xst(),xxt),e)}function sKt(e){return RL(),er((qst(),P4t),e)}function aKt(e){return fy(),er((Xot(),O4t),e)}function cKt(e){return M8(),er((vst(),_4t),e)}function uKt(e){return E2(),er((Wat(),M4t),e)}function lKt(e){return Mg(),er((lot(),D4t),e)}function fKt(e){return LA(),er((yit(),N4t),e)}function dKt(e){return ss(),er((dot(),R4t),e)}function hKt(e){return G$(),er((fot(),$4t),e)}function pKt(e){return _A(),er((vit(),L4t),e)}function gKt(e){return X5(),er((hot(),F4t),e)}function bKt(e){return H$(),er((pot(),B4t),e)}function mKt(e){return Y$(),er((got(),z4t),e)}function vKt(e){return gm(),er((yot(),J4t),e)}function yKt(e){return u8(),er((kit(),rSt),e)}function wKt(e){return Wd(),er((Cit(),lSt),e)}function xKt(e){return ud(),er((Iit(),dSt),e)}function SKt(e){return Mf(),er((Eit(),TSt),e)}function EKt(e){return sm(),er((Tit(),NSt),e)}function kKt(e){return n6(),er((nst(),jSt),e)}function CKt(e){return $8(),er((Ust(),$St),e)}function IKt(e){return YR(),er((Ait(),WSt),e)}function TKt(e){return B$(),er((Oit(),ZSt),e)}function AKt(e){return n$(),er((Pit(),GSt),e)}function PKt(e){return lL(),er((wot(),e5t),e)}function OKt(e){return v$(),er((Mit(),t5t),e)}function _Kt(e){return oP(),er((Cot(),n5t),e)}function MKt(e){return PL(),er((tst(),d5t),e)}function DKt(e){return W$(),er((kot(),h5t),e)}function NKt(e){return fL(),er((Iot(),p5t),e)}function jKt(e){return h6(),er((yst(),P5t),e)}function RKt(e){return lP(),er((xot(),O5t),e)}function $Kt(e){return bj(),er((Vrt(),_5t),e)}function LKt(e){return mj(),er((zrt(),D5t),e)}function FKt(e){return MA(),er((Dit(),N5t),e)}function BKt(e){return TP(),er((Est(),j5t),e)}function zKt(e){return mC(),er((Urt(),Q5t),e)}function VKt(e){return ZA(),er((_it(),Z5t),e)}function UKt(e){return Lf(),er((Sst(),i6t),e)}function HKt(e){return dp(),er((Gat(),s6t),e)}function qKt(e){return Dh(),er((Wst(),a6t),e)}function WKt(e){return hy(),er((Gst(),h6t),e)}function GKt(e){return as(),er((Ist(),O6t),e)}function XKt(e){return hd(),er((Aot(),_6t),e)}function KKt(e){return cp(),er((Zot(),M6t),e)}function YKt(e){return LL(),er((Hst(),D6t),e)}function QKt(e){return m1(),er((Pot(),j6t),e)}function ZKt(e){return Vu(),er((Jot(),$6t),e)}function JKt(e){return vy(),er((Jat(),L6t),e)}function eYt(e){return h2(),er((kst(),F6t),e)}function tYt(e){return lo(),er((Xst(),B6t),e)}function nYt(e){return ou(),er((Cst(),z6t),e)}function rYt(e){return He(),er((mst(),V6t),e)}function iYt(e){return xu(),er((est(),G6t),e)}function oYt(e){return su(),er((ect(),X6t),e)}function sYt(e){return gL(),er((rst(),K6t),e)}function aYt(e){return l2(),er((ist(),Z6t),e)}function cYt(e,t){return Ut(e),e+(Ut(t),t)}function uYt(e){return l6(),er((Hat(),lEt),e)}function lYt(e){return!e.e&&(e.e=new Fe),e.e}function fYt(e){return!e.c&&(e.c=new BS),e.c}function ff(){ff=H,q2t=new i$e,W2t=new o$e}function fA(){fA=H,WB=new xje,GB=new Sje}function u5(){u5=H,fke=(He(),Xt),Yz=nn}function UJe(e,t,s){this.a=e,this.b=t,this.c=s}function Ype(e,t,s){this.a=e,this.b=t,this.c=s}function Qpe(e,t,s){this.a=e,this.b=t,this.c=s}function HJe(e,t,s){this.a=e,this.b=t,this.c=s}function qJe(e,t,s){this.a=e,this.b=t,this.c=s}function Z1(e,t,s){this.e=e,this.a=t,this.c=s}function gK(e,t){this.c=e,this.a=t,this.b=t-e}function WJe(e,t,s){sl(),lge.call(this,e,t,s)}function bK(e,t,s){sl(),X0e.call(this,e,t,s)}function GJe(e,t,s){sl(),bK.call(this,e,t,s)}function Zpe(e,t,s){sl(),bK.call(this,e,t,s)}function XJe(e,t,s){sl(),Zpe.call(this,e,t,s)}function Jpe(e,t,s){sl(),X0e.call(this,e,t,s)}function e0e(e,t,s){sl(),X0e.call(this,e,t,s)}function KJe(e,t,s){sl(),Jpe.call(this,e,t,s)}function YJe(e,t,s){sl(),e0e.call(this,e,t,s)}function dYt(e,t){return Sh(),On(Ce(e.a),t)}function hYt(e,t){return Sh(),On(Ce(e.a),t)}function _3(e,t){return Un(e),Un(t),new fet(e,t)}function pYt(e,t){return Un(e),Un(t),new det(e,t)}function gYt(e,t){return Un(e),Un(t),new xKe(e,t)}function mK(e,t){return Un(e),Un(t),new fKe(e,t)}function vK(e){return hn(e.b!=0),fl(e,e.a.a)}function bYt(e){return hn(e.b!=0),fl(e,e.c.b)}function t0e(e){this.d=e,uHe(this),this.b=cQt(e.d)}function QJe(e,t){this.c=e,this.b=t,this.a=!1}function ZJe(){this.a=";,;",this.b="",this.c=""}function mYt(e,t,s){Zet.call(this,t,s),this.a=e}function JJe(e,t,s){this.b=e,pQe.call(this,t,s)}function n0e(e,t,s){this.c=e,wj.call(this,t,s)}function r0e(e,t,s){wye(s,0,e,t,s.length,!1)}function Re(e,t){return e.c[e.c.length]=t,!0}function h(e,t){return GC(e==null||KQ(e,t)),e}function dA(e){var t;return t=new Fe,ube(t,e),t}function hA(e){var t;return t=new ci,rQ(t,e),t}function eet(e){var t;return t=new rhe,rQ(t,e),t}function vYt(e){var t;return t=new Ro,ube(t,e),t}function i0e(e){var t,s;t=e.b,s=e.c,e.b=s,e.c=t}function o0e(e){var t,s;s=e.d,t=e.a,e.d=t,e.a=s}function kh(e,t,s,a,l){e.b=t,e.c=s,e.d=a,e.a=l}function s0e(e,t,s,a,l){e.d=t,e.c=s,e.a=a,e.b=l}function yYt(e,t){t&&(e.b=t,e.a=(i0(t),t.a))}function tet(e,t,s,a,l){e.c=t,e.d=s,e.b=a,e.a=l}function fR(e,t){return Jnn(e),e.a*=t,e.b*=t,e}function wYt(e,t){return pj(),Ya(e.d.p,t.d.p)}function xYt(e,t){return Ya(met(e.d),met(t.d))}function SYt(e,t){return t==(He(),Xt)?e.c:e.d}function EYt(e){return new ot(e.c+e.b,e.d+e.a)}function net(e){return e!=null&&!jQ(e,E9,k9)}function ret(e){return hg(),ge(dn,rt,1,e,5,1)}function kYt(e,t){return(hut(e)<<4|hut(t))&Ti}function Uv(e,t){var s;e.n&&(s=t,Re(e.f,s))}function WC(e,t,s){var a;a=new Gv(s),Nf(e,t,a)}function iet(e,t,s){this.a=e,Ww.call(this,t,s)}function oet(e,t,s){this.a=e,Ww.call(this,t,s)}function a0e(e,t,s){i5.call(this,e,t),this.b=s}function pA(e,t,s){C1e.call(this,e,t),this.c=s}function dR(e,t,s){C1e.call(this,e,t),this.c=s}function c0e(e){Vpe(),BN.call(this),this.oh(e)}function set(){k5(),iZt.call(this,(Yp(),Ql))}function aet(){aet=H,voe=(Mt(),new $G(Gte))}function GC(e){if(!e)throw ee(new XS(null))}function u0e(e){if(e.c.e!=e.a)throw ee(new ol)}function l0e(e){if(e.e.c!=e.b)throw ee(new ol)}function cet(e){return Er(),new Ch(0,e)}function uet(e){H0t(),this.a=new rX,Xat(this,e)}function yK(e){this.b=e,this.a=Jb(this.b.a).Ed()}function fet(e,t){this.b=e,this.a=t,_G.call(this)}function det(e,t){this.a=e,this.b=t,_G.call(this)}function het(){this.b=Ae(Ke(lt((Bf(),Nne))))}function hR(){hR=H,new cve((KG(),one),(XG(),ine))}function pet(){pet=H,O4e=ge(No,Oe,20,256,0,1)}function f0e(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function lr(e,t){return wi(e,t,e.c.b,e.c),!0}function CYt(e,t){var s;return s=e.c,Abe(e,t),s}function d0e(e,t){return t<0?e.g=-1:e.g=t,e}function get(e,t){Zet.call(this,t,1040),this.a=e}function IYt(e,t){return $g(Oo($g(e.a).a,t.a))}function t0(e,t){return l0(jye(As(e)?jl(e):e,t))}function c1(e,t){return l0(Wft(As(e)?jl(e):e,t))}function Hv(e,t){return l0(idn(As(e)?jl(e):e,t))}function TYt(e,t){return jR(),QQ(e,t),new Ltt(e,t)}function Zb(e,t){return j8(e,new i5(t.a,t.b))}function AYt(e){return!Qo(e)&&e.c.i.c==e.d.i.c}function gA(e){return e==0||isNaN(e)?e:e<0?-1:1}function PYt(e,t){return e.c=t)throw ee(new uhe)}function oQt(e,t){(t.Bb&la)!=0&&!e.a.o&&(e.a.o=t)}function sQt(e,t,s){return-Ya(e.f[t.p],e.f[s.p])}function aQt(e,t,s){return ro(e,new E3(t.a,s.a))}function YC(e,t){return pan(FA(e,t))?t.Lh():null}function S0e(e,t,s){return s=Hu(e,h(t,48),7,s),s}function E0e(e,t,s){return s=Hu(e,h(t,48),3,s),s}function Jc(e,t,s){return e.a=-1,cpe(e,t.g+1,s),e}function Het(e,t,s){this.a=e,Kj.call(this,t,s,22)}function qet(e,t,s){this.a=e,Kj.call(this,t,s,14)}function Wet(e,t,s,a){sl(),krt.call(this,e,t,s,a)}function Get(e,t,s,a){sl(),krt.call(this,e,t,s,a)}function k0e(e,t,s,a){this.a=e,d$.call(this,e,t,s,a)}function vg(e){Qp(),this.a=0,this.b=e-1,this.c=1}function Xet(e){return Er(),new oY(10,e,0)}function D3(e){var t;return t=e.i,t||(e.i=e.bc())}function C0e(e){var t;return t=e.c,t||(e.c=e.Dd())}function Jb(e){return e.c?e.c:e.c=e.Id()}function OK(e){return e.d?e.d:e.d=e.Jd()}function Ket(e,t){return Un(t),e.a.Ad(t)&&!e.b.Ad(t)}function Yet(e){return e!=null&&DK(e)&&e.dm!==Z}function I0e(e){return!Array.isArray(e)&&e.dm===Z}function cQt(e){return ue(e,14)?h(e,14).Wc():e.Ic()}function T0e(e){return e.Oc(ge(dn,rt,1,e.gc(),5,1))}function uQt(e,t){return GGt((Ut(e),e),(Ut(t),t))}function A0e(e,t){return go((Ut(e),e),(Ut(t),t))}function lQt(e,t){return Qa(e.l&t.l,e.m&t.m,e.h&t.h)}function fQt(e,t){return Qa(e.l|t.l,e.m|t.m,e.h|t.h)}function dQt(e,t){return Qa(e.l^t.l,e.m^t.m,e.h^t.h)}function Qet(e,t){return ga(e,t)<0?-1:ga(e,t)>0?1:0}function P0e(e,t){this.e=e,this.d=(t&64)!=0?t|Yd:t}function Zet(e,t){this.c=0,this.d=e,this.b=t|64|Yd}function IR(e){this.b=new Ba(11),this.a=(Jw(),e)}function _K(e){this.b=null,this.a=(Jw(),e||H4e)}function bn(e){this.a=($et(),yyt),this.d=h(Un(e),49)}function O0e(e){e?gve(e,(Sh(),R4e)):Sh()}function Jet(e){return Mc(),h(e,11).e.c.length!=0}function ett(e){return Mc(),h(e,11).g.c.length!=0}function TR(e,t){return uP(e,(Ut(t),new hHe(t)))}function AR(e,t){return uP(e,(Ut(t),new pHe(t)))}function _0e(e,t){if(e==null)throw ee(new y3(t))}function hQt(e){if(!e)throw ee(new aa);return e.d}function pQt(e){return e.e?Gge(e.e):null}function ttt(e,t,s){return C2(),$5(e,t)&&$5(e,s)}function gQt(e,t){return W3(),go(t.a.o.a,e.a.o.a)}function QC(e){return ou(),!e.Fc(_1)&&!e.Fc(F0)}function PR(e){return new ot(e.c+e.b/2,e.d+e.a/2)}function ntt(e){this.a=ylt(e.a),this.b=new vu(e.b)}function rtt(e){this.b=e,A3.call(this,e),wZe(this)}function itt(e){this.b=e,nA.call(this,e),xZe(this)}function Gi(e,t,s,a,l){RY.call(this,e,t,s,a,l,-1)}function ZC(e,t,s,a,l){NA.call(this,e,t,s,a,l,-1)}function $e(e,t,s,a){Mi.call(this,e,t,s),this.b=a}function ott(e){nQe.call(this,e,!1),this.a=!1}function OR(e,t,s,a){pA.call(this,e,t,s),this.b=a}function M0e(e,t,s,a){this.b=e,Mi.call(this,t,s,a)}function Wv(e,t,s){this.a=e,O3.call(this,t,s,5,6)}function bQt(e,t,s){e.a.Mb(s)&&(e.b=!0,t.td(s))}function D0e(e){e.d||(e.d=e.b.Ic(),e.c=e.b.gc())}function wo(e,t){for(Ut(t);e.Ob();)t.td(e.Pb())}function N0e(e){var t;for(t=e;t.f;)t=t.f;return t}function mQt(e,t,s){return ui(t,0,m0e(t[0],s[0])),t}function f5(e,t){var s;return s=e.a.gc(),zge(t,s),s-t}function J1(e,t,s,a){var l;l=e.i,l.i=t,l.a=s,l.b=a}function vQt(e,t,s){t.Ze(s,Ae(Ke(Hn(e.b,s)))*e.a)}function MK(e,t){return t.fh()?h0(e.b,h(t,48)):t}function yQt(e,t){return kt(e.substr(0,t.length),t)}function sd(e,t){return to(t)?JK(e,t):!!Es(e.f,t)}function yg(e){return new bn(new K1e(e.a.length,e.a))}function wQt(e){return Qa(~e.l&cu,~e.m&cu,~e.h&E1)}function DK(e){return typeof e===GP||typeof e===CJ}function Gc(e){e.f=new AQe(e),e.g=new PQe(e),HR(e)}function JC(e){Lv(e.b!=-1),tp(e.c,e.a=e.b),e.b=-1}function stt(e,t){this.b=e,oHe.call(this,e.b),this.a=t}function Zw(e,t,s){v0(),this.e=e,this.d=t,this.a=s}function att(e){Wj(this),this.g=e,BR(this),this._d()}function ctt(e,t){Xv(),xqt.call(this,e,oL(new gu(t)))}function _R(e,t){return Er(),new K0e(e,t,0)}function NK(e,t){return Er(),new K0e(6,e,t)}function xQt(e,t,s){l5(s,e.a.c.length),Nl(e.a,s,t)}function xe(e,t,s,a){Lct(t,s,e.length),SQt(e,t,s,a)}function SQt(e,t,s,a){var l;for(l=t;l0?m.Math.log(e/t):-100}function IQt(e){return e==pi?kO:e==Oi?"-INF":""+e}function TQt(e){return e==pi?kO:e==Oi?"-INF":""+e}function RK(e){return new Rt(null,AQt(e,e.length))}function ltt(e){e.a=null,e.e=null,Gc(e.b),e.d=0,++e.c}function Un(e){if(e==null)throw ee(new iC);return e}function Gv(e){if(e==null)throw ee(new iC);this.a=e}function F0e(e,t){$b.call(this,1),this.a=e,this.b=t}function $K(e,t){this.d=e,pn.call(this,e),this.e=t}function B0e(e,t,s){this.c=e,this.a=t,Mt(),this.b=s}function em(e){this.d=(Ut(e),e),this.a=0,this.c=gF}function mA(e,t){wi(e.d,t,e.b.b,e.b),++e.a,e.c=null}function vA(e,t){return J$(e.a,t,(Zt(),tb))==null}function AQt(e,t){return Vnn(t,e.length),new get(e,t)}function PQt(e,t){return go(e.c.c+e.c.b,t.c.c+t.c.b)}function yA(e,t){XQe(e,ue(t,152)?t:h(t,1909).bl())}function tm(e,t){mi(lc(e.Mc(),new k$e),new Cqe(t))}function ftt(e,t){return e.c?ftt(e.c,t):Re(e.b,t),e}function OQt(e,t,s){var a;return a=ty(e,t),wY(e,t,s),a}function z0e(e,t){var s;return s=e.slice(0,t),nbe(s,e)}function dtt(e,t,s){var a;for(a=0;a=e.g}function HK(e,t,s){var a;return a=nQ(e,t,s),dwe(e,a)}function VQt(e,t,s){h(t.b,63),pc(t.a,new Ype(e,s,t))}function Ett(e){Ope.call(this),this.a=new Yo,this.c=e}function ktt(e){this.b=new Fe,this.a=new Fe,this.c=e}function W0e(e){this.a=new Fe,this.c=new Fe,this.e=e}function Ml(e){this.c=new Yo,this.a=new Fe,this.b=e}function Ctt(e){this.c=e,this.a=new ci,this.b=new ci}function Itt(e){che(),this.b=new Fe,this.a=e,pvn(this,e)}function qK(e,t){if(!e)throw ee(new y3(t));return e}function Ut(e){if(e==null)throw ee(new iC);return e}function UQt(e){if(e.p!=3)throw ee(new Cc);return e.e}function HQt(e){if(e.p!=4)throw ee(new Cc);return e.e}function qQt(e){if(e.p!=4)throw ee(new Cc);return e.j}function WQt(e){if(e.p!=3)throw ee(new Cc);return e.j}function GQt(e){if(e.p!=6)throw ee(new Cc);return e.f}function XQt(e){if(e.p!=6)throw ee(new Cc);return e.k}function KQt(e){return!e.a&&(e.a=new Mi(B0,e,4)),e.a}function nm(e){return!e.d&&(e.d=new Mi(ns,e,1)),e.d}function N3(e,t){var s;s=e.a.length,ty(e,s),wY(e,s,t)}function Ttt(e,t){var s;++e.j,s=e.Qi(),e.Di(e.ji(s,t))}function Att(e){return e?e.dc():!e.Ic().Ob()}function YQt(e){return sw?JK(sw,e):!1}function e8(e){return m.Math.sqrt(e.a*e.a+e.b*e.b)}function Th(e,t){return Pe(e)===Pe(t)||e!=null&&Ar(e,t)}function Ptt(e,t,s){this.a=e,Cge.call(this,8,t,null,s)}function G0e(e,t,s){this.a=e,Xde.call(this,t),this.b=s}function X0e(e,t,s){XN.call(this,t),this.a=e,this.b=s}function K0e(e,t,s){$b.call(this,e),this.a=t,this.b=s}function Ott(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function Y0e(e){this.c=e,this.b=e.a.d.a,ope(e.a.e,this)}function _tt(e){rge(e.a),e.b=ge(dn,rt,1,e.b.length,5,1)}function t8(e){e.c?e.c.He():(e.d=!0,Dpn(e))}function i0(e){e.c?i0(e.c):(Rg(e),e.d=!0)}function QQt(e){return 0>=e?new Bhe:yrn(e-1)}function ds(e){return!e.a&&!!e.c?e.c.b:e.a}function Mtt(e){var t,s;return t=e.c.i.c,s=e.d.i.c,t==s}function ZQt(e,t){return Ya(t.j.c.length,e.j.c.length)}function rm(e,t){return l5(t,e.a.c.length),st(e.a,t)}function JQt(e,t){e.c<0||e.b.b=0?e.wh(s):xye(e,t)}function tZt(e,t){On((!e.a&&(e.a=new aA(e,e)),e.a),t)}function Xv(){Xv=H,qd(),sne=new iY((Mt(),Mt(),qo))}function WK(){WK=H,qd(),y4e=new Ghe((Mt(),Mt(),OB))}function nZt(e,t,s){return X3(),s.kg(e,h(t.ad(),146))}function rZt(e,t){AK(h(t.b,63),e),pc(t.a,new zde(e))}function iZt(e){this.a=(Ut(Kn),Kn),this.b=e,new phe}function Dtt(e,t){this.b=e,$K.call(this,e,t),wZe(this)}function Ntt(e,t){this.b=e,Bpe.call(this,e,t),xZe(this)}function jtt(){eye.call(this,Vl,(ZS(),uIe)),fmn(this)}function Rtt(){eye.call(this,Jg,(JXe(),LEt)),nvn(this)}function $tt(){Jn.call(this,"DELAUNAY_TRIANGULATION",0)}function DR(e,t,s,a){Vw.call(this,e,s),this.a=t,this.f=a}function Q0e(e,t,s,a){Vw.call(this,e,t),this.d=s,this.a=a}function Ltt(e,t){tGt.call(this,wrn(Un(e),Un(t))),this.a=t}function im(e){return e.c==-2&&eHt(e,pfn(e.g,e.b)),e.c}function Z0e(e){return!e.b&&(e.b=new KN(new GG)),e.b}function Ftt(e,t){return hR(),new cve(new EZe(e),new SZe(t))}function Fr(e,t,s){return to(t)?hs(e,t,s):Ja(e.f,t,s)}function oZt(e,t,s,a){e.a=Ru(e.a,0,t)+(""+a)+ZT(e.a,s)}function wu(e){Lv(e.c!=-1),e.d.Yc(e.c),e.b=e.c,e.c=-1}function Btt(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function n8(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function g5(e){return!e.a&&(e.a=new kXe(e.c.tc())),e.a}function ztt(e){return!e.b&&(e.b=new KS(e.c.ec())),e.b}function Vtt(e){return!e.d&&(e.d=new VS(e.c.Ac())),e.d}function b5(e,t){var s;return s=zK("",e),s.n=t,s.i=1,s}function Ah(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function Ca(e,t){return Pe(e)===Pe(t)||e!=null&&Ar(e,t)}function sZt(e,t){return Zt(),h(t.b,20).aa&&++a,a}function QK(e,t,s){var a,l;return a=Xwe(e),l=t.Fh(s,a),l}function m5(e){return e.e==N6&&QUt(e,wan(e.g,e.b)),e.e}function wA(e){return e.f==N6&&nHt(e,cun(e.g,e.b)),e.f}function Ytt(e){return!e.b&&(e.b=new $e(qi,e,12,3)),e.b}function v5(e){if(iu(e.d),e.d.d!=e.c)throw ee(new ol)}function Qtt(e){return GC(e==null||DK(e)&&e.dm!==Z),e}function FR(e,t){if(e==null)throw ee(new y3(t));return e}function Ztt(e,t){this.a=e,NGt.call(this,e,h(e.d,14).Xc(t))}function Jtt(e,t,s,a){this.a=e,this.c=t,this.d=s,this.b=a}function ent(e,t,s,a){this.a=e,this.c=t,this.d=s,this.b=a}function tnt(e,t,s,a){this.a=e,this.b=t,this.c=s,this.d=a}function nnt(e,t,s,a){this.a=e,this.b=t,this.c=s,this.d=a}function wg(e,t,s,a){this.e=e,this.a=t,this.c=s,this.d=a}function rnt(e,t,s,a){sl(),Git.call(this,t,s,a),this.a=e}function int(e,t,s,a){sl(),Git.call(this,t,s,a),this.a=e}function ont(e,t,s,a){this.b=e,this.c=a,LX.call(this,t,s)}function ZK(e){this.f=e,this.c=this.f.e,e.f>0&&aft(this)}function Dl(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function ige(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function BR(e){return e.n&&(e.e!==lgt&&e._d(),e.j=null),e}function snt(e){return hn(e.b=0&&kt(e.substr(s,t.length),t)}function knt(e,t){return ue(t,146)&&kt(e.b,h(t,146).og())}function XZt(e,t){return e.a?t.Rg().Ic():h(t.Rg(),67).Uh()}function Es(e,t){return zct(e,t,_Jt(e,t==null?0:e.b.se(t)))}function KZt(){return I$(),re(te(jSe,1),je,418,0,[Mne,zB])}function YZt(){return xL(),re(te(oSe,1),je,422,0,[wne,iSe])}function QZt(){return C$(),re(te(aSe,1),je,421,0,[sSe,xne])}function ZZt(){return R5(),re(te(j2t,1),je,504,0,[$O,Hne])}function JZt(){return s$(),re(te(h6e,1),je,414,0,[kre,d6e])}function eJt(){return HA(),re(te(Q5e,1),je,413,0,[gz,Y5e])}function tJt(){return B3(),re(te(q5e,1),je,333,0,[E4,FO])}function nJt(){return b$(),re(te(H5e,1),je,417,0,[U5e,ure])}function rJt(){return LA(),re(te(ZEe,1),je,415,0,[nie,rie])}function iJt(){return _A(),re(te(nke,1),je,374,0,[oie,ZO])}function oJt(){return RA(),re(te(e6e,1),je,473,0,[J5e,mz])}function sJt(){return Mf(),re(te(ISt,1),je,513,0,[Qy,D0])}function aJt(){return u8(),re(te(nSt,1),je,516,0,[ZI,QI])}function cJt(){return Wd(),re(te(uSt,1),je,509,0,[Ym,wp])}function uJt(){return ud(),re(te(fSt,1),je,508,0,[ub,Ed])}function lJt(){return sm(),re(te(DSt,1),je,448,0,[N0,ox])}function fJt(){return YR(),re(te(Eke,1),je,474,0,[yie,Ske])}function dJt(){return n$(),re(te(Cke,1),je,419,0,[wie,kke])}function hJt(){return B$(),re(te(Ike,1),je,487,0,[sV,fE])}function pJt(){return v$(),re(te(Ake,1),je,420,0,[Tke,kie])}function gJt(){return MA(),re(te(sCe,1),je,424,0,[Nie,hV])}function bJt(){return ZA(),re(te(ACe,1),je,423,0,[gV,TCe])}function mJt(e,t){var s;s=h(Ot(t,(VC(),i9)),34),Lpt(e,s)}function Cnt(e,t){VUt(this,new ot(e.a,e.b)),UUt(this,hA(t))}function sm(){sm=H,N0=new g1e(u4,0),ox=new g1e(l4,1)}function Wd(){Wd=H,Ym=new d1e(l4,0),wp=new d1e(u4,1)}function r8(e,t,s,a){ui(e.c[t.g],s.g,a),ui(e.c[s.g],t.g,a)}function nY(e,t,s,a){ui(e.c[t.g],t.g,s),ui(e.b[t.g],t.g,a)}function o0(e,t,s,a,l,f,v){return new SY(e.e,t,s,a,l,f,v)}function qR(e,t,s,a){return s>=0?e.eh(t,s,a):e.Ng(null,s,a)}function rY(e){return e.b.b==0?e.a._e():vK(e.b)}function vJt(e){if(e.p!=0)throw ee(new Cc);return pC(e.f,0)}function yJt(e){if(e.p!=0)throw ee(new Cc);return pC(e.k,0)}function uge(e){return Pe(e.a)===Pe((iQ(),goe))&&Kmn(e),e.a}function iY(e){this.a=(Mt(),ue(e,53)?new Ihe(e):new Yj(e))}function Int(e){this.a=h(Un(e),270),this.b=(Mt(),new epe(e))}function oY(e,t,s){Er(),$b.call(this,e),this.b=t,this.a=s}function lge(e,t,s){sl(),XN.call(this,t),this.a=e,this.b=s}function Tnt(e,t){oR.call(this),dbe(this),this.a=e,this.c=t}function Kv(){THt.call(this,new x3(ny(12))),B1e(!0),this.a=2}function WR(e,t){return FR(e,"set1"),FR(t,"set2"),new OKe(e,t)}function l1(e,t){if(t==null)throw ee(new iC);return ian(e,t)}function GR(e,t){return cit(t),frn(e,ge(An,nr,24,t,15,1),t)}function wJt(e,t){iZe(e,Pn(Li(t0(t,24),yF)),Pn(Li(t,yF)))}function xJt(e){return Oo(c1(gc(Su(e,32)),32),gc(Su(e,32)))}function Li(e,t){return l0(lQt(As(e)?jl(e):e,As(t)?jl(t):t))}function ad(e,t){return l0(fQt(As(e)?jl(e):e,As(t)?jl(t):t))}function Ia(e,t){return t==null?Gs(Es(e.f,null)):wC(e.g,t)}function SJt(e){return e.b==0?null:(hn(e.b!=0),fl(e,e.a.a))}function Ci(e){return Math.max(Math.min(e,Ir),-2147483648)|0}function Ant(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function i8(e,t){var s,a;return s=t,a=new Jt,g0t(e,s,a),a.d}function EJt(e,t){var s;return s=trn(e.f,t),Rr(rR(s),e.f.d)}function kJt(e,t){var s=lne[e.charCodeAt(0)];return s==null?e:s}function fge(e,t,s){var a;a=e.Tg(t),a>=0?e.nh(a,s):Gye(e,t,s)}function sY(e,t,s,a){var l;l=new oJe,t.a[s.g]=l,M3(e.b,a,l)}function XR(e,t,s){this.c=new Fe,this.e=e,this.f=t,this.b=s}function Pnt(e,t,s){this.i=new Fe,this.b=e,this.g=t,this.a=s}function Ont(e){oR.call(this),dbe(this),this.a=e,this.c=!0}function CJt(e,t){return R3(),e==Xi(Nh(t))||e==Xi(g0(t))}function e2(e,t,s){QR(),e&&Fr(doe,e,t),e&&Fr(P_,e,s)}function _nt(e,t){var s;for(Un(t),s=e.a;s;s=s.c)t.Od(s.g,s.i)}function SA(e,t){var s;s=e.q.getHours(),e.q.setDate(t),H8(e,s)}function Mnt(e){var t;return t=new uj(ny(e.length)),Jbe(t,e),t}function IJt(e){function t(){}return t.prototype=e||{},new t}function TJt(e,t){return oct(e,t)?(tat(e),!0):!1}function KR(e){return e.Db>>16!=3?null:h(e.Cb,34)}function cd(e){return e.Db>>16!=9?null:h(e.Cb,34)}function Dnt(e){return e.Db>>16!=6?null:h(e.Cb,80)}function AJt(e){if(e.qe())return null;var t=e.n;return kB[t]}function Yv(e,t){if(e<0||e>t)throw ee(new fs(d2e+e+h2e+t))}function aY(e,t){return l0(dQt(As(e)?jl(e):e,As(t)?jl(t):t))}function cY(e,t){return m.Math.abs(e)=0?e.gh(s):NZ(e,t)}function $nt(e){return e.Db>>16!=7?null:h(e.Cb,234)}function Lnt(e){return e.Db>>16!=7?null:h(e.Cb,160)}function Fnt(e){return e.Db>>16!=3?null:h(e.Cb,147)}function Xi(e){return e.Db>>16!=11?null:h(e.Cb,34)}function Qv(e){return e.Db>>16!=17?null:h(e.Cb,26)}function w5(e){return e.Db>>16!=6?null:h(e.Cb,234)}function Bnt(e,t){var s=e.a=e.a||[];return s[t]||(s[t]=e.le(t))}function PJt(e){return!e.a&&(e.a=new $e(bi,e,10,11)),e.a.i>0}function o8(e,t,s,a,l,f){return new p1(e.e,t,e.Xi(),s,a,l,f)}function znt(e){this.a=e,this.b=ge(eSt,Oe,1916,e.e.length,0,2)}function Vnt(){this.a=new s1,this.e=new Ro,this.g=0,this.i=0}function Unt(e,t){Wj(this),this.f=t,this.g=e,BR(this),this._d()}function hge(e){return V1e(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Hnt(e){return V1e(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function EA(e,t,s){return e.a=Ru(e.a,0,t)+(""+s)+ZT(e.a,t),e}function OJt(e,t,s){return Re(e.a,(jR(),QQ(t,s),new Vw(t,s))),e}function qnt(e,t,s){this.a=t,this.c=e,this.b=(Un(s),new vu(s))}function Wnt(e,t){this.a=e,this.c=Xs(this.a),this.b=new UR(t)}function _Jt(e,t){var s;return s=e.a.get(t),s==null?new Array:s}function MJt(e){var t;return Rg(e),t=new Ro,Kr(e,new IHe(t))}function Gnt(e,t,s){this.a=t,this.c=e,this.b=(Un(s),new vu(s))}function hs(e,t,s){return t==null?Ja(e.f,null,s):vm(e.g,t,s)}function pge(e,t){return Fet(e.a,t)?R0e(e,h(t,22).g,null):null}function DJt(e){return EQ(),Zt(),h(e.a,79).d.e!=0}function Xnt(){Xnt=H,xyt=tr((ej(),re(te(wyt,1),je,532,0,[cne])))}function Knt(){Knt=H,V4t=Jc(new Ki,(cs(),Vs),(vs(),nz))}function Ynt(){Ynt=H,U4t=Jc(new Ki,(cs(),Vs),(vs(),nz))}function Qnt(){Qnt=H,iSt=_r(new Ki,(cs(),Vs),(vs(),NI))}function $u(){$u=H,aSt=_r(new Ki,(cs(),Vs),(vs(),NI))}function Znt(){Znt=H,cSt=_r(new Ki,(cs(),Vs),(vs(),NI))}function lY(){lY=H,hSt=_r(new Ki,(cs(),Vs),(vs(),NI))}function QR(){QR=H,doe=new Vn,P_=new Vn,Wqt(Ryt,new PBe)}function qt(e,t){if(e<0||e>=t)throw ee(new fs(d2e+e+h2e+t))}function Fn(e,t){if(e<0||e>=t)throw ee(new Che(d2e+e+h2e+t))}function uo(e,t){e.d&&dc(e.d.e,e),e.d=t,e.d&&Re(e.d.e,e)}function Po(e,t){e.c&&dc(e.c.g,e),e.c=t,e.c&&Re(e.c.g,e)}function ps(e,t){e.c&&dc(e.c.a,e),e.c=t,e.c&&Re(e.c.a,e)}function js(e,t){e.i&&dc(e.i.j,e),e.i=t,e.i&&Re(e.i.j,e)}function fY(e,t){e.a&&dc(e.a.k,e),e.a=t,e.a&&Re(e.a.k,e)}function dY(e,t){e.b&&dc(e.b.f,e),e.b=t,e.b&&Re(e.b.f,e)}function Jnt(e,t){VQt(e,e.b,e.c),h(e.b.b,63),t&&h(t.b,63).b}function NJt(e,t){var s;s=e.q.getHours(),e.q.setMonth(t),H8(e,s)}function ert(e,t){var s;return s=new Ml(e),t.c[t.c.length]=s,s}function $3(e){this.c=new ci,this.b=e.b,this.d=e.c,this.a=e.a}function hY(e){this.a=m.Math.cos(e),this.b=m.Math.sin(e)}function Sg(e,t,s,a){this.c=e,this.d=a,fY(this,t),dY(this,s)}function pY(e,t){ue(e.Cb,87)&&my(eu(h(e.Cb,87)),4),za(e,t)}function ZR(e,t){ue(e.Cb,179)&&(h(e.Cb,179).tb=null),za(e,t)}function jJt(e,t){Pme(e,t),ue(e.Cb,87)&&my(eu(h(e.Cb,87)),2)}function RJt(e,t){var s,a;s=t.c,a=s!=null,a&&N3(e,new Gv(t.c))}function trt(e){var t,s;return s=(ZS(),t=new Lb,t),P5(s,e),s}function nrt(e){var t,s;return s=(ZS(),t=new Lb,t),P5(s,e),s}function rrt(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function $Jt(e){var t;t=Psn(h(Ot(e,(oy(),Iie)),377)),t.cg(e)}function irt(){irt=H,XSt=Jc(new Ki,(n6(),e9),($8(),lie))}function LJt(e){if(e.p!=2)throw ee(new Cc);return Pn(e.f)&Ti}function FJt(e){if(e.p!=2)throw ee(new Cc);return Pn(e.k)&Ti}function ort(e){var t;return Rg(e),t=(Jw(),Jw(),q4e),A$(e,t)}function srt(e,t,s){var a;nut(t,s,e.c.length),a=s-t,Rhe(e.c,t,a)}function Ph(e,t,s){nut(t,s,e.gc()),this.c=e,this.a=t,this.b=s-t}function Lt(e,t){this.b=(Ut(e),e),this.a=(t&Ty)==0?t|64|Yd:t}function gY(e,t){if(ro(e.a,t),t.d)throw ee(new qs(Igt));t.d=e}function gge(e,t){CHt.call(this,new x3(ny(e))),Rf(t,igt),this.a=t}function BJt(e,t){return Qet(gc(e.q.getTime()),gc(t.q.getTime()))}function Ta(e,t){return Uo(),UY(t)?new gR(t,e):new QT(t,e)}function ld(e){return $s(re(te(Hi,1),Oe,8,0,[e.i.n,e.n,e.a]))}function zJt(){return gd(),re(te(uu,1),je,132,0,[tSe,Wu,Ry])}function VJt(){return jf(),re(te($y,1),je,230,0,[Qs,Ua,Zs])}function UJt(){return Xc(),re(te(owt,1),je,455,0,[ch,T0,vf])}function HJt(){return hc(),re(te(awt,1),je,456,0,[Uf,A0,yf])}function qJt(){return h8(),re(te(XSe,1),je,376,0,[Rne,jne,$ne])}function WJt(){return Mg(),re(te(QEe,1),je,372,0,[Ky,YEe,tie])}function GJt(){return G$(),re(te(tke,1),je,373,0,[JEe,iie,eke])}function XJt(){return ss(),re(te(j4t,1),je,446,0,[XI,Rc,nc])}function KJt(){return X5(),re(te(ike,1),je,334,0,[sie,rke,KI])}function YJt(){return H$(),re(te(ake,1),je,336,0,[ske,aie,oke])}function QJt(){return Y$(),re(te(cke,1),je,375,0,[cie,uE,Yy])}function ZJt(){return j$(),re(te(G5e,1),je,335,0,[W5e,pz,lre])}function JJt(){return P$(),re(te(K5e,1),je,416,0,[fre,X5e,dre])}function een(){return _g(),re(te(lxt,1),je,444,0,[hre,Q6,G2])}function ten(){return gm(),re(te(Z4t,1),je,447,0,[Xz,YI,Kz])}function nen(){return lL(),re(te(JSt,1),je,436,0,[Eie,xie,Sie])}function ren(){return fL(),re(te(Xke,1),je,378,0,[Gke,Pie,Wke])}function ien(){return oP(),re(te(_ke,1),je,377,0,[aV,Pke,Oke])}function oen(){return bm(),re(te(ere,1),je,358,0,[zm,O0,Bm])}function sen(){return g1(),re(te(vxt,1),je,301,0,[zO,K2,k4])}function aen(){return L5(),re(te(Ere,1),je,292,0,[xre,Sre,BO])}function cen(){return W$(),re(te(Hke,1),je,293,0,[Aie,Uke,Vke])}function uen(){return lP(),re(te(_ie,1),je,430,0,[lV,fV,dV])}function len(){return m1(),re(te(N8e,1),je,332,0,[CV,kp,g9])}function fen(){return hd(),re(te(S8e,1),je,271,0,[gE,Jy,bE])}function den(e,t){return y1n(e,t,ue(t,97)&&(h(t,17).Bb&Bo)!=0)}function hen(e,t,s){var a;return a=Im(e,t,!1),a.b<=t&&a.a<=s}function art(e,t,s){var a;a=new LLe,a.b=t,a.a=s,++t.b,Re(e.d,a)}function pen(e,t){var s;return s=(Ut(e),e).g,spe(!!s),Ut(t),s(t)}function L3(e){return e.d==(k5(),HV)&&tHt(e,Egn(e.g,e.b)),e.d}function gen(e){return e.a==(k5(),HV)&&JUt(e,j1n(e.g,e.b)),e.a}function JR(e,t){Re(e.a,t),e.b=m.Math.max(e.b,t.d),e.d+=t.r}function crt(e){BQe(this),SGe(this.a,Kbe(m.Math.max(8,e))<<1)}function Lu(e){Er(),$b.call(this,e),this.c=!1,this.a=!1}function urt(e,t,s){$b.call(this,25),this.b=e,this.a=t,this.c=s}function bge(e,t){var s,a;return a=f5(e,t),s=e.a.Xc(a),new PKe(e,s)}function ben(e,t){var s;s=Ae(Ke(e.a.Xe((Pr(),kV)))),L0t(e,t,s)}function men(e,t){e.b=e.b|t.b,e.c=e.c|t.c,e.d=e.d|t.d,e.a=e.a|t.a}function ven(e,t){return p8(),e.c==t.c?go(t.d,e.d):go(e.c,t.c)}function yen(e,t){return p8(),e.c==t.c?go(e.d,t.d):go(e.c,t.c)}function wen(e,t){return p8(),e.c==t.c?go(t.d,e.d):go(t.c,e.c)}function xen(e,t){return p8(),e.c==t.c?go(e.d,t.d):go(t.c,e.c)}function am(e){return Un(e),ue(e,15)?new vu(h(e,15)):dA(e.Ic())}function mge(e,t){return!!e&&!!e.equals?e.equals(t):Pe(e)===Pe(t)}function e$(e){return new Ba((Rf(e,AJ),k$(Oo(Oo(5,e),e/10|0))))}function vge(e){return e.c==null||e.c.length==0?"n_"+e.b:"n_"+e.c}function t$(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function lrt(e,t){var s;for(s=e+"";s.length>16!=6?null:h($Z(e),234)}function yge(e,t){return t==0?!!e.o&&e.o.f!=0:XQ(e,t)}function bY(e,t){if(t.$modCount!=e.$modCount)throw ee(new ol)}function Y(e){return hn(e.a=t)throw ee(new fs(Ndn(e,t)));return e}function Art(e,t,s){if(e<0||ts)throw ee(new fs(udn(e,t,s)))}function ken(e){if(!("stack"in e))try{throw e}catch{}return e}function cm(e){var t;return As(e)?(t=e,t==-0?0:t):Nnn(e)}function vY(e){return hn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function Prt(e,t){var s;return s=1-t,e.a[s]=F$(e.a[s],s),F$(e,t)}function Ort(e,t,s){var a;a=(Un(e),new vu(e)),Qcn(new qnt(a,t,s))}function IA(e,t,s){var a;a=(Un(e),new vu(e)),Zcn(new Gnt(a,t,s))}function n$(){n$=H,wie=new m1e("DFS",0),kke=new m1e("BFS",1)}function _rt(){_rt=H,lke=Ftt(Ue(1),Ue(4)),uke=Ftt(Ue(1),Ue(2))}function Mrt(e){return SK(e.e.Hd().gc()*e.c.Hd().gc(),16,new UUe(e))}function Cen(e){return!!e.u&&ya(e.u.a).i!=0&&!(!!e.n&&tZ(e.n))}function Ien(e){return!!e.a&&nu(e.a.a).i!=0&&!(!!e.b&&nZ(e.b))}function Drt(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function s8(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function xo(e,t){this.a=e,eC.call(this,e),Yv(t,e.gc()),this.b=t}function Nrt(e,t){var s;e.e=new yhe,s=wy(t),co(s,e.c),b1t(e,s,0)}function So(e,t,s,a){var l;l=new ade,l.a=t,l.b=s,l.c=a,lr(e.a,l)}function it(e,t,s,a){var l;l=new ade,l.a=t,l.b=s,l.c=a,lr(e.b,l)}function Ten(e,t,s){var a;a=Ksn();try{return HGt(e,t,s)}finally{Xen(a)}}function t2(e){return bC(),ue(e.g,10)?h(e.g,10):null}function jrt(e,t){return ue(t,43)?aZ(e.a,h(t,43)):!1}function Rrt(e,t){return ue(t,43)?aZ(e.a,h(t,43)):!1}function $rt(e,t){return ue(t,43)?aZ(e.a,h(t,43)):!1}function Lrt(e){var t;return i0(e),t=new Ge,Bw(e.a,new EHe(t)),t}function TA(e){var t,s,a;return t=new gtt,s=tJ(t,e),Kvn(t),a=s,a}function xge(){var e,t,s;return t=(s=(e=new Lb,e),s),Re(yIe,t),t}function r$(e){var t;return i0(e),t=new sn,Bw(e.a,new kHe(t)),t}function i$(e){return e.j.c=ge(dn,rt,1,0,5,1),rge(e.c),uZt(e.a),e}function Aen(e,t,s){e.d&&dc(e.d.e,e),e.d=t,e.d&&qv(e.d.e,s,e)}function Pen(e,t,s){return s.f.c.length>0?L0e(e.a,t,s):L0e(e.b,t,s)}function Oen(e){return $u(),!Qo(e)&&!(!Qo(e)&&e.c.i.c==e.d.i.c)}function Gd(e){return h(Mh(e,ge(Vne,Tee,18,e.c.length,0,1)),468)}function AA(e){return h(Mh(e,ge(vp,Kg,10,e.c.length,0,1)),213)}function Frt(e){return h(Mh(e,ge(M2t,nbt,11,e.c.length,0,1)),1915)}function _en(e){return SK(e.e.Hd().gc()*e.c.Hd().gc(),273,new VUe(e))}function Sge(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function Brt(e,t,s){this.b=new Rqe(this),this.c=e,this.f=t,this.d=s}function Ki(){rXe.call(this),this.j.c=ge(dn,rt,1,0,5,1),this.a=-1}function zrt(){zrt=H,D5t=tr((mj(),re(te(M5t,1),je,546,0,[Die])))}function Vrt(){Vrt=H,_5t=tr((bj(),re(te(oCe,1),je,476,0,[Mie])))}function Urt(){Urt=H,Q5t=tr((mC(),re(te(ICe,1),je,523,0,[i_])))}function Hrt(){Hrt=H,Fwt=tr((hj(),re(te(ASe,1),je,475,0,[Tne])))}function a8(e,t){own(t,e),i0e(e.d),i0e(h(G(e,(Qe(),$z)),205))}function yY(e,t){swn(t,e),o0e(e.d),o0e(h(G(e,(Qe(),$z)),205))}function um(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=s.fe()),a}function c8(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=s.ie()),a}function x5(e,t){var s,a;return s=ty(e,t),a=null,s&&(a=s.ie()),a}function f1(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=fye(s)),a}function Men(e,t,s){var a;return a=A8(s),tF(e.g,a,t),tF(e.i,t,s),t}function Den(e,t){return e.a<=e.b?(t.ud(e.a++),!0):!1}function qrt(e){if(e.e.g!=e.b)throw ee(new ol);return!!e.c&&e.d>0}function Nen(e){if(e.p!=1)throw ee(new Cc);return Pn(e.f)<<24>>24}function jen(e){if(e.p!=1)throw ee(new Cc);return Pn(e.k)<<24>>24}function Ren(e){if(e.p!=7)throw ee(new Cc);return Pn(e.k)<<16>>16}function $en(e){if(e.p!=7)throw ee(new Cc);return Pn(e.f)<<16>>16}function S5(e){return ue(e,15)?h(e,15).dc():!e.Ic().Ob()}function d1(e){var t;for(t=0;e.Ob();)e.Pb(),t=Oo(t,1);return k$(t)}function Wrt(e){var t;t=e.Rg(),this.a=ue(t,67)?h(t,67).Uh():t.Ic()}function Grt(e){var t;return new Lt((t=e.g,t||(e.g=new mde(e))),17)}function Xrt(e,t,s,a){return ue(s,53)?new AZe(e,t,s,a):new k0e(e,t,s,a)}function Len(){return y$(),re(te(MB,1),je,297,0,[mne,Q4e,Z4e,J4e])}function Fen(){return Z3(),re(te(Nwt,1),je,322,0,[OO,PO,_O,MO])}function Ben(){return _8(),re(te($wt,1),je,390,0,[DO,$B,LB,NO])}function zen(){return mm(),re(te(Mwt,1),je,401,0,[AO,TO,Cne,Ine])}function Ven(){return Z$(),re(te(F2t,1),je,357,0,[Zne,az,cz,LO])}function Uen(){return U5(),re(te(S2t,1),je,400,0,[Fm,Fy,Ly,U2])}function o$(e){Gve(),iZe(this,Pn(Li(t0(e,24),yF)),Pn(Li(e,yF)))}function Eg(e,t){Ut(t),e.b=e.b-1&e.a.length-1,ui(e.a,e.b,t),qlt(e)}function Ege(e,t){Ut(t),ui(e.a,e.c,t),e.c=e.c+1&e.a.length-1,qlt(e)}function or(e){return hn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function F3(e){return bC(),ue(e.g,145)?h(e.g,145):null}function Hen(e){var t;return e.j==(He(),xn)&&(t=cht(e),Ac(t,nn))}function qen(){return pd(),re(te(X2t,1),je,406,0,[S4,W6,G6,Jne])}function Wen(){return fy(),re(te(Zre,1),je,196,0,[qz,Qre,ix,rx])}function Krt(e,t){return h(Yb(TR(h(Br(e.k,t),14).Mc(),H2)),112)}function Yrt(e,t){return h(Yb(AR(h(Br(e.k,t),14).Mc(),H2)),112)}function Gen(e,t){var s;s=t.a,Po(s,t.c.d),uo(s,t.d.d),ry(s.a,e.n)}function Qrt(e,t,s,a){var l;return l=a[t.g][s.g],Ae(Ke(G(e.a,l)))}function Zrt(e,t){var s;for(s=e.j.c.length;s0&&xa(e.g,0,t,0,e.i),t}function iit(e,t,s){var a;return a=A8(s),Fr(e.b,a,t),Fr(e.c,t,s),t}function oit(e,t){var s;for(s=t;s;)Fv(e,s.i,s.j),s=Xi(s);return e}function sit(e,t){var s;return s=new Dv,e.xd(s),s.a+="..",t.yd(s),s.a}function Oh(e,t){Uo();var s;return s=h(e,65).Hj(),zfn(s,t),s.Jk(t)}function utn(e,t,s,a,l){var f;f=O1n(l,s,a),Re(t,Ddn(l,f)),kfn(e,l,t)}function ait(e,t,s){e.i=0,e.e=0,t!=s&&(Act(e,t,s),Tct(e,t,s))}function Tge(e,t){var s;s=e.q.getHours(),e.q.setFullYear(t+w0),H8(e,s)}function Age(e,t){var s;return s=xA(dA(new FY(e,t))),mR(new FY(e,t)),s}function ya(e){return e.n||(eu(e),e.n=new Het(e,ns,e),Ss(e)),e.n}function cit(e){if(e<0)throw ee(new mXe("Negative array size: "+e))}function wY(e,t,s){if(s){var a=s.ee();s=a(s)}else s=void 0;e.a[t]=s}function ltn(e,t,s){if(s){var a=s.ee();e.a[t]=a(s)}else delete e.a[t]}function uit(e,t){q5();var s;return s=e.j.g-t.j.g,s!=0?s:0}function l8(e){return hn(e.a=0&&e.a[s]===t[s];s--);return s<0}function hit(e,t){var s;for(s=0;s"+vge(e.d):"e_"+Kb(e)}function _ge(e,t){return e==(tn(),Ri)&&t==Ri?4:e==Ri||t==Ri?8:32}function Fu(e,t){var s;return t.b.Kb(sst(e,t.c.Ee(),(s=new AHe(t),s)))}function wi(e,t,s,a){var l;l=new Tn,l.c=t,l.b=s,l.a=a,a.b=s.a=l,++e.b}function Cg(){Vn.call(this),NZe(this),this.d.b=this.d,this.d.a=this.d}function Mge(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function pit(e){if(!e.c.Sb())throw ee(new aa);return e.a=!0,e.c.Ub()}function git(e,t){return Ut(t),e.a!=null?tQt(t.Kb(e.a)):_B}function gtn(e,t){var s,a;a=!1;do s=yct(e,t),a=a|s;while(s);return a}function B3(){B3=H,E4=new o1e("LAYER_SWEEP",0),FO=new o1e(Oee,1)}function bit(){bit=H,sxt=tr((B3(),re(te(q5e,1),je,333,0,[E4,FO])))}function mit(){mit=H,uxt=tr((HA(),re(te(Q5e,1),je,413,0,[gz,Y5e])))}function vit(){vit=H,L4t=tr((_A(),re(te(nke,1),je,374,0,[oie,ZO])))}function yit(){yit=H,N4t=tr((LA(),re(te(ZEe,1),je,415,0,[nie,rie])))}function wit(){wit=H,wxt=tr((s$(),re(te(h6e,1),je,414,0,[kre,d6e])))}function xit(){xit=H,oxt=tr((b$(),re(te(H5e,1),je,417,0,[U5e,ure])))}function Sit(){Sit=H,hxt=tr((RA(),re(te(e6e,1),je,473,0,[J5e,mz])))}function Eit(){Eit=H,TSt=tr((Mf(),re(te(ISt,1),je,513,0,[Qy,D0])))}function kit(){kit=H,rSt=tr((u8(),re(te(nSt,1),je,516,0,[ZI,QI])))}function Cit(){Cit=H,lSt=tr((Wd(),re(te(uSt,1),je,509,0,[Ym,wp])))}function Iit(){Iit=H,dSt=tr((ud(),re(te(fSt,1),je,508,0,[ub,Ed])))}function Tit(){Tit=H,NSt=tr((sm(),re(te(DSt,1),je,448,0,[N0,ox])))}function Ait(){Ait=H,WSt=tr((YR(),re(te(Eke,1),je,474,0,[yie,Ske])))}function Pit(){Pit=H,GSt=tr((n$(),re(te(Cke,1),je,419,0,[wie,kke])))}function Oit(){Oit=H,ZSt=tr((B$(),re(te(Ike,1),je,487,0,[sV,fE])))}function _it(){_it=H,Z5t=tr((ZA(),re(te(ACe,1),je,423,0,[gV,TCe])))}function Mit(){Mit=H,t5t=tr((v$(),re(te(Ake,1),je,420,0,[Tke,kie])))}function Dit(){Dit=H,N5t=tr((MA(),re(te(sCe,1),je,424,0,[Nie,hV])))}function Nit(){Nit=H,Jyt=tr((xL(),re(te(oSe,1),je,422,0,[wne,iSe])))}function jit(){jit=H,ewt=tr((C$(),re(te(aSe,1),je,421,0,[sSe,xne])))}function Rit(){Rit=H,n2t=tr((I$(),re(te(jSe,1),je,418,0,[Mne,zB])))}function $it(){$it=H,R2t=tr((R5(),re(te(j2t,1),je,504,0,[$O,Hne])))}function u$(){u$=H,wd=!0,Uyt=!1,Hyt=!1,Wyt=!1,qyt=!1}function PA(e){e.i=0,FT(e.b,null),FT(e.c,null),e.a=null,e.e=null,++e.g}function btn(e,t,s){return h(t==null?Ja(e.f,null,s):vm(e.g,t,s),279)}function mtn(){return He(),re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt])}function vtn(e){return oj(),function(){return Ten(e,this,arguments)}}function ytn(){return Date.now?Date.now():new Date().getTime()}function Rn(e){if(Yn(e))return e.c=e.a,e.a.Pb();throw ee(new aa)}function CY(e){u$(),!wd&&(this.c=e,this.e=!0,this.a=new Fe)}function Lit(e,t){this.c=0,this.b=t,gQe.call(this,e,17493),this.a=this.c}function Nl(e,t,s){var a;return a=(qt(t,e.c.length),e.c[t]),e.c[t]=s,a}function Dge(e,t){var s,a;for(s=t,a=0;s>0;)a+=e.a[s],s-=s&-s;return a}function Fit(e,t){var s;for(s=t;s;)Fv(e,-s.i,-s.j),s=Xi(s);return e}function Eo(e,t){var s,a;for(Ut(t),a=e.Ic();a.Ob();)s=a.Pb(),t.td(s)}function wtn(e,t){var s;s=new v3,xg(s,"x",t.a),xg(s,"y",t.b),N3(e,s)}function xtn(e,t){var s;s=new v3,xg(s,"x",t.a),xg(s,"y",t.b),N3(e,s)}function Bit(e,t){var s;return s=t.ad(),new Vw(s,e.e.nc(s,h(t.bd(),15)))}function E5(e,t){return(Rg(e),hC(new Rt(e,new rbe(t,e.a)))).sd(z6)}function Stn(){return cs(),re(te(KSe,1),je,353,0,[uh,P0,jc,Ha,Vs])}function Etn(){return y2(),re(te(Y2t,1),je,360,0,[lz,dz,hz,fz,uz])}function ktn(){return gl(),re(te(I6e,1),je,165,0,[qO,BI,M0,zI,Vy])}function Ctn(){return Lf(),re(te(Ep,1),je,175,0,[an,Qi,dh,lb,Sp])}function Itn(){return TP(),re(te(lCe,1),je,313,0,[aCe,jie,uCe,Rie,cCe])}function Ttn(){return M8(),re(te(HEe,1),je,312,0,[UEe,Jre,eie,WI,GI])}function Atn(){return h6(),re(te(A5t,1),je,352,0,[sx,N4,s9,o9,a9])}function Ptn(){return as(),re(te(d9,1),je,108,0,[A1,qf,xf,T1,P1])}function Otn(){return h2(),re(te(m9,1),je,248,0,[$0,w_,j8e,b9,R8e])}function _tn(){return ou(),re(te(IV,1),je,291,0,[F0,_1,x_,v9,z4])}function zit(){HX(this),this.b=new ot(pi,pi),this.a=new ot(Oi,Oi)}function Vit(e){this.b=e,pn.call(this,e),this.a=h(Vt(this.b.a,4),124)}function Uit(e){this.b=e,P3.call(this,e),this.a=h(Vt(this.b.a,4),124)}function df(e,t,s,a,l){Xit.call(this,t,a,l),this.c=e,this.b=s}function Nge(e,t,s,a,l){Xit.call(this,t,a,l),this.c=e,this.a=s}function jge(e,t,s,a,l){prt.call(this,t,a,l),this.c=e,this.a=s}function Rge(e,t,s,a,l){grt.call(this,t,a,l),this.c=e,this.a=s}function $ge(e){jqt.call(this,e==null?mc:Fs(e),ue(e,78)?h(e,78):null)}function Hit(e){var t;return e.c||(t=e.r,ue(t,87)&&(e.c=h(t,26))),e.c}function Lge(e,t){var s;return s=0,e&&(s+=e.f.a/2),t&&(s+=t.f.a/2),s}function IY(e,t){var s;return s=h(lm(e.d,t),23),s||h(lm(e.e,t),23)}function Mtn(e,t){var s,a;s=h(lon(e.c,t),15),s&&(a=s.gc(),s.$b(),e.d-=a)}function Dtn(e){var t,s,a,l;for(s=e,a=0,l=s.length;a>22&cu,a=e<0?E1:0,Qa(t,s,a)}function qit(e,t){var s,a;return s=t.ad(),a=ome(e,s),!!a&&Ca(a.e,t.bd())}function Qo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function z3(e,t){return t==0||e.e==0?e:t>0?But(e,t):e1t(e,-t)}function Fge(e,t){return t==0||e.e==0?e:t>0?e1t(e,t):But(e,-t)}function Bge(e,t){return ue(t,149)?kt(e.c,h(t,149).c):!1}function zge(e,t){if(e<0||e>t)throw ee(new fs(mye(e,t,"index")));return e}function eu(e){return e.t||(e.t=new iGe(e),E8(new pXe(e),0,e.t)),e.t}function AY(e){var t;return t=new om,Cs(t,e),_e(t,(Qe(),ys),null),t}function Wit(e){var t,s;return t=e.c.i,s=e.d.i,t.k==(tn(),Pi)&&s.k==Pi}function f8(e){var t,s;++e.j,t=e.g,s=e.i,e.g=null,e.i=0,e.$h(s,t),e.Zh()}function OA(e,t){e.li(e.i+1),LC(e,e.i,e.ji(e.i,t)),e.Yh(e.i++,t),e.Zh()}function Git(e,t,s){XN.call(this,s),this.b=e,this.c=t,this.d=(FQ(),moe)}function Xit(e,t,s){this.d=e,this.k=t?1:0,this.f=s?1:0,this.o=-1,this.p=0}function Kit(e,t,s){var a;a=new W1e(e.a),y8(a,e.a.a),Ja(a.f,t,s),e.a.a=a}function PY(e,t,s){var a;return a=e.Tg(t),a>=0?e.Wg(a,s,!0):km(e,t,s)}function Br(e,t){var s;return s=h(e.c.vc(t),15),!s&&(s=e.ic(t)),e.nc(t,s)}function Ntn(e,t){var s;s=e.q.getHours()+(t/60|0),e.q.setMinutes(t),H8(e,s)}function Vge(e,t){var s,a;return s=(Ut(e),e),a=(Ut(t),t),s==a?0:st.p?-1:0}function not(e){var t;return e.a||(t=e.r,ue(t,148)&&(e.a=h(t,148))),e.a}function Ftn(e,t,s){var a;return++e.e,--e.f,a=h(e.d[t].Yc(s),133),a.bd()}function Btn(e,t,s,a){bpt(e,t,s,g6(e,t,a,ue(t,97)&&(h(t,17).Bb&Bo)!=0))}function f$(e,t,s){this.a=e,this.b=t,this.c=s,Re(e.t,this),Re(t.i,this)}function d$(e,t,s,a){this.f=e,this.e=t,this.d=s,this.b=a,this.c=a?a.d:null}function np(e,t){v0(),this.e=e,this.d=1,this.a=re(te(An,1),nr,24,15,[t])}function H3(e,t,s){return CA(t,e.e.Hd().gc()),CA(s,e.c.Hd().gc()),e.a[t][s]}function rot(e,t){return sd(e.a,t)?(U3(e.a,t),!0):!1}function h$(e,t){return Ut(t),e.cs||t=0,"Initial capacity must not be negative")}function oot(){oot=H,p2t=tr((h8(),re(te(XSe,1),je,376,0,[Rne,jne,$ne])))}function sot(){sot=H,iwt=tr((jf(),re(te($y,1),je,230,0,[Qs,Ua,Zs])))}function aot(){aot=H,swt=tr((Xc(),re(te(owt,1),je,455,0,[ch,T0,vf])))}function cot(){cot=H,cwt=tr((hc(),re(te(awt,1),je,456,0,[Uf,A0,yf])))}function uot(){uot=H,Gyt=tr((gd(),re(te(uu,1),je,132,0,[tSe,Wu,Ry])))}function lot(){lot=H,D4t=tr((Mg(),re(te(QEe,1),je,372,0,[Ky,YEe,tie])))}function fot(){fot=H,$4t=tr((G$(),re(te(tke,1),je,373,0,[JEe,iie,eke])))}function dot(){dot=H,R4t=tr((ss(),re(te(j4t,1),je,446,0,[XI,Rc,nc])))}function hot(){hot=H,F4t=tr((X5(),re(te(ike,1),je,334,0,[sie,rke,KI])))}function pot(){pot=H,B4t=tr((H$(),re(te(ake,1),je,336,0,[ske,aie,oke])))}function got(){got=H,z4t=tr((Y$(),re(te(cke,1),je,375,0,[cie,uE,Yy])))}function bot(){bot=H,axt=tr((j$(),re(te(G5e,1),je,335,0,[W5e,pz,lre])))}function mot(){mot=H,cxt=tr((P$(),re(te(K5e,1),je,416,0,[fre,X5e,dre])))}function vot(){vot=H,fxt=tr((_g(),re(te(lxt,1),je,444,0,[hre,Q6,G2])))}function yot(){yot=H,J4t=tr((gm(),re(te(Z4t,1),je,447,0,[Xz,YI,Kz])))}function wot(){wot=H,e5t=tr((lL(),re(te(JSt,1),je,436,0,[Eie,xie,Sie])))}function xot(){xot=H,O5t=tr((lP(),re(te(_ie,1),je,430,0,[lV,fV,dV])))}function Sot(){Sot=H,yxt=tr((g1(),re(te(vxt,1),je,301,0,[zO,K2,k4])))}function Eot(){Eot=H,mxt=tr((L5(),re(te(Ere,1),je,292,0,[xre,Sre,BO])))}function kot(){kot=H,h5t=tr((W$(),re(te(Hke,1),je,293,0,[Aie,Uke,Vke])))}function Cot(){Cot=H,n5t=tr((oP(),re(te(_ke,1),je,377,0,[aV,Pke,Oke])))}function Iot(){Iot=H,p5t=tr((fL(),re(te(Xke,1),je,378,0,[Gke,Pie,Wke])))}function Tot(){Tot=H,nxt=tr((bm(),re(te(ere,1),je,358,0,[zm,O0,Bm])))}function Aot(){Aot=H,_6t=tr((hd(),re(te(S8e,1),je,271,0,[gE,Jy,bE])))}function Pot(){Pot=H,j6t=tr((m1(),re(te(N8e,1),je,332,0,[CV,kp,g9])))}function b$(){b$=H,U5e=new i1e("QUADRATIC",0),ure=new i1e("SCANLINE",1)}function qtn(e){return!e.g&&(e.g=new LN),!e.g.b&&(e.g.b=new eGe(e)),e.g.b}function Wtn(e){return!e.g&&(e.g=new LN),!e.g.a&&(e.g.a=new nGe(e)),e.g.a}function DA(e){return!e.g&&(e.g=new LN),!e.g.c&&(e.g.c=new rGe(e)),e.g.c}function Gtn(e){return!e.g&&(e.g=new LN),!e.g.d&&(e.g.d=new tGe(e)),e.g.d}function Xtn(e,t,s){var a,l;for(l=new z5(t,e),a=0;a=0?e.Wg(s,!0,!0):km(e,t,!0)}function dnn(e,t){return go(Ae(Ke(G(e,(Be(),Hm)))),Ae(Ke(G(t,Hm))))}function Rot(e,t){return eYe(e.e,t)||Lg(e.e,t,new dlt(t)),h(lm(e.e,t),112)}function hnn(e){for(;!e.a;)if(!IJe(e.c,new CHe(e)))return!1;return!0}function q3(e){var t;return Un(e),ue(e,197)?(t=h(e,197),t):new KUe(e)}function pnn(e,t,s){var a;return a=Sct(e,t,s),e.b=new z$(a.c.length),owe(e,a)}function tbe(e,t){if(e.g==null||t>=e.i)throw ee(new FX(t,e.i));return e.g[t]}function $ot(e,t,s){if(W5(e,s),s!=null&&!e.rj(s))throw ee(new zG);return s}function nbe(e,t){return UA(t)!=10&&re(ru(t),t.cm,t.__elementTypeId$,UA(t),e),e}function rbe(e,t){LX.call(this,t.rd(),t.qd()&-16449),Ut(e),this.a=e,this.c=t}function Lot(e,t){if(t.a)throw ee(new qs(Igt));ro(e.a,t),t.a=e,!e.j&&(e.j=t)}function gnn(e,t){e.a.ue(t.d,e.b)>0&&(Re(e.c,new a0e(t.c,t.d,e.d)),e.b=t.d)}function bnn(e){e.e>0&&e.d>0&&(e.a=e.e*e.d,e.b=e.e/e.d,e.j=KYt(e.e,e.d,e.c))}function mnn(e,t,s){e.a=t,e.c=s,e.b.a.$b(),Dl(e.d),e.e.a.c=ge(dn,rt,1,0,5,1)}function $Y(e){e.a=ge(An,nr,24,e.b+1,15,1),e.c=ge(An,nr,24,e.b,15,1),e.d=0}function vnn(e){m$(),h(e.Xe((Pr(),b_)),174).Dc((ou(),x_)),e.Ze(eoe,null)}function Fot(){Fot=H,KSt=ly(ly(Ij(new Ki,(n6(),JI)),($8(),eV)),fie)}function m$(){m$=H,t6t=new zFe,r6t=new VFe,n6t=ton((Pr(),eoe),t6t,$4,r6t)}function v$(){v$=H,Tke=new y1e("LEAF_NUMBER",0),kie=new y1e("NODE_SIZE",1)}function y$(){y$=H,mne=new xj("All",0),Q4e=new $Qe,Z4e=new YQe,J4e=new LQe}function Bot(){Bot=H,zyt=tr((y$(),re(te(MB,1),je,297,0,[mne,Q4e,Z4e,J4e])))}function Xc(){Xc=H,ch=new pX(u4,0),T0=new pX(C6,1),vf=new pX(l4,2)}function zot(){zot=H,iF(),TIe=pi,JEt=Oi,AIe=new xT(pi),ekt=new xT(Oi)}function Vot(){Vot=H,Dwt=tr((mm(),re(te(Mwt,1),je,401,0,[AO,TO,Cne,Ine])))}function Uot(){Uot=H,jwt=tr((Z3(),re(te(Nwt,1),je,322,0,[OO,PO,_O,MO])))}function Hot(){Hot=H,Lwt=tr((_8(),re(te($wt,1),je,390,0,[DO,$B,LB,NO])))}function qot(){qot=H,E2t=tr((U5(),re(te(S2t,1),je,400,0,[Fm,Fy,Ly,U2])))}function Wot(){Wot=H,B2t=tr((Z$(),re(te(F2t,1),je,357,0,[Zne,az,cz,LO])))}function Got(){Got=H,K2t=tr((pd(),re(te(X2t,1),je,406,0,[S4,W6,G6,Jne])))}function Xot(){Xot=H,O4t=tr((fy(),re(te(Zre,1),je,196,0,[qz,Qre,ix,rx])))}function RA(){RA=H,J5e=new a1e(S0,0),mz=new a1e("IMPROVE_STRAIGHTNESS",1)}function Kot(e,t){var s,a;return a=t/e.c.Hd().gc()|0,s=t%e.c.Hd().gc(),H3(e,a,s)}function ynn(e,t){var s,a;return cit(t),s=(a=e.slice(0,t),nbe(a,e)),s.length=t,s}function d8(e,t,s,a){var l;a=(Jw(),a||H4e),l=e.slice(t,s),vye(l,e,t,s,-t,a)}function ll(e,t,s,a,l){return t<0?km(e,s,a):h(s,65).Ij().Kj(e,e.th(),t,a,l)}function wnn(e,t){return u5(),Re(e,new fo(t,Ue(t.e.c.length+t.g.c.length)))}function xnn(e,t){return u5(),Re(e,new fo(t,Ue(t.e.c.length+t.g.c.length)))}function $A(e,t){if(t<0)throw ee(new fs(Kbt+t));return Zrt(e,t+1),st(e.j,t)}function ibe(e){var t;if(!JY(e))throw ee(new aa);return e.e=1,t=e.d,e.d=null,t}function Snn(e){var t,s;if(!e.b)return null;for(s=e.b;t=s.a[0];)s=t;return s}function LY(e){var t;t=e.vi(),t!=null&&e.d!=-1&&h(t,91).Ig(e),e.i&&e.i.Ai()}function Enn(e){return ue(e,172)?""+h(e,172).a:e==null?null:Fs(e)}function knn(e){return ue(e,172)?""+h(e,172).a:e==null?null:Fs(e)}function FY(e,t){var s;this.f=e,this.b=t,s=h(Hn(e.b,t),282),this.c=s?s.b:null}function Ps(e,t,s){for(;s=0;)++t[0]}function cst(e,t){ISe=new f3,Rwt=t,OI=e,h(OI.b,63),Yge(OI,ISe,null),Kpt(OI)}function Inn(e,t){var s;s=h(G(t,(Qe(),rE)),333),s==(B3(),E4)&&_e(t,rE,e)}function S$(e,t){return Ca(t,st(e.f,0))||Ca(t,st(e.f,1))||Ca(t,st(e.f,2))}function obe(e,t){bC();var s,a;return s=F3(e),a=F3(t),!!s&&!!a&&!glt(s.k,a.k)}function _h(e,t,s){var a,l;for(a=10,l=0;l=0?IL(e,s,!0,!0):km(e,t,!0)}function BA(e){var t;for(t=e.p+1;t=0?(e.Yc(s),!0):!1}function UY(e){var t;return e.d!=e.r&&(t=$l(e),e.e=!!t&&t.xj()==Pvt,e.d=t),e.e}function ube(e,t){var s;for(Un(e),Un(t),s=!1;t.Ob();)s=s|e.Dc(t.Pb());return s}function lm(e,t){var s;return s=h(Hn(e.e,t),382),s?(rZe(e,s),s.e):null}function Rs(e,t){var s,a;return Rg(e),a=new qge(t,e.a),s=new PJe(a),new Rt(e,s)}function lst(e){var t,s;return t=e/60|0,s=e%60,s==0?""+t:""+t+":"+(""+s)}function k$(e){return ga(e,Ir)>0?Ir:ga(e,Co)<0?Co:Pn(e)}function Nnn(e){return Tve(e,(A5(),C4e))<0?-oGt(H5(e)):e.l+e.m*c4+e.h*Ug}function ty(e,t){var s=e.a[t],a=(cQ(),dne)[typeof s];return a?a(s):vme(typeof s)}function jnn(e,t){var s,a,l;l=t.c.i,s=h(Hn(e.f,l),56),a=s.d.c-s.e.c,jbe(t.a,a,0)}function lbe(e,t){var s;for(++e.d,++e.c[t],s=t+1;se.a[a]&&(a=s);return a}function pst(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&te||e>t)throw ee(new khe("fromIndex: 0, toIndex: "+e+u2e+t))}function Pst(e){this.b=new Fe,this.a=new Fe,this.c=new Fe,this.d=new Fe,this.e=e}function Ost(e){this.g=e,this.f=new Fe,this.a=m.Math.min(this.g.c.c,this.g.d.c)}function _st(e,t,s){oR.call(this),dbe(this),this.a=e,this.c=s,this.b=t.d,this.f=t.e}function Mst(e,t){var s;if(s=$P(e.Og(),t),!s)throw ee(new Gt(C0+t+kte));return s}function bs(e){var t,s;s=(t=new qG,t),On((!e.q&&(e.q=new $e(Yl,e,11,10)),e.q),s)}function Unn(e,t){var s;return s=t>0?t-1:t,FXe(cqt(Qst(d0e(new GS,s),e.n),e.j),e.k)}function Hnn(e,t,s,a){var l;e.j=-1,Oye(e,lye(e,t,s),(Uo(),l=h(t,65).Hj(),l.Jk(a)))}function qnn(e,t){var s,a;return s=h(nL(e.d,t),15),s?(a=t,e.e.nc(a,s)):null}function Dst(e){this.d=e,this.c=e.c.tc().Ic(),this.b=null,this.a=null,this.e=(ej(),cne)}function Nst(e){return e.a>=-.01&&e.a<=vd&&(e.a=0),e.b>=-.01&&e.b<=vd&&(e.b=0),e}function T$(e){var t;Lv(!!e.c),t=e.c.a,fl(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function A$(e,t){var s;return Rg(e),s=new ont(e,e.a.rd(),e.a.qd()|4,t),new Rt(e,s)}function jst(e,t,s,a,l,f){var v;v=AY(a),Po(v,l),uo(v,f),ar(e.a,a,new uR(v,t,s.f))}function P$(){P$=H,fre=new wX("GREEDY",0),X5e=new wX(ybt,1),dre=new wX(Oee,2)}function jf(){jf=H,Qs=new hX("BEGIN",0),Ua=new hX(C6,1),Zs=new hX("END",2)}function A5(){A5=H,E4e=Qa(cu,cu,524287),Ayt=Qa(0,0,JP),k4e=TY(1),TY(2),C4e=TY(0)}function Wnn(e){var t;return t=Ae(Ke(G(e,(Qe(),I1)))),t<0&&(t=0,_e(e,I1,t)),t}function O$(e,t){var s,a;for(a=e.Ic();a.Ob();)s=h(a.Pb(),69),_e(s,(Be(),P4),t)}function Gnn(e,t,s){var a;a=m.Math.max(0,e.b/2-.5),D8(s,a,1),Re(t,new dYe(s,a))}function Xnn(e,t,s){var a;return a=e.a.e[h(t.a,10).p]-e.a.e[h(s.a,10).p],Ci(gA(a))}function r2(e,t){var s;for(s=e;Xi(s);)if(s=Xi(s),s==t)return!0;return!1}function fe(e,t){if(e.g==null||t>=e.i)throw ee(new FX(t,e.i));return e.gi(t,e.g[t])}function Knn(e,t){return!!t&&e.b[t.g]==t?(ui(e.b,t.g,null),--e.c,!0):!1}function fl(e,t){var s;return s=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,s}function pc(e,t){var s,a,l,f;for(Ut(t),a=e.c,l=0,f=a.length;l0&&(e.a/=t,e.b/=t),e}function Bu(e){var t;return e.w?e.w:(t=Een(e),!!t&&!t.fh()&&(e.w=t),t)}function $st(e,t,s){if(W5(e,s),!e.wk()&&s!=null&&!e.rj(s))throw ee(new zG);return s}function P5(e,t){var s,a;a=e.a,s=$on(e,t,null),a!=t&&!e.e&&(s=v6(e,t,s)),s&&s.Ai()}function ern(e){var t;return e==null?null:(t=h(e,190),cfn(t,t.length))}function Lst(e,t,s){var a=function(){return e.apply(a,arguments)};return t.apply(a,s),a}function Tg(e){var t;return GC(e==null||Array.isArray(e)&&(t=UA(e),!(t>=14&&t<=16))),e}function dbe(e){e.b=(Xc(),T0),e.f=(hc(),A0),e.d=(Rf(2,Iy),new Ba(2)),e.e=new Yo}function _$(e){this.b=(Un(e),new vu(e)),this.a=new Fe,this.d=new Fe,this.e=new Yo}function dm(e){var t;return bY(e.e,e),hn(e.b),e.c=e.a,t=h(e.a.Pb(),43),e.b=Vbe(e),t}function hf(e){if(!(e>=0))throw ee(new Gt("tolerance ("+e+") must be >= 0"));return e}function GY(e,t,s){var a,l,f;return f=t>>5,l=t&31,a=Li(Hv(e.n[s][f],Pn(c1(l,1))),3),a}function trn(e,t){var s;return s=no(Xs(h(Hn(e.g,t),8)),L1e(h(Hn(e.f,t),454).b)),s}function M$(e,t){return vqt(v8(e.a,t,Pn(ko($h,Ah(Pn(ko(t==null?0:ri(t),Lh)),15)))))}function hbe(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)}function pbe(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)}function nrn(e,t){_n(t,hbt,1),Lme(Cqt(new HN(new XK(e,!1,!1,new Jk)))),yn(t)}function rrn(e,t){return m0(),Ya(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function irn(){return YL(),re(te(V5e,1),je,269,0,[nre,ore,tre,cre,ire,rre,are,sre])}function orn(){return E2(),re(te(KEe,1),je,259,0,[Wz,YO,QO,WEe,GEe,qEe,XEe,Gz])}function srn(){return dp(),re(te(o6t,1),je,275,0,[OCe,Wo,fa,dE,ea,xi,j4,kd])}function arn(){return l6(),re(te(LV,1),je,237,0,[foe,RV,$V,jV,loe,NV,DV,uoe])}function Fst(){Fst=H,dxt=tr((BL(),re(te(Z5e,1),je,274,0,[gre,pre,mre,bre,vre,bz])))}function Bst(){Bst=H,pxt=tr((CP(),re(te(o6e,1),je,272,0,[vz,n6e,i6e,t6e,r6e,yre])))}function zst(){zst=H,gxt=tr((a6(),re(te(f6e,1),je,273,0,[RI,a6e,l6e,u6e,c6e,s6e])))}function Vst(){Vst=H,ixt=tr((e4(),re(te(Y6,1),je,225,0,[K6,jI,X6,By,W2,q2])))}function Ust(){Ust=H,$St=tr(($8(),re(te(RSt,1),je,325,0,[eV,fie,hie,die,pie,lie])))}function Hst(){Hst=H,D6t=tr((LL(),re(te(A8e,1),je,310,0,[ooe,C8e,T8e,E8e,I8e,k8e])))}function qst(){qst=H,P4t=tr((RL(),re(te(VEe,1),je,311,0,[Yre,BEe,Kre,FEe,zEe,Hz])))}function Wst(){Wst=H,a6t=tr((Dh(),re(te(DCe,1),je,247,0,[Vie,o_,s_,vV,bV,mV])))}function Gst(){Gst=H,h6t=tr((hy(),re(te(Wie,1),je,290,0,[qie,l_,u_,Hie,a_,c_])))}function Xst(){Xst=H,B6t=tr((lo(),re(te($8e,1),je,100,0,[L0,Cd,mE,db,Hh,ja])))}function Kst(){Kst=H,_2t=tr((tn(),re(te(Une,1),je,266,0,[Ri,Yi,Pi,Da,ku,xd])))}function Yst(){Yst=H,jB=(jf(),re(te($y,1),je,230,0,[Qs,Ua,Zs])).length,Ene=jB}function crn(){return vy(),re(te(ts,1),je,92,0,[Sf,O1,Ef,Cf,Uh,Gl,Xu,kf,Wl])}function hd(){hd=H,gE=new RX(C6,0),Jy=new RX("HEAD",1),bE=new RX("TAIL",2)}function Qst(e,t){return e.n=t,e.n?(e.f=new Fe,e.e=new Fe):(e.f=null,e.e=null),e}function hm(e,t){var s;s=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,3,s,e.f))}function pm(e,t){var s;s=e.g,e.g=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,4,s,e.g))}function Oc(e,t){var s;s=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,5,s,e.i))}function _c(e,t){var s;s=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,6,s,e.j))}function O5(e,t){var s;s=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,1,s,e.j))}function D$(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,1,s,e.b))}function _5(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,3,s,e.b))}function M5(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,4,s,e.c))}function D5(e,t){var s;s=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,2,s,e.k))}function N$(e,t){var s;s=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Jv(e,0,s,e.a))}function rp(e,t){var s;s=e.s,e.s=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new xY(e,4,s,e.s))}function iy(e,t){var s;s=e.t,e.t=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new xY(e,5,s,e.t))}function XY(e,t){var s;s=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new xY(e,2,s,e.d))}function N5(e,t){var s;s=e.F,e.F=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,5,s,t))}function qA(e,t){var s;if(s=e.gc(),t<0||t>s)throw ee(new Vv(t,s));return new Bpe(e,t)}function b1(e,t){var s,a;return s=t in e.a,s&&(a=l1(e,t).he(),a)?a.a:null}function urn(e,t){var s,a,l;return s=(a=(Hb(),l=new ude,l),t&&Jye(a,t),a),Ebe(s,e),s}function WA(e,t){var s;return s=h(Hn((vj(),FV),e),54),s?s.sj(t):ge(dn,rt,1,t,5,1)}function Xd(e){var t,s,a,l;for(s=e,a=0,l=s.length;a=0),can(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function wbe(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=aP(e.f)),e.c).e}function nat(e,t){var s;return ue(t,43)?e.c.Kc(t):(s=LQ(e,t),mL(e,t),s)}function os(e,t,s){return jg(e,t),za(e,s),rp(e,0),iy(e,1),sp(e,!0),ap(e,!0),e}function Rf(e,t){if(e<0)throw ee(new Gt(t+" cannot be negative but was: "+e));return e}function j5(){return Bie||(Bie=new j1t,u2(Bie,re(te(V2,1),rt,130,0,[new hde]))),Bie}function ss(){ss=H,XI=new CX(rI,0),Rc=new CX("INPUT",1),nc=new CX("OUTPUT",2)}function j$(){j$=H,W5e=new yX("ARD",0),pz=new yX("MSD",1),lre=new yX("MANUAL",2)}function gm(){gm=H,Xz=new OX("BARYCENTER",0),YI=new OX(pbt,1),Kz=new OX(gbt,2)}function hrn(){return su(),re(te(F8e,1),je,258,0,[SE,C_,AV,w9,PV,_V,OV,soe,k_])}function prn(){return ZL(),re(te(ESe,1),je,249,0,[SSe,vSe,ySe,mSe,Sne,xSe,wSe,bSe,gSe])}function rat(){rat=H,Pyt=re(te(An,1),nr,24,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function grn(e,t,s){return ey(e,new yHe(t),new jr,new wHe(s),re(te(uu,1),je,132,0,[]))}function iat(e,t,s,a){this.mj(),this.a=t,this.b=e,this.c=null,this.c=new SJe(this,t,s,a)}function KY(e,t,s,a,l){this.d=e,this.n=t,this.g=s,this.o=a,this.p=-1,l||(this.o=-2-a-1)}function oat(){Y1e.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=mf}function sat(e){Uhe(),this.g=new Vn,this.f=new Vn,this.b=new Vn,this.c=new Kv,this.i=e}function xbe(){this.f=new Yo,this.d=new fhe,this.c=new Yo,this.a=new Fe,this.b=new Fe}function brn(e,t){_n(t,"Hierarchical port constraint processing",1),$an(e),kwn(e),yn(t)}function Sbe(e){var t,s;for(s=e.c.Ac().Ic();s.Ob();)t=h(s.Pb(),15),t.$b();e.c.$b(),e.d=0}function aat(e,t){var s,a;for(s=0,a=e.gc();s0?h(st(s.a,a-1),10):null}function b8(e,t){var s;s=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,2,s,e.k))}function R$(e,t){var s;s=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,8,s,e.f))}function $$(e,t){var s;s=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,7,s,e.i))}function Ebe(e,t){var s;s=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,8,s,e.a))}function kbe(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,0,s,e.b))}function Cbe(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,1,s,e.c))}function Ibe(e,t){var s;s=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,1,s,e.d))}function YY(e,t){var s;s=e.D,e.D=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,2,s,e.D))}function QY(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,4,s,e.c))}function Tbe(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,0,s,e.b))}function Abe(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,1,s,e.c))}function ZY(e,t){e.r>0&&e.c0&&e.g!=0&&ZY(e.i,t/e.r*e.i.d))}function Pbe(e,t,s,a,l,f){this.c=e,this.e=t,this.d=s,this.i=a,this.f=l,this.g=f,bnn(this)}function vrn(e){var t,s,a,l;for(s=e.a,a=0,l=s.length;at?(t<<=1,t>0?t:Q8):t}function JY(e){switch(z1e(e.e!=3),e.e){case 2:return!1;case 0:return!0}return $tn(e)}function yrn(e){var t,s;return 0>e?new Bhe:(t=e+1,s=new Lit(t,e),new ype(null,s))}function wrn(e,t){Mt();var s;return s=new x3(1),to(e)?hs(s,e,t):Ja(s.f,e,t),new LG(s)}function xrn(e,t){var s,a;return s=e.o+e.p,a=t.o+t.p,s>>31;a!=0&&(e[s]=a)}function Rrn(e,t,s){var a,l;return a=h((l=e.f,l||(e.f=new zw(e,e.c))).vc(t),15),!!a&&a.Fc(s)}function Aat(e,t,s){var a,l;return a=h((l=e.f,l||(e.f=new zw(e,e.c))).vc(t),15),!!a&&a.Kc(s)}function m8(e,t,s){var a;for(a=e.b[s&e.f];a;a=a.b)if(s==a.a&&Th(t,a.g))return a;return null}function v8(e,t,s){var a;for(a=e.c[s&e.f];a;a=a.d)if(s==a.f&&Th(t,a.i))return a;return null}function Pat(e){var t;return e==0?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+lst(e))}function $rn(e,t){return U5(),e==Fm&&t==Fy||e==Fy&&t==Fm||e==U2&&t==Ly||e==Ly&&t==U2}function Lrn(e,t){return U5(),e==Fm&&t==Ly||e==Fm&&t==U2||e==Fy&&t==U2||e==Fy&&t==Ly}function Frn(e,t){typeof window===GP&&typeof window.$gwt===GP&&(window.$gwt[e]=t)}function Oat(e,t){return id(),hf(vd),m.Math.abs(0-t)<=vd||t==0||isNaN(0)&&isNaN(t)?0:e/t}function dl(e,t,s,a,l,f,v){Jn.call(this,e,t),this.d=s,this.e=a,this.c=l,this.b=f,this.a=fd(v)}function _at(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function Brn(e){return e.b.c.i.k==(tn(),Pi)?h(G(e.b.c.i,(Be(),Mr)),11):e.b.c}function Mat(e){return e.b.d.i.k==(tn(),Pi)?h(G(e.b.d.i,(Be(),Mr)),11):e.b.d}function Dat(e){switch(e.g){case 2:return He(),Xt;case 4:return He(),nn;default:return e}}function Nat(e){switch(e.g){case 1:return He(),xn;case 3:return He(),Wt;default:return e}}function Aa(e,t){var s;return e.b?null:(s=Unn(e,e.g),lr(e.a,s),s.i=e,e.d=t,s)}function zrn(e,t){var s;return s=Kve(e),Cye(new ot(s.c,s.d),new ot(s.b,s.a),e.pf(),t,e.Ef())}function Vrn(e){var t,s,a;for(a=0,s=new Q(e.b);s.al&&t.af&&t.b0&&(this.g=this.mi(this.i+(this.i/8|0)+1),e.Oc(this.g))}function gc(e){return eO1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw ee(new aa)}function Kat(e){var t;e.d==null?(++e.e,e.f=0,iut(null)):(++e.e,t=e.d,e.d=null,e.f=0,iut(t))}function ain(e){var t;if(e){if(t=e,t.dc())throw ee(new aa);return t.Xb(t.gc()-1)}return rrt(e.Ic())}function jl(e){var t,s,a,l;return l=e,a=0,l<0&&(l+=Ug,a=E1),s=Ci(l/c4),t=Ci(l-s*c4),Qa(t,s,a)}function XA(e){var t,s,a;for(a=0,s=new S3(e.a);s.a=128?!1:e<64?pC(Li(c1(1,e),s),0):pC(Li(c1(1,e-64),t),0)}function sQ(e,t,s,a){return s==1?(!e.n&&(e.n=new $e(Ms,e,1,7)),Mo(e.n,t,a)):rye(e,t,s,a)}function JA(e,t){var s,a;return a=(s=new OG,s),za(a,t),On((!e.A&&(e.A=new Tc(rc,e,7)),e.A),a),a}function vin(e,t,s){var a,l,f,v;return f=null,v=t,l=um(v,Mte),a=new VYe(e,s),f=(zun(a.a,a.b,l),l),f}function G3(e,t){var s,a;if(a=0,e<64&&e<=t)for(t=t<64?t:63,s=e;s<=t;s++)a=ad(a,c1(1,s));return a}function Di(e,t){var s,a;return s=t.Nc(),a=s.length,a==0?!1:(r0e(e.c,e.c.length,s),!0)}function eP(e,t){var s,a;for(Ut(t),a=t.Ic();a.Ob();)if(s=a.Pb(),!e.Fc(s))return!1;return!0}function yin(e,t,s){var a,l;for(l=t.tc().Ic();l.Ob();)a=h(l.Pb(),43),e.wc(a.ad(),a.bd(),s);return e}function rct(e,t){var s,a;for(a=new Q(e.b);a.a>22),l=e.h+t.h+(a>>22),Qa(s&cu,a&cu,l&E1)}function uct(e,t){var s,a,l;return s=e.l-t.l,a=e.m-t.m+(s>>22),l=e.h-t.h+(a>>22),Qa(s&cu,a&cu,l&E1)}function lct(e,t,s){var a;Gc(e.a),pc(s.i,new gWe(e)),a=new Gj(h(Hn(e.a,t.b),63)),Zut(e,a,t),s.f=a}function qbe(e,t,s){var a;if(a=e.gc(),t>a)throw ee(new Vv(t,a));return e.ci()&&(s=jnt(e,s)),e.Qh(t,s)}function Wbe(e,t){switch(t){case 0:!e.o&&(e.o=new tu((Ma(),Ip),pb,e,0)),e.o.c.$b();return}IZ(e,t)}function fct(e){switch(e.g){case 1:return R0;case 2:return Vh;case 3:return v_;default:return y_}}function Tin(e){switch(h(G(e,(Qe(),yc)),165).g){case 2:case 4:return!0;default:return!1}}function Gbe(e){var t,s;return s=(Hb(),t=new RN,t),e&&On((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),s),s}function Ain(e){var t;return t=new B,t.a=e,t.b=Rin(e),t.c=ge(Ze,Oe,2,2,6,1),t.c[0]=Pat(e),t.c[1]=Pat(e),t}function Pin(e,t){var s,a;for(FR(t,"predicate"),a=0;e.Ob();a++)if(s=e.Pb(),t.Lb(s))return a;return-1}function Xbe(e){Mt();var t,s,a;for(a=0,s=e.Ic();s.Ob();)t=s.Pb(),a=a+(t!=null?ri(t):0),a=a|0;return a}function dct(e){var t,s,a;return s=e.n,a=e.o,t=e.d,new cl(s.a-t.b,s.b-t.d,a.a+(t.b+t.c),a.b+(t.d+t.a))}function Oin(e,t){return!e||!t||e==t?!1:ym(e.b.c,t.b.c+t.b.b)<0&&ym(t.b.c,e.b.c+e.b.b)<0}function nP(e,t,s){switch(s.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function V5(e,t,s,a,l){var f,v;for(v=s;v<=l;v++)for(f=t;f<=a;f++)g2(e,f,v)||JL(e,f,v,!0,!1)}function _in(e){var t,s,a,l;for(s=e.a,a=0,l=s.length;a=0,"Negative initial capacity"),cR(t>=0,"Non-positive load factor"),Gc(this)}function Kbe(e){var t;if(e<0)return Co;if(e==0)return 0;for(t=Q8;(t&e)==0;t>>=1);return t}function H5(e){var t,s,a;return t=~e.l+1&cu,s=~e.m+(t==0?1:0)&cu,a=~e.h+(t==0&&s==0?1:0)&E1,Qa(t,s,a)}function bct(e){var t,s;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,s=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||s}function mct(e){var t,s;return s=new l$,Cs(s,e),_e(s,(u0(),x4),e),t=new Vn,Abn(e,s,t),Zvn(e,s,t),s}function _e(e,t,s){return s==null?(!e.q&&(e.q=new Vn),U3(e.q,t)):(!e.q&&(e.q=new Vn),Fr(e.q,t,s)),e}function rP(e,t,s){return s==null?(!e.q&&(e.q=new Vn),U3(e.q,t)):(!e.q&&(e.q=new Vn),Fr(e.q,t,s)),e}function Nin(e,t){for(;e.g==null&&!e.c?dge(e):e.g==null||e.i!=0&&h(e.g[e.i-1],49).Ob();)Yqt(t,HL(e))}function vct(e,t){this.b=e,Ww.call(this,(h(fe(Ce((n0(),Bt).o),10),17),t.i),t.g),this.a=(iQ(),goe)}function Ybe(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function Qbe(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function Zbe(e,t,s){this.q=new m.Date,this.q.setFullYear(e+w0,t,s),this.q.setHours(0,0,0,0),H8(this,0)}function yct(e,t){var s,a,l,f;for(s=!1,a=e.a[t].length,f=0;fs&&(s=e[t]);return s}function lQ(e,t,s){var a,l,f,v;return f=null,v=t,l=um(v,"labels"),a=new ZYe(e,s),f=(t1n(a.a,a.b,l),l),f}function Lin(e,t,s,a){var l;return l=Vye(e,t,s,a),!l&&(l=Uon(e,s,a),!!l&&!A2(e,t,l))?null:l}function Fin(e,t,s,a){var l;return l=Uye(e,t,s,a),!l&&(l=TQ(e,s,a),!!l&&!A2(e,t,l))?null:l}function Bin(e,t,s){return!hC(Kr(new Rt(null,new Lt(e.c,16)),new tC(new DYe(t,s)))).sd((hg(),z6))}function q5(){q5=H,B5e=new uRe,z5e=new lRe,U2t=new fRe,V2t=new dRe,z2t=new hRe,F5e=(Ut(z2t),new le)}function Mg(){Mg=H,Ky=new kX(S0,0),YEe=new kX("NODES_AND_EDGES",1),tie=new kX("PREFER_EDGES",2)}function Ect(e){switch(e.g){case 0:return new DFe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function kct(e){switch(e.g){case 0:return new jFe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function tme(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return Vme(e,t)}function zin(e,t){switch(t.g){case 0:ue(e.b,621)||(e.b=new Uat);break;case 1:ue(e.b,622)||(e.b=new het)}}function Vin(e,t){var s;return s=Oo(e,t),oX(aY(e,t),0)|Sqt(aY(e,s),0)?s:Oo(gF,aY(Hv(s,63),1))}function Cct(e,t){var s;for(s=0;s1||t>=0&&e.b<3)}function Uin(e,t,s){if(Un(t),s.Ob())for(I1e(t,vtt(s.Pb()));s.Ob();)I1e(t,e.a),I1e(t,vtt(s.Pb()));return t}function rme(e){Mt();var t,s,a;for(a=1,s=e.Ic();s.Ob();)t=s.Pb(),a=31*a+(t!=null?ri(t):0),a=a|0;return a}function Hin(e,t,s,a,l){var f;return f=jye(e,t),s&&uQ(f),l&&(e=Icn(e,t),a?I0=H5(e):I0=Qa(e.l,e.m,e.h)),f}function Ict(e,t,s){var a,l;return ue(t,144)&&!!s?(a=h(t,144),l=s,e.a[a.b][l.b]+e.a[l.b][a.b]):0}function ime(e,t,s){var a;for(a=s-1;a>=0&&e[a]===t[a];a--);return a<0?0:oX(Li(e[a],Jo),Li(t[a],Jo))?-1:1}function Dg(e){var t,s;for(s=new Q(e.a.b);s.a=e.b.c.length||(cme(e,2*t+1),s=2*t+2,sa?1:0}function Qin(e,t){var s,a;for(a=sr(e,0);a.b!=a.d.c;)s=h(or(a),231),s.e.length>0&&(t.td(s),s.i&&Bon(s))}function gQ(e,t){var s;return t===e?!0:ue(t,222)?(s=h(t,222),Ar(e.Zb(),s.Zb())):!1}function bQ(e,t,s,a,l){var f,v;for(v=s;v<=l;v++)for(f=t;f<=a;f++)if(g2(e,f,v))return!0;return!1}function mQ(e,t){var s,a;return a=h(Vt(e.a,4),124),s=ge(hoe,Vte,410,t,0,1),a!=null&&xa(a,0,s,0,a.length),s}function _ct(e,t){var s;return s=new GZ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(s.c=e),s}function Zin(e,t){var s,a;for(a=e.Zb().Ac().Ic();a.Ob();)if(s=h(a.Pb(),15),s.Fc(t))return!0;return!1}function Mct(e,t,s){var a,l,f,v;for(Ut(s),v=!1,f=e.Xc(t),l=s.Ic();l.Ob();)a=l.Pb(),f.Rb(a),v=!0;return v}function Jin(e,t){var s;return e===t?!0:ue(t,84)?(s=h(t,84),sye(Jb(e),s.tc())):!1}function ga(e,t){var s;return As(e)&&As(t)&&(s=e-t,!isNaN(s))?s:Tve(As(e)?jl(e):e,As(t)?jl(t):t)}function vQ(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.kl()}}function Dct(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ll()}}function Nct(e){var t;if(t=e.a.c.length,t>0)return l5(t-1,e.a.c.length),tp(e.a,t-1);throw ee(new wGe)}function jct(e,t,s){var a,l;for(l=s.Ic();l.Ob();)if(a=h(l.Pb(),43),e.re(t,a.bd()))return!0;return!1}function Rct(e,t,s){return e.d[t.p][s.p]||(Zan(e,t,s),e.d[t.p][s.p]=!0,e.d[s.p][t.p]=!0),e.a[t.p][s.p]}function eon(e,t){var s;return!e||e==t||!Lo(t,(Be(),Um))?!1:(s=h(G(t,(Be(),Um)),10),s!=e)}function $ct(e,t){var s;if(t.c.length!=0){for(;tye(e,t);)UL(e,t,!1);s=Q$(t),e.a&&(e.a.gg(s),$ct(e,s))}}function G5(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),YY(e,t==null?null:(Ut(t),t)),e.C&&e.tk(null)}function ton(e,t,s,a){return jR(),new YG(re(te(eb,1),bF,43,0,[(QQ(e,t),new Vw(e,t)),(QQ(s,a),new Vw(s,a))]))}function l2(){l2=H,U4=new $j("ELK",0),q8e=new $j("JSON",1),H8e=new $j("DOT",2),W8e=new $j("SVG",3)}function gd(){gd=H,tSe=new dX("CONCURRENT",0),Wu=new dX("IDENTITY_FINISH",1),Ry=new dX("UNORDERED",2)}function oP(){oP=H,aV=new DX(S0,0),Pke=new DX("RADIAL_COMPACTION",1),Oke=new DX("WEDGE_COMPACTION",2)}function eL(){eL=H,D8e=new bg(15),N6t=new $o((Pr(),j0),D8e),p9=L4,P8e=g6t,O8e=hE,M8e=p_,_8e=y6t}function oy(){oy=H,l5t=(Pr(),L4),f5t=fb,Cie=(Bye(),r5t),Iie=i5t,Rke=o5t,cV=s5t,uV=a5t,n_=c5t,$ke=u5t}function yQ(){yQ=H,OSe=(hj(),Tne),PSe=new $t(k2e,OSe),Bwt=new Xr(C2e),zwt=new Xr(I2e),Vwt=new Xr(T2e)}function Lct(e,t,s){if(e>t)throw ee(new Gt(wF+e+Egt+t));if(e<0||t>s)throw ee(new khe(wF+e+f2e+t+u2e+s))}function non(e,t,s){if(t<0)throw ee(new fs(Kbt+t));t1&&(Mt(),co(t,e.b),lin(e.c,t))}function wQ(e,t,s){var a,l,f;for(a=new ci,f=sr(s,0);f.b!=f.d.c;)l=h(or(f),8),lr(a,new xs(l));Mct(e,t,a)}function ron(e){var t,s,a;for(t=0,a=ge(Hi,Oe,8,e.b,0,1),s=sr(e,0);s.b!=s.d.c;)a[t++]=h(or(s),8);return a}function ume(e){var t;return t=(!e.a&&(e.a=new $e(M1,e,9,5)),e.a),t.i!=0?Nqt(h(fe(t,0),666)):null}function ion(e){var t;for(Un(e),zpe(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&Yn(e);t++)Rn(e);return t}function oon(e,t){var s,a;return s=h(e.d.zc(t),15),s?(a=e.e.hc(),a.Ec(s),e.e.d-=s.gc(),s.$b(),a):null}function lme(e,t){var s,a;if(a=e.c[t],a!=0)for(e.c[t]=0,e.d-=a,s=t+1;sYF?e-s>YF:s-e>YF}function Hct(e){if(!e.a||(e.a.i&8)==0)throw ee(new Ws("Enumeration class expected for layout option "+e.f))}function qct(e){Unt.call(this,"The given string does not match the expected format for individual spacings.",e)}function Wct(){IHt.call(this,new Qge(ny(16))),Rf(2,igt),this.b=2,this.a=new Q0e(null,null,0,null),IT(this.a,this.a)}function Gct(e){dXe(),Wj(this),BR(this),this.e=e,Jht(this,e),this.g=e==null?mc:Fs(e),this.a="",this.b=e,this.a=""}function hme(){this.a=new OFe,this.f=new cWe(this),this.b=new uWe(this),this.i=new lWe(this),this.e=new fWe(this)}function X5(){X5=H,sie=new TX("CONSERVATIVE",0),rke=new TX("CONSERVATIVE_SOFT",1),KI=new TX("SLOPPY",2)}function EQ(){EQ=H,Fne=Mnt(re(te(d9,1),je,108,0,[(as(),xf),qf])),Bne=Mnt(re(te(d9,1),je,108,0,[P1,T1]))}function fon(e){var t,s,a,l;for(a=e.b.a,s=a.a.ec().Ic();s.Ob();)t=h(s.Pb(),554),l=new Dht(t,e.e,e.f),Re(e.g,l)}function jg(e,t){var s,a,l;a=e.ik(t,null),l=null,t&&(l=(ZS(),s=new Lb,s),P5(l,e.r)),a=bd(e,l,a),a&&a.Ai()}function Xct(e,t){var s;for(s=0;sl&&(pft(t.q,l),a=s!=t.q.c)),a}function Yct(e,t){var s,a,l,f,v,w,S,C;return S=t.i,C=t.j,a=e.f,l=a.i,f=a.j,v=S-l,w=C-f,s=m.Math.sqrt(v*v+w*w),s}function gme(e,t){var s,a;return a=vL(e),a||(s=(hJ(),vdt(t)),a=new lGe(s),On(a.Qk(),e)),a}function gon(e){var t;return t=new Ost(e),IA(e.a,A2t,new gu(re(te(RO,1),rt,366,0,[t]))),t.d&&Re(t.f,t.d),t.f}function bon(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw ee(new aa);return t=e.a,e.a+=e.c.c,++e.b,Ue(t)}function Qct(e){var t;if(e.c!=0)return e.c;for(t=0;t=a||ts)throw ee(new fs(wF+e+f2e+t+", size: "+s));if(e>t)throw ee(new Gt(wF+e+Egt+t))}function vme(e){throw cQ(),ee(new lXe("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function aP(e){return v0(),e<0?e!=-1?new sve(-1,-e):gne:e<=10?U4e[Ci(e)]:new sve(1,e)}function oL(e){var t;switch(e.gc()){case 0:return sne;case 1:return new EK(Un(e.Xb(0)));default:return t=e,new iY(t)}}function rut(e){switch(qd(),e.gc()){case 0:return WK(),y4e;case 1:return new w3(e.Ic().Pb());default:return new Ghe(e)}}function ip(e){switch(qd(),e.c){case 0:return WK(),y4e;case 1:return new w3(_dt(new S3(e)));default:return new cXe(e)}}function yme(e,t){switch(t){case 1:!e.n&&(e.n=new $e(Ms,e,1,7)),Cn(e.n);return;case 2:b8(e,null);return}Wbe(e,t)}function Con(e,t){var s,a,l;for(l=1,s=e,a=t>=0?t:-t;a>0;)a%2==0?(s*=s,a=a/2|0):(l*=s,a-=1);return t<0?1/l:l}function wme(e,t){var s,a,l;for(l=1,s=e,a=t>=0?t:-t;a>0;)a%2==0?(s*=s,a=a/2|0):(l*=s,a-=1);return t<0?1/l:l}function Ion(e){var t,s,a;for(a=0,s=new Q(e.a);s.as));)l>=t&&++a;return a}function Oon(e){var t;return t=h(lm(e.c.c,""),227),t||(t=new $3(YS(QS(new d3,""),"Other")),Lg(e.c.c,"",t)),t}function S8(e){var t;return(e.Db&64)!=0?gf(e):(t=new _l(gf(e)),t.a+=" (name: ",rs(t,e.zb),t.a+=")",t.a)}function xme(e,t,s){var a,l;return l=e.sb,e.sb=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Gi(e,1,4,l,t),s?s.zi(a):s=a),s}function E8(e,t,s){var a;if(a=e.gc(),t>a)throw ee(new Vv(t,a));if(e.ci()&&e.Fc(s))throw ee(new Gt(vO));e.Sh(t,s)}function hl(e,t,s){if(t<0)xye(e,s);else{if(!s.Dj())throw ee(new Gt(C0+s.ne()+gI));h(s,65).Ij().Qj(e,e.th(),t)}}function cP(e,t,s){var a;e.li(e.i+1),a=e.ji(t,s),t!=e.i&&xa(e.g,t,e.g,t+1,e.i-t),ui(e.g,t,a),++e.i,e.Yh(t,s),e.Zh()}function Sme(e,t,s){var a,l;return l=e.r,e.r=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Gi(e,1,8,l,e.r),s?s.zi(a):s=a),s}function _on(e,t,s){var a,l;return a=new p1(e.e,4,13,(l=t.c,l||(At(),Pd)),null,up(e,t),!1),s?s.zi(a):s=a,s}function Mon(e,t,s){var a,l;return a=new p1(e.e,3,13,null,(l=t.c,l||(At(),Pd)),up(e,t),!1),s?s.zi(a):s=a,s}function op(e,t){var s,a;return s=h(t,664),a=s.qk(),!a&&s.rk(a=ue(t,87)?new cQe(e,h(t,26)):new Crt(e,h(t,148))),a}function Don(e,t){var s,a,l,f;if(t.qi(e.a),f=h(Vt(e.a,8),1908),f!=null)for(s=f,a=0,l=s.length;a-129&&e<128?(t=e+128,s=(Cet(),N4e)[t],!s&&(s=N4e[t]=new _de(e)),s):new _de(e)}function Ue(e){var t,s;return e>-129&&e<128?(t=e+128,s=(pet(),O4e)[t],!s&&(s=O4e[t]=new Pde(e)),s):new Pde(e)}function Ime(e){var t,s;return t=e.k,t==(tn(),Pi)?(s=h(G(e,(Be(),Js)),61),s==(He(),Wt)||s==xn):!1}function Fon(e){var t,s,a;for(t=h(G(e,(ua(),pke)),14),a=t.Ic();a.Ob();)s=h(a.Pb(),188),lr(s.b.d,s),lr(s.c.b,s)}function Bon(e){var t;e.g&&(t=e.c.Of()?e.f:e.a,rwe(t.a,e.o,!0),rwe(t.a,e.o,!1),_e(e.o,(Qe(),yi),(lo(),db)))}function zon(e){var t;if(!e.a)throw ee(new Ws("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,cnt(e,t),unt(e,t)}function Von(e,t){var s;if(s=Hn(e.k,t),s==null)throw ee(new Fd("Port did not exist in input."));return $be(t,s),null}function Uon(e,t,s){var a,l,f;return f=(l=f6(e.b,t),l),f&&(a=h(aF(FA(e,f),""),26),a)?Vye(e,a,t,s):null}function TQ(e,t,s){var a,l,f;return f=(l=f6(e.b,t),l),f&&(a=h(aF(FA(e,f),""),26),a)?Uye(e,a,t,s):null}function lut(e,t){var s,a;for(a=new pn(e);a.e!=a.i.gc();)if(s=h(vn(a),138),Pe(t)===Pe(s))return!0;return!1}function Hon(e,t,s){var a,l;for(l=ue(t,97)&&(h(t,17).Bb&Bo)!=0?new BX(t,e):new z5(t,e),a=0;a>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function Gon(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,ui(e.a,e.c,null),t)}function Xon(e){var t,s,a;for(a=0,s=e.length,t=0;t=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function go(e,t){return et?1:e==t?e==0?go(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function put(e){switch(e.g){case 2:return qf;case 1:return xf;case 4:return T1;case 3:return P1;default:return A1}}function Tme(e){switch(e.g){case 1:return Xt;case 2:return Wt;case 3:return nn;case 4:return xn;default:return Us}}function fP(e){switch(e.g){case 1:return xn;case 2:return Xt;case 3:return Wt;case 4:return nn;default:return Us}}function aL(e){switch(e.g){case 1:return nn;case 2:return xn;case 3:return Xt;case 4:return Wt;default:return Us}}function Ame(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new cl(t.d,0,t.a,t.b);default:return null}}function Rg(e){if(e.c)Rg(e.c);else if(e.d)throw ee(new Ws("Stream already terminated, can't be modified or used"))}function Yon(e,t){_n(t,"Sort end labels",1),mi(Kr(Rs(new Rt(null,new Lt(e.b,16)),new FS),new mT),new vT),yn(t)}function Y5(e,t){var s;s=(e.Bb&Ty)!=0,t?e.Bb|=Ty:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new df(e,1,12,s,t))}function Q5(e,t){var s;s=(e.Bb&mf)!=0,t?e.Bb|=mf:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new df(e,1,10,s,t))}function Z5(e,t){var s;s=(e.Bb&jy)!=0,t?e.Bb|=jy:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new df(e,1,11,s,t))}function J5(e,t){var s;s=(e.Bb&Nc)!=0,t?e.Bb|=Nc:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new df(e,1,15,s,t))}function AQ(e,t){var s,a,l;e.d==null?(++e.e,--e.f):(l=t.ad(),s=t.Nh(),a=(s&Ir)%e.d.length,Ftn(e,a,Tht(e,a,s,l)))}function dP(e,t,s){var a,l;return e._i()?(l=e.aj(),a=jZ(e,t,s),e.Vi(e.Ui(7,Ue(s),a,t,l)),a):jZ(e,t,s)}function Qon(e,t){var s;return s=go(e.b.c,t.b.c),s!=0||(s=go(e.a.a,t.a.a),s!=0)?s:go(e.a.b,t.a.b)}function Zon(e,t){var s,a;for(a=new Q(e.a);a.a=1?qf:T1):s}function rsn(e){switch(h(G(e,(Be(),rb)),301).g){case 1:_e(e,rb,(g1(),k4));break;case 2:_e(e,rb,(g1(),K2))}}function isn(e){switch(h(G(e,(Qe(),yp)),216).g){case 1:return new V$e;case 3:return new G$e;default:return new z$e}}function osn(e,t){var s;if(s=$P(e.Og(),t),ue(s,97))return h(s,17);throw ee(new Gt(C0+t+"' is not a valid reference"))}function ssn(e){var t,s,a;for(s=0,a=e.length;s>10)+tO&Ti,t[1]=(e&1023)+56320&Ti,Rl(t,0,t.length)}function csn(e){var t;return t=gy(e),t>34028234663852886e22?pi:t<-34028234663852886e22?Oi:t}function usn(e){var t,s;for(s=s1n(Bu(Qv(e))).Ic();s.Ob();)if(t=Ln(s.Pb()),U8(e,t))return htn((JKe(),wEt),t);return null}function mut(e){var t,s,a,l;for(t=new rJe(e.Hd().gc()),l=0,a=q3(e.Hd().Ic());a.Ob();)s=a.Pb(),OJt(t,s,Ue(l++));return Yfn(t.a)}function lsn(e,t,s,a){var l,f,v;for(l=t+1;lt&&a.ue(e[f-1],e[f])>0;--f)v=e[f],ui(e,f,e[f-1]),ui(e,f-1,v)}function fsn(e,t,s){e.n=mg(W0,[Oe,QJ],[361,24],14,[s,Ci(m.Math.ceil(t/32))],2),e.o=t,e.p=s,e.j=t-1>>1,e.k=s-1>>1}function DQ(){Gve();var e,t,s;s=Vwn+++Date.now(),e=Ci(m.Math.floor(s*rO))&yF,t=Ci(s-e*c2e),this.a=e^1502,this.b=t^ree}function vut(e,t,s,a,l,f){this.e=new Fe,this.f=(ss(),XI),Re(this.e,e),this.d=t,this.a=s,this.b=a,this.f=l,this.c=f}function I8(e){var t;this.a=(t=h(e.e&&e.e(),9),new al(t,h(lf(t,t.length),9),0)),this.b=ge(dn,rt,1,this.a.a.length,5,1)}function dsn(e,t){var s,a,l;for(l=new Vn,a=t.tc().Ic();a.Ob();)s=h(a.Pb(),43),Fr(l,s.ad(),tin(e,h(s.bd(),14)));return l}function yut(e,t){var s;switch(s=h(is(e.b,t),121).n,t.g){case 1:s.d=e.s;break;case 3:s.a=e.s}e.B&&(s.b=e.B.b,s.c=e.B.c)}function hsn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function wut(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function uL(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw ee(new Gt("Node "+t+" not part of edge "+e))}function pl(e,t,s,a){if(t<0)Gye(e,s,a);else{if(!s.Dj())throw ee(new Gt(C0+s.ne()+gI));h(s,65).Ij().Oj(e,e.th(),t,a)}}function xut(e,t){var s,a;for(s=sr(e,0);s.b!=s.d.c;){if(a=AT(Ke(or(s))),a==t)return;if(a>t){vY(s);break}}mA(s,t)}function psn(e,t){var s,a,l;a=t2(t),l=Ae(Ke(uy(a,(Qe(),wf)))),s=m.Math.max(0,l/2-.5),D8(t,s,1),Re(e,new yYe(t,s))}function NQ(e,t){var s,a,l;for(l=0,a=h(t.Kb(e),19).Ic();a.Ob();)s=h(a.Pb(),18),_t(It(G(s,(Be(),_0))))||++l;return l}function Et(e,t){var s,a,l,f,v;if(s=t.f,Lg(e.c.d,s,t),t.g!=null)for(l=t.g,f=0,v=l.length;f>>0,t.toString(16)):e.toString()}function Dme(e,t,s,a){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return Eme(e,t,s,a)}function bsn(e){return e.k!=(tn(),Ri)?!1:E5(new Rt(null,new em(new bn(mn(Ni(e).a.Ic(),new j)))),new D$e)}function msn(e){return e.e==null?e:(!e.c&&(e.c=new GZ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function vsn(e){return EQ(),Zt(),!!(wut(h(e.a,79).j,h(e.b,108))||h(e.a,79).d.e!=0&&wut(h(e.a,79).j,h(e.b,108)))}function ysn(e){zv();var t,s,a,l;for(t=e.o.b,a=h(h(Br(e.r,(He(),xn)),21),81).Ic();a.Ob();)s=h(a.Pb(),110),l=s.e,l.b+=t}function wsn(e){var t,s,a;for(this.a=new s1,a=new Q(e);a.a=l)return t.c+s;return t.c+t.b.gc()}function Ssn(e,t){var s,a;for(a=e.e.a.ec().Ic();a.Ob();)if(s=h(a.Pb(),265),_fn(t,s.d)||$dn(t,s.d))return!0;return!1}function Esn(e,t,s){var a,l;for(a=Li(s,Jo),l=0;ga(a,0)!=0&&l0&&(Fn(t-1,e.length),e.charCodeAt(t-1)==58)&&!jQ(e,E9,k9))}function hP(e,t){var s;return As(e)&&As(t)&&(s=e%t,eO1?ad(c1(t.a[1],32),Li(t.a[0],Jo)):Li(t.a[0],Jo),cm(ko(t.e,s))))}function Isn(e,t,s){var a;a=s,!a&&(a=d0e(new GS,0)),_n(a,Jgt,2),Clt(e.b,t,Aa(a,1)),Zmn(e,t,Aa(a,1)),Uyn(t,Aa(a,1)),yn(a)}function Tsn(e,t,s,a,l){$u(),bf(cf(af(sf(uf(new Ol,0),l.d.e-e),t),l.d)),bf(cf(af(sf(uf(new Ol,0),s-l.a.e),l.a),a))}function cp(){cp=H,roe=new Dj(rI,0),m_=new Dj("POLYLINE",1),h9=new Dj("ORTHOGONAL",2),B4=new Dj("SPLINES",3)}function gl(){gl=H,qO=new VT(S0,0),BI=new VT("FIRST",1),M0=new VT(bbt,2),zI=new VT("LAST",3),Vy=new VT(mbt,4)}function lL(){lL=H,Eie=new _X("OVERLAP_REMOVAL",0),xie=new _X("COMPACTION",1),Sie=new _X("GRAPH_SIZE_CALCULATION",2)}function fL(){fL=H,Gke=new MX("ASPECT_RATIO_DRIVEN",0),Pie=new MX("MAX_SCALE_DRIVEN",1),Wke=new MX("AREA_DRIVEN",2)}function RQ(){RQ=H,gj(),Uz=(Qe(),Km),A4t=fd(re(te(zie,1),n3e,146,0,[Bz,wf,D4,Xm,Xy,Hre,cE,qre,qI,tx,cb,nx]))}function Nme(e){RQ(),this.c=fd(re(te(s2n,1),rt,810,0,[T4t])),this.b=new Vn,this.a=e,Fr(this.b,Uz,1),pc(A4t,new wWe(this))}function ym(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t))}function Sut(e,t){e.hj();try{e.d.Tc(e.e++,t),e.f=e.d.j,e.g=-1}catch(s){throw s=ni(s),ue(s,73)?ee(new ol):ee(s)}}function K3(e){switch(He(),e.g){case 4:return Wt;case 1:return nn;case 3:return xn;case 2:return Xt;default:return Us}}function Eut(e){switch(e.g){case 0:return new EFe;case 1:return new IFe;default:throw ee(new Gt(Aee+(e.f!=null?e.f:""+e.g)))}}function Asn(e){switch(e.g){case 0:return new kFe;case 1:return new CFe;default:throw ee(new Gt(ute+(e.f!=null?e.f:""+e.g)))}}function Psn(e){switch(e.g){case 1:return new bFe;case 2:return new jZe;default:throw ee(new Gt(ute+(e.f!=null?e.f:""+e.g)))}}function kut(e){switch(e.g){case 0:return new vhe;case 1:return new HGe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function Osn(e){var t,s;if(e.b)return e.b;for(s=wd?null:e.d;s;){if(t=wd?null:s.b,t)return t;s=wd?null:s.d}return r5(),eSe}function Cut(e,t){var s;return e.d?sd(e.b,t)?h(Hn(e.b,t),52):(s=t.Hf(),Fr(e.b,t,s),s):t.Hf()}function jme(e,t){var s;return Pe(e)===Pe(t)?!0:ue(t,90)?(s=h(t,90),e.e==s.e&&e.d==s.d&&ftn(e,s.a)):!1}function _sn(e){var t,s,a,l,f;return f=Xve(e),s=_T(e.c),a=!s,a&&(l=new cg,Nf(f,"knownLayouters",l),t=new QWe(l),Eo(e.c,t)),f}function Msn(e,t){var s,a,l,f;t&&(l=b1(t,"x"),s=new VWe(e),O5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new HWe(e),D5(a.a,(Ut(f),f)))}function Dsn(e,t){var s,a,l,f;t&&(l=b1(t,"x"),s=new WWe(e),_5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new GWe(e),M5(a.a,(Ut(f),f)))}function Nsn(e,t){var s,a,l;for(Ut(t),s=!1,a=new Q(e);a.a0&&(a+=l,++s);return s>1&&(a+=e.d*(s-1)),a}function $me(e){var t,s,a;for(a=new X1,a.a+="[",t=0,s=e.gc();t>5,t=e&31,a=ge(An,nr,24,s+1,15,1),a[s]=1<=0;--a)for(t=s[a],l=0;l3;)l*=10,--f;e=(e+(l>>1))/l|0}return a.i=e,!0}function Vsn(e,t,s){var a,l;return a=Ae(e.p[t.i.p])+Ae(e.d[t.i.p])+t.n.b+t.a.b,l=Ae(e.p[s.i.p])+Ae(e.d[s.i.p])+s.n.b+s.a.b,l-a}function Put(e,t){var s,a;e.a=Oo(e.a,1),e.c=m.Math.min(e.c,t),e.b=m.Math.max(e.b,t),e.d+=t,s=t-e.f,a=e.e+s,e.f=a-e.e-s,e.e=a}function LQ(e,t){var s,a,l;return e.f>0?(e.lj(),a=t==null?0:ri(t),l=(a&Ir)%e.d.length,s=Tht(e,l,a,t),s!=-1):!1}function pP(e,t){var s,a,l,f;for(f=ec(e.e.Og(),t),s=h(e.g,118),l=0;l0&&(t.lengthe.i&&ui(t,e.i,null),t}function pL(e,t){R1e();var s,a;return s=cA((tj(),tj(),TI)),a=null,t==s&&(a=h(Ia(S4e,e),605)),a||(a=new Itt(e),t==s&&hs(S4e,e,a)),a}function Out(e){zv();var t;return t=new xs(h(e.e.Xe((Pr(),p_)),8)),e.A.Fc((su(),SE))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function Va(e,t,s){var a,l,f;return e._i()?(a=e.i,f=e.aj(),cP(e,a,t),l=e.Ui(3,null,t,a,f),s?s.zi(l):s=l):cP(e,e.i,t),s}function $f(e,t){var s,a,l;return e.f>0&&(e.lj(),a=t==null?0:ri(t),l=(a&Ir)%e.d.length,s=Tye(e,l,a,t),s)?s.bd():null}function Usn(e,t,s){var a,l;return a=new p1(e.e,3,10,null,(l=t.c,ue(l,87)?h(l,26):(At(),Zl)),up(e,t),!1),s?s.zi(a):s=a,s}function Hsn(e,t,s){var a,l;return a=new p1(e.e,4,10,(l=t.c,ue(l,87)?h(l,26):(At(),Zl)),null,up(e,t),!1),s?s.zi(a):s=a,s}function _ut(e,t){var s,a,l;return ue(t,43)?(s=h(t,43),a=s.ad(),l=nL(e.Pc(),a),Th(l,s.bd())&&(l!=null||e.Pc()._b(a))):!1}function Mut(e){fy();var t;return(e.q?e.q:(Mt(),Mt(),ah))._b((Qe(),Wm))?t=h(G(e,Wm),196):t=h(G(ds(e),HI),196),t}function uy(e,t){var s,a;return a=null,Lo(e,(Qe(),zz))&&(s=h(G(e,zz),94),s.Ye(t)&&(a=s.Xe(t))),a==null&&(a=G(ds(e),t)),a}function gL(){gL=H,aoe=new Rj("SIMPLE",0),B8e=new Rj("GROUP_DEC",1),V8e=new Rj("GROUP_MIXED",2),z8e=new Rj("GROUP_INC",3)}function FQ(){FQ=H,moe=new VBe,fIe=new UBe,dIe=new HBe,hIe=new qBe,pIe=new WBe,gIe=new GBe,bIe=new XBe,mIe=new KBe,vIe=new YBe}function Wme(){Wme=H,L8e=new bg(15),H6t=new $o((Pr(),j0),L8e),W6t=new $o(fb,15),q6t=new $o(toe,Ue(0)),U6t=new $o(R4,T6)}function qsn(e,t){var s;return s=h(Fu(e,Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[(gd(),Wu)]))),14),s.Oc(ret(s.gc()))}function gP(e,t){var s,a;for(a=t.length,s=0;s0&&(Fn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function Gsn(e){var t;return e==null?null:new Jp((t=_a(e,!0),t.length>0&&(Fn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function bL(e){var t,s,a,l;for(a=0,l=0,s=new Q(e.a);s.a>1,this.k=t-1>>1}function Xsn(e,t){_n(t,"End label post-processing",1),mi(Kr(Rs(new Rt(null,new Lt(e.b,16)),new Qr),new Ds),new Ka),yn(t)}function jut(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!h(e.b,48).Ug())return!0;return e.b=null,!1}else return!0}function Xme(e,t){var s,a;if(ue(t,244)){a=h(t,244);try{return s=e.vd(a),s==0}catch(l){if(l=ni(l),!ue(l,203))throw ee(l)}}return!1}function Ksn(){var e;return CB!=0&&(e=ytn(),e-kyt>2e3&&(kyt=e,IB=m.setTimeout(Iqt,10))),CB++==0?(Lnn((xhe(),x4e)),!0):!1}function Ysn(){return Error.stackTraceLimit>0?(m.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Qsn(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))>0}function Kme(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))<0}function Zsn(e){var t;t=e.a;do t=h(Rn(new bn(mn(Ni(t).a.Ic(),new j))),18).d.i,t.k==(tn(),Yi)&&Re(e.e,t);while(t.k==(tn(),Yi))}function BQ(e){var t;e.c!=0&&(t=h(st(e.a,e.b),286),t.b==1?(++e.b,e.b=0?f=f.a[1]:(l=f,f=f.a[0])}return l}function Lut(e,t,s){var a,l,f;for(l=null,f=e.b;f;){if(a=e.a.ue(t,f.d),s&&a==0)return f;a<=0?f=f.a[0]:(l=f,f=f.a[1])}return l}function Fut(e,t,s){var a,l,f,v;for(l=h(Hn(e.b,s),177),a=0,v=new Q(t.j);v.a>5,t&=31,l=e.d+s+(t==0?0:1),a=ge(An,nr,24,l,15,1),Jln(a,e.a,s,t),f=new Zw(e.e,l,a),s8(f),f}function Jme(e,t,s){var a,l;a=h(Ia(CE,t),117),l=h(Ia(O9,t),117),s?(hs(CE,e,a),hs(O9,e,l)):(hs(O9,e,a),hs(CE,e,l))}function zut(e){var t,s;return t=h(Vt(e.a,4),124),t!=null?(s=ge(hoe,Vte,410,t.length,0,1),xa(t,0,s,0,t.length),s):fEt}function Vut(e){var t,s,a,l,f;if(e==null)return null;for(f=new Fe,s=pQ(e),a=0,l=s.length;at.e?1:e.et.d?e.e:e.d=48&&e<48+m.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function Xut(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))<=0}function eve(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function san(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ee(new Gt("Input edge is not connected to the input port."))}function aan(e){if(yL(O6,e))return Zt(),$6;if(yL(xte,e))return Zt(),tb;throw ee(new Gt("Expecting true or false"))}function bP(e){return v0(),ga(e,0)<0?ga(e,-1)!=0?new Lve(-1,I5(e)):gne:ga(e,10)<=0?U4e[Pn(e)]:new Lve(1,e)}function $g(e){var t,s;return ga(e,-129)>0&&ga(e,128)<0?(t=Pn(e)+128,s=(ket(),_4e)[t],!s&&(s=_4e[t]=new Ode(e)),s):new Ode(e)}function Kut(e,t){var s;return Pe(t)===Pe(e)?!0:!ue(t,21)||(s=h(t,21),s.gc()!=e.gc())?!1:e.Gc(s)}function vL(e){var t,s,a;if(a=e.Ug(),!a)for(t=0,s=e.$g();s;s=s.$g()){if(++t>ZJ)return s._g();if(a=s.Ug(),!!a||s==e)break}return a}function can(e,t){var s,a,l,f;return a=e.a.length-1,s=t-e.b&a,f=e.c-t&a,l=e.c-e.b&a,IZe(s=f?(son(e,t),-1):(aon(e,t),1)}function uan(e,t){var s,a;for(s=(Fn(t,e.length),e.charCodeAt(t)),a=t+1;at.e?1:e.ft.f?1:ri(e)-ri(t)}function yL(e,t){return Ut(e),t==null?!1:kt(e,t)?!0:e.length==t.length&&kt(e.toLowerCase(),t.toLowerCase())}function van(e,t){var s,a,l,f;for(a=0,l=t.gc();a0):!1}function kan(e,t,s){var a,l;EZ(e.e,t,s,(He(),Xt)),EZ(e.i,t,s,nn),e.a&&(l=h(G(t,(Be(),Mr)),11),a=h(G(s,Mr),11),mY(e.g,l,a))}function tlt(e,t){var s,a,l;if(Re(BB,e),t.Dc(e),s=h(Hn(_ne,e),21),s)for(l=s.Ic();l.Ob();)a=h(l.Pb(),34),Ps(BB,a,0)!=-1||tlt(a,t)}function vn(e){var t;try{return t=e.i.Xb(e.e),e.hj(),e.g=e.e++,t}catch(s){throw s=ni(s),ue(s,73)?(e.hj(),ee(new aa)):ee(s)}}function UQ(e){var t;try{return t=e.c.fi(e.e),e.hj(),e.g=e.e++,t}catch(s){throw s=ni(s),ue(s,73)?(e.hj(),ee(new aa)):ee(s)}}function Can(e){var t;if(e==null)return null;if(t=E1n(_a(e,!0)),t==null)throw ee(new tX("Invalid hexBinary value: '"+e+"'"));return t}function Ian(e,t,s){var a;(Uyt?(Osn(e),!0):Hyt||Wyt?(r5(),!0):qyt&&(r5(),!1))&&(a=new AJe(t),a.b=s,Dfn(e,a))}function HQ(e,t){var s;s=!e.w.Fc((xu(),hb))||e.q==(lo(),ja),e.t.Fc((ou(),_1))?s?$yn(e,t):C0t(e,t):e.t.Fc(F0)&&(s?nyn(e,t):N0t(e,t))}function nlt(e){var t;Pe(Ot(e,(Pr(),ax)))===Pe((m1(),CV))&&(Xi(e)?(t=h(Ot(Xi(e),ax),332),Is(e,ax,t)):Is(e,ax,g9))}function rlt(e,t,s){return new cl(m.Math.min(e.a,t.a)-s/2,m.Math.min(e.b,t.b)-s/2,m.Math.abs(e.a-t.a)+s,m.Math.abs(e.b-t.b)+s)}function Tan(e,t){var s,a;return s=Ya(e.a.c.p,t.a.c.p),s!=0?s:(a=Ya(e.a.d.i.p,t.a.d.i.p),a!=0?a:Ya(t.a.d.p,e.a.d.p))}function Aan(e,t,s){var a,l,f,v;return f=t.j,v=s.j,f!=v?f.g-v.g:(a=e.f[t.p],l=e.f[s.p],a==0&&l==0?0:a==0?-1:l==0?1:go(a,l))}function ilt(e,t,s){var a,l,f;a=t.c.p,f=t.p,e.b[a][f]=new ynt(e,t),s&&(e.a[a][f]=new Lqe(t),l=h(G(t,(Be(),Um)),10),l&&ar(e.d,l,t))}function olt(e,t,s){var a,l,f;if(!s[t.d])for(s[t.d]=!0,l=new Q(d2(t));l.a=64&&t<128&&(l=ad(l,c1(1,t-64)));return l}function qQ(e,t,s,a){var l;if(l=e.length,t>=l)return l;for(t=t>0?t:0;ta&&ui(t,a,null),t}function slt(e,t){var s,a;for(a=e.a.length,t.lengtha&&ui(t,a,null),t}function alt(e){this.d=new Fe,this.e=new Cg,this.c=ge(An,nr,24,(He(),re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt])).length,15,1),this.b=e}function clt(e){var t;this.d=new Fe,this.j=new Yo,this.g=new Yo,t=e.g.b,this.f=h(G(ds(t),(Qe(),Gu)),108),this.e=Ae(Ke(EL(t,Xy)))}function rve(e,t,s){var a;switch(a=s[e.g][t],e.g){case 1:case 3:return new ot(0,a);case 2:case 4:return new ot(a,0);default:return null}}function Oan(e){var t;switch(t=e.ti(null),t){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function ult(e,t,s){var a,l,f,v,w,S;return a=null,w=zwe(j5(),t),f=null,w&&(l=null,S=Fwe(w,s),v=null,S!=null&&(v=e.Ze(w,S)),l=v,f=l),a=f,a}function Lg(e,t,s){var a,l,f;return l=h(Hn(e.e,t),382),l?(f=Ape(l,s),rZe(e,l),f):(a=new n0e(e,t,s),Fr(e.e,t,a),Ant(a),null)}function _an(e,t,s,a){var l,f,v;return l=new p1(e.e,1,13,(v=t.c,v||(At(),Pd)),(f=s.c,f||(At(),Pd)),up(e,t),!1),a?a.zi(l):a=l,a}function ive(e,t,s,a){u6();var l,f;for(l=0,f=0;f=e.b>>1)for(a=e.c,s=e.b;s>t;--s)a=a.b;else for(a=e.a.a,s=0;s=0?e.gh(l):NZ(e,a)):s<0?NZ(e,a):h(a,65).Ij().Nj(e,e.th(),s)}function plt(e){var t,s,a;for(a=(!e.o&&(e.o=new tu((Ma(),Ip),pb,e,0)),e.o),s=a.c.Ic();s.e!=s.i.gc();)t=h(s.ij(),43),t.bd();return DA(a)}function O8(){O8=H,DSe=(Pr(),g8e),Pne=GCe,Uwt=R4,MSe=j0,Gwt=(ML(),fSe),Wwt=uSe,Xwt=hSe,qwt=cSe,Hwt=(yQ(),PSe),Ane=Bwt,_Se=zwt,FB=Vwt}function SL(e){switch(Vhe(),this.c=new Fe,this.d=e,e.g){case 0:case 2:this.a=ege(YSe),this.b=pi;break;case 3:case 1:this.a=YSe,this.b=Oi}}function EL(e,t){var s,a;return a=null,Lo(e,(Pr(),F4))&&(s=h(G(e,F4),94),s.Ye(t)&&(a=s.Xe(t))),a==null&&!!ds(e)&&(a=G(ds(e),t)),a}function Ran(e,t){var s;return s=h(G(e,(Qe(),ys)),74),XX(t,P2t)?s?Dl(s):(s=new Ic,_e(e,ys,s)):s&&_e(e,ys,null),s}function $an(e){var t;!HC(h(G(e,(Qe(),yi)),100))||(t=e.b,Gdt((qt(0,t.c.length),h(t.c[0],29))),Gdt(h(st(t,t.c.length-1),29)))}function Lan(e,t){var s,a;if(e.j.length!=t.j.length)return!1;for(s=0,a=e.j.length;s0&&(Re(e.b,new QJe(t.a,s)),a=t.a.length,0a&&(t.a+=nZe(ge(wl,Qd,24,-a,15,1))))}function blt(e,t){var s,a,l;for(s=e.o,l=h(h(Br(e.r,t),21),81).Ic();l.Ob();)a=h(l.Pb(),110),a.e.a=Vcn(a,s.a),a.e.b=s.b*Ae(Ke(a.b.Xe(RB)))}function Fan(e,t){var s,a;return s=h(h(Hn(e.g,t.a),46).a,63),a=h(h(Hn(e.g,t.b),46).a,63),a0(t.a,t.b)-a0(t.a,L1e(s.b))-a0(t.b,L1e(a.b))}function Ban(e,t){var s,a,l,f;return l=e.k,s=Ae(Ke(G(e,(Be(),Hm)))),f=t.k,a=Ae(Ke(G(t,Hm))),f!=(tn(),Pi)?-1:l!=Pi?1:s==a?0:s=0?e.bh(t,s,a):(e.$g()&&(a=(l=e.Qg(),l>=0?e.Lg(a):e.$g().dh(e,-1-l,null,a))),e.Ng(t,s,a))}function p2(e,t,s){var a,l;if(l=e.gc(),t>=l)throw ee(new Vv(t,l));if(e.ci()&&(a=e.Vc(s),a>=0&&a!=t))throw ee(new Gt(vO));return e.hi(t,s)}function Van(e,t,s){var a,l,f,v;return a=e.Vc(t),a!=-1&&(e._i()?(f=e.aj(),v=bR(e,a),l=e.Ui(4,v,null,a,f),s?s.zi(l):s=l):bR(e,a)),s}function Mo(e,t,s){var a,l,f,v;return a=e.Vc(t),a!=-1&&(e._i()?(f=e.aj(),v=J3(e,a),l=e.Ui(4,v,null,a,f),s?s.zi(l):s=l):J3(e,a)),s}function ove(e,t){switch(t){case 7:!e.e&&(e.e=new Ht(qi,e,7,4)),Cn(e.e);return;case 8:!e.d&&(e.d=new Ht(qi,e,8,5)),Cn(e.d);return}Ume(e,t)}function Is(e,t,s){return s==null?(!e.o&&(e.o=new tu((Ma(),Ip),pb,e,0)),mL(e.o,t)):(!e.o&&(e.o=new tu((Ma(),Ip),pb,e,0)),DL(e.o,t,s)),e}function sve(e,t){this.e=e,ts.b)return!0}return!1}function KQ(e,t){return to(e)?!!myt[t]:e.cm?!!e.cm[t]:$v(e)?!!byt[t]:Rv(e)?!!gyt[t]:!1}function CL(e){var t;if(vQ(e))return ER(e),e.Gk()&&(t=L8(e.e,e.b,e.c,e.a,e.j),e.j=t),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw ee(new aa)}function Kan(e,t,s,a){var l,f;f=t.Ye((Pr(),xV))?h(t.Xe(xV),21):e.j,l=Lon(f),l!=(hF(),kne)&&(s&&!eve(l)||aye(k1n(e,l,a),t))}function IL(e,t,s,a){var l,f,v;return f=Dt(e.Og(),t),l=t-e.vh(),l<0?(v=e.Tg(f),v>=0?e.Wg(v,s,!0):km(e,f,s)):h(f,65).Ij().Kj(e,e.th(),l,s,a)}function Yan(e,t,s,a){var l,f,v;s.hh(t)&&(Uo(),UY(t)?(l=h(s.Xg(t),152),van(e,l)):(f=(v=t,v?h(a,48).sh(v):null),f&&aHt(s.Xg(t),f)))}function vP(){vP=H,qSe=(Pr(),wV),new $o(Gie,(Zt(),!0)),GSe=new bg(10),new $o(j0,GSe),HSe=(mve(),d2t),VSe=l2t,USe=f2t,WSe=h2t,qB=u2t}function Qan(e){switch(e.g){case 1:return mm(),AO;case 3:return mm(),TO;case 2:return mm(),Ine;case 4:return mm(),Cne;default:return null}}function ave(e){switch(typeof e){case kJ:return lp(e);case Jwe:return Ci(e);case o4:return Zt(),e?1231:1237;default:return e==null?0:Kb(e)}}function YQ(e){switch(e.g){case 0:return null;case 1:return new xat;case 2:return new yhe;default:throw ee(new Gt(ute+(e.f!=null?e.f:""+e.g)))}}function Zan(e,t,s){if(e.e)switch(e.b){case 1:OZt(e.c,t,s);break;case 0:_Zt(e.c,t,s)}else ait(e.c,t,s);e.a[t.p][s.p]=e.c.i,e.a[s.p][t.p]=e.c.e}function ylt(e){var t,s;if(e==null)return null;for(s=ge(vp,Oe,213,e.length,0,2),t=0;t0||e==(XG(),ine)||t==(KG(),one))throw ee(new Gt("Invalid range: "+sit(e,t)))}function QQ(e,t){if(e==null)throw ee(new y3("null key in entry: null="+t));if(t==null)throw ee(new y3("null value in entry: "+e+"=null"))}function Jan(e,t){var s,a,l,f;return f=e.o,s=e.p,f=0)return l;if(e.Ak()){for(a=0;a0),(t&-t)==t)return Ci(t*Su(e,31)*4656612873077393e-25);do s=Su(e,31),a=s%t;while(s-a+(t-1)<0);return Ci(a)}function lp(e){gJe();var t,s,a;return s=":"+e,a=DB[s],a!=null?Ci((Ut(a),a)):(a=nSe[s],t=a==null?Lpn(e):Ci((Ut(a),a)),MZt(),DB[s]=t,t)}function uve(e,t,s){var a,l;for(l=0,a=0;a1&&(f=ecn(e,t)),f}function JQ(e){var t;return!!e.f&&e.f.fh()&&(t=h(e.f,48),e.f=h(h0(e,t),93),e.f!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,9,8,t,e.f))),e.f}function eZ(e){var t;return!!e.i&&e.i.fh()&&(t=h(e.i,48),e.i=h(h0(e,t),93),e.i!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,9,7,t,e.i))),e.i}function Ho(e){var t;return!!e.b&&(e.b.Db&64)!=0&&(t=e.b,e.b=h(h0(e,t),17),e.b!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,9,21,t,e.b))),e.b}function TL(e,t){var s,a,l;e.d==null?(++e.e,++e.f):(a=t.Nh(),ppn(e,e.f+1),l=(a&Ir)%e.d.length,s=e.d[l],!s&&(s=e.d[l]=e.pj()),s.Dc(t),++e.f)}function lve(e,t,s){var a;return t.Fj()?!1:t.Uj()!=-2?(a=t.uj(),a==null?s==null:Ar(a,s)):t.Cj()==e.e.Og()&&s==null}function AL(){var e;Rf(16,cgt),e=cat(16),this.b=ge(ane,QP,314,e,0,1),this.c=ge(ane,QP,314,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function y1(e){_pe.call(this),this.k=(tn(),Ri),this.j=(Rf(6,Iy),new Ba(6)),this.b=(Rf(2,Iy),new Ba(2)),this.d=new UG,this.f=new fhe,this.a=e}function acn(e){var t,s;e.c.length<=1||(t=p1t(e,(He(),xn)),cdt(e,h(t.a,20).a,h(t.b,20).a),s=p1t(e,Xt),cdt(e,h(s.a,20).a,h(s.b,20).a))}function M8(){M8=H,UEe=new UT("SIMPLE",0),Jre=new UT(Oee,1),eie=new UT("LINEAR_SEGMENTS",2),WI=new UT("BRANDES_KOEPF",3),GI=new UT(Mbt,4)}function Ilt(e,t,s,a){var l,f,v;for(l=h(Br(a?e.a:e.b,t),21),v=l.Ic();v.Ob();)if(f=h(v.Pb(),34),QL(e,s,f))return!0;return!1}function tZ(e){var t,s;for(s=new pn(e);s.e!=s.i.gc();)if(t=h(vn(s),86),!!t.e||(!t.d&&(t.d=new Mi(ns,t,1)),t.d).i!=0)return!0;return!1}function nZ(e){var t,s;for(s=new pn(e);s.e!=s.i.gc();)if(t=h(vn(s),86),!!t.e||(!t.d&&(t.d=new Mi(ns,t,1)),t.d).i!=0)return!0;return!1}function ccn(e){var t,s,a;for(t=0,a=new Q(e.c.a);a.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function ucn(e,t){for(var s,a;e.Ob();)if(!t.Ob()||(s=e.Pb(),a=t.Pb(),!(Pe(s)===Pe(a)||s!=null&&Ar(s,a))))return!1;return!t.Ob()}function Alt(e){var t;if(t=ion(e),!Yn(e))throw ee(new fs("position (0) must be less than the number of elements that remained ("+t+")"));return Rn(e)}function Plt(e,t){var s;return s=re(te(oo,1),us,24,15,[xQ(e.a[0],t),xQ(e.a[1],t),xQ(e.a[2],t)]),e.d&&(s[0]=m.Math.max(s[0],s[2]),s[2]=s[0]),s}function Olt(e,t){var s;return s=re(te(oo,1),us,24,15,[rL(e.a[0],t),rL(e.a[1],t),rL(e.a[2],t)]),e.d&&(s[0]=m.Math.max(s[0],s[2]),s[2]=s[0]),s}function dve(e,t,s){HC(h(G(t,(Qe(),yi)),100))||(cbe(e,t,fp(t,s)),cbe(e,t,fp(t,(He(),xn))),cbe(e,t,fp(t,Wt)),Mt(),co(t.j,new jqe(e)))}function _lt(e){var t,s;for(e.c||evn(e),s=new Ic,t=new Q(e.a),Y(t);t.af&&ui(t,f,null),t}function Ccn(e,t){var s,a;if(a=e.gc(),t==null){for(s=0;s0&&(S+=l),C[A]=v,v+=w*(S+a)}function jlt(e){var t,s,a;for(a=e.f,e.n=ge(oo,us,24,a,15,1),e.d=ge(oo,us,24,a,15,1),t=0;t0&&(l.b+=t),l}function OL(e,t){var s,a,l;for(l=new Yo,a=e.Ic();a.Ob();)s=h(a.Pb(),38),FP(s,0,l.b),l.b+=s.f.b+t,l.a=m.Math.max(l.a,s.f.a);return l.a>0&&(l.a+=t),l}function Fcn(e,t){var s,a;if(t.length==0)return 0;for(s=HK(e.a,t[0],(He(),Xt)),s+=HK(e.a,t[t.length-1],nn),a=0;a>16==6?e.Cb.dh(e,5,Xf,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||e.uh()),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Bcn(e){y5();var t=e.e;if(t&&t.stack){var s=t.stack,a=t+` -`;return s.substring(0,a.length)==a&&(s=s.substring(a.length)),s.split(` -`)}return[]}function zcn(e){var t;return t=(rat(),Pyt),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function qlt(e){var t,s,a;e.b==e.c&&(a=e.a.length,s=Kbe(m.Math.max(8,a))<<1,e.b!=0?(t=lf(e.a,s),dat(e,t,a),e.a=t,e.b=0):SGe(e.a,s),e.c=a)}function Vcn(e,t){var s;return s=e.b,s.Ye((Pr(),lu))?s.Ef()==(He(),Xt)?-s.pf().a-Ae(Ke(s.Xe(lu))):t+Ae(Ke(s.Xe(lu))):s.Ef()==(He(),Xt)?-s.pf().a:t}function SP(e){var t;return e.b.c.length!=0&&!!h(st(e.b,0),69).a?h(st(e.b,0),69).a:(t=YK(e),t!=null?t:""+(e.c?Ps(e.c.a,e,0):-1))}function _L(e){var t;return e.f.c.length!=0&&!!h(st(e.f,0),69).a?h(st(e.f,0),69).a:(t=YK(e),t!=null?t:""+(e.i?Ps(e.i.j,e,0):-1))}function Ucn(e,t){var s,a;if(t<0||t>=e.gc())return null;for(s=t;s=e.i)throw ee(new FX(t,e.i));return++e.j,s=e.g[t],a=e.i-t-1,a>0&&xa(e.g,t+1,e.g,t,a),ui(e.g,--e.i,null),e.ai(t,s),e.Zh(),s}function hZ(e,t){var s,a;s=e.Xc(t);try{return a=s.Pb(),s.Qb(),a}catch(l){throw l=ni(l),ue(l,114)?ee(new fs("Can't remove element "+t)):ee(l)}}function Gcn(e,t){var s,a,l;return l=e.h-t.h,l<0||(s=e.l-t.l,a=e.m-t.m+(s>>22),l+=a>>22,l<0)?!1:(e.l=s&cu,e.m=a&cu,e.h=l&E1,!0)}function Xcn(e,t,s,a,l,f,v){var w,S;return!(t.Ae()&&(S=e.a.ue(s,a),S<0||!l&&S==0)||t.Be()&&(w=e.a.ue(s,f),w>0||!v&&w==0))}function Kcn(e,t){q5();var s;if(s=e.j.g-t.j.g,s!=0)return 0;switch(e.j.g){case 2:return NQ(t,z5e)-NQ(e,z5e);case 4:return NQ(e,B5e)-NQ(t,B5e)}return 0}function Ycn(e){switch(e.g){case 0:return pre;case 1:return gre;case 2:return bre;case 3:return mre;case 4:return bz;case 5:return vre;default:return null}}function ms(e,t,s){var a,l;return a=(l=new WG,jg(l,t),za(l,s),On((!e.c&&(e.c=new $e(Qm,e,12,10)),e.c),l),l),rp(a,0),iy(a,1),sp(a,!0),ap(a,!0),a}function Wlt(e,t){var s,a;return e.Db>>16==17?e.Cb.dh(e,21,Kl,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||e.uh()),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Qcn(e){var t,s,a,l;for(Mt(),co(e.c,e.a),l=new Q(e.c);l.as.a.c.length))throw ee(new Gt("index must be >= 0 and <= layer node count"));e.c&&dc(e.c.a,e),e.c=s,s&&qv(s.a,t,e)}function Glt(e,t,s){var a,l,f,v,w,S,C,A;for(C=0,l=e.a[t],f=0,v=l.length;f>16==6?e.Cb.dh(e,6,qi,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(Ma(),MV)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Sve(e,t){var s,a;return e.Db>>16==7?e.Cb.dh(e,1,I_,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(Ma(),X8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Eve(e,t){var s,a;return e.Db>>16==9?e.Cb.dh(e,9,bi,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(Ma(),Y8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Jlt(e,t){var s,a;return e.Db>>16==5?e.Cb.dh(e,9,zV,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(At(),Ap)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function eft(e,t){var s,a;return e.Db>>16==7?e.Cb.dh(e,6,Xf,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(At(),Op)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function kve(e,t){var s,a;return e.Db>>16==3?e.Cb.dh(e,0,A_,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(At(),Tp)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Cve(e,t){var s,a;return e.Db>>16==3?e.Cb.dh(e,12,bi,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(Ma(),G8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function tft(){this.a=new TBe,this.g=new AL,this.j=new AL,this.b=new Vn,this.d=new AL,this.i=new AL,this.k=new Vn,this.c=new Vn,this.e=new Vn,this.f=new Vn}function cun(e,t){var s,a;return s=t.Ch(e.a),s?(a=Ln($f((!s.b&&(s.b=new mu((At(),Vo),ta,s)),s.b),mB)),kt(SO,a)?YC(e,Bu(t.Cj())):a):null}function r6(e,t){var s,a;if(t){if(t==e)return!0;for(s=0,a=h(t,48).$g();!!a&&a!=t;a=a.$g()){if(++s>ZJ)return r6(e,a);if(a==e)return!0}}return!1}function uun(e){switch(Jj(),e.q.g){case 5:Bdt(e,(He(),Wt)),Bdt(e,xn);break;case 4:Mht(e,(He(),Wt)),Mht(e,xn);break;default:A0t(e,(He(),Wt)),A0t(e,xn)}}function lun(e){switch(Jj(),e.q.g){case 5:eht(e,(He(),nn)),eht(e,Xt);break;case 4:blt(e,(He(),nn)),blt(e,Xt);break;default:P0t(e,(He(),nn)),P0t(e,Xt)}}function fun(e){var t,s;t=h(G(e,(Bf(),s2t)),20),t?(s=t.a,s==0?_e(e,(u0(),HB),new DQ):_e(e,(u0(),HB),new o$(s))):_e(e,(u0(),HB),new o$(1))}function dun(e,t){var s;switch(s=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-s.o.a;case 3:return e.n.b-s.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function hun(e,t){switch(e.g){case 0:return t==(gl(),M0)?az:cz;case 1:return t==(gl(),M0)?az:LO;case 2:return t==(gl(),M0)?LO:cz;default:return LO}}function $l(e){var t;return(e.Bb&1)==0&&!!e.r&&e.r.fh()&&(t=h(e.r,48),e.r=h(h0(e,t),138),e.r!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,9,8,t,e.r))),e.r}function kP(e,t){var s;return As(e)&&As(t)&&(s=e/t,eO>16==11?e.Cb.dh(e,10,bi,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(Ma(),K8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function nft(e,t){var s,a;return e.Db>>16==10?e.Cb.dh(e,11,Kl,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(At(),Pp)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function rft(e,t){var s,a;return e.Db>>16==10?e.Cb.dh(e,12,Yl,t):(a=Ho(h(Dt((s=h(Vt(e,16),26),s||(At(),ow)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function xun(e,t){var s,a,l,f,v;if(t)for(l=t.a.length,s=new vg(l),v=(s.b-s.a)*s.c<0?(Qp(),q0):new e0(s);v.Ob();)f=h(v.Pb(),20),a=x5(t,f.a),a&&Iht(e,a)}function Sun(){qhe();var e,t;for(Iwn((n0(),Bt)),vwn(Bt),dZ(Bt),lIe=(At(),Pd),t=new Q(yIe);t.a>19,C=t.h>>19,S!=C?C-S:(l=e.h,w=t.h,l!=w?l-w:(a=e.m,v=t.m,a!=v?a-v:(s=e.l,f=t.l,s-f)))}function ML(){ML=H,pSe=(ZL(),Sne),hSe=new $t(p2e,pSe),dSe=(C$(),xne),fSe=new $t(g2e,dSe),lSe=(xL(),wne),uSe=new $t(b2e,lSe),cSe=new $t(m2e,(Zt(),!0))}function D8(e,t,s){var a,l;a=t*s,ue(e.g,145)?(l=F3(e),l.f.d?l.f.a||(e.d.a+=a+vd):(e.d.d-=a+vd,e.d.a+=a+vd)):ue(e.g,10)&&(e.d.d-=a,e.d.a+=2*a)}function ift(e,t,s){var a,l,f,v,w;for(l=e[s.g],w=new Q(t.d);w.av&&(w=v/a),l>f&&(S=f/l),Ud(e,m.Math.min(w,S)),e}function Tun(e,t,s){var a,l;return l=e.e,e.e=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Gi(e,1,4,l,t),s?s.zi(a):s=a),l!=t&&(t?s=v6(e,qL(e,t),s):s=v6(e,e.a,s)),s}function sft(){yj.call(this),this.e=-1,this.a=!1,this.p=Co,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Co}function Aun(e,t){var s,a,l;if(a=e.b.d.d,e.a||(a+=e.b.d.a),l=t.b.d.d,t.a||(l+=t.b.d.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Pun(e,t){var s,a,l;if(a=e.b.b.d,e.a||(a+=e.b.b.a),l=t.b.b.d,t.a||(l+=t.b.b.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Oun(e,t){var s,a,l;if(a=e.b.g.d,e.a||(a+=e.b.g.a),l=t.b.g.d,t.a||(l+=t.b.g.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Ave(){Ave=H,g2t=Jc(_r(_r(_r(new Ki,(cs(),Ha),(vs(),I5e)),Ha,T5e),Vs,A5e),Vs,g5e),m2t=_r(_r(new Ki,Ha,c5e),Ha,b5e),b2t=Jc(new Ki,Vs,v5e)}function _un(e){var t,s,a,l,f;for(t=h(G(e,(Be(),FI)),84),f=e.n,a=t.Ac().Ic();a.Ob();)s=h(a.Pb(),304),l=s.i,l.c+=f.a,l.d+=f.b,s.c?y1t(s):w1t(s);_e(e,FI,null)}function Mun(e,t,s){var a,l;switch(l=e.b,a=l.d,t.g){case 1:return-a.d-s;case 2:return l.o.a+a.c+s;case 3:return l.o.b+a.a+s;case 4:return-a.b-s;default:return-1}}function Dun(e){var t,s,a,l,f;if(a=0,l=iI,e.b)for(t=0;t<360;t++)s=t*.017453292519943295,vwe(e,e.d,0,0,j2,s),f=e.b.dg(e.d),f0&&(v=(f&Ir)%e.d.length,l=Tye(e,v,f,t),l)?(w=l.cd(s),w):(a=e.oj(f,t,s),e.c.Dc(a),null)}function Mve(e,t){var s,a,l,f;switch(op(e,t).Wk()){case 3:case 2:{for(s=T2(t),l=0,f=s.i;l=0?(s=kP(e,vF),a=hP(e,vF)):(t=Hv(e,1),s=kP(t,5e8),a=hP(t,5e8),a=Oo(c1(a,1),Li(e,1))),ad(c1(a,32),Li(s,Jo))}function uft(e,t){var s,a,l,f;for(f=0,l=h(h(Br(e.r,t),21),81).Ic();l.Ob();)a=h(l.Pb(),110),f=m.Math.max(f,a.e.a+a.b.pf().a);s=h(is(e.b,t),121),s.n.b=0,s.a.a=f}function lft(e,t){var s,a,l,f;for(s=0,f=h(h(Br(e.r,t),21),81).Ic();f.Ob();)l=h(f.Pb(),110),s=m.Math.max(s,l.e.b+l.b.pf().b);a=h(is(e.b,t),121),a.n.d=0,a.a.b=s}function Dve(e,t){if(t==e.c.i)return e.d.i;if(t==e.d.i)return e.c.i;throw ee(new Gt("'node' must either be the source node or target node of the edge."))}function qun(e){var t,s;return s=h(G(e,(Be(),Na)),21),t=VX(xSt),s.Fc((Zo(),X2))&&zu(t,kSt),s.Fc(LI)&&zu(t,CSt),s.Fc(Z6)&&zu(t,SSt),s.Fc(J6)&&zu(t,ESt),t}function Wun(e,t){var s;_n(t,"Delaunay triangulation",1),s=new Fe,pc(e.i,new hWe(s)),_t(It(G(e,(F5(),_I)))),e.e?ks(e.e,U0t(s)):e.e=U0t(s),yn(t)}function fft(e,t){var s,a;if(a=!1,to(t)&&(a=!0,N3(e,new Gv(Ln(t)))),a||ue(t,236)&&(a=!0,N3(e,(s=Hpe(h(t,236)),new VN(s)))),!a)throw ee(new eX(W3e))}function o6(e,t){var s;if(e.ii()&&t!=null){for(s=0;s=0;a--)if(kt(e[a].d,t)||kt(e[a].d,s)){e.length>=a+1&&e.splice(0,a+1);break}return e}function Yun(e){var t,s,a,l;if(l=h(G(e,(Be(),b6e)),38),l){for(a=new Yo,t=ds(e.c.i);t!=l;)s=t.e,t=ds(s),Fv(Rr(Rr(a,s.n),t.c),t.d.b,t.d.d);return a}return D2t}function Qun(e){var t;t=h(G(e,(Be(),tE)),398),mi(Rs(new Rt(null,new Lt(t.d,16)),new CRe),new lqe(e)),mi(Kr(new Rt(null,new Lt(t.d,16)),new IRe),new fqe(e))}function bZ(e,t){var s,a,l,f;for(l=t?Ni(e):Os(e),a=new bn(mn(l.a.Ic(),new j));Yn(a);)if(s=h(Rn(a),18),f=Dve(s,e),f.k==(tn(),Yi)&&f.c!=e.c)return f;return null}function Zun(e){var t,s,a;for(s=new Q(e.p);s.a0&&(e.b+=2,e.a+=a):(e.b+=1,e.a+=m.Math.min(a,l))}function eln(e){switch(e.g){case 1:return new vFe;case 2:return new yFe;case 3:return new mFe;case 0:return null;default:throw ee(new Gt(ute+(e.f!=null?e.f:""+e.g)))}}function tln(e,t,s,a){var l,f,v;return l=new p1(e.e,1,10,(v=t.c,ue(v,87)?h(v,26):(At(),Zl)),(f=s.c,ue(f,87)?h(f,26):(At(),Zl)),up(e,t),!1),a?a.zi(l):a=l,a}function Nve(e){var t,s;switch(h(G(ds(e),(Qe(),hEe)),414).g){case 0:return t=e.n,s=e.o,new ot(t.a+s.a/2,t.b+s.b/2);case 1:return new xs(e.n);default:return null}}function CP(){CP=H,vz=new kC(S0,0),n6e=new kC("LEFTUP",1),i6e=new kC("RIGHTUP",2),t6e=new kC("LEFTDOWN",3),r6e=new kC("RIGHTDOWN",4),yre=new kC("BALANCED",5)}function nln(e,t,s){var a,l,f;if(a=go(e.a[t.p],e.a[s.p]),a==0){if(l=h(G(t,(Be(),A4)),14),f=h(G(s,A4),14),l.Fc(s))return-1;if(f.Fc(t))return 1}return a}function jve(e,t,s){switch(t){case 1:!e.n&&(e.n=new $e(Ms,e,1,7)),Cn(e.n),!e.n&&(e.n=new $e(Ms,e,1,7)),di(e.n,h(s,15));return;case 2:b8(e,Ln(s));return}sme(e,t,s)}function Rve(e,t,s){switch(t){case 3:hm(e,Ae(Ke(s)));return;case 4:pm(e,Ae(Ke(s)));return;case 5:Oc(e,Ae(Ke(s)));return;case 6:_c(e,Ae(Ke(s)));return}jve(e,t,s)}function NL(e,t,s){var a,l,f;f=(a=new WG,a),l=bd(f,t,null),l&&l.Ai(),za(f,s),On((!e.c&&(e.c=new $e(Qm,e,12,10)),e.c),f),rp(f,0),iy(f,1),sp(f,!0),ap(f,!0)}function $ve(e,t){var s,a,l;return s=wC(e.g,t),ue(s,234)?(l=h(s,234),l.Lh()==null,l.Ih()):ue(s,490)?(a=h(s,1910),l=a.b,l):null}function rln(e,t,s,a){var l,f;return Un(t),Un(s),f=h(qC(e.d,t),20),Qot(!!f,"Row %s not in %s",t,e.e),l=h(qC(e.b,s),20),Qot(!!l,"Column %s not in %s",s,e.c),cct(e,f.a,l.a,a)}function dft(e,t,s,a,l,f,v){var w,S,C,A,M;if(A=l[f],C=f==v-1,w=C?a:0,M=Llt(w,A),a!=10&&re(te(e,v-f),t[f],s[f],w,M),!C)for(++f,S=0;S1||w==-1?(f=h(S,14),l.Wb(oan(e,f))):l.Wb(tJ(e,h(S,55)))))}function fln(e,t,s,a,l){var f,v;for(f=0,v=0;v0&&po(e,e.length-1)==33)try{return t=vdt(Ru(e,0,e.length-1)),t.e==null}catch(s){if(s=ni(s),!ue(s,31))throw ee(s)}return!1}function Fve(e){var t;return(e.Db&64)!=0?hL(e):(t=new _l(hL(e)),t.a+=" (abstract: ",K1(t,(e.Bb&256)!=0),t.a+=", interface: ",K1(t,(e.Bb&512)!=0),t.a+=")",t.a)}function gln(e,t,s,a){var l,f,v,w;return bu(e.e)&&(l=t.Xj(),w=t.bd(),f=s.bd(),v=o0(e,1,l,w,f,l.Vj()?g6(e,l,f,ue(l,97)&&(h(l,17).Bb&Bo)!=0):-1,!0),a?a.zi(v):a=v),a}function bln(e){var t;e.c==null&&(t=Pe(e.b)===Pe(w4e)?null:e.b,e.d=t==null?mc:Yet(t)?iGt(Qtt(t)):to(t)?n2e:Xp(ru(t)),e.a=e.a+": "+(Yet(t)?UGt(Qtt(t)):t+""),e.c="("+e.d+") "+e.a)}function mln(){function e(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===CJ&&Map.prototype.entries&&e()?Map:Tyn()}function vln(e,t){var s,a,l,f;for(f=new xo(e.e,0),s=0;f.bste)return s;l>-1e-6&&++s}return s}function pft(e,t){var s,a,l,f,v;for(v=e.e,l=0,f=0,a=new Q(e.a);a.a0&&Glt(this,this.c-1,(He(),nn)),this.c0&&e[0].length>0&&(this.c=_t(It(G(ds(e[0][0]),(Be(),y6e))))),this.a=ge(X4t,Oe,1987,e.length,0,2),this.b=ge(K4t,Oe,1988,e.length,0,2),this.d=new Wct}function Pln(e){return e.c.length==0?!1:(qt(0,e.c.length),h(e.c[0],18)).c.i.k==(tn(),Yi)?!0:E5(lc(new Rt(null,new Lt(e,16)),new dLe),new hLe)}function Oln(e,t,s){return _n(s,"Tree layout",1),i$(e.b),Ih(e.b,(n6(),Jz),Jz),Ih(e.b,JI,JI),Ih(e.b,e_,e_),Ih(e.b,e9,e9),e.a=cF(e.b,t),Xpn(e,t,Aa(s,1)),yn(s),t}function xft(e,t){var s,a,l,f,v,w,S;for(w=wy(t),f=t.f,S=t.g,v=m.Math.sqrt(f*f+S*S),l=0,a=new Q(w);a.a1;t>>=1)(t&1)!=0&&(a=n2(a,s)),s.d==1?s=n2(s,s):s=new elt(X1t(s.a,s.d,ge(An,nr,24,s.d<<1,15,1)));return a=n2(a,s),a}function Gve(){Gve=H;var e,t,s,a;for(K4e=ge(oo,us,24,25,15,1),Y4e=ge(oo,us,24,33,15,1),a=152587890625e-16,t=32;t>=0;t--)Y4e[t]=a,a*=.5;for(s=1,e=24;e>=0;e--)K4e[e]=s,s*=.5}function Gln(e){var t,s;if(_t(It(Ot(e,(Qe(),ex))))){for(s=new bn(mn(hp(e).a.Ic(),new j));Yn(s);)if(t=h(Rn(s),80),Em(t)&&_t(It(Ot(t,Hy))))return!0}return!1}function Ift(e,t){var s,a,l;ro(e.f,t)&&(t.b=e,a=t.c,Ps(e.j,a,0)!=-1||Re(e.j,a),l=t.d,Ps(e.j,l,0)!=-1||Re(e.j,l),s=t.a.b,s.c.length!=0&&(!e.i&&(e.i=new clt(e)),iin(e.i,s)))}function Xln(e){var t,s,a,l,f;return s=e.c.d,a=s.j,l=e.d.d,f=l.j,a==f?s.p=0&&kt(e.substr(t,3),"GMT")||t>=0&&kt(e.substr(t,3),"UTC"))&&(s[0]=t+3),xwe(e,s,a)}function Yln(e,t){var s,a,l,f,v;for(f=e.g.a,v=e.g.b,a=new Q(e.d);a.as;f--)e[f]|=t[f-s-1]>>>v,e[f-1]=t[f-s-1]<=e.f)break;f.c[f.c.length]=s}return f}function Kve(e){var t,s,a,l;for(t=null,l=new Q(e.uf());l.a0&&xa(e.g,t,e.g,t+a,w),v=s.Ic(),e.i+=a,l=0;lf&&yQt(C,dst(s[w],G4e))&&(l=w,f=S);return l>=0&&(a[0]=t+f),l}function rfn(e,t){var s;if(s=TQe(e.b.Ef(),t.b.Ef()),s!=0)return s;switch(e.b.Ef().g){case 1:case 2:return Ya(e.b.qf(),t.b.qf());case 3:case 4:return Ya(t.b.qf(),e.b.qf())}return 0}function ifn(e){var t,s,a;for(a=e.e.c.length,e.a=mg(An,[Oe,nr],[47,24],15,[a,a],2),s=new Q(e.c);s.a1||(s=Zr(v9,re(te(IV,1),je,291,0,[z4])),XA(WR(s,e))>1))}function afn(e,t){var s;if(!cd(e))throw ee(new Ws(mmt));switch(s=cd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-s.g;case 3:return e.j-s.f;case 4:return-(e.i+e.g)}return 0}function cfn(e,t){var s,a,l,f,v;if(e==null)return null;for(v=ge(wl,Qd,24,2*t,15,1),a=0,l=0;a>4&15,f=e[a]&15,v[l++]=Q8e[s],v[l++]=Q8e[f];return Rl(v,0,v.length)}function ufn(e,t,s){var a,l,f;return a=t.Xj(),f=t.bd(),l=a.Vj()?o0(e,4,a,f,null,g6(e,a,f,ue(a,97)&&(h(a,17).Bb&Bo)!=0),!0):o0(e,a.Fj()?2:1,a,f,a.uj(),-1,!0),s?s.zi(l):s=l,s}function bc(e){var t,s;return e>=Bo?(t=tO+(e-Bo>>10&1023)&Ti,s=56320+(e-Bo&1023)&Ti,String.fromCharCode(t)+(""+String.fromCharCode(s))):String.fromCharCode(e&Ti)}function lfn(e,t){zv();var s,a,l,f;return l=h(h(Br(e.r,t),21),81),l.gc()>=2?(a=h(l.Ic().Pb(),110),s=e.t.Fc((ou(),v9)),f=e.t.Fc(z4),!a.a&&!s&&(l.gc()==2||f)):!1}function Oft(e,t,s,a,l){var f,v,w;for(f=f1t(e,t,s,a,l),w=!1;!f;)UL(e,l,!0),w=!0,f=f1t(e,t,s,a,l);w&&UL(e,l,!1),v=Q$(l),v.c.length!=0&&(e.d&&e.d.gg(v),Oft(e,l,s,a,v))}function LL(){LL=H,ooe=new _C(S0,0),C8e=new _C("DIRECTED",1),T8e=new _C("UNDIRECTED",2),E8e=new _C("ASSOCIATION",3),I8e=new _C("GENERALIZATION",4),k8e=new _C("DEPENDENCY",5)}function Yve(e,t,s,a){var l;if(l=!1,to(a)&&(l=!0,WC(t,s,Ln(a))),l||Rv(a)&&(l=!0,Yve(e,t,s,a)),l||ue(a,236)&&(l=!0,xg(t,s,h(a,236))),!l)throw ee(new eX(W3e))}function ffn(e){var t,s,a;if(e==null)return null;for(t=null,s=0;s0;){if(s=a,a=(a-1)/2|0,e.a.ue(st(e.b,a),t)<=0)return Nl(e.b,s,t),!0;Nl(e.b,s,st(e.b,a))}return Nl(e.b,a,t),!0}function Qve(e,t,s,a){var l,f;if(l=0,s)l=rL(e.a[s.g][t.g],a);else for(f=0;f=w)}function hfn(e,t){var s,a,l;if(s=t.Ch(e.a),s&&(l=$f((!s.b&&(s.b=new mu((At(),Vo),ta,s)),s.b),zl),l!=null)){for(a=1;a<(Dc(),xIe).length;++a)if(kt(xIe[a],l))return a}return 0}function pfn(e,t){var s,a,l;if(s=t.Ch(e.a),s&&(l=$f((!s.b&&(s.b=new mu((At(),Vo),ta,s)),s.b),zl),l!=null)){for(a=1;a<(Dc(),SIe).length;++a)if(kt(SIe[a],l))return a}return 0}function _ft(e,t){var s,a,l,f;if(Ut(t),f=e.a.gc(),f=l||t<0)throw ee(new fs(jte+t+Qg+l));if(s>=l||s<0)throw ee(new fs(Rte+s+Qg+l));return t!=s?a=(f=e.Oi(s),e.Ci(t,f),f):a=e.Ji(s),a}function bfn(e,t,s,a){var l,f;for(f=t,l=f.d==null||e.a.ue(s.d,f.d)>0?1:0;f.a[l]!=s;)f=f.a[l],l=e.a.ue(s.d,f.d)>0?1:0;f.a[l]=a,a.b=s.b,a.a[0]=s.a[0],a.a[1]=s.a[1],s.a[0]=null,s.a[1]=null}function eye(e,t){var s;s=Ia((Yp(),Ql),e),ue(s,490)?hs(Ql,e,new oQe(this,t)):hs(Ql,e,this),kZ(this,t),t==(ZS(),uIe)?(this.wb=h(this,1911),h(t,1913)):this.wb=(n0(),Bt)}function Nh(e){if((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c).i!=1)throw ee(new Gt(Nte));return Pa(h(fe((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b),0),93))}function Dft(e){if((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c).i!=1)throw ee(new Gt(Nte));return YA(h(fe((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b),0),93))}function Nft(e){if((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c).i!=1)throw ee(new Gt(Nte));return YA(h(fe((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c),0),93))}function g0(e){if((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c).i!=1)throw ee(new Gt(Nte));return Pa(h(fe((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c),0),93))}function jft(e){var t,s,a;if(a=e,e)for(t=0,s=e.Pg();s;s=s.Pg()){if(++t>ZJ)return jft(s);if(a=s,s==e)throw ee(new Ws("There is a cycle in the containment hierarchy of "+e))}return a}function Rft(){Rft=H,Nyt=re(te(Ze,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),jyt=re(te(Ze,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function $ft(e){var t,s,a;t=kt(typeof t,see)?null:new Ee,t&&(r5(),s=(a=900,a>=x1?"error":a>=900?"warn":a>=800?"info":"log"),Stt(s,e.a),e.b&&ewe(t,s,e.b,"Exception: ",!0))}function G(e,t){var s,a;return a=(!e.q&&(e.q=new Vn),Hn(e.q,t)),a!=null?a:(s=t.rg(),ue(s,4)&&(s==null?(!e.q&&(e.q=new Vn),U3(e.q,t)):(!e.q&&(e.q=new Vn),Fr(e.q,t,s))),s)}function cs(){cs=H,uh=new BT("P1_CYCLE_BREAKING",0),P0=new BT("P2_LAYERING",1),jc=new BT("P3_NODE_ORDERING",2),Ha=new BT("P4_NODE_PLACEMENT",3),Vs=new BT("P5_EDGE_ROUTING",4)}function Lft(e,t){var s,a,l,f,v;for(l=t==1?Bne:Fne,a=l.a.ec().Ic();a.Ob();)for(s=h(a.Pb(),108),v=h(Br(e.f.c,s),21).Ic();v.Ob();)f=h(v.Pb(),46),dc(e.b.b,f.b),dc(e.b.a,h(f.b,79).d)}function mfn(e,t){p8();var s;if(e.c==t.c){if(e.b==t.b||$rn(e.b,t.b)){if(s=sWt(e.b)?1:-1,e.a&&!t.a)return s;if(!e.a&&t.a)return-s}return Ya(e.b.g,t.b.g)}else return go(e.c,t.c)}function vfn(e,t){var s;_n(t,"Hierarchical port position processing",1),s=e.b,s.c.length>0&&Z1t((qt(0,s.c.length),h(s.c[0],29)),e),s.c.length>1&&Z1t(h(st(s,s.c.length-1),29),e),yn(t)}function Fft(e,t){var s,a,l;if(tye(e,t))return!0;for(a=new Q(t);a.aa&&(Fn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return a>0||t1&&(e.j.b+=e.e)):(e.j.a+=s.a,e.j.b=m.Math.max(e.j.b,s.b),e.d.c.length>1&&(e.j.a+=e.e))}function m0(){m0=H,J2t=re(te(zo,1),ba,61,0,[(He(),Wt),nn,xn]),Z2t=re(te(zo,1),ba,61,0,[nn,xn,Xt]),ext=re(te(zo,1),ba,61,0,[xn,Xt,Wt]),txt=re(te(zo,1),ba,61,0,[Xt,Wt,nn])}function wfn(e,t,s,a){var l,f,v,w,S,C,A;if(v=e.c.d,w=e.d.d,v.j!=w.j)for(A=e.b,l=v.j,S=null;l!=w.j;)S=t==0?aL(l):Tme(l),f=rve(l,A.d[l.g],s),C=rve(S,A.d[S.g],s),lr(a,Rr(f,C)),l=S}function xfn(e,t,s,a){var l,f,v,w,S;return v=Xlt(e.a,t,s),w=h(v.a,20).a,f=h(v.b,20).a,a&&(S=h(G(t,(Be(),Kc)),10),l=h(G(s,Kc),10),!!S&&!!l&&(ait(e.b,S,l),w+=e.b.i,f+=e.b.e)),w>f}function zft(e){var t,s,a,l,f,v,w,S,C;for(this.a=ylt(e),this.b=new Fe,s=e,a=0,l=s.length;aiK(e.d).c?(e.i+=e.g.c,BQ(e.d)):iK(e.d).c>iK(e.g).c?(e.e+=e.d.c,BQ(e.g)):(e.i+=Pet(e.g),e.e+=Pet(e.d),BQ(e.g),BQ(e.d))}function kfn(e,t,s){var a,l,f,v;for(f=t.q,v=t.r,new Sg((Mf(),D0),t,f,1),new Sg(D0,f,v,1),l=new Q(s);l.aw&&(S=w/a),l>f&&(C=f/l),v=m.Math.min(S,C),e.a+=v*(t.a-e.a),e.b+=v*(t.b-e.b)}function Pfn(e,t,s,a,l){var f,v;for(v=!1,f=h(st(s.b,0),34);Opt(e,t,f,a,l)&&(v=!0,aln(s,f),s.b.c.length!=0);)f=h(st(s.b,0),34);return s.b.c.length==0&&mP(s.j,s),v&&bL(t.q),v}function Ofn(e,t){if(e<0||t<0)throw ee(new Gt("k and n must be positive"));if(t>e)throw ee(new Gt("k must be smaller than n"));return t==0||t==e?1:e==0?0:Pve(e)/(Pve(t)*Pve(e-t))}function _fn(e,t){C2();var s,a,l,f;if(t.b<2)return!1;for(f=sr(t,0),s=h(or(f),8),a=s;f.b!=f.d.c;){if(l=h(or(f),8),UZ(e,a,l))return!0;a=l}return!!UZ(e,a,s)}function rye(e,t,s,a){var l,f;return s==0?(!e.o&&(e.o=new tu((Ma(),Ip),pb,e,0)),sR(e.o,t,a)):(f=h(Dt((l=h(Vt(e,16),26),l||e.uh()),s),65),f.Ij().Mj(e,Za(e),s-fn(e.uh()),t,a))}function kZ(e,t){var s;t!=e.sb?(s=null,e.sb&&(s=h(e.sb,48).dh(e,1,x9,s)),t&&(s=h(t,48).ah(e,1,x9,s)),s=xme(e,t,s),s&&s.Ai()):(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,4,t,t))}function Mfn(e,t){var s,a,l,f;if(t)l=b1(t,"x"),s=new AWe(e),O5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new PWe(e),D5(a.a,(Ut(f),f));else throw ee(new Fd("All edge sections need a start point."))}function gy(e){if(I4e==null&&(I4e=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!I4e.test(e))throw ee(new Bd(Om+e+'"'));return parseFloat(e)}function Dfn(e,t){var s,a,l,f,v,w,S;for(a=Pct(e),f=0,w=a.length;f>22-t,l=e.h<>22-t):t<44?(s=0,a=e.l<>44-t):(s=0,a=0,l=e.l<>4],t[s*2+1]=WV[f&15];return Rl(t,0,t.length)}function Yfn(e){jR();var t,s,a;switch(a=e.c.length,a){case 0:return vyt;case 1:return t=h(_dt(new Q(e)),43),TYt(t.ad(),t.bd());default:return s=h(Mh(e,ge(eb,bF,43,e.c.length,0,1)),164),new YG(s)}}function Qfn(e){var t,s,a,l,f,v;for(t=new g3,s=new g3,Eg(t,e),Eg(s,e);s.b!=s.c;)for(l=h(d5(s),38),v=new Q(l.a);v.aa&&(e.a=a),e.bl&&(e.b=l),e}function AP(e){var t,s,a;for(a=new Ic,lr(a,new ot(e.j,e.k)),s=new pn((!e.a&&(e.a=new Mi(Xl,e,5)),e.a));s.e!=s.i.gc();)t=h(vn(s),463),lr(a,new ot(t.a,t.b));return lr(a,new ot(e.b,e.c)),a}function edn(e,t,s,a,l){var f,v,w,S,C,A;if(l)for(S=l.a.length,f=new vg(S),A=(f.b-f.a)*f.c<0?(Qp(),q0):new e0(f);A.Ob();)C=h(A.Pb(),20),w=x5(l,C.a),v=new nnt(e,t,s,a),Qgn(v.a,v.b,v.c,v.d,w)}function tdn(e){if(ue(e,149))return Spn(h(e,149));if(ue(e,227))return _sn(h(e,227));if(ue(e,23))return $fn(h(e,23));throw ee(new Gt(G3e+b0(new gu(re(te(dn,1),rt,1,5,[e])))))}function aye(e,t){var s;Re(e.d,t),s=t.pf(),e.c?(e.e.a=m.Math.max(e.e.a,s.a),e.e.b+=s.b,e.d.c.length>1&&(e.e.b+=e.a)):(e.e.a+=s.a,e.e.b=m.Math.max(e.e.b,s.b),e.d.c.length>1&&(e.e.a+=e.a))}function ndn(e){var t,s,a,l;switch(l=e.i,t=l.b,a=l.j,s=l.g,l.a.g){case 0:s.a=(e.g.b.o.a-a.a)/2;break;case 1:s.a=t.d.n.a+t.d.a.a;break;case 2:s.a=t.d.n.a+t.d.a.a-a.a;break;case 3:s.b=t.d.n.b+t.d.a.b}}function rdn(e,t,s,a,l){var f,v,w;for(f=!0,v=0;v>>l|s[v+a+1]<>>l,++v}return f}function Jft(e,t,s,a){var l;this.b=a,this.e=e==(gm(),YI),l=t[s],this.d=mg(du,[Oe,Bh],[177,24],16,[l.length,l.length],2),this.a=mg(An,[Oe,nr],[47,24],15,[l.length,l.length],2),this.c=new qve(t,s)}function cye(e,t,s,a){var l,f,v;if(t.k==(tn(),Yi)){for(f=new bn(mn(Os(t).a.Ic(),new j));Yn(f);)if(l=h(Rn(f),18),v=l.c.i.k,v==Yi&&e.c.a[l.c.i.c.p]==a&&e.c.a[t.c.p]==s)return!0}return!1}function uye(e){var t,s,a;return s=h(Ot(e,(Pr(),hE)),21),s.Fc((xu(),ew))?(a=h(Ot(e,$4),21),t=h(Ot(e,p_),8),a.Fc((su(),SE))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t):new Yo}function idn(e,t){var s,a,l,f;return t&=63,s=e.h&E1,t<22?(f=s>>>t,l=e.m>>t|s<<22-t,a=e.l>>t|e.m<<22-t):t<44?(f=0,l=s>>>t-22,a=e.m>>t-22|e.h<<44-t):(f=0,l=0,a=s>>>t-44),Qa(a&cu,l&cu,f&E1)}function odn(e){var t,s,a;for(e.k=new gge((He(),re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt])).length,e.j.c.length),a=new Q(e.j);a.a=s)return c6(e,t,a.p),!0;return!1}function rdt(e,t,s){var a,l,f,v,w;for(w=ec(e.e.Og(),t),l=h(e.g,118),a=0,v=0;v=0?e.wh(l):xye(e,a);else throw ee(new Gt(C0+a.ne()+gI));else throw ee(new Gt(Amt+t+Pmt));else hl(e,s,a)}function idt(e){var t;return(e.Db&64)!=0?CZ(e):(t=new ju(R3e),!e.a||Xn(Xn((t.a+=' "',t),e.a),'"'),Xn(qb(Xn(qb(Xn(qb(Xn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function odt(e){var t,s,a;if(t=e.c,t==2||t==7||t==1)return Er(),Er(),_9;for(a=Ywe(e),s=null;(t=e.c)!=2&&t!=7&&t!=1;)s||(s=(Er(),Er(),new RC(1)),zg(s,a),a=s),zg(s,Ywe(e));return a}function udn(e,t,s){return e<0||e>s?mye(e,s,"start index"):t<0||t>s?mye(t,s,"end index"):V8("end index (%s) must not be less than start index (%s)",re(te(dn,1),rt,1,5,[Ue(t),Ue(e)]))}function sdt(e,t,s){var a,l,f,v;for(_n(s,"ELK Force",1),v=mct(t),fun(v),zin(e,h(G(v,(Bf(),$Se)),418)),f=wpt(e.a,v),l=f.Ic();l.Ob();)a=h(l.Pb(),229),wgn(e.b,a,Aa(s,1/f.gc()));v=j0t(f),_0t(v),yn(s)}function c6(e,t,s){var a,l,f;for(s!=t.c+t.b.gc()&&omn(t.a,ein(t,s-t.c)),f=t.a.c.p,e.a[f]=m.Math.max(e.a[f],t.a.o.a),l=h(G(t.a,(Be(),HO)),14).Ic();l.Ob();)a=h(l.Pb(),69),_e(a,Qne,(Zt(),!0))}function adt(e,t,s){var a,l,f,v,w;for(t.p=-1,w=cy(t,(ss(),nc)).Ic();w.Ob();)for(v=h(w.Pb(),11),l=new Q(v.g);l.a0&&adt(e,f,s));t.p=0}function gt(e){var t;this.c=new ci,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=h(_f(Ep),9),new al(t,h(lf(t,t.length),9),0)),this.g=e.f}function fye(e){var t,s;if(s=null,t=!1,ue(e,202)&&(t=!0,s=h(e,202).a),t||ue(e,257)&&(t=!0,s=""+h(e,257).a),t||ue(e,477)&&(t=!0,s=""+h(e,477).a),!t)throw ee(new eX(W3e));return s}function ldn(e){var t,s,a,l;for(t=r0(Xn(new ju("Predicates."),"and"),40),s=!0,l=new eC(e);l.b0?w[v-1]:ge(vp,Kg,10,0,0,1),l=w[v],C=v1&&(t.c[t.c.length]=f))}function pdn(e){var t,s,a,l;for(s=new ci,ks(s,e.o),a=new lhe;s.b!=0;)t=h(s.b==0?null:(hn(s.b!=0),fl(s,s.a.a)),500),l=$0t(e,t,!0),l&&Re(a.a,t);for(;a.a.c.length!=0;)t=h(Nct(a),500),$0t(e,t,!1)}function dp(){dp=H,OCe=new C3(rI,0),Wo=new C3("BOOLEAN",1),fa=new C3("INT",2),dE=new C3("STRING",3),ea=new C3("DOUBLE",4),xi=new C3("ENUM",5),j4=new C3("ENUMSET",6),kd=new C3("OBJECT",7)}function R8(e,t){var s,a,l,f,v;a=m.Math.min(e.c,t.c),f=m.Math.min(e.d,t.d),l=m.Math.max(e.c+e.b,t.c+t.b),v=m.Math.max(e.d+e.a,t.d+t.a),l=(l/2|0))for(this.e=a?a.c:null,this.d=l;s++0;)hge(this);this.b=t,this.a=null}function mdn(e,t){var s,a;t.a?Ppn(e,t):(s=h(uK(e.b,t.b),56),!!s&&s==e.a[t.b.f]&&!!s.a&&s.a!=t.b.a&&s.c.Dc(t.b),a=h(cK(e.b,t.b),56),!!a&&e.a[a.f]==t.b&&!!a.a&&a.a!=t.b.a&&t.b.c.Dc(a),QX(e.b,t.b))}function pdt(e,t){var s,a;if(s=h(is(e.b,t),121),h(h(Br(e.r,t),21),81).dc()){s.n.b=0,s.n.c=0;return}s.n.b=e.B.b,s.n.c=e.B.c,e.w.Fc((xu(),hb))&&S1t(e,t),a=qan(e,t),qZ(e,t)==(h2(),$0)&&(a+=2*e.v),s.a.a=a}function gdt(e,t){var s,a;if(s=h(is(e.b,t),121),h(h(Br(e.r,t),21),81).dc()){s.n.d=0,s.n.a=0;return}s.n.d=e.B.d,s.n.a=e.B.a,e.w.Fc((xu(),hb))&&E1t(e,t),a=Wan(e,t),qZ(e,t)==(h2(),$0)&&(a+=2*e.v),s.a.b=a}function vdn(e,t){var s,a,l,f;for(f=new Fe,a=new Q(t);a.a=0?e.nh(f,s):Gye(e,l,s);else throw ee(new Gt(C0+l.ne()+gI));else throw ee(new Gt(Amt+t+Pmt));else pl(e,a,l,s)}function wdt(e,t,s){var a,l,f,v,w,S;if(w=h(Vt(e.a,8),1908),w!=null)for(l=w,f=0,v=l.length;fs.a&&(a.Fc((hy(),a_))?l=(t.a-s.a)/2:a.Fc(c_)&&(l=t.a-s.a)),t.b>s.b&&(a.Fc((hy(),l_))?f=(t.b-s.b)/2:a.Fc(u_)&&(f=t.b-s.b)),Zve(e,l,f)}function Edt(e,t,s,a,l,f,v,w,S,C,A,M,R){ue(e.Cb,87)&&my(eu(h(e.Cb,87)),4),za(e,s),e.f=v,Y5(e,w),Z5(e,S),Q5(e,C),J5(e,A),sp(e,M),e6(e,R),ap(e,!0),rp(e,l),e.jk(f),jg(e,t),a!=null&&(e.i=null,L$(e,a))}function kdt(e){var t,s;if(e.f){for(;e.n>0;){if(t=h(e.k.Xb(e.n-1),71),s=t.Xj(),ue(s,97)&&(h(s,17).Bb&la)!=0&&(!e.e||s.Bj()!=EE||s.Xi()!=0)&&t.bd()!=null)return!0;--e.n}return!1}else return e.n>0}function Mdn(e,t){var s,a,l;if(l=0,t.length>0)try{l=Uu(t,Co,Ir)}catch(f){throw f=ni(f),ue(f,127)?(a=f,ee(new w$(a))):ee(f)}return s=(!e.a&&(e.a=new FG(e)),e.a),l=0?h(fe(s,l),55):null}function vye(e,t,s,a,l,f){var v,w,S,C;if(v=a-s,v<7){lsn(t,s,a,f);return}if(S=s+l,w=a+l,C=S+(w-S>>1),vye(t,e,S,C,-l,f),vye(t,e,C,w,-l,f),f.ue(e[C-1],e[C])<=0){for(;sf.a&&!t&&(l.b=f.a),l.c=-(l.b-f.a)/2,s.g){case 1:l.d=-l.a;break;case 3:l.d=f.b}iJ(a),oJ(a)}function Adt(e,t,s){var a,l,f;switch(f=e.o,a=h(is(e.p,s),243),l=a.i,l.b=MP(a),l.a=_P(a),l.a=m.Math.max(l.a,f.b),l.a>f.b&&!t&&(l.a=f.b),l.d=-(l.a-f.b)/2,s.g){case 4:l.c=-l.b;break;case 2:l.c=f.a}iJ(a),oJ(a)}function jdn(e,t){var s,a,l,f,v;if(!t.dc()){if(l=h(t.Xb(0),128),t.gc()==1){Yht(e,l,l,1,0,t);return}for(s=1;s0)for(v=e.c.d,w=e.d.d,l=Ud(no(new ot(w.a,w.b),v),1/(a+1)),f=new ot(v.a,v.b),s=new Q(e.a);s.a=0?e.Wg(s,!0,!0):km(e,l,!0),152)),h(a,212).jl(t);else throw ee(new Gt(C0+t.ne()+gI))}function Wdn(e,t,s){var a,l,f,v,w,S;if(s)for(l=s.a.length,a=new vg(l),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),S=sZ(e,t4(ty(s,v.a))),S&&(f=(!t.b&&(t.b=new Ht(Bn,t,4,7)),t.b),On(f,S))}function Gdn(e,t,s){var a,l,f,v,w,S;if(s)for(l=s.a.length,a=new vg(l),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),S=sZ(e,t4(ty(s,v.a))),S&&(f=(!t.c&&(t.c=new Ht(Bn,t,5,8)),t.c),On(f,S))}function OP(e,t,s){var a,l;a=t.a&e.f,t.b=e.b[a],e.b[a]=t,l=t.f&e.f,t.d=e.c[l],e.c[l]=t,s?(t.e=s.e,t.e?t.e.c=t:e.a=t,t.c=s.c,t.c?t.c.e=t:e.e=t):(t.e=e.e,t.c=null,e.e?e.e.c=t:e.a=t,e.e=t),++e.i,++e.g}function Xdn(e,t){var s;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(s=h(U3(e.b,t.a),282),s.a=0,++e.c):(s=h(Hn(e.b,t.a),282),--s.a,t.e?t.e.c=t.c:s.b=t.c,t.c?t.c.e=t.e:s.c=t.e),--e.d}function Kdn(e){var t,s;return s=-e.a,t=re(te(wl,1),Qd,24,15,[43,48,48,48,48]),s<0&&(t[0]=45,s=-s),t[1]=t[1]+((s/60|0)/10|0)&Ti,t[2]=t[2]+(s/60|0)%10&Ti,t[3]=t[3]+(s%60/10|0)&Ti,t[4]=t[4]+s%10&Ti,Rl(t,0,t.length)}function Sye(e){var t,s;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),s=Ci(m.Math.floor(m.Math.log(e)/.6931471805599453)),(!t||e!=m.Math.pow(2,s))&&++s,s):Vat(gc(e))}function Ndt(e,t,s){var a,l;for(a=t.d,l=s.d;a.a-l.a==0&&a.b-l.b==0;)a.a+=Su(e,26)*Z8+Su(e,27)*J8-.5,a.b+=Su(e,26)*Z8+Su(e,27)*J8-.5,l.a+=Su(e,26)*Z8+Su(e,27)*J8-.5,l.b+=Su(e,26)*Z8+Su(e,27)*J8-.5}function DZ(e){var t,s,a,l;for(e.g=new I8(h(Un(zo),289)),a=0,s=(He(),Wt),t=0;t2&&w.e.b+w.j.b<=2&&(l=w,a=v),f.a.xc(l,f),l.q=a);return f}function Rdt(e,t){var s,a,l;return a=new y1(e),Cs(a,t),_e(a,(Be(),Iz),t),_e(a,(Qe(),yi),(lo(),ja)),_e(a,lh,(Dh(),mV)),ug(a,(tn(),Pi)),s=new wa,js(s,a),Fi(s,(He(),Xt)),l=new wa,js(l,a),Fi(l,nn),a}function $dt(e,t){var s,a,l,f,v;for(e.c[t.p]=!0,Re(e.a,t),v=new Q(t.j);v.a=0&&a0&&(w+=s,++t);t>1&&(w+=e.c*(t-1))}else w=CXe(Cat(RR(Kr(RK(e.a),new Hp),new Hs)));return w>0?w+e.n.d+e.n.a:0}function MP(e){var t,s,a,l,f,v,w;if(w=0,e.b==0)w=CXe(Cat(RR(Kr(RK(e.a),new zi),new c3)));else{for(v=Olt(e,!0),t=0,a=v,l=0,f=a.length;l0&&(w+=s,++t);t>1&&(w+=e.c*(t-1))}return w>0?w+e.n.b+e.n.c:0}function ihn(e,t,s){var a,l,f,v,w,S;if(!e||e.c.length==0)return null;for(f=new Tnt(t,!s),l=new Q(e);l.a0)switch(t.g){case 2:f.n.c=e.s;break;case 4:f.n.b=e.s}}function shn(e,t){var s,a,l;return s=h(G(t,(Bf(),V6)),20).a-h(G(e,V6),20).a,s==0?(a=no(Xs(h(G(e,(u0(),jO)),8)),h(G(e,MI),8)),l=no(Xs(h(G(t,jO),8)),h(G(t,MI),8)),go(a.a*a.b,l.a*l.b)):s}function ahn(e,t){var s,a,l;return s=h(G(t,(by(),oV)),20).a-h(G(e,oV),20).a,s==0?(a=no(Xs(h(G(e,(ua(),t_)),8)),h(G(e,t9),8)),l=no(Xs(h(G(t,t_),8)),h(G(t,t9),8)),go(a.a*a.b,l.a*l.b)):s}function Udt(e){var t,s;return s=new Wp,s.a+="e_",t=hin(e),t!=null&&(s.a+=""+t),!!e.c&&!!e.d&&(Xn((s.a+=" ",s),_L(e.c)),Xn(ca((s.a+="[",s),e.c.i),"]"),Xn((s.a+=Iee,s),_L(e.d)),Xn(ca((s.a+="[",s),e.d.i),"]")),s.a}function Cye(e,t,s,a,l){var f;switch(f=0,l.g){case 1:f=m.Math.max(0,t.b+e.b-(s.b+a));break;case 3:f=m.Math.max(0,-e.b-a);break;case 2:f=m.Math.max(0,-e.a-a);break;case 4:f=m.Math.max(0,t.a+e.a-(s.a+a))}return f}function Iye(e){var t,s;switch(e.b){case-1:return!0;case 0:return s=e.t,s>1||s==-1?(e.b=-1,!0):(t=$l(e),!!t&&(Uo(),t.xj()==Pvt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function chn(e,t){var s,a,l,f,v;for(a=(!t.s&&(t.s=new $e(wc,t,21,17)),t.s),f=null,l=0,v=a.i;l=0?e.Wg(s,!0,!0):km(e,l,!0),152)),h(a,212).gl(t);throw ee(new Gt(C0+t.ne()+kte))}function lhn(e,t){var s,a,l;if(!t)YY(e,null),N5(e,null);else if((t.i&4)!=0)for(a="[]",s=t.c;;s=s.c){if((s.i&4)==0){l=She((a1(s),s.o+a)),YY(e,l),N5(e,l);break}a+="[]"}else l=She((a1(t),t.o)),YY(e,l),N5(e,l);e.tk(t)}function L8(e,t,s,a,l){var f,v,w,S;return S=rK(e,h(l,55)),Pe(S)!==Pe(l)?(w=h(e.g[s],71),f=Oh(t,S),LC(e,s,wZ(e,s,f)),bu(e.e)&&(v=o0(e,9,f.Xj(),l,S,a,!1),Vve(v,new p1(e.e,9,e.c,w,f,a,!1)),LY(v)),S):l}function fhn(e,t,s){var a,l,f,v,w,S;for(a=h(Br(e.c,t),14),l=h(Br(e.c,s),14),f=a.Xc(a.gc()),v=l.Xc(l.gc());f.Sb()&&v.Sb();)if(w=h(f.Ub(),20),S=h(v.Ub(),20),w!=S)return Ya(w.a,S.a);return!f.Ob()&&!v.Ob()?0:f.Ob()?1:-1}function jZ(e,t,s){var a;if(++e.j,t>=e.i)throw ee(new fs(jte+t+Qg+e.i));if(s>=e.i)throw ee(new fs(Rte+s+Qg+e.i));return a=e.g[s],t!=s&&(t=e.length)return-1;for(s=(Fn(a,e.length),e.charCodeAt(a));s>=48&&s<=57&&(l=l*10+(s-48),++a,!(a>=e.length));)s=(Fn(a,e.length),e.charCodeAt(a));return a>t[0]?t[0]=a:l=-1,l}function ghn(e){var t,s,a,l,f;return l=h(e.a,20).a,f=h(e.b,20).a,s=l,a=f,t=m.Math.max(m.Math.abs(l),m.Math.abs(f)),l<=0&&l==f?(s=0,a=f-1):l==-t&&f!=t?(s=f,a=l,f>=0&&++s):(s=-f,a=l),new fo(Ue(s),Ue(a))}function bhn(e,t,s,a){var l,f,v,w,S,C;for(l=0;l=0&&C>=0&&S>16),t=a>>16&16,s=16-t,e=e>>t,a=e-256,t=a>>16&8,s+=t,e<<=t,a=e-Ty,t=a>>16&4,s+=t,e<<=t,a=e-Yd,t=a>>16&2,s+=t,e<<=t,a=e>>14,t=a&~(a>>1),s+2-t)}function vhn(e){R3();var t,s,a,l;for(BB=new Fe,_ne=new Vn,One=new Fe,t=(!e.a&&(e.a=new $e(bi,e,10,11)),e.a),Lyn(t),l=new pn(t);l.e!=l.i.gc();)a=h(vn(l),34),Ps(BB,a,0)==-1&&(s=new Fe,Re(One,s),tlt(a,s));return One}function yhn(e,t,s){var a,l,f,v;e.a=s.b.d,ue(t,349)?(l=k2(h(t,80),!1,!1),f=AP(l),a=new LHe(e),Eo(f,a),VP(f,l),t.Xe((Pr(),cx))!=null&&Eo(h(t.Xe(cx),74),a)):(v=h(t,464),v.Cg(v.yg()+e.a.a),v.Dg(v.zg()+e.a.b))}function km(e,t,s){var a,l,f;if(f=A2((Dc(),vo),e.Og(),t),f)return Uo(),h(f,65).Jj()||(f=L3(gs(vo,f))),l=(a=e.Tg(f),h(a>=0?e.Wg(a,!0,!0):km(e,f,!0),152)),h(l,212).cl(t,s);throw ee(new Gt(C0+t.ne()+kte))}function NP(e,t){var s;if(t<0)throw ee(new rj("Negative exponent"));if(t==0)return AB;if(t==1||jme(e,AB)||jme(e,F6))return e;if(!dht(e,0)){for(s=1;!dht(e,s);)++s;return n2($sn(s*t),NP(Fge(e,s),t))}return Wln(e,t)}function whn(e,t,s,a,l){var f,v,w,S;if(Pe(e)===Pe(t)&&a==l){X1t(e,a,s);return}for(w=0;w=0?s:(w=e8(no(new ot(v.c+v.b/2,v.d+v.a/2),new ot(f.c+f.b/2,f.d+f.a/2))),-(upt(f,v)-1)*w)}function Shn(e,t,s){var a;mi(new Rt(null,(!s.a&&(s.a=new $e(ai,s,6,6)),new Lt(s.a,16))),new RYe(e,t)),mi(new Rt(null,(!s.n&&(s.n=new $e(Ms,s,1,7)),new Lt(s.n,16))),new $Ye(e,t)),a=h(Ot(s,(Pr(),cx)),74),a&&jbe(a,e,t)}function Tye(e,t,s,a){var l,f,v,w,S;if(l=e.d[t],l){if(f=l.g,S=l.i,a!=null){for(w=0;w=s&&(a=t,C=(S.c+S.a)/2,v=C-s,S.c<=C-s&&(l=new gK(S.c,v),qv(e,a++,l)),w=C+s,w<=S.a&&(f=new gK(w,S.a),Yv(a,e.c.length),TC(e.c,a,f)))}function Aye(e){var t;if(!e.c&&e.g==null)e.d=e.ni(e.f),On(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=h(e.g[e.i-1],49)}return t==e.b&&null.fm>=null.em()?(HL(e),Aye(e)):t.Ob()}function Chn(e,t,s){var a,l,f,v,w;if(w=s,!w&&(w=d0e(new GS,0)),_n(w,Jgt,1),l0t(e.c,t),v=avn(e.a,t),v.gc()==1)Wpt(h(v.Xb(0),38),w);else for(f=1/v.gc(),l=v.Ic();l.Ob();)a=h(l.Pb(),38),Wpt(a,Aa(w,f));GHt(e.a,v,t),l0n(t),yn(w)}function Ihn(e,t){var s,a,l,f,v;if(s=h(Vt(e.a,4),124),v=s==null?0:s.length,t>=v)throw ee(new Vv(t,v));return l=s[t],v==1?a=null:(a=ge(hoe,Vte,410,v-1,0,1),xa(s,0,a,0,t),f=v-t-1,f>0&&xa(s,t+1,a,t,f)),t6(e,a),wdt(e,t,l),l}function Xdt(e,t){var s,a,l;l=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,3,l,e.b)),t?t!=e&&(za(e,t.zb),XY(e,t.d),s=(a=t.c,a==null?t.zb:a),QY(e,s==null||kt(s,t.zb)?null:s)):(za(e,null),XY(e,0),QY(e,null))}function Kdt(e){var t,s;if(e.f){for(;e.n=0;)a=s[f],v.ml(a.Xj())&&On(l,a);!B0t(e,l)&&bu(e.e)&&WS(e,t.Vj()?o0(e,6,t,(Mt(),qo),null,-1,!1):o0(e,t.Fj()?2:1,t,null,null,-1,!1))}function nht(e,t){var s,a,l,f;s=h(G(e,(Qe(),Gu)),108),f=h(Ot(t,sE),61),l=h(G(e,yi),100),l!=(lo(),Cd)&&l!=L0?f==(He(),Us)&&(f=Twe(t,s),f==Us&&(f=K3(s))):(a=qpt(t),a>0?f=K3(s):f=fP(K3(s))),Is(t,sE,f)}function _hn(e,t){var s,a,l,f,v;return e.a==(a6(),RI)?!0:(f=t.a.c,s=t.a.c+t.a.b,!(t.j&&(a=t.A,v=a.c.c.a-a.o.a/2,l=f-(a.n.a+a.o.a),l>v)||t.q&&(a=t.C,v=a.c.c.a-a.o.a/2,l=a.n.a-s,l>v)))}function Mhn(e,t){var s;_n(t,"Partition preprocessing",1),s=h(Fu(Kr(Rs(Kr(new Rt(null,new Lt(e.a,16)),new oRe),new sRe),new aRe),Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[(gd(),Wu)]))),14),mi(s.Mc(),new cRe),yn(t)}function rht(e){lY();var t,s,a,l,f,v,w;for(s=new Cg,l=new Q(e.e.b);l.a1?e.e*=Ae(e.a):e.f/=Ae(e.a),fon(e),lan(e),G0n(e),_e(e.b,(O8(),FB),e.g)}function aht(e,t,s){var a,l,f,v,w,S;for(a=0,S=s,t||(a=s*(e.c.length-1),S*=-1),f=new Q(e);f.a=0?(t||(t=new fC,a>0&&rs(t,e.substr(0,a))),t.a+="\\",p5(t,s&Ti)):t&&p5(t,s&Ti);return t?t.a:e}function $Z(e){var t,s,a,l,f;return f=e.$g(),f&&f.fh()&&(l=h0(e,f),l!=f)?(s=e.Qg(),a=(t=e.Qg(),t>=0?e.Lg(null):e.$g().dh(e,-1-t,null,null)),e.Mg(h(l,48),s),a&&a.Ai(),e.Gg()&&e.Hg()&&s>-1&&Tr(e,new Gi(e,9,s,f,l)),l):f}function dht(e,t){var s,a,l;if(t==0)return(e.a[0]&1)!=0;if(t<0)throw ee(new rj("Negative bit address"));if(l=t>>5,l>=e.d)return e.e<0;if(s=e.a[l],t=1<<(t&31),e.e<0){if(a=jat(e),l>16)),14).Vc(f),w0&&(!(gg(e.a.c)&&t.n.d)&&!(JT(e.a.c)&&t.n.b)&&(t.g.d+=m.Math.max(0,a/2-.5)),!(gg(e.a.c)&&t.n.a)&&!(JT(e.a.c)&&t.n.c)&&(t.g.a-=a-1))}function bht(e){var t,s,a,l,f;if(l=new Fe,f=ipt(e,l),t=h(G(e,(Be(),Kc)),10),t)for(a=new Q(t.j);a.a>t,f=e.m>>t|s<<22-t,l=e.l>>t|e.m<<22-t):t<44?(v=a?E1:0,f=s>>t-22,l=e.m>>t-22|s<<44-t):(v=a?E1:0,f=a?cu:0,l=s>>t-44),Qa(l&cu,f&cu,v&E1)}function LZ(e){var t,s,a,l,f,v;for(this.c=new Fe,this.d=e,a=pi,l=pi,t=Oi,s=Oi,v=sr(e,0);v.b!=v.d.c;)f=h(or(v),8),a=m.Math.min(a,f.a),l=m.Math.min(l,f.b),t=m.Math.max(t,f.a),s=m.Math.max(s,f.b);this.a=new cl(a,l,t-a,s-l)}function vht(e,t){var s,a,l,f,v,w;for(f=new Q(e.b);f.a0&&ue(t,43)&&(e.a.lj(),C=h(t,43),S=C.ad(),f=S==null?0:ri(S),v=kpe(e.a,f),s=e.a.d[v],s)){for(a=h(s.g,364),A=s.i,w=0;w=2)for(s=l.Ic(),t=Ke(s.Pb());s.Ob();)f=t,t=Ke(s.Pb()),a=m.Math.min(a,(Ut(t),t-(Ut(f),f)));return a}function Qhn(e,t){var s,a,l,f,v;a=new ci,wi(a,t,a.c.b,a.c);do for(s=(hn(a.b!=0),h(fl(a,a.a.a),83)),e.b[s.g]=1,f=sr(s.d,0);f.b!=f.d.c;)l=h(or(f),188),v=l.c,e.b[v.g]==1?lr(e.a,l):e.b[v.g]==2?e.b[v.g]=1:wi(a,v,a.c.b,a.c);while(a.b!=0)}function Zhn(e,t){var s,a,l;if(Pe(t)===Pe(Un(e)))return!0;if(!ue(t,14)||(a=h(t,14),l=e.gc(),l!=a.gc()))return!1;if(ue(a,53)){for(s=0;s0&&(l=s),v=new Q(e.f.e);v.a=0;f+=s?1:-1)v=v|t.c.Pf(S,f,s,a&&!_t(It(G(t.j,(Be(),Tz))))),v=v|t.q.Xf(S,f,s),v=v|M1t(e,S[f],s,a);return ro(e.c,t),v}function l1n(e,t,s){var a,l,f,v;for(_n(s,"Processor set coordinates",1),e.a=t.b.b==0?1:t.b.b,f=null,a=sr(t.b,0);!f&&a.b!=a.d.c;)v=h(or(a),83),_t(It(G(v,(ua(),Zy))))&&(f=v,l=v.e,l.a=h(G(v,vie),20).a,l.b=0);Yft(e,Hbe(f),Aa(s,1)),yn(s)}function f1n(e,t,s){var a,l,f;for(_n(s,"Processor determine the height for each level",1),e.a=t.b.b==0?1:t.b.b,l=null,a=sr(t.b,0);!l&&a.b!=a.d.c;)f=h(or(a),83),_t(It(G(f,(ua(),Zy))))&&(l=f);l&&l1t(e,fd(re(te(i2n,1),A2e,83,0,[l])),s),yn(s)}function d1n(e,t){var s,a,l,f,v,w,S,C,A,M;C=e,S=c8(C,"individualSpacings"),S&&(a=s0(t,(Pr(),F4)),v=!a,v&&(l=new AG,Is(t,F4,l)),w=h(Ot(t,F4),370),M=S,f=null,M&&(f=(A=eQ(M,ge(Ze,Oe,2,0,6,1)),new lX(M,A))),f&&(s=new QYe(M,w),Eo(f,s)))}function h1n(e,t){var s,a,l,f,v,w,S,C,A,M,R;return S=null,M=e,A=null,(Lmt in M.a||Fmt in M.a||rB in M.a)&&(C=null,R=Gbe(t),v=c8(M,Lmt),s=new jWe(R),Msn(s.a,v),w=c8(M,Fmt),a=new qWe(R),Dsn(a.a,w),f=um(M,rB),l=new XWe(R),C=(Sln(l.a,f),f),A=C),S=A,S}function p1n(e){var t,s,a,l;return a=h(e.a,20).a,l=h(e.b,20).a,t=a,s=l,a==0&&l==0?s-=1:a==-1&&l<=0?(t=0,s-=2):a<=0&&l>0?(t-=1,s-=1):a>=0&&l<0?(t+=1,s+=1):a>0&&l>=0?(t-=1,s+=1):(t+=1,s-=1),new fo(Ue(t),Ue(s))}function g1n(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?ri(e.a)-ri(t.a):e.d==(u8(),ZI)&&t.d==QI?-1:e.d==QI&&t.d==ZI?1:0}function kht(e,t){var s,a,l,f,v;return f=t.a,f.c.i==t.b?v=f.d:v=f.c,f.c.i==t.b?a=f.c:a=f.d,l=Vsn(e.a,v,a),l>0&&l0):l<0&&-l0):!1}function b1n(e){var t,s,a,l,f,v,w;if(e==null)return null;for(w=e.length,l=(w+1)/2|0,v=ge(Lc,L2,24,l,15,1),w%2!=0&&(v[--l]=uwe((Fn(w-1,e.length),e.charCodeAt(w-1)))),s=0,a=0;s>24;return v}function m1n(e){if(e.pe()){var t=e.c;t.qe()?e.o="["+t.n:t.pe()?e.o="["+t.ne():e.o="[L"+t.ne()+";",e.b=t.me()+"[]",e.k=t.oe()+"[]";return}var s=e.j,a=e.d;a=a.split("/"),e.o=zQ(".",[s,zQ("$",a)]),e.b=zQ(".",[s,zQ(".",a)]),e.k=a[a.length-1]}function v1n(e,t){var s,a,l,f,v;for(v=null,f=new Q(e.e.a);f.a=0;t-=2)for(s=0;s<=t;s+=2)(e.b[s]>e.b[s+2]||e.b[s]===e.b[s+2]&&e.b[s+1]>e.b[s+3])&&(a=e.b[s+2],e.b[s+2]=e.b[s],e.b[s]=a,a=e.b[s+3],e.b[s+3]=e.b[s+1],e.b[s+1]=a);e.c=!0}}function B8(e){var t,s,a,l;if(e.e)throw ee(new Ws((a1(yne),aee+yne.k+cee)));for(e.d==(as(),A1)&&lF(e,xf),s=new Q(e.a.a);s.a>>0,t.toString(16))),e.fh()?(s.a+=" (eProxyURI: ",ca(s,e.lh()),e.Vg()&&(s.a+=" eClass: ",ca(s,e.Vg())),s.a+=")"):e.Vg()&&(s.a+=" (eClass: ",ca(s,e.Vg()),s.a+=")"),s.a}function Iht(e,t){var s,a,l,f,v,w,S,C,A;if(C=t,A=h(M$(UK(e.i),C),34),!A)throw l=f1(C,ih),w="Unable to find elk node for json object '"+l,S=w+"' Panic!",ee(new Fd(S));f=um(C,"edges"),s=new UYe(e,A),Ufn(s.a,s.b,f),v=um(C,Mte),a=new TWe(e),xun(a.a,v)}function S1n(e,t,s,a){var l,f,v,w,S,C,A,M;for(l=(t-e.d)/e.c.c.length,f=0,e.a+=s,e.d=t,M=new Q(e.c);M.a>24}return s}function k1n(e,t,s){var a,l,f;if(l=h(is(e.i,t),304),!l)if(l=new _st(e.d,t,s),M3(e.i,t,l),eve(t))UWt(e.a,t.c,t.b,l);else switch(f=gdn(t),a=h(is(e.p,f),243),f.g){case 1:case 3:l.j=!0,QG(a,t.b,l);break;case 4:case 2:l.k=!0,QG(a,t.c,l)}return l}function C1n(e,t,s,a){var l,f,v,w,S,C;if(w=new FN,S=ec(e.e.Og(),t),l=h(e.g,118),Uo(),h(t,65).Jj())for(v=0;v=0)return l;for(f=1,w=new Q(t.j);w.a0&&(!(gg(e.a.c)&&t.n.d)&&!(JT(e.a.c)&&t.n.b)&&(t.g.d-=m.Math.max(0,a/2-.5)),!(gg(e.a.c)&&t.n.a)&&!(JT(e.a.c)&&t.n.c)&&(t.g.a+=m.Math.max(0,a-1)))}function Pht(e,t,s){var a,l;if((e.c-e.b&e.a.length-1)==2)t==(He(),Wt)||t==nn?(O$(h(x8(e),14),(Vu(),Vh)),O$(h(x8(e),14),R0)):(O$(h(x8(e),14),(Vu(),R0)),O$(h(x8(e),14),Vh));else for(l=new n8(e);l.a!=l.b;)a=h(iL(l),14),O$(a,s)}function Su(e,t){var s,a,l,f,v,w;return f=e.a*ree+e.b*1502,w=e.b*ree+11,s=m.Math.floor(w*rO),f+=s,w-=s*c2e,f%=c2e,e.a=f,e.b=w,t<=24?m.Math.floor(e.a*K4e[t]):(l=e.a*(1<=2147483648&&(a-=JJ),a)}function Oht(e,t,s){var a,l,f,v;frt(e,t)>frt(e,s)?(a=Ls(s,(He(),nn)),e.d=a.dc()?0:wK(h(a.Xb(0),11)),v=Ls(t,Xt),e.b=v.dc()?0:wK(h(v.Xb(0),11))):(l=Ls(s,(He(),Xt)),e.d=l.dc()?0:wK(h(l.Xb(0),11)),f=Ls(t,nn),e.b=f.dc()?0:wK(h(f.Xb(0),11)))}function _ht(e){var t,s,a,l,f,v,w;if(e&&(t=e.Ch(Vl),t&&(v=Ln($f((!t.b&&(t.b=new mu((At(),Vo),ta,t)),t.b),"conversionDelegates")),v!=null))){for(w=new Fe,a=xy(v,"\\w+"),l=0,f=a.length;l>>0),s.toString(16)),Ian(xin(),(r5(),"Exception during lenientFormat for "+a),t),"<"+a+" threw "+Xp(t.bm)+">";throw ee(l)}}function Mht(e,t){var s,a,l,f;for(s=e.o.a,f=h(h(Br(e.r,t),21),81).Ic();f.Ob();)l=h(f.Pb(),110),l.e.a=s*Ae(Ke(l.b.Xe(RB))),l.e.b=(a=l.b,a.Ye((Pr(),lu))?a.Ef()==(He(),Wt)?-a.pf().b-Ae(Ke(a.Xe(lu))):Ae(Ke(a.Xe(lu))):a.Ef()==(He(),Wt)?-a.pf().b:0)}function P1n(e){var t,s,a,l,f,v,w,S;t=!0,l=null,f=null;e:for(S=new Q(e.a);S.ae.c));v++)l.a>=e.s&&(f<0&&(f=v),w=v);return S=(e.s+e.c)/2,f>=0&&(a=ogn(e,t,f,w),S=Tqt((qt(a,t.c.length),h(t.c[a],327))),khn(t,a,s)),S}function Mn(e,t,s){var a,l,f,v,w,S,C;for(v=(f=new fde,f),Ibe(v,(Ut(t),t)),C=(!v.b&&(v.b=new mu((At(),Vo),ta,v)),v.b),S=1;S0&&Gmn(this,l)}function Hye(e,t,s,a,l,f){var v,w,S;if(!l[t.b]){for(l[t.b]=!0,v=a,!v&&(v=new l$),Re(v.e,t),S=f[t.b].Ic();S.Ob();)w=h(S.Pb(),281),!(w.d==s||w.c==s)&&(w.c!=t&&Hye(e,w.c,t,v,l,f),w.d!=t&&Hye(e,w.d,t,v,l,f),Re(v.c,w),Di(v.d,w.b));return v}return null}function _1n(e){var t,s,a,l,f,v,w;for(t=0,l=new Q(e.e);l.a=2}function M1n(e,t){var s,a,l,f;for(_n(t,"Self-Loop pre-processing",1),a=new Q(e.a);a.a1||(t=Zr(Sf,re(te(ts,1),je,92,0,[O1,Ef])),XA(WR(t,e))>1)||(a=Zr(Cf,re(te(ts,1),je,92,0,[Uh,Gl])),XA(WR(a,e))>1))}function j1n(e,t){var s,a,l;return s=t.Ch(e.a),s&&(l=Ln($f((!s.b&&(s.b=new mu((At(),Vo),ta,s)),s.b),"affiliation")),l!=null)?(a=Qj(l,bc(35)),a==-1?TQ(e,YC(e,Bu(t.Cj())),l):a==0?TQ(e,null,l.substr(1)):TQ(e,l.substr(0,a),l.substr(a+1))):null}function qye(e,t,s){var a,l,f;for(f=new Q(e.t);f.a0&&(a.b.n-=a.c,a.b.n<=0&&a.b.u>0&&lr(t,a.b));for(l=new Q(e.i);l.a0&&(a.a.u-=a.c,a.a.u<=0&&a.a.n>0&&lr(s,a.a))}function HL(e){var t,s,a,l,f;if(e.g==null&&(e.d=e.ni(e.f),On(e,e.d),e.c))return f=e.f,f;if(t=h(e.g[e.i-1],49),l=t.Pb(),e.e=t,s=e.ni(l),s.Ob())e.d=s,On(e,s);else for(e.d=null;!t.Ob()&&(ui(e.g,--e.i,null),e.i!=0);)a=h(e.g[e.i-1],49),t=a;return l}function R1n(e,t){var s,a,l,f,v,w;if(a=t,l=a.Xj(),w1(e.e,l)){if(l.ci()&&a$(e,l,a.bd()))return!1}else for(w=ec(e.e.Og(),l),s=h(e.g,118),f=0;f1||s>1)return 2;return t+s==1?2:0}function jht(e){var t,s,a,l,f,v,w;for(t=0,a=new Q(e.a);a.a=0?e.Wg(a,!0,!0):km(e,f,!0),152)),h(l,212).hl(t,s)}else throw ee(new Gt(C0+t.ne()+gI))}function V1n(e,t,s){var a,l;a=gc(s.q.getTime()),ga(a,0)<0?(l=x1-Pn(hP(I5(a),x1)),l==x1&&(l=0)):l=Pn(hP(a,x1)),t==1?(l=m.Math.min((l+50)/100|0,9),r0(e,48+l&Ti)):t==2?(l=m.Math.min((l+5)/10|0,99),_h(e,l,2)):(_h(e,l,3),t>3&&_h(e,0,t-3))}function U1n(e,t){var s,a,l,f,v;if(_n(t,"Breaking Point Processor",1),tyn(e),_t(It(G(e,(Qe(),$Ee))))){for(l=new Q(e.b);l.a=2*t&&Re(s,new gK(v[a-1]+t,v[a]-t));return s}function G1n(e,t,s){var a,l,f,v,w,S,C,A;if(s)for(f=s.a.length,a=new vg(f),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),l=x5(s,v.a),l&&(i=null,S=ctn(e,(C=(Hb(),A=new hhe,A),t&&Kye(C,t),C),l),b8(S,f1(l,ih)),$L(l,S),yye(l,S),lQ(e,l,S))}function WL(e){var t,s,a,l,f,v;if(!e.j){if(v=new BBe,t=C9,f=t.a.xc(e,t),f==null){for(a=new pn(Ss(e));a.e!=a.i.gc();)s=h(vn(a),26),l=WL(s),di(v,l),On(v,s);t.a.zc(e)!=null}sy(v),e.j=new Ww((h(fe(Ce((n0(),Bt).o),11),17),v.i),v.g),eu(e).b&=-33}return e.j}function X1n(e){var t,s,a,l;if(e==null)return null;if(a=_a(e,!0),l=kO.length,kt(a.substr(a.length-l,l),kO)){if(s=a.length,s==4){if(t=(Fn(0,a.length),a.charCodeAt(0)),t==43)return AIe;if(t==45)return ekt}else if(s==3)return AIe}return new ahe(a)}function K1n(e){var t,s,a;return s=e.l,(s&s-1)!=0||(a=e.m,(a&a-1)!=0)||(t=e.h,(t&t-1)!=0)||t==0&&a==0&&s==0?-1:t==0&&a==0&&s!=0?Obe(s):t==0&&a!=0&&s==0?Obe(a)+22:t!=0&&a==0&&s==0?Obe(t)+44:-1}function Y1n(e,t){var s,a,l,f,v;for(_n(t,"Edge joining",1),s=_t(It(G(e,(Qe(),Wre)))),l=new Q(e.b);l.a1)for(l=new Q(e.a);l.a0),f.a.Xb(f.c=--f.b),Bv(f,l),hn(f.b>16!=6&&!!t){if(r6(e,t))throw ee(new Gt(bI+iht(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?xve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,6,a)),a=Spe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,6,t,t))}function Xye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=3&&!!t){if(r6(e,t))throw ee(new Gt(bI+jpt(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Cve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,12,a)),a=xpe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,3,t,t))}function Kye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=9&&!!t){if(r6(e,t))throw ee(new Gt(bI+$1t(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Eve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,9,a)),a=Epe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,9,t,t))}function J1n(e){var t,s,a,l;return Pe(G(e,(Qe(),Uy)))===Pe((m1(),kp))?!e.e&&Pe(G(e,WO))!==Pe((L5(),BO)):(a=h(G(e,jre),292),l=_t(It(G(e,Rre)))||Pe(G(e,rE))===Pe((B3(),FO)),t=h(G(e,eEe),20).a,s=e.a.c.length,!l&&a!=(L5(),BO)&&(t==0||t>s))}function epn(e){var t,s;for(s=0;s0);s++);if(s>0&&s0);t++);return t>0&&sa.b.g&&(f.c[f.c.length]=a);return f}function h6(){h6=H,sx=new qT("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),N4=new qT("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),s9=new qT("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),o9=new qT("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),a9=new qT("WHOLE_DRAWING",4)}function Yye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=11&&!!t){if(r6(e,t))throw ee(new Gt(bI+pwe(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Ive(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,10,a)),a=Mpe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,11,t,t))}function opn(e){var t,s,a,l,f,v,w;for(f=new ci,l=new Q(e.d.a);l.a1)for(t=Qb((s=new dg,++e.b,s),e.d),w=sr(f,0);w.b!=w.d.c;)v=h(or(w),119),bf(cf(af(uf(sf(new Ol,1),0),t),v))}function spn(e){y2();var t,s;if(e.Fc((He(),Us)))throw ee(new Gt("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return lz;case 2:return t=e.Fc(nn)&&e.Fc(Xt),s=e.Fc(Wt)&&e.Fc(xn),t||s?hz:dz;case 3:return fz;case 4:return uz;default:return null}}function apn(e,t,s){var a,l,f,v,w,S;if(l=s,f=l.Xj(),w1(e.e,f)){if(f.ci()){for(a=h(e.g,118),v=0;vf.a?-1:l.aS){for(A=e.d,e.d=ge(J8e,n4e,60,2*S+4,0,1),f=0;f=9223372036854776e3?(A5(),E4e):(l=!1,e<0&&(l=!0,e=-e),a=0,e>=Ug&&(a=Ci(e/Ug),e-=a*Ug),s=0,e>=c4&&(s=Ci(e/c4),e-=s*c4),t=Ci(e),f=Qa(t,s,a),l&&uQ(f),f)}function vpn(e,t){var s,a,l,f,v;return l=t.Ch(e.a),l&&(a=(!l.b&&(l.b=new mu((At(),Vo),ta,l)),l.b),s=Ln($f(a,Io)),s!=null&&(f=s.lastIndexOf("#"),v=f==-1?bpe(e,t.vj(),s):f==0?jA(e,null,s.substr(1)):jA(e,s.substr(0,f),s.substr(f+1)),ue(v,148)))?h(v,148):null}function ypn(e,t){var s,a,l,f,v;return a=t.Ch(e.a),a&&(s=(!a.b&&(a.b=new mu((At(),Vo),ta,a)),a.b),f=Ln($f(s,Wte)),f!=null&&(l=f.lastIndexOf("#"),v=l==-1?bpe(e,t.vj(),f):l==0?jA(e,null,f.substr(1)):jA(e,f.substr(0,l),f.substr(l+1)),ue(v,148)))?h(v,148):null}function Zye(e){var t,s,a,l,f;for(s=new Q(e.a.a);s.a=-t&&a==t?new fo(Ue(s-1),Ue(a)):new fo(Ue(s),Ue(a-1))}function Uht(){return vs(),re(te(Jwn,1),je,77,0,[p5e,f5e,DI,qne,D5e,QB,oz,q6,_5e,S5e,P5e,H6,M5e,y5e,N5e,o5e,Xne,Yne,YB,Kne,R5e,tz,s5e,O5e,$5e,rz,j5e,Wne,b5e,T5e,I5e,sz,u5e,KB,JB,c5e,U6,k5e,w5e,A5e,NI,d5e,l5e,C5e,x5e,Gne,iz,a5e,ez,E5e,ZB,m5e,g5e,nz,XB,v5e,h5e])}function xpn(e,t,s){e.d=0,e.b=0,t.k==(tn(),Da)&&s.k==Da&&h(G(t,(Be(),Mr)),10)==h(G(s,Mr),10)&&(BY(t).j==(He(),Wt)?Oht(e,t,s):Oht(e,s,t)),t.k==Da&&s.k==Yi?BY(t).j==(He(),Wt)?e.d=1:e.b=1:s.k==Da&&t.k==Yi&&(BY(s).j==(He(),Wt)?e.b=1:e.d=1),bcn(e,t,s)}function RP(e){var t;if(rXe.call(this),this.i=new BFe,this.g=e,this.f=h(e.e&&e.e(),9).length,this.f==0)throw ee(new Gt("There must be at least one phase in the phase enumeration."));this.c=(t=h(_f(this.g),9),new al(t,h(lf(t,t.length),9),0)),this.a=new Ki,this.b=new Vn}function Jye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=7&&!!t){if(r6(e,t))throw ee(new Gt(bI+idt(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Sve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=h(t,48).ah(e,1,I_,a)),a=S0e(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,7,t,t))}function Hht(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=3&&!!t){if(r6(e,t))throw ee(new Gt(bI+cut(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?kve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=h(t,48).ah(e,0,A_,a)),a=E0e(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,3,t,t))}function Spn(e){var t,s,a,l,f,v,w,S,C,A,M;return M=Xve(e),t=e.a,S=t!=null,S&&WC(M,"category",e.a),l=_T(new zS(e.d)),v=!l,v&&(C=new cg,Nf(M,"knownOptions",C),s=new KWe(C),Eo(new zS(e.d),s)),f=_T(e.g),w=!f,w&&(A=new cg,Nf(M,"supportedFeatures",A),a=new YWe(A),Eo(e.g,a)),M}function Epn(e){var t,s,a,l,f,v,w,S,C;for(a=!1,t=336,s=0,f=new nJe(e.length),w=e,S=0,C=w.length;Ss);return l}function Cpn(e,t,s){var a,l,f,v,w;for(v=k8(e,s),w=ge(vp,Kg,10,t.length,0,1),a=0,f=v.Ic();f.Ob();)l=h(f.Pb(),11),_t(It(G(l,(Be(),VO))))&&(w[a++]=h(G(l,Kc),10));if(ae.d&&(w=e,e=t,t=w),t.d<63?o0n(e,t):(v=(e.d&-2)<<4,C=Fge(e,v),A=Fge(t,v),a=sJ(e,z3(C,v)),l=sJ(t,z3(A,v)),S=HZ(C,A),s=HZ(a,l),f=HZ(sJ(C,a),sJ(l,A)),f=pJ(pJ(f,S),s),f=z3(f,v),S=z3(S,v<<1),pJ(pJ(S,f),s))}function Ipn(e,t){var s,a,l,f,v,w;if(!e.tb){for(f=(!e.rb&&(e.rb=new Wv(e,Kf,e)),e.rb),w=new x3(f.i),l=new pn(f);l.e!=l.i.gc();)a=h(vn(l),138),v=a.ne(),s=h(v==null?Ja(w.f,null,a):vm(w.g,v,a),138),s&&(v==null?Ja(w.f,null,s):vm(w.g,v,s));e.tb=w}return h(Ia(e.tb,t),138)}function $P(e,t){var s,a,l,f,v;if((e.i==null&&Kd(e),e.i).length,!e.p){for(v=new x3((3*e.g.i/2|0)+1),l=new P3(e.g);l.e!=l.i.gc();)a=h(UQ(l),170),f=a.ne(),s=h(f==null?Ja(v.f,null,a):vm(v.g,f,a),170),s&&(f==null?Ja(v.f,null,s):vm(v.g,f,s));e.p=v}return h(Ia(e.p,t),170)}function ewe(e,t,s,a,l){var f,v,w,S,C;for(gan(a+tY(s,s.$d()),l),Stt(t,Fsn(s)),f=s.f,f&&ewe(e,t,f,"Caused by: ",!1),w=(s.k==null&&(s.k=ge(une,Oe,78,0,0,1)),s.k),S=0,C=w.length;S1&&(e.a=!0),iQt(h(s.b,63),Rr(Xs(h(t.b,63).c),Ud(no(Xs(h(s.b,63).a),h(t.b,63).a),l))),Jnt(e,t),Wht(e,s)}function Ppn(e,t){var s,a;if(a=vA(e.b,t.b),!a)throw ee(new Ws("Invalid hitboxes for scanline constraint calculation."));(ict(t.b,h(KGt(e.b,t.b),56))||ict(t.b,h(XGt(e.b,t.b),56)))&&(Sh(),t.b+""),e.a[t.b.f]=h(uK(e.b,t.b),56),s=h(cK(e.b,t.b),56),s&&(e.a[s.f]=t.b)}function Ght(e){var t,s,a,l,f,v,w;for(f=new Q(e.a.a);f.a0&&f>0?v.p=t++:a>0?v.p=s++:f>0?v.p=l++:v.p=s++}Mt(),co(e.j,new eRe)}function _pn(e){var t,s;s=null,t=h(st(e.g,0),18);do{if(s=t.d.i,Lo(s,(Be(),ql)))return h(G(s,ql),11).i;if(s.k!=(tn(),Ri)&&Yn(new bn(mn(Ni(s).a.Ic(),new j))))t=h(Rn(new bn(mn(Ni(s).a.Ic(),new j))),18);else if(s.k!=Ri)return null}while(!!s&&s.k!=(tn(),Ri));return s}function Mpn(e,t){var s,a,l,f,v,w,S,C,A;for(w=t.j,v=t.g,S=h(st(w,w.c.length-1),112),A=(qt(0,w.c.length),h(w.c[0],112)),C=lZ(e,v,S,A),f=1;fC&&(S=s,A=l,C=a);t.a=A,t.c=S}function Dpn(e){var t,s,a,l,f;if(f=new Fe,pc(e.b,new PHe(f)),e.b.c=ge(dn,rt,1,0,5,1),f.c.length!=0){for(t=(qt(0,f.c.length),h(f.c[0],78)),s=1,a=f.c.length;sS-e.b&&wS-e.a&&w0?f.a?(w=f.b.pf().a,s>w&&(l=(s-w)/2,f.d.b=l,f.d.c=l)):f.d.c=e.s+s:QC(e.t)&&(a=Kve(f.b),a.c<0&&(f.d.b=-a.c),a.c+a.b>f.b.pf().a&&(f.d.c=a.c+a.b-f.b.pf().a))}function Gpn(e,t){var s,a,l,f;for(_n(t,"Semi-Interactive Crossing Minimization Processor",1),s=!1,l=new Q(e.b);l.a=0){if(t==s)return new fo(Ue(-t-1),Ue(-t-1));if(t==-s)return new fo(Ue(-t),Ue(s+1))}return m.Math.abs(t)>m.Math.abs(s)?t<0?new fo(Ue(-t),Ue(s)):new fo(Ue(-t),Ue(s+1)):new fo(Ue(t+1),Ue(s))}function Ypn(e){var t,s;s=h(G(e,(Qe(),yc)),165),t=h(G(e,(Be(),rb)),301),s==(gl(),M0)?(_e(e,yc,qO),_e(e,rb,(g1(),K2))):s==Vy?(_e(e,yc,qO),_e(e,rb,(g1(),k4))):t==(g1(),K2)?(_e(e,yc,M0),_e(e,rb,zO)):t==k4&&(_e(e,yc,Vy),_e(e,rb,zO))}function Qpn(e){var t,s;for(s=new bn(mn(Os(e).a.Ic(),new j));Yn(s);)if(t=h(Rn(s),18),t.c.i.k!=(tn(),ku))throw ee(new Lw(Pee+SP(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function KL(){KL=H,JO=new zLe,xSt=_r(new Ki,(cs(),jc),(vs(),YB)),kSt=Jc(_r(new Ki,jc,tz),Vs,ez),CSt=ly(ly(Ij(Jc(_r(new Ki,uh,oz),Vs,iz),Ha),rz),sz),SSt=Jc(_r(_r(_r(new Ki,P0,QB),Ha,JB),Ha,U6),Vs,ZB),ESt=Jc(_r(_r(new Ki,Ha,U6),Ha,KB),Vs,XB)}function z8(){z8=H,ASt=_r(Jc(new Ki,(cs(),Vs),(vs(),m5e)),jc,YB),MSt=ly(ly(Ij(Jc(_r(new Ki,uh,oz),Vs,iz),Ha),rz),sz),PSt=Jc(_r(_r(_r(new Ki,P0,QB),Ha,JB),Ha,U6),Vs,ZB),_St=_r(_r(new Ki,jc,tz),Vs,ez),OSt=Jc(_r(_r(new Ki,Ha,U6),Ha,KB),Vs,XB)}function Zpn(e,t,s,a,l){var f,v;(!Qo(t)&&t.c.i.c==t.d.i.c||!fat($s(re(te(Hi,1),Oe,8,0,[l.i.n,l.n,l.a])),s))&&!Qo(t)&&(t.c==l?c5(t.a,0,new xs(s)):lr(t.a,new xs(s)),a&&!e5(e.a,s)&&(v=h(G(t,(Qe(),ys)),74),v||(v=new Ic,_e(t,ys,v)),f=new xs(s),wi(v,f,v.c.b,v.c),ro(e.a,f)))}function Jpn(e,t,s){var a,l,f,v,w,S,C;if(l=fut(e.Db&254),l==0)e.Eb=s;else{if(l==1)w=ge(dn,rt,1,2,5,1),f=uZ(e,t),f==0?(w[0]=s,w[1]=e.Eb):(w[0]=e.Eb,w[1]=s);else for(w=ge(dn,rt,1,l+1,5,1),v=Tg(e.Eb),a=2,S=0,C=0;a<=128;a<<=1)a==t?w[C++]=s:(e.Db&a)!=0&&(w[C++]=v[S++]);e.Eb=w}e.Db|=t}function e0n(e,t,s){var a,l,f,v,w,S;if(l=s,f=l.Xj(),w1(e.e,f)){if(f.ci()){for(a=h(e.g,118),v=0;v0&&(f=h(st(this.b,0),167),l+=f.o,a+=f.p),l*=2,a*=2,t>1?l=Ci(m.Math.ceil(l*t)):a=Ci(m.Math.ceil(a/t)),this.a=new Gme(l,a)}function t0n(e,t){var s,a,l,f,v;for(s=Ir,v=new Q(e.a);v.aa?1:0}function Yht(e,t,s,a,l,f){var v,w,S,C,A,M,R,z,q,W,J,oe;for(A=a,t.j&&t.o?(z=h(Hn(e.f,t.A),56),W=z.d.c+z.d.b,--A):W=t.a.c+t.a.b,M=l,s.q&&s.o?(z=h(Hn(e.f,s.C),56),C=z.d.c,++M):C=s.a.c,J=C-W,S=m.Math.max(2,M-A),w=J/S,q=W+w,R=A;R=0;v+=l?1:-1){for(w=t[v],S=a==(He(),nn)?l?Ls(w,a):Ag(Ls(w,a)):l?Ag(Ls(w,a)):Ls(w,a),f&&(e.c[w.p]=S.gc()),M=S.Ic();M.Ob();)A=h(M.Pb(),11),e.d[A.p]=C++;Di(s,S)}}function Qht(e,t,s){var a,l,f,v,w,S,C,A;for(f=Ae(Ke(e.b.Ic().Pb())),C=Ae(Ke(ain(t.b))),a=Ud(Xs(e.a),C-s),l=Ud(Xs(t.a),s-f),A=Rr(a,l),Ud(A,1/(C-f)),this.a=A,this.b=new Fe,w=!0,v=e.b.Ic(),v.Pb();v.Ob();)S=Ae(Ke(v.Pb())),w&&S-s>ste&&(this.b.Dc(s),w=!1),this.b.Dc(S);w&&this.b.Dc(s)}function Zht(e,t,s,a){var l,f,v,w,S;if(w=(Uo(),h(t,65).Jj()),w1(e.e,t)){if(t.ci()&&rF(e,t,a,ue(t,97)&&(h(t,17).Bb&Bo)!=0))throw ee(new Gt(vO))}else for(S=ec(e.e.Og(),t),l=h(e.g,118),v=0;v0){for(uC(e.c);Nye(e,h(Y(new Q(e.e.a)),119))>5,t&=31,a>=e.d)return e.e<0?(v0(),gne):(v0(),F6);if(f=e.d-a,l=ge(An,nr,24,f+1,15,1),rdn(l,f,e.a,a,t),e.e<0){for(s=0;s0&&e.a[s]<<32-t!=0){for(s=0;s=0?!1:(s=A2((Dc(),vo),l,t),s?(a=s.Uj(),(a>1||a==-1)&&im(gs(vo,s))!=3):!0)):!1}function s0n(e,t){var s,a,l,f,v,w;if(w=vA(e.a,t.b),!w)throw ee(new Ws("Invalid hitboxes for scanline overlap calculation."));for(v=!1,f=(a=new UC(new FC(new ET(e.a.a).a).b),new ST(a));LT(f.a.a);)if(l=(s=nR(f.a),h(s.ad(),63)),Oin(t.b,l))hqt(e.b.a,t.b,l),v=!0;else if(v)break}function a0n(e,t,s,a){var l,f,v,w,S;return w=Pa(h(fe((!t.b&&(t.b=new Ht(Bn,t,4,7)),t.b),0),93)),S=Pa(h(fe((!t.c&&(t.c=new Ht(Bn,t,5,8)),t.c),0),93)),Xi(w)==Xi(S)||r2(S,w)?null:(v=KR(t),v==s?a:(f=h(Hn(e.a,v),10),f&&(l=f.e,l)?l:null))}function c0n(e,t){var s;switch(s=h(G(e,(Qe(),Dz)),274),_n(t,"Label side selection ("+s+")",1),s.g){case 0:vht(e,(Vu(),Vh));break;case 1:vht(e,(Vu(),R0));break;case 2:Apt(e,(Vu(),Vh));break;case 3:Apt(e,(Vu(),R0));break;case 4:d1t(e,(Vu(),Vh));break;case 5:d1t(e,(Vu(),R0))}yn(t)}function rwe(e,t,s){var a,l,f,v,w,S;if(a=sqt(s,e.length),v=e[a],v[0].k==(tn(),Pi))for(f=AXe(s,v.length),S=t.j,l=0;l0&&(s[0]+=e.d,v-=s[0]),s[2]>0&&(s[2]+=e.d,v-=s[2]),f=m.Math.max(0,v),s[1]=m.Math.max(s[1],v),Hge(e,Ua,l.c+a.b+s[0]-(s[1]-v)/2,s),t==Ua&&(e.c.b=f,e.c.c=l.c+a.b+(f-v)/2)}function c1t(){this.c=ge(oo,us,24,(He(),re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt])).length,15,1),this.b=ge(oo,us,24,re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt]).length,15,1),this.a=ge(oo,us,24,re(te(zo,1),ba,61,0,[Us,Wt,nn,xn,Xt]).length,15,1),Khe(this.c,pi),Khe(this.b,Oi),Khe(this.a,Oi)}function Oa(e,t,s){var a,l,f,v;if(t<=s?(l=t,f=s):(l=s,f=t),a=0,e.b==null)e.b=ge(An,nr,24,2,15,1),e.b[0]=l,e.b[1]=f,e.c=!0;else{if(a=e.b.length,e.b[a-1]+1==l){e.b[a-1]=f;return}v=ge(An,nr,24,a+2,15,1),xa(e.b,0,v,0,a),e.b=v,e.b[a-1]>=l&&(e.c=!1,e.a=!1),e.b[a++]=l,e.b[a]=f,e.c||x2(e)}}function u1t(e,t){var s,a,l,f,v;!Xi(e)||(v=h(G(t,(Qe(),ob)),174),Pe(Ot(e,yi))===Pe((lo(),L0))&&Is(e,yi,Cd),a=new aC(Xi(e)),f=new ZX(Xi(e)?new aC(Xi(e)):null,e),l=m0t(a,f,!1,!0),pf(v,(xu(),ew)),s=h(G(t,iE),8),s.a=m.Math.max(l.a,s.a),s.b=m.Math.max(l.b,s.b))}function g0n(e,t,s){var a,l,f,v,w,S,C;for(C=t.d,e.a=new Ba(C.c.length),e.c=new Vn,w=new Q(C);w.a=0?e.Wg(C,!1,!0):km(e,s,!1),57));e:for(f=M.Ic();f.Ob();){for(l=h(f.Pb(),55),A=0;A1;)yy(l,l.i-1);return a}function x0n(e,t){var s,a,l,f,v,w,S;for(_n(t,"Comment post-processing",1),f=new Q(e.b);f.ae.d[v.p]&&(s+=Dge(e.b,f),Eg(e.a,Ue(f)));for(;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function h1t(e,t,s){var a,l,f,v;for(f=(!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i,l=new pn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));l.e!=l.i.gc();)a=h(vn(l),34),(!a.a&&(a.a=new $e(bi,a,10,11)),a.a).i==0||(f+=h1t(e,a,!1));if(s)for(v=Xi(t);v;)f+=(!v.a&&(v.a=new $e(bi,v,10,11)),v.a).i,v=Xi(v);return f}function yy(e,t){var s,a,l,f;return e._i()?(a=null,l=e.aj(),e.dj()&&(a=e.fj(e.ki(t),null)),s=e.Ui(4,f=J3(e,t),null,t,l),e.Yi()&&f!=null&&(a=e.$i(f,a)),a?(a.zi(s),a.Ai()):e.Vi(s),f):(f=J3(e,t),e.Yi()&&f!=null&&(a=e.$i(f,null),a&&a.Ai()),f)}function E0n(e){var t,s,a,l,f,v,w,S,C,A;for(f=e.a,t=new Ro,C=0,a=new Q(e.d);a.aS.d&&(A=S.d+S.a+f));s.c.d=A,t.a.xc(s,t),C=m.Math.max(C,s.c.d+s.c.a)}return C}function Zo(){Zo=H,yz=new jv("COMMENTS",0),yl=new jv("EXTERNAL_PORTS",1),$I=new jv("HYPEREDGES",2),wz=new jv("HYPERNODES",3),eE=new jv("NON_FREE_PORTS",4),X2=new jv("NORTH_SOUTH_PORTS",5),LI=new jv(xbt,6),Z6=new jv("CENTER_LABELS",7),J6=new jv("END_LABELS",8),xz=new jv("PARTITIONS",9)}function wy(e){var t,s,a,l,f;for(l=new Fe,t=new bA((!e.a&&(e.a=new $e(bi,e,10,11)),e.a)),a=new bn(mn(hp(e).a.Ic(),new j));Yn(a);)s=h(Rn(a),80),ue(fe((!s.b&&(s.b=new Ht(Bn,s,4,7)),s.b),0),199)||(f=Pa(h(fe((!s.c&&(s.c=new Ht(Bn,s,5,8)),s.c),0),93)),t.a._b(f)||(l.c[l.c.length]=f));return l}function k0n(e,t,s,a,l){return a<0?(a=w2(e,l,re(te(Ze,1),Oe,2,6,[_J,MJ,DJ,NJ,s4,jJ,RJ,$J,LJ,FJ,BJ,zJ]),t),a<0&&(a=w2(e,l,re(te(Ze,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),a<0?!1:(s.k=a,!0)):a>0?(s.k=a-1,!0):!1}function C0n(e,t,s,a,l){return a<0?(a=w2(e,l,re(te(Ze,1),Oe,2,6,[_J,MJ,DJ,NJ,s4,jJ,RJ,$J,LJ,FJ,BJ,zJ]),t),a<0&&(a=w2(e,l,re(te(Ze,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),a<0?!1:(s.k=a,!0)):a>0?(s.k=a-1,!0):!1}function I0n(e,t,s,a,l,f){var v,w,S,C;if(w=32,a<0){if(t[0]>=e.length||(w=po(e,t[0]),w!=43&&w!=45)||(++t[0],a=zL(e,t),a<0))return!1;w==45&&(a=-a)}return w==32&&t[0]-s==2&&l.b==2&&(S=new yj,C=S.q.getFullYear()-w0+w0-80,v=C%100,f.a=a==v,a+=(C/100|0)*100+(a=C&&(S=a);S&&(A=m.Math.max(A,S.a.o.a)),A>R&&(M=C,R=A)}return M}function O0n(e,t){var s,a,l;if(t==null){for(a=(!e.a&&(e.a=new $e(M1,e,9,5)),new pn(e.a));a.e!=a.i.gc();)if(s=h(vn(a),666),l=s.c,(l==null?s.zb:l)==null)return s}else for(a=(!e.a&&(e.a=new $e(M1,e,9,5)),new pn(e.a));a.e!=a.i.gc();)if(s=h(vn(a),666),kt(t,(l=s.c,l==null?s.zb:l)))return s;return null}function v0(){v0=H;var e;for(AB=new np(1,1),bne=new np(1,10),F6=new np(0,0),gne=new np(-1,1),U4e=re(te(z2,1),Oe,90,0,[F6,AB,new np(1,2),new np(1,3),new np(1,4),new np(1,5),new np(1,6),new np(1,7),new np(1,8),new np(1,9),bne]),PB=ge(z2,Oe,90,32,0,1),e=0;eUbt?co(S,e.b):a<=Ubt&&a>Hbt?co(S,e.d):a<=Hbt&&a>qbt?co(S,e.c):a<=qbt&&co(S,e.a),f=b1t(e,S,f);return l}function _0n(e,t,s,a,l,f){var v,w,S,C;for(w=!hC(Kr(e.Mc(),new tC(new Fje))).sd((hg(),z6)),v=e,f==(as(),P1)&&(v=ue(v,151)?V3(h(v,151)):ue(v,131)?h(v,131).a:ue(v,53)?new Fb(v):new Nv(v)),C=v.Ic();C.Ob();)S=h(C.Pb(),69),S.n.a=t.a,w?S.n.b=t.b+(a.b-S.o.b)/2:l?S.n.b=t.b:S.n.b=t.b+a.b-S.o.b,t.a+=S.o.a+s}function m1t(e,t,s,a){var l,f,v,w,S,C;for(l=(a.c+a.a)/2,Dl(t.j),lr(t.j,l),Dl(s.e),lr(s.e,l),C=new LXe,w=new Q(e.f);w.a1,w&&(a=new ot(l,s.b),lr(t.a,a)),g8(t.a,re(te(Hi,1),Oe,8,0,[R,M]))}function x1t(e){Gb(e,new Bg(Ub(Bb(Vb(zb(new ag,nB),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new dBe))),it(e,nB,Gg,L8e),it(e,nB,Py,15),it(e,nB,TF,Ue(0)),it(e,nB,d4,T6)}function swe(){swe=H;var e,t,s,a,l,f;for(P9=ge(Lc,L2,24,255,15,1),WV=ge(wl,Qd,24,16,15,1),t=0;t<255;t++)P9[t]=-1;for(s=57;s>=48;s--)P9[s]=s-48<<24>>24;for(a=70;a>=65;a--)P9[a]=a-65+10<<24>>24;for(l=102;l>=97;l--)P9[l]=l-97+10<<24>>24;for(f=0;f<10;f++)WV[f]=48+f&Ti;for(e=10;e<=15;e++)WV[e]=65+e-10&Ti}function awe(e){var t;if(e.c!=10)throw ee(new $n(Gn((Nn(),sB))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ee(new $n(Gn((Nn(),ml))))}return t}function QL(e,t,s){var a,l,f,v,w,S,C,A;return w=t.i-e.g/2,S=s.i-e.g/2,C=t.j-e.g/2,A=s.j-e.g/2,f=t.g+e.g/2,v=s.g+e.g/2,a=t.f+e.g/2,l=s.f+e.g/2,w>19!=0)return"-"+k1t(H5(e));for(s=e,a="";!(s.l==0&&s.m==0&&s.h==0);){if(l=TY(vF),s=Lwe(s,l,!0),t=""+rKe(I0),!(s.l==0&&s.m==0&&s.h==0))for(f=9-t.length;f>0;f--)t="0"+t;a=t+a}return a}function N0n(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(t[e]!==void 0)return!1;var s=Object.getOwnPropertyNames(t);return!(s.length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function j0n(e){var t,s,a,l,f,v,w;for(t=!1,s=0,l=new Q(e.d.b);l.a=e.a||!Wve(t,s))return-1;if(S5(h(a.Kb(t),19)))return 1;for(l=0,v=h(a.Kb(t),19).Ic();v.Ob();)if(f=h(v.Pb(),18),S=f.c.i==t?f.d.i:f.c.i,w=cwe(e,S,s,a),w==-1||(l=m.Math.max(l,w),l>e.c-1))return-1;return l+1}function C1t(e,t){var s,a,l,f,v,w;if(Pe(t)===Pe(e))return!0;if(!ue(t,14)||(a=h(t,14),w=e.gc(),a.gc()!=w))return!1;if(v=a.Ic(),e.ii()){for(s=0;s0){if(e.lj(),t!=null){for(f=0;f>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw ee(new Bd("Invalid hexadecimal"))}}function $0n(e,t,s){var a,l,f,v;_n(s,"Orthogonally routing hierarchical port edges",1),e.a=0,a=wmn(t),Ivn(t,a),ivn(e,t,a),Iyn(t),l=h(G(t,(Qe(),yi)),100),f=t.b,S0t((qt(0,f.c.length),h(f.c[0],29)),l,t),S0t(h(st(f,f.c.length-1),29),l,t),v=t.b,Mpt((qt(0,v.c.length),h(v.c[0],29))),Mpt(h(st(v,v.c.length-1),29)),yn(s)}function L0n(e,t,s){var a,l,f,v;for(_n(s,"Processor order nodes",2),e.a=Ae(Ke(G(t,(by(),xke)))),l=new ci,v=sr(t.b,0);v.b!=v.d.c;)f=h(or(v),83),_t(It(G(f,(ua(),Zy))))&&wi(l,f,l.c.b,l.c);a=(hn(l.b!=0),h(l.a.a.c,83)),Upt(e,a),!s.b&&ZY(s,1),hwe(e,a,0-Ae(Ke(G(a,(ua(),rV))))/2,0),!s.b&&ZY(s,1),yn(s)}function ZL(){ZL=H,SSe=new Uw("SPIRAL",0),vSe=new Uw("LINE_BY_LINE",1),ySe=new Uw("MANHATTAN",2),mSe=new Uw("JITTER",3),Sne=new Uw("QUADRANTS_LINE_BY_LINE",4),xSe=new Uw("QUADRANTS_MANHATTAN",5),wSe=new Uw("QUADRANTS_JITTER",6),bSe=new Uw("COMBINE_LINE_BY_LINE_MANHATTAN",7),gSe=new Uw("COMBINE_JITTER_MANHATTAN",8)}function T1t(e,t,s,a,l,f){if(this.b=s,this.d=l,e>=t.length)throw ee(new fs("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new lA(a),nQ(this.e,this.c,(He(),Xt)),this.i=new lA(a),nQ(this.i,this.c,nn),this.f=new Det(this.c),this.a=!f&&l.i&&!l.s&&this.c[0].k==(tn(),Pi),this.a&&fdn(this,e,t.length)}function A1t(e,t,s,a){var l,f,v,w,S,C;for(S=bZ(e,s),C=bZ(t,s),l=!1;!!S&&!!C&&(a||Hcn(S,C,s));)v=bZ(S,s),w=bZ(C,s),BA(t),BA(e),f=S.c,vJ(S,!1),vJ(C,!1),s?(dy(t,C.p,f),t.p=C.p,dy(e,S.p+1,f),e.p=S.p):(dy(e,S.p,f),e.p=S.p,dy(t,C.p+1,f),t.p=C.p),ps(S,null),ps(C,null),S=v,C=w,l=!0;return l}function F0n(e,t,s,a){var l,f,v,w,S;for(l=!1,f=!1,w=new Q(a.j);w.a0&&t=e.o)throw ee(new uhe);w=t>>5,v=t&31,f=c1(1,Pn(c1(v,1))),l?e.n[s][w]=ad(e.n[s][w],f):e.n[s][w]=Li(e.n[s][w],Ipe(f)),f=c1(f,1),a?e.n[s][w]=ad(e.n[s][w],f):e.n[s][w]=Li(e.n[s][w],Ipe(f))}catch(S){throw S=ni(S),ue(S,318)?ee(new fs(gee+e.o+"*"+e.p+bee+t+Fo+s+mee)):ee(S)}}function _1t(e,t){var s,a,l,f;switch(l=e.b,t){case 1:{e.b|=1,e.b|=4,e.b|=8;break}case 2:{e.b|=2,e.b|=4,e.b|=8;break}case 4:{e.b|=1,e.b|=2,e.b|=4,e.b|=8;break}case 3:{e.b|=16,e.b|=8;break}case 0:{e.b|=32,e.b|=16,e.b|=8,e.b|=1,e.b|=2,e.b|=4;break}}if(e.b!=l&&!!e.c)for(a=new pn(e.c);a.e!=a.i.gc();)f=h(vn(a),467),s=eu(f),my(s,t)}function M1t(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q;for(l=!1,v=t,w=0,S=v.length;w=0)return!1;if(t.p=s.b,Re(s.e,t),l==(tn(),Yi)||l==Da){for(v=new Q(t.j);v.a1||v==-1)&&(f|=16),(l.Bb&la)!=0&&(f|=64)),(s.Bb&Bo)!=0&&(f|=jy),f|=mf):ue(t,450)?f|=512:(a=t.wj(),!!a&&(a.i&1)!=0&&(f|=256)),(e.Bb&512)!=0&&(f|=128),f}function V8(e,t){var s,a,l,f,v;for(e=e==null?mc:(Ut(e),e),l=0;le.d[w.p]&&(s+=Dge(e.b,f),Eg(e.a,Ue(f)))):++v;for(s+=e.b.d*v;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function Z0n(e,t){var s;return e.f==voe?(s=im(gs((Dc(),vo),t)),e.e?s==4&&t!=(n4(),W4)&&t!=(n4(),q4)&&t!=(n4(),yoe)&&t!=(n4(),woe):s==2):!!e.d&&(e.d.Fc(t)||e.d.Fc(L3(gs((Dc(),vo),t)))||e.d.Fc(A2((Dc(),vo),e.b,t)))?!0:e.f&&Qye((Dc(),e.f),wA(gs(vo,t)))?(s=im(gs(vo,t)),e.e?s==4:s==2):!1}function hwe(e,t,s,a){var l,f,v;t&&(f=Ae(Ke(G(t,(ua(),xp))))+a,v=s+Ae(Ke(G(t,rV)))/2,_e(t,vie,Ue(Pn(gc(m.Math.round(f))))),_e(t,gke,Ue(Pn(gc(m.Math.round(v))))),t.d.b==0||hwe(e,h(Xj((l=sr(new qp(t).a.d,0),new p3(l))),83),s+Ae(Ke(G(t,rV)))+e.a,a+Ae(Ke(G(t,lE)))),G(t,mie)!=null&&hwe(e,h(G(t,mie),83),s,a))}function J0n(e,t,s,a){var l,f,v,w,S,C,A,M;return v=h(Ot(s,(Pr(),L4)),8),S=v.a,A=v.b+e,l=m.Math.atan2(A,S),l<0&&(l+=j2),l+=t,l>j2&&(l-=j2),w=h(Ot(a,L4),8),C=w.a,M=w.b+e,f=m.Math.atan2(M,C),f<0&&(f+=j2),f+=t,f>j2&&(f-=j2),id(),hf(1e-10),m.Math.abs(l-f)<=1e-10||l==f||isNaN(l)&&isNaN(f)?0:lf?1:Xb(isNaN(l),isNaN(f))}function KZ(e){var t,s,a,l,f,v,w;for(w=new Vn,a=new Q(e.a.b);a.a0&&(a=(!e.n&&(e.n=new $e(Ms,e,1,7)),h(fe(e.n,0),137)).a,!a||Xn(Xn((t.a+=' "',t),a),'"'))),Xn(qb(Xn(qb(Xn(qb(Xn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function $1t(e){var t,s,a;return(e.Db&64)!=0?CZ(e):(t=new ju(L3e),s=e.k,s?Xn(Xn((t.a+=' "',t),s),'"'):(!e.n&&(e.n=new $e(Ms,e,1,7)),e.n.i>0&&(a=(!e.n&&(e.n=new $e(Ms,e,1,7)),h(fe(e.n,0),137)).a,!a||Xn(Xn((t.a+=' "',t),a),'"'))),Xn(qb(Xn(qb(Xn(qb(Xn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function L1t(e){if((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b).i==0)throw ee(new PT("Edges must have a source."));if((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c).i==0)throw ee(new PT("Edges must have a target."));if(!e.b&&(e.b=new Ht(Bn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c.i<=1)))throw ee(new PT("Hyperedges are not supported."))}function QZ(e,t){var s,a,l,f,v,w,S;if(t==null||t.length==0)return null;if(l=h(Ia(e.a,t),149),!l){for(a=(w=new o1(e.b).a.tc().Ic(),new _v(w));a.a.Ob();)if(s=(f=h(a.a.Pb(),43),h(f.bd(),149)),v=s.c,S=t.length,kt(v.substr(v.length-S,S),t)&&(t.length==v.length||po(v,v.length-t.length-1)==46)){if(l)return null;l=s}l&&hs(e.a,t,l)}return l}function rgn(e,t){var s,a,l,f;return s=new UW,a=h(Fu(lc(new Rt(null,new Lt(e.f,16)),s),ey(new Gr,new Je,new Sr,new Ur,re(te(uu,1),je,132,0,[(gd(),Ry),Wu]))),21),l=a.gc(),a=h(Fu(lc(new Rt(null,new Lt(t.f,16)),s),ey(new Gr,new Je,new Sr,new Ur,re(te(uu,1),je,132,0,[Ry,Wu]))),21),f=a.gc(),ll.p?(Fi(f,xn),f.d&&(w=f.o.b,t=f.a.b,f.a.b=w-t)):f.j==xn&&l.p>e.p&&(Fi(f,Wt),f.d&&(w=f.o.b,t=f.a.b,f.a.b=-(w-t)));break}return l}function ogn(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q;if(f=s,sv&&(mP((qt(v,e.c.length),h(e.c[v],180)),a),(qt(v,e.c.length),h(e.c[v],180)).a.c.length==0&&tp(e,v)))),M}function H1t(e){Gb(e,new Bg(Ub(Bb(Vb(zb(new ag,pI),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new fBe))),it(e,pI,Gg,D8e),it(e,pI,KF,lt(p9)),it(e,pI,M3e,lt(P8e)),it(e,pI,WF,lt(O8e)),it(e,pI,XF,lt(M8e)),it(e,pI,D3e,lt(_8e))}function ZZ(e,t,s){var a,l,f,v,w,S;if(t)if(s<=-1){if(a=Dt(t.Og(),-1-s),ue(a,97))return h(a,17);for(v=h(t.Xg(a),152),w=0,S=v.gc();w1,w&&(a=new ot(l,s.b),lr(t.a,a)),g8(t.a,re(te(Hi,1),Oe,8,0,[R,M]))}function hgn(e){var t,s,a,l,f;for(a=e.length,t=new fC,f=0;f0){for(l=S.length;l>0&&S[l-1]=="";)--l;l=40,v&&gbn(e),pmn(e),n0n(e),s=dut(e),a=0;!!s&&a0&&lr(e.e,f)):(e.c[v]-=C+1,e.c[v]<=0&&e.a[v]>0&&lr(e.d,f))))}function _gn(e,t,s){var a,l,f;if(!t.f)throw ee(new Gt("Given leave edge is no tree edge."));if(s.f)throw ee(new Gt("Given enter edge is a tree edge already."));for(t.f=!1,U1e(e.p,t),s.f=!0,ro(e.p,s),a=s.e.e-s.d.e-s.a,MZ(e,s.e,t)||(a=-a),f=new Q(e.e.a);f.a=0&&S0&&(Fn(0,e.length),e.charCodeAt(0)==45||(Fn(0,e.length),e.charCodeAt(0)==43))?1:0,a=v;as)throw ee(new Bd(Om+e+'"'));return w}function Q1t(e,t,s,a){var l,f,v,w,S,C,A,M,R,z;if(Znn(e,t,s),f=t[s],z=a?(He(),Xt):(He(),nn),WWt(t.length,s,a)){for(l=t[a?s-1:s+1],Wge(e,l,a?(ss(),nc):(ss(),Rc)),S=f,A=0,R=S.length;As?t:s;C<=M;++C)C==s?w=a++:(f=l[C],A=q.ml(f.Xj()),C==t&&(S=C==M&&!A?a-1:a),A&&++a);return R=h(dP(e,t,s),71),w!=S&&WS(e,new NA(e.e,7,v,Ue(w),z.bd(),S)),R}}else return h(jZ(e,t,s),71);return h(dP(e,t,s),71)}function jgn(e){var t,s,a,l,f,v,w,S;for(S=new Vn,t=new VG,v=e.Ic();v.Ob();)l=h(v.Pb(),10),w=Qb(jT(new dg,l),t),Ja(S.f,l,w);for(f=e.Ic();f.Ob();)for(l=h(f.Pb(),10),a=new bn(mn(Ni(l).a.Ic(),new j));Yn(a);)s=h(Rn(a),18),!Qo(s)&&bf(cf(af(sf(uf(new Ol,m.Math.max(1,h(G(s,(Qe(),PEe)),20).a)),1),h(Hn(S,s.c.i),119)),h(Hn(S,s.d.i),119)));return t}function J1t(){J1t=H,mSt=_r(new Ki,(cs(),Ha),(vs(),k5e)),dke=_r(new Ki,jc,YB),ySt=Jc(_r(new Ki,jc,tz),Vs,ez),bSt=Jc(_r(_r(new Ki,jc,y5e),Ha,w5e),Vs,x5e),wSt=ly(ly(Ij(Jc(_r(new Ki,uh,oz),Vs,iz),Ha),rz),sz),vSt=Jc(new Ki,Vs,C5e),pSt=Jc(_r(_r(_r(new Ki,P0,QB),Ha,JB),Ha,U6),Vs,ZB),gSt=Jc(_r(_r(new Ki,Ha,U6),Ha,KB),Vs,XB)}function Rgn(e,t,s,a,l,f){var v,w,S,C,A,M,R;for(C=wct(t)-wct(e),v=Wft(t,C),S=Qa(0,0,0);C>=0&&(w=Gcn(e,v),!(w&&(C<22?S.l|=1<>>1,v.m=A>>>1|(M&1)<<21,v.l=R>>>1|(A&1)<<21,--C;return s&&uQ(S),f&&(a?(I0=H5(e),l&&(I0=uct(I0,(A5(),k4e)))):I0=Qa(e.l,e.m,e.h)),S}function $gn(e,t){var s,a,l,f,v,w,S;for(_n(t,"Port order processing",1),S=h(G(e,(Qe(),AEe)),415),a=new Q(e.b);a.a1)&&t==1&&h(e.a[e.b],10).k==(tn(),ku)?i4(h(e.a[e.b],10),(Vu(),Vh)):a&&(!s||(e.c-e.b&e.a.length-1)>1)&&t==1&&h(e.a[e.c-1&e.a.length-1],10).k==(tn(),ku)?i4(h(e.a[e.c-1&e.a.length-1],10),(Vu(),R0)):(e.c-e.b&e.a.length-1)==2?(i4(h(x8(e),10),(Vu(),Vh)),i4(h(x8(e),10),R0)):L1n(e,l),Pge(e)}function Vgn(e,t,s){var a,l,f,v,w;for(f=0,l=new pn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));l.e!=l.i.gc();)a=h(vn(l),34),v="",(!a.n&&(a.n=new $e(Ms,a,1,7)),a.n).i==0||(v=h(fe((!a.n&&(a.n=new $e(Ms,a,1,7)),a.n),0),137).a),w=new hQ(f++,t,v),Cs(w,a),_e(w,(ua(),r9),a),w.e.b=a.j+a.f/2,w.f.a=m.Math.max(a.g,1),w.e.a=a.i+a.g/2,w.f.b=m.Math.max(a.f,1),lr(t.b,w),Ja(s.f,a,w)}function Ugn(e,t,s,a){var l,f,v,w,S;if(S=Pn(ko($h,Ah(Pn(ko(t==null?0:ri(t),Lh)),15))),l=Pn(ko($h,Ah(Pn(ko(s==null?0:ri(s),Lh)),15))),w=v8(e,t,S),v=m8(e,s,l),!!w&&l==w.a&&Th(s,w.g))return s;if(!!v&&!a)throw ee(new Gt("key already present: "+s));return w&&S2(e,w),v&&S2(e,v),f=new DR(s,l,t,S),OP(e,f,v),v&&(v.e=null,v.c=null),w&&(w.e=null,w.c=null),oft(e),w?w.g:null}function xwe(e,t,s){var a,l,f,v;if(t[0]>=e.length)return s.o=0,!0;switch(po(e,t[0])){case 43:l=1;break;case 45:l=-1;break;default:return s.o=0,!0}if(++t[0],f=t[0],v=zL(e,t),v==0&&t[0]==f)return!1;if(t[0]=0&&w!=s&&(f=new Gi(e,1,w,v,null),a?a.zi(f):a=f),s>=0&&(f=new Gi(e,1,s,w==s?v:null,t),a?a.zi(f):a=f)),a}function tpt(e){var t,s,a;if(e.b==null){if(a=new X1,e.i!=null&&(rs(a,e.i),a.a+=":"),(e.f&256)!=0){for((e.f&256)!=0&&e.a!=null&&(EZt(e.i)||(a.a+="//"),rs(a,e.a)),e.d!=null&&(a.a+="/",rs(a,e.d)),(e.f&16)!=0&&(a.a+="/"),t=0,s=e.j.length;t0){if(l=h(e.Ab.g,1906),t==null){for(f=0;f1)for(a=new Q(l);a.as.s&&ww&&(w=l,A.c=ge(dn,rt,1,0,5,1)),l==w&&Re(A,new fo(s.c.i,s)));Mt(),co(A,e.c),qv(e.b,S.p,A)}}function tbn(e,t){var s,a,l,f,v,w,S,C,A;for(v=new Q(t.b);v.aw&&(w=l,A.c=ge(dn,rt,1,0,5,1)),l==w&&Re(A,new fo(s.d.i,s)));Mt(),co(A,e.c),qv(e.f,S.p,A)}}function nbn(e,t,s,a,l){var f,v;if(f=Oo(Li(t[0],Jo),Li(a[0],Jo)),e[0]=Pn(f),f=t0(f,32),s>=l){for(v=1;vv)return He(),nn;break;case 4:case 3:if(A<0)return He(),Wt;if(A+s>f)return He(),xn}return S=(C+w/2)/v,a=(A+s/2)/f,S+a<=1&&S-a<=0?(He(),Xt):S+a>=1&&S-a>=0?(He(),nn):a<.5?(He(),Wt):(He(),xn)}function apt(e){var t,s,a,l,f,v;return a=new xbe,Cs(a,e),Pe(G(a,(Qe(),Gu)))===Pe((as(),A1))&&_e(a,Gu,cL(a)),G(a,(p$(),c9))==null&&(v=h(jft(e),160),_e(a,c9,zj(v.Xe(c9)))),_e(a,(Be(),Mr),e),_e(a,Na,(t=h(_f(wre),9),new al(t,h(lf(t,t.length),9),0))),l=eyn((Xi(e)&&new aC(Xi(e)),new ZX(Xi(e)?new aC(Xi(e)):null,e)),qf),f=h(G(a,EEe),115),s=a.d,Nnt(s,f),Nnt(s,l),a}function rbn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W;for(s=!1,A=Ae(Ke(G(t,(Qe(),Km)))),q=x0*A,l=new Q(t.b);l.aS+q&&(W=M.g+R.g,R.a=(R.g*R.a+M.g*M.a)/W,R.g=W,M.f=R,s=!0)),f=w,M=R;return s}function cpt(e,t,s,a,l,f,v){var w,S,C,A,M,R;for(R=new T3,C=t.Ic();C.Ob();)for(w=h(C.Pb(),818),M=new Q(w.uf());M.a0?w.a?(C=w.b.pf().b,l>C&&(e.u||w.c.d.c.length==1?(v=(l-C)/2,w.d.d=v,w.d.a=v):(s=h(st(w.c.d,0),183).pf().b,a=(s-C)/2,w.d.d=m.Math.max(0,a),w.d.a=l-a-C))):w.d.a=e.s+l:QC(e.t)&&(f=Kve(w.b),f.d<0&&(w.d.d=-f.d),f.d+f.a>w.b.pf().b&&(w.d.a=f.d+f.a-w.b.pf().b))}function sbn(e,t){var s;switch(UA(e)){case 6:return to(t);case 7:return $v(t);case 8:return Rv(t);case 3:return Array.isArray(t)&&(s=UA(t),!(s>=14&&s<=16));case 11:return t!=null&&typeof t===CJ;case 12:return t!=null&&(typeof t===GP||typeof t==CJ);case 0:return KQ(t,e.__elementTypeId$);case 2:return DK(t)&&t.dm!==Z;case 1:return DK(t)&&t.dm!==Z||KQ(t,e.__elementTypeId$);default:return!0}}function upt(e,t){var s,a,l,f;return a=m.Math.min(m.Math.abs(e.c-(t.c+t.b)),m.Math.abs(e.c+e.b-t.c)),f=m.Math.min(m.Math.abs(e.d-(t.d+t.a)),m.Math.abs(e.d+e.a-t.d)),s=m.Math.abs(e.c+e.b/2-(t.c+t.b/2)),s>e.b/2+t.b/2||(l=m.Math.abs(e.d+e.a/2-(t.d+t.a/2)),l>e.a/2+t.a/2)?1:s==0&&l==0?0:s==0?f/l+1:l==0?a/s+1:m.Math.min(a/s,f/l)+1}function abn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z;if(R=h(Hn(e.c,t),185),!R)throw ee(new Fd("Edge did not exist in input."));return C=A8(R),f=_T((!t.a&&(t.a=new $e(ai,t,6,6)),t.a)),w=!f,w&&(z=new cg,s=new HJe(e,C,z),Zqt((!t.a&&(t.a=new $e(ai,t,6,6)),t.a),s),Nf(R,z3e,z)),l=s0(t,(Pr(),cx)),l&&(A=h(Ot(t,cx),74),v=!A||Att(A),S=!v,S&&(M=new cg,a=new UWe(M),Eo(A,a),Nf(R,"junctionPoints",M))),null}function lpt(e,t){var s,a,l,f,v,w;return l=wbe(e),w=wbe(t),l==w?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(a=e.e-t.e,s=(e.d>0?e.d:m.Math.floor((e.a-1)*mgt)+1)-(t.d>0?t.d:m.Math.floor((t.a-1)*mgt)+1),s>a+1?l:s0&&(v=n2(v,_pt(a))),Wut(f,v))):l0&&e.d!=(h8(),$ne)&&(w+=v*(a.d.a+e.a[t.b][a.b]*(t.d.a-a.d.a)/s)),s>0&&e.d!=(h8(),jne)&&(S+=v*(a.d.b+e.a[t.b][a.b]*(t.d.b-a.d.b)/s)));switch(e.d.g){case 1:return new ot(w/f,t.d.b);case 2:return new ot(t.d.a,S/f);default:return new ot(w/f,S/f)}}function fpt(e){var t,s,a,l,f,v;for(s=(!e.a&&(e.a=new Mi(Xl,e,5)),e.a).i+2,v=new Ba(s),Re(v,new ot(e.j,e.k)),mi(new Rt(null,(!e.a&&(e.a=new Mi(Xl,e,5)),new Lt(e.a,16))),new SWe(v)),Re(v,new ot(e.b,e.c)),t=1;t0&&(nP(S,!1,(as(),xf)),nP(S,!0,qf)),pc(t.g,new vYe(e,s)),Fr(e.g,t,s)}function ubn(e){var t;if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i!=1)throw ee(new Gt(vmt+(!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i));return t=new Ic,YA(h(fe((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b),0),93))&&ks(t,G0t(e,YA(h(fe((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b),0),93)),!1)),YA(h(fe((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c),0),93))&&ks(t,G0t(e,YA(h(fe((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c),0),93)),!0)),t}function ppt(e,t){var s,a,l,f,v;for(t.d?l=e.a.c==(Wd(),Ym)?Os(t.b):Ni(t.b):l=e.a.c==(Wd(),wp)?Os(t.b):Ni(t.b),f=!1,a=new bn(mn(l.a.Ic(),new j));Yn(a);)if(s=h(Rn(a),18),v=_t(e.a.f[e.a.g[t.b.p].p]),!(!v&&!Qo(s)&&s.c.i.c==s.d.i.c)&&!(_t(e.a.n[e.a.g[t.b.p].p])||_t(e.a.n[e.a.g[t.b.p].p]))&&(f=!0,e5(e.b,e.a.g[Ocn(s,t.b).p])))return t.c=!0,t.a=s,t;return t.c=f,t.a=null,t}function lbn(e,t,s,a,l){var f,v,w,S,C,A,M;for(Mt(),co(e,new bBe),w=new xo(e,0),M=new Fe,f=0;w.bf*2?(A=new _$(M),C=Pc(v)/yu(v),S=SJ(A,t,new m3,s,a,l,C),Rr(zd(A.e),S),M.c=ge(dn,rt,1,0,5,1),f=0,M.c[M.c.length]=A,M.c[M.c.length]=v,f=Pc(A)*yu(A)+Pc(v)*yu(v)):(M.c[M.c.length]=v,f+=Pc(v)*yu(v));return M}function Ewe(e,t,s){var a,l,f,v,w,S,C;if(a=s.gc(),a==0)return!1;if(e._i())if(S=e.aj(),zme(e,t,s),v=a==1?e.Ui(3,null,s.Ic().Pb(),t,S):e.Ui(5,null,s,t,S),e.Yi()){for(w=a<100?null:new Gp(a),f=t+a,l=t;l0){for(v=0;v>16==-15&&e.Cb.ih()&&LY(new RY(e.Cb,9,13,s,e.c,up(nu(h(e.Cb,58)),e))):ue(e.Cb,87)&&e.Db>>16==-23&&e.Cb.ih()&&(t=e.c,ue(t,87)||(t=(At(),Zl)),ue(s,87)||(s=(At(),Zl)),LY(new RY(e.Cb,9,10,s,t,up(ya(h(e.Cb,26)),e)))))),e.c}function fbn(e,t){var s,a,l,f,v,w,S,C,A,M;for(_n(t,"Hypernodes processing",1),l=new Q(e.b);l.a0,w=uL(t,f),rpe(s?w.b:w.g,t),d2(w).c.length==1&&wi(a,w,a.c.b,a.c),l=new fo(f,t),Eg(e.o,l),dc(e.e.a,f))}function ypt(e,t){var s,a,l,f,v,w,S;return a=m.Math.abs(PR(e.b).a-PR(t.b).a),w=m.Math.abs(PR(e.b).b-PR(t.b).b),l=0,S=0,s=1,v=1,a>e.b.b/2+t.b.b/2&&(l=m.Math.min(m.Math.abs(e.b.c-(t.b.c+t.b.b)),m.Math.abs(e.b.c+e.b.b-t.b.c)),s=1-l/a),w>e.b.a/2+t.b.a/2&&(S=m.Math.min(m.Math.abs(e.b.d-(t.b.d+t.b.a)),m.Math.abs(e.b.d+e.b.a-t.b.d)),v=1-S/w),f=m.Math.min(s,v),(1-f)*m.Math.sqrt(a*a+w*w)}function bbn(e){var t,s,a,l;for(xJ(e,e.e,e.f,(sm(),N0),!0,e.c,e.i),xJ(e,e.e,e.f,N0,!1,e.c,e.i),xJ(e,e.e,e.f,ox,!0,e.c,e.i),xJ(e,e.e,e.f,ox,!1,e.c,e.i),mbn(e,e.c,e.e,e.f,e.i),a=new xo(e.i,0);a.b=65;s--)Od[s]=s-65<<24>>24;for(a=122;a>=97;a--)Od[a]=a-97+26<<24>>24;for(l=57;l>=48;l--)Od[l]=l-48+52<<24>>24;for(Od[43]=62,Od[47]=63,f=0;f<=25;f++)_p[f]=65+f&Ti;for(v=26,S=0;v<=51;++v,S++)_p[v]=97+S&Ti;for(e=52,w=0;e<=61;++e,w++)_p[e]=48+w&Ti;_p[62]=43,_p[63]=47}function mbn(e,t,s,a,l){var f,v,w,S,C,A,M;for(v=new Q(t);v.af)return He(),nn;break;case 4:case 3:if(S<0)return He(),Wt;if(S+e.f>l)return He(),xn}return v=(w+e.g/2)/f,s=(S+e.f/2)/l,v+s<=1&&v-s<=0?(He(),Xt):v+s>=1&&v-s>=0?(He(),nn):s<.5?(He(),Wt):(He(),xn)}function vbn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z;if(e.dc())return new Yo;for(C=0,M=0,l=e.Ic();l.Ob();)a=h(l.Pb(),38),f=a.f,C=m.Math.max(C,f.a),M+=f.a*f.b;for(C=m.Math.max(C,m.Math.sqrt(M)*Ae(Ke(G(h(e.Ic().Pb(),38),(Qe(),Pz))))),R=0,z=0,S=0,s=t,w=e.Ic();w.Ob();)v=h(w.Pb(),38),A=v.f,R+A.a>C&&(R=0,z+=S+t,S=0),FP(v,R,z),s=m.Math.max(s,R+A.a),S=m.Math.max(S,A.b),R+=A.a+t;return new ot(s+t,z+S+t)}function Sy(e){Er();var t,s,a,l,f,v;if(e.e!=4&&e.e!=5)throw ee(new Gt("Token#complementRanges(): must be RANGE: "+e.e));for(f=e,x2(f),G8(f),a=f.b.length+2,f.b[0]==0&&(a-=2),s=f.b[f.b.length-1],s==j6&&(a-=2),l=new Lu(4),l.b=ge(An,nr,24,a,15,1),v=0,f.b[0]>0&&(l.b[v++]=0,l.b[v++]=f.b[0]-1),t=1;t0&&(RG(S,S.d-l.d),l.c==(Mf(),D0)&&DUt(S,S.a-l.d),S.d<=0&&S.i>0&&wi(t,S,t.c.b,t.c)));for(f=new Q(e.f);f.a0&&(UN(w,w.i-l.d),l.c==(Mf(),D0)&&BUt(w,w.b-l.d),w.i<=0&&w.d>0&&wi(s,w,s.c.b,s.c)))}function wbn(e,t,s){var a,l,f,v,w,S,C,A;for(_n(s,"Processor compute fanout",1),Gc(e.b),Gc(e.a),w=null,f=sr(t.b,0);!w&&f.b!=f.d.c;)C=h(or(f),83),_t(It(G(C,(ua(),Zy))))&&(w=C);for(S=new ci,wi(S,w,S.c.b,S.c),O0t(e,S),A=sr(t.b,0);A.b!=A.d.c;)C=h(or(A),83),v=Ln(G(C,(ua(),n9))),l=Ia(e.b,v)!=null?h(Ia(e.b,v),20).a:0,_e(C,tV,Ue(l)),a=1+(Ia(e.a,v)!=null?h(Ia(e.a,v),20).a:0),_e(C,LSt,Ue(a));yn(s)}function xbn(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q;for(R=vln(e,s),S=0;S0),a.a.Xb(a.c=--a.b),M>R+S&&wu(a);for(v=new Q(z);v.a0),a.a.Xb(a.c=--a.b)}}function Sbn(e){var t,s;if(t=Ln(Ot(e,(Pr(),u9))),!Bat(t,e)&&!s0(e,pE)&&((!e.a&&(e.a=new $e(bi,e,10,11)),e.a).i!=0||_t(It(Ot(e,d_)))))if(t==null||py(t).length==0){if(!Bat(ln,e))throw s=Xn(Xn(new ju("Unable to load default layout algorithm "),ln)," for unconfigured node "),uF(e,s),ee(new Lw(s.a))}else throw s=Xn(Xn(new ju("Layout algorithm '"),t),"' not found for "),uF(e,s),ee(new Lw(s.a))}function Ebn(){Er();var e,t,s,a,l,f;if(Soe)return Soe;for(e=new Lu(4),ky(e,y0(ene,!0)),K8(e,y0("M",!0)),K8(e,y0("C",!0)),f=new Lu(4),a=0;a<11;a++)Oa(f,a,a);return t=new Lu(4),ky(t,y0("M",!0)),Oa(t,4448,4607),Oa(t,65438,65439),l=new RC(2),zg(l,e),zg(l,_9),s=new RC(2),s.Vl(xR(f,y0("L",!0))),s.Vl(t),s=new Zv(3,s),s=new F0e(l,s),Soe=s,Soe}function iJ(e){var t,s,a,l,f,v,w,S,C,A,M,R,z;if(s=e.i,t=e.n,e.b==0)for(z=s.c+t.b,R=s.b-t.b-t.c,v=e.a,S=0,A=v.length;S0&&(M-=a[0]+e.c,a[0]+=e.c),a[2]>0&&(M-=a[2]+e.c),a[1]=m.Math.max(a[1],M),CR(e.a[1],s.c+t.b+a[0]-(a[1]-M)/2,a[1]);for(f=e.a,w=0,C=f.length;w1)for(a=sr(l,0);a.b!=a.d.c;)for(s=h(or(a),229),f=0,S=new Q(s.e);S.a0&&(t[0]+=e.c,M-=t[0]),t[2]>0&&(M-=t[2]+e.c),t[1]=m.Math.max(t[1],M),kR(e.a[1],a.d+s.d+t[0]-(t[1]-M)/2,t[1]);else for(q=a.d+s.d,z=a.a-s.d-s.a,v=e.a,S=0,A=v.length;S=0&&f!=s))throw ee(new Gt(vO));for(l=0,S=0;S0||ym(l.b.d,e.b.d+e.b.a)==0&&a.b<0||ym(l.b.d+l.b.a,e.b.d)==0&&a.b>0){w=0;break}}else w=m.Math.min(w,Mdt(e,l,a));w=m.Math.min(w,kpt(e,f,w,a))}return w}function Cpt(e,t){var s,a,l,f,v,w,S,C,A;for(s=0,l=new Q((qt(0,e.c.length),h(e.c[0],101)).g.b.j);l.aw?1:-1:ime(e.a,t.a,f),l==-1)M=-S,A=v==S?OY(t.a,w,e.a,f):MY(t.a,w,e.a,f);else if(M=v,v==S){if(l==0)return v0(),F6;A=OY(e.a,f,t.a,w)}else A=MY(e.a,f,t.a,w);return C=new Zw(M,A.length,A),s8(C),C}function Ey(e,t){var s,a,l,f,v,w;for(f=e.c,v=e.d,Po(e,null),uo(e,null),t&&_t(It(G(v,(Be(),Tre))))?Po(e,Swe(v.i,(ss(),nc),(He(),nn))):Po(e,v),t&&_t(It(G(f,(Be(),Pre))))?uo(e,Swe(f.i,(ss(),Rc),(He(),Xt))):uo(e,f),a=new Q(e.b);a.aAe(od(v.g,v.d[0]).a)?(hn(S.b>0),S.a.Xb(S.c=--S.b),Bv(S,v),l=!0):!!w.e&&w.e.gc()>0&&(f=(!w.e&&(w.e=new Fe),w.e).Kc(t),C=(!w.e&&(w.e=new Fe),w.e).Kc(s),(f||C)&&((!w.e&&(w.e=new Fe),w.e).Dc(v),++v.c));l||(a.c[a.c.length]=v)}function Owe(e){var t,s,a,l,f,v;for(this.e=new Fe,this.a=new Fe,s=e.b-1;s<3;s++)c5(e,0,h(Ff(e,0),8));if(e.b<4)throw ee(new Gt("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,x1n(this,e.b+this.b-1),v=new Fe,f=new Q(this.e),t=0;t>>0,"0"+t.toString(16)),a="\\x"+Ru(s,s.length-2,s.length)):e>=Bo?(s=(t=e>>>0,"0"+t.toString(16)),a="\\v"+Ru(s,s.length-6,s.length)):a=""+String.fromCharCode(e&Ti)}return a}function Tpt(e){var t,s,a;if(Gw(h(G(e,(Qe(),yi)),100)))for(s=new Q(e.j);s.at&&w>0&&(f=0,v+=w,l=m.Math.max(l,M),a+=w,w=0,M=0,s&&(++A,Re(e.n,new XR(e.s,v,e.i)))),M+=S.g+e.i,w=m.Math.max(w,S.f+e.i),s&&dme(h(st(e.n,A),209),S),f+=S.g+e.i;return l=m.Math.max(l,M),a+=w,s&&(e.r=l,e.d=a,Zme(e.j)),new cl(e.s,e.t,l,a)}function H8(e,t){var s,a,l,f,v,w,S,C;t%=24,e.q.getHours()!=t&&(a=new m.Date(e.q.getTime()),a.setDate(a.getDate()+1),w=e.q.getTimezoneOffset()-a.getTimezoneOffset(),w>0&&(S=w/60|0,C=w%60,l=e.q.getDate(),s=e.q.getHours(),s+S>=24&&++l,f=new m.Date(e.q.getFullYear(),e.q.getMonth(),l,t+S,e.q.getMinutes()+C,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(f.getTime()))),v=e.q.getTime(),e.q.setTime(v+36e5),e.q.getHours()!=t&&e.q.setTime(v)}function Obn(e,t){var s,a,l,f,v;if(_n(t,"Path-Like Graph Wrapping",1),e.b.c.length==0){yn(t);return}if(l=new Rye(e),v=(l.i==null&&(l.i=Nbe(l,new tde)),Ae(l.i)*l.f),s=v/(l.i==null&&(l.i=Nbe(l,new tde)),Ae(l.i)),l.b>s){yn(t);return}switch(h(G(e,(Qe(),Gre)),335).g){case 2:f=new rde;break;case 0:f=new ede;break;default:f=new ide}if(a=f.Sf(e,l),!f.Tf())switch(h(G(e,Vz),336).g){case 2:a=Ddt(l,a);break;case 1:a=Aft(l,a)}Imn(e,l,a),yn(t)}function Opt(e,t,s,a,l){var f,v,w;if(s.f+l>=t.o&&s.f+l<=t.f||t.a*.5<=s.f+l&&t.a*1.5>=s.f+l){if(s.g+l<=a-(v=h(st(t.n,t.n.c.length-1),209),v.e+v.d)&&(f=h(st(t.n,t.n.c.length-1),209),f.f-e.e+s.f+l<=e.b||e.a.c.length==1))return Mme(t,s),!0;if(s.g<=a-t.s&&(t.d+s.f+l<=e.b||e.a.c.length==1))return Re(t.b,s),w=h(st(t.n,t.n.c.length-1),209),Re(t.n,new XR(t.s,w.f+w.a,t.i)),dme(h(st(t.n,t.n.c.length-1),209),s),P1t(t,s),!0}return!1}function _pt(e){u6();var t,s,a,l;if(t=Ci(e),e1e6)throw ee(new rj("power of ten too big"));if(e<=Ir)return z3(NP(w4[1],t),t);for(a=NP(w4[1],Ir),l=a,s=gc(e-Ir),t=Ci(e%Ir);ga(s,Ir)>0;)l=n2(l,a),s=p0(s,Ir);for(l=n2(l,NP(w4[1],t)),l=z3(l,Ir),s=gc(e-Ir);ga(s,Ir)>0;)l=z3(l,Ir),s=p0(s,Ir);return l=z3(l,t),l}function _bn(e){var t,s,a,l;l=e.o,zv(),e.w.dc()||Ar(e.w,CSe)?t=l.b:(t=_P(e.f),e.w.Fc((xu(),S_))&&!e.A.Fc((su(),w9))&&(t=m.Math.max(t,_P(h(is(e.p,(He(),nn)),243))),t=m.Math.max(t,_P(h(is(e.p,Xt),243)))),s=zat(e),s&&(t=m.Math.max(t,s.b)),e.w.Fc(E_)&&(e.q==(lo(),Hh)||e.q==ja)&&(t=m.Math.max(t,pR(h(is(e.b,(He(),nn)),121))),t=m.Math.max(t,pR(h(is(e.b,Xt),121))))),l.b=t,a=e.f.i,a.d=0,a.a=t,oJ(e.f)}function Mbn(e,t){var s,a,l,f,v,w,S,C;for(v=new Fe,w=0,s=0,S=0;wl&&++C,Re(v,(qt(w+C,t.c.length),h(t.c[w+C],20))),S+=(qt(w+C,t.c.length),h(t.c[w+C],20)).a-a,++s;s1&&(S>Pc(w)*yu(w)/2||v.b==0)&&(M=new _$(R),A=Pc(w)/yu(w),C=SJ(M,t,new m3,s,a,l,A),Rr(zd(M.e),C),w=M,z.c[z.c.length]=M,S=0,R.c=ge(dn,rt,1,0,5,1)));return Di(z,R),z}function Nbn(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W;if(s.hh(t)&&(A=(z=t,z?h(a,48).sh(z):null),A))if(W=s.Yg(t,e.a),q=t.t,q>1||q==-1)if(M=h(W,67),R=h(A,67),M.dc())R.$b();else for(v=!!Ho(t),f=0,w=e.a?M.Ic():M.Uh();w.Ob();)C=h(w.Pb(),55),l=h(lm(e,C),55),l?(v?(S=R.Vc(l),S==-1?R.Sh(f,l):f!=S&&R.ei(f,l)):R.Sh(f,l),++f):e.b&&!v&&(R.Sh(f,C),++f);else W==null?A.Wb(null):(l=lm(e,W),l==null?e.b&&!Ho(t)&&A.Wb(W):A.Wb(l))}function jbn(e,t){var s,a,l,f,v,w,S,C;for(s=new wje,l=new bn(mn(Os(t).a.Ic(),new j));Yn(l);)if(a=h(Rn(l),18),!Qo(a)&&(w=a.c.i,Wve(w,GB))){if(C=cwe(e,w,GB,WB),C==-1)continue;s.b=m.Math.max(s.b,C),!s.a&&(s.a=new Fe),Re(s.a,w)}for(v=new bn(mn(Ni(t).a.Ic(),new j));Yn(v);)if(f=h(Rn(v),18),!Qo(f)&&(S=f.d.i,Wve(S,WB))){if(C=cwe(e,S,WB,GB),C==-1)continue;s.d=m.Math.max(s.d,C),!s.c&&(s.c=new Fe),Re(s.c,S)}return s}function Rbn(e){var t,s,a,l,f,v,w;for(s=0,t=0,w=new ci,v=new Q(e.n);v.aC&&a>C)A=w,C=Ae(t.p[w.p])+Ae(t.d[w.p])+w.o.b+w.d.a;else{l=!1,s.n&&Uv(s,"bk node placement breaks on "+w+" which should have been after "+A);break}if(!l)break}return s.n&&Uv(s,t+" is feasible: "+l),l}function zbn(e,t,s,a){var l,f,v,w,S,C,A;for(w=-1,A=new Q(e);A.a=J&&e.e[S.p]>q*e.b||he>=s*J)&&(R.c[R.c.length]=w,w=new Fe,ks(v,f),f.a.$b(),C-=A,z=m.Math.max(z,C*e.b+W),C+=he,de=he,he=0,A=0,W=0);return new fo(z,R)}function qbn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z;for(s=(C=new o1(e.c.b).a.tc().Ic(),new _v(C));s.a.Ob();)t=(w=h(s.a.Pb(),43),h(w.bd(),149)),l=t.a,l==null&&(l=""),a=LGt(e.c,l),!a&&l.length==0&&(a=Oon(e)),!!a&&!ay(a.c,t,!1)&&lr(a.c,t);for(v=sr(e.a,0);v.b!=v.d.c;)f=h(or(v),472),A=IY(e.c,f.a),z=IY(e.c,f.b),!!A&&!!z&&lr(A.c,new fo(z,f.c));for(Dl(e.a),R=sr(e.b,0);R.b!=R.d.c;)M=h(or(R),472),t=$Gt(e.c,M.a),S=IY(e.c,M.b),!!t&&!!S&&Dqt(t,S,M.c);Dl(e.b)}function Wbn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z;f=new yT(e),v=new tft,l=(PA(v.g),PA(v.j),Gc(v.b),PA(v.d),PA(v.i),Gc(v.k),Gc(v.c),Gc(v.e),z=Fdt(v,f,null),Iht(v,f),z),t&&(C=new yT(t),w=tmn(C),iye(l,re(te(PCe,1),rt,520,0,[w]))),R=!1,M=!1,s&&(C=new yT(s),oB in C.a&&(R=l1(C,oB).ge().a),zmt in C.a&&(M=l1(C,zmt).ge().a)),A=FXe(Qst(new GS,R),M),Jfn(new $Fe,l,A),oB in f.a&&Nf(f,oB,null),(R||M)&&(S=new v3,Ipt(A,S,R,M),Nf(f,oB,S)),a=new BWe(v),Nin(new M1e(l),a)}function Gbn(e,t,s){var a,l,f,v,w,S,C,A,M;for(v=new sft,C=re(te(An,1),nr,24,15,[0]),l=-1,f=0,a=0,S=0;S0){if(l<0&&A.a&&(l=S,f=C[0],a=0),l>=0){if(w=A.b,S==l&&(w-=a++,w==0))return 0;if(!M0t(t,C,A,w,v)){S=l-1,C[0]=f;continue}}else if(l=-1,!M0t(t,C,A,0,v))return 0}else{if(l=-1,po(A.c,0)==32){if(M=C[0],ast(t,C),C[0]>M)continue}else if(GZt(t,A.c,C[0])){C[0]+=A.c.length;continue}return 0}return Cyn(v,s)?C[0]:0}function W8(e){var t,s,a,l,f,v,w,S;if(!e.f){if(S=new lde,w=new lde,t=C9,v=t.a.xc(e,t),v==null){for(f=new pn(Ss(e));f.e!=f.i.gc();)l=h(vn(f),26),di(S,W8(l));t.a.zc(e)!=null,t.a.gc()==0}for(a=(!e.s&&(e.s=new $e(wc,e,21,17)),new pn(e.s));a.e!=a.i.gc();)s=h(vn(a),170),ue(s,97)&&On(w,h(s,17));sy(w),e.r=new oet(e,(h(fe(Ce((n0(),Bt).o),6),17),w.i),w.g),di(S,e.r),sy(S),e.f=new Ww((h(fe(Ce(Bt.o),5),17),S.i),S.g),eu(e).b&=-3}return e.f}function Xbn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q;for(v=e.o,a=ge(An,nr,24,v,15,1),l=ge(An,nr,24,v,15,1),s=e.p,t=ge(An,nr,24,s,15,1),f=ge(An,nr,24,s,15,1),C=0;C=0&&!g2(e,A,M);)--M;l[A]=M}for(z=0;z=0&&!g2(e,w,q);)--w;f[q]=w}for(S=0;St[R]&&Ra[S]&&JL(e,S,R,!1,!0)}function _we(e){var t,s,a,l,f,v,w,S;s=_t(It(G(e,(Bf(),i2t)))),f=e.a.c.d,w=e.a.d.d,s?(v=Ud(no(new ot(w.a,w.b),f),.5),S=Ud(Xs(e.e),.5),t=no(Rr(new ot(f.a,f.b),v),S),dpe(e.d,t)):(l=Ae(Ke(G(e.a,c2t))),a=e.d,f.a>=w.a?f.b>=w.b?(a.a=w.a+(f.a-w.a)/2+l,a.b=w.b+(f.b-w.b)/2-l-e.e.b):(a.a=w.a+(f.a-w.a)/2+l,a.b=f.b+(w.b-f.b)/2+l):f.b>=w.b?(a.a=f.a+(w.a-f.a)/2+l,a.b=w.b+(f.b-w.b)/2+l):(a.a=f.a+(w.a-f.a)/2+l,a.b=f.b+(w.b-f.b)/2-l-e.e.b))}function _a(e,t){var s,a,l,f,v,w,S;if(e==null)return null;if(f=e.length,f==0)return"";for(S=ge(wl,Qd,24,f,15,1),Kge(0,f,e.length),Kge(0,f,S.length),htt(e,0,f,S,0),s=null,w=t,l=0,v=0;l0?Ru(s.a,0,f-1):""):e.substr(0,f-1):s?s.a:e}function iF(){iF=H,Q8e=re(te(wl,1),Qd,24,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),aEt=new RegExp(`[ -\r\f]+`);try{S9=re(te(l2n,1),rt,1984,0,[new kT((R1e(),pL("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",cA((tj(),tj(),TI))))),new kT(pL("yyyy-MM-dd'T'HH:mm:ss'.'SSS",cA(TI))),new kT(pL("yyyy-MM-dd'T'HH:mm:ss",cA(TI))),new kT(pL("yyyy-MM-dd'T'HH:mm",cA(TI))),new kT(pL("yyyy-MM-dd",cA(TI)))])}catch(e){if(e=ni(e),!ue(e,78))throw ee(e)}}function Npt(e){Gb(e,new Bg(Ub(Bb(Vb(zb(new ag,Wg),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new kN))),it(e,Wg,yee,lt(DSe)),it(e,Wg,wee,lt(Pne)),it(e,Wg,d4,lt(Uwt)),it(e,Wg,Gg,lt(MSe)),it(e,Wg,g2e,lt(Gwt)),it(e,Wg,b2e,lt(Wwt)),it(e,Wg,p2e,lt(Xwt)),it(e,Wg,m2e,lt(qwt)),it(e,Wg,k2e,lt(Hwt)),it(e,Wg,C2e,lt(Ane)),it(e,Wg,I2e,lt(_Se)),it(e,Wg,T2e,lt(FB))}function Mwe(e,t,s,a){var l,f,v,w,S,C,A,M,R;if(f=new y1(e),ug(f,(tn(),Da)),_e(f,(Qe(),yi),(lo(),ja)),l=0,t){for(v=new wa,_e(v,(Be(),Mr),t),_e(f,Mr,t.i),Fi(v,(He(),Xt)),js(v,f),R=Gd(t.e),C=R,A=0,M=C.length;A0)if(s-=a.length-t,s>=0){for(l.a+="0.";s>nb.length;s-=nb.length)Aet(l,nb);iJe(l,nb,Ci(s)),Xn(l,a.substr(t))}else s=t-s,Xn(l,Ru(a,t,Ci(s))),l.a+=".",Xn(l,ZT(a,Ci(s)));else{for(Xn(l,a.substr(t));s<-nb.length;s+=nb.length)Aet(l,nb);iJe(l,nb,Ci(-s))}return l.a}function Dwe(e,t,s,a){var l,f,v,w,S,C,A,M,R;return S=no(new ot(s.a,s.b),e),C=S.a*t.b-S.b*t.a,A=t.a*a.b-t.b*a.a,M=(S.a*a.b-S.b*a.a)/A,R=C/A,A==0?C==0?(l=Rr(new ot(s.a,s.b),Ud(new ot(a.a,a.b),.5)),f=a0(e,l),v=a0(Rr(new ot(e.a,e.b),t),l),w=m.Math.sqrt(a.a*a.a+a.b*a.b)*.5,f=0&&M<=1&&R>=0&&R<=1?Rr(new ot(e.a,e.b),Ud(new ot(t.a,t.b),M)):null}function Ybn(e,t,s){var a,l,f,v,w;if(a=h(G(e,(Qe(),Nre)),21),s.a>t.a&&(a.Fc((hy(),a_))?e.c.a+=(s.a-t.a)/2:a.Fc(c_)&&(e.c.a+=s.a-t.a)),s.b>t.b&&(a.Fc((hy(),l_))?e.c.b+=(s.b-t.b)/2:a.Fc(u_)&&(e.c.b+=s.b-t.b)),h(G(e,(Be(),Na)),21).Fc((Zo(),yl))&&(s.a>t.a||s.b>t.b))for(w=new Q(e.a);w.at.a&&(a.Fc((hy(),a_))?e.c.a+=(s.a-t.a)/2:a.Fc(c_)&&(e.c.a+=s.a-t.a)),s.b>t.b&&(a.Fc((hy(),l_))?e.c.b+=(s.b-t.b)/2:a.Fc(u_)&&(e.c.b+=s.b-t.b)),h(G(e,(Be(),Na)),21).Fc((Zo(),yl))&&(s.a>t.a||s.b>t.b))for(v=new Q(e.a);v.at){if(l=h(st(A.a,A.a.c.length-1),181),Opt(A,l,S,t,s))continue;f+=A.b,M.c[M.c.length]=A,A=new W0e(f),JR(A,new dQ(0,A.e,A,s))}a=h(st(A.a,A.a.c.length-1),181),a.b.c.length==0||S.f+s>=a.o&&S.f+s<=a.f||a.a*.5<=S.f+s&&a.a*1.5>=S.f+s?Mme(a,S):(v=new dQ(a.s+a.r,A.e,A,s),JR(A,v),Mme(v,S))}return M.c[M.c.length]=A,M}function T2(e){var t,s,a,l,f,v,w,S;if(!e.a){if(e.o=null,S=new oGe(e),t=new $Be,s=C9,w=s.a.xc(e,s),w==null){for(v=new pn(Ss(e));v.e!=v.i.gc();)f=h(vn(v),26),di(S,T2(f));s.a.zc(e)!=null,s.a.gc()==0}for(l=(!e.s&&(e.s=new $e(wc,e,21,17)),new pn(e.s));l.e!=l.i.gc();)a=h(vn(l),170),ue(a,321)&&On(t,h(a,32));sy(t),e.k=new iet(e,(h(fe(Ce((n0(),Bt).o),7),17),t.i),t.g),di(S,e.k),sy(S),e.a=new Ww((h(fe(Ce(Bt.o),4),17),S.i),S.g),eu(e).b&=-2}return e.a}function uJ(e,t,s,a,l,f,v){var w,S,C,A,M,R,z,q,W;switch(q=0,W=0,S=l.e,w=l.d,A=s.f,z=s.g,t.g){case 0:q=a.i+a.g+v,e.c?W=Hln(q,f,a,v):W=a.j,R=m.Math.max(S,q+z),C=m.Math.max(w,W+A);break;case 1:W=a.j+a.f+v,e.c?q=Uln(W,f,a,v):q=a.i,R=m.Math.max(S,q+z),C=m.Math.max(w,W+A);break;case 2:q=S+v,W=0,R=S+v+z,C=m.Math.max(w,A);break;case 3:q=0,W=w+v,R=m.Math.max(S,z),C=w+v+A;break;default:throw ee(new Gt("IllegalPlacementOption."))}return M=new Pbe(e.a,R,C,t,q,W),M}function Nwe(e,t,s,a){var l,f,v,w,S,C,A;if(A=ec(e.e.Og(),t),l=0,f=h(e.g,118),S=null,Uo(),h(t,65).Jj()){for(w=0;we.o.a&&(A=(S-e.o.a)/2,w.b=m.Math.max(w.b,A),w.c=m.Math.max(w.c,A))}}function oF(e,t,s,a){var l,f,v,w,S,C;if(S=ec(e.e.Og(),t),f=h(e.g,118),w1(e.e,t)){for(l=0,w=0;wz||a+l>C)throw ee(new ehe);if((M.i&1)==0&&R!=S)if(A=Tg(e),f=Tg(s),Pe(e)===Pe(s)&&ta;)ui(f,w,A[--t]);else for(w=a+l;a0&&wye(e,t,s,a,l,!0)}function nmn(e,t,s,a,l,f){var v,w,S,C,A;return C=!1,w=Vht(s.q,t.e+t.b-s.q.e),A=l-(s.q.d+w),Af&&(mP((qt(f,e.c.length),h(e.c[f],180)),a),(qt(f,e.c.length),h(e.c[f],180)).a.c.length==0&&tp(e,f)),C=!0),C)}function lJ(){lJ=H,Myt=re(te(An,1),nr,24,15,[Co,1162261467,Q8,1220703125,362797056,1977326743,Q8,387420489,vF,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,Q8,1291467969,1544804416,1838265625,60466176]),Dyt=re(te(An,1),nr,24,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function rmn(e){var t,s,a,l,f,v,w,S;for(l=new Q(e.b);l.a=e.b.length?(f[l++]=v.b[a++],f[l++]=v.b[a++]):a>=v.b.length?(f[l++]=e.b[s++],f[l++]=e.b[s++]):v.b[a]0&&(l=(!e.n&&(e.n=new $e(Ms,e,1,7)),h(fe(e.n,0),137)).a,!l||Xn(Xn((t.a+=' "',t),l),'"'))),s=(!e.b&&(e.b=new Ht(Bn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c.i<=1))),s?t.a+=" [":t.a+=" ",Xn(t,G1e(new iX,new pn(e.b))),s&&(t.a+="]"),t.a+=Iee,s&&(t.a+="["),Xn(t,G1e(new iX,new pn(e.c))),s&&(t.a+="]"),t.a)}function fJ(e,t){var s,a,l,f,v,w,S;if(e.a){if(w=e.a.ne(),S=null,w!=null?t.a+=""+w:(v=e.a.yj(),v!=null&&(f=Vd(v,bc(91)),f!=-1?(S=v.substr(f),t.a+=""+Ru(v==null?mc:(Ut(v),v),0,f)):t.a+=""+v)),!!e.d&&e.d.i!=0){for(l=!0,t.a+="<",a=new pn(e.d);a.e!=a.i.gc();)s=h(vn(a),86),l?l=!1:t.a+=Fo,fJ(s,t);t.a+=">"}S!=null&&(t.a+=""+S)}else e.e?(w=e.e.zb,w!=null&&(t.a+=""+w)):(t.a+="?",e.b?(t.a+=" super ",fJ(e.b,t)):e.f&&(t.a+=" extends ",fJ(e.f,t)))}function omn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on;for(Ie=e.c,Le=t.c,s=Ps(Ie.a,e,0),a=Ps(Le.a,t,0),he=h(cy(e,(ss(),Rc)).Ic().Pb(),11),at=h(cy(e,nc).Ic().Pb(),11),ve=h(cy(t,Rc).Ic().Pb(),11),on=h(cy(t,nc).Ic().Pb(),11),oe=Gd(he.e),Ye=Gd(at.g),de=Gd(ve.e),ft=Gd(on.g),dy(e,a,Le),v=de,A=0,q=v.length;AA?new Sg((Mf(),Qy),s,t,C-A):C>0&&A>0&&(new Sg((Mf(),Qy),t,s,0),new Sg(Qy,s,t,0))),v)}function Rpt(e,t,s,a){var l,f,v,w,S,C,A;if(f=cL(a),w=_t(It(G(a,(Qe(),yEe)))),(w||_t(It(G(e,Nz))))&&!Gw(h(G(e,yi),100)))l=K3(f),S=Swe(e,s,s==(ss(),nc)?l:fP(l));else switch(S=new wa,js(S,e),t?(A=S.n,A.a=t.a-e.n.a,A.b=t.b-e.n.b,Zft(A,0,0,e.o.a,e.o.b),Fi(S,spt(S,f))):(l=K3(f),Fi(S,s==(ss(),nc)?l:fP(l))),v=h(G(a,(Be(),Na)),21),C=S.j,f.g){case 2:case 1:(C==(He(),Wt)||C==xn)&&v.Dc((Zo(),X2));break;case 4:case 3:(C==(He(),nn)||C==Xt)&&v.Dc((Zo(),X2))}return S}function $pt(e,t){var s,a,l,f,v,w;for(v=new Ng(new lg(e.f.b).a);v.b;){if(f=dm(v),l=h(f.ad(),585),t==1){if(l.hf()!=(as(),P1)&&l.hf()!=T1)continue}else if(l.hf()!=(as(),xf)&&l.hf()!=qf)continue;switch(a=h(h(f.bd(),46).b,79),w=h(h(f.bd(),46).a,189),s=w.c,l.hf().g){case 2:a.g.c=e.e.a,a.g.b=m.Math.max(1,a.g.b+s);break;case 1:a.g.c=a.g.c+s,a.g.b=m.Math.max(1,a.g.b-s);break;case 4:a.g.d=e.e.b,a.g.a=m.Math.max(1,a.g.a+s);break;case 3:a.g.d=a.g.d+s,a.g.a=m.Math.max(1,a.g.a-s)}}}function smn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W;for(w=ge(An,nr,24,t.b.c.length,15,1),C=ge(Une,je,266,t.b.c.length,0,1),S=ge(vp,Kg,10,t.b.c.length,0,1),M=e.a,R=0,z=M.length;R0&&!!S[a]&&(q=Kw(e.b,S[a],l)),W=m.Math.max(W,l.c.c.b+q);for(f=new Q(A.e);f.a1)throw ee(new Gt(EO));S||(f=Oh(t,a.Ic().Pb()),v.Dc(f))}return qbe(e,lye(e,t,s),v)}function cmn(e,t){var s,a,l,f,v,w,S,C,A,M;for(_n(t,"Simple node placement",1),M=h(G(e,(Be(),Q2)),302),w=0,f=new Q(e.b);f.a=w?MY(e.a,f,t.a,w):MY(t.a,w,e.a,f);else{if(l=f!=w?f>w?1:-1:ime(e.a,t.a,f),l==0)return v0(),F6;l==1?(R=v,M=OY(e.a,f,t.a,w)):(R=S,M=OY(t.a,w,e.a,f))}return C=new Zw(R,M.length,M),s8(C),C}function zpt(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W;for(M=0;Me.o.b||(s=Ls(e,nn),w=t.d+t.a+(s.gc()-1)*v,w>e.o.b)))}function aF(e,t){var s,a,l,f,v,w,S,C,A,M;if(A=null,e.d&&(A=h(Ia(e.d,t),138)),!A){if(f=e.a.Hh(),M=f.i,!e.d||gC(e.d)!=M){for(S=new Vn,e.d&&y8(S,e.d),C=S.f.c+S.g.c,w=C;w0?(z=(q-1)*s,w&&(z+=a),A&&(z+=a),z=e.b[l+1])l+=2;else if(s0)for(a=new vu(h(Br(e.a,f),21)),Mt(),co(a,new Hde(t)),l=new xo(f.b,0);l.bIe)?(S=2,v=Ir):S==0?(S=1,v=Ye):(S=0,v=Ye)):(z=Ye>=v||v-Ye0&&a>=-6?a>=0?EA(f,s-Ci(e.e),String.fromCharCode(46)):(f.a=Ru(f.a,0,t-1)+"0."+ZT(f.a,t-1),EA(f,t+1,Rl(nb,0,-Ci(a)-1))):(s-t>=1&&(EA(f,t,String.fromCharCode(46)),++s),EA(f,s,String.fromCharCode(69)),a>0&&EA(f,++s,String.fromCharCode(43)),EA(f,++s,""+KC(gc(a)))),e.g=f.a,e.g))}function kmn(e,t){var s,a,l,f,v,w,S;for(e.a.c=ge(dn,rt,1,0,5,1),a=sr(t.b,0);a.b!=a.d.c;)s=h(or(a),83),s.b.b==0&&(_e(s,(ua(),Zy),(Zt(),!0)),Re(e.a,s));switch(e.a.c.length){case 0:l=new hQ(0,t,"DUMMY_ROOT"),_e(l,(ua(),Zy),(Zt(),!0)),_e(l,gie,!0),lr(t.b,l);break;case 1:break;default:for(f=new hQ(0,t,"SUPER_ROOT"),w=new Q(e.a);w.a0?1:Xb(isNaN(a),isNaN(0)))>=0^(hf(rh),(m.Math.abs(w)<=rh||w==0||isNaN(w)&&isNaN(0)?0:w<0?-1:w>0?1:Xb(isNaN(w),isNaN(0)))>=0)?m.Math.max(w,a):(hf(rh),(m.Math.abs(a)<=rh||a==0||isNaN(a)&&isNaN(0)?0:a<0?-1:a>0?1:Xb(isNaN(a),isNaN(0)))>0?m.Math.sqrt(w*w+a*a):-m.Math.sqrt(w*w+a*a))}function zg(e,t){var s,a,l,f,v,w;if(!!t){if(!e.a&&(e.a=new JN),e.e==2){ZN(e.a,t);return}if(t.e==1){for(l=0;l=Bo?rs(s,_me(a)):p5(s,a&Ti),v=new oY(10,null,0),xQt(e.a,v,w-1)):(s=(v.Yl().length+f,new fC),rs(s,v.Yl())),t.e==0?(a=t.Wl(),a>=Bo?rs(s,_me(a)):p5(s,a&Ti)):rs(s,t.Yl()),h(v,514).b=s.a}}function Imn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J;if(!s.dc()){for(w=0,R=0,a=s.Ic(),q=h(a.Pb(),20).a;w1&&(w=S.hg(w,e.a));return w.c.length==1?h(st(w,w.c.length-1),218):w.c.length==2?hmn((qt(0,w.c.length),h(w.c[0],218)),(qt(1,w.c.length),h(w.c[1],218)),v,f):null}function Pmn(e,t,s){var a,l,f;if(l=h(G(t,(Qe(),Oz)),273),l!=(a6(),RI)){switch(_n(s,"Horizontal Compaction",1),e.a=t,f=new ost,a=new Zdt((f.d=t,f.c=h(G(f.d,yp),216),j0n(f),wvn(f),z0n(f),f.a)),ZHt(a,e.b),h(G(t,J6e),417).g){case 1:IXe(a,new Eat(e.a));break;default:IXe(a,(sge(),Qyt))}switch(l.g){case 1:B8(a);break;case 2:B8(lF(a,(as(),qf)));break;case 3:B8(TXe(lF(B8(a),(as(),qf)),new n$e));break;case 4:B8(TXe(lF(B8(a),(as(),qf)),new mqe(f)));break;case 5:B8(QHt(a,H2t))}lF(a,(as(),xf)),a.e=!0,oyn(f),yn(s)}}function Xpt(e){Gb(e,new Bg(sj(Ub(Bb(Vb(zb(new ag,h4),Zgt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new iG),yd))),it(e,h4,uO,lt(qSe)),it(e,h4,AF,(Zt(),!0)),it(e,h4,Gg,GSe),it(e,h4,R2e,lt(HSe)),it(e,h4,L2e,lt(VSe)),it(e,h4,F2e,lt(USe)),it(e,h4,B2e,lt(WSe)),it(e,h4,$2e,lt(qB))}function Omn(e,t,s,a,l,f){var v,w,S,C,A,M,R;return v=null,C=a==(ss(),Rc)?f.c:f.d,S=cL(t),C.i==s?(v=h(Hn(e.b,C),10),v||(v=WP(C,h(G(s,(Qe(),yi)),100),l,a==Rc?-1:1,null,C.n,C.o,S,t),_e(v,(Be(),Mr),C),Fr(e.b,C,v))):(A=Ae(Ke(G(f,(Qe(),I1)))),v=WP((M=new fT,R=Ae(Ke(G(t,wf)))/2,rP(M,qy,R),M),h(G(s,yi),100),l,a==Rc?-1:1,null,new Yo,new ot(A,A),S,t),w=kln(v,s,a),_e(v,(Be(),Mr),w),Fr(e.b,w,v)),h(G(t,(Be(),Na)),21).Dc((Zo(),yl)),Gw(h(G(t,(Qe(),yi)),100))?_e(t,yi,(lo(),mE)):_e(t,yi,(lo(),Cd)),v}function _mn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q;for(e.f=new VG,C=0,l=0,v=new Q(e.e.b);v.a=m.Math.abs(a.b)?(a.b=0,f.d+f.a>v.d&&f.dv.c&&f.c0){if(t=new k1e(e.i,e.g),s=e.i,f=s<100?null:new Gp(s),e.dj())for(a=0;a0){for(w=e.g,C=e.i,f8(e),f=C<100?null:new Gp(C),a=0;a>13|(e.m&15)<<9,l=e.m>>4&8191,f=e.m>>17|(e.h&255)<<5,v=(e.h&1048320)>>8,w=t.l&8191,S=t.l>>13|(t.m&15)<<9,C=t.m>>4&8191,A=t.m>>17|(t.h&255)<<5,M=(t.h&1048320)>>8,ft=s*w,at=a*w,on=l*w,en=f*w,En=v*w,S!=0&&(at+=s*S,on+=a*S,en+=l*S,En+=f*S),C!=0&&(on+=s*C,en+=a*C,En+=l*C),A!=0&&(en+=s*A,En+=a*A),M!=0&&(En+=s*M),z=ft&cu,q=(at&511)<<13,R=z+q,J=ft>>22,oe=at>>9,de=(on&262143)<<4,he=(en&31)<<17,W=J+oe+de+he,Ie=on>>18,Le=en>>5,Ye=(En&4095)<<8,ve=Ie+Le+Ye,W+=R>>22,R&=cu,ve+=W>>22,W&=cu,ve&=E1,Qa(R,W,ve)}function Qpt(e,t){var s,a,l,f,v,w,S;if(e.Ak()){if(e.i>4)if(e.rj(t)){if(e.mk()){if(l=h(t,48),a=l.Pg(),S=a==e.e&&(e.yk()?l.Jg(l.Qg(),e.uk())==e.vk():-1-l.Qg()==e.Xi()),e.zk()&&!S&&!a&&!!l.Ug()){for(f=0;f0&&(C=e.n.a/f);break;case 2:case 4:l=e.i.o.b,l>0&&(C=e.n.b/l)}_e(e,(Be(),Hm),C)}if(S=e.o,v=e.a,a)v.a=a.a,v.b=a.b,e.d=!0;else if(t!=Cd&&t!=L0&&w!=Us)switch(w.g){case 1:v.a=S.a/2;break;case 2:v.a=S.a,v.b=S.b/2;break;case 3:v.a=S.a/2,v.b=S.b;break;case 4:v.b=S.b/2}else v.a=S.a/2,v.b=S.b/2}function X8(e){var t,s,a,l,f,v,w,S,C,A;if(e._i())if(A=e.Qi(),S=e.aj(),A>0)if(t=new Lbe(e.Bi()),s=A,f=s<100?null:new Gp(s),sA(e,s,t.g),l=s==1?e.Ui(4,fe(t,0),null,0,S):e.Ui(6,t,null,-1,S),e.Yi()){for(a=new pn(t);a.e!=a.i.gc();)f=e.$i(vn(a),f);f?(f.zi(l),f.Ai()):e.Vi(l)}else f?(f.zi(l),f.Ai()):e.Vi(l);else sA(e,e.Qi(),e.Ri()),e.Vi(e.Ui(6,(Mt(),qo),null,-1,S));else if(e.Yi())if(A=e.Qi(),A>0){for(w=e.Ri(),C=A,sA(e,A,w),f=C<100?null:new Gp(C),a=0;ae.d[v.p]&&(s+=Dge(e.b,f)*h(S.b,20).a,Eg(e.a,Ue(f)));for(;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function Lmn(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J;for(M=new xs(h(Ot(e,(FL(),$Ce)),8)),M.a=m.Math.max(M.a-s.b-s.c,0),M.b=m.Math.max(M.b-s.d-s.a,0),l=Ke(Ot(e,NCe)),(l==null||(Ut(l),l<=0))&&(l=1.3),w=new Fe,q=new pn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));q.e!=q.i.gc();)z=h(vn(q),34),v=new RZe(z),w.c[w.c.length]=v;switch(R=h(Ot(e,Uie),309),R.g){case 3:J=lbn(w,t,M.a,M.b,(C=a,Ut(l),C));break;case 1:J=Dbn(w,t,M.a,M.b,(A=a,Ut(l),A));break;default:J=zmn(w,t,M.a,M.b,(S=a,Ut(l),S))}f=new _$(J),W=SJ(f,t,s,M.a,M.b,a,(Ut(l),l)),Tm(e,W.a,W.b,!1,!0)}function Fmn(e,t){var s,a,l,f;s=t.b,f=new vu(s.j),l=0,a=s.j,a.c=ge(dn,rt,1,0,5,1),tm(h(Pg(e.b,(He(),Wt),(bm(),zm)),14),s),l=xP(f,l,new T$e,a),tm(h(Pg(e.b,Wt,O0),14),s),l=xP(f,l,new w$e,a),tm(h(Pg(e.b,Wt,Bm),14),s),tm(h(Pg(e.b,nn,zm),14),s),tm(h(Pg(e.b,nn,O0),14),s),l=xP(f,l,new A$e,a),tm(h(Pg(e.b,nn,Bm),14),s),tm(h(Pg(e.b,xn,zm),14),s),l=xP(f,l,new P$e,a),tm(h(Pg(e.b,xn,O0),14),s),l=xP(f,l,new O$e,a),tm(h(Pg(e.b,xn,Bm),14),s),tm(h(Pg(e.b,Xt,zm),14),s),l=xP(f,l,new E$e,a),tm(h(Pg(e.b,Xt,O0),14),s),tm(h(Pg(e.b,Xt,Bm),14),s)}function Bmn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W;for(_n(t,"Layer size calculation",1),A=pi,C=Oi,l=!1,w=new Q(e.b);w.a.5?oe-=v*2*(q-.5):q<.5&&(oe+=f*2*(.5-q)),l=w.d.b,oeJ.a-W-A&&(oe=J.a-W-A),w.n.a=t+oe}}function zmn(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J;for(w=ge(oo,us,24,e.c.length,15,1),R=new IR(new gBe),yve(R,e),C=0,W=new Fe;R.b.c.length!=0;)if(v=h(R.b.c.length==0?null:st(R.b,0),157),C>1&&Pc(v)*yu(v)/2>w[0]){for(f=0;fw[f];)++f;q=new Ph(W,0,f+1),M=new _$(q),A=Pc(v)/yu(v),S=SJ(M,t,new m3,s,a,l,A),Rr(zd(M.e),S),C5(s6(R,M)),z=new Ph(W,f+1,W.c.length),yve(R,z),W.c=ge(dn,rt,1,0,5,1),C=0,Let(w,w.length,0)}else J=R.b.c.length==0?null:st(R.b,0),J!=null&&tQ(R,0),C>0&&(w[C]=w[C-1]),w[C]+=Pc(v)*yu(v),++C,W.c[W.c.length]=v;return W}function Vmn(e){var t,s,a,l,f;if(a=h(G(e,(Qe(),yc)),165),a==(gl(),M0)){for(s=new bn(mn(Os(e).a.Ic(),new j));Yn(s);)if(t=h(Rn(s),18),!Wit(t))throw ee(new Lw(Pee+SP(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(a==Vy){for(f=new bn(mn(Ni(e).a.Ic(),new j));Yn(f);)if(l=h(Rn(f),18),!Wit(l))throw ee(new Lw(Pee+SP(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Umn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q;for(_n(t,"Label dummy removal",1),a=Ae(Ke(G(e,(Qe(),D4)))),l=Ae(Ke(G(e,Xy))),C=h(G(e,Gu),108),S=new Q(e.b);S.a>19!=0&&(t=H5(t),S=!S),v=K1n(t),f=!1,l=!1,a=!1,e.h==JP&&e.m==0&&e.l==0)if(l=!0,f=!0,v==-1)e=IQe((A5(),E4e)),a=!0,S=!S;else return w=jye(e,v),S&&uQ(w),s&&(I0=Qa(0,0,0)),w;else e.h>>19!=0&&(f=!0,e=H5(e),a=!0,S=!S);return v!=-1?Hin(e,v,S,f,s):Tve(e,t)<0?(s&&(f?I0=H5(e):I0=Qa(e.l,e.m,e.h)),Qa(0,0,0)):Rgn(a?e:Qa(e.l,e.m,e.h),t,S,f,l,s)}function qmn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J;for(_n(s,"Interactive cycle breaking",1),M=new Fe,z=new Q(t.a);z.a0&&adt(e,w,M);for(l=new Q(M);l.a=0)return l=osn(e,t.substr(1,v-1)),A=t.substr(v+1,S-(v+1)),Gyn(e,A,l)}else{if(s=-1,A4e==null&&(A4e=new RegExp("\\d")),A4e.test(String.fromCharCode(w))&&(s=$pe(t,bc(46),S-1),s>=0)){a=h(PY(e,Mst(e,t.substr(1,s-1)),!1),57),C=0;try{C=Uu(t.substr(s+1),Co,Ir)}catch(R){throw R=ni(R),ue(R,127)?(f=R,ee(new w$(f))):ee(R)}if(Ct.f||t.g>e.f)){for(s=0,a=0,v=e.w.a.ec().Ic();v.Ob();)l=h(v.Pb(),11),SQ($s(re(te(Hi,1),Oe,8,0,[l.i.n,l.n,l.a])).b,t.g,t.f)&&++s;for(w=e.r.a.ec().Ic();w.Ob();)l=h(w.Pb(),11),SQ($s(re(te(Hi,1),Oe,8,0,[l.i.n,l.n,l.a])).b,t.g,t.f)&&--s;for(S=t.w.a.ec().Ic();S.Ob();)l=h(S.Pb(),11),SQ($s(re(te(Hi,1),Oe,8,0,[l.i.n,l.n,l.a])).b,e.g,e.f)&&++a;for(f=t.r.a.ec().Ic();f.Ob();)l=h(f.Pb(),11),SQ($s(re(te(Hi,1),Oe,8,0,[l.i.n,l.n,l.a])).b,e.g,e.f)&&--a;s1)throw ee(new Gt(EO));for(A=ec(e.e.Og(),t),a=h(e.g,118),v=0;v=0)return s;switch(im(gs(e,s))){case 2:{if(kt("",op(e,s.Cj()).ne())){if(S=wA(gs(e,s)),w=m5(gs(e,s)),A=Vye(e,t,S,w),A)return A;for(l=bwe(e,t),v=0,M=l.gc();v1,C=new dd(R.b);Ns(C.a)||Ns(C.b);)S=h(Ns(C.a)?Y(C.a):Y(C.b),18),M=S.c==R?S.d:S.c,m.Math.abs($s(re(te(Hi,1),Oe,8,0,[M.i.n,M.n,M.a])).b-v.b)>1&&Zpn(e,S,v,f,R)}}function evn(e){var t,s,a,l,f,v;if(l=new xo(e.e,0),a=new xo(e.a,0),e.d)for(s=0;sste;){for(f=t,v=0;m.Math.abs(t-f)0),l.a.Xb(l.c=--l.b),xbn(e,e.b-v,f,a,l),hn(l.b0),a.a.Xb(a.c=--a.b)}if(!e.d)for(s=0;s0?(e.f[A.p]=z/(A.e.c.length+A.g.c.length),e.c=m.Math.min(e.c,e.f[A.p]),e.b=m.Math.max(e.b,e.f[A.p])):w&&(e.f[A.p]=z)}}function nvn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function rvn(e,t,s){var a,l,f,v;for(_n(s,"Graph transformation ("+e.a+")",1),v=am(t.a),f=new Q(t.b);f.a0&&(e.a=S+(z-1)*f,t.c.b+=e.a,t.f.b+=e.a)),q.a.gc()!=0&&(R=new FK(1,f),z=Vwe(R,t,q,W,t.f.b+S-t.c.b),z>0&&(t.f.b+=S+(z-1)*f))}function m6(e,t){var s,a,l,f;f=e.F,t==null?(e.F=null,G5(e,null)):(e.F=(Ut(t),t),a=Vd(t,bc(60)),a!=-1?(l=t.substr(0,a),Vd(t,bc(46))==-1&&!kt(l,o4)&&!kt(l,yI)&&!kt(l,cB)&&!kt(l,wI)&&!kt(l,xI)&&!kt(l,SI)&&!kt(l,EI)&&!kt(l,kI)&&(l=Ovt),s=Qj(t,bc(62)),s!=-1&&(l+=""+t.substr(s+1)),G5(e,l)):(l=t,Vd(t,bc(46))==-1&&(a=Vd(t,bc(91)),a!=-1&&(l=t.substr(0,a)),!kt(l,o4)&&!kt(l,yI)&&!kt(l,cB)&&!kt(l,wI)&&!kt(l,xI)&&!kt(l,SI)&&!kt(l,EI)&&!kt(l,kI)?(l=Ovt,a!=-1&&(l+=""+t.substr(a))):l=t),G5(e,l),l==t&&(e.F=e.D))),(e.Db&4)!=0&&(e.Db&1)==0&&Tr(e,new Gi(e,1,5,f,t))}function Bwe(e){var t;switch(e.d){case 1:{if(e.cj())return e.o!=-2;break}case 2:{if(e.cj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.bj(),e.p){case 0:return t!=null&&_t(It(t))!=pC(e.k,0);case 1:return t!=null&&h(t,215).a!=Pn(e.k)<<24>>24;case 2:return t!=null&&h(t,172).a!=(Pn(e.k)&Ti);case 6:return t!=null&&pC(h(t,162).a,e.k);case 5:return t!=null&&h(t,20).a!=Pn(e.k);case 7:return t!=null&&h(t,186).a!=Pn(e.k)<<16>>16;case 3:return t!=null&&Ae(Ke(t))!=e.j;case 4:return t!=null&&h(t,155).a!=e.j;default:return t==null?e.n!=null:!Ar(t,e.n)}}function ovn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;if(W=t.b.c.length,!(W<3)){for(z=ge(An,nr,24,W,15,1),M=0,A=new Q(t.b);A.av)&&ro(e.b,h(J.b,18));++w}f=v}}}function svn(e){p8();var t,s,a,l,f,v,w;for(w=new IGe,s=new Q(e);s.a=w.b.c)&&(w.b=t),(!w.c||t.c<=w.c.c)&&(w.d=w.c,w.c=t),(!w.e||t.d>=w.e.d)&&(w.e=t),(!w.f||t.d<=w.f.d)&&(w.f=t);return a=new SL((U5(),Fm)),IA(e,T2t,new gu(re(te(RO,1),rt,366,0,[a]))),v=new SL(Fy),IA(e,I2t,new gu(re(te(RO,1),rt,366,0,[v]))),l=new SL(Ly),IA(e,C2t,new gu(re(te(RO,1),rt,366,0,[l]))),f=new SL(U2),IA(e,k2t,new gu(re(te(RO,1),rt,366,0,[f]))),VZ(a.c,Fm),VZ(l.c,Ly),VZ(f.c,U2),VZ(v.c,Fy),w.a.c=ge(dn,rt,1,0,5,1),Di(w.a,a.c),Di(w.a,Ag(l.c)),Di(w.a,f.c),Di(w.a,Ag(v.c)),w}function qP(e,t,s){var a,l,f,v;return e.Ak()&&e.zk()&&(v=MK(e,h(s,55)),Pe(v)!==Pe(s))?(e.Ji(t),e.Pi(t,$ot(e,t,v)),e.mk()&&(f=(l=h(s,48),e.yk()?e.wk()?l.dh(e.b,Ho(h(Dt(fc(e.b),e.Xi()),17)).n,h(Dt(fc(e.b),e.Xi()).Tj(),26).wj(),null):l.dh(e.b,ti(l.Og(),Ho(h(Dt(fc(e.b),e.Xi()),17))),null,null):l.dh(e.b,-1-e.Xi(),null,null)),!h(v,48).$g()&&(f=(a=h(v,48),e.yk()?e.wk()?a.ah(e.b,Ho(h(Dt(fc(e.b),e.Xi()),17)).n,h(Dt(fc(e.b),e.Xi()).Tj(),26).wj(),f):a.ah(e.b,ti(a.Og(),Ho(h(Dt(fc(e.b),e.Xi()),17))),null,f):a.ah(e.b,-1-e.Xi(),null,f))),f&&f.Ai()),bu(e.b)&&e.Vi(e.Ui(9,s,v,t,!1)),v):s}function e0t(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;for(A=Ae(Ke(G(e,(Qe(),Xm)))),a=Ae(Ke(G(e,_Ee))),R=new AG,_e(R,Xm,A+a),C=t,oe=C.d,W=C.c.i,de=C.d.i,J=O1e(W.c),he=O1e(de.c),l=new Fe,M=J;M<=he;M++)w=new y1(e),ug(w,(tn(),Yi)),_e(w,(Be(),Mr),C),_e(w,yi,(lo(),ja)),_e(w,zz,R),z=h(st(e.b,M),29),M==J?dy(w,z.a.c.length-s,z):ps(w,z),ve=Ae(Ke(G(C,I1))),ve<0&&(ve=0,_e(C,I1,ve)),w.o.b=ve,q=m.Math.floor(ve/2),v=new wa,Fi(v,(He(),Xt)),js(v,w),v.n.b=q,S=new wa,Fi(S,nn),js(S,w),S.n.b=q,uo(C,v),f=new om,Cs(f,C),_e(f,ys,null),Po(f,S),uo(f,oe),Iun(w,C,f),l.c[l.c.length]=f,C=f;return l}function vJ(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;for(S=h(fp(e,(He(),Xt)).Ic().Pb(),11).e,z=h(fp(e,nn).Ic().Pb(),11).g,w=S.c.length,he=ld(h(st(e.j,0),11));w-- >0;){for(W=(qt(0,S.c.length),h(S.c[0],18)),l=(qt(0,z.c.length),h(z.c[0],18)),de=l.d.e,f=Ps(de,l,0),Aen(W,l.d,f),Po(l,null),uo(l,null),q=W.a,t&&lr(q,new xs(he)),a=sr(l.a,0);a.b!=a.d.c;)s=h(or(a),8),lr(q,new xs(s));for(oe=W.b,R=new Q(l.b);R.a0&&(v=m.Math.max(v,Oat(e.B.b+a.d.b,l))),A=a,M=l,R=f;!!e.B&&e.B.c>0&&(z=R+e.B.c,C&&(z+=A.d.c),v=m.Math.max(v,(id(),hf(vd),m.Math.abs(M-1)<=vd||M==1||isNaN(M)&&isNaN(1)?0:z/(1-M)))),s.n.b=0,s.a.a=v}function r0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z;if(s=h(is(e.b,t),121),S=h(h(Br(e.r,t),21),81),S.dc()){s.n.d=0,s.n.a=0;return}for(C=e.t.Fc((ou(),_1)),v=0,e.w.Fc((xu(),hb))&&E1t(e,t),w=S.Ic(),A=null,R=0,M=0;w.Ob();)a=h(w.Pb(),110),f=Ae(Ke(a.b.Xe((Jj(),RB)))),l=a.b.pf().b,A?(z=M+A.d.a+e.v+a.d.d,v=m.Math.max(v,(id(),hf(vd),m.Math.abs(R-f)<=vd||R==f||isNaN(R)&&isNaN(f)?0:z/(f-R)))):!!e.B&&e.B.d>0&&(v=m.Math.max(v,Oat(e.B.d+a.d.d,f))),A=a,R=f,M=l;!!e.B&&e.B.a>0&&(z=M+e.B.a,C&&(z+=A.d.a),v=m.Math.max(v,(id(),hf(vd),m.Math.abs(R-1)<=vd||R==1||isNaN(R)&&isNaN(1)?0:z/(1-R)))),s.n.d=0,s.a.b=v}function i0t(e,t,s){var a,l,f,v,w,S;for(this.g=e,w=t.d.length,S=s.d.length,this.d=ge(vp,Kg,10,w+S,0,1),v=0;v0?WY(this,this.f/this.a):od(t.g,t.d[0]).a!=null&&od(s.g,s.d[0]).a!=null?WY(this,(Ae(od(t.g,t.d[0]).a)+Ae(od(s.g,s.d[0]).a))/2):od(t.g,t.d[0]).a!=null?WY(this,od(t.g,t.d[0]).a):od(s.g,s.d[0]).a!=null&&WY(this,od(s.g,s.d[0]).a)}function cvn(e,t){var s,a,l,f,v,w,S,C,A,M;for(e.a=new ktt(Xrn(d9)),a=new Q(t.a);a.a0&&(Fn(0,s.length),s.charCodeAt(0)!=47)))throw ee(new Gt("invalid opaquePart: "+s));if(e&&!(t!=null&&DT(BV,t.toLowerCase()))&&!(s==null||!jQ(s,E9,k9)))throw ee(new Gt(mvt+s));if(e&&t!=null&&DT(BV,t.toLowerCase())&&!pln(s))throw ee(new Gt(mvt+s));if(!ksn(a))throw ee(new Gt("invalid device: "+a));if(!mon(l))throw v=l==null?"invalid segments: null":"invalid segment: "+uon(l),ee(new Gt(v));if(!(f==null||Vd(f,bc(35))==-1))throw ee(new Gt("invalid query: "+f))}function o0t(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe;if(R=new xs(e.o),oe=t.a/R.a,w=t.b/R.b,W=t.a-R.a,f=t.b-R.b,s)for(l=Pe(G(e,(Qe(),yi)))===Pe((lo(),ja)),q=new Q(e.j);q.a=1&&(J-v>0&&M>=0?(S.n.a+=W,S.n.b+=f*v):J-v<0&&A>=0&&(S.n.a+=W*J,S.n.b+=f));e.o.a=t.a,e.o.b=t.b,_e(e,(Qe(),ob),(xu(),a=h(_f(y9),9),new al(a,h(lf(a,a.length),9),0)))}function hvn(e,t,s){var a,l,f,v,w,S,C,A;if(e.a==(Mg(),tie)||!Lo(t,(Be(),Sd))||!Lo(s,(Be(),Sd))){if(l=h(tpe(git(fQ(Kr(new Rt(null,new Lt(t.j,16)),new X$e)),new K$e)),11),v=h(tpe(git(fQ(Kr(new Rt(null,new Lt(s.j,16)),new Y$e)),new Q$e)),11),!!l&&!!v){if(a=l.i,f=v.i,!!a&&a==f){for(S=new Q(a.j);S.a0){kL(e,s,0),s.a+=String.fromCharCode(a),l=uan(t,f),kL(e,s,l),f+=l-1;continue}a==39?f+11)for(W=ge(An,nr,24,e.b.b.c.length,15,1),M=0,C=new Q(e.b.b);C.a=w&&l<=S)w<=l&&f<=S?(s[A++]=l,s[A++]=f,a+=2):w<=l?(s[A++]=l,s[A++]=S,e.b[a]=S+1,v+=2):f<=S?(s[A++]=w,s[A++]=f,a+=2):(s[A++]=w,s[A++]=S,e.b[a]=S+1);else if(Sx0)&&w<10);Ohe(e.c,new hT),a0t(e),kQt(e.c),lvn(e.f)}function mvn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J;if(!!_t(It(G(s,(Qe(),ex)))))for(w=new Q(s.j);w.a=2){for(S=sr(s,0),v=h(or(S),8),w=h(or(S),8);w.a0&&nP(C,!0,(as(),qf)),w.k==(tn(),Pi)&&Btt(C),Fr(e.f,w,t)}}function xvn(e,t,s){var a,l,f,v,w,S,C,A;if(t.e.c.length!=0&&s.e.c.length!=0){if(a=h(st(t.e,0),18).c.i,v=h(st(s.e,0),18).c.i,a==v)return Ya(h(G(h(st(t.e,0),18),(Be(),Sd)),20).a,h(G(h(st(s.e,0),18),Sd),20).a);for(A=new Q(e.a.a);A.aw?1:0):t.e.c.length!=0&&s.g.c.length!=0?1:-1}function Svn(e,t,s){var a,l,f,v,w,S,C,A,M,R;switch(_n(s,"Node promotion heuristic",1),e.g=t,Pyn(e),e.q=h(G(t,(Qe(),zre)),259),A=h(G(e.g,mEe),20).a,f=new Qje,e.q.g){case 2:case 1:b6(e,f);break;case 3:for(e.q=(E2(),Gz),b6(e,f),S=0,w=new Q(e.a);w.ae.j&&(e.q=YO,b6(e,f));break;case 4:for(e.q=(E2(),Gz),b6(e,f),C=0,l=new Q(e.b);l.ae.k&&(e.q=QO,b6(e,f));break;case 6:R=Ci(m.Math.ceil(e.f.length*A/100)),b6(e,new iqe(R));break;case 5:M=Ci(m.Math.ceil(e.d*A/100)),b6(e,new oqe(M));break;default:b6(e,f)}S0n(e,t),yn(s)}function Evn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;for(M=h(Xj((v=sr(new qp(t).a.d,0),new p3(v))),83),q=M?h(G(M,(ua(),bie)),83):null,l=1;!!M&&!!q;){for(S=0,ve=0,s=M,a=q,w=0;w=e.i?(++e.i,Re(e.a,Ue(1)),Re(e.b,A)):(a=e.c[t.p][1],Nl(e.a,C,Ue(h(st(e.a,C),20).a+1-a)),Nl(e.b,C,Ae(Ke(st(e.b,C)))+A-a*e.e)),(e.q==(E2(),YO)&&(h(st(e.a,C),20).a>e.j||h(st(e.a,C-1),20).a>e.j)||e.q==QO&&(Ae(Ke(st(e.b,C)))>e.k||Ae(Ke(st(e.b,C-1)))>e.k))&&(S=!1),v=new bn(mn(Os(t).a.Ic(),new j));Yn(v);)f=h(Rn(v),18),w=f.c.i,e.f[w.p]==C&&(M=u0t(e,w),l=l+h(M.a,20).a,S=S&&_t(It(M.b)));return e.f[t.p]=C,l=l+e.c[t.p][0],new fo(Ue(l),(Zt(),!!S))}function Vwe(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J,oe;for(M=new Vn,v=new Fe,jdt(e,s,e.d.ag(),v,M),jdt(e,a,e.d.bg(),v,M),e.b=.2*(W=xht(Rs(new Rt(null,new Lt(v,16)),new oFe)),J=xht(Rs(new Rt(null,new Lt(v,16)),new sFe)),m.Math.min(W,J)),f=0,w=0;w=2&&(oe=zht(v,!0,R),!e.e&&(e.e=new aWe(e)),fan(e.e,oe,v,e.b)),Eft(v,R),Bvn(v),z=-1,A=new Q(v);A.aw)}function Cvn(e,t){var s,a,l,f,v,w,S,C,A,M;for(A=new Fe,M=new g3,f=null,l=0,a=0;a0),h(A.a.Xb(A.c=--A.b),18));f!=a&&A.b>0;)e.a[f.p]=!0,e.a[a.p]=!0,f=(hn(A.b>0),h(A.a.Xb(A.c=--A.b),18));A.b>0&&wu(A)}}function Ovn(e){var t,s,a,l,f,v,w,S,C,A;for(C=new ci,w=new ci,f=new Q(e);f.a-1){for(l=sr(w,0);l.b!=l.d.c;)a=h(or(l),128),a.v=v;for(;w.b!=0;)for(a=h(hZ(w,0),128),s=new Q(a.i);s.a0&&(s+=S.n.a+S.o.a/2,++M),q=new Q(S.j);q.a0&&(s/=M),oe=ge(oo,us,24,a.a.c.length,15,1),w=0,C=new Q(a.a);C.a=w&&l<=S)w<=l&&f<=S?a+=2:w<=l?(e.b[a]=S+1,v+=2):f<=S?(s[A++]=l,s[A++]=w-1,a+=2):(s[A++]=l,s[A++]=w-1,e.b[a]=S+1,v+=2);else if(S0?l-=864e5:l+=864e5,S=new Cpe(Oo(gc(t.q.getTime()),l))),A=new Dv,C=e.a.length,f=0;f=97&&a<=122||a>=65&&a<=90){for(v=f+1;v=C)throw ee(new Gt("Missing trailing '"));v+10&&s.c==0&&(!t&&(t=new Fe),t.c[t.c.length]=s);if(t)for(;t.c.length!=0;){if(s=h(tp(t,0),232),!!s.b&&s.b.c.length>0){for(f=(!s.b&&(s.b=new Fe),new Q(s.b));f.aPs(e,s,0))return new fo(l,s)}else if(Ae(od(l.g,l.d[0]).a)>Ae(od(s.g,s.d[0]).a))return new fo(l,s)}for(w=(!s.e&&(s.e=new Fe),s.e).Ic();w.Ob();)v=h(w.Pb(),232),S=(!v.b&&(v.b=new Fe),v.b),Yv(0,S.c.length),TC(S.c,0,s),v.c==S.c.length&&(t.c[t.c.length]=v)}return null}function b0t(e,t){var s,a,l,f,v,w,S,C,A;if(e==null)return mc;if(S=t.a.xc(e,t),S!=null)return"[...]";for(s=new Og(Fo,"[","]"),l=e,f=0,v=l.length;f=14&&A<=16))?t.a._b(a)?(s.a?Xn(s.a,s.b):s.a=new ju(s.d),NC(s.a,"[...]")):(w=Tg(a),C=new bA(t),h1(s,b0t(w,C))):ue(a,177)?h1(s,zdn(h(a,177))):ue(a,190)?h1(s,Mln(h(a,190))):ue(a,194)?h1(s,Vfn(h(a,194))):ue(a,1981)?h1(s,Dln(h(a,1981))):ue(a,47)?h1(s,Bdn(h(a,47))):ue(a,361)?h1(s,ehn(h(a,361))):ue(a,811)?h1(s,Fdn(h(a,811))):ue(a,103)&&h1(s,Ldn(h(a,103))):h1(s,a==null?mc:Fs(a));return s.a?s.e.length==0?s.a.a:s.a.a+(""+s.e):s.c}function m0t(e,t,s,a){var l,f,v;return f=new qwe(t),gpn(f,a),Htt(f,!1,!e||gg(h(e.Xe((Pr(),l9)),108))),sY(f,f.f,(jf(),Qs),(He(),Wt)),sY(f,f.f,Zs,xn),sY(f,f.g,Qs,Xt),sY(f,f.g,Zs,nn),yut(f,Wt),yut(f,xn),Utt(f,nn),Utt(f,Xt),zv(),l=f.w.Fc((xu(),ew))&&f.A.Fc((su(),C_))?Out(f):null,l&&nqt(f.a,l),uyn(f),$cn(f),Lcn(f),Dvn(f),v0n(f),uun(f),HQ(f,Wt),HQ(f,xn),K0n(f),_bn(f),s&&(ysn(f),lun(f),HQ(f,nn),HQ(f,Xt),v=f.A.Fc((su(),w9)),Tdt(f,v,Wt),Tdt(f,v,xn),Adt(f,v,nn),Adt(f,v,Xt),mi(new Rt(null,new Lt(new o1(f.i),0)),new Rw),mi(Kr(new Rt(null,U0e(f.r).a.mc()),new DW),new jW),Aln(f),f.e.sf(f.o),mi(new Rt(null,U0e(f.r).a.mc()),new RW)),f.o}function v0t(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;for(w=k2(t,!1,!1),oe=AP(w),a&&(oe=iP(oe)),he=Ae(Ke(Ot(t,(O8(),Pne)))),J=(hn(oe.b!=0),h(oe.a.a.c,8)),M=h(Ff(oe,1),8),oe.b>2?(A=new Fe,Di(A,new Ph(oe,1,oe.b)),f=X0t(A,he+e.a),de=new LZ(f),Cs(de,t),s.c[s.c.length]=de):a?de=h(Hn(e.b,Nh(t)),265):de=h(Hn(e.b,g0(t)),265),S=Nh(t),a&&(S=g0(t)),v=adn(J,S),C=he+e.a,v.a?(C+=m.Math.abs(J.b-M.b),W=new ot(M.a,(M.b+J.b)/2)):(C+=m.Math.abs(J.a-M.a),W=new ot((M.a+J.a)/2,M.b)),a?Fr(e.d,t,new pve(de,v,W,C)):Fr(e.c,t,new pve(de,v,W,C)),Fr(e.b,t,de),q=(!t.n&&(t.n=new $e(Ms,t,1,7)),t.n),z=new pn(q);z.e!=z.i.gc();)R=h(vn(z),137),l=LP(e,R,!0,0,0),s.c[s.c.length]=l}function Bvn(e){var t,s,a,l,f,v,w,S,C,A;for(C=new Fe,w=new Fe,v=new Q(e);v.a-1){for(f=new Q(w);f.a0)&&(Ide(S,m.Math.min(S.o,l.o-1)),UN(S,S.i-1),S.i==0&&(w.c[w.c.length]=S))}}function v6(e,t,s){var a,l,f,v,w,S,C;if(C=e.c,!t&&(t=lIe),e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&(S=new Gi(e,1,2,C,e.c),s?s.zi(S):s=S),C!=t){if(ue(e.Cb,283))e.Db>>16==-10?s=h(e.Cb,283).ik(t,s):e.Db>>16==-15&&(!t&&(t=(At(),Pd)),!C&&(C=(At(),Pd)),e.Cb.ih()&&(S=new p1(e.Cb,1,13,C,t,up(nu(h(e.Cb,58)),e),!1),s?s.zi(S):s=S));else if(ue(e.Cb,87))e.Db>>16==-23&&(ue(t,87)||(t=(At(),Zl)),ue(C,87)||(C=(At(),Zl)),e.Cb.ih()&&(S=new p1(e.Cb,1,10,C,t,up(ya(h(e.Cb,26)),e),!1),s?s.zi(S):s=S));else if(ue(e.Cb,438))for(w=h(e.Cb,814),v=(!w.b&&(w.b=new KN(new GG)),w.b),f=(a=new Ng(new lg(v.a).a),new YN(a));f.a.b;)l=h(dm(f.a).ad(),86),s=v6(l,qL(l,w),s)}return s}function zvn(e,t){var s,a,l,f,v,w,S,C,A,M,R;for(v=_t(It(Ot(e,(Qe(),ex)))),R=h(Ot(e,Wy),21),S=!1,C=!1,M=new pn((!e.c&&(e.c=new $e(fu,e,9,9)),e.c));M.e!=M.i.gc()&&(!S||!C);){for(f=h(vn(M),122),w=0,l=yg(Xd(re(te(sh,1),rt,19,0,[(!f.d&&(f.d=new Ht(qi,f,8,5)),f.d),(!f.e&&(f.e=new Ht(qi,f,7,4)),f.e)])));Yn(l)&&(a=h(Rn(l),80),A=v&&Em(a)&&_t(It(Ot(a,Hy))),s=Qpt((!a.b&&(a.b=new Ht(Bn,a,4,7)),a.b),f)?e==Xi(Pa(h(fe((!a.c&&(a.c=new Ht(Bn,a,5,8)),a.c),0),93))):e==Xi(Pa(h(fe((!a.b&&(a.b=new Ht(Bn,a,4,7)),a.b),0),93))),!((A||s)&&(++w,w>1))););(w>0||R.Fc((ou(),_1))&&(!f.n&&(f.n=new $e(Ms,f,1,7)),f.n).i>0)&&(S=!0),w>1&&(C=!0)}S&&t.Dc((Zo(),yl)),C&&t.Dc((Zo(),$I))}function Vvn(e){var t,s,a,l;if(s=e.D!=null?e.D:e.B,t=Vd(s,bc(91)),t!=-1){a=s.substr(0,t),l=new X1;do l.a+="[";while((t=a5(s,91,++t))!=-1);kt(a,o4)?l.a+="Z":kt(a,yI)?l.a+="B":kt(a,cB)?l.a+="C":kt(a,wI)?l.a+="D":kt(a,xI)?l.a+="F":kt(a,SI)?l.a+="I":kt(a,EI)?l.a+="J":kt(a,kI)?l.a+="S":(l.a+="L",l.a+=""+a,l.a+=";");try{return null}catch(f){if(f=ni(f),!ue(f,59))throw ee(f)}}else if(Vd(s,bc(46))==-1){if(kt(s,o4))return du;if(kt(s,yI))return Lc;if(kt(s,cB))return wl;if(kt(s,wI))return oo;if(kt(s,xI))return aw;if(kt(s,SI))return An;if(kt(s,EI))return W0;if(kt(s,kI))return bx}return null}function y0t(e){var t,s,a,l,f,v,w,S,C,A,M,R;if(R=h(Ot(e,(Pr(),hE)),21),R.dc())return null;if(w=0,v=0,R.Fc((xu(),E_))){for(A=h(Ot(e,g_),100),a=2,s=2,l=2,f=2,t=Xi(e)?h(Ot(Xi(e),l9),108):h(Ot(e,l9),108),C=new pn((!e.c&&(e.c=new $e(fu,e,9,9)),e.c));C.e!=C.i.gc();)if(S=h(vn(C),122),M=h(Ot(S,f9),61),M==(He(),Us)&&(M=Twe(S,t),Is(S,f9,M)),A==(lo(),ja))switch(M.g){case 1:a=m.Math.max(a,S.i+S.g);break;case 2:s=m.Math.max(s,S.j+S.f);break;case 3:l=m.Math.max(l,S.i+S.g);break;case 4:f=m.Math.max(f,S.j+S.f)}else switch(M.g){case 1:a+=S.g+2;break;case 2:s+=S.f+2;break;case 3:l+=S.g+2;break;case 4:f+=S.f+2}w=m.Math.max(a,l),v=m.Math.max(s,f)}return Tm(e,w,v,!0,!0)}function yJ(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;for(de=h(Fu(A$(Kr(new Rt(null,new Lt(t.d,16)),new Aqe(s)),new Pqe(s)),Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[(gd(),Wu)]))),14),M=Ir,A=Co,S=new Q(t.b.j);S.a0,C?C&&(R=oe.p,v?++R:--R,M=h(st(oe.c.a,R),10),a=dct(M),z=!(UZ(a,Le,s[0])||ttt(a,Le,s[0]))):z=!0),q=!1,Ie=t.D.i,!!Ie&&!!Ie.c&&w.e&&(A=v&&Ie.p>0||!v&&Ie.p0&&(t.a+=Fo),uF(h(vn(w),160),t);for(t.a+=Iee,S=new A3((!a.c&&(a.c=new Ht(Bn,a,5,8)),a.c));S.e!=S.i.gc();)S.e>0&&(t.a+=Fo),uF(h(vn(S),160),t);t.a+=")"}}function w0t(e,t,s){var a,l,f,v,w,S,C,A;for(C=new y1(s),Cs(C,t),_e(C,(Be(),Mr),t),C.o.a=t.g,C.o.b=t.f,C.n.a=t.i,C.n.b=t.j,Re(s.a,C),Fr(e.a,t,C),((!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i!=0||_t(It(Ot(t,(Qe(),ex)))))&&_e(C,g6e,(Zt(),!0)),S=h(G(s,Na),21),A=h(G(C,(Qe(),yi)),100),A==(lo(),L0)?_e(C,yi,Cd):A!=Cd&&S.Dc((Zo(),eE)),a=h(G(s,Gu),108),w=new pn((!t.c&&(t.c=new $e(fu,t,9,9)),t.c));w.e!=w.i.gc();)v=h(vn(w),122),_t(It(Ot(v,sb)))||xyn(e,v,C,S,a,A);for(f=new pn((!t.n&&(t.n=new $e(Ms,t,1,7)),t.n));f.e!=f.i.gc();)l=h(vn(f),137),!_t(It(Ot(l,sb)))&&!!l.a&&Re(C.b,kQ(l));return _t(It(G(C,VI)))&&S.Dc((Zo(),yz)),_t(It(G(C,Nz)))&&(S.Dc((Zo(),wz)),S.Dc($I),_e(C,yi,Cd)),C}function Gvn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z;if(f=h(G(e,(Be(),Mr)),80),!!f){for(a=e.a,l=new xs(s),Rr(l,Yun(e)),B5(e.d.i,e.c.i)?(R=e.c,M=$s(re(te(Hi,1),Oe,8,0,[R.n,R.a])),no(M,s)):M=ld(e.c),wi(a,M,a.a,a.a.a),z=ld(e.d),G(e,_re)!=null&&Rr(z,h(G(e,_re),8)),wi(a,z,a.c.b,a.c),ry(a,l),v=k2(f,!0,!0),R$(v,h(fe((!f.b&&(f.b=new Ht(Bn,f,4,7)),f.b),0),93)),$$(v,h(fe((!f.c&&(f.c=new Ht(Bn,f,5,8)),f.c),0),93)),VP(a,v),A=new Q(e.b);A.a=0){for(S=null,w=new xo(A.a,C+1);w.bv?1:Xb(isNaN(0),isNaN(v)))<0&&(hf(rh),(m.Math.abs(v-1)<=rh||v==1||isNaN(v)&&isNaN(1)?0:v<1?-1:v>1?1:Xb(isNaN(v),isNaN(1)))<0)&&(hf(rh),(m.Math.abs(0-w)<=rh||w==0||isNaN(0)&&isNaN(w)?0:0w?1:Xb(isNaN(0),isNaN(w)))<0)&&(hf(rh),(m.Math.abs(w-1)<=rh||w==1||isNaN(w)&&isNaN(1)?0:w<1?-1:w>1?1:Xb(isNaN(w),isNaN(1)))<0)),f)}function Kvn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le;for(M=new Y0e(new Rde(e));M.b!=M.c.a.d;)for(A=Mot(M),w=h(A.d,55),t=h(A.e,55),v=w.Og(),W=0,ve=(v.i==null&&Kd(v),v.i).length;W=0&&W=C.c.c.length?A=_ge((tn(),Ri),Yi):A=_ge((tn(),Yi),Yi),A*=2,f=s.a.g,s.a.g=m.Math.max(f,f+(A-f)),v=s.b.g,s.b.g=m.Math.max(v,v+(A-v)),l=t}}function Qvn(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie;for(Ie=eet(e),A=new Fe,w=e.c.length,M=w-1,R=w+1;Ie.a.c!=0;){for(;s.b!=0;)he=(hn(s.b!=0),h(fl(s,s.a.a),111)),i8(Ie.a,he)!=null,he.g=M--,Awe(he,t,s,a);for(;t.b!=0;)ve=(hn(t.b!=0),h(fl(t,t.a.a),111)),i8(Ie.a,ve)!=null,ve.g=R++,Awe(ve,t,s,a);for(C=Co,oe=(v=new UC(new FC(new ET(Ie.a).a).b),new ST(v));LT(oe.a.a);){if(J=(f=nR(oe.a),h(f.ad(),111)),!a&&J.b>0&&J.a<=0){A.c=ge(dn,rt,1,0,5,1),A.c[A.c.length]=J;break}W=J.i-J.d,W>=C&&(W>C&&(A.c=ge(dn,rt,1,0,5,1),C=W),A.c[A.c.length]=J)}A.c.length!=0&&(S=h(st(A,ZQ(l,A.c.length)),111),i8(Ie.a,S)!=null,S.g=R++,Awe(S,t,s,a),A.c=ge(dn,rt,1,0,5,1))}for(de=e.c.length+1,q=new Q(e);q.a0&&(R.d+=A.n.d,R.d+=A.d),R.a>0&&(R.a+=A.n.a,R.a+=A.d),R.b>0&&(R.b+=A.n.b,R.b+=A.d),R.c>0&&(R.c+=A.n.c,R.c+=A.d),R}function tyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;for(M=e.b,A=new xo(M,0),Bv(A,new Ml(e)),de=!1,v=1;A.b0&&(e.a[t.c.p][t.p].d+=Su(e.f,24)*rO*.07000000029802322-.03500000014901161,e.a[t.c.p][t.p].a=e.a[t.c.p][t.p].d/e.a[t.c.p][t.p].b)}}function syn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J;for(q=new Q(e);q.aa.d,a.d=m.Math.max(a.d,t),w&&s&&(a.d=m.Math.max(a.d,a.a),a.a=a.d+l);break;case 3:s=t>a.a,a.a=m.Math.max(a.a,t),w&&s&&(a.a=m.Math.max(a.a,a.d),a.d=a.a+l);break;case 2:s=t>a.c,a.c=m.Math.max(a.c,t),w&&s&&(a.c=m.Math.max(a.b,a.c),a.b=a.c+l);break;case 4:s=t>a.b,a.b=m.Math.max(a.b,t),w&&s&&(a.b=m.Math.max(a.b,a.c),a.c=a.b+l)}}}function lyn(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J;for(S=new ot(a.i+a.g/2,a.j+a.f/2),z=qpt(a),q=h(Ot(t,(Qe(),yi)),100),J=h(Ot(a,sE),61),rQe(plt(a),qy)||(a.i==0&&a.j==0?W=0:W=afn(a,J),Is(a,qy,W)),C=new ot(t.g,t.f),l=WP(a,q,J,z,C,S,new ot(a.g,a.f),h(G(s,Gu),108),s),_e(l,(Be(),Mr),a),f=h(st(l.j,0),11),MUt(f,qgn(a)),_e(l,Wy,(ou(),Tt(F0))),M=h(Ot(t,Wy),174).Fc(_1),w=new pn((!a.n&&(a.n=new $e(Ms,a,1,7)),a.n));w.e!=w.i.gc();)if(v=h(vn(w),137),!_t(It(Ot(v,sb)))&&!!v.a&&(R=kQ(v),Re(f.f,R),!M))switch(A=0,QC(h(Ot(t,Wy),21))&&(A=Cye(new ot(v.i,v.j),new ot(v.g,v.f),new ot(a.g,a.f),0,J)),J.g){case 2:case 4:R.o.a=A;break;case 1:case 3:R.o.b=A}_e(l,cE,Ke(Ot(Xi(t),cE))),_e(l,Xy,Ke(Ot(Xi(t),Xy))),Re(s.a,l),Fr(e.a,a,l)}function fyn(e){var t,s,a,l,f,v,w,S,C,A,M;for(C=new Q(e);C.a0||A.j==Xt&&A.e.c.length-A.g.c.length<0)){t=!1;break}for(l=new Q(A.g);l.a=C&&Ie>=J&&(R+=q.n.b+W.n.b+W.a.b-ve,++w));if(s)for(v=new Q(de.e);v.a=C&&Ie>=J&&(R+=q.n.b+W.n.b+W.a.b-ve,++w))}w>0&&(Le+=R/w,++z)}z>0?(t.a=l*Le/z,t.g=z):(t.a=0,t.g=0)}function hyn(e,t){var s,a,l,f,v,w,S,C,A,M,R;for(l=new Q(e.a.b);l.aOi||t.o==ub&&A0&&Oc(oe,ve*Le),Ie>0&&_c(oe,Ie*Ye);for(w8(e.b,new tG),t=new Fe,w=new Ng(new lg(e.c).a);w.b;)v=dm(w),a=h(v.ad(),80),s=h(v.bd(),391).a,l=k2(a,!1,!1),M=kft(Nh(a),AP(l),s),VP(M,l),he=Dft(a),!!he&&Ps(t,he,0)==-1&&(t.c[t.c.length]=he,ant(he,(hn(M.b!=0),h(M.a.a.c,8)),s));for(J=new Ng(new lg(e.d).a);J.b;)W=dm(J),a=h(W.ad(),80),s=h(W.bd(),391).a,l=k2(a,!1,!1),M=kft(g0(a),iP(AP(l)),s),M=iP(M),VP(M,l),he=Nft(a),!!he&&Ps(t,he,0)==-1&&(t.c[t.c.length]=he,ant(he,(hn(M.b!=0),h(M.c.b.c,8)),s))}function myn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe;if(W=e.n,J=e.o,R=e.d,M=Ae(Ke(uy(e,(Qe(),Ure)))),t){for(A=M*(t.gc()-1),z=0,S=t.Ic();S.Ob();)v=h(S.Pb(),10),A+=v.o.a,z=m.Math.max(z,v.o.b);for(oe=W.a-(A-J.a)/2,f=W.b-R.d+z,a=J.a/(t.gc()+1),l=a,w=t.Ic();w.Ob();)v=h(w.Pb(),10),v.n.a=oe,v.n.b=f-v.o.b,oe+=v.o.a+M,C=Rht(v),C.n.a=v.o.a/2-C.a.a,C.n.b=v.o.b,q=h(G(v,(Be(),Sz)),11),q.e.c.length+q.g.c.length==1&&(q.n.a=l-q.a.a,q.n.b=0,js(q,e)),l+=a}if(s){for(A=M*(s.gc()-1),z=0,S=s.Ic();S.Ob();)v=h(S.Pb(),10),A+=v.o.a,z=m.Math.max(z,v.o.b);for(oe=W.a-(A-J.a)/2,f=W.b+J.b+R.a-z,a=J.a/(s.gc()+1),l=a,w=s.Ic();w.Ob();)v=h(w.Pb(),10),v.n.a=oe,v.n.b=f,oe+=v.o.a+M,C=Rht(v),C.n.a=v.o.a/2-C.a.a,C.n.b=0,q=h(G(v,(Be(),Sz)),11),q.e.c.length+q.g.c.length==1&&(q.n.a=l-q.a.a,q.n.b=J.b,js(q,e)),l+=a}}function vyn(e,t){var s,a,l,f,v,w;if(!!h(G(t,(Be(),Na)),21).Fc((Zo(),yl))){for(w=new Q(t.a);w.a0&&(t=(Fn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=e.substr(1),--f,S=t==45)),f==0)throw ee(new Bd(Om+C+'"'));for(;e.length>0&&(Fn(0,e.length),e.charCodeAt(0)==48);)e=e.substr(1),--f;if(f>(dpt(),Oyt)[10])throw ee(new Bd(Om+C+'"'));for(l=0;l0&&(M=-parseInt(e.substr(0,a),10),e=e.substr(a),f-=a,s=!1);f>=v;){if(a=parseInt(e.substr(0,v),10),e=e.substr(v),f-=v,s)s=!1;else{if(ga(M,w)<0)throw ee(new Bd(Om+C+'"'));M=ko(M,A)}M=p0(M,a)}if(ga(M,0)>0)throw ee(new Bd(Om+C+'"'));if(!S&&(M=I5(M),ga(M,0)<0))throw ee(new Bd(Om+C+'"'));return M}function yyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;for(_n(t,"Inverted port preprocessing",1),A=e.b,C=new xo(A,0),s=null,he=new Fe;C.b1)for(z=new Rwe(q,he,a),Eo(he,new LYe(e,z)),v.c[v.c.length]=z,M=he.a.ec().Ic();M.Ob();)A=h(M.Pb(),46),dc(f,A.b);if(w.a.gc()>1)for(z=new Rwe(q,w,a),Eo(w,new FYe(e,z)),v.c[v.c.length]=z,M=w.a.ec().Ic();M.Ob();)A=h(M.Pb(),46),dc(f,A.b)}}function C0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z;for(s=0,a=Tcn(e,t),R=e.s,C=h(h(Br(e.r,t),21),81).Ic();C.Ob();)if(S=h(C.Pb(),110),!(!S.c||S.c.d.c.length<=0)){switch(z=S.b.pf(),w=S.b.Ye((Pr(),lu))?Ae(Ke(S.b.Xe(lu))):0,A=S.c,M=A.i,M.b=(v=A.n,A.e.a+v.b+v.c),M.a=(f=A.n,A.e.b+f.d+f.a),t.g){case 1:M.c=S.a?(z.a-M.b)/2:z.a+R,M.d=z.b+w+a,Df(A,(Xc(),T0)),Hd(A,(hc(),Uf));break;case 3:M.c=S.a?(z.a-M.b)/2:z.a+R,M.d=-w-a-M.a,Df(A,(Xc(),T0)),Hd(A,(hc(),yf));break;case 2:M.c=-w-a-M.b,S.a?(l=e.u?M.a:h(st(A.d,0),183).pf().b,M.d=(z.b-l)/2):M.d=z.b+R,Df(A,(Xc(),vf)),Hd(A,(hc(),A0));break;case 4:M.c=z.a+w+a,S.a?(l=e.u?M.a:h(st(A.d,0),183).pf().b,M.d=(z.b-l)/2):M.d=z.b+R,Df(A,(Xc(),ch)),Hd(A,(hc(),A0))}(t==(He(),Wt)||t==xn)&&(s=m.Math.max(s,M.a))}s>0&&(h(is(e.b,t),121).a.b=s)}function Syn(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on;for(he=0,q=0,z=0,R=1,de=new pn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));de.e!=de.i.gc();)J=h(vn(de),34),R+=d1(new bn(mn(hp(J).a.Ic(),new j))),ft=J.g,q=m.Math.max(q,ft),M=J.f,z=m.Math.max(z,M),he+=ft*M;for(W=(!e.a&&(e.a=new $e(bi,e,10,11)),e.a).i,v=he+2*a*a*R*W,f=m.Math.sqrt(v),S=m.Math.max(f*s,q),w=m.Math.max(f/s,z),oe=new pn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));oe.e!=oe.i.gc();)J=h(vn(oe),34),at=l.b+(Su(t,26)*Z8+Su(t,27)*J8)*(S-J.g),on=l.b+(Su(t,26)*Z8+Su(t,27)*J8)*(w-J.f),Oc(J,at),_c(J,on);for(Ye=S+(l.b+l.c),Le=w+(l.d+l.a),Ie=new pn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));Ie.e!=Ie.i.gc();)for(ve=h(vn(Ie),34),A=new bn(mn(hp(ve).a.Ic(),new j));Yn(A);)C=h(Rn(A),80),F8(C)||wwn(C,t,Ye,Le);Ye+=l.b+l.c,Le+=l.d+l.a,Tm(e,Ye,Le,!1,!0)}function Wwe(e,t){aet();var s,a,l,f,v,w,S;if(this.a=new W1e(this),this.b=e,this.c=t,this.f=jK(gs((Dc(),vo),t)),this.f.dc())if((w=Mve(vo,e))==t)for(this.e=!0,this.d=new Fe,this.f=new DBe,this.f.Dc(Jg),h(aF(FA(vo,Bu(e)),""),26)==e&&this.f.Dc(YC(vo,Bu(e))),l=JZ(vo,e).Ic();l.Ob();)switch(a=h(l.Pb(),170),im(gs(vo,a))){case 4:{this.d.Dc(a);break}case 5:{this.f.Ec(jK(gs(vo,a)));break}}else if(Uo(),h(t,65).Jj())for(this.e=!0,this.f=null,this.d=new Fe,v=0,S=(e.i==null&&Kd(e),e.i).length;v=0&&v0&&(S=(Fn(0,t.length),t.charCodeAt(0)),S!=64)){if(S==37&&(M=t.lastIndexOf("%"),C=!1,M!=0&&(M==R-1||(C=(Fn(M+1,t.length),t.charCodeAt(M+1)==46))))){if(v=t.substr(1,M-1),he=kt("%",v)?null:Xwe(v),a=0,C)try{a=Uu(t.substr(M+2),Co,Ir)}catch(ve){throw ve=ni(ve),ue(ve,127)?(w=ve,ee(new w$(w))):ee(ve)}for(J=Mbe(e.Rg());J.Ob();)if(q=X$(J),ue(q,502)&&(l=h(q,581),de=l.d,(he==null?de==null:kt(he,de))&&a--==0))return l;return null}if(A=t.lastIndexOf("."),z=A==-1?t:t.substr(0,A),s=0,A!=-1)try{s=Uu(t.substr(A+1),Co,Ir)}catch(ve){if(ve=ni(ve),ue(ve,127))z=t;else throw ee(ve)}for(z=kt("%",z)?null:Xwe(z),W=Mbe(e.Rg());W.Ob();)if(q=X$(W),ue(q,191)&&(f=h(q,191),oe=f.ne(),(z==null?oe==null:kt(z,oe))&&s--==0))return f;return null}return Jpt(e,t)}function Eyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe;for(_n(t,"Comment pre-processing",1),s=0,S=new Q(e.a);S.a0&&(e.p=-(e.p-1)),e.p>Co&&Tge(t,e.p-w0),v=t.q.getDate(),SA(t,1),e.k>=0&&NJt(t,e.k),e.c>=0?SA(t,e.c):e.k>=0?(S=new Zbe(t.q.getFullYear()-w0,t.q.getMonth(),35),a=35-S.q.getDate(),SA(t,m.Math.min(a,v))):SA(t,v),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),qWt(t,e.f==24&&e.g?0:e.f),e.j>=0&&Ntn(t,e.j),e.n>=0&&Qtn(t,e.n),e.i>=0&&bQe(t,Oo(ko(kP(gc(t.q.getTime()),x1),x1),e.i)),e.a&&(l=new yj,Tge(l,l.q.getFullYear()-w0-80),oX(gc(t.q.getTime()),gc(l.q.getTime()))&&Tge(t,l.q.getFullYear()-w0+100)),e.d>=0){if(e.c==-1)s=(7+e.d-t.q.getDay())%7,s>3&&(s-=7),w=t.q.getMonth(),SA(t,t.q.getDate()+s),t.q.getMonth()!=w&&SA(t,t.q.getDate()+(s>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Co&&(f=t.q.getTimezoneOffset(),bQe(t,Oo(gc(t.q.getTime()),(e.o-f)*60*x1))),!0}function Iyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en;for(Le=new Fe,q=new Q(e.b);q.a=t.length)return{done:!0};var l=t[a++];return{value:[l,s.get(l)],done:!1}}}},N0n()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,s){this.obj[":"+t]=s},e.prototype[nee]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var s in this.obj)s.charCodeAt(0)==58&&t.push(s.substring(1));return t}),e}function Ayn(e){Iwe();var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J;if(e==null)return null;if(M=e.length*8,M==0)return"";for(w=M%24,z=M/24|0,R=w!=0?z+1:z,f=null,f=ge(wl,Qd,24,R*4,15,1),C=0,A=0,t=0,s=0,a=0,v=0,l=0,S=0;S>24,C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,W=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,J=(a&-128)==0?a>>6<<24>>24:(a>>6^252)<<24>>24,f[v++]=_p[q],f[v++]=_p[W|C<<4],f[v++]=_p[A<<2|J],f[v++]=_p[a&63];return w==8?(t=e[l],C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,f[v++]=_p[q],f[v++]=_p[C<<4],f[v++]=61,f[v++]=61):w==16&&(t=e[l],s=e[l+1],A=(s&15)<<24>>24,C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,W=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,f[v++]=_p[q],f[v++]=_p[W|C<<4],f[v++]=_p[A<<2],f[v++]=61),Rl(f,0,f.length)}function T0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;if(l=G(t,(Be(),Mr)),!!ue(l,238)){for(q=h(l,34),W=t.e,R=new xs(t.c),f=t.d,R.a+=f.b,R.b+=f.d,ve=h(Ot(q,(Qe(),Fz)),174),Ac(ve,(su(),AV))&&(z=h(Ot(q,EEe),115),SUt(z,f.a),OUt(z,f.d),EUt(z,f.b),_Ut(z,f.c)),s=new Fe,A=new Q(t.a);A.a0&&Re(e.p,A),Re(e.o,A);t-=a,z=S+t,C+=t*e.e,Nl(e.a,w,Ue(z)),Nl(e.b,w,C),e.j=m.Math.max(e.j,z),e.k=m.Math.max(e.k,C),e.d+=t,t+=W}}function He(){He=H;var e;Us=new YT(rI,0),Wt=new YT(SF,1),nn=new YT(dee,2),xn=new YT(hee,3),Xt=new YT(pee,4),TV=(Mt(),new KS((e=h(_f(zo),9),new al(e,h(lf(e,e.length),9),0)))),yE=ip(Zr(Wt,re(te(zo,1),ba,61,0,[]))),vE=ip(Zr(nn,re(te(zo,1),ba,61,0,[]))),wE=ip(Zr(xn,re(te(zo,1),ba,61,0,[]))),xE=ip(Zr(Xt,re(te(zo,1),ba,61,0,[]))),Gf=ip(Zr(Wt,re(te(zo,1),ba,61,0,[xn]))),Cp=ip(Zr(nn,re(te(zo,1),ba,61,0,[Xt]))),V4=ip(Zr(Wt,re(te(zo,1),ba,61,0,[Xt]))),lx=ip(Zr(Wt,re(te(zo,1),ba,61,0,[nn]))),fx=ip(Zr(xn,re(te(zo,1),ba,61,0,[Xt]))),ux=ip(Zr(nn,re(te(zo,1),ba,61,0,[xn]))),Td=ip(Zr(Wt,re(te(zo,1),ba,61,0,[nn,Xt]))),Wf=ip(Zr(nn,re(te(zo,1),ba,61,0,[xn,Xt]))),Ad=ip(Zr(Wt,re(te(zo,1),ba,61,0,[xn,Xt]))),Id=ip(Zr(Wt,re(te(zo,1),ba,61,0,[nn,xn]))),$c=ip(Zr(Wt,re(te(zo,1),ba,61,0,[nn,xn,Xt])))}function O0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;if(t.b!=0){for(z=new ci,w=null,q=null,a=Ci(m.Math.floor(m.Math.log(t.b)*m.Math.LOG10E)+1),S=0,he=sr(t,0);he.b!=he.d.c;)for(oe=h(or(he),83),Pe(q)!==Pe(G(oe,(ua(),n9)))&&(q=Ln(G(oe,n9)),S=0),q!=null?w=q+lrt(S++,a):w=lrt(S++,a),_e(oe,n9,w),J=(l=sr(new qp(oe).a.d,0),new p3(l));cj(J.a);)W=h(or(J.a),188).c,wi(z,W,z.c.b,z.c),_e(W,n9,w);for(R=new Vn,v=0;v=S){hn(oe.b>0),oe.a.Xb(oe.c=--oe.b);break}else W.a>C&&(l?(Di(l.b,W.b),l.a=m.Math.max(l.a,W.a),wu(oe)):(Re(W.b,M),W.c=m.Math.min(W.c,C),W.a=m.Math.max(W.a,S),l=W));l||(l=new jGe,l.c=C,l.a=S,Bv(oe,l),Re(l.b,M))}for(w=t.b,A=0,J=new Q(a);J.a0&&ga(l,-6)>=0){if(ga(l,0)>=0){for(f=s+Pn(l),w=A-1;w>=f;w--)M[w+1]=M[w];return M[++f]=46,S&&(M[--s]=45),Rl(M,s,A-s+1)}for(v=2;oX(v,Oo(I5(l),1));v++)M[--s]=48;return M[--s]=46,M[--s]=48,S&&(M[--s]=45),Rl(M,s,A-s)}return q=s+1,a=A,R=new Dv,S&&(R.a+="-"),a-q>=1?(r0(R,M[s]),R.a+=".",R.a+=Rl(M,s+1,A-s-1)):R.a+=Rl(M,s,A-s),R.a+="E",ga(l,0)>0&&(R.a+="+"),R.a+=""+KC(l),R.a}function jyn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;for(_n(s,"Polyline edge routing",1),J=Ae(Ke(G(t,(Qe(),sEe)))),z=Ae(Ke(G(t,nx))),l=Ae(Ke(G(t,tx))),a=m.Math.min(1,l/z),he=0,S=0,t.b.c.length!=0&&(ve=jht(h(st(t.b,0),29)),he=.4*a*ve),w=new xo(t.b,0);w.b0&&(he-=z),$we(v,he),A=0,R=new Q(v.a);R.a0),w.a.Xb(w.c=--w.b)),S=.4*a*A,!f&&w.bt.d.c){if(z=e.c[t.a.d],J=e.c[M.a.d],z==J)continue;bf(cf(af(uf(sf(new Ol,1),100),z),J))}}}}}function Xwe(e){hJ();var t,s,a,l,f,v,w,S;if(e==null)return null;if(l=Vd(e,bc(37)),l<0)return e;for(S=new ju(e.substr(0,l)),t=ge(Lc,L2,24,4,15,1),w=0,a=0,v=e.length;ll+2&&oQ((Fn(l+1,e.length),e.charCodeAt(l+1)),rIe,iIe)&&oQ((Fn(l+2,e.length),e.charCodeAt(l+2)),rIe,iIe))if(s=kYt((Fn(l+1,e.length),e.charCodeAt(l+1)),(Fn(l+2,e.length),e.charCodeAt(l+2))),l+=2,a>0?(s&192)==128?t[w++]=s<<24>>24:a=0:s>=128&&((s&224)==192?(t[w++]=s<<24>>24,a=2):(s&240)==224?(t[w++]=s<<24>>24,a=3):(s&248)==240&&(t[w++]=s<<24>>24,a=4)),a>0){if(w==a){switch(w){case 2:{r0(S,((t[0]&31)<<6|t[1]&63)&Ti);break}case 3:{r0(S,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ti);break}}w=0,a=0}}else{for(f=0;f0){if(v+a>e.length)return!1;w=zL(e.substr(0,v+a),t)}else w=zL(e,t);switch(f){case 71:return w=w2(e,v,re(te(Ze,1),Oe,2,6,[fgt,dgt]),t),l.e=w,!0;case 77:return k0n(e,t,l,w,v);case 76:return C0n(e,t,l,w,v);case 69:return Edn(e,t,v,l);case 99:return kdn(e,t,v,l);case 97:return w=w2(e,v,re(te(Ze,1),Oe,2,6,["AM","PM"]),t),l.b=w,!0;case 121:return I0n(e,t,v,w,s,l);case 100:return w<=0?!1:(l.c=w,!0);case 83:return w<0?!1:zsn(w,v,t[0],l);case 104:w==12&&(w=0);case 75:case 72:return w<0?!1:(l.f=w,l.g=!1,!0);case 107:return w<0?!1:(l.f=w,l.g=!0,!0);case 109:return w<0?!1:(l.j=w,!0);case 115:return w<0?!1:(l.n=w,!0);case 90:if(vLe&&(q.c=Le-q.b),Re(v.d,new PK(q,Ame(v,q))),de=t==Wt?m.Math.max(de,W.b+C.b.pf().b):m.Math.min(de,W.b));for(de+=t==Wt?e.s:-e.s,he=Bme((v.e=de,v)),he>0&&(h(is(e.b,t),121).a.b=he),A=R.Ic();A.Ob();)C=h(A.Pb(),110),!(!C.c||C.c.d.c.length<=0)&&(q=C.c.i,q.c-=C.e.a,q.d-=C.e.b)}function Lyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z;for(t=new Vn,S=new pn(e);S.e!=S.i.gc();){for(w=h(vn(S),34),s=new Ro,Fr(_ne,w,s),z=new QW,l=h(Fu(new Rt(null,new em(new bn(mn(jP(w).a.Ic(),new j)))),Bet(z,Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[(gd(),Wu)])))),84),eat(s,h(l.vc((Zt(),!0)),15),new ZW),a=h(Fu(Kr(h(l.vc(!1),14).Jc(),new JW),Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[Wu]))),14),v=a.Ic();v.Ob();)f=h(v.Pb(),80),R=Dft(f),R&&(C=h(Gs(Es(t.f,R)),21),C||(C=t1t(R),Ja(t.f,R,C)),ks(s,C));for(l=h(Fu(new Rt(null,new em(new bn(mn(hp(w).a.Ic(),new j)))),Bet(z,Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[Wu])))),84),eat(s,h(l.vc(!0),15),new CN),a=h(Fu(Kr(h(l.vc(!1),14).Jc(),new eG),Ig(new Se,new be,new yr,re(te(uu,1),je,132,0,[Wu]))),14),M=a.Ic();M.Ob();)A=h(M.Pb(),80),R=Nft(A),R&&(C=h(Gs(Es(t.f,R)),21),C||(C=t1t(R),Ja(t.f,R,C)),ks(s,C))}}function Fyn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z;if(e.e.a.$b(),e.f.a.$b(),e.c.c=ge(dn,rt,1,0,5,1),e.i.c=ge(dn,rt,1,0,5,1),e.g.a.$b(),t)for(v=new Q(t.a);v.a=1&&(Ie-C>0&&q>=0?(Oc(M,M.i+ve),_c(M,M.j+S*C)):Ie-C<0&&z>=0&&(Oc(M,M.i+ve*Ie),_c(M,M.j+S)));return Is(e,(Pr(),hE),(xu(),f=h(_f(y9),9),new al(f,h(lf(f,f.length),9),0))),new ot(Le,A)}function D0t(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q;if(z=Xi(Pa(h(fe((!e.b&&(e.b=new Ht(Bn,e,4,7)),e.b),0),93))),q=Xi(Pa(h(fe((!e.c&&(e.c=new Ht(Bn,e,5,8)),e.c),0),93))),M=z==q,w=new Yo,t=h(Ot(e,(eL(),P8e)),74),!!t&&t.b>=2){if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i==0)s=(Hb(),l=new RN,l),On((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),s);else if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i>1)for(R=new A3((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));R.e!=R.i.gc();)N8(R);VP(t,h(fe((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),0),201))}if(M)for(a=new pn((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));a.e!=a.i.gc();)for(s=h(vn(a),201),C=new pn((!s.a&&(s.a=new Mi(Xl,s,5)),s.a));C.e!=C.i.gc();)S=h(vn(C),463),w.a=m.Math.max(w.a,S.a),w.b=m.Math.max(w.b,S.b);for(v=new pn((!e.n&&(e.n=new $e(Ms,e,1,7)),e.n));v.e!=v.i.gc();)f=h(vn(v),137),A=h(Ot(f,p9),8),A&&rd(f,A.a,A.b),M&&(w.a=m.Math.max(w.a,f.i+f.g),w.b=m.Math.max(w.b,f.j+f.f));return w}function Byn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft;for(he=t.c.length,l=new I2(e.a,s,null,null),ft=ge(oo,us,24,he,15,1),W=ge(oo,us,24,he,15,1),q=ge(oo,us,24,he,15,1),J=0,w=0;wft[S]&&(J=S),M=new Q(e.a.b);M.az&&(f&&(pg(Le,R),pg(ft,Ue(C.b-1))),kr=s.b,Ui+=R+t,R=0,A=m.Math.max(A,s.b+s.c+En)),Oc(w,kr),_c(w,Ui),A=m.Math.max(A,kr+En+s.c),R=m.Math.max(R,M),kr+=En+t;if(A=m.Math.max(A,a),en=Ui+R+s.a,eneh,at=m.Math.abs(R.b-q.b)>eh,(!s&&ft&&at||s&&(ft||at))&&lr(J.a,ve)),ks(J.a,a),a.b==0?R=ve:R=(hn(a.b!=0),h(a.c.b.c,8)),gin(z,M,W),Mat(l)==Ye&&(ds(Ye.i)!=l.a&&(W=new Yo,dye(W,ds(Ye.i),de)),_e(J,_re,W)),Hfn(z,J,de),A.a.xc(z,A);Po(J,Ie),uo(J,Ye)}for(C=A.a.ec().Ic();C.Ob();)S=h(C.Pb(),18),Po(S,null),uo(S,null);yn(t)}function N0t(e,t){var s,a,l,f,v,w,S,C,A,M;for(S=h(h(Br(e.r,t),21),81),f=lfn(e,t),w=S.Ic();w.Ob();)if(v=h(w.Pb(),110),!(!v.c||v.c.d.c.length<=0)){switch(M=v.b.pf(),C=v.c,A=C.i,A.b=(l=C.n,C.e.a+l.b+l.c),A.a=(a=C.n,C.e.b+a.d+a.a),t.g){case 1:v.a?(A.c=(M.a-A.b)/2,Df(C,(Xc(),T0))):f?(A.c=-A.b-e.s,Df(C,(Xc(),vf))):(A.c=M.a+e.s,Df(C,(Xc(),ch))),A.d=-A.a-e.s,Hd(C,(hc(),yf));break;case 3:v.a?(A.c=(M.a-A.b)/2,Df(C,(Xc(),T0))):f?(A.c=-A.b-e.s,Df(C,(Xc(),vf))):(A.c=M.a+e.s,Df(C,(Xc(),ch))),A.d=M.b+e.s,Hd(C,(hc(),Uf));break;case 2:v.a?(s=e.u?A.a:h(st(C.d,0),183).pf().b,A.d=(M.b-s)/2,Hd(C,(hc(),A0))):f?(A.d=-A.a-e.s,Hd(C,(hc(),yf))):(A.d=M.b+e.s,Hd(C,(hc(),Uf))),A.c=M.a+e.s,Df(C,(Xc(),ch));break;case 4:v.a?(s=e.u?A.a:h(st(C.d,0),183).pf().b,A.d=(M.b-s)/2,Hd(C,(hc(),A0))):f?(A.d=-A.a-e.s,Hd(C,(hc(),yf))):(A.d=M.b+e.s,Hd(C,(hc(),Uf))),A.c=-A.b-e.s,Df(C,(Xc(),vf))}f=!1}}function j0t(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;if(e.gc()==1)return h(e.Xb(0),229);if(e.gc()<=0)return new l$;for(l=e.Ic();l.Ob();){for(s=h(l.Pb(),229),q=0,A=Ir,M=Ir,S=Co,C=Co,z=new Q(s.e);z.aw&&(he=0,ve+=v+oe,v=0),Ogn(W,s,he,ve),t=m.Math.max(t,he+J.a),v=m.Math.max(v,J.b),he+=J.a+oe;return W}function R0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q;switch(A=new Ic,e.a.g){case 3:R=h(G(t.e,(Be(),ib)),14),z=h(G(t.j,ib),14),q=h(G(t.f,ib),14),s=h(G(t.e,Z2),14),a=h(G(t.j,Z2),14),l=h(G(t.f,Z2),14),v=new Fe,Di(v,R),z.Hc(new iLe),Di(v,ue(z,151)?V3(h(z,151)):ue(z,131)?h(z,131).a:ue(z,53)?new Fb(z):new Nv(z)),Di(v,q),f=new Fe,Di(f,s),Di(f,ue(a,151)?V3(h(a,151)):ue(a,131)?h(a,131).a:ue(a,53)?new Fb(a):new Nv(a)),Di(f,l),_e(t.f,ib,v),_e(t.f,Z2,f),_e(t.f,C6e,t.f),_e(t.e,ib,null),_e(t.e,Z2,null),_e(t.j,ib,null),_e(t.j,Z2,null);break;case 1:ks(A,t.e.a),lr(A,t.i.n),ks(A,Ag(t.j.a)),lr(A,t.a.n),ks(A,t.f.a);break;default:ks(A,t.e.a),ks(A,Ag(t.j.a)),ks(A,t.f.a)}Dl(t.f.a),ks(t.f.a,A),Po(t.f,t.e.c),w=h(G(t.e,(Qe(),ys)),74),C=h(G(t.j,ys),74),S=h(G(t.f,ys),74),(!!w||!!C||!!S)&&(M=new Ic,$0e(M,S),$0e(M,C),$0e(M,w),_e(t.f,ys,M)),Po(t.j,null),uo(t.j,null),Po(t.e,null),uo(t.e,null),ps(t.a,null),ps(t.i,null),t.g&&R0t(e,t.g)}function Hyn(e){Iwe();var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J;if(e==null||(f=x$(e),q=Xon(f),q%4!=0))return null;if(W=q/4|0,W==0)return ge(Lc,L2,24,0,15,1);for(M=null,t=0,s=0,a=0,l=0,v=0,w=0,S=0,C=0,z=0,R=0,A=0,M=ge(Lc,L2,24,W*3,15,1);z>4)<<24>>24,M[R++]=((s&15)<<4|a>>2&15)<<24>>24,M[R++]=(a<<6|l)<<24>>24}return!NT(v=f[A++])||!NT(w=f[A++])?null:(t=Od[v],s=Od[w],S=f[A++],C=f[A++],Od[S]==-1||Od[C]==-1?S==61&&C==61?(s&15)!=0?null:(J=ge(Lc,L2,24,z*3+1,15,1),xa(M,0,J,0,z*3),J[R]=(t<<2|s>>4)<<24>>24,J):S!=61&&C==61?(a=Od[S],(a&3)!=0?null:(J=ge(Lc,L2,24,z*3+2,15,1),xa(M,0,J,0,z*3),J[R++]=(t<<2|s>>4)<<24>>24,J[R]=((s&15)<<4|a>>2&15)<<24>>24,J)):null:(a=Od[S],l=Od[C],M[R++]=(t<<2|s>>4)<<24>>24,M[R++]=((s&15)<<4|a>>2&15)<<24>>24,M[R++]=(a<<6|l)<<24>>24,M))}function qyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie;for(_n(t,vbt,1),q=h(G(e,(Qe(),yp)),216),l=new Q(e.b);l.a=2){for(W=!0,R=new Q(f.j),s=h(Y(R),11),z=null;R.a0&&(l=h(st(J.c.a,Le-1),10),v=e.i[l.p],ft=m.Math.ceil(Kw(e.n,l,J)),f=Ie.a.e-J.d.d-(v.a.e+l.o.b+l.d.a)-ft),C=pi,Le0&&Ye.a.e.e-Ye.a.a-(Ye.b.e.e-Ye.b.a)<0,q=he.a.e.e-he.a.a-(he.b.e.e-he.b.a)<0&&Ye.a.e.e-Ye.a.a-(Ye.b.e.e-Ye.b.a)>0,z=he.a.e.e+he.b.aYe.b.e.e+Ye.a.a,ve=0,!W&&!q&&(R?f+M>0?ve=M:C-a>0&&(ve=a):z&&(f+w>0?ve=w:C-de>0&&(ve=de))),Ie.a.e+=ve,Ie.b&&(Ie.d.e+=ve),!1))}function L0t(e,t,s){var a,l,f,v,w,S,C,A,M,R;if(a=new cl(t.of().a,t.of().b,t.pf().a,t.pf().b),l=new T3,e.c)for(v=new Q(t.uf());v.aC&&(a.a+=nZe(ge(wl,Qd,24,-C,15,1))),a.a+="Is",Vd(S,bc(32))>=0)for(l=0;l=a.o.b/2}else de=!M;de?(oe=h(G(a,(Be(),_4)),14),oe?R?f=oe:(l=h(G(a,C4),14),l?oe.gc()<=l.gc()?f=oe:f=l:(f=new Fe,_e(a,C4,f))):(f=new Fe,_e(a,_4,f))):(l=h(G(a,(Be(),C4)),14),l?M?f=l:(oe=h(G(a,_4),14),oe?l.gc()<=oe.gc()?f=l:f=oe:(f=new Fe,_e(a,_4,f))):(f=new Fe,_e(a,C4,f))),f.Dc(e),_e(e,(Be(),Sz),s),t.d==s?(uo(t,null),s.e.c.length+s.g.c.length==0&&js(s,null),Kin(s)):(Po(t,null),s.e.c.length+s.g.c.length==0&&js(s,null)),Dl(t.a)}function Kyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr;for(de=new xo(e.b,0),A=t.Ic(),q=0,C=h(A.Pb(),20).a,Ie=0,s=new Ro,Ye=new s1;de.b=e.a&&(a=jbn(e,de),A=m.Math.max(A,a.b),ve=m.Math.max(ve,a.d),Re(w,new fo(de,a)));for(ft=new Fe,C=0;C0),J.a.Xb(J.c=--J.b),at=new Ml(e.b),Bv(J,at),hn(J.b0?(C=0,J&&(C+=w),C+=(at-1)*v,he&&(C+=w),ft&&!!he&&(C=m.Math.max(C,Fpn(he,v,de,Ye))),C0){for(R=A<100?null:new Gp(A),C=new Lbe(t),q=C.g,oe=ge(An,nr,24,A,15,1),a=0,ve=new fm(A),l=0;l=0;)if(z!=null?Ar(z,q[S]):Pe(z)===Pe(q[S])){oe.length<=a&&(J=oe,oe=ge(An,nr,24,2*oe.length,15,1),xa(J,0,oe,0,a)),oe[a++]=l,On(ve,q[S]);break e}if(z=z,Pe(z)===Pe(w))break}}if(C=ve,q=ve.g,A=a,a>oe.length&&(J=oe,oe=ge(An,nr,24,a,15,1),xa(J,0,oe,0,a)),a>0){for(he=!0,f=0;f=0;)J3(e,oe[v]);if(a!=A){for(l=A;--l>=a;)J3(C,l);J=oe,oe=ge(An,nr,24,a,15,1),xa(J,0,oe,0,a)}t=C}}}else for(t=Wcn(e,t),l=e.i;--l>=0;)t.Fc(e.g[l])&&(J3(e,l),he=!0);if(he){if(oe!=null){for(s=t.gc(),M=s==1?o8(e,4,t.Ic().Pb(),null,oe[0],W):o8(e,6,t,oe,oe[0],W),R=s<100?null:new Gp(s),l=t.Ic();l.Ob();)z=l.Pb(),R=Upe(e,h(z,71),R);R?(R.zi(M),R.Ai()):Tr(e.e,M)}else{for(R=hXt(t.gc()),l=t.Ic();l.Ob();)z=l.Pb(),R=Upe(e,h(z,71),R);R&&R.Ai()}return!0}else return!1}function Jyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he;for(s=new wlt(t),s.a||zgn(t),C=H0n(t),S=new Kv,J=new c1t,W=new Q(t.a);W.a0||s.o==Ed&&l0?(M=h(st(R.c.a,v-1),10),ft=Kw(e.b,R,M),J=R.n.b-R.d.d-(M.n.b+M.o.b+M.d.a+ft)):J=R.n.b-R.d.d,C=m.Math.min(J,C),v0?z=K3(w):z=fP(K3(w)),e.Ze(sE,z)),C=new Yo,R=!1,e.Ye(Gm)?(dpe(C,h(e.Xe(Gm),8)),R=!0):eGt(C,v.a/2,v.b/2),z.g){case 4:_e(A,yc,(gl(),M0)),_e(A,Cz,(_g(),G2)),A.o.b=v.b,W<0&&(A.o.a=-W),Fi(M,(He(),nn)),R||(C.a=v.a),C.a-=v.a;break;case 2:_e(A,yc,(gl(),Vy)),_e(A,Cz,(_g(),Q6)),A.o.b=v.b,W<0&&(A.o.a=-W),Fi(M,(He(),Xt)),R||(C.a=0);break;case 1:_e(A,rb,(g1(),K2)),A.o.a=v.a,W<0&&(A.o.b=-W),Fi(M,(He(),xn)),R||(C.b=v.b),C.b-=v.b;break;case 3:_e(A,rb,(g1(),k4)),A.o.a=v.a,W<0&&(A.o.b=-W),Fi(M,(He(),Wt)),R||(C.b=0)}if(dpe(M.n,C),_e(A,Gm,C),t==db||t==Hh||t==ja){if(q=0,t==db&&e.Ye(ab))switch(z.g){case 1:case 2:q=h(e.Xe(ab),20).a;break;case 3:case 4:q=-h(e.Xe(ab),20).a}else switch(z.g){case 4:case 2:q=f.b,t==Hh&&(q/=l.b);break;case 1:case 3:q=f.a,t==Hh&&(q/=l.a)}_e(A,Hm,q)}return _e(A,Js,z),A}function nwn(){Nhe();function e(a){var l=this;this.dispatch=function(f){var v=f.data;switch(v.cmd){case"algorithms":var w=Fme((Mt(),new VS(new o1(z0.b))));a.postMessage({id:v.id,data:w});break;case"categories":var S=Fme((Mt(),new VS(new o1(z0.c))));a.postMessage({id:v.id,data:S});break;case"options":var C=Fme((Mt(),new VS(new o1(z0.d))));a.postMessage({id:v.id,data:C});break;case"register":fvn(v.algorithms),a.postMessage({id:v.id});break;case"layout":Wbn(v.graph,v.layoutOptions||{},v.options||{}),a.postMessage({id:v.id,data:v.graph});break}},this.saveDispatch=function(f){try{l.dispatch(f)}catch(v){a.postMessage({id:f.data.id,error:v})}}}function t(a){var l=this;this.dispatcher=new e({postMessage:function(f){l.onmessage({data:f})}}),this.postMessage=function(f){setTimeout(function(){l.dispatcher.saveDispatch({data:f})},0)}}if(typeof document===see&&typeof self!==see){var s=new e(self);self.onmessage=s.saveDispatch}else typeof u!==see&&u.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),u.exports={default:t,Worker:t})}function rwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at;if(s=Ae(Ke(G(e.a.j,(Qe(),tEe)))),s<-1||!e.a.i||HC(h(G(e.a.o,yi),100))||Ls(e.a.o,(He(),nn)).gc()<2&&Ls(e.a.o,Xt).gc()<2)return!0;if(e.a.c.Of())return!1;for(Ie=0,ve=0,he=new Fe,S=e.a.e,C=0,A=S.length;C=s}function iwn(e){e.N||(e.N=!0,e.b=Ys(e,0),li(e.b,0),li(e.b,1),li(e.b,2),e.bb=Ys(e,1),li(e.bb,0),li(e.bb,1),e.fb=Ys(e,2),li(e.fb,3),li(e.fb,4),qr(e.fb,5),e.qb=Ys(e,3),li(e.qb,0),qr(e.qb,1),qr(e.qb,2),li(e.qb,3),li(e.qb,4),qr(e.qb,5),li(e.qb,6),e.a=dr(e,4),e.c=dr(e,5),e.d=dr(e,6),e.e=dr(e,7),e.f=dr(e,8),e.g=dr(e,9),e.i=dr(e,10),e.j=dr(e,11),e.k=dr(e,12),e.n=dr(e,13),e.o=dr(e,14),e.p=dr(e,15),e.q=dr(e,16),e.s=dr(e,17),e.r=dr(e,18),e.t=dr(e,19),e.u=dr(e,20),e.v=dr(e,21),e.w=dr(e,22),e.B=dr(e,23),e.A=dr(e,24),e.C=dr(e,25),e.D=dr(e,26),e.F=dr(e,27),e.G=dr(e,28),e.H=dr(e,29),e.J=dr(e,30),e.I=dr(e,31),e.K=dr(e,32),e.M=dr(e,33),e.L=dr(e,34),e.P=dr(e,35),e.Q=dr(e,36),e.R=dr(e,37),e.S=dr(e,38),e.T=dr(e,39),e.U=dr(e,40),e.V=dr(e,41),e.X=dr(e,42),e.W=dr(e,43),e.Y=dr(e,44),e.Z=dr(e,45),e.$=dr(e,46),e._=dr(e,47),e.ab=dr(e,48),e.cb=dr(e,49),e.db=dr(e,50),e.eb=dr(e,51),e.gb=dr(e,52),e.hb=dr(e,53),e.ib=dr(e,54),e.jb=dr(e,55),e.kb=dr(e,56),e.lb=dr(e,57),e.mb=dr(e,58),e.nb=dr(e,59),e.ob=dr(e,60),e.pb=dr(e,61))}function own(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve;if(de=0,t.f.a==0)for(J=new Q(e);J.aW&&(f&&(pg(Le,z),pg(ft,Ue(A.b-1)),Re(e.d,q),w.c=ge(dn,rt,1,0,5,1)),kr=s.b,Ui+=z+t,z=0,M=m.Math.max(M,s.b+s.c+En)),w.c[w.c.length]=S,flt(S,kr,Ui),M=m.Math.max(M,kr+En+s.c),z=m.Math.max(z,R),kr+=En+t,q=S;if(Di(e.a,w),Re(e.d,h(st(w,w.c.length-1),157)),M=m.Math.max(M,a),en=Ui+z+s.a,en1&&(v=m.Math.min(v,m.Math.abs(h(Ff(w.a,1),8).b-A.b)))));else for(W=new Q(t.j);W.al&&(f=R.a-l,v=Ir,a.c=ge(dn,rt,1,0,5,1),l=R.a),R.a>=l&&(a.c[a.c.length]=w,w.a.b>1&&(v=m.Math.min(v,m.Math.abs(h(Ff(w.a,w.a.b-2),8).b-R.b)))));if(a.c.length!=0&&f>t.o.a/2&&v>t.o.b/2){for(z=new wa,js(z,t),Fi(z,(He(),Wt)),z.n.a=t.o.a/2,oe=new wa,js(oe,t),Fi(oe,xn),oe.n.a=t.o.a/2,oe.n.b=t.o.b,S=new Q(a);S.a=C.b?Po(w,oe):Po(w,z)):(C=h(bYt(w.a),8),J=w.a.b==0?ld(w.c):h(tR(w.a),8),J.b>=C.b?uo(w,oe):uo(w,z)),M=h(G(w,(Qe(),ys)),74),M&&ay(M,C,!0);t.n.a=l-t.o.a/2}}function uwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr,Ui,Ku,xl;if(on=null,En=t,en=iit(e,rit(s),En),b8(en,f1(En,ih)),kr=h(i2(e.g,t4(l1(En,Tte))),34),R=l1(En,"sourcePort"),a=null,R&&(a=t4(R)),Ui=h(i2(e.j,a),122),!kr)throw w=A8(En),q="An edge must have a source node (edge id: '"+w,W=q+D6,ee(new Fd(W));if(!!Ui&&!Th(cd(Ui),kr))throw S=f1(En,ih),J="The source port of an edge must be a port of the edge's source node (edge id: '"+S,oe=J+D6,ee(new Fd(oe));if(ft=(!en.b&&(en.b=new Ht(Bn,en,4,7)),en.b),f=null,Ui?f=Ui:f=kr,On(ft,f),Ku=h(i2(e.g,t4(l1(En,X3e))),34),z=l1(En,"targetPort"),l=null,z&&(l=t4(z)),xl=h(i2(e.j,l),122),!Ku)throw M=A8(En),de="An edge must have a target node (edge id: '"+M,he=de+D6,ee(new Fd(he));if(!!xl&&!Th(cd(xl),Ku))throw C=f1(En,ih),ve="The target port of an edge must be a port of the edge's target node (edge id: '"+C,Ie=ve+D6,ee(new Fd(Ie));if(at=(!en.c&&(en.c=new Ht(Bn,en,5,8)),en.c),v=null,xl?v=xl:v=Ku,On(at,v),(!en.b&&(en.b=new Ht(Bn,en,4,7)),en.b).i==0||(!en.c&&(en.c=new Ht(Bn,en,5,8)),en.c).i==0)throw A=f1(En,ih),Le=jmt+A,Ye=Le+D6,ee(new Fd(Ye));return $L(En,en),h1n(En,en),on=lQ(e,En,en),on}function lwn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on;return M=vbn(uc(e,(He(),TV)),t),q=b2(uc(e,yE),t),ve=b2(uc(e,wE),t),ft=OL(uc(e,xE),t),R=OL(uc(e,vE),t),de=b2(uc(e,V4),t),W=b2(uc(e,lx),t),Le=b2(uc(e,fx),t),Ie=b2(uc(e,ux),t),at=OL(uc(e,Cp),t),oe=b2(uc(e,Gf),t),he=b2(uc(e,Td),t),Ye=b2(uc(e,Wf),t),on=OL(uc(e,Ad),t),z=OL(uc(e,Id),t),J=b2(uc(e,$c),t),s=a2(re(te(oo,1),us,24,15,[de.a,ft.a,Le.a,on.a])),a=a2(re(te(oo,1),us,24,15,[q.a,M.a,ve.a,J.a])),l=oe.a,f=a2(re(te(oo,1),us,24,15,[W.a,R.a,Ie.a,z.a])),C=a2(re(te(oo,1),us,24,15,[de.b,q.b,W.b,he.b])),S=a2(re(te(oo,1),us,24,15,[ft.b,M.b,R.b,J.b])),A=at.b,w=a2(re(te(oo,1),us,24,15,[Le.b,ve.b,Ie.b,Ye.b])),c0(uc(e,TV),s+l,C+A),c0(uc(e,$c),s+l,C+A),c0(uc(e,yE),s+l,0),c0(uc(e,wE),s+l,C+A+S),c0(uc(e,xE),0,C+A),c0(uc(e,vE),s+l+a,C+A),c0(uc(e,lx),s+l+a,0),c0(uc(e,fx),0,C+A+S),c0(uc(e,ux),s+l+a,C+A+S),c0(uc(e,Cp),0,C),c0(uc(e,Gf),s,0),c0(uc(e,Wf),0,C+A+S),c0(uc(e,Id),s+l+a,0),v=new Yo,v.a=a2(re(te(oo,1),us,24,15,[s+a+l+f,at.a,he.a,Ye.a])),v.b=a2(re(te(oo,1),us,24,15,[C+S+A+w,oe.b,on.b,z.b])),v}function fwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J;for(W=new Fe,R=new Q(e.d.b);R.al.d.d+l.d.a?A.f.d=!0:(A.f.d=!0,A.f.a=!0))),a.b!=a.d.c&&(t=s);A&&(f=h(Hn(e.f,v.d.i),56),t.bf.d.d+f.d.a?A.f.d=!0:(A.f.d=!0,A.f.a=!0))}for(w=new bn(mn(Os(z).a.Ic(),new j));Yn(w);)v=h(Rn(w),18),v.a.b!=0&&(t=h(tR(v.a),8),v.d.j==(He(),Wt)&&(J=new q8(t,new ot(t.a,l.d.d),l,v),J.f.a=!0,J.a=v.d,W.c[W.c.length]=J),v.d.j==xn&&(J=new q8(t,new ot(t.a,l.d.d+l.d.a),l,v),J.f.d=!0,J.a=v.d,W.c[W.c.length]=J))}return W}function dwn(e,t,s){var a,l,f,v,w,S,C,A,M;if(_n(s,"Network simplex node placement",1),e.e=t,e.n=h(G(t,(Be(),Q2)),302),_mn(e),Tln(e),mi(Rs(new Rt(null,new Lt(e.e.b,16)),new bLe),new eWe(e)),mi(Kr(Rs(Kr(Rs(new Rt(null,new Lt(e.e.b,16)),new NLe),new jLe),new RLe),new $Le),new Jqe(e)),_t(It(G(e.e,(Qe(),UI))))&&(v=Aa(s,1),_n(v,"Straight Edges Pre-Processing",1),Yvn(e),yn(v)),scn(e.f),f=h(G(t,KO),20).a*e.f.a.c.length,eJ(The(Ahe(hK(e.f),f),!1),Aa(s,1)),e.d.a.gc()!=0){for(v=Aa(s,1),_n(v,"Flexible Where Space Processing",1),w=h(Yb(AR(lc(new Rt(null,new Lt(e.f.a,16)),new yLe),new lLe)),20).a,S=h(Yb(TR(lc(new Rt(null,new Lt(e.f.a,16)),new wLe),new fLe)),20).a,C=S-w,A=Qb(new dg,e.f),M=Qb(new dg,e.f),bf(cf(af(sf(uf(new Ol,2e4),C),A),M)),mi(Kr(Kr(RK(e.i),new xLe),new SLe),new Wtt(w,A,C,M)),l=e.d.a.ec().Ic();l.Ob();)a=h(l.Pb(),211),a.g=1;eJ(The(Ahe(hK(e.f),f),!1),Aa(v,1)),yn(v)}_t(It(G(t,UI)))&&(v=Aa(s,1),_n(v,"Straight Edges Post-Processing",1),pdn(e),yn(v)),Nvn(e),e.e=null,e.f=null,e.i=null,e.c=null,Gc(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),yn(s)}function hwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie;for(w=new Q(e.a.b);w.a0)if(a=M.gc(),C=Ci(m.Math.floor((a+1)/2))-1,l=Ci(m.Math.ceil((a+1)/2))-1,t.o==Ed)for(A=l;A>=C;A--)t.a[ve.p]==ve&&(W=h(M.Xb(A),46),q=h(W.a,10),!e5(s,W.b)&&z>e.b.e[q.p]&&(t.a[q.p]=ve,t.g[ve.p]=t.g[q.p],t.a[ve.p]=t.g[ve.p],t.f[t.g[ve.p].p]=(Zt(),!!(_t(t.f[t.g[ve.p].p])&ve.k==(tn(),Yi))),z=e.b.e[q.p]));else for(A=C;A<=l;A++)t.a[ve.p]==ve&&(oe=h(M.Xb(A),46),J=h(oe.a,10),!e5(s,oe.b)&&z=48&&t<=57){for(a=t-48;l=48&&t<=57;)if(a=a*10+t-48,a<0)throw ee(new $n(Gn((Nn(),e4e))))}else throw ee(new $n(Gn((Nn(),cvt))));if(s=a,t==44){if(l>=e.j)throw ee(new $n(Gn((Nn(),lvt))));if((t=po(e.i,l++))>=48&&t<=57){for(s=t-48;l=48&&t<=57;)if(s=s*10+t-48,s<0)throw ee(new $n(Gn((Nn(),e4e))));if(a>s)throw ee(new $n(Gn((Nn(),fvt))))}else s=-1}if(t!=125)throw ee(new $n(Gn((Nn(),uvt))));e.nl(l)?(f=(Er(),Er(),new Zv(9,f)),e.d=l+1):(f=(Er(),Er(),new Zv(3,f)),e.d=l),f.$l(a),f.Zl(s),wr(e)}}return f}function pwn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en;for(at=new ci,Le=new ci,J=-1,S=new Q(e);S.a=q&&(de>q&&(z.c=ge(dn,rt,1,0,5,1),q=de),z.c[z.c.length]=v);z.c.length!=0&&(R=h(st(z,ZQ(t,z.c.length)),128),en.a.zc(R)!=null,R.s=W++,qye(R,at,Le),z.c=ge(dn,rt,1,0,5,1))}for(ve=e.c.length+1,w=new Q(e);w.aon.s&&(wu(s),dc(on.i,a),a.c>0&&(a.a=on,Re(on.t,a),a.b=Ye,Re(Ye.i,a)))}function V0t(e,t,s,a,l){var f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en;for(W=new Ba(t.b),ve=new Ba(t.b),R=new Ba(t.b),ft=new Ba(t.b),J=new Ba(t.b),Ye=sr(t,0);Ye.b!=Ye.d.c;)for(Ie=h(or(Ye),11),w=new Q(Ie.g);w.a0,oe=Ie.g.c.length>0,C&&oe?R.c[R.c.length]=Ie:C?W.c[W.c.length]=Ie:oe&&(ve.c[ve.c.length]=Ie);for(q=new Q(W);q.aC&&(qt(C,t.c.length),h(t.c[C],180)).a.c.length==0;)dc(t,(qt(C,t.c.length),t.c[C]));if(t.c.length>C)S=h(st((qt(C,t.c.length),h(t.c[C],180)).a,0),181);else{S=null;break}}if(!S)continue;if(fgn(t,A,l,S,R,s,C)){M=!0;continue}if(R){if(nmn(t,A,l,S,s,C)){M=!0;continue}else if(pme(A,l)){l.c=!0,M=!0;continue}}else if(pme(A,l)){l.c=!0,M=!0;continue}if(M)continue}if(pme(A,l)){l.c=!0,M=!0,S&&(S.k=!1);continue}else bL(l.q)}return M}function Am(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J;if(s==null)return null;if(e.a!=t.vj())throw ee(new Gt(_6+t.ne()+jm));if(ue(t,450)){if(J=O0n(h(t,659),s),!J)throw ee(new Gt(Cte+s+"' is not a valid enumerator of '"+t.ne()+"'"));return J}switch(op((Dc(),vo),t).Zk()){case 2:{s=_a(s,!1);break}case 3:{s=_a(s,!0);break}}if(a=op(vo,t).Vk(),a)return a.vj().Ih().Fh(a,s);if(R=op(vo,t).Xk(),R){for(J=new Fe,C=pQ(s),A=0,M=C.length;A1)for(q=new A3((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));q.e!=q.i.gc();)N8(q);for(v=h(fe((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),0),201),J=kr,kr>Ie+ve?J=Ie+ve:krLe+W?oe=Le+W:UiIe-ve&&JLe-W&&oekr+En?ft=kr+En:IeUi+Ye?at=Ui+Ye:Lekr-En&&ftUi-Ye&&ats&&(R=s-1),z=$_+Su(t,24)*rO*M-M/2,z<0?z=1:z>a&&(z=a-1),l=(Hb(),S=new $N,S),N$(l,R),D$(l,z),On((!v.a&&(v.a=new Mi(Xl,v,5)),v.a),l)}function EJ(e,t){lJ();var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr;if(ft=e.e,q=e.d,l=e.a,ft==0)switch(t){case 0:return"0";case 1:return k6;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Le=new Wp,t<0?Le.a+="0E+":Le.a+="0E",Le.a+=-t,Le.a}if(he=q*10+1+7,ve=ge(wl,Qd,24,he+1,15,1),s=he,q==1)if(w=l[0],w<0){kr=Li(w,Jo);do W=kr,kr=kP(kr,10),ve[--s]=48+Pn(p0(W,ko(kr,10)))&Ti;while(ga(kr,0)!=0)}else{kr=w;do W=kr,kr=kr/10|0,ve[--s]=48+(W-kr*10)&Ti;while(kr!=0)}else{on=ge(An,nr,24,q,15,1),En=q,xa(l,0,on,0,En);e:for(;;){for(Ye=0,C=En-1;C>=0;C--)en=Oo(c1(Ye,32),Li(on[C],Jo)),oe=Hun(en),on[C]=Pn(oe),Ye=Pn(t0(oe,32));de=Pn(Ye),J=s;do ve[--s]=48+de%10&Ti;while((de=de/10|0)!=0&&s!=0);for(a=9-J+s,S=0;S0;S++)ve[--s]=48;for(M=En-1;on[M]==0;M--)if(M==0)break e;En=M+1}for(;ve[s]==48;)++s}if(z=ft<0,v=he-s-t-1,t==0)return z&&(ve[--s]=45),Rl(ve,s,he-s);if(t>0&&v>=-6){if(v>=0){for(A=s+v,R=he-1;R>=A;R--)ve[R+1]=ve[R];return ve[++A]=46,z&&(ve[--s]=45),Rl(ve,s,he-s+1)}for(M=2;M<-v+1;M++)ve[--s]=48;return ve[--s]=46,ve[--s]=48,z&&(ve[--s]=45),Rl(ve,s,he-s)}return at=s+1,f=he,Ie=new Dv,z&&(Ie.a+="-"),f-at>=1?(r0(Ie,ve[s]),Ie.a+=".",Ie.a+=Rl(ve,s+1,he-s-1)):Ie.a+=Rl(ve,s,he-s),Ie.a+="E",v>0&&(Ie.a+="+"),Ie.a+=""+v,Ie.a}function W0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le;switch(e.c=t,e.g=new Vn,s=new aC(e.c),a=new HN(s),Lme(a),he=Ln(Ot(e.c,(IP(),pCe))),S=h(Ot(e.c,Lie),313),Ie=h(Ot(e.c,Fie),423),v=h(Ot(e.c,fCe),476),ve=h(Ot(e.c,$ie),424),e.j=Ae(Ke(Ot(e.c,L5t))),w=e.a,S.g){case 0:w=e.a;break;case 1:w=e.b;break;case 2:w=e.i;break;case 3:w=e.e;break;case 4:w=e.f;break;default:throw ee(new Gt(eB+(S.f!=null?S.f:""+S.g)))}if(e.d=new Pnt(w,Ie,v),_e(e.d,(F5(),_I),It(Ot(e.c,R5t))),e.d.c=_t(It(Ot(e.c,dCe))),zR(e.c).i==0)return e.d;for(M=new pn(zR(e.c));M.e!=M.i.gc();){for(A=h(vn(M),34),z=A.g/2,R=A.f/2,Le=new ot(A.i+z,A.j+R);sd(e.g,Le);)Fv(Le,(m.Math.random()-.5)*eh,(m.Math.random()-.5)*eh);W=h(Ot(A,(Pr(),h_)),141),J=new Wnt(Le,new cl(Le.a-z-e.j/2-W.b,Le.b-R-e.j/2-W.d,A.g+e.j+(W.b+W.c),A.f+e.j+(W.d+W.a))),Re(e.d.i,J),Fr(e.g,Le,new fo(J,A))}switch(ve.g){case 0:if(he==null)e.d.d=h(st(e.d.i,0),63);else for(de=new Q(e.d.i);de.a1&&wi(A,oe,A.c.b,A.c),T$(l)));oe=de}return A}function X0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe;for(a=new Fe,w=new Fe,J=t/2,z=e.gc(),l=h(e.Xb(0),8),oe=h(e.Xb(1),8),q=FZ(l.a,l.b,oe.a,oe.b,J),Re(a,(qt(0,q.c.length),h(q.c[0],8))),Re(w,(qt(1,q.c.length),h(q.c[1],8))),C=2;C=0;S--)lr(s,(qt(S,v.c.length),h(v.c[S],8)));return s}function xwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z;if(v=!0,M=null,a=null,l=null,t=!1,z=bEt,C=null,f=null,w=0,S=qQ(e,w,oIe,sIe),S=0&&kt(e.substr(w,2),"//")?(w+=2,S=qQ(e,w,E9,k9),a=e.substr(w,S-w),w=S):M!=null&&(w==e.length||(Fn(w,e.length),e.charCodeAt(w)!=47))&&(v=!1,S=npe(e,bc(35),w),S==-1&&(S=e.length),a=e.substr(w,S-w),w=S);if(!s&&w0&&po(A,A.length-1)==58&&(l=A,w=S)),w0?En+1:1);for(v=new Q(Le.g);v.a0?En+1:1)}e.c[C]==0?lr(e.d,W):e.a[C]==0&&lr(e.e,W),++C}for(q=-1,z=1,M=new Fe,kr=h(G(t,(Be(),O4)),228);Mp>0;){for(;e.d.b!=0;)Ku=h(vK(e.d),10),e.b[Ku.p]=q--,ywe(e,Ku),--Mp;for(;e.e.b!=0;)xl=h(vK(e.e),10),e.b[xl.p]=z++,ywe(e,xl),--Mp;if(Mp>0){for(R=Co,de=new Q(he);de.a=R&&(ve>R&&(M.c=ge(dn,rt,1,0,5,1),R=ve),M.c[M.c.length]=W));A=h(st(M,ZQ(kr,M.c.length)),10),e.b[A.p]=z++,ywe(e,A),--Mp}}for(Ui=he.c.length+1,C=0;Ce.b[tv]&&(Ey(a,!0),_e(t,kz,(Zt(),!0)));e.a=null,e.c=null,e.b=null,Dl(e.e),Dl(e.d),yn(s)}function Ewn(e,t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr,Ui,Ku,xl;for(Ui=new Fe,q=new Q(t.b);q.a=e.j){e.a=-1,e.c=1;return}if(t=po(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(a=10,e.d>=e.j)throw ee(new $n(Gn((Nn(),sB))));e.a=po(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||po(e.i,e.d)!=63)break;if(++e.d>=e.j)throw ee(new $n(Gn((Nn(),Fte))));switch(t=po(e.i,e.d++),t){case 58:a=13;break;case 61:a=14;break;case 33:a=15;break;case 91:a=19;break;case 62:a=18;break;case 60:if(e.d>=e.j)throw ee(new $n(Gn((Nn(),Fte))));if(t=po(e.i,e.d++),t==61)a=16;else if(t==33)a=17;else throw ee(new $n(Gn((Nn(),Hmt))));break;case 35:for(;e.d=e.j)throw ee(new $n(Gn((Nn(),sB))));e.a=po(e.i,e.d++);break;default:a=0}e.c=a}function kwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En;if(Ye=h(G(e,(Qe(),yi)),100),Ye!=(lo(),Cd)&&Ye!=L0){for(q=e.b,z=q.c.length,A=new Ba((Rf(z+2,AJ),k$(Oo(Oo(5,z+2),(z+2)/10|0)))),W=new Ba((Rf(z+2,AJ),k$(Oo(Oo(5,z+2),(z+2)/10|0)))),Re(A,new Vn),Re(A,new Vn),Re(W,new Fe),Re(W,new Fe),Le=new Fe,t=0;tv)throw ee(new $n(Gn((Nn(),rvt))));Oa(w,s,v)}}}l=!1}if(e.c==1)throw ee(new $n(Gn((Nn(),aB))));return x2(w),G8(w),e.b=0,wr(e),w}function Cwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie;if(_n(s,"Coffman-Graham Layering",1),t.a.c.length==0){yn(s);return}for(Ie=h(G(t,(Qe(),pEe)),20).a,S=0,v=0,R=new Q(t.a);R.a=Ie||!nan(oe,a))&&(a=ert(t,A)),ps(oe,a),f=new bn(mn(Os(oe).a.Ic(),new j));Yn(f);)l=h(Rn(f),18),!e.a[l.p]&&(W=l.c.i,--e.e[W.p],e.e[W.p]==0&&C5(s6(z,W)));for(C=A.c.length-1;C>=0;--C)Re(t.b,(qt(C,A.c.length),h(A.c[C],29)));t.a.c=ge(dn,rt,1,0,5,1),yn(s)}function Iwn(e){Mn(e.c,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#decimal"])),Mn(e.d,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#integer"])),Mn(e.e,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#boolean"])),Mn(e.f,Kn,re(te(Ze,1),Oe,2,6,[Io,"EBoolean",pr,"EBoolean:Object"])),Mn(e.i,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#byte"])),Mn(e.g,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Mn(e.j,Kn,re(te(Ze,1),Oe,2,6,[Io,"EByte",pr,"EByte:Object"])),Mn(e.n,Kn,re(te(Ze,1),Oe,2,6,[Io,"EChar",pr,"EChar:Object"])),Mn(e.t,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#double"])),Mn(e.u,Kn,re(te(Ze,1),Oe,2,6,[Io,"EDouble",pr,"EDouble:Object"])),Mn(e.F,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#float"])),Mn(e.G,Kn,re(te(Ze,1),Oe,2,6,[Io,"EFloat",pr,"EFloat:Object"])),Mn(e.I,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#int"])),Mn(e.J,Kn,re(te(Ze,1),Oe,2,6,[Io,"EInt",pr,"EInt:Object"])),Mn(e.N,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#long"])),Mn(e.O,Kn,re(te(Ze,1),Oe,2,6,[Io,"ELong",pr,"ELong:Object"])),Mn(e.Z,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#short"])),Mn(e.$,Kn,re(te(Ze,1),Oe,2,6,[Io,"EShort",pr,"EShort:Object"])),Mn(e._,Kn,re(te(Ze,1),Oe,2,6,[Io,"http://www.w3.org/2001/XMLSchema#string"]))}function Twn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on;for(v=new ci,ve=h(G(s,(Qe(),Gu)),108),ks(v,(!t.a&&(t.a=new $e(bi,t,10,11)),t.a));v.b!=0;)C=h(v.b==0?null:(hn(v.b!=0),fl(v,v.a.a)),34),W=!_t(It(Ot(C,sb))),W&&(M=(!C.a&&(C.a=new $e(bi,C,10,11)),C.a).i!=0,z=Gln(C),R=Pe(Ot(C,Uy))===Pe((m1(),kp)),on=!s0(C,(Pr(),u9))||kt(Ln(Ot(C,u9)),ln),de=null,on&&R&&(M||z)&&(de=apt(C),_e(de,Gu,ve),Lo(de,GO)&&hXe(new Nme(Ae(Ke(G(de,GO)))),de),h(Ot(C,ob),174).gc()!=0&&(A=de,mi(new Rt(null,(!C.c&&(C.c=new $e(fu,C,9,9)),new Lt(C.c,16))),new HHe(A)),u1t(C,de))),Ie=s,Le=h(Hn(e.a,Xi(C)),10),Le&&(Ie=Le.e),oe=w0t(e,C,Ie),de&&(oe.e=de,de.e=oe,ks(v,(!C.a&&(C.a=new $e(bi,C,10,11)),C.a))));for(wi(v,t,v.c.b,v.c);v.b!=0;){for(f=h(v.b==0?null:(hn(v.b!=0),fl(v,v.a.a)),34),S=new pn((!f.b&&(f.b=new $e(qi,f,12,3)),f.b));S.e!=S.i.gc();)w=h(vn(S),80),L1t(w),ft=Pa(h(fe((!w.b&&(w.b=new Ht(Bn,w,4,7)),w.b),0),93)),at=Pa(h(fe((!w.c&&(w.c=new Ht(Bn,w,5,8)),w.c),0),93)),!(_t(It(Ot(w,sb)))||_t(It(Ot(ft,sb)))||_t(It(Ot(at,sb))))&&(q=Em(w)&&_t(It(Ot(ft,ex)))&&_t(It(Ot(w,Hy))),he=f,q||r2(at,ft)?he=ft:r2(ft,at)&&(he=at),Ie=s,Le=h(Hn(e.a,he),10),Le&&(Ie=Le.e),J=Qwe(e,w,he,Ie),_e(J,(Be(),b6e),a0n(e,w,t,s)));if(R=Pe(Ot(f,Uy))===Pe((m1(),kp)),R)for(l=new pn((!f.a&&(f.a=new $e(bi,f,10,11)),f.a));l.e!=l.i.gc();)a=h(vn(l),34),on=!s0(a,(Pr(),u9))||kt(Ln(Ot(a,u9)),ln),Ye=Pe(Ot(a,Uy))===Pe(kp),on&&Ye&&wi(v,a,v.c.b,v.c)}}function Awn(e){var t,s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En;if(e.c.length==1)return qt(0,e.c.length),h(e.c[0],135);if(e.c.length<=0)return new g$;for(S=new Q(e);S.aM&&(en=0,En+=A+Ye,A=0),q1n(Ie,v,en,En),t=m.Math.max(t,en+Le.a),A=m.Math.max(A,Le.b),en+=Le.a+Ye;for(ve=new Vn,s=new Vn,at=new Q(e);at.azZ(f))&&(M=f);for(!M&&(M=(qt(0,J.c.length),h(J.c[0],182))),W=new Q(t.b);W.a=-1900?1:0,s>=4?Xn(e,re(te(Ze,1),Oe,2,6,[fgt,dgt])[w]):Xn(e,re(te(Ze,1),Oe,2,6,["BC","AD"])[w]);break;case 121:Nan(e,s,a);break;case 77:Pgn(e,s,a);break;case 107:S=l.q.getHours(),S==0?_h(e,24,s):_h(e,S,s);break;case 83:V1n(e,s,l);break;case 69:A=a.q.getDay(),s==5?Xn(e,re(te(Ze,1),Oe,2,6,["S","M","T","W","T","F","S"])[A]):s==4?Xn(e,re(te(Ze,1),Oe,2,6,[VJ,UJ,HJ,qJ,WJ,GJ,XJ])[A]):Xn(e,re(te(Ze,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[A]);break;case 97:l.q.getHours()>=12&&l.q.getHours()<24?Xn(e,re(te(Ze,1),Oe,2,6,["AM","PM"])[1]):Xn(e,re(te(Ze,1),Oe,2,6,["AM","PM"])[0]);break;case 104:M=l.q.getHours()%12,M==0?_h(e,12,s):_h(e,M,s);break;case 75:R=l.q.getHours()%12,_h(e,R,s);break;case 72:z=l.q.getHours(),_h(e,z,s);break;case 99:q=a.q.getDay(),s==5?Xn(e,re(te(Ze,1),Oe,2,6,["S","M","T","W","T","F","S"])[q]):s==4?Xn(e,re(te(Ze,1),Oe,2,6,[VJ,UJ,HJ,qJ,WJ,GJ,XJ])[q]):s==3?Xn(e,re(te(Ze,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[q]):_h(e,q,1);break;case 76:W=a.q.getMonth(),s==5?Xn(e,re(te(Ze,1),Oe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[W]):s==4?Xn(e,re(te(Ze,1),Oe,2,6,[_J,MJ,DJ,NJ,s4,jJ,RJ,$J,LJ,FJ,BJ,zJ])[W]):s==3?Xn(e,re(te(Ze,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[W]):_h(e,W+1,s);break;case 81:J=a.q.getMonth()/3|0,s<4?Xn(e,re(te(Ze,1),Oe,2,6,["Q1","Q2","Q3","Q4"])[J]):Xn(e,re(te(Ze,1),Oe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[J]);break;case 100:oe=a.q.getDate(),_h(e,oe,s);break;case 109:C=l.q.getMinutes(),_h(e,C,s);break;case 115:v=l.q.getSeconds(),_h(e,v,s);break;case 122:s<4?Xn(e,f.c[0]):Xn(e,f.c[1]);break;case 118:Xn(e,f.b);break;case 90:s<3?Xn(e,Kdn(f)):s==3?Xn(e,Zdn(f)):Xn(e,Jdn(f.a));break;default:return!1}return!0}function Qwe(e,t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr;if(L1t(t),S=h(fe((!t.b&&(t.b=new Ht(Bn,t,4,7)),t.b),0),93),A=h(fe((!t.c&&(t.c=new Ht(Bn,t,5,8)),t.c),0),93),w=Pa(S),C=Pa(A),v=(!t.a&&(t.a=new $e(ai,t,6,6)),t.a).i==0?null:h(fe((!t.a&&(t.a=new $e(ai,t,6,6)),t.a),0),201),Ye=h(Hn(e.a,w),10),en=h(Hn(e.a,C),10),ft=null,En=null,ue(S,199)&&(Le=h(Hn(e.a,S),299),ue(Le,11)?ft=h(Le,11):ue(Le,10)&&(Ye=h(Le,10),ft=h(st(Ye.j,0),11))),ue(A,199)&&(on=h(Hn(e.a,A),299),ue(on,11)?En=h(on,11):ue(on,10)&&(en=h(on,10),En=h(st(en.j,0),11))),!Ye||!en)throw ee(new PT("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(W=new om,Cs(W,t),_e(W,(Be(),Mr),t),_e(W,(Qe(),ys),null),z=h(G(a,Na),21),Ye==en&&z.Dc((Zo(),LI)),ft||(Ie=(ss(),nc),at=null,!!v&&Gw(h(G(Ye,yi),100))&&(at=new ot(v.j,v.k),oit(at,KR(t)),Fit(at,s),r2(C,w)&&(Ie=Rc,Rr(at,Ye.n))),ft=Rpt(Ye,at,Ie,a)),En||(Ie=(ss(),Rc),kr=null,!!v&&Gw(h(G(en,yi),100))&&(kr=new ot(v.b,v.c),oit(kr,KR(t)),Fit(kr,s)),En=Rpt(en,kr,Ie,ds(en))),Po(W,ft),uo(W,En),(ft.e.c.length>1||ft.g.c.length>1||En.e.c.length>1||En.g.c.length>1)&&z.Dc((Zo(),$I)),R=new pn((!t.n&&(t.n=new $e(Ms,t,1,7)),t.n));R.e!=R.i.gc();)if(M=h(vn(R),137),!_t(It(Ot(M,sb)))&&!!M.a)switch(J=kQ(M),Re(W.b,J),h(G(J,fh),271).g){case 1:case 2:z.Dc((Zo(),J6));break;case 0:z.Dc((Zo(),Z6)),_e(J,fh,(hd(),gE))}if(f=h(G(a,rE),333),oe=h(G(a,Lz),312),l=f==(B3(),FO)||oe==(M8(),Jre),!!v&&(!v.a&&(v.a=new Mi(Xl,v,5)),v.a).i!=0&&l){for(de=AP(v),q=new Ic,ve=sr(de,0);ve.b!=ve.d.c;)he=h(or(ve),8),lr(q,new xs(he));_e(W,w6e,q)}return W}function _wn(e){e.gb||(e.gb=!0,e.b=Ys(e,0),li(e.b,18),qr(e.b,19),e.a=Ys(e,1),li(e.a,1),qr(e.a,2),qr(e.a,3),qr(e.a,4),qr(e.a,5),e.o=Ys(e,2),li(e.o,8),li(e.o,9),qr(e.o,10),qr(e.o,11),qr(e.o,12),qr(e.o,13),qr(e.o,14),qr(e.o,15),qr(e.o,16),qr(e.o,17),qr(e.o,18),qr(e.o,19),qr(e.o,20),qr(e.o,21),qr(e.o,22),qr(e.o,23),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),bs(e.o),e.p=Ys(e,3),li(e.p,2),li(e.p,3),li(e.p,4),li(e.p,5),qr(e.p,6),qr(e.p,7),bs(e.p),bs(e.p),e.q=Ys(e,4),li(e.q,8),e.v=Ys(e,5),qr(e.v,9),bs(e.v),bs(e.v),bs(e.v),e.w=Ys(e,6),li(e.w,2),li(e.w,3),li(e.w,4),qr(e.w,5),e.B=Ys(e,7),qr(e.B,1),bs(e.B),bs(e.B),bs(e.B),e.Q=Ys(e,8),qr(e.Q,0),bs(e.Q),e.R=Ys(e,9),li(e.R,1),e.S=Ys(e,10),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),bs(e.S),e.T=Ys(e,11),qr(e.T,10),qr(e.T,11),qr(e.T,12),qr(e.T,13),qr(e.T,14),bs(e.T),bs(e.T),e.U=Ys(e,12),li(e.U,2),li(e.U,3),qr(e.U,4),qr(e.U,5),qr(e.U,6),qr(e.U,7),bs(e.U),e.V=Ys(e,13),qr(e.V,10),e.W=Ys(e,14),li(e.W,18),li(e.W,19),li(e.W,20),qr(e.W,21),qr(e.W,22),qr(e.W,23),e.bb=Ys(e,15),li(e.bb,10),li(e.bb,11),li(e.bb,12),li(e.bb,13),li(e.bb,14),li(e.bb,15),li(e.bb,16),qr(e.bb,17),bs(e.bb),bs(e.bb),e.eb=Ys(e,16),li(e.eb,2),li(e.eb,3),li(e.eb,4),li(e.eb,5),li(e.eb,6),li(e.eb,7),qr(e.eb,8),qr(e.eb,9),e.ab=Ys(e,17),li(e.ab,0),li(e.ab,1),e.H=Ys(e,18),qr(e.H,0),qr(e.H,1),qr(e.H,2),qr(e.H,3),qr(e.H,4),qr(e.H,5),bs(e.H),e.db=Ys(e,19),qr(e.db,2),e.c=dr(e,20),e.d=dr(e,21),e.e=dr(e,22),e.f=dr(e,23),e.i=dr(e,24),e.g=dr(e,25),e.j=dr(e,26),e.k=dr(e,27),e.n=dr(e,28),e.r=dr(e,29),e.s=dr(e,30),e.t=dr(e,31),e.u=dr(e,32),e.fb=dr(e,33),e.A=dr(e,34),e.C=dr(e,35),e.D=dr(e,36),e.F=dr(e,37),e.G=dr(e,38),e.I=dr(e,39),e.J=dr(e,40),e.L=dr(e,41),e.M=dr(e,42),e.N=dr(e,43),e.O=dr(e,44),e.P=dr(e,45),e.X=dr(e,46),e.Y=dr(e,47),e.Z=dr(e,48),e.$=dr(e,49),e._=dr(e,50),e.cb=dr(e,51),e.K=dr(e,52))}function Pr(){Pr=H;var e,t;u9=new Xr(Zbt),pE=new Xr(Jbt),BCe=(Dh(),Vie),p6t=new $t(Nxe,BCe),new CT,R4=new $t(d4,null),g6t=new Xr(M3e),VCe=(hy(),Zr(qie,re(te(Wie,1),je,290,0,[Hie]))),yV=new $t(GF,VCe),f_=new $t(gO,(Zt(),!1)),UCe=(as(),A1),l9=new $t($xe,UCe),WCe=(cp(),roe),qCe=new $t(pO,WCe),KCe=new $t(JF,!1),YCe=(m1(),CV),ax=new $t(qF,YCe),s8e=new bg(12),j0=new $t(Gg,s8e),wV=new $t(uO,!1),QCe=new $t(rte,!1),f8e=(lo(),L0),g_=new $t(Cee,f8e),L4=new Xr(KF),EV=new Xr(aO),toe=new Xr(TF),noe=new Xr(cO),ZCe=new Ic,cx=new $t(Xxe,ZCe),m6t=new $t(Qxe,!1),v6t=new $t(Zxe,!1),new Xr(emt),JCe=new oC,h_=new $t(e3e,JCe),SV=new $t(Mxe,!1),new CT,k6t=new $t(tmt,1),new $t(nmt,!0),Ue(0),new $t(rmt,Ue(100)),new $t(imt,!1),Ue(0),new $t(omt,Ue(4e3)),Ue(0),new $t(smt,Ue(400)),new $t(amt,!1),new $t(cmt,!1),new $t(umt,!0),new $t(lmt,!1),zCe=(gL(),aoe),b6t=new $t(_3e,zCe),C6t=new $t(xxe,10),I6t=new $t(Sxe,10),g8e=new $t(yee,20),T6t=new $t(Exe,10),b8e=new $t(kee,2),A6t=new $t(kxe,10),m8e=new $t(Cxe,0),kV=new $t(Txe,5),v8e=new $t(Ixe,1),fb=new $t(Py,20),P6t=new $t(Axe,10),x8e=new $t(Pxe,10),F4=new Xr(Oxe),w8e=new jQe,y8e=new $t(t3e,w8e),x6t=new Xr(nte),a8e=!1,w6t=new $t(tte,a8e),t8e=new bg(5),e8e=new $t(Fxe,t8e),n8e=(vy(),t=h(_f(ts),9),new al(t,h(lf(t,t.length),9),0)),xV=new $t(Lxe,n8e),u8e=(h2(),$0),c8e=new $t(Uxe,u8e),Qie=new Xr(Hxe),Zie=new Xr(qxe),Jie=new Xr(Wxe),Yie=new Xr(Gxe),r8e=(e=h(_f(y9),9),new al(e,h(lf(e,e.length),9),0)),hE=new $t(WF,r8e),o8e=Tt((su(),SE)),$4=new $t(ete,o8e),i8e=new ot(0,0),p_=new $t(XF,i8e),y6t=new $t(D3e,!1),HCe=(hd(),gE),Xie=new $t(Kxe,HCe),Gie=new $t(AF,!1),new Xr(fmt),Ue(1),new $t(dmt,null),l8e=new Xr(Jxe),E6t=new Xr(Yxe),p8e=(He(),Us),f9=new $t(Dxe,p8e),lu=new Xr(_xe),d8e=(ou(),Tt(F0)),b_=new $t(Bxe,d8e),eoe=new $t(zxe,!1),h8e=new $t(Vxe,!0),d_=new $t(jxe,!1),Kie=new $t(Rxe,!1),GCe=new $t(wee,1),XCe=(LL(),ooe),new $t(hmt,XCe),S6t=!0}function Be(){Be=H;var e,t;Mr=new Xr(N2e),b6e=new Xr("coordinateOrigin"),Ore=new Xr("processors"),g6e=new Vi("compoundNode",(Zt(),!1)),VO=new Vi("insideConnections",!1),w6e=new Xr("originalBendpoints"),x6e=new Xr("originalDummyNodePosition"),S6e=new Xr("originalLabelEdge"),HO=new Xr("representedLabels"),FI=new Xr("endLabels"),I4=new Xr("endLabel.origin"),P4=new Vi("labelSide",(Vu(),y_)),Y2=new Vi("maxEdgeThickness",0),_0=new Vi("reversed",!1),O4=new Xr(j2e),Hf=new Vi("longEdgeSource",null),ql=new Vi("longEdgeTarget",null),zy=new Vi("longEdgeHasLabelDummies",!1),UO=new Vi("longEdgeBeforeLabelDummy",!1),Cz=new Vi("edgeConstraint",(_g(),hre)),Um=new Xr("inLayerLayoutUnit"),rb=new Vi("inLayerConstraint",(g1(),zO)),A4=new Vi("inLayerSuccessorConstraint",new Fe),y6e=new Vi("inLayerSuccessorConstraintBetweenNonDummies",!1),Kc=new Xr("portDummy"),Ez=new Vi("crossingHint",Ue(0)),Na=new Vi("graphProperties",(t=h(_f(wre),9),new al(t,h(lf(t,t.length),9),0))),Js=new Vi("externalPortSide",(He(),Us)),v6e=new Vi("externalPortSize",new Yo),Cre=new Xr("externalPortReplacedDummies"),Iz=new Xr("externalPortReplacedDummy"),T4=new Vi("externalPortConnections",(e=h(_f(zo),9),new al(e,h(lf(e,e.length),9),0))),Hm=new Vi(Vgt,0),p6e=new Xr("barycenterAssociates"),_4=new Xr("TopSideComments"),C4=new Xr("BottomSideComments"),Sz=new Xr("CommentConnectionPort"),Tre=new Vi("inputCollect",!1),Pre=new Vi("outputCollect",!1),kz=new Vi("cyclic",!1),m6e=new Xr("crossHierarchyMap"),_re=new Xr("targetOffset"),new Vi("splineLabelSize",new Yo),Q2=new Xr("spacings"),Az=new Vi("partitionConstraint",!1),Vm=new Xr("breakingPoint.info"),C6e=new Xr("splines.survivingEdge"),ib=new Xr("splines.route.start"),Z2=new Xr("splines.edgeChain"),k6e=new Xr("originalPortConstraints"),tE=new Xr("selfLoopHolder"),nE=new Xr("splines.nsPortY"),Sd=new Xr("modelOrder"),Are=new Xr("longEdgeTargetNode"),Tz=new Vi("firstTryWithInitialOrder",!1),Ire=new Xr("layerConstraints.hiddenNodes"),E6e=new Xr("layerConstraints.opposidePort")}function Zwe(){Zwe=H,P6e=(Mg(),Ky),Ixt=new $t(V2e,P6e),N6e=(HA(),gz),zxt=new $t(U2e,N6e),Jxt=new $t(H2e,(Zt(),!1)),B6e=(s$(),kre),r3t=new $t(MF,B6e),v3t=new $t(q2e,!1),y3t=new $t(W2e,!0),Sxt=new $t(G2e,!1),X6e=(LA(),nie),N3t=new $t(X2e,X6e),Ue(1),V3t=new $t(K2e,Ue(7)),U3t=new $t(Y2e,!1),D6e=(P$(),fre),Bxt=new $t(_ee,D6e),U6e=(RL(),Yre),m3t=new $t(hO,U6e),z6e=(gl(),qO),u3t=new $t(Q2e,z6e),Ue(-1),c3t=new $t(Z2e,Ue(-1)),Ue(-1),l3t=new $t(J2e,Ue(-1)),Ue(-1),f3t=new $t(Mee,Ue(4)),Ue(-1),h3t=new $t(Dee,Ue(2)),V6e=(E2(),Wz),b3t=new $t(Nee,V6e),Ue(0),g3t=new $t(jee,Ue(0)),s3t=new $t(Ree,Ue(Ir)),M6e=(B3(),E4),Fxt=new $t(uI,M6e),Dxt=new $t($ee,.1),$xt=new $t(Lee,!1),Ue(-1),jxt=new $t(exe,Ue(-1)),Ue(-1),Rxt=new $t(txe,Ue(-1)),Ue(0),Txt=new $t(nxe,Ue(40)),_6e=(L5(),Sre),_xt=new $t(Fee,_6e),O6e=BO,Axt=new $t(DF,O6e),G6e=(M8(),WI),D3t=new $t(N2,G6e),k3t=new Xr(NF),H6e=(RA(),mz),w3t=new $t(Bee,H6e),q6e=(CP(),vz),S3t=new $t(zee,q6e),new CT,T3t=new $t(Vee,.3),P3t=new Xr(Uee),W6e=(fy(),qz),O3t=new $t(Hee,W6e),$6e=(G$(),iie),Wxt=new $t(rxe,$6e),L6e=(_A(),oie),Gxt=new $t(ixe,L6e),F6e=(X5(),KI),Xxt=new $t(jF,F6e),Yxt=new $t(RF,.2),Hxt=new $t(qee,2),L3t=new $t(oxe,null),B3t=new $t(sxe,10),F3t=new $t(axe,10),z3t=new $t(cxe,20),Ue(0),j3t=new $t(uxe,Ue(0)),Ue(0),R3t=new $t(lxe,Ue(0)),Ue(0),$3t=new $t(fxe,Ue(0)),Ext=new $t(Wee,!1),A6e=(a6(),RI),Cxt=new $t(dxe,A6e),T6e=(b$(),ure),kxt=new $t(hxe,T6e),t3t=new $t($F,!1),Ue(0),e3t=new $t(Gee,Ue(16)),Ue(0),n3t=new $t(Xee,Ue(5)),Q6e=(Y$(),cie),u4t=new $t(k1,Q6e),H3t=new $t(LF,10),G3t=new $t(FF,1),Y6e=(j$(),pz),e4t=new $t(lI,Y6e),Y3t=new Xr(Kee),K6e=Ue(1),Ue(0),Z3t=new $t(Yee,K6e),Z6e=(H$(),aie),h4t=new $t(BF,Z6e),l4t=new Xr(zF),o4t=new $t(VF,!0),r4t=new $t(UF,2),a4t=new $t(Qee,!0),R6e=(BL(),bz),Uxt=new $t(pxe,R6e),j6e=(e4(),K6),Vxt=new $t(gxe,j6e),o3t=dre,i3t=FO,d3t=Hz,p3t=Hz,a3t=Kre,Nxt=(m1(),kp),Lxt=E4,Mxt=E4,Pxt=E4,Oxt=kp,C3t=GI,I3t=WI,x3t=WI,E3t=WI,A3t=eie,M3t=GI,_3t=GI,Kxt=(cp(),B4),Qxt=B4,Zxt=KI,qxt=m_,q3t=uE,W3t=Yy,X3t=uE,K3t=Yy,t4t=uE,n4t=Yy,Q3t=lre,J3t=pz,p4t=uE,g4t=Yy,f4t=uE,d4t=Yy,s4t=Yy,i4t=Yy,c4t=Yy}function vs(){vs=H,p5e=new Ii("DIRECTION_PREPROCESSOR",0),f5e=new Ii("COMMENT_PREPROCESSOR",1),DI=new Ii("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),qne=new Ii("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),D5e=new Ii("PARTITION_PREPROCESSOR",4),QB=new Ii("LABEL_DUMMY_INSERTER",5),oz=new Ii("SELF_LOOP_PREPROCESSOR",6),q6=new Ii("LAYER_CONSTRAINT_PREPROCESSOR",7),_5e=new Ii("PARTITION_MIDPROCESSOR",8),S5e=new Ii("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),P5e=new Ii("NODE_PROMOTION",10),H6=new Ii("LAYER_CONSTRAINT_POSTPROCESSOR",11),M5e=new Ii("PARTITION_POSTPROCESSOR",12),y5e=new Ii("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),N5e=new Ii("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),o5e=new Ii("BREAKING_POINT_INSERTER",15),Xne=new Ii("LONG_EDGE_SPLITTER",16),Yne=new Ii("PORT_SIDE_PROCESSOR",17),YB=new Ii("INVERTED_PORT_PROCESSOR",18),Kne=new Ii("PORT_LIST_SORTER",19),R5e=new Ii("SORT_BY_INPUT_ORDER_OF_MODEL",20),tz=new Ii("NORTH_SOUTH_PORT_PREPROCESSOR",21),s5e=new Ii("BREAKING_POINT_PROCESSOR",22),O5e=new Ii(pbt,23),$5e=new Ii(gbt,24),rz=new Ii("SELF_LOOP_PORT_RESTORER",25),j5e=new Ii("SINGLE_EDGE_GRAPH_WRAPPER",26),Wne=new Ii("IN_LAYER_CONSTRAINT_PROCESSOR",27),b5e=new Ii("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),T5e=new Ii("LABEL_AND_NODE_SIZE_PROCESSOR",29),I5e=new Ii("INNERMOST_NODE_MARGIN_CALCULATOR",30),sz=new Ii("SELF_LOOP_ROUTER",31),u5e=new Ii("COMMENT_NODE_MARGIN_CALCULATOR",32),KB=new Ii("END_LABEL_PREPROCESSOR",33),JB=new Ii("LABEL_DUMMY_SWITCHER",34),c5e=new Ii("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),U6=new Ii("LABEL_SIDE_SELECTOR",36),k5e=new Ii("HYPEREDGE_DUMMY_MERGER",37),w5e=new Ii("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),A5e=new Ii("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),NI=new Ii("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),d5e=new Ii("CONSTRAINTS_POSTPROCESSOR",41),l5e=new Ii("COMMENT_POSTPROCESSOR",42),C5e=new Ii("HYPERNODE_PROCESSOR",43),x5e=new Ii("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),Gne=new Ii("LONG_EDGE_JOINER",45),iz=new Ii("SELF_LOOP_POSTPROCESSOR",46),a5e=new Ii("BREAKING_POINT_REMOVER",47),ez=new Ii("NORTH_SOUTH_PORT_POSTPROCESSOR",48),E5e=new Ii("HORIZONTAL_COMPACTOR",49),ZB=new Ii("LABEL_DUMMY_REMOVER",50),m5e=new Ii("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),g5e=new Ii("END_LABEL_SORTER",52),nz=new Ii("REVERSED_EDGE_RESTORER",53),XB=new Ii("END_LABEL_POSTPROCESSOR",54),v5e=new Ii("HIERARCHICAL_NODE_RESIZER",55),h5e=new Ii("DIRECTION_POSTPROCESSOR",56)}function Mwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at,on,en,En,kr,Ui,Ku,xl,tv,Mp,$_,M9,L_,TE,Eoe,hkt,koe,Dp,nv,AE,F_,B_,X4,Coe,D9,pkt,BIe,rv,N9,Ioe,K4,j9,cw,R9,Toe,gkt;for(BIe=0,kr=t,xl=0,$_=kr.length;xl<$_;++xl)for(en=kr[xl],nv=new Q(en.j);nv.a0&&(e.a[Dp.p]=BIe++)}for(j9=0,Ui=s,tv=0,M9=Ui.length;tv0;){for(Dp=(hn(B_.b>0),h(B_.a.Xb(B_.c=--B_.b),11)),F_=0,w=new Q(Dp.e);w.a0&&(Dp.j==(He(),Wt)?(e.a[Dp.p]=j9,++j9):(e.a[Dp.p]=j9+L_+Eoe,++Eoe))}j9+=Eoe}for(AE=new Vn,q=new s1,En=t,Ku=0,Mp=En.length;KuC.b&&(C.b=X4)):Dp.i.c==pkt&&(X4C.c&&(C.c=X4));for(d8(W,0,W.length,null),K4=ge(An,nr,24,W.length,15,1),a=ge(An,nr,24,j9+1,15,1),oe=0;oe0;)Ye%2>0&&(l+=Toe[Ye+1]),Ye=(Ye-1)/2|0,++Toe[Ye];for(at=ge(tSt,rt,359,W.length*2,0,1),ve=0;ve'?":kt(Hmt,e)?"'(?<' or '(? toIndex: ",f2e=", toIndex: ",d2e="Index: ",h2e=", Size: ",tI="org.eclipse.elk.alg.common",Vr={62:1},kgt="org.eclipse.elk.alg.common.compaction",Cgt="Scanline/EventHandler",Fh="org.eclipse.elk.alg.common.compaction.oned",Igt="CNode belongs to another CGroup.",Tgt="ISpacingsHandler/1",aee="The ",cee=" instance has been finished already.",Agt="The direction ",Pgt=" is not supported by the CGraph instance.",Ogt="OneDimensionalCompactor",_gt="OneDimensionalCompactor/lambda$0$Type",Mgt="Quadruplet",Dgt="ScanlineConstraintCalculator",Ngt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",jgt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",Rgt="ScanlineConstraintCalculator/Timestamp",$gt="ScanlineConstraintCalculator/lambda$0$Type",Zd={169:1,45:1},uee="org.eclipse.elk.alg.common.compaction.options",zs="org.eclipse.elk.core.data",p2e="org.eclipse.elk.polyomino.traversalStrategy",g2e="org.eclipse.elk.polyomino.lowLevelSort",b2e="org.eclipse.elk.polyomino.highLevelSort",m2e="org.eclipse.elk.polyomino.fill",Fl={130:1},lee="polyomino",nI="org.eclipse.elk.alg.common.networksimplex",Bh={177:1,3:1,4:1},Lgt="org.eclipse.elk.alg.common.nodespacing",Hg="org.eclipse.elk.alg.common.nodespacing.cellsystem",C6="CENTER",Fgt={210:1,324:1},v2e={3:1,4:1,5:1,586:1},u4="LEFT",l4="RIGHT",y2e="Vertical alignment cannot be null",w2e="BOTTOM",xF="org.eclipse.elk.alg.common.nodespacing.internal",rI="UNDEFINED",vd=.01,iO="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",Bgt="LabelPlacer/lambda$0$Type",zgt="LabelPlacer/lambda$1$Type",Vgt="portRatioOrPosition",I6="org.eclipse.elk.alg.common.overlaps",fee="DOWN",Jd="org.eclipse.elk.alg.common.polyomino",SF="NORTH",dee="EAST",hee="SOUTH",pee="WEST",EF="org.eclipse.elk.alg.common.polyomino.structures",x2e="Direction",gee="Grid is only of size ",bee=". Requested point (",mee=") is out of bounds.",kF=" Given center based coordinates were (",oO="org.eclipse.elk.graph.properties",Ugt="IPropertyHolder",S2e={3:1,94:1,134:1},f4="org.eclipse.elk.alg.common.spore",Hgt="org.eclipse.elk.alg.common.utils",qg={207:1},M2="org.eclipse.elk.core",qgt="Connected Components Compaction",Wgt="org.eclipse.elk.alg.disco",CF="org.eclipse.elk.alg.disco.graph",vee="org.eclipse.elk.alg.disco.options",E2e="CompactionStrategy",k2e="org.eclipse.elk.disco.componentCompaction.strategy",C2e="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",I2e="org.eclipse.elk.disco.debug.discoGraph",T2e="org.eclipse.elk.disco.debug.discoPolys",Ggt="componentCompaction",Wg="org.eclipse.elk.disco",yee="org.eclipse.elk.spacing.componentComponent",wee="org.eclipse.elk.edge.thickness",d4="org.eclipse.elk.aspectRatio",Gg="org.eclipse.elk.padding",D2="org.eclipse.elk.alg.disco.transform",xee=1.5707963267948966,iI=17976931348623157e292,Ay={3:1,4:1,5:1,192:1},A2e={3:1,6:1,4:1,5:1,105:1,125:1},P2e="org.eclipse.elk.alg.force",O2e="ComponentsProcessor",Xgt="ComponentsProcessor/1",sO="org.eclipse.elk.alg.force.graph",Kgt="Component Layout",_2e="org.eclipse.elk.alg.force.model",IF="org.eclipse.elk.force.model",M2e="org.eclipse.elk.force.iterations",D2e="org.eclipse.elk.force.repulsivePower",See="org.eclipse.elk.force.temperature",eh=.001,Eee="org.eclipse.elk.force.repulsion",oI="org.eclipse.elk.alg.force.options",T6=1.600000023841858,yd="org.eclipse.elk.force",aO="org.eclipse.elk.priority",Py="org.eclipse.elk.spacing.nodeNode",kee="org.eclipse.elk.spacing.edgeLabel",TF="org.eclipse.elk.randomSeed",cO="org.eclipse.elk.separateConnectedComponents",uO="org.eclipse.elk.interactive",Cee="org.eclipse.elk.portConstraints",AF="org.eclipse.elk.edgeLabels.inline",N2e="origin",j2e="random",Ygt="boundingBox.upLeft",Qgt="boundingBox.lowRight",R2e="org.eclipse.elk.stress.fixed",$2e="org.eclipse.elk.stress.desiredEdgeLength",L2e="org.eclipse.elk.stress.dimension",F2e="org.eclipse.elk.stress.epsilon",B2e="org.eclipse.elk.stress.iterationLimit",h4="org.eclipse.elk.stress",Zgt="ELK Stress",PF="org.eclipse.elk.alg.force.stress",Jgt="Layered layout",p4="org.eclipse.elk.alg.layered",lO="org.eclipse.elk.alg.layered.compaction.components",sI="org.eclipse.elk.alg.layered.compaction.oned",OF="org.eclipse.elk.alg.layered.compaction.oned.algs",Xg="org.eclipse.elk.alg.layered.compaction.recthull",pp="org.eclipse.elk.alg.layered.components",ba={3:1,6:1,4:1,9:1,5:1,120:1},ebt={3:1,6:1,4:1,5:1,153:1,105:1,125:1},_F="org.eclipse.elk.alg.layered.compound",gi={52:1},tc="org.eclipse.elk.alg.layered.graph",Iee=" -> ",tbt="Not supported by LGraph",Tee={3:1,6:1,4:1,5:1,468:1,153:1,105:1,125:1},Kg={3:1,6:1,4:1,5:1,153:1,213:1,223:1,105:1,125:1},nbt={3:1,6:1,4:1,5:1,153:1,1915:1,223:1,105:1,125:1},rbt=`([{"' \r -`,ibt=`)]}"' \r -`,obt="The given string contains parts that cannot be parsed as numbers.",fO="org.eclipse.elk.core.math",sbt={3:1,4:1,141:1,205:1,409:1},abt={3:1,4:1,115:1,205:1,409:1},ln="org.eclipse.elk.layered",gp="org.eclipse.elk.alg.layered.graph.transform",cbt="ElkGraphImporter",ubt="ElkGraphImporter/lambda$0$Type",lbt="ElkGraphImporter/lambda$1$Type",fbt="ElkGraphImporter/lambda$2$Type",dbt="ElkGraphImporter/lambda$4$Type",hbt="Node margin calculation",Yt="org.eclipse.elk.alg.layered.intermediate",pbt="ONE_SIDED_GREEDY_SWITCH",gbt="TWO_SIDED_GREEDY_SWITCH",Aee="No implementation is available for the layout processor ",z2e="IntermediateProcessorStrategy",Pee="Node '",S0="NONE",bbt="FIRST_SEPARATE",mbt="LAST_SEPARATE",vbt="Odd port side processing",_i="org.eclipse.elk.alg.layered.intermediate.compaction",aI="org.eclipse.elk.alg.layered.intermediate.greedyswitch",zh="org.eclipse.elk.alg.layered.p3order.counting",dO={235:1},g4="org.eclipse.elk.alg.layered.intermediate.loops",qu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",E0="org.eclipse.elk.alg.layered.intermediate.loops.routing",cI="org.eclipse.elk.alg.layered.intermediate.preserveorder",th="org.eclipse.elk.alg.layered.intermediate.wrapping",Sa="org.eclipse.elk.alg.layered.options",Oee="INTERACTIVE",ybt="DEPTH_FIRST",wbt="EDGE_LENGTH",xbt="SELF_LOOPS",V2e="org.eclipse.elk.layered.considerModelOrder",U2e="org.eclipse.elk.layered.directionCongruency",H2e="org.eclipse.elk.layered.feedbackEdges",MF="org.eclipse.elk.layered.interactiveReferencePoint",q2e="org.eclipse.elk.layered.mergeEdges",W2e="org.eclipse.elk.layered.mergeHierarchyEdges",G2e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",X2e="org.eclipse.elk.layered.portSortingStrategy",K2e="org.eclipse.elk.layered.thoroughness",Y2e="org.eclipse.elk.layered.unnecessaryBendpoints",_ee="org.eclipse.elk.layered.cycleBreaking.strategy",hO="org.eclipse.elk.layered.layering.strategy",Q2e="org.eclipse.elk.layered.layering.layerConstraint",Z2e="org.eclipse.elk.layered.layering.layerChoiceConstraint",J2e="org.eclipse.elk.layered.layering.layerId",Mee="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Dee="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Nee="org.eclipse.elk.layered.layering.nodePromotion.strategy",jee="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Ree="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",uI="org.eclipse.elk.layered.crossingMinimization.strategy",$ee="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Lee="org.eclipse.elk.layered.crossingMinimization.semiInteractive",exe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",txe="org.eclipse.elk.layered.crossingMinimization.positionId",nxe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Fee="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",DF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",N2="org.eclipse.elk.layered.nodePlacement.strategy",NF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Bee="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",zee="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Vee="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Uee="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Hee="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",rxe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",ixe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",jF="org.eclipse.elk.layered.edgeRouting.splines.mode",RF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",qee="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",oxe="org.eclipse.elk.layered.spacing.baseValue",sxe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",axe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",cxe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",uxe="org.eclipse.elk.layered.priority.direction",lxe="org.eclipse.elk.layered.priority.shortness",fxe="org.eclipse.elk.layered.priority.straightness",Wee="org.eclipse.elk.layered.compaction.connectedComponents",dxe="org.eclipse.elk.layered.compaction.postCompaction.strategy",hxe="org.eclipse.elk.layered.compaction.postCompaction.constraints",$F="org.eclipse.elk.layered.highDegreeNodes.treatment",Gee="org.eclipse.elk.layered.highDegreeNodes.threshold",Xee="org.eclipse.elk.layered.highDegreeNodes.treeHeight",k1="org.eclipse.elk.layered.wrapping.strategy",LF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",FF="org.eclipse.elk.layered.wrapping.correctionFactor",lI="org.eclipse.elk.layered.wrapping.cutting.strategy",Kee="org.eclipse.elk.layered.wrapping.cutting.cuts",Yee="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",BF="org.eclipse.elk.layered.wrapping.validify.strategy",zF="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",VF="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",UF="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Qee="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",pxe="org.eclipse.elk.layered.edgeLabels.sideSelection",gxe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",Zee="layering",Sbt="layering.minWidth",Ebt="layering.nodePromotion",HF="crossingMinimization",qF="org.eclipse.elk.hierarchyHandling",kbt="crossingMinimization.greedySwitch",Cbt="nodePlacement",Ibt="nodePlacement.bk",Tbt="edgeRouting",pO="org.eclipse.elk.edgeRouting",nh="spacing",bxe="priority",mxe="compaction",Abt="compaction.postCompaction",Pbt="Specifies whether and how post-process compaction is applied.",vxe="highDegreeNodes",yxe="wrapping",Obt="wrapping.cutting",_bt="wrapping.validify",wxe="wrapping.multiEdge",Jee="edgeLabels",xxe="org.eclipse.elk.spacing.commentComment",Sxe="org.eclipse.elk.spacing.commentNode",Exe="org.eclipse.elk.spacing.edgeEdge",kxe="org.eclipse.elk.spacing.edgeNode",Cxe="org.eclipse.elk.spacing.labelLabel",Ixe="org.eclipse.elk.spacing.labelPort",Txe="org.eclipse.elk.spacing.labelNode",Axe="org.eclipse.elk.spacing.nodeSelfLoop",Pxe="org.eclipse.elk.spacing.portPort",Oxe="org.eclipse.elk.spacing.individual",_xe="org.eclipse.elk.port.borderOffset",Mxe="org.eclipse.elk.noLayout",Dxe="org.eclipse.elk.port.side",gO="org.eclipse.elk.debugMode",Nxe="org.eclipse.elk.alignment",jxe="org.eclipse.elk.insideSelfLoops.activate",Rxe="org.eclipse.elk.insideSelfLoops.yo",WF="org.eclipse.elk.nodeSize.constraints",ete="org.eclipse.elk.nodeSize.options",$xe="org.eclipse.elk.direction",Lxe="org.eclipse.elk.nodeLabels.placement",Fxe="org.eclipse.elk.nodeLabels.padding",Bxe="org.eclipse.elk.portLabels.placement",zxe="org.eclipse.elk.portLabels.nextToPortIfPossible",Vxe="org.eclipse.elk.portLabels.treatAsGroup",Uxe="org.eclipse.elk.portAlignment.default",Hxe="org.eclipse.elk.portAlignment.north",qxe="org.eclipse.elk.portAlignment.south",Wxe="org.eclipse.elk.portAlignment.west",Gxe="org.eclipse.elk.portAlignment.east",GF="org.eclipse.elk.contentAlignment",XF="org.eclipse.elk.nodeSize.minimum",Xxe="org.eclipse.elk.junctionPoints",Kxe="org.eclipse.elk.edgeLabels.placement",Yxe="org.eclipse.elk.port.index",Qxe="org.eclipse.elk.commentBox",Zxe="org.eclipse.elk.hypernode",Jxe="org.eclipse.elk.port.anchor",tte="org.eclipse.elk.partitioning.activate",nte="org.eclipse.elk.partitioning.partition",KF="org.eclipse.elk.position",e3e="org.eclipse.elk.margins",t3e="org.eclipse.elk.spacing.portsSurrounding",rte="org.eclipse.elk.interactiveLayout",ma="org.eclipse.elk.core.util",n3e={3:1,4:1,5:1,584:1},Mbt="NETWORK_SIMPLEX",vc={126:1,52:1},r3e="org.eclipse.elk.alg.layered.p1cycles",Oy="org.eclipse.elk.alg.layered.p2layers",i3e={451:1,235:1},Dbt={811:1,3:1,4:1},Eu="org.eclipse.elk.alg.layered.p3order",es="org.eclipse.elk.alg.layered.p4nodes",Nbt={3:1,4:1,5:1,819:1},rh=1e-5,k0="org.eclipse.elk.alg.layered.p4nodes.bk",ite="org.eclipse.elk.alg.layered.p5edges",zf="org.eclipse.elk.alg.layered.p5edges.orthogonal",ote="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",ste=1e-6,_y="org.eclipse.elk.alg.layered.p5edges.splines",ate=.09999999999999998,YF=1e-8,jbt=4.71238898038469,Rbt=3.141592653589793,fI="org.eclipse.elk.alg.mrtree",dI="org.eclipse.elk.alg.mrtree.graph",b4="org.eclipse.elk.alg.mrtree.intermediate",$bt="Set neighbors in level",Lbt="DESCENDANTS",o3e="org.eclipse.elk.mrtree.weighting",s3e="org.eclipse.elk.mrtree.searchOrder",QF="org.eclipse.elk.alg.mrtree.options",m4="org.eclipse.elk.mrtree",Fbt="org.eclipse.elk.tree",a3e="org.eclipse.elk.alg.radial",j2=6.283185307179586,c3e=5e-324,Bbt="org.eclipse.elk.alg.radial.intermediate",cte="org.eclipse.elk.alg.radial.intermediate.compaction",zbt={3:1,4:1,5:1,105:1},u3e="org.eclipse.elk.alg.radial.intermediate.optimization",ute="No implementation is available for the layout option ",hI="org.eclipse.elk.alg.radial.options",l3e="org.eclipse.elk.radial.orderId",f3e="org.eclipse.elk.radial.radius",lte="org.eclipse.elk.radial.compactor",fte="org.eclipse.elk.radial.compactionStepSize",d3e="org.eclipse.elk.radial.sorter",h3e="org.eclipse.elk.radial.wedgeCriteria",p3e="org.eclipse.elk.radial.optimizationCriteria",_m="org.eclipse.elk.radial",Vbt="org.eclipse.elk.alg.radial.p1position.wedge",g3e="org.eclipse.elk.alg.radial.sorting",Ubt=5.497787143782138,Hbt=3.9269908169872414,qbt=2.356194490192345,Wbt="org.eclipse.elk.alg.rectpacking",ZF="org.eclipse.elk.alg.rectpacking.firstiteration",dte="org.eclipse.elk.alg.rectpacking.options",b3e="org.eclipse.elk.rectpacking.optimizationGoal",m3e="org.eclipse.elk.rectpacking.lastPlaceShift",v3e="org.eclipse.elk.rectpacking.currentPosition",y3e="org.eclipse.elk.rectpacking.desiredPosition",w3e="org.eclipse.elk.rectpacking.onlyFirstIteration",x3e="org.eclipse.elk.rectpacking.rowCompaction",hte="org.eclipse.elk.rectpacking.expandToAspectRatio",S3e="org.eclipse.elk.rectpacking.targetWidth",JF="org.eclipse.elk.expandNodes",C1="org.eclipse.elk.rectpacking",bO="org.eclipse.elk.alg.rectpacking.util",eB="No implementation available for ",My="org.eclipse.elk.alg.spore",Dy="org.eclipse.elk.alg.spore.options",Mm="org.eclipse.elk.sporeCompaction",pte="org.eclipse.elk.underlyingLayoutAlgorithm",E3e="org.eclipse.elk.processingOrder.treeConstruction",k3e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",gte="org.eclipse.elk.processingOrder.preferredRoot",bte="org.eclipse.elk.processingOrder.rootSelection",mte="org.eclipse.elk.structure.structureExtractionStrategy",C3e="org.eclipse.elk.compaction.compactionStrategy",I3e="org.eclipse.elk.compaction.orthogonal",T3e="org.eclipse.elk.overlapRemoval.maxIterations",A3e="org.eclipse.elk.overlapRemoval.runScanline",vte="processingOrder",Gbt="overlapRemoval",A6="org.eclipse.elk.sporeOverlap",Xbt="org.eclipse.elk.alg.spore.p1structure",yte="org.eclipse.elk.alg.spore.p2processingorder",wte="org.eclipse.elk.alg.spore.p3execution",Kbt="Invalid index: ",P6="org.eclipse.elk.core.alg",R2={329:1},Ny={287:1},P3e="Make sure it's type is registered with the ",O3e=" utility class.",O6="true",xte="false",Ybt="Couldn't clone property '",Dm=.05,Bl="org.eclipse.elk.core.options",Qbt=1.2999999523162842,Nm="org.eclipse.elk.box",_3e="org.eclipse.elk.box.packingMode",Zbt="org.eclipse.elk.algorithm",Jbt="org.eclipse.elk.resolvedAlgorithm",M3e="org.eclipse.elk.bendPoints",emt="org.eclipse.elk.labelManager",tmt="org.eclipse.elk.scaleFactor",nmt="org.eclipse.elk.animate",rmt="org.eclipse.elk.animTimeFactor",imt="org.eclipse.elk.layoutAncestors",omt="org.eclipse.elk.maxAnimTime",smt="org.eclipse.elk.minAnimTime",amt="org.eclipse.elk.progressBar",cmt="org.eclipse.elk.validateGraph",umt="org.eclipse.elk.validateOptions",lmt="org.eclipse.elk.zoomToFit",D3e="org.eclipse.elk.nodeSize.fixedGraphSize",fmt="org.eclipse.elk.font.name",dmt="org.eclipse.elk.font.size",hmt="org.eclipse.elk.edge.type",pmt="partitioning",gmt="nodeLabels",tB="portAlignment",Ste="nodeSize",Ete="port",N3e="portLabels",bmt="insideSelfLoops",pI="org.eclipse.elk.fixed",nB="org.eclipse.elk.random",mmt="port must have a parent node to calculate the port side",vmt="The edge needs to have exactly one edge section. Found: ",mO="org.eclipse.elk.core.util.adapters",bl="org.eclipse.emf.ecore",$2="org.eclipse.elk.graph",ymt="EMapPropertyHolder",wmt="ElkBendPoint",xmt="ElkGraphElement",Smt="ElkConnectableShape",j3e="ElkEdge",Emt="ElkEdgeSection",kmt="EModelElement",Cmt="ENamedElement",R3e="ElkLabel",$3e="ElkNode",L3e="ElkPort",Imt={91:1,89:1},v4="org.eclipse.emf.common.notify.impl",C0="The feature '",gI="' is not a valid changeable feature",Tmt="Expecting null",kte="' is not a valid feature",Amt="The feature ID",Pmt=" is not a valid feature ID",la=32768,Omt={104:1,91:1,89:1,55:1,48:1,96:1},zt="org.eclipse.emf.ecore.impl",Yg="org.eclipse.elk.graph.impl",bI="Recursive containment not allowed for ",_6="The datatype '",jm="' is not a valid classifier",Cte="The value '",L2={190:1,3:1,4:1},Ite="The class '",M6="http://www.eclipse.org/elk/ElkGraph",F3e="property",mI="value",Tte="source",_mt="properties",Mmt="identifier",Ate="height",Pte="width",Ote="parent",_te="text",Mte="children",Dmt="hierarchical",B3e="sources",Dte="targets",z3e="sections",rB="bendPoints",V3e="outgoingShape",U3e="incomingShape",H3e="outgoingSections",q3e="incomingSections",Do="org.eclipse.emf.common.util",W3e="Severe implementation error in the Json to ElkGraph importer.",ih="id",mo="org.eclipse.elk.graph.json",G3e="Unhandled parameter types: ",Nmt="startPoint",jmt="An edge must have at least one source and one target (edge id: '",D6="').",Rmt="Referenced edge section does not exist: ",$mt=" (edge id: '",X3e="target",Lmt="sourcePoint",Fmt="targetPoint",iB="group",pr="name",Bmt="connectableShape cannot be null",Nte="Passed edge is not 'simple'.",vO="The 'no duplicates' constraint is violated",jte="targetIndex=",Qg=", size=",Rte="sourceIndex=",oh={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1},$te={3:1,4:1,19:1,28:1,51:1,15:1,49:1,14:1,53:1,66:1,60:1,57:1,579:1},Lte="org.eclipse.elk.graph.util",oB="logging",zmt="measureExecutionTime",Vmt="parser.parse.1",Umt="parser.parse.2",sB="parser.next.1",Fte="parser.next.2",Hmt="parser.next.3",qmt="parser.next.4",Zg="parser.factor.1",K3e="parser.factor.2",Wmt="parser.factor.3",Gmt="parser.factor.4",Xmt="parser.factor.5",Kmt="parser.factor.6",Ymt="parser.atom.1",Qmt="parser.atom.2",Zmt="parser.atom.3",Y3e="parser.atom.4",Bte="parser.atom.5",Q3e="parser.cc.1",aB="parser.cc.2",Jmt="parser.cc.3",evt="parser.cc.5",Z3e="parser.cc.6",J3e="parser.cc.7",zte="parser.cc.8",tvt="parser.ope.1",nvt="parser.ope.2",rvt="parser.ope.3",bp="parser.descape.1",ivt="parser.descape.2",ovt="parser.descape.3",svt="parser.descape.4",avt="parser.descape.5",ml="parser.process.1",cvt="parser.quantifier.1",uvt="parser.quantifier.2",lvt="parser.quantifier.3",fvt="parser.quantifier.4",e4e="parser.quantifier.5",dvt="org.eclipse.emf.common.notify",t4e={410:1,660:1},hvt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1},yO={363:1,142:1},vI="index=",Vte={3:1,4:1,5:1,124:1},pvt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,57:1},n4e={3:1,6:1,4:1,5:1,192:1},gvt={3:1,4:1,5:1,164:1,364:1},mf=1024,bvt=";/?:@&=+$,",mvt="invalid authority: ",vvt="EAnnotation",yvt="ETypedElement",wvt="EStructuralFeature",xvt="EAttribute",Svt="EClassifier",Evt="EEnumLiteral",kvt="EGenericType",Cvt="EOperation",Ivt="EParameter",Tvt="EReference",Avt="ETypeParameter",Jr="org.eclipse.emf.ecore.util",Ute={76:1},r4e={3:1,19:1,15:1,14:1,57:1,580:1,76:1,67:1,95:1},Pvt="org.eclipse.emf.ecore.util.FeatureMap$Entry",Nc=8192,jy=2048,yI="byte",cB="char",wI="double",xI="float",SI="int",EI="long",kI="short",Ovt="java.lang.Object",F2={3:1,4:1,5:1,246:1},i4e={3:1,4:1,5:1,661:1},_vt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,67:1},_s={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,76:1,67:1,95:1},wO="mixed",Kn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",zl="kind",Mvt={3:1,4:1,5:1,662:1},o4e={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1,76:1,67:1,95:1},uB={19:1,28:1,51:1,15:1,14:1,57:1,67:1},lB={49:1,123:1,277:1},fB={71:1,330:1},dB="The value of type '",hB="' must be of type '",B2=1287,Vl="http://www.eclipse.org/emf/2002/Ecore",pB=-32768,Rm="constraints",Io="baseType",Dvt="getEStructuralFeature",Nvt="getFeatureID",CI="feature",jvt="getOperationID",s4e="operation",Rvt="defaultValue",$vt="eTypeParameters",Lvt="isInstance",Fvt="getEEnumLiteral",Bvt="eContainingClass",ur={54:1},zvt={3:1,4:1,5:1,118:1},Vvt="org.eclipse.emf.ecore.resource",Uvt={91:1,89:1,582:1,1907:1},Hte="org.eclipse.emf.ecore.resource.impl",a4e="unspecified",xO="simple",gB="attribute",Hvt="attributeWildcard",bB="element",qte="elementWildcard",Vf="collapse",Wte="itemType",mB="namespace",SO="##targetNamespace",Ul="whiteSpace",c4e="wildcards",Jg="http://www.eclipse.org/emf/2003/XMLType",Gte="##any",N6="uninitialized",EO="The multiplicity constraint is violated",vB="org.eclipse.emf.ecore.xml.type",qvt="ProcessingInstruction",Wvt="SimpleAnyType",Gvt="XMLTypeDocumentRoot",Ai="org.eclipse.emf.ecore.xml.type.impl",kO="INF",Xvt="processing",Kvt="ENTITIES_._base",u4e="minLength",l4e="ENTITY",yB="NCName",Yvt="IDREFS_._base",f4e="integer",Xte="token",Kte="pattern",Qvt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",d4e="\\i\\c*",Zvt="[\\i-[:]][\\c-[:]]*",Jvt="nonPositiveInteger",CO="maxInclusive",h4e="NMTOKEN",eyt="NMTOKENS_._base",p4e="nonNegativeInteger",IO="minInclusive",tyt="normalizedString",nyt="unsignedByte",ryt="unsignedInt",iyt="18446744073709551615",oyt="unsignedShort",syt="processingInstruction",mp="org.eclipse.emf.ecore.xml.type.internal",j6=1114111,ayt="Internal Error: shorthands: \\u",II="xml:isDigit",Yte="xml:isWord",Qte="xml:isSpace",Zte="xml:isNameChar",Jte="xml:isInitialNameChar",cyt="09\u0660\u0669\u06F0\u06F9\u0966\u096F\u09E6\u09EF\u0A66\u0A6F\u0AE6\u0AEF\u0B66\u0B6F\u0BE7\u0BEF\u0C66\u0C6F\u0CE6\u0CEF\u0D66\u0D6F\u0E50\u0E59\u0ED0\u0ED9\u0F20\u0F29",uyt="AZaz\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u0386\u0386\u0388\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0641\u064A\u0671\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06D5\u06E5\u06E6\u0905\u0939\u093D\u093D\u0958\u0961\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09DC\u09DD\u09DF\u09E1\u09F0\u09F1\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59\u0A5C\u0A5E\u0A5E\u0A72\u0A74\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABD\u0ABD\u0AE0\u0AE0\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3D\u0B3D\u0B5C\u0B5D\u0B5F\u0B61\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C60\u0C61\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CDE\u0CDE\u0CE0\u0CE1\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D60\u0D61\u0E01\u0E2E\u0E30\u0E30\u0E32\u0E33\u0E40\u0E45\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB0\u0EB2\u0EB3\u0EBD\u0EBD\u0EC0\u0EC4\u0F40\u0F47\u0F49\u0F69\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30A1\u30FA\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3",lyt="Private Use",ene="ASSIGNED",tne="\0\x7F\x80\xFF\u0100\u017F\u0180\u024F\u0250\u02AF\u02B0\u02FF\u0300\u036F\u0370\u03FF\u0400\u04FF\u0530\u058F\u0590\u05FF\u0600\u06FF\u0700\u074F\u0780\u07BF\u0900\u097F\u0980\u09FF\u0A00\u0A7F\u0A80\u0AFF\u0B00\u0B7F\u0B80\u0BFF\u0C00\u0C7F\u0C80\u0CFF\u0D00\u0D7F\u0D80\u0DFF\u0E00\u0E7F\u0E80\u0EFF\u0F00\u0FFF\u1000\u109F\u10A0\u10FF\u1100\u11FF\u1200\u137F\u13A0\u13FF\u1400\u167F\u1680\u169F\u16A0\u16FF\u1780\u17FF\u1800\u18AF\u1E00\u1EFF\u1F00\u1FFF\u2000\u206F\u2070\u209F\u20A0\u20CF\u20D0\u20FF\u2100\u214F\u2150\u218F\u2190\u21FF\u2200\u22FF\u2300\u23FF\u2400\u243F\u2440\u245F\u2460\u24FF\u2500\u257F\u2580\u259F\u25A0\u25FF\u2600\u26FF\u2700\u27BF\u2800\u28FF\u2E80\u2EFF\u2F00\u2FDF\u2FF0\u2FFF\u3000\u303F\u3040\u309F\u30A0\u30FF\u3100\u312F\u3130\u318F\u3190\u319F\u31A0\u31BF\u3200\u32FF\u3300\u33FF\u3400\u4DB5\u4E00\u9FFF\uA000\uA48F\uA490\uA4CF\uAC00\uD7A3\uE000\uF8FF\uF900\uFAFF\uFB00\uFB4F\uFB50\uFDFF\uFE20\uFE2F\uFE30\uFE4F\uFE50\uFE6F\uFE70\uFEFE\uFEFF\uFEFF\uFF00\uFFEF",g4e="UNASSIGNED",R6={3:1,117:1},fyt="org.eclipse.emf.ecore.xml.type.util",wB={3:1,4:1,5:1,365:1},b4e="org.eclipse.xtext.xbase.lib",dyt="Cannot add elements to a Range",hyt="Cannot set elements in a Range",pyt="Cannot remove elements from a Range",xB="locale",SB="default",EB="user.agent",b,kB,nne;m.goog=m.goog||{},m.goog.global=m.goog.global||m,Ifn(),_(1,null,{},x),b.Fb=function(t){return kQe(this,t)},b.Gb=function(){return this.bm},b.Hb=function(){return Kb(this)},b.Ib=function(){var t;return Xp(ru(this))+"@"+(t=ri(this)>>>0,t.toString(16))},b.equals=function(e){return this.Fb(e)},b.hashCode=function(){return this.Hb()},b.toString=function(){return this.Ib()};var gyt,byt,myt;_(289,1,{289:1,1995:1},Qbe),b.le=function(t){var s;return s=new Qbe,s.i=4,t>1?s.c=Bnt(this,t-1):s.c=this,s},b.me=function(){return a1(this),this.b},b.ne=function(){return Xp(this)},b.oe=function(){return a1(this),this.k},b.pe=function(){return(this.i&4)!=0},b.qe=function(){return(this.i&1)!=0},b.Ib=function(){return fbe(this)},b.i=0;var dn=D(Bs,"Object",1),m4e=D(Bs,"Class",289);_(1967,1,XP),D(KP,"Optional",1967),_(1143,1967,XP,E),b.Fb=function(t){return t===this},b.Hb=function(){return 2040732332},b.Ib=function(){return"Optional.absent()"},b.Jb=function(t){return Un(t),sC(),rne};var rne;D(KP,"Absent",1143),_(620,1,{},iX),D(KP,"Joiner",620);var $wn=ii(KP,"Predicate");_(573,1,{169:1,573:1,3:1,45:1},LUe),b.Mb=function(t){return Cct(this,t)},b.Lb=function(t){return Cct(this,t)},b.Fb=function(t){var s;return ue(t,573)?(s=h(t,573),Fye(this.a,s.a)):!1},b.Hb=function(){return rme(this.a)+306654252},b.Ib=function(){return ldn(this.a)},D(KP,"Predicates/AndPredicate",573),_(403,1967,{403:1,3:1},zN),b.Fb=function(t){var s;return ue(t,403)?(s=h(t,403),Ar(this.a,s.a)):!1},b.Hb=function(){return 1502476572+ri(this.a)},b.Ib=function(){return egt+this.a+")"},b.Jb=function(t){return new zN(FR(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},D(KP,"Present",403),_(197,1,y6),b.Nb=function(t){wo(this,t)},b.Qb=function(){wXe()},D(Pt,"UnmodifiableIterator",197),_(1948,197,w6),b.Qb=function(){wXe()},b.Rb=function(t){throw ee(new jn)},b.Wb=function(t){throw ee(new jn)},D(Pt,"UnmodifiableListIterator",1948),_(381,1948,w6),b.Ob=function(){return this.c0},b.Pb=function(){if(this.c>=this.d)throw ee(new aa);return this.Xb(this.c++)},b.Tb=function(){return this.c},b.Ub=function(){if(this.c<=0)throw ee(new aa);return this.Xb(--this.c)},b.Vb=function(){return this.c-1},b.c=0,b.d=0,D(Pt,"AbstractIndexedListIterator",381),_(679,197,y6),b.Ob=function(){return JY(this)},b.Pb=function(){return ibe(this)},b.e=1,D(Pt,"AbstractIterator",679),_(1958,1,{222:1}),b.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},b.Fb=function(t){return gQ(this,t)},b.Hb=function(){return ri(this.Zb())},b.dc=function(){return this.gc()==0},b.ec=function(){return D3(this)},b.Ib=function(){return Fs(this.Zb())},D(Pt,"AbstractMultimap",1958),_(713,1958,Vg),b.$b=function(){Sbe(this)},b._b=function(t){return this.c._b(t)},b.ac=function(){return new zw(this,this.c)},b.ic=function(t){return this.hc()},b.bc=function(){return new Qw(this,this.c)},b.jc=function(){return this.kc(this.hc())},b.cc=function(t){return Br(this,t)},b.fc=function(t){return sP(this,t)},b.gc=function(){return this.d},b.kc=function(t){return Mt(),new VS(t)},b.lc=function(){return new Dst(this)},b.mc=function(){return Pft(this.c.Ac().Lc(),new k,64,this.d)},b.nc=function(t,s){return new d$(this,t,s,null)},b.d=0,D(Pt,"AbstractMapBasedMultimap",713),_(1601,713,Vg),b.hc=function(){return new Ba(this.a)},b.jc=function(){return Mt(),Mt(),qo},b.cc=function(t){return h(Br(this,t),14)},b.fc=function(t){return h(sP(this,t),14)},b.Zb=function(){var t;return t=this.f,t||(this.f=new zw(this,this.c))},b.Fb=function(t){return gQ(this,t)},b.oc=function(t){return h(Br(this,t),14)},b.pc=function(t){return h(sP(this,t),14)},b.kc=function(t){return xA(h(t,14))},b.nc=function(t,s){return Xrt(this,t,h(s,14),null)},D(Pt,"AbstractListMultimap",1601),_(1079,1,bo),b.Nb=function(t){wo(this,t)},b.Ob=function(){return this.c.Ob()||this.e.Ob()},b.Pb=function(){var t;return this.e.Ob()||(t=h(this.c.Pb(),43),this.b=t.ad(),this.a=h(t.bd(),15),this.e=this.a.Ic()),this.qc(this.b,this.e.Pb())},b.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},D(Pt,"AbstractMapBasedMultimap/Itr",1079),_(1080,1079,bo,Dst),b.qc=function(t,s){return s},D(Pt,"AbstractMapBasedMultimap/1",1080),_(1081,1,{},k),b.Kb=function(t){return h(t,15).Lc()},D(Pt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1081);var v4e=ii(wn,"Map");_(1949,1,Pm),b.uc=function(t){w8(this,t)},b.wc=function(t,s,a){return _Q(this,t,s,a)},b.$b=function(){this.tc().$b()},b.rc=function(t){return aZ(this,t)},b._b=function(t){return!!Uve(this,t,!1)},b.sc=function(t){var s,a,l;for(a=this.tc().Ic();a.Ob();)if(s=h(a.Pb(),43),l=s.bd(),Pe(t)===Pe(l)||t!=null&&Ar(t,l))return!0;return!1},b.Fb=function(t){var s,a,l;if(t===this)return!0;if(!ue(t,84)||(l=h(t,84),this.gc()!=l.gc()))return!1;for(a=l.tc().Ic();a.Ob();)if(s=h(a.Pb(),43),!this.rc(s))return!1;return!0},b.vc=function(t){return Gs(Uve(this,t,!1))},b.Hb=function(){return Xbe(this.tc())},b.dc=function(){return this.gc()==0},b.ec=function(){return new zS(this)},b.xc=function(t,s){throw ee(new G1("Put not supported on this map"))},b.yc=function(t){y8(this,t)},b.zc=function(t){return Gs(Uve(this,t,!0))},b.gc=function(){return this.tc().gc()},b.Ib=function(){return Sft(this)},b.Ac=function(){return new o1(this)},D(wn,"AbstractMap",1949),_(1959,1949,Pm),b.bc=function(){return new fj(this)},b.tc=function(){var t;return t=this.f,t||(this.f=this.Bc())},b.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},b.Ac=function(){var t;return t=this.i,t||(this.i=new TKe(this))},D(Pt,"Maps/ViewCachingAbstractMap",1959),_(316,1959,Pm,zw),b.vc=function(t){return qnn(this,t)},b.zc=function(t){return oon(this,t)},b.$b=function(){this.d==this.e.c?this.e.$b():mR(new p0e(this))},b._b=function(t){return Jct(this.d,t)},b.Cc=function(){return new FUe(this)},b.Bc=function(){return this.Cc()},b.Fb=function(t){return this===t||Ar(this.d,t)},b.Hb=function(){return ri(this.d)},b.ec=function(){return this.e.ec()},b.gc=function(){return this.d.gc()},b.Ib=function(){return Fs(this.d)},D(Pt,"AbstractMapBasedMultimap/AsMap",316);var sh=ii(Bs,"Iterable");_(28,1,Cy),b.Hc=function(t){Eo(this,t)},b.Jc=function(){return this.Mc()},b.Lc=function(){return new Lt(this,0)},b.Mc=function(){return new Rt(null,this.Lc())},b.Dc=function(t){throw ee(new G1("Add not supported on this collection"))},b.Ec=function(t){return ks(this,t)},b.$b=function(){rge(this)},b.Fc=function(t){return ay(this,t,!1)},b.Gc=function(t){return eP(this,t)},b.dc=function(){return this.gc()==0},b.Kc=function(t){return ay(this,t,!0)},b.Nc=function(){return T0e(this)},b.Oc=function(t){return wP(this,t)},b.Ib=function(){return b0(this)},D(wn,"AbstractCollection",28);var Hl=ii(wn,"Set");_(md,28,au),b.Lc=function(){return new Lt(this,1)},b.Fb=function(t){return Kut(this,t)},b.Hb=function(){return Xbe(this)},D(wn,"AbstractSet",md),_(1939,md,au),D(Pt,"Sets/ImprovedAbstractSet",1939),_(1940,1939,au),b.$b=function(){this.Pc().$b()},b.Fc=function(t){return _ut(this,t)},b.dc=function(){return this.Pc().dc()},b.Kc=function(t){var s;return this.Fc(t)?(s=h(t,43),this.Pc().ec().Kc(s.ad())):!1},b.gc=function(){return this.Pc().gc()},D(Pt,"Maps/EntrySet",1940),_(1077,1940,au,FUe),b.Fc=function(t){return bme(this.a.d.tc(),t)},b.Ic=function(){return new p0e(this.a)},b.Pc=function(){return this.a},b.Kc=function(t){var s;return bme(this.a.d.tc(),t)?(s=h(t,43),Mtn(this.a.e,s.ad()),!0):!1},b.Lc=function(){return mK(this.a.d.tc().Lc(),new BUe(this.a))},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1077),_(1078,1,{},BUe),b.Kb=function(t){return Bit(this.a,h(t,43))},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1078),_(717,1,bo,p0e),b.Nb=function(t){wo(this,t)},b.Pb=function(){var t;return t=h(this.b.Pb(),43),this.a=h(t.bd(),15),Bit(this.c,t)},b.Ob=function(){return this.b.Ob()},b.Qb=function(){s2(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",717),_(524,1939,au,fj),b.$b=function(){this.b.$b()},b.Fc=function(t){return this.b._b(t)},b.Hc=function(t){Un(t),this.b.uc(new ZUe(t))},b.dc=function(){return this.b.dc()},b.Ic=function(){return new uXe(this.b.tc().Ic())},b.Kc=function(t){return this.b._b(t)?(this.b.zc(t),!0):!1},b.gc=function(){return this.b.gc()},D(Pt,"Maps/KeySet",524),_(315,524,au,Qw),b.$b=function(){var t;mR((t=this.b.tc().Ic(),new Fhe(this,t)))},b.Gc=function(t){return this.b.ec().Gc(t)},b.Fb=function(t){return this===t||Ar(this.b.ec(),t)},b.Hb=function(){return ri(this.b.ec())},b.Ic=function(){var t;return t=this.b.tc().Ic(),new Fhe(this,t)},b.Kc=function(t){var s,a;return a=0,s=h(this.b.zc(t),15),s&&(a=s.gc(),s.$b(),this.a.d-=a),a>0},b.Lc=function(){return this.b.ec().Lc()},D(Pt,"AbstractMapBasedMultimap/KeySet",315),_(718,1,bo,Fhe),b.Nb=function(t){wo(this,t)},b.Ob=function(){return this.c.Ob()},b.Pb=function(){return this.a=h(this.c.Pb(),43),this.a.ad()},b.Qb=function(){var t;s2(!!this.a),t=h(this.a.bd(),15),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},D(Pt,"AbstractMapBasedMultimap/KeySet/1",718),_(484,316,{84:1,161:1},oA),b.bc=function(){return this.Qc()},b.ec=function(){return this.Rc()},b.Qc=function(){return new MT(this.c,this.Sc())},b.Rc=function(){var t;return t=this.b,t||(this.b=this.Qc())},b.Sc=function(){return h(this.d,161)},D(Pt,"AbstractMapBasedMultimap/SortedAsMap",484),_(536,484,tgt,iR),b.bc=function(){return new JS(this.a,h(h(this.d,161),171))},b.Qc=function(){return new JS(this.a,h(h(this.d,161),171))},b.ec=function(){var t;return t=this.b,h(t||(this.b=new JS(this.a,h(h(this.d,161),171))),270)},b.Rc=function(){var t;return t=this.b,h(t||(this.b=new JS(this.a,h(h(this.d,161),171))),270)},b.Sc=function(){return h(h(this.d,161),171)},D(Pt,"AbstractMapBasedMultimap/NavigableAsMap",536),_(483,315,ngt,MT),b.Lc=function(){return this.b.ec().Lc()},D(Pt,"AbstractMapBasedMultimap/SortedKeySet",483),_(385,483,e2e,JS),D(Pt,"AbstractMapBasedMultimap/NavigableKeySet",385),_(535,28,Cy,d$),b.Dc=function(t){var s,a;return iu(this),a=this.d.dc(),s=this.d.Dc(t),s&&(++this.f.d,a&&uA(this)),s},b.Ec=function(t){var s,a,l;return t.dc()?!1:(l=(iu(this),this.d.gc()),s=this.d.Ec(t),s&&(a=this.d.gc(),this.f.d+=a-l,l==0&&uA(this)),s)},b.$b=function(){var t;t=(iu(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,SR(this))},b.Fc=function(t){return iu(this),this.d.Fc(t)},b.Gc=function(t){return iu(this),this.d.Gc(t)},b.Fb=function(t){return t===this?!0:(iu(this),Ar(this.d,t))},b.Hb=function(){return iu(this),ri(this.d)},b.Ic=function(){return iu(this),new t0e(this)},b.Kc=function(t){var s;return iu(this),s=this.d.Kc(t),s&&(--this.f.d,SR(this)),s},b.gc=function(){return dQe(this)},b.Lc=function(){return iu(this),this.d.Lc()},b.Ib=function(){return iu(this),Fs(this.d)},D(Pt,"AbstractMapBasedMultimap/WrappedCollection",535);var vl=ii(wn,"List");_(715,535,{19:1,28:1,15:1,14:1},k0e),b.$c=function(t){o2(this,t)},b.Lc=function(){return iu(this),this.d.Lc()},b.Tc=function(t,s){var a;iu(this),a=this.d.dc(),h(this.d,14).Tc(t,s),++this.a.d,a&&uA(this)},b.Uc=function(t,s){var a,l,f;return s.dc()?!1:(f=(iu(this),this.d.gc()),a=h(this.d,14).Uc(t,s),a&&(l=this.d.gc(),this.a.d+=l-f,f==0&&uA(this)),a)},b.Xb=function(t){return iu(this),h(this.d,14).Xb(t)},b.Vc=function(t){return iu(this),h(this.d,14).Vc(t)},b.Wc=function(){return iu(this),new HQe(this)},b.Xc=function(t){return iu(this),new Ztt(this,t)},b.Yc=function(t){var s;return iu(this),s=h(this.d,14).Yc(t),--this.a.d,SR(this),s},b.Zc=function(t,s){return iu(this),h(this.d,14).Zc(t,s)},b._c=function(t,s){return iu(this),Xrt(this.a,this.e,h(this.d,14)._c(t,s),this.b?this.b:this)},D(Pt,"AbstractMapBasedMultimap/WrappedList",715),_(1076,715,{19:1,28:1,15:1,14:1,53:1},AZe),D(Pt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1076),_(610,1,bo,t0e),b.Nb=function(t){wo(this,t)},b.Ob=function(){return v5(this),this.b.Ob()},b.Pb=function(){return v5(this),this.b.Pb()},b.Qb=function(){yZe(this)},D(Pt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",610),_(716,610,jh,HQe,Ztt),b.Qb=function(){yZe(this)},b.Rb=function(t){var s;s=dQe(this.a)==0,(v5(this),h(this.b,123)).Rb(t),++this.a.a.d,s&&uA(this.a)},b.Sb=function(){return(v5(this),h(this.b,123)).Sb()},b.Tb=function(){return(v5(this),h(this.b,123)).Tb()},b.Ub=function(){return(v5(this),h(this.b,123)).Ub()},b.Vb=function(){return(v5(this),h(this.b,123)).Vb()},b.Wb=function(t){(v5(this),h(this.b,123)).Wb(t)},D(Pt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",716),_(714,535,ngt,mpe),b.Lc=function(){return iu(this),this.d.Lc()},D(Pt,"AbstractMapBasedMultimap/WrappedSortedSet",714),_(1075,714,e2e,RQe),D(Pt,"AbstractMapBasedMultimap/WrappedNavigableSet",1075),_(1074,535,au,WZe),b.Lc=function(){return iu(this),this.d.Lc()},D(Pt,"AbstractMapBasedMultimap/WrappedSet",1074);var eb=ii(wn,"Map/Entry");_(342,1,pF),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Th(this.ad(),s.ad())&&Th(this.bd(),s.bd())):!1},b.Hb=function(){var t,s;return t=this.ad(),s=this.bd(),(t==null?0:ri(t))^(s==null?0:ri(s))},b.cd=function(t){throw ee(new jn)},b.Ib=function(){return this.ad()+"="+this.bd()},D(Pt,rgt,342),_(1960,28,Cy),b.$b=function(){SXe(this.dd())},b.Fc=function(t){var s;return ue(t,43)?(s=h(t,43),Rrn(this.dd(),s.ad(),s.bd())):!1},b.Kc=function(t){var s;return ue(t,43)?(s=h(t,43),Aat(this.dd(),s.ad(),s.bd())):!1},b.gc=function(){return this.dd().d},D(Pt,"Multimaps/Entries",1960),_(1082,1960,Cy),b.Ic=function(){return new Z1e(this.a)},b.dd=function(){return this.a},b.Lc=function(){return Grt(this.a)},D(Pt,"AbstractMultimap/Entries",1082),_(719,1082,au,mde),b.Lc=function(){return Grt(this.a)},b.Fb=function(t){return sye(this,t)},b.Hb=function(){return Iat(this)},D(Pt,"AbstractMultimap/EntrySet",719),_(720,28,Cy,vde),b.$b=function(){this.a.$b()},b.Fc=function(t){return Zin(this.a,t)},b.Ic=function(){return this.a.lc()},b.gc=function(){return this.a.d},b.Lc=function(){return this.a.mc()},D(Pt,"AbstractMultimap/Values",720),_(609,713,Vg),b.hc=function(){return this.ed()},b.jc=function(){return this.fd()},b.cc=function(t){return this.gd(t)},b.fc=function(t){return this.hd(t)},b.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},b.fd=function(){return Mt(),Mt(),OB},b.Fb=function(t){return gQ(this,t)},b.gd=function(t){return h(Br(this,t),21)},b.hd=function(t){return h(sP(this,t),21)},b.kc=function(t){return Mt(),new KS(h(t,21))},b.nc=function(t,s){return new WZe(this,t,h(s,21))},D(Pt,"AbstractSetMultimap",609),_(1627,609,Vg),b.hc=function(){return new Kp(this.b)},b.ed=function(){return new Kp(this.b)},b.jc=function(){return q0e(new Kp(this.b))},b.fd=function(){return q0e(new Kp(this.b))},b.cc=function(t){return h(h(Br(this,t),21),81)},b.gd=function(t){return h(h(Br(this,t),21),81)},b.fc=function(t){return h(h(sP(this,t),21),81)},b.hd=function(t){return h(h(sP(this,t),21),81)},b.kc=function(t){return ue(t,270)?q0e(h(t,270)):(Mt(),new epe(h(t,81)))},b.Zb=function(){var t;return t=this.f,t||(this.f=ue(this.c,171)?new iR(this,h(this.c,171)):ue(this.c,161)?new oA(this,h(this.c,161)):new zw(this,this.c))},b.nc=function(t,s){return ue(s,270)?new RQe(this,t,h(s,270)):new mpe(this,t,h(s,81))},D(Pt,"AbstractSortedSetMultimap",1627),_(1628,1627,Vg),b.Zb=function(){var t;return t=this.f,h(h(t||(this.f=ue(this.c,171)?new iR(this,h(this.c,171)):ue(this.c,161)?new oA(this,h(this.c,161)):new zw(this,this.c)),161),171)},b.ec=function(){var t;return t=this.i,h(h(t||(this.i=ue(this.c,171)?new JS(this,h(this.c,171)):ue(this.c,161)?new MT(this,h(this.c,161)):new Qw(this,this.c)),81),270)},b.bc=function(){return ue(this.c,171)?new JS(this,h(this.c,171)):ue(this.c,161)?new MT(this,h(this.c,161)):new Qw(this,this.c)},D(Pt,"AbstractSortedKeySortedSetMultimap",1628),_(1979,1,{1919:1}),b.Fb=function(t){return Xun(this,t)},b.Hb=function(){var t;return Xbe((t=this.g,t||(this.g=new MG(this))))},b.Ib=function(){var t;return Sft((t=this.f,t||(this.f=new X1e(this))))},D(Pt,"AbstractTable",1979),_(653,md,au,MG),b.$b=function(){xXe()},b.Fc=function(t){var s,a;return ue(t,462)?(s=h(t,669),a=h(nL(ytt(this.a),Zp(s.c.e,s.b)),84),!!a&&bme(a.tc(),new Vw(Zp(s.c.c,s.a),H3(s.c,s.b,s.a)))):!1},b.Ic=function(){return RZt(this.a)},b.Kc=function(t){var s,a;return ue(t,462)?(s=h(t,669),a=h(nL(ytt(this.a),Zp(s.c.e,s.b)),84),!!a&&yon(a.tc(),new Vw(Zp(s.c.c,s.a),H3(s.c,s.b,s.a)))):!1},b.gc=function(){return wet(this.a)},b.Lc=function(){return _en(this.a)},D(Pt,"AbstractTable/CellSet",653),_(w0,28,Cy,zUe),b.$b=function(){xXe()},b.Fc=function(t){return zln(this.a,t)},b.Ic=function(){return $Zt(this.a)},b.gc=function(){return wet(this.a)},b.Lc=function(){return Mrt(this.a)},D(Pt,"AbstractTable/Values",w0),_(1602,1601,Vg),D(Pt,"ArrayListMultimapGwtSerializationDependencies",1602),_(506,1602,Vg,rX,gge),b.hc=function(){return new Ba(this.a)},b.a=0,D(Pt,"ArrayListMultimap",506),_(652,1979,{652:1,1919:1,3:1},Ydt),D(Pt,"ArrayTable",652),_(1896,381,w6,uZe),b.Xb=function(t){return new Ybe(this.a,t)},D(Pt,"ArrayTable/1",1896),_(1897,1,{},VUe),b.jd=function(t){return new Ybe(this.a,t)},D(Pt,"ArrayTable/1methodref$getCell$Type",1897),_(1980,1,{669:1}),b.Fb=function(t){var s;return t===this?!0:ue(t,462)?(s=h(t,669),Th(Zp(this.c.e,this.b),Zp(s.c.e,s.b))&&Th(Zp(this.c.c,this.a),Zp(s.c.c,s.a))&&Th(H3(this.c,this.b,this.a),H3(s.c,s.b,s.a))):!1},b.Hb=function(){return tL(re(te(dn,1),rt,1,5,[Zp(this.c.e,this.b),Zp(this.c.c,this.a),H3(this.c,this.b,this.a)]))},b.Ib=function(){return"("+Zp(this.c.e,this.b)+","+Zp(this.c.c,this.a)+")="+H3(this.c,this.b,this.a)},D(Pt,"Tables/AbstractCell",1980),_(462,1980,{462:1,669:1},Ybe),b.a=0,b.b=0,b.d=0,D(Pt,"ArrayTable/2",462),_(1899,1,{},UUe),b.jd=function(t){return Kot(this.a,t)},D(Pt,"ArrayTable/2methodref$getValue$Type",1899),_(1898,381,w6,lZe),b.Xb=function(t){return Kot(this.a,t)},D(Pt,"ArrayTable/3",1898),_(1951,1949,Pm),b.$b=function(){mR(this.kd())},b.tc=function(){return new QUe(this)},b.ld=function(){return new qtt(this.kd(),this.gc())},D(Pt,"Maps/IteratorBasedAbstractMap",1951),_(807,1951,Pm),b.$b=function(){throw ee(new jn)},b._b=function(t){return tKe(this.c,t)},b.kd=function(){return new fZe(this,this.c.b.c.gc())},b.ld=function(){return SK(this.c.b.c.gc(),16,new HUe(this))},b.vc=function(t){var s;return s=h(qC(this.c,t),20),s?this.nd(s.a):null},b.dc=function(){return this.c.b.c.dc()},b.ec=function(){return OK(this.c)},b.xc=function(t,s){var a;if(a=h(qC(this.c,t),20),!a)throw ee(new Gt(this.md()+" "+t+" not in "+OK(this.c)));return this.od(a.a,s)},b.zc=function(t){throw ee(new jn)},b.gc=function(){return this.c.b.c.gc()},D(Pt,"ArrayTable/ArrayMap",807),_(1895,1,{},HUe),b.jd=function(t){return xtt(this.a,t)},D(Pt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1895),_(1893,342,pF,lKe),b.ad=function(){return nGt(this.a,this.b)},b.bd=function(){return this.a.nd(this.b)},b.cd=function(t){return this.a.od(this.b,t)},b.b=0,D(Pt,"ArrayTable/ArrayMap/1",1893),_(1894,381,w6,fZe),b.Xb=function(t){return xtt(this.a,t)},D(Pt,"ArrayTable/ArrayMap/2",1894),_(1892,807,Pm,stt),b.md=function(){return"Column"},b.nd=function(t){return H3(this.b,this.a,t)},b.od=function(t,s){return cct(this.b,this.a,t,s)},b.a=0,D(Pt,"ArrayTable/Row",1892),_(808,807,Pm,X1e),b.nd=function(t){return new stt(this.a,t)},b.xc=function(t,s){return h(s,84),FHt()},b.od=function(t,s){return h(s,84),BHt()},b.md=function(){return"Row"},D(Pt,"ArrayTable/RowMap",808),_(1093,1,Ll,fKe),b.qd=function(){return this.a.qd()&-262},b.rd=function(){return this.a.rd()},b.Nb=function(t){this.a.Nb(new hKe(t,this.b))},b.sd=function(t){return this.a.sd(new dKe(t,this.b))},D(Pt,"CollectSpliterators/1",1093),_(1094,1,un,dKe),b.td=function(t){this.a.td(this.b.Kb(t))},D(Pt,"CollectSpliterators/1/lambda$0$Type",1094),_(1095,1,un,hKe),b.td=function(t){this.a.td(this.b.Kb(t))},D(Pt,"CollectSpliterators/1/lambda$1$Type",1095),_(1096,1,Ll,eit),b.qd=function(){return this.a},b.rd=function(){return this.d&&(this.b=FQe(this.b,this.d.rd())),FQe(this.b,0)},b.Nb=function(t){this.d&&(this.d.Nb(t),this.d=null),this.c.Nb(new mKe(this.e,t)),this.b=0},b.sd=function(t){for(;;){if(!!this.d&&this.d.sd(t))return pC(this.b,gF)&&(this.b=p0(this.b,1)),!0;if(this.d=null,!this.c.sd(new pKe(this,this.e)))return!1}},b.a=0,b.b=0,D(Pt,"CollectSpliterators/1FlatMapSpliterator",1096),_(1097,1,un,pKe),b.td=function(t){oXt(this.a,this.b,t)},D(Pt,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1097),_(1098,1,un,mKe),b.td=function(t){HWt(this.b,this.a,t)},D(Pt,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1098),_(1090,1,Ll,kJe),b.qd=function(){return 16464|this.b},b.rd=function(){return this.a.rd()},b.Nb=function(t){this.a.xe(new bKe(t,this.c))},b.sd=function(t){return this.a.ye(new gKe(t,this.c))},b.b=0,D(Pt,"CollectSpliterators/1WithCharacteristics",1090),_(1091,1,YP,gKe),b.ud=function(t){this.a.td(this.b.jd(t))},D(Pt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1091),_(1092,1,YP,bKe),b.ud=function(t){this.a.td(this.b.jd(t))},D(Pt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1092),_(244,1,IJ),b.wd=function(t){return this.vd(h(t,244))},b.vd=function(t){var s;return t==(KG(),one)?1:t==(XG(),ine)?-1:(s=(hR(),GA(this.a,t.a)),s!=0?s:ue(this,512)==ue(t,512)?0:ue(this,512)?1:-1)},b.zd=function(){return this.a},b.Fb=function(t){return Xme(this,t)},D(Pt,"Cut",244),_(1732,244,IJ,vXe),b.vd=function(t){return t==this?0:1},b.xd=function(t){throw ee(new Jde)},b.yd=function(t){t.a+="+\u221E)"},b.zd=function(){throw ee(new Ws(ogt))},b.Hb=function(){return Sh(),ave(this)},b.Ad=function(t){return!1},b.Ib=function(){return"+\u221E"};var ine;D(Pt,"Cut/AboveAll",1732),_(512,244,{244:1,512:1,3:1,36:1},SZe),b.xd=function(t){ca((t.a+="(",t),this.a)},b.yd=function(t){r0(ca(t,this.a),93)},b.Hb=function(){return~ri(this.a)},b.Ad=function(t){return hR(),GA(this.a,t)<0},b.Ib=function(){return"/"+this.a+"\\"},D(Pt,"Cut/AboveValue",512),_(1731,244,IJ,yXe),b.vd=function(t){return t==this?0:-1},b.xd=function(t){t.a+="(-\u221E"},b.yd=function(t){throw ee(new Jde)},b.zd=function(){throw ee(new Ws(ogt))},b.Hb=function(){return Sh(),ave(this)},b.Ad=function(t){return!0},b.Ib=function(){return"-\u221E"};var one;D(Pt,"Cut/BelowAll",1731),_(1733,244,IJ,EZe),b.xd=function(t){ca((t.a+="[",t),this.a)},b.yd=function(t){r0(ca(t,this.a),41)},b.Hb=function(){return ri(this.a)},b.Ad=function(t){return hR(),GA(this.a,t)<=0},b.Ib=function(){return"\\"+this.a+"/"},D(Pt,"Cut/BelowValue",1733),_(529,1,Rh),b.Hc=function(t){Eo(this,t)},b.Ib=function(){return tsn(h(FR(this,"use Optional.orNull() instead of Optional.or(null)"),19).Ic())},D(Pt,"FluentIterable",529),_(426,529,Rh,jC),b.Ic=function(){return new bn(mn(this.a.Ic(),new j))},D(Pt,"FluentIterable/2",426),_(1010,529,Rh,OQe),b.Ic=function(){return yg(this)},D(Pt,"FluentIterable/3",1010),_(694,381,w6,K1e),b.Xb=function(t){return this.a[t].Ic()},D(Pt,"FluentIterable/3/1",694),_(1942,1,{}),b.Ib=function(){return Fs(this.Bd().b)},D(Pt,"ForwardingObject",1942),_(1943,1942,sgt),b.Bd=function(){return this.Cd()},b.Hc=function(t){Eo(this,t)},b.Jc=function(){return this.Mc()},b.Lc=function(){return new Lt(this,0)},b.Mc=function(){return new Rt(null,this.Lc())},b.Dc=function(t){return this.Cd(),DXe()},b.Ec=function(t){return this.Cd(),NXe()},b.$b=function(){this.Cd(),jXe()},b.Fc=function(t){return this.Cd().Fc(t)},b.Gc=function(t){return this.Cd().Gc(t)},b.dc=function(){return this.Cd().b.dc()},b.Ic=function(){return this.Cd().Ic()},b.Kc=function(t){return this.Cd(),RXe()},b.gc=function(){return this.Cd().b.gc()},b.Nc=function(){return this.Cd().Nc()},b.Oc=function(t){return this.Cd().Oc(t)},D(Pt,"ForwardingCollection",1943),_(1952,28,t2e),b.Ic=function(){return this.Ed()},b.Dc=function(t){throw ee(new jn)},b.Ec=function(t){throw ee(new jn)},b.$b=function(){throw ee(new jn)},b.Fc=function(t){return t!=null&&ay(this,t,!1)},b.Dd=function(){switch(this.gc()){case 0:return Xv(),Xv(),sne;case 1:return Xv(),new EK(Un(this.Ed().Pb()));default:return new ctt(this,this.Nc())}},b.Kc=function(t){throw ee(new jn)},D(Pt,"ImmutableCollection",1952),_(693,1952,t2e,Qde),b.Ic=function(){return q3(this.a.Ic())},b.Fc=function(t){return t!=null&&this.a.Fc(t)},b.Gc=function(t){return this.a.Gc(t)},b.dc=function(){return this.a.dc()},b.Ed=function(){return q3(this.a.Ic())},b.gc=function(){return this.a.gc()},b.Nc=function(){return this.a.Nc()},b.Oc=function(t){return this.a.Oc(t)},b.Ib=function(){return Fs(this.a)},D(Pt,"ForwardingImmutableCollection",693),_(151,1952,Y8),b.Ic=function(){return this.Ed()},b.Wc=function(){return this.Fd(0)},b.Xc=function(t){return this.Fd(t)},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b._c=function(t,s){return this.Gd(t,s)},b.Tc=function(t,s){throw ee(new jn)},b.Uc=function(t,s){throw ee(new jn)},b.Fb=function(t){return Zhn(this,t)},b.Hb=function(){return cin(this)},b.Vc=function(t){return t==null?-1:Ccn(this,t)},b.Ed=function(){return this.Fd(0)},b.Fd=function(t){return lpe(this,t)},b.Yc=function(t){throw ee(new jn)},b.Zc=function(t,s){throw ee(new jn)},b.Gd=function(t,s){var a;return oL((a=new AKe(this),new Ph(a,t,s)))};var sne;D(Pt,"ImmutableList",151),_(1975,151,Y8),b.Ic=function(){return q3(this.Hd().Ic())},b._c=function(t,s){return oL(this.Hd()._c(t,s))},b.Fc=function(t){return t!=null&&this.Hd().Fc(t)},b.Gc=function(t){return this.Hd().Gc(t)},b.Fb=function(t){return Ar(this.Hd(),t)},b.Xb=function(t){return Zp(this,t)},b.Hb=function(){return ri(this.Hd())},b.Vc=function(t){return this.Hd().Vc(t)},b.dc=function(){return this.Hd().dc()},b.Ed=function(){return q3(this.Hd().Ic())},b.gc=function(){return this.Hd().gc()},b.Gd=function(t,s){return oL(this.Hd()._c(t,s))},b.Nc=function(){return this.Hd().Oc(ge(dn,rt,1,this.Hd().gc(),5,1))},b.Oc=function(t){return this.Hd().Oc(t)},b.Ib=function(){return Fs(this.Hd())},D(Pt,"ForwardingImmutableList",1975),_(703,1,x6),b.tc=function(){return Jb(this)},b.uc=function(t){w8(this,t)},b.ec=function(){return OK(this)},b.wc=function(t,s,a){return _Q(this,t,s,a)},b.Ac=function(){return this.Ld()},b.$b=function(){throw ee(new jn)},b._b=function(t){return this.vc(t)!=null},b.sc=function(t){return this.Ld().Fc(t)},b.Jd=function(){return new bGe(this)},b.Kd=function(){return new mGe(this)},b.Fb=function(t){return Jin(this,t)},b.Hb=function(){return Jb(this).Hb()},b.dc=function(){return this.gc()==0},b.xc=function(t,s){return zHt()},b.zc=function(t){throw ee(new jn)},b.Ib=function(){return Ffn(this)},b.Ld=function(){return this.e?this.e:this.e=this.Kd()},b.c=null,b.d=null,b.e=null;var vyt;D(Pt,"ImmutableMap",703),_(704,703,x6),b._b=function(t){return tKe(this,t)},b.sc=function(t){return RKe(this.b,t)},b.Id=function(){return rut(new GUe(this))},b.Jd=function(){return rut(ztt(this.b))},b.Kd=function(){return qd(),new Qde(Vtt(this.b))},b.Fb=function(t){return $Ke(this.b,t)},b.vc=function(t){return qC(this,t)},b.Hb=function(){return ri(this.b.c)},b.dc=function(){return this.b.c.dc()},b.gc=function(){return this.b.c.gc()},b.Ib=function(){return Fs(this.b.c)},D(Pt,"ForwardingImmutableMap",704),_(1944,1943,TJ),b.Bd=function(){return this.Md()},b.Cd=function(){return this.Md()},b.Lc=function(){return new Lt(this,1)},b.Fb=function(t){return t===this||this.Md().Fb(t)},b.Hb=function(){return this.Md().Hb()},D(Pt,"ForwardingSet",1944),_(1053,1944,TJ,GUe),b.Bd=function(){return g5(this.a.b)},b.Cd=function(){return g5(this.a.b)},b.Fc=function(t){if(ue(t,43)&&h(t,43).ad()==null)return!1;try{return jKe(g5(this.a.b),t)}catch(s){if(s=ni(s),ue(s,203))return!1;throw ee(s)}},b.Md=function(){return g5(this.a.b)},b.Oc=function(t){var s;return s=Ent(g5(this.a.b),t),g5(this.a.b).b.gc()=0?"+":"")+(a/60|0),s=Vj(m.Math.abs(a)%60),(Rft(),Nyt)[this.q.getDay()]+" "+jyt[this.q.getMonth()]+" "+Vj(this.q.getDate())+" "+Vj(this.q.getHours())+":"+Vj(this.q.getMinutes())+":"+Vj(this.q.getSeconds())+" GMT"+t+s+" "+this.q.getFullYear()};var TB=D(wn,"Date",198);_(1887,198,ggt,sft),b.a=!1,b.b=0,b.c=0,b.d=0,b.e=0,b.f=0,b.g=!1,b.i=0,b.j=0,b.k=0,b.n=0,b.o=0,b.p=0,D("com.google.gwt.i18n.shared.impl","DateRecord",1887),_(1938,1,{}),b.fe=function(){return null},b.ge=function(){return null},b.he=function(){return null},b.ie=function(){return null},b.je=function(){return null},D(a4,"JSONValue",1938),_(214,1938,{214:1},cg,yde),b.Fb=function(t){return ue(t,214)?mge(this.a,h(t,214).a):!1},b.ee=function(){return uHt},b.Hb=function(){return cge(this.a)},b.fe=function(){return this},b.Ib=function(){var t,s,a;for(a=new ju("["),s=0,t=this.a.length;s0&&(a.a+=","),ca(a,ty(this,s));return a.a+="]",a.a},D(a4,"JSONArray",214),_(477,1938,{477:1},wde),b.ee=function(){return lHt},b.ge=function(){return this},b.Ib=function(){return Zt(),""+this.a},b.a=!1;var Cyt,Iyt;D(a4,"JSONBoolean",477),_(965,59,S1,lXe),D(a4,"JSONException",965),_(1011,1938,{},ne),b.ee=function(){return pHt},b.Ib=function(){return mc};var Tyt;D(a4,"JSONNull",1011),_(257,1938,{257:1},VN),b.Fb=function(t){return ue(t,257)?this.a==h(t,257).a:!1},b.ee=function(){return fHt},b.Hb=function(){return o5(this.a)},b.he=function(){return this},b.Ib=function(){return this.a+""},b.a=0,D(a4,"JSONNumber",257),_(185,1938,{185:1},v3,yT),b.Fb=function(t){return ue(t,185)?mge(this.a,h(t,185).a):!1},b.ee=function(){return dHt},b.Hb=function(){return cge(this.a)},b.ie=function(){return this},b.Ib=function(){var t,s,a,l,f,v,w;for(w=new ju("{"),t=!0,v=eQ(this,ge(Ze,Oe,2,0,6,1)),a=v,l=0,f=a.length;l=0?":"+this.c:"")+")"},b.c=0;var j4e=D(Bs,"StackTraceElement",308);myt={3:1,469:1,36:1,2:1};var Ze=D(Bs,n2e,2);_(106,412,{469:1},X1,fC,_l),D(Bs,"StringBuffer",106),_(98,412,{469:1},Wp,Dv,ju),D(Bs,"StringBuilder",98),_(674,73,YJ,Che),D(Bs,"StringIndexOutOfBoundsException",674),_(2012,1,{});var R4e;_(823,1,{},qe),b.Kb=function(t){return h(t,78).e},D(Bs,"Throwable/lambda$0$Type",823),_(41,59,{3:1,102:1,59:1,78:1,41:1},jn,G1),D(Bs,"UnsupportedOperationException",41),_(239,236,{3:1,36:1,236:1,239:1},VA,Lhe),b.wd=function(t){return lpt(this,h(t,239))},b.ke=function(){return gy(Gpt(this))},b.Fb=function(t){var s;return this===t?!0:ue(t,239)?(s=h(t,239),this.e==s.e&&lpt(this,s)==0):!1},b.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=gc(this.f),this.b=Pn(Li(t,-1)),this.b=33*this.b+Pn(Li(t0(t,32),-1)),this.b=17*this.b+Ci(this.e),this.b):(this.b=17*Qct(this.c)+Ci(this.e),this.b)},b.Ib=function(){return Gpt(this)},b.a=0,b.b=0,b.d=0,b.e=0,b.f=0;var _yt,nb,$4e,L4e,F4e,B4e,z4e,V4e,pne=D("java.math","BigDecimal",239);_(90,236,{3:1,36:1,236:1,90:1},sve,np,Zw,Lve,elt,Jp),b.wd=function(t){return Wut(this,h(t,90))},b.ke=function(){return gy(EJ(this,0))},b.Fb=function(t){return jme(this,t)},b.Hb=function(){return Qct(this)},b.Ib=function(){return EJ(this,0)},b.b=-2,b.c=0,b.d=0,b.e=0;var gne,AB,U4e,bne,PB,F6,z2=D("java.math","BigInteger",90),Myt,Dyt,w4,PI;_(480,1949,Pm),b.$b=function(){Gc(this)},b._b=function(t){return sd(this,t)},b.sc=function(t){return jct(this,t,this.g)||jct(this,t,this.f)},b.tc=function(){return new lg(this)},b.vc=function(t){return Hn(this,t)},b.xc=function(t,s){return Fr(this,t,s)},b.zc=function(t){return U3(this,t)},b.gc=function(){return gC(this)},D(wn,"AbstractHashMap",480),_(260,md,au,lg),b.$b=function(){this.a.$b()},b.Fc=function(t){return jrt(this,t)},b.Ic=function(){return new Ng(this.a)},b.Kc=function(t){var s;return jrt(this,t)?(s=h(t,43).ad(),this.a.zc(s),!0):!1},b.gc=function(){return this.a.gc()},D(wn,"AbstractHashMap/EntrySet",260),_(261,1,bo,Ng),b.Nb=function(t){wo(this,t)},b.Pb=function(){return dm(this)},b.Ob=function(){return this.b},b.Qb=function(){Not(this)},b.b=!1,D(wn,"AbstractHashMap/EntrySetIterator",261),_(411,1,bo,eC),b.Nb=function(t){wo(this,t)},b.Ob=function(){return LT(this)},b.Pb=function(){return snt(this)},b.Qb=function(){wu(this)},b.b=0,b.c=-1,D(wn,"AbstractList/IteratorImpl",411),_(99,411,jh,xo),b.Qb=function(){wu(this)},b.Rb=function(t){Bv(this,t)},b.Sb=function(){return this.b>0},b.Tb=function(){return this.b},b.Ub=function(){return hn(this.b>0),this.a.Xb(this.c=--this.b)},b.Vb=function(){return this.b-1},b.Wb=function(t){Lv(this.c!=-1),this.a.Zc(this.c,t)},D(wn,"AbstractList/ListIteratorImpl",99),_(217,51,E6,Ph),b.Tc=function(t,s){Yv(t,this.b),this.c.Tc(this.a+t,s),++this.b},b.Xb=function(t){return qt(t,this.b),this.c.Xb(this.a+t)},b.Yc=function(t){var s;return qt(t,this.b),s=this.c.Yc(this.a+t),--this.b,s},b.Zc=function(t,s){return qt(t,this.b),this.c.Zc(this.a+t,s)},b.gc=function(){return this.b},b.a=0,b.b=0,D(wn,"AbstractList/SubList",217),_(380,md,au,zS),b.$b=function(){this.a.$b()},b.Fc=function(t){return this.a._b(t)},b.Ic=function(){var t;return t=this.a.tc().Ic(),new Ade(t)},b.Kc=function(t){return this.a._b(t)?(this.a.zc(t),!0):!1},b.gc=function(){return this.a.gc()},D(wn,"AbstractMap/1",380),_(678,1,bo,Ade),b.Nb=function(t){wo(this,t)},b.Ob=function(){return this.a.Ob()},b.Pb=function(){var t;return t=h(this.a.Pb(),43),t.ad()},b.Qb=function(){this.a.Qb()},D(wn,"AbstractMap/1/1",678),_(224,28,Cy,o1),b.$b=function(){this.a.$b()},b.Fc=function(t){return this.a.sc(t)},b.Ic=function(){var t;return t=this.a.tc().Ic(),new _v(t)},b.gc=function(){return this.a.gc()},D(wn,"AbstractMap/2",224),_(294,1,bo,_v),b.Nb=function(t){wo(this,t)},b.Ob=function(){return this.a.Ob()},b.Pb=function(){var t;return t=h(this.a.Pb(),43),t.bd()},b.Qb=function(){this.a.Qb()},D(wn,"AbstractMap/2/1",294),_(479,1,{479:1,43:1}),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Ca(this.d,s.ad())&&Ca(this.e,s.bd())):!1},b.ad=function(){return this.d},b.bd=function(){return this.e},b.Hb=function(){return Xw(this.d)^Xw(this.e)},b.cd=function(t){return Ape(this,t)},b.Ib=function(){return this.d+"="+this.e},D(wn,"AbstractMap/AbstractEntry",479),_(379,479,{479:1,379:1,43:1},wj),D(wn,"AbstractMap/SimpleEntry",379),_(1954,1,eee),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Ca(this.ad(),s.ad())&&Ca(this.bd(),s.bd())):!1},b.Hb=function(){return Xw(this.ad())^Xw(this.bd())},b.Ib=function(){return this.ad()+"="+this.bd()},D(wn,rgt,1954),_(1961,1949,tgt),b.rc=function(t){return qit(this,t)},b._b=function(t){return lK(this,t)},b.tc=function(){return new Mde(this)},b.vc=function(t){var s;return s=t,Gs(ome(this,s))},b.ec=function(){return new ET(this)},D(wn,"AbstractNavigableMap",1961),_(722,md,au,Mde),b.Fc=function(t){return ue(t,43)&&qit(this.b,h(t,43))},b.Ic=function(){return new UC(this.b)},b.Kc=function(t){var s;return ue(t,43)?(s=h(t,43),Oot(this.b,s)):!1},b.gc=function(){return this.b.c},D(wn,"AbstractNavigableMap/EntrySet",722),_(485,md,e2e,ET),b.Lc=function(){return new Sj(this)},b.$b=function(){cC(this.a)},b.Fc=function(t){return lK(this.a,t)},b.Ic=function(){var t;return t=new UC(new FC(this.a).b),new ST(t)},b.Kc=function(t){return lK(this.a,t)?(i8(this.a,t),!0):!1},b.gc=function(){return this.a.c},D(wn,"AbstractNavigableMap/NavigableKeySet",485),_(486,1,bo,ST),b.Nb=function(t){wo(this,t)},b.Ob=function(){return LT(this.a.a)},b.Pb=function(){var t;return t=nR(this.a),t.ad()},b.Qb=function(){RJe(this.a)},D(wn,"AbstractNavigableMap/NavigableKeySet/1",486),_(1973,28,Cy),b.Dc=function(t){return C5(s6(this,t)),!0},b.Ec=function(t){return Ut(t),cR(t!=this,"Can't add a queue to itself"),ks(this,t)},b.$b=function(){for(;HY(this)!=null;);},D(wn,"AbstractQueue",1973),_(319,28,{4:1,19:1,28:1,15:1},g3,crt),b.Dc=function(t){return Ege(this,t),!0},b.$b=function(){Pge(this)},b.Fc=function(t){return oct(new n8(this),t)},b.dc=function(){return lC(this)},b.Ic=function(){return new n8(this)},b.Kc=function(t){return TJt(new n8(this),t)},b.gc=function(){return this.c-this.b&this.a.length-1},b.Lc=function(){return new Lt(this,272)},b.Oc=function(t){var s;return s=this.c-this.b&this.a.length-1,t.lengths&&ui(t,s,null),t},b.b=0,b.c=0,D(wn,"ArrayDeque",319),_(440,1,bo,n8),b.Nb=function(t){wo(this,t)},b.Ob=function(){return this.a!=this.b},b.Pb=function(){return iL(this)},b.Qb=function(){tat(this)},b.a=0,b.b=0,b.c=-1,D(wn,"ArrayDeque/IteratorImpl",440),_(12,51,vgt,Fe,Ba,vu),b.Tc=function(t,s){qv(this,t,s)},b.Dc=function(t){return Re(this,t)},b.Uc=function(t,s){return fme(this,t,s)},b.Ec=function(t){return Di(this,t)},b.$b=function(){this.c=ge(dn,rt,1,0,5,1)},b.Fc=function(t){return Ps(this,t,0)!=-1},b.Hc=function(t){pc(this,t)},b.Xb=function(t){return st(this,t)},b.Vc=function(t){return Ps(this,t,0)},b.dc=function(){return this.c.length==0},b.Ic=function(){return new Q(this)},b.Yc=function(t){return tp(this,t)},b.Kc=function(t){return dc(this,t)},b.Ud=function(t,s){srt(this,t,s)},b.Zc=function(t,s){return Nl(this,t,s)},b.gc=function(){return this.c.length},b.$c=function(t){co(this,t)},b.Nc=function(){return tK(this)},b.Oc=function(t){return Mh(this,t)};var Lwn=D(wn,"ArrayList",12);_(7,1,bo,Q),b.Nb=function(t){wo(this,t)},b.Ob=function(){return Ns(this)},b.Pb=function(){return Y(this)},b.Qb=function(){JC(this)},b.a=0,b.b=-1,D(wn,"ArrayList/1",7),_(1982,m.Function,{},et),b.te=function(t,s){return go(t,s)},_(154,51,ygt,gu),b.Fc=function(t){return aat(this,t)!=-1},b.Hc=function(t){var s,a,l,f;for(Ut(t),a=this.a,l=0,f=a.length;l>>0,t.toString(16)))},b.f=0,b.i=Oi;var NB=D(Fh,"CNode",56);_(795,1,{},ohe),D(Fh,"CNode/CNodeBuilder",795);var Kyt;_(1495,1,{},ke),b.Oe=function(t,s){return 0},b.Pe=function(t,s){return 0},D(Fh,Tgt,1495),_(1761,1,{},nt),b.Le=function(t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J;for(A=pi,l=new Q(t.a.b);l.al.d.c||l.d.c==v.d.c&&l.d.b0?t+this.n.d+this.n.a:0},b.Se=function(){var t,s,a,l,f;if(f=0,this.e)this.b?f=this.b.a:this.a[1][1]&&(f=this.a[1][1].Se());else if(this.g)f=Rme(this,pZ(this,null,!0));else for(s=(jf(),re(te($y,1),je,230,0,[Qs,Ua,Zs])),a=0,l=s.length;a0?f+this.n.b+this.n.c:0},b.Te=function(){var t,s,a,l,f;if(this.g)for(t=pZ(this,null,!1),a=(jf(),re(te($y,1),je,230,0,[Qs,Ua,Zs])),l=0,f=a.length;l0&&(l[0]+=this.d,a-=l[0]),l[2]>0&&(l[2]+=this.d,a-=l[2]),this.c.a=m.Math.max(0,a),this.c.d=s.d+t.d+(this.c.a-a)/2,l[1]=m.Math.max(l[1],a),Uge(this,Ua,s.d+t.d+l[0]-(l[1]-a)/2,l)},b.b=null,b.d=0,b.e=!1,b.f=!1,b.g=!1;var Ene=0,jB=0;D(Hg,"GridContainerCell",1442),_(455,22,{3:1,36:1,22:1,455:1},pX);var T0,ch,vf,owt=Wn(Hg,"HorizontalLabelAlignment",455,Qn,UJt,kXt),swt;_(304,210,{210:1,304:1},Ont,_st,Tnt),b.Re=function(){return vet(this)},b.Se=function(){return h0e(this)},b.a=0,b.c=!1;var Xwn=D(Hg,"LabelCell",304);_(243,324,{210:1,324:1,243:1},P8),b.Re=function(){return _P(this)},b.Se=function(){return MP(this)},b.Te=function(){iJ(this)},b.Ue=function(){oJ(this)},b.b=0,b.c=0,b.d=!1,D(Hg,"StripContainerCell",243),_(1596,1,br,zi),b.Mb=function(t){return RHt(h(t,210))},D(Hg,"StripContainerCell/lambda$0$Type",1596),_(1597,1,{},c3),b.Fe=function(t){return h(t,210).Se()},D(Hg,"StripContainerCell/lambda$1$Type",1597),_(1598,1,br,Hp),b.Mb=function(t){return $Ht(h(t,210))},D(Hg,"StripContainerCell/lambda$2$Type",1598),_(1599,1,{},Hs),b.Fe=function(t){return h(t,210).Re()},D(Hg,"StripContainerCell/lambda$3$Type",1599),_(456,22,{3:1,36:1,22:1,456:1},gX);var yf,A0,Uf,awt=Wn(Hg,"VerticalLabelAlignment",456,Qn,HJt,CXt),cwt;_(772,1,{},qwe),b.c=0,b.d=0,b.k=0,b.s=0,b.u=!1,b.v=0,b.C=!1,D(xF,"NodeContext",772),_(1440,1,Vr,SN),b.ue=function(t,s){return TQe(h(t,61),h(s,61))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(xF,"NodeContext/0methodref$comparePortSides$Type",1440),_(1441,1,Vr,$S),b.ue=function(t,s){return rfn(h(t,110),h(s,110))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(xF,"NodeContext/1methodref$comparePortContexts$Type",1441),_(159,22,{3:1,36:1,22:1,159:1},dl);var uwt,lwt,fwt,dwt,hwt,pwt,gwt,bwt,mwt,vwt,ywt,wwt,xwt,Swt,Ewt,kwt,Cwt,Iwt,Twt,Awt,Pwt,kne,Owt=Wn(xF,"NodeLabelLocation",159,Qn,WQ,IXt),_wt;_(110,1,{110:1},Jdt),b.a=!1,D(xF,"PortContext",110),_(1446,1,un,Rw),b.td=function(t){CKe(h(t,304))},D(iO,Bgt,1446),_(1447,1,br,DW),b.Mb=function(t){return!!h(t,110).c},D(iO,zgt,1447),_(1448,1,un,jW),b.td=function(t){CKe(h(t,110).c)},D(iO,"LabelPlacer/lambda$2$Type",1448);var CSe;_(1445,1,un,RW),b.td=function(t){zv(),mHt(h(t,110))},D(iO,"NodeLabelAndSizeUtilities/lambda$0$Type",1445),_(1443,1,un,VJe),b.td=function(t){Mqt(this.b,this.c,this.a,h(t,183))},b.a=!1,b.c=!1,D(iO,"NodeLabelCellCreator/lambda$0$Type",1443),_(1444,1,un,DHe),b.td=function(t){SHt(this.a,h(t,183))},D(iO,"PortContextCreator/lambda$0$Type",1444);var RB;_(1801,1,{},NW),D(I6,"GreedyRectangleStripOverlapRemover",1801),_(1802,1,Vr,$W),b.ue=function(t,s){return sGt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1802),_(1757,1,{},OGe),b.a=5,b.e=0,D(I6,"RectangleStripOverlapRemover",1757),_(1758,1,Vr,Rb),b.ue=function(t,s){return aGt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1758),_(1760,1,Vr,LW),b.ue=function(t,s){return PQt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1760),_(401,22,{3:1,36:1,22:1,401:1},Ej);var TO,Cne,Ine,AO,Mwt=Wn(I6,"RectangleStripOverlapRemover/OverlapRemovalDirection",401,Qn,zen,TXt),Dwt;_(220,1,{220:1},PK),D(I6,"RectangleStripOverlapRemover/RectangleNode",220),_(1759,1,un,jHe),b.td=function(t){Acn(this.a,h(t,220))},D(I6,"RectangleStripOverlapRemover/lambda$1$Type",1759),_(1275,1,Vr,FW),b.ue=function(t,s){return bmn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1275),_(1278,1,{},BW),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1278),_(1279,1,br,zW),b.Mb=function(t){return h(t,322).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1279),_(1280,1,br,VW),b.Mb=function(t){return h(t,322).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1280),_(1273,1,Vr,u3),b.ue=function(t,s){return rgn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1273),_(1276,1,{},UW),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1276),_(750,1,Vr,EN),b.ue=function(t,s){return pin(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinNumOfExtensionsComparator",750),_(1271,1,Vr,HW),b.ue=function(t,s){return xrn(h(t,320),h(s,320))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinPerimeterComparator",1271),_(1272,1,Vr,qW),b.ue=function(t,s){return Jan(h(t,320),h(s,320))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinPerimeterComparatorWithShape",1272),_(1274,1,Vr,WW),b.ue=function(t,s){return Tgn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1274),_(1277,1,{},l3),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1277),_(760,1,{},Jhe),b.Ce=function(t,s){return Pen(this,h(t,46),h(s,167))},D(Jd,"SuccessorCombination",760),_(634,1,{},uT),b.Ce=function(t,s){var a;return ghn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorJitter",634),_(633,1,{},lT),b.Ce=function(t,s){var a;return Kpn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorLineByLine",633),_(561,1,{},Gk),b.Ce=function(t,s){var a;return p1n((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorManhattan",561),_(1327,1,{},GW),b.Ce=function(t,s){var a;return wpn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorMaxNormWindingInMathPosSense",1327),_(396,1,{},HS),b.Ce=function(t,s){return L0e(this,t,s)},b.c=!1,b.d=!1,b.e=!1,b.f=!1,D(Jd,"SuccessorQuadrantsGeneric",396),_(1328,1,{},XW),b.Kb=function(t){return h(t,323).a},D(Jd,"SuccessorQuadrantsGeneric/lambda$0$Type",1328),_(322,22,{3:1,36:1,22:1,322:1},kj),b.a=!1;var PO,OO,_O,MO,Nwt=Wn(EF,x2e,322,Qn,Fen,AXt),jwt;_(1269,1,{}),b.Ib=function(){var t,s,a,l,f,v;for(a=" ",t=Ue(0),f=0;f=0?"b"+t+"["+kY(this.a)+"]":"b["+kY(this.a)+"]"):"b_"+Kb(this)},D(sO,"FBendpoint",552),_(281,134,{3:1,281:1,94:1,134:1},aJe),b.Ib=function(){return kY(this)},D(sO,"FEdge",281),_(229,134,{3:1,229:1,94:1,134:1},l$);var Ywn=D(sO,"FGraph",229);_(441,354,{3:1,441:1,354:1,94:1,134:1},lit),b.Ib=function(){return this.b==null||this.b.length==0?"l["+kY(this.a)+"]":"l_"+this.b},D(sO,"FLabel",441),_(144,354,{3:1,144:1,354:1,94:1,134:1},Ett),b.Ib=function(){return vge(this)},b.b=0,D(sO,"FNode",144),_(1972,1,{}),b.cf=function(t){kwe(this,t)},b.df=function(){Flt(this)},b.d=0,D(_2e,"AbstractForceModel",1972),_(621,1972,{621:1},Uat),b.bf=function(t,s){var a,l,f,v,w;return Ndt(this.f,t,s),f=no(Xs(s.d),t.d),w=m.Math.sqrt(f.a*f.a+f.b*f.b),l=m.Math.max(0,w-e8(t.e)/2-e8(s.e)/2),a=Ict(this.e,t,s),a>0?v=-CQt(l,this.c)*a:v=SGt(l,this.b)*h(G(t,(Bf(),V6)),20).a,Ud(f,v/w),f},b.cf=function(t){kwe(this,t),this.a=h(G(t,(Bf(),VB)),20).a,this.c=Ae(Ke(G(t,UB))),this.b=Ae(Ke(G(t,Dne)))},b.ef=function(t){return t0&&(v-=MHt(l,this.a)*a),Ud(f,v*this.b/w),f},b.cf=function(t){var s,a,l,f,v,w,S;for(kwe(this,t),this.b=Ae(Ke(G(t,(Bf(),Nne)))),this.c=this.b/h(G(t,VB),20).a,l=t.e.c.length,v=0,f=0,S=new Q(t.e);S.a0},b.a=0,b.b=0,b.c=0,D(_2e,"FruchtermanReingoldModel",622),_(828,1,Fl,KVe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,IF),""),"Force Model"),"Determines the model for force calculation."),NSe),(dp(),xi)),jSe),Tt((Lf(),an))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,M2e),""),"Iterations"),"The number of iterations on the force model."),Ue(300)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,D2e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Ue(0)),fa),No),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,See),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),eh),ea),To),Tt(an)))),So(t,See,IF,t2t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Eee),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),ea),To),Tt(an)))),So(t,Eee,IF,Zwt),x0t((new YVe,t))};var Kwt,Ywt,NSe,Qwt,Zwt,Jwt,e2t,t2t;D(oI,"ForceMetaDataProvider",828),_(418,22,{3:1,36:1,22:1,418:1},t1e);var Mne,zB,jSe=Wn(oI,"ForceModelStrategy",418,Qn,KZt,_Xt),n2t;_(968,1,Fl,YVe),b.Qe=function(t){x0t(t)};var r2t,i2t,RSe,VB,$Se,o2t,LSe,FSe,V6,s2t,Dne,BSe,a2t,c2t,UB,Nne;D(oI,"ForceOptions",968),_(969,1,{},sG),b._e=function(){var t;return t=new nhe,t},b.af=function(t){},D(oI,"ForceOptions/ForceFactory",969);var jO,MI,x4,HB;_(829,1,Fl,QVe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,R2e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Zt(),!1)),(dp(),Wo)),io),Tt((Lf(),Qi))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$2e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),ea),To),Zr(an,re(te(Ep,1),je,175,0,[dh]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,L2e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),zSe),xi),XSe),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,F2e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),eh),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,B2e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Ue(Ir)),fa),No),Tt(an)))),Xpt((new ZVe,t))};var u2t,l2t,zSe,f2t,d2t,h2t;D(oI,"StressMetaDataProvider",829),_(972,1,Fl,ZVe),b.Qe=function(t){Xpt(t)};var qB,VSe,USe,HSe,qSe,WSe,GSe;D(oI,"StressOptions",972),_(973,1,{},iG),b._e=function(){var t;return t=new cJe,t},b.af=function(t){},D(oI,"StressOptions/StressFactory",973),_(1101,207,qg,cJe),b.$e=function(t,s){var a,l,f,v;for(_n(s,Zgt,1),_t(It(Ot(t,(vP(),qSe))))||sdt(new nhe,t,Aa(s,1)),l=mct(t),a=wpt(this.a,l),v=a.Ic();v.Ob();)f=h(v.Pb(),229),!(f.e.c.length<=1)&&(gmn(this.b,f),a1n(this.b),pc(f.d,new oG));l=j0t(a),_0t(l),yn(s)},D(PF,"StressLayoutProvider",1101),_(1102,1,un,oG),b.td=function(t){_we(h(t,441))},D(PF,"StressLayoutProvider/lambda$0$Type",1102),_(970,1,{},EGe),b.c=0,b.e=0,b.g=0,D(PF,"StressMajorization",970),_(376,22,{3:1,36:1,22:1,376:1},bX);var jne,Rne,$ne,XSe=Wn(PF,"StressMajorization/Dimension",376,Qn,qJt,MXt),p2t;_(971,1,Vr,FHe),b.ue=function(t,s){return uXt(this.a,h(t,144),h(s,144))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(PF,"StressMajorization/lambda$0$Type",971),_(1202,1,{},hrt),D(p4,"ElkLayered",1202),_(1203,1,un,BHe),b.td=function(t){Inn(this.a,h(t,38))},D(p4,"ElkLayered/lambda$0$Type",1203),_(1204,1,un,zHe),b.td=function(t){cXt(this.a,h(t,38))},D(p4,"ElkLayered/lambda$1$Type",1204),_(1237,1,{},eZe);var g2t,b2t,m2t;D(p4,"GraphConfigurator",1237),_(742,1,un,Vde),b.td=function(t){qft(this.a,h(t,10))},D(p4,"GraphConfigurator/lambda$0$Type",742),_(743,1,{},TN),b.Kb=function(t){return Ave(),new Rt(null,new Lt(h(t,29).a,16))},D(p4,"GraphConfigurator/lambda$1$Type",743),_(744,1,un,Ude),b.td=function(t){qft(this.a,h(t,10))},D(p4,"GraphConfigurator/lambda$2$Type",744),_(1100,207,qg,CGe),b.$e=function(t,s){var a;a=Bbn(new DGe,t),Pe(Ot(t,(Qe(),Uy)))===Pe((m1(),kp))?Isn(this.a,a,s):Chn(this.a,a,s),T0t(new JVe,a)},D(p4,"LayeredLayoutProvider",1100),_(353,22,{3:1,36:1,22:1,353:1},BT);var uh,P0,jc,Ha,Vs,KSe=Wn(p4,"LayeredPhases",353,Qn,Stn,DXt),v2t;_(1621,1,{},sat),b.i=0;var y2t;D(lO,"ComponentsToCGraphTransformer",1621);var w2t;_(1622,1,{},aG),b.ff=function(t,s){return m.Math.min(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},b.gf=function(t,s){return m.Math.min(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},D(lO,"ComponentsToCGraphTransformer/1",1622),_(79,1,{79:1}),b.i=0,b.k=!0,b.o=Oi;var Lne=D(sI,"CNode",79);_(454,79,{454:1,79:1},ipe,nve),b.Ib=function(){return""},D(lO,"ComponentsToCGraphTransformer/CRectNode",454),_(1593,1,{},Yk);var Fne,Bne;D(lO,"OneDimensionalComponentsCompaction",1593),_(1594,1,{},rG),b.Kb=function(t){return DJt(h(t,46))},b.Fb=function(t){return this===t},D(lO,"OneDimensionalComponentsCompaction/lambda$0$Type",1594),_(1595,1,{},hT),b.Kb=function(t){return vsn(h(t,46))},b.Fb=function(t){return this===t},D(lO,"OneDimensionalComponentsCompaction/lambda$1$Type",1595),_(1624,1,{},ktt),D(sI,"CGraph",1624),_(189,1,{189:1},VQ),b.b=0,b.c=0,b.e=0,b.g=!0,b.i=Oi,D(sI,"CGroup",189),_(1623,1,{},lG),b.ff=function(t,s){return m.Math.max(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},b.gf=function(t,s){return m.Math.max(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},D(sI,Tgt,1623),_(1625,1,{},qdt),b.d=!1;var x2t,zne=D(sI,Ogt,1625);_(1626,1,{},fG),b.Kb=function(t){return zhe(),Zt(),h(h(t,46).a,79).d.e!=0},b.Fb=function(t){return this===t},D(sI,_gt,1626),_(802,1,{},g0e),b.a=!1,b.b=!1,b.c=!1,b.d=!1,D(sI,Mgt,802),_(1797,1,{},Uet),D(OF,Dgt,1797);var RO=ii(Xg,Cgt);_(1798,1,{366:1},gnt),b.Ke=function(t){h0n(this,h(t,460))},D(OF,Ngt,1798),_(1799,1,Vr,dG),b.ue=function(t,s){return wZt(h(t,79),h(s,79))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(OF,jgt,1799),_(460,1,{460:1},n1e),b.a=!1,D(OF,Rgt,460),_(1800,1,Vr,PN),b.ue=function(t,s){return Oun(h(t,460),h(s,460))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(OF,$gt,1800),_(140,1,{140:1},i5,a0e),b.Fb=function(t){var s;return t==null||Qwn!=ru(t)?!1:(s=h(t,140),Ca(this.c,s.c)&&Ca(this.d,s.d))},b.Hb=function(){return tL(re(te(dn,1),rt,1,5,[this.c,this.d]))},b.Ib=function(){return"("+this.c+Fo+this.d+(this.a?"cx":"")+this.b+")"},b.a=!0,b.c=0,b.d=0;var Qwn=D(Xg,"Point",140);_(400,22,{3:1,36:1,22:1,400:1},Tj);var Fm,Ly,U2,Fy,S2t=Wn(Xg,"Point/Quadrant",400,Qn,Uen,NXt),E2t;_(1612,1,{},IGe),b.b=null,b.c=null,b.d=null,b.e=null,b.f=null;var k2t,C2t,I2t,T2t,A2t;D(Xg,"RectilinearConvexHull",1612),_(566,1,{366:1},SL),b.Ke=function(t){gnn(this,h(t,140))},b.b=0;var YSe;D(Xg,"RectilinearConvexHull/MaximalElementsEventHandler",566),_(1614,1,Vr,uG),b.ue=function(t,s){return xZt(Ke(t),Ke(s))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1614),_(1613,1,{366:1},Ost),b.Ke=function(t){kpn(this,h(t,140))},b.a=0,b.b=null,b.c=null,b.d=null,b.e=null,D(Xg,"RectilinearConvexHull/RectangleEventHandler",1613),_(1615,1,Vr,AN),b.ue=function(t,s){return ven(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$0$Type",1615),_(1616,1,Vr,cG),b.ue=function(t,s){return yen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$1$Type",1616),_(1617,1,Vr,hG),b.ue=function(t,s){return wen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$2$Type",1617),_(1618,1,Vr,pG),b.ue=function(t,s){return xen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$3$Type",1618),_(1619,1,Vr,gG),b.ue=function(t,s){return mfn(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$4$Type",1619),_(1620,1,{},Gnt),D(Xg,"Scanline",1620),_(1974,1,{}),D(pp,"AbstractGraphPlacer",1974),_(503,1,{503:1},uet);var zr;D(pp,"ComponentGroup",503),_(1265,1974,{},TGe),b.mf=function(t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W;if(this.a.c=ge(dn,rt,1,0,5,1),s.a.c=ge(dn,rt,1,0,5,1),t.dc()){s.f.a=0,s.f.b=0;return}for(w=h(t.Xb(0),38),Cs(s,w),f=t.Ic();f.Ob();)l=h(f.Pb(),38),Zon(this,l);for(W=new Yo,v=Ae(Ke(G(w,(Qe(),Bz)))),A=new Q(this.a);A.aq&&(Le=0,Ye+=z+f,z=0),oe=w.c,FP(w,Le+oe.a,Ye+oe.b),zd(oe),a=m.Math.max(a,Le+he.a),z=m.Math.max(z,he.b),Le+=he.a+f;if(s.f.a=a,s.f.b=Ye+z,_t(It(G(v,Dre)))){for(l=new Qk,q0t(l,t,f),R=t.Ic();R.Ob();)M=h(R.Pb(),38),Rr(zd(M.c),l.e);Rr(zd(s.f),l.a)}jot(s,t)},D(pp,"SimpleRowGraphPlacer",1263),_(1264,1,Vr,vG),b.ue=function(t,s){return Gan(h(t,38),h(s,38))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(pp,"SimpleRowGraphPlacer/1",1264);var P2t;_(1236,1,Zd,Zk),b.Lb=function(t){var s;return s=h(G(h(t,242).b,(Qe(),ys)),74),!!s&&s.b!=0},b.Fb=function(t){return this===t},b.Mb=function(t){var s;return s=h(G(h(t,242).b,(Qe(),ys)),74),!!s&&s.b!=0},D(_F,"CompoundGraphPostprocessor/1",1236),_(1235,1,gi,MGe),b.nf=function(t,s){Clt(this,h(t,38),s)},D(_F,"CompoundGraphPreprocessor",1235),_(435,1,{435:1},vut),b.c=!1,D(_F,"CompoundGraphPreprocessor/ExternalPort",435),_(242,1,{242:1},uR),b.Ib=function(){return eK(this.c)+":"+Udt(this.b)},D(_F,"CrossHierarchyEdge",242),_(747,1,Vr,Hde),b.ue=function(t,s){return iun(this,h(t,242),h(s,242))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(_F,"CrossHierarchyEdgeComparator",747),_(299,134,{3:1,299:1,94:1,134:1}),b.p=0,D(tc,"LGraphElement",299),_(18,299,{3:1,18:1,299:1,94:1,134:1},om),b.Ib=function(){return Udt(this)};var Vne=D(tc,"LEdge",18);_(38,299,{3:1,19:1,38:1,299:1,94:1,134:1},xbe),b.Hc=function(t){Eo(this,t)},b.Ic=function(){return new Q(this.b)},b.Ib=function(){return this.b.c.length==0?"G-unlayered"+b0(this.a):this.a.c.length==0?"G-layered"+b0(this.b):"G[layerless"+b0(this.a)+", layers"+b0(this.b)+"]"};var O2t=D(tc,"LGraph",38);_(646,1,{}),b.of=function(){return this.e.n},b.Xe=function(t){return G(this.e,t)},b.pf=function(){return this.e.o},b.qf=function(){return this.e.p},b.Ye=function(t){return Lo(this.e,t)},b.rf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},b.sf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},b.tf=function(t){this.e.p=t},D(tc,"LGraphAdapters/AbstractLShapeAdapter",646),_(569,1,{818:1},qN),b.uf=function(){var t,s;if(!this.b)for(this.b=Eh(this.a.b.c.length),s=new Q(this.a.b);s.a0&&Xct((Fn(s-1,t.length),t.charCodeAt(s-1)),ibt);)--s;if(v> ",t),_L(a)),Xn(ca((t.a+="[",t),a.i),"]")),t.a},b.c=!0,b.d=!1;var JSe,e5e,t5e,n5e,r5e,i5e,M2t=D(tc,"LPort",11);_(393,1,Rh,qS),b.Hc=function(t){Eo(this,t)},b.Ic=function(){var t;return t=new Q(this.a.e),new VHe(t)},D(tc,"LPort/1",393),_(1262,1,bo,VHe),b.Nb=function(t){wo(this,t)},b.Pb=function(){return h(Y(this.a),18).c},b.Ob=function(){return Ns(this.a)},b.Qb=function(){JC(this.a)},D(tc,"LPort/1/1",1262),_(356,1,Rh,h3),b.Hc=function(t){Eo(this,t)},b.Ic=function(){var t;return t=new Q(this.a.g),new qde(t)},D(tc,"LPort/2",356),_(746,1,bo,qde),b.Nb=function(t){wo(this,t)},b.Pb=function(){return h(Y(this.a),18).d},b.Ob=function(){return Ns(this.a)},b.Qb=function(){JC(this.a)},D(tc,"LPort/2/1",746),_(1255,1,Rh,lYe),b.Hc=function(t){Eo(this,t)},b.Ic=function(){return new dd(this)},D(tc,"LPort/CombineIter",1255),_(200,1,bo,dd),b.Nb=function(t){wo(this,t)},b.Qb=function(){VHt()},b.Ob=function(){return BC(this)},b.Pb=function(){return Ns(this.a)?Y(this.a):Y(this.b)},D(tc,"LPort/CombineIter/1",200),_(1257,1,Zd,pT),b.Lb=function(t){return Jet(t)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).e.c.length!=0},D(tc,"LPort/lambda$0$Type",1257),_(1256,1,Zd,gT),b.Lb=function(t){return ett(t)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).g.c.length!=0},D(tc,"LPort/lambda$1$Type",1256),_(1258,1,Zd,yG),b.Lb=function(t){return Mc(),h(t,11).j==(He(),Wt)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).j==(He(),Wt)},D(tc,"LPort/lambda$2$Type",1258),_(1259,1,Zd,ON),b.Lb=function(t){return Mc(),h(t,11).j==(He(),nn)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).j==(He(),nn)},D(tc,"LPort/lambda$3$Type",1259),_(1260,1,Zd,bT),b.Lb=function(t){return Mc(),h(t,11).j==(He(),xn)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).j==(He(),xn)},D(tc,"LPort/lambda$4$Type",1260),_(1261,1,Zd,_N),b.Lb=function(t){return Mc(),h(t,11).j==(He(),Xt)},b.Fb=function(t){return this===t},b.Mb=function(t){return Mc(),h(t,11).j==(He(),Xt)},D(tc,"LPort/lambda$5$Type",1261),_(29,299,{3:1,19:1,299:1,29:1,94:1,134:1},Ml),b.Hc=function(t){Eo(this,t)},b.Ic=function(){return new Q(this.a)},b.Ib=function(){return"L_"+Ps(this.b.b,this,0)+b0(this.a)},D(tc,"Layer",29),_(1313,1,{},DGe),D(gp,cbt,1313),_(1317,1,{},$w),b.Kb=function(t){return Pa(h(t,93))},D(gp,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1317),_(1320,1,{},LS),b.Kb=function(t){return Pa(h(t,93))},D(gp,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1320),_(1314,1,un,UHe),b.td=function(t){nht(this.a,h(t,122))},D(gp,ubt,1314),_(1315,1,un,HHe),b.td=function(t){nht(this.a,h(t,122))},D(gp,lbt,1315),_(1316,1,{},wG),b.Kb=function(t){return new Rt(null,new Lt(lZt(h(t,80)),16))},D(gp,fbt,1316),_(1318,1,br,qHe),b.Mb=function(t){return CWt(this.a,h(t,34))},D(gp,dbt,1318),_(1319,1,{},MN),b.Kb=function(t){return new Rt(null,new Lt(fZt(h(t,80)),16))},D(gp,"ElkGraphImporter/lambda$5$Type",1319),_(1321,1,br,WHe),b.Mb=function(t){return IWt(this.a,h(t,34))},D(gp,"ElkGraphImporter/lambda$7$Type",1321),_(1322,1,br,xG),b.Mb=function(t){return AZt(h(t,80))},D(gp,"ElkGraphImporter/lambda$8$Type",1322),_(1250,1,{},JVe);var D2t;D(gp,"ElkGraphLayoutTransferrer",1250),_(1251,1,br,GHe),b.Mb=function(t){return rXt(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$0$Type",1251),_(1252,1,un,XHe),b.td=function(t){$T(),Re(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$1$Type",1252),_(1253,1,br,KHe),b.Mb=function(t){return jGt(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$2$Type",1253),_(1254,1,un,YHe),b.td=function(t){$T(),Re(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$3$Type",1254),_(1455,1,gi,DN),b.nf=function(t,s){Drn(h(t,38),s)},D(Yt,"CommentNodeMarginCalculator",1455),_(1456,1,{},SG),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"CommentNodeMarginCalculator/lambda$0$Type",1456),_(1457,1,un,EG),b.td=function(t){emn(h(t,10))},D(Yt,"CommentNodeMarginCalculator/lambda$1$Type",1457),_(1458,1,gi,NN),b.nf=function(t,s){x0n(h(t,38),s)},D(Yt,"CommentPostprocessor",1458),_(1459,1,gi,kG),b.nf=function(t,s){Eyn(h(t,38),s)},D(Yt,"CommentPreprocessor",1459),_(1460,1,gi,Ve),b.nf=function(t,s){H1n(h(t,38),s)},D(Yt,"ConstraintsPostprocessor",1460),_(1461,1,gi,ht),b.nf=function(t,s){sin(h(t,38),s)},D(Yt,"EdgeAndLayerConstraintEdgeReverser",1461),_(1462,1,gi,Kt),b.nf=function(t,s){Xsn(h(t,38),s)},D(Yt,"EndLabelPostprocessor",1462),_(1463,1,{},Qr),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelPostprocessor/lambda$0$Type",1463),_(1464,1,br,Ds),b.Mb=function(t){return VZt(h(t,10))},D(Yt,"EndLabelPostprocessor/lambda$1$Type",1464),_(1465,1,un,Ka),b.td=function(t){_un(h(t,10))},D(Yt,"EndLabelPostprocessor/lambda$2$Type",1465),_(1466,1,gi,qc),b.nf=function(t,s){xdn(h(t,38),s)},D(Yt,"EndLabelPreprocessor",1466),_(1467,1,{},Ts),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelPreprocessor/lambda$0$Type",1467),_(1468,1,un,BJe),b.td=function(t){Oqt(this.a,this.b,this.c,h(t,10))},b.a=0,b.b=0,b.c=!1,D(Yt,"EndLabelPreprocessor/lambda$1$Type",1468),_(1469,1,br,Wc),b.Mb=function(t){return Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),bE))},D(Yt,"EndLabelPreprocessor/lambda$2$Type",1469),_(1470,1,un,QHe),b.td=function(t){lr(this.a,h(t,69))},D(Yt,"EndLabelPreprocessor/lambda$3$Type",1470),_(1471,1,br,W1),b.Mb=function(t){return Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),Jy))},D(Yt,"EndLabelPreprocessor/lambda$4$Type",1471),_(1472,1,un,ZHe),b.td=function(t){lr(this.a,h(t,69))},D(Yt,"EndLabelPreprocessor/lambda$5$Type",1472),_(1521,1,gi,eUe),b.nf=function(t,s){Yon(h(t,38),s)};var N2t;D(Yt,"EndLabelSorter",1521),_(1522,1,Vr,i1),b.ue=function(t,s){return Tan(h(t,449),h(s,449))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"EndLabelSorter/1",1522),_(449,1,{449:1},fnt),D(Yt,"EndLabelSorter/LabelGroup",449),_(1523,1,{},FS),b.Kb=function(t){return RT(),new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelSorter/lambda$0$Type",1523),_(1524,1,br,mT),b.Mb=function(t){return RT(),h(t,10).k==(tn(),Ri)},D(Yt,"EndLabelSorter/lambda$1$Type",1524),_(1525,1,un,vT),b.td=function(t){jfn(h(t,10))},D(Yt,"EndLabelSorter/lambda$2$Type",1525),_(1526,1,br,jN),b.Mb=function(t){return RT(),Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),Jy))},D(Yt,"EndLabelSorter/lambda$3$Type",1526),_(1527,1,br,oje),b.Mb=function(t){return RT(),Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),bE))},D(Yt,"EndLabelSorter/lambda$4$Type",1527),_(1473,1,gi,sje),b.nf=function(t,s){lmn(this,h(t,38))},b.b=0,b.c=0,D(Yt,"FinalSplineBendpointsCalculator",1473),_(1474,1,{},aje),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"FinalSplineBendpointsCalculator/lambda$0$Type",1474),_(1475,1,{},cje),b.Kb=function(t){return new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(Yt,"FinalSplineBendpointsCalculator/lambda$1$Type",1475),_(1476,1,br,uje),b.Mb=function(t){return!Qo(h(t,18))},D(Yt,"FinalSplineBendpointsCalculator/lambda$2$Type",1476),_(1477,1,br,lje),b.Mb=function(t){return Lo(h(t,18),(Be(),ib))},D(Yt,"FinalSplineBendpointsCalculator/lambda$3$Type",1477),_(1478,1,un,JHe),b.td=function(t){Agn(this.a,h(t,128))},D(Yt,"FinalSplineBendpointsCalculator/lambda$4$Type",1478),_(1479,1,un,fje),b.td=function(t){PZ(h(t,18).a)},D(Yt,"FinalSplineBendpointsCalculator/lambda$5$Type",1479),_(774,1,gi,Wde),b.nf=function(t,s){rvn(this,h(t,38),s)},D(Yt,"GraphTransformer",774),_(504,22,{3:1,36:1,22:1,504:1},r1e);var Hne,$O,j2t=Wn(Yt,"GraphTransformer/Mode",504,Qn,ZZt,$Xt),R2t;_(1480,1,gi,dje),b.nf=function(t,s){Bpn(h(t,38),s)},D(Yt,"HierarchicalNodeResizingProcessor",1480),_(1481,1,gi,hje),b.nf=function(t,s){brn(h(t,38),s)},D(Yt,"HierarchicalPortConstraintProcessor",1481),_(1482,1,Vr,pje),b.ue=function(t,s){return Ban(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortConstraintProcessor/NodeComparator",1482),_(1483,1,gi,gje),b.nf=function(t,s){$bn(h(t,38),s)},D(Yt,"HierarchicalPortDummySizeProcessor",1483),_(1484,1,gi,bje),b.nf=function(t,s){$0n(this,h(t,38),s)},b.a=0,D(Yt,"HierarchicalPortOrthogonalEdgeRouter",1484),_(1485,1,Vr,mje),b.ue=function(t,s){return cGt(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortOrthogonalEdgeRouter/1",1485),_(1486,1,Vr,vje),b.ue=function(t,s){return dnn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortOrthogonalEdgeRouter/2",1486),_(1487,1,gi,yje),b.nf=function(t,s){vfn(h(t,38),s)},D(Yt,"HierarchicalPortPositionProcessor",1487),_(1488,1,gi,tUe),b.nf=function(t,s){Qyn(this,h(t,38))},b.a=0,b.c=0;var WB,GB;D(Yt,"HighDegreeNodeLayeringProcessor",1488),_(563,1,{563:1},wje),b.b=-1,b.d=-1,D(Yt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",563),_(1489,1,{},xje),b.Kb=function(t){return fA(),Os(h(t,10))},b.Fb=function(t){return this===t},D(Yt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1489),_(1490,1,{},Sje),b.Kb=function(t){return fA(),Ni(h(t,10))},b.Fb=function(t){return this===t},D(Yt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1490),_(1496,1,gi,Eje),b.nf=function(t,s){hbn(this,h(t,38),s)},D(Yt,"HyperedgeDummyMerger",1496),_(775,1,{},Xpe),b.a=!1,b.b=!1,b.c=!1,D(Yt,"HyperedgeDummyMerger/MergeState",775),_(1497,1,{},kje),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"HyperedgeDummyMerger/lambda$0$Type",1497),_(1498,1,{},Cje),b.Kb=function(t){return new Rt(null,new Lt(h(t,10).j,16))},D(Yt,"HyperedgeDummyMerger/lambda$1$Type",1498),_(1499,1,un,Ije),b.td=function(t){h(t,11).p=-1},D(Yt,"HyperedgeDummyMerger/lambda$2$Type",1499),_(1500,1,gi,Tje),b.nf=function(t,s){fbn(h(t,38),s)},D(Yt,"HypernodesProcessor",1500),_(1501,1,gi,Aje),b.nf=function(t,s){dbn(h(t,38),s)},D(Yt,"InLayerConstraintProcessor",1501),_(1502,1,gi,Pje),b.nf=function(t,s){nrn(h(t,38),s)},D(Yt,"InnermostNodeMarginCalculator",1502),_(1503,1,gi,Oje),b.nf=function(t,s){vyn(this,h(t,38))},b.a=Oi,b.b=Oi,b.c=pi,b.d=pi;var Zwn=D(Yt,"InteractiveExternalPortPositioner",1503);_(1504,1,{},_je),b.Kb=function(t){return h(t,18).d.i},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$0$Type",1504),_(1505,1,{},eqe),b.Kb=function(t){return uGt(this.a,Ke(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$1$Type",1505),_(1506,1,{},Mje),b.Kb=function(t){return h(t,18).c.i},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$2$Type",1506),_(1507,1,{},tqe),b.Kb=function(t){return lGt(this.a,Ke(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$3$Type",1507),_(1508,1,{},nqe),b.Kb=function(t){return eXt(this.a,Ke(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$4$Type",1508),_(1509,1,{},rqe),b.Kb=function(t){return tXt(this.a,Ke(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$5$Type",1509),_(77,22,{3:1,36:1,22:1,77:1,233:1},Ii),b.Hf=function(){switch(this.g){case 15:return new J$e;case 22:return new eLe;case 47:return new rLe;case 28:case 35:return new Uje;case 32:return new DN;case 42:return new NN;case 1:return new kG;case 41:return new Ve;case 56:return new Wde((R5(),$O));case 0:return new Wde((R5(),Hne));case 2:return new ht;case 54:return new Kt;case 33:return new qc;case 51:return new sje;case 55:return new dje;case 13:return new hje;case 38:return new gje;case 44:return new bje;case 40:return new yje;case 9:return new tUe;case 49:return new TZe;case 37:return new Eje;case 43:return new Tje;case 27:return new Aje;case 30:return new Pje;case 3:return new Oje;case 18:return new Nje;case 29:return new jje;case 5:return new nUe;case 50:return new Dje;case 34:return new rUe;case 36:return new Hje;case 52:return new eUe;case 11:return new Wje;case 7:return new iUe;case 39:return new Gje;case 45:return new Xje;case 16:return new Kje;case 10:return new Yje;case 48:return new Zje;case 21:return new Jje;case 23:return new ZG((gm(),YI));case 8:return new tRe;case 12:return new rRe;case 4:return new iRe;case 19:return new oUe;case 17:return new pRe;case 53:return new gRe;case 6:return new TRe;case 25:return new NGe;case 46:return new wRe;case 31:return new lJe;case 14:return new jRe;case 26:return new sLe;case 20:return new BRe;case 24:return new ZG((gm(),Kz));default:throw ee(new Gt(Aee+(this.f!=null?this.f:""+this.g)))}};var o5e,s5e,a5e,c5e,u5e,l5e,f5e,d5e,h5e,p5e,DI,XB,KB,g5e,b5e,m5e,v5e,y5e,w5e,x5e,NI,S5e,E5e,k5e,C5e,I5e,qne,YB,Wne,T5e,QB,ZB,JB,U6,H6,q6,A5e,Gne,Xne,P5e,ez,tz,O5e,_5e,M5e,D5e,Kne,Yne,nz,rz,iz,oz,sz,N5e,j5e,R5e,$5e,Jwn=Wn(Yt,z2e,77,Qn,Uht,LXt),$2t;_(1510,1,gi,Nje),b.nf=function(t,s){yyn(h(t,38),s)},D(Yt,"InvertedPortProcessor",1510),_(1511,1,gi,jje),b.nf=function(t,s){pgn(h(t,38),s)},D(Yt,"LabelAndNodeSizeProcessor",1511),_(1512,1,br,Rje),b.Mb=function(t){return h(t,10).k==(tn(),Ri)},D(Yt,"LabelAndNodeSizeProcessor/lambda$0$Type",1512),_(1513,1,br,$je),b.Mb=function(t){return h(t,10).k==(tn(),Pi)},D(Yt,"LabelAndNodeSizeProcessor/lambda$1$Type",1513),_(1514,1,un,zJe),b.td=function(t){_qt(this.b,this.a,this.c,h(t,10))},b.a=!1,b.c=!1,D(Yt,"LabelAndNodeSizeProcessor/lambda$2$Type",1514),_(1515,1,gi,nUe),b.nf=function(t,s){Hvn(h(t,38),s)};var L2t;D(Yt,"LabelDummyInserter",1515),_(1516,1,Zd,Lje),b.Lb=function(t){return Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),gE))},b.Fb=function(t){return this===t},b.Mb=function(t){return Pe(G(h(t,69),(Qe(),fh)))===Pe((hd(),gE))},D(Yt,"LabelDummyInserter/1",1516),_(1517,1,gi,Dje),b.nf=function(t,s){Umn(h(t,38),s)},D(Yt,"LabelDummyRemover",1517),_(1518,1,br,Fje),b.Mb=function(t){return _t(It(G(h(t,69),(Qe(),$re))))},D(Yt,"LabelDummyRemover/lambda$0$Type",1518),_(1330,1,gi,rUe),b.nf=function(t,s){vvn(this,h(t,38),s)},b.a=null;var Qne;D(Yt,"LabelDummySwitcher",1330),_(285,1,{285:1},z1t),b.c=0,b.d=null,b.f=0,D(Yt,"LabelDummySwitcher/LabelDummyInfo",285),_(1331,1,{},Bje),b.Kb=function(t){return W3(),new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"LabelDummySwitcher/lambda$0$Type",1331),_(1332,1,br,zje),b.Mb=function(t){return W3(),h(t,10).k==(tn(),ku)},D(Yt,"LabelDummySwitcher/lambda$1$Type",1332),_(1333,1,{},aqe),b.Kb=function(t){return RGt(this.a,h(t,10))},D(Yt,"LabelDummySwitcher/lambda$2$Type",1333),_(1334,1,un,cqe),b.td=function(t){BQt(this.a,h(t,285))},D(Yt,"LabelDummySwitcher/lambda$3$Type",1334),_(1335,1,Vr,Vje),b.ue=function(t,s){return gQt(h(t,285),h(s,285))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"LabelDummySwitcher/lambda$4$Type",1335),_(773,1,gi,Uje),b.nf=function(t,s){Htn(h(t,38),s)},D(Yt,"LabelManagementProcessor",773),_(1519,1,gi,Hje),b.nf=function(t,s){c0n(h(t,38),s)},D(Yt,"LabelSideSelector",1519),_(1520,1,br,qje),b.Mb=function(t){return _t(It(G(h(t,69),(Qe(),$re))))},D(Yt,"LabelSideSelector/lambda$0$Type",1520),_(1528,1,gi,Wje),b.nf=function(t,s){Lbn(h(t,38),s)},D(Yt,"LayerConstraintPostprocessor",1528),_(1529,1,gi,iUe),b.nf=function(t,s){c1n(h(t,38),s)};var L5e;D(Yt,"LayerConstraintPreprocessor",1529),_(357,22,{3:1,36:1,22:1,357:1},Aj);var LO,az,cz,Zne,F2t=Wn(Yt,"LayerConstraintPreprocessor/HiddenNodeConnections",357,Qn,Ven,FXt),B2t;_(1530,1,gi,Gje),b.nf=function(t,s){Bmn(h(t,38),s)},D(Yt,"LayerSizeAndGraphHeightCalculator",1530),_(1531,1,gi,Xje),b.nf=function(t,s){Y1n(h(t,38),s)},D(Yt,"LongEdgeJoiner",1531),_(1532,1,gi,Kje),b.nf=function(t,s){xmn(h(t,38),s)},D(Yt,"LongEdgeSplitter",1532),_(1533,1,gi,Yje),b.nf=function(t,s){Svn(this,h(t,38),s)},b.d=0,b.e=0,b.i=0,b.j=0,b.k=0,b.n=0,D(Yt,"NodePromotion",1533),_(1534,1,{},Qje),b.Kb=function(t){return h(t,46),Zt(),!0},b.Fb=function(t){return this===t},D(Yt,"NodePromotion/lambda$0$Type",1534),_(1535,1,{},iqe),b.Kb=function(t){return sZt(this.a,h(t,46))},b.Fb=function(t){return this===t},b.a=0,D(Yt,"NodePromotion/lambda$1$Type",1535),_(1536,1,{},oqe),b.Kb=function(t){return aZt(this.a,h(t,46))},b.Fb=function(t){return this===t},b.a=0,D(Yt,"NodePromotion/lambda$2$Type",1536),_(1537,1,gi,Zje),b.nf=function(t,s){qyn(h(t,38),s)},D(Yt,"NorthSouthPortPostprocessor",1537),_(1538,1,gi,Jje),b.nf=function(t,s){_yn(h(t,38),s)},D(Yt,"NorthSouthPortPreprocessor",1538),_(1539,1,Vr,eRe),b.ue=function(t,s){return fin(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"NorthSouthPortPreprocessor/lambda$0$Type",1539),_(1540,1,gi,tRe),b.nf=function(t,s){Kgn(h(t,38),s)},D(Yt,"PartitionMidprocessor",1540),_(1541,1,br,nRe),b.Mb=function(t){return Lo(h(t,10),(Qe(),oE))},D(Yt,"PartitionMidprocessor/lambda$0$Type",1541),_(1542,1,un,sqe),b.td=function(t){TZt(this.a,h(t,10))},D(Yt,"PartitionMidprocessor/lambda$1$Type",1542),_(1543,1,gi,rRe),b.nf=function(t,s){bpn(h(t,38),s)},D(Yt,"PartitionPostprocessor",1543),_(1544,1,gi,iRe),b.nf=function(t,s){Mhn(h(t,38),s)},D(Yt,"PartitionPreprocessor",1544),_(1545,1,br,oRe),b.Mb=function(t){return Lo(h(t,10),(Qe(),oE))},D(Yt,"PartitionPreprocessor/lambda$0$Type",1545),_(1546,1,{},sRe),b.Kb=function(t){return new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(Yt,"PartitionPreprocessor/lambda$1$Type",1546),_(1547,1,br,aRe),b.Mb=function(t){return Ean(h(t,18))},D(Yt,"PartitionPreprocessor/lambda$2$Type",1547),_(1548,1,un,cRe),b.td=function(t){kin(h(t,18))},D(Yt,"PartitionPreprocessor/lambda$3$Type",1548),_(1549,1,gi,oUe),b.nf=function(t,s){$gn(h(t,38),s)};var F5e,z2t,V2t,U2t,B5e,z5e;D(Yt,"PortListSorter",1549),_(1550,1,{},uRe),b.Kb=function(t){return q5(),h(t,11).e},D(Yt,"PortListSorter/lambda$0$Type",1550),_(1551,1,{},lRe),b.Kb=function(t){return q5(),h(t,11).g},D(Yt,"PortListSorter/lambda$1$Type",1551),_(1552,1,Vr,fRe),b.ue=function(t,s){return uit(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$2$Type",1552),_(1553,1,Vr,dRe),b.ue=function(t,s){return Kcn(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$3$Type",1553),_(1554,1,Vr,hRe),b.ue=function(t,s){return xpt(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$4$Type",1554),_(1555,1,gi,pRe),b.nf=function(t,s){n1n(h(t,38),s)},D(Yt,"PortSideProcessor",1555),_(1556,1,gi,gRe),b.nf=function(t,s){Y0n(h(t,38),s)},D(Yt,"ReversedEdgeRestorer",1556),_(1561,1,gi,NGe),b.nf=function(t,s){Mcn(this,h(t,38),s)},D(Yt,"SelfLoopPortRestorer",1561),_(1562,1,{},bRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopPortRestorer/lambda$0$Type",1562),_(1563,1,br,mRe),b.Mb=function(t){return h(t,10).k==(tn(),Ri)},D(Yt,"SelfLoopPortRestorer/lambda$1$Type",1563),_(1564,1,br,vRe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopPortRestorer/lambda$2$Type",1564),_(1565,1,{},yRe),b.Kb=function(t){return h(G(h(t,10),(Be(),tE)),398)},D(Yt,"SelfLoopPortRestorer/lambda$3$Type",1565),_(1566,1,un,uqe),b.td=function(t){Xfn(this.a,h(t,398))},D(Yt,"SelfLoopPortRestorer/lambda$4$Type",1566),_(776,1,un,Zfe),b.td=function(t){odn(h(t,101))},D(Yt,"SelfLoopPortRestorer/lambda$5$Type",776),_(1567,1,gi,wRe),b.nf=function(t,s){zan(h(t,38),s)},D(Yt,"SelfLoopPostProcessor",1567),_(1568,1,{},xRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopPostProcessor/lambda$0$Type",1568),_(1569,1,br,SRe),b.Mb=function(t){return h(t,10).k==(tn(),Ri)},D(Yt,"SelfLoopPostProcessor/lambda$1$Type",1569),_(1570,1,br,ERe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopPostProcessor/lambda$2$Type",1570),_(1571,1,un,kRe),b.td=function(t){Qun(h(t,10))},D(Yt,"SelfLoopPostProcessor/lambda$3$Type",1571),_(1572,1,{},CRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,101).f,1))},D(Yt,"SelfLoopPostProcessor/lambda$4$Type",1572),_(1573,1,un,lqe),b.td=function(t){Gen(this.a,h(t,404))},D(Yt,"SelfLoopPostProcessor/lambda$5$Type",1573),_(1574,1,br,IRe),b.Mb=function(t){return!!h(t,101).i},D(Yt,"SelfLoopPostProcessor/lambda$6$Type",1574),_(1575,1,un,fqe),b.td=function(t){_Ht(this.a,h(t,101))},D(Yt,"SelfLoopPostProcessor/lambda$7$Type",1575),_(1557,1,gi,TRe),b.nf=function(t,s){M1n(h(t,38),s)},D(Yt,"SelfLoopPreProcessor",1557),_(1558,1,{},ARe),b.Kb=function(t){return new Rt(null,new Lt(h(t,101).f,1))},D(Yt,"SelfLoopPreProcessor/lambda$0$Type",1558),_(1559,1,{},PRe),b.Kb=function(t){return h(t,404).a},D(Yt,"SelfLoopPreProcessor/lambda$1$Type",1559),_(1560,1,un,ORe),b.td=function(t){RWt(h(t,18))},D(Yt,"SelfLoopPreProcessor/lambda$2$Type",1560),_(1576,1,gi,lJe),b.nf=function(t,s){Rfn(this,h(t,38),s)},D(Yt,"SelfLoopRouter",1576),_(1577,1,{},_Re),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopRouter/lambda$0$Type",1577),_(1578,1,br,MRe),b.Mb=function(t){return h(t,10).k==(tn(),Ri)},D(Yt,"SelfLoopRouter/lambda$1$Type",1578),_(1579,1,br,DRe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopRouter/lambda$2$Type",1579),_(1580,1,{},NRe),b.Kb=function(t){return h(G(h(t,10),(Be(),tE)),398)},D(Yt,"SelfLoopRouter/lambda$3$Type",1580),_(1581,1,un,fYe),b.td=function(t){SZt(this.a,this.b,h(t,398))},D(Yt,"SelfLoopRouter/lambda$4$Type",1581),_(1582,1,gi,jRe),b.nf=function(t,s){Gpn(h(t,38),s)},D(Yt,"SemiInteractiveCrossMinProcessor",1582),_(1583,1,br,RRe),b.Mb=function(t){return h(t,10).k==(tn(),Ri)},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1583),_(1584,1,br,$Re),b.Mb=function(t){return Oet(h(t,10))._b((Qe(),Gy))},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1584),_(1585,1,Vr,LRe),b.ue=function(t,s){return Trn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1585),_(1586,1,{},FRe),b.Ce=function(t,s){return jZt(h(t,10),h(s,10))},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1586),_(1588,1,gi,BRe),b.nf=function(t,s){ybn(h(t,38))},D(Yt,"SortByInputModelProcessor",1588),_(1589,1,br,zRe),b.Mb=function(t){return h(t,11).g.c.length!=0},D(Yt,"SortByInputModelProcessor/lambda$0$Type",1589),_(1590,1,un,dqe),b.td=function(t){jln(this.a,h(t,11))},D(Yt,"SortByInputModelProcessor/lambda$1$Type",1590),_(1663,785,{},Eat),b.Me=function(t){var s,a,l,f;switch(this.c=t,this.a.g){case 2:s=new Fe,mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new t$e),new bYe(this,s)),PP(this,new URe),pc(s,new HRe),s.c=ge(dn,rt,1,0,5,1),mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new qRe),new pqe(s)),PP(this,new WRe),pc(s,new GRe),s.c=ge(dn,rt,1,0,5,1),a=qQe(kat(RR(new Rt(null,new Lt(this.c.a.b,16)),new gqe(this))),new XRe),mi(new Rt(null,new Lt(this.c.a.a,16)),new hYe(a,s)),PP(this,new YRe),pc(s,new QRe),s.c=ge(dn,rt,1,0,5,1);break;case 3:l=new Fe,PP(this,new VRe),f=qQe(kat(RR(new Rt(null,new Lt(this.c.a.b,16)),new hqe(this))),new KRe),mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new ZRe),new gYe(f,l)),PP(this,new JRe),pc(l,new e$e),l.c=ge(dn,rt,1,0,5,1);break;default:throw ee(new xGe)}},b.b=0,D(_i,"EdgeAwareScanlineConstraintCalculation",1663),_(1664,1,Zd,VRe),b.Lb=function(t){return ue(h(t,56).g,145)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,145)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1664),_(1665,1,{},hqe),b.Fe=function(t){return Vdn(this.a,h(t,56))},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1665),_(1673,1,mF,dYe),b.Vd=function(){D8(this.a,this.b,-1)},b.b=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1673),_(1675,1,Zd,URe),b.Lb=function(t){return ue(h(t,56).g,145)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,145)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1675),_(1676,1,un,HRe),b.td=function(t){h(t,362).Vd()},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1676),_(1677,1,br,qRe),b.Mb=function(t){return ue(h(t,56).g,10)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1677),_(1679,1,un,pqe),b.td=function(t){psn(this.a,h(t,56))},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1679),_(1678,1,mF,yYe),b.Vd=function(){D8(this.b,this.a,-1)},b.a=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1678),_(1680,1,Zd,WRe),b.Lb=function(t){return ue(h(t,56).g,10)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,10)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1680),_(1681,1,un,GRe),b.td=function(t){h(t,362).Vd()},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1681),_(1682,1,{},gqe),b.Fe=function(t){return Udn(this.a,h(t,56))},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1682),_(1683,1,{},XRe),b.De=function(){return 0},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1683),_(1666,1,{},KRe),b.De=function(){return 0},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1666),_(1685,1,un,hYe),b.td=function(t){nQt(this.a,this.b,h(t,305))},b.a=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1685),_(1684,1,mF,pYe),b.Vd=function(){Eht(this.a,this.b,-1)},b.b=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1684),_(1686,1,Zd,YRe),b.Lb=function(t){return h(t,56),!0},b.Fb=function(t){return this===t},b.Mb=function(t){return h(t,56),!0},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1686),_(1687,1,un,QRe),b.td=function(t){h(t,362).Vd()},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1687),_(1667,1,br,ZRe),b.Mb=function(t){return ue(h(t,56).g,10)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1667),_(1669,1,un,gYe),b.td=function(t){rQt(this.a,this.b,h(t,56))},b.a=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1669),_(1668,1,mF,wYe),b.Vd=function(){D8(this.b,this.a,-1)},b.a=0,D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1668),_(1670,1,Zd,JRe),b.Lb=function(t){return h(t,56),!0},b.Fb=function(t){return this===t},b.Mb=function(t){return h(t,56),!0},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1670),_(1671,1,un,e$e),b.td=function(t){h(t,362).Vd()},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1671),_(1672,1,br,t$e),b.Mb=function(t){return ue(h(t,56).g,145)},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1672),_(1674,1,un,bYe),b.td=function(t){Gnn(this.a,this.b,h(t,56))},D(_i,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1674),_(1491,1,gi,TZe),b.nf=function(t,s){Pmn(this,h(t,38),s)};var H2t;D(_i,"HorizontalGraphCompactor",1491),_(1492,1,{},bqe),b.Oe=function(t,s){var a,l,f;return obe(t,s)||(a=t2(t),l=t2(s),!!a&&a.k==(tn(),Pi)||!!l&&l.k==(tn(),Pi))?0:(f=h(G(this.a.a,(Be(),Q2)),302),hGt(f,a?a.k:(tn(),Yi),l?l.k:(tn(),Yi)))},b.Pe=function(t,s){var a,l,f;return obe(t,s)?1:(a=t2(t),l=t2(s),f=h(G(this.a.a,(Be(),Q2)),302),ape(f,a?a.k:(tn(),Yi),l?l.k:(tn(),Yi)))},D(_i,"HorizontalGraphCompactor/1",1492),_(1493,1,{},n$e),b.Ne=function(t,s){return bC(),t.a.i==0},D(_i,"HorizontalGraphCompactor/lambda$0$Type",1493),_(1494,1,{},mqe),b.Ne=function(t,s){return PZt(this.a,t,s)},D(_i,"HorizontalGraphCompactor/lambda$1$Type",1494),_(1634,1,{},ost);var q2t,W2t;D(_i,"LGraphToCGraphTransformer",1634),_(1642,1,br,r$e),b.Mb=function(t){return t!=null},D(_i,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1642),_(1635,1,{},i$e),b.Kb=function(t){return ff(),Fs(G(h(h(t,56).g,10),(Be(),Mr)))},D(_i,"LGraphToCGraphTransformer/lambda$0$Type",1635),_(1636,1,{},o$e),b.Kb=function(t){return ff(),out(h(h(t,56).g,145))},D(_i,"LGraphToCGraphTransformer/lambda$1$Type",1636),_(1645,1,br,s$e),b.Mb=function(t){return ff(),ue(h(t,56).g,10)},D(_i,"LGraphToCGraphTransformer/lambda$10$Type",1645),_(1646,1,un,a$e),b.td=function(t){BZt(h(t,56))},D(_i,"LGraphToCGraphTransformer/lambda$11$Type",1646),_(1647,1,br,c$e),b.Mb=function(t){return ff(),ue(h(t,56).g,145)},D(_i,"LGraphToCGraphTransformer/lambda$12$Type",1647),_(1651,1,un,u$e),b.td=function(t){Aon(h(t,56))},D(_i,"LGraphToCGraphTransformer/lambda$13$Type",1651),_(1648,1,un,vqe),b.td=function(t){lWt(this.a,h(t,8))},b.a=0,D(_i,"LGraphToCGraphTransformer/lambda$14$Type",1648),_(1649,1,un,yqe),b.td=function(t){dWt(this.a,h(t,109))},b.a=0,D(_i,"LGraphToCGraphTransformer/lambda$15$Type",1649),_(1650,1,un,wqe),b.td=function(t){fWt(this.a,h(t,8))},b.a=0,D(_i,"LGraphToCGraphTransformer/lambda$16$Type",1650),_(1652,1,{},l$e),b.Kb=function(t){return ff(),new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(_i,"LGraphToCGraphTransformer/lambda$17$Type",1652),_(1653,1,br,f$e),b.Mb=function(t){return ff(),Qo(h(t,18))},D(_i,"LGraphToCGraphTransformer/lambda$18$Type",1653),_(1654,1,un,xqe),b.td=function(t){jnn(this.a,h(t,18))},D(_i,"LGraphToCGraphTransformer/lambda$19$Type",1654),_(1638,1,un,Sqe),b.td=function(t){Sen(this.a,h(t,145))},D(_i,"LGraphToCGraphTransformer/lambda$2$Type",1638),_(1655,1,{},d$e),b.Kb=function(t){return ff(),new Rt(null,new Lt(h(t,29).a,16))},D(_i,"LGraphToCGraphTransformer/lambda$20$Type",1655),_(1656,1,{},h$e),b.Kb=function(t){return ff(),new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(_i,"LGraphToCGraphTransformer/lambda$21$Type",1656),_(1657,1,{},p$e),b.Kb=function(t){return ff(),h(G(h(t,18),(Be(),ib)),14)},D(_i,"LGraphToCGraphTransformer/lambda$22$Type",1657),_(1658,1,br,g$e),b.Mb=function(t){return dGt(h(t,14))},D(_i,"LGraphToCGraphTransformer/lambda$23$Type",1658),_(1659,1,un,Eqe),b.td=function(t){jdn(this.a,h(t,14))},D(_i,"LGraphToCGraphTransformer/lambda$24$Type",1659),_(1637,1,un,mYe),b.td=function(t){stn(this.a,this.b,h(t,145))},D(_i,"LGraphToCGraphTransformer/lambda$3$Type",1637),_(1639,1,{},b$e),b.Kb=function(t){return ff(),new Rt(null,new Lt(h(t,29).a,16))},D(_i,"LGraphToCGraphTransformer/lambda$4$Type",1639),_(1640,1,{},m$e),b.Kb=function(t){return ff(),new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(_i,"LGraphToCGraphTransformer/lambda$5$Type",1640),_(1641,1,{},v$e),b.Kb=function(t){return ff(),h(G(h(t,18),(Be(),ib)),14)},D(_i,"LGraphToCGraphTransformer/lambda$6$Type",1641),_(1643,1,un,kqe),b.td=function(t){uhn(this.a,h(t,14))},D(_i,"LGraphToCGraphTransformer/lambda$8$Type",1643),_(1644,1,un,vYe),b.td=function(t){MWt(this.a,this.b,h(t,145))},D(_i,"LGraphToCGraphTransformer/lambda$9$Type",1644),_(1633,1,{},y$e),b.Le=function(t){var s,a,l,f,v;for(this.a=t,this.d=new VG,this.c=ge(kSe,rt,119,this.a.a.a.c.length,0,1),this.b=0,a=new Q(this.a.a.a);a.a=J&&(Re(v,Ue(M)),he=m.Math.max(he,ve[M-1]-R),S+=W,oe+=ve[M-1]-oe,R=ve[M-1],W=C[M]),W=m.Math.max(W,C[M]),++M;S+=W}q=m.Math.min(1/he,1/s.b/S),q>l&&(l=q,a=v)}return a},b.Tf=function(){return!1},D(th,"MSDCutIndexHeuristic",784),_(1587,1,gi,sLe),b.nf=function(t,s){Obn(h(t,38),s)},D(th,"SingleEdgeGraphWrapper",1587),_(225,22,{3:1,36:1,22:1,225:1},SC);var q2,X6,K6,By,jI,W2,Y6=Wn(Sa,"CenterEdgeLabelPlacementStrategy",225,Qn,tnn,KXt),ixt;_(417,22,{3:1,36:1,22:1,417:1},i1e);var U5e,ure,H5e=Wn(Sa,"ConstraintCalculationStrategy",417,Qn,nJt,YXt),oxt;_(333,22,{3:1,36:1,22:1,333:1,245:1,233:1},o1e),b.Hf=function(){return Kft(this)},b.Uf=function(){return Kft(this)};var FO,E4,q5e=Wn(Sa,"CrossingMinimizationStrategy",333,Qn,tJt,qXt),sxt;_(335,22,{3:1,36:1,22:1,335:1},yX);var W5e,lre,pz,G5e=Wn(Sa,"CuttingStrategy",335,Qn,ZJt,HXt),axt;_(416,22,{3:1,36:1,22:1,416:1,245:1,233:1},wX),b.Hf=function(){return edt(this)},b.Uf=function(){return edt(this)};var X5e,fre,dre,K5e=Wn(Sa,"CycleBreakingStrategy",416,Qn,JJt,WXt),cxt;_(413,22,{3:1,36:1,22:1,413:1},s1e);var gz,Y5e,Q5e=Wn(Sa,"DirectionCongruency",413,Qn,eJt,GXt),uxt;_(444,22,{3:1,36:1,22:1,444:1},xX);var Q6,hre,G2,lxt=Wn(Sa,"EdgeConstraint",444,Qn,een,XXt),fxt;_(274,22,{3:1,36:1,22:1,274:1},EC);var pre,gre,bre,mre,bz,vre,Z5e=Wn(Sa,"EdgeLabelSideSelection",274,Qn,Ztn,QXt),dxt;_(473,22,{3:1,36:1,22:1,473:1},a1e);var mz,J5e,e6e=Wn(Sa,"EdgeStraighteningStrategy",473,Qn,oJt,ZXt),hxt;_(272,22,{3:1,36:1,22:1,272:1},kC);var yre,t6e,n6e,vz,r6e,i6e,o6e=Wn(Sa,"FixedAlignment",272,Qn,Jtn,JXt),pxt;_(273,22,{3:1,36:1,22:1,273:1},CC);var s6e,a6e,c6e,u6e,RI,l6e,f6e=Wn(Sa,"GraphCompactionStrategy",273,Qn,enn,eKt),gxt;_(255,22,{3:1,36:1,22:1,255:1},jv);var Z6,yz,J6,yl,$I,wz,eE,X2,xz,LI,wre=Wn(Sa,"GraphProperties",255,Qn,Mrn,tKt),bxt;_(292,22,{3:1,36:1,22:1,292:1},SX);var BO,xre,Sre,Ere=Wn(Sa,"GreedySwitchType",292,Qn,aen,nKt),mxt;_(301,22,{3:1,36:1,22:1,301:1},EX);var k4,zO,K2,vxt=Wn(Sa,"InLayerConstraint",301,Qn,sen,rKt),yxt;_(414,22,{3:1,36:1,22:1,414:1},c1e);var kre,d6e,h6e=Wn(Sa,"InteractiveReferencePoint",414,Qn,JZt,iKt),wxt,p6e,C4,Vm,Sz,g6e,b6e,Ez,m6e,kz,Cz,FI,I4,T4,Cre,Iz,Js,v6e,Tz,Na,Ire,Tre,VO,rb,Um,A4,y6e,P4,UO,zy,Hf,ql,Are,Y2,Sd,Mr,w6e,x6e,S6e,E6e,k6e,Pre,Az,Kc,Hm,Ore,O4,HO,_0,tE,Q2,Z2,nE,ib,C6e,_re,_4;_(165,22,{3:1,36:1,22:1,165:1},VT);var BI,M0,zI,Vy,qO,I6e=Wn(Sa,"LayerConstraint",165,Qn,ktn,oKt),xxt;_(827,1,Fl,lUe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,V2e),""),"Consider model order"),"Preserves the order of nodes and edges in the model file if this does not lead to edge crossings or conflicts between the ordering or edges and nodes."),P6e),(dp(),xi)),QEe),Tt((Lf(),an))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,U2e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),N6e),xi),Q5e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,H2e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Zt(),!1)),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,MF),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),B6e),xi),h6e),Tt(an)))),So(t,MF,_ee,o3t),So(t,MF,uI,i3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,q2e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,W2e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Wo),io),Tt(an)))),Et(t,new gt(aqt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,G2e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Wo),io),Tt(lb)),re(te(Ze,1),Oe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,X2e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),X6e),xi),ZEe),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,K2e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Ue(7)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Y2e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,_ee),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),D6e),xi),K5e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,hO),Zee),"Node Layering Strategy"),"Strategy for node layering."),U6e),xi),VEe),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Q2e),Zee),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),z6e),xi),I6e),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Z2e),Zee),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing."),Ue(-1)),fa),No),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,J2e),Zee),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node"),Ue(-1)),fa),No),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Mee),Sbt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Ue(4)),fa),No),Tt(an)))),So(t,Mee,hO,d3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Dee),Sbt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Ue(2)),fa),No),Tt(an)))),So(t,Dee,hO,p3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Nee),Ebt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),V6e),xi),KEe),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jee),Ebt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Ue(0)),fa),No),Tt(an)))),So(t,jee,Nee,null),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Ree),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Ue(Ir)),fa),No),Tt(an)))),So(t,Ree,hO,a3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uI),HF),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),M6e),xi),q5e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$ee),HF),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),ea),To),Tt(an)))),So(t,$ee,qF,Nxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Lee),HF),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Wo),io),Tt(an)))),So(t,Lee,uI,Lxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,exe),HF),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer."),Ue(-1)),fa),No),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,txe),HF),"Position ID"),"Position within a layer that was determined by ELK Layered for a node."),Ue(-1)),fa),No),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,nxe),kbt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Ue(40)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Fee),kbt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),_6e),xi),Ere),Tt(an)))),So(t,Fee,uI,Mxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,DF),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),O6e),xi),Ere),Tt(an)))),So(t,DF,uI,Pxt),So(t,DF,qF,Oxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,N2),Cbt),"Node Placement Strategy"),"Strategy for node placement."),G6e),xi),HEe),Tt(an)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,NF),Cbt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Wo),io),Tt(an)))),So(t,NF,N2,C3t),So(t,NF,N2,I3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Bee),Ibt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),H6e),xi),e6e),Tt(an)))),So(t,Bee,N2,x3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,zee),Ibt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),q6e),xi),o6e),Tt(an)))),So(t,zee,N2,E3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Vee),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),ea),To),Tt(an)))),So(t,Vee,N2,A3t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Uee),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),xi),Zre),Tt(Qi)))),So(t,Uee,N2,M3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Hee),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),W6e),xi),Zre),Tt(an)))),So(t,Hee,N2,_3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,rxe),Tbt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),$6e),xi),tke),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,ixe),Tbt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),L6e),xi),nke),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jF),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),F6e),xi),ike),Tt(an)))),So(t,jF,pO,Kxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,RF),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),ea),To),Tt(an)))),So(t,RF,pO,Qxt),So(t,RF,jF,Zxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,qee),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),ea),To),Tt(an)))),So(t,qee,pO,qxt),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,oxe),nh),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,sxe),nh),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,axe),nh),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,cxe),nh),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uxe),bxe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Ue(0)),fa),No),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lxe),bxe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Ue(0)),fa),No),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,fxe),bxe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Ue(0)),fa),No),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Wee),mxe),qgt),"Tries to further compact components (disconnected sub-graphs)."),!1),Wo),io),Tt(an)))),So(t,Wee,cO,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,dxe),Abt),"Post Compaction Strategy"),Pbt),A6e),xi),f6e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,hxe),Abt),"Post Compaction Constraint Calculation"),Pbt),T6e),xi),H5e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$F),vxe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Gee),vxe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Ue(16)),fa),No),Tt(an)))),So(t,Gee,$F,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Xee),vxe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Ue(5)),fa),No),Tt(an)))),So(t,Xee,$F,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,k1),yxe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Q6e),xi),cke),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,LF),yxe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),ea),To),Tt(an)))),So(t,LF,k1,q3t),So(t,LF,k1,W3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,FF),yxe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),ea),To),Tt(an)))),So(t,FF,k1,X3t),So(t,FF,k1,K3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lI),Obt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Y6e),xi),G5e),Tt(an)))),So(t,lI,k1,t4t),So(t,lI,k1,n4t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Kee),Obt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),kd),vl),Tt(an)))),So(t,Kee,lI,Q3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Yee),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),K6e),fa),No),Tt(an)))),So(t,Yee,lI,J3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,BF),_bt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Z6e),xi),ake),Tt(an)))),So(t,BF,k1,p4t),So(t,BF,k1,g4t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,zF),_bt),"Valid Indices for Wrapping"),null),kd),vl),Tt(an)))),So(t,zF,k1,f4t),So(t,zF,k1,d4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,VF),wxe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Wo),io),Tt(an)))),So(t,VF,k1,s4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,UF),wxe),"Distance Penalty When Improving Cuts"),null),2),ea),To),Tt(an)))),So(t,UF,k1,i4t),So(t,UF,VF,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Qee),wxe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Wo),io),Tt(an)))),So(t,Qee,k1,c4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,pxe),Jee),"Edge Label Side Selection"),"Method to decide on edge label sides."),R6e),xi),Z5e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,gxe),Jee),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),j6e),xi),Y6),Zr(an,re(te(Ep,1),je,175,0,[Sp]))))),Y0t((new fUe,t))};var Sxt,Ext,kxt,T6e,Cxt,A6e,Ixt,P6e,Txt,Axt,O6e,Pxt,Oxt,_xt,_6e,Mxt,Dxt,Nxt,jxt,Rxt,$xt,Lxt,Fxt,M6e,Bxt,D6e,zxt,N6e,Vxt,j6e,Uxt,R6e,Hxt,qxt,Wxt,$6e,Gxt,L6e,Xxt,F6e,Kxt,Yxt,Qxt,Zxt,Jxt,e3t,t3t,n3t,r3t,B6e,i3t,o3t,s3t,a3t,c3t,u3t,z6e,l3t,f3t,d3t,h3t,p3t,g3t,b3t,V6e,m3t,U6e,v3t,y3t,w3t,H6e,x3t,S3t,q6e,E3t,k3t,C3t,I3t,T3t,A3t,P3t,O3t,W6e,_3t,M3t,D3t,G6e,N3t,X6e,j3t,R3t,$3t,L3t,F3t,B3t,z3t,V3t,U3t,H3t,q3t,W3t,G3t,X3t,K3t,Y3t,Q3t,Z3t,K6e,J3t,e4t,Y6e,t4t,n4t,r4t,i4t,o4t,s4t,a4t,c4t,u4t,Q6e,l4t,f4t,d4t,h4t,Z6e,p4t,g4t;D(Sa,"LayeredMetaDataProvider",827),_(966,1,Fl,fUe),b.Qe=function(t){Y0t(t)};var lh,Mre,Pz,VI,Dre,J6e,Oz,J2,Nre,eEe,WO,jre,tEe,b4t,_z,Rre,rE,nEe,m4t,Gu,rEe,iEe,Mz,$re,fh,Dz,yp,oEe,sEe,aEe,Lre,Fre,cEe,I1,Bre,Uy,uEe,lEe,fEe,Nz,ex,Hy,dEe,hEe,ys,pEe,v4t,yc,jz,gEe,bEe,mEe,zre,vEe,Rz,yEe,wEe,$z,qm,xEe,Vre,UI,SEe,Wm,HI,Lz,ob,iE,Fz,sb,EEe,kEe,CEe,oE,IEe,y4t,w4t,x4t,S4t,Gm,qy,yi,ab,E4t,Wy,TEe,sE,AEe,Gy,k4t,aE,PEe,M4,C4t,I4t,GO,Ure,OEe,Bz,wf,tx,D4,Xm,cb,zz,Xy,Hre,cE,Km,nx,qre,XO,qI,KO,Wre,_Ee,MEe,DEe,NEe,Gre,jEe,REe,$Ee,LEe,Xre,Vz;D(Sa,"LayeredOptions",966),_(967,1,{},aLe),b._e=function(){var t;return t=new CGe,t},b.af=function(t){},D(Sa,"LayeredOptions/LayeredFactory",967),_(1343,1,{}),b.a=0;var T4t;D(ma,"ElkSpacings/AbstractSpacingsBuilder",1343),_(762,1343,{},Nme);var Uz,A4t;D(Sa,"LayeredSpacings/LayeredSpacingsBuilder",762),_(311,22,{3:1,36:1,22:1,311:1,245:1,233:1},IC),b.Hf=function(){return Nht(this)},b.Uf=function(){return Nht(this)};var Kre,FEe,BEe,Hz,Yre,zEe,VEe=Wn(Sa,"LayeringStrategy",311,Qn,inn,sKt),P4t;_(196,22,{3:1,36:1,22:1,196:1},Oj);var rx,ix,qz,Qre,Zre=Wn(Sa,"NodeFlexibility",196,Qn,Wen,aKt),O4t;_(312,22,{3:1,36:1,22:1,312:1,245:1,233:1},UT),b.Hf=function(){return wht(this)},b.Uf=function(){return wht(this)};var WI,Jre,eie,GI,UEe,HEe=Wn(Sa,"NodePlacementStrategy",312,Qn,Ttn,cKt),_4t;_(259,22,{3:1,36:1,22:1,259:1},k3);var qEe,YO,WEe,GEe,QO,XEe,Wz,Gz,KEe=Wn(Sa,"NodePromotionStrategy",259,Qn,orn,uKt),M4t;_(372,22,{3:1,36:1,22:1,372:1},kX);var YEe,Ky,tie,QEe=Wn(Sa,"OrderingStrategy",372,Qn,WJt,lKt),D4t;_(415,22,{3:1,36:1,22:1,415:1},u1e);var nie,rie,ZEe=Wn(Sa,"PortSortingStrategy",415,Qn,rJt,fKt),N4t;_(446,22,{3:1,36:1,22:1,446:1},CX);var Rc,nc,XI,j4t=Wn(Sa,"PortType",446,Qn,XJt,dKt),R4t;_(373,22,{3:1,36:1,22:1,373:1},IX);var JEe,iie,eke,tke=Wn(Sa,"SelfLoopDistributionStrategy",373,Qn,GJt,hKt),$4t;_(374,22,{3:1,36:1,22:1,374:1},l1e);var ZO,oie,nke=Wn(Sa,"SelfLoopOrderingStrategy",374,Qn,iJt,pKt),L4t;_(302,1,{302:1},t0t),D(Sa,"Spacings",302),_(334,22,{3:1,36:1,22:1,334:1},TX);var sie,rke,KI,ike=Wn(Sa,"SplineRoutingMode",334,Qn,KJt,gKt),F4t;_(336,22,{3:1,36:1,22:1,336:1},AX);var aie,oke,ske,ake=Wn(Sa,"ValidifyStrategy",336,Qn,YJt,bKt),B4t;_(375,22,{3:1,36:1,22:1,375:1},PX);var Yy,cie,uE,cke=Wn(Sa,"WrappingStrategy",375,Qn,QJt,mKt),z4t;_(1355,1,vc,cUe),b.Vf=function(t){return h(t,38),V4t},b.nf=function(t,s){Smn(this,h(t,38),s)};var V4t;D(r3e,"DepthFirstCycleBreaker",1355),_(1354,1,vc,zet),b.Vf=function(t){return h(t,38),U4t},b.nf=function(t,s){Swn(this,h(t,38),s)};var U4t;D(r3e,"GreedyCycleBreaker",1354),_(1356,1,vc,uUe),b.Vf=function(t){return h(t,38),H4t},b.nf=function(t,s){qmn(this,h(t,38),s)};var H4t;D(r3e,"InteractiveCycleBreaker",1356),_(1359,1,vc,XKe),b.Vf=function(t){return h(t,38),q4t},b.nf=function(t,s){Cwn(this,h(t,38),s)};var q4t;D(Oy,"CoffmanGrahamLayerer",1359),_(1360,1,Vr,Mqe),b.ue=function(t,s){return fhn(this.a,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1360),_(1361,1,Vr,Dqe),b.ue=function(t,s){return sQt(this.a,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"CoffmanGrahamLayerer/lambda$1$Type",1361),_(1362,1,vc,cLe),b.Vf=function(t){return h(t,38),_r(_r(_r(new Ki,(cs(),uh),(vs(),qne)),P0,q6),jc,H6)},b.nf=function(t,s){Oyn(this,h(t,38),s)},D(Oy,"InteractiveLayerer",1362),_(562,1,{562:1},jGe),b.a=0,b.c=0,D(Oy,"InteractiveLayerer/LayerSpan",562),_(1358,1,vc,dUe),b.Vf=function(t){return h(t,38),W4t},b.nf=function(t,s){d0n(this,h(t,38),s)};var W4t;D(Oy,"LongestPathLayerer",1358),_(1365,1,vc,hUe),b.Vf=function(t){return h(t,38),_r(_r(_r(new Ki,(cs(),uh),(vs(),DI)),P0,q6),jc,H6)},b.nf=function(t,s){Yyn(this,h(t,38),s)},b.a=0,b.b=0,b.d=0;var uke,lke;D(Oy,"MinWidthLayerer",1365),_(1366,1,Vr,Nqe),b.ue=function(t,s){return nin(this,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"MinWidthLayerer/MinOutgoingEdgesComparator",1366),_(1357,1,vc,pUe),b.Vf=function(t){return h(t,38),G4t},b.nf=function(t,s){gvn(this,h(t,38),s)};var G4t;D(Oy,"NetworkSimplexLayerer",1357),_(1363,1,vc,fJe),b.Vf=function(t){return h(t,38),_r(_r(_r(new Ki,(cs(),uh),(vs(),DI)),P0,q6),jc,H6)},b.nf=function(t,s){ryn(this,h(t,38),s)},b.d=0,b.f=0,b.g=0,b.i=0,b.s=0,b.t=0,b.u=0,D(Oy,"StretchWidthLayerer",1363),_(1364,1,Vr,uLe),b.ue=function(t,s){return Ltn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"StretchWidthLayerer/1",1364),_(451,1,i3e),b.Kf=function(t,s,a,l,f,v){},b.Xf=function(t,s,a){return Q1t(this,t,s,a)},b.Jf=function(){this.g=ge(aw,Dbt,24,this.d,15,1),this.f=ge(aw,Dbt,24,this.d,15,1)},b.Lf=function(t,s){this.e[t]=ge(An,nr,24,s[t].length,15,1)},b.Mf=function(t,s,a){var l;l=a[t][s],l.p=s,this.e[t][s]=s},b.Nf=function(t,s,a,l){h(st(l[t][s].j,a),11).p=this.d++},b.b=0,b.c=0,b.d=0,D(Eu,"AbstractBarycenterPortDistributor",451),_(1603,1,Vr,jqe),b.ue=function(t,s){return Aan(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Eu,"AbstractBarycenterPortDistributor/lambda$0$Type",1603),_(1774,1,dO,Brt),b.Kf=function(t,s,a,l,f,v){},b.Mf=function(t,s,a){},b.Nf=function(t,s,a,l){},b.If=function(){return!1},b.Jf=function(){this.a=this.c.a,this.e=this.d.g},b.Lf=function(t,s){s[t][0].c.p=t},b.Of=function(){return!1},b.Pf=function(t,s,a,l){var f,v,w,S,C,A,M;for(s!=_et(a,t.length)&&(v=t[s-(a?1:-1)],Wge(this.d,v,a?(ss(),nc):(ss(),Rc))),f=t[s][0],M=!l||f.k==(tn(),Pi),A=fd(t[s]),Fct(this,A,M,!1,a),w=0,C=new Q(A);C.a"),t0?uY(this.a,t[s-1],t[s]):!a&&s1&&(f.j==(He(),nn)?this.b[t]=!0:f.j==Xt&&t>0&&(this.b[t-1]=!0))},b.f=0,D(zh,"AllCrossingsCounter",1770),_(578,1,{},z$),b.b=0,b.d=0,D(zh,"BinaryIndexedTree",578),_(517,1,{},lA);var fke,Yz;D(zh,"CrossingsCounter",517),_(1878,1,Vr,Hqe),b.ue=function(t,s){return qYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(zh,"CrossingsCounter/lambda$0$Type",1878),_(1879,1,Vr,qqe),b.ue=function(t,s){return WYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(zh,"CrossingsCounter/lambda$1$Type",1879),_(1880,1,Vr,Wqe),b.ue=function(t,s){return GYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(zh,"CrossingsCounter/lambda$2$Type",1880),_(1881,1,Vr,Gqe),b.ue=function(t,s){return XYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(zh,"CrossingsCounter/lambda$3$Type",1881),_(1882,1,un,Xqe),b.td=function(t){wnn(this.a,h(t,11))},D(zh,"CrossingsCounter/lambda$4$Type",1882),_(1883,1,br,Kqe),b.Mb=function(t){return Bqt(this.a,h(t,11))},D(zh,"CrossingsCounter/lambda$5$Type",1883),_(1884,1,un,Yqe),b.td=function(t){_Ye(this,t)},D(zh,"CrossingsCounter/lambda$6$Type",1884),_(1885,1,un,CYe),b.td=function(t){var s;u5(),Eg(this.b,(s=this.a,h(t,11),s))},D(zh,"CrossingsCounter/lambda$7$Type",1885),_(805,1,Zd,ode),b.Lb=function(t){return u5(),Lo(h(t,11),(Be(),Kc))},b.Fb=function(t){return this===t},b.Mb=function(t){return u5(),Lo(h(t,11),(Be(),Kc))},D(zh,"CrossingsCounter/lambda$8$Type",805),_(1877,1,{},Qqe),D(zh,"HyperedgeCrossingsCounter",1877),_(461,1,{36:1,461:1},dJe),b.wd=function(t){return man(this,h(t,461))},b.b=0,b.c=0,b.e=0,b.f=0;var e2n=D(zh,"HyperedgeCrossingsCounter/Hyperedge",461);_(359,1,{36:1,359:1},LR),b.wd=function(t){return g1n(this,h(t,359))},b.b=0,b.c=0;var tSt=D(zh,"HyperedgeCrossingsCounter/HyperedgeCorner",359);_(516,22,{3:1,36:1,22:1,516:1},f1e);var QI,ZI,nSt=Wn(zh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",516,Qn,aJt,yKt),rSt;_(1374,1,vc,bUe),b.Vf=function(t){return h(G(h(t,38),(Be(),Na)),21).Fc((Zo(),yl))?iSt:null},b.nf=function(t,s){Fun(this,h(t,38),s)};var iSt;D(es,"InteractiveNodePlacer",1374),_(1375,1,vc,mUe),b.Vf=function(t){return h(G(h(t,38),(Be(),Na)),21).Fc((Zo(),yl))?oSt:null},b.nf=function(t,s){kcn(this,h(t,38),s)};var oSt,Qz,Zz;D(es,"LinearSegmentsNodePlacer",1375),_(256,1,{36:1,256:1},she),b.wd=function(t){return uqt(this,h(t,256))},b.Fb=function(t){var s;return ue(t,256)?(s=h(t,256),this.b==s.b):!1},b.Hb=function(){return this.b},b.Ib=function(){return"ls"+b0(this.e)},b.a=0,b.b=0,b.c=-1,b.d=-1,b.g=0;var sSt=D(es,"LinearSegmentsNodePlacer/LinearSegment",256);_(1377,1,vc,Vet),b.Vf=function(t){return h(G(h(t,38),(Be(),Na)),21).Fc((Zo(),yl))?aSt:null},b.nf=function(t,s){dwn(this,h(t,38),s)},b.b=0,b.g=0;var aSt;D(es,"NetworkSimplexPlacer",1377),_(1396,1,Vr,lLe),b.ue=function(t,s){return Ya(h(t,20).a,h(s,20).a)},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(es,"NetworkSimplexPlacer/0methodref$compare$Type",1396),_(1398,1,Vr,fLe),b.ue=function(t,s){return Ya(h(t,20).a,h(s,20).a)},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(es,"NetworkSimplexPlacer/1methodref$compare$Type",1398),_(639,1,{639:1},IYe);var t2n=D(es,"NetworkSimplexPlacer/EdgeRep",639);_(397,1,{397:1},nge),b.b=!1;var n2n=D(es,"NetworkSimplexPlacer/NodeRep",397);_(500,12,{3:1,4:1,19:1,28:1,51:1,12:1,15:1,14:1,53:1,500:1},LGe),D(es,"NetworkSimplexPlacer/Path",500),_(1378,1,{},dLe),b.Kb=function(t){return h(t,18).d.i.k},D(es,"NetworkSimplexPlacer/Path/lambda$0$Type",1378),_(1379,1,br,hLe),b.Mb=function(t){return h(t,266)==(tn(),Yi)},D(es,"NetworkSimplexPlacer/Path/lambda$1$Type",1379),_(1380,1,{},pLe),b.Kb=function(t){return h(t,18).d.i},D(es,"NetworkSimplexPlacer/Path/lambda$2$Type",1380),_(1381,1,br,Zqe),b.Mb=function(t){return YZe(Mut(h(t,10)))},D(es,"NetworkSimplexPlacer/Path/lambda$3$Type",1381),_(1382,1,br,gLe),b.Mb=function(t){return MYt(h(t,11))},D(es,"NetworkSimplexPlacer/lambda$0$Type",1382),_(1383,1,un,TYe),b.td=function(t){DWt(this.a,this.b,h(t,11))},D(es,"NetworkSimplexPlacer/lambda$1$Type",1383),_(1392,1,un,Jqe),b.td=function(t){qdn(this.a,h(t,18))},D(es,"NetworkSimplexPlacer/lambda$10$Type",1392),_(1393,1,{},bLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(es,"NetworkSimplexPlacer/lambda$11$Type",1393),_(1394,1,un,eWe),b.td=function(t){D0n(this.a,h(t,10))},D(es,"NetworkSimplexPlacer/lambda$12$Type",1394),_(1395,1,{},yLe),b.Kb=function(t){return $u(),Ue(h(t,119).e)},D(es,"NetworkSimplexPlacer/lambda$13$Type",1395),_(1397,1,{},wLe),b.Kb=function(t){return $u(),Ue(h(t,119).e)},D(es,"NetworkSimplexPlacer/lambda$15$Type",1397),_(1399,1,br,xLe),b.Mb=function(t){return $u(),h(t,397).c.k==(tn(),Ri)},D(es,"NetworkSimplexPlacer/lambda$17$Type",1399),_(1400,1,br,SLe),b.Mb=function(t){return $u(),h(t,397).c.j.c.length>1},D(es,"NetworkSimplexPlacer/lambda$18$Type",1400),_(1401,1,un,Wtt),b.td=function(t){Tsn(this.c,this.b,this.d,this.a,h(t,397))},b.c=0,b.d=0,D(es,"NetworkSimplexPlacer/lambda$19$Type",1401),_(1384,1,{},ILe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(es,"NetworkSimplexPlacer/lambda$2$Type",1384),_(1402,1,un,tWe),b.td=function(t){NWt(this.a,h(t,11))},b.a=0,D(es,"NetworkSimplexPlacer/lambda$20$Type",1402),_(1403,1,{},TLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(es,"NetworkSimplexPlacer/lambda$21$Type",1403),_(1404,1,un,nWe),b.td=function(t){KWt(this.a,h(t,10))},D(es,"NetworkSimplexPlacer/lambda$22$Type",1404),_(1405,1,br,ALe),b.Mb=function(t){return YZe(t)},D(es,"NetworkSimplexPlacer/lambda$23$Type",1405),_(1406,1,{},PLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(es,"NetworkSimplexPlacer/lambda$24$Type",1406),_(1407,1,br,rWe),b.Mb=function(t){return tWt(this.a,h(t,10))},D(es,"NetworkSimplexPlacer/lambda$25$Type",1407),_(1408,1,un,AYe),b.td=function(t){hdn(this.a,this.b,h(t,10))},D(es,"NetworkSimplexPlacer/lambda$26$Type",1408),_(1409,1,br,OLe),b.Mb=function(t){return $u(),!Qo(h(t,18))},D(es,"NetworkSimplexPlacer/lambda$27$Type",1409),_(1410,1,br,_Le),b.Mb=function(t){return $u(),!Qo(h(t,18))},D(es,"NetworkSimplexPlacer/lambda$28$Type",1410),_(1411,1,{},iWe),b.Ce=function(t,s){return jWt(this.a,h(t,29),h(s,29))},D(es,"NetworkSimplexPlacer/lambda$29$Type",1411),_(1385,1,{},MLe),b.Kb=function(t){return $u(),new Rt(null,new em(new bn(mn(Ni(h(t,10)).a.Ic(),new j))))},D(es,"NetworkSimplexPlacer/lambda$3$Type",1385),_(1386,1,br,DLe),b.Mb=function(t){return $u(),Oen(h(t,18))},D(es,"NetworkSimplexPlacer/lambda$4$Type",1386),_(1387,1,un,oWe),b.td=function(t){Tbn(this.a,h(t,18))},D(es,"NetworkSimplexPlacer/lambda$5$Type",1387),_(1388,1,{},NLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(es,"NetworkSimplexPlacer/lambda$6$Type",1388),_(1389,1,br,jLe),b.Mb=function(t){return $u(),h(t,10).k==(tn(),Ri)},D(es,"NetworkSimplexPlacer/lambda$7$Type",1389),_(1390,1,{},RLe),b.Kb=function(t){return $u(),new Rt(null,new em(new bn(mn(v1(h(t,10)).a.Ic(),new j))))},D(es,"NetworkSimplexPlacer/lambda$8$Type",1390),_(1391,1,br,$Le),b.Mb=function(t){return $u(),AYt(h(t,18))},D(es,"NetworkSimplexPlacer/lambda$9$Type",1391),_(1373,1,vc,kUe),b.Vf=function(t){return h(G(h(t,38),(Be(),Na)),21).Fc((Zo(),yl))?cSt:null},b.nf=function(t,s){cmn(h(t,38),s)};var cSt;D(es,"SimpleNodePlacer",1373),_(182,1,{182:1},I2),b.Ib=function(){var t;return t="",this.c==(Wd(),Ym)?t+=l4:this.c==wp&&(t+=u4),this.o==(ud(),ub)?t+=fee:this.o==Ed?t+="UP":t+="BALANCED",t},D(k0,"BKAlignedLayout",182),_(509,22,{3:1,36:1,22:1,509:1},d1e);var wp,Ym,uSt=Wn(k0,"BKAlignedLayout/HDirection",509,Qn,cJt,wKt),lSt;_(508,22,{3:1,36:1,22:1,508:1},h1e);var ub,Ed,fSt=Wn(k0,"BKAlignedLayout/VDirection",508,Qn,uJt,xKt),dSt;_(1604,1,{},PYe),D(k0,"BKAligner",1604),_(1607,1,{},Zlt),D(k0,"BKCompactor",1607),_(643,1,{643:1},LLe),b.a=0,D(k0,"BKCompactor/ClassEdge",643),_(452,1,{452:1},RGe),b.a=null,b.b=0,D(k0,"BKCompactor/ClassNode",452),_(1376,1,vc,lQe),b.Vf=function(t){return h(G(h(t,38),(Be(),Na)),21).Fc((Zo(),yl))?hSt:null},b.nf=function(t,s){Pwn(this,h(t,38),s)},b.d=!1;var hSt;D(k0,"BKNodePlacer",1376),_(1605,1,{},FLe),b.d=0,D(k0,"NeighborhoodInformation",1605),_(1606,1,Vr,sWe),b.ue=function(t,s){return Xnn(this,h(t,46),h(s,46))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(k0,"NeighborhoodInformation/NeighborComparator",1606),_(789,1,{}),D(k0,"ThresholdStrategy",789),_(1734,789,{},FGe),b.Yf=function(t,s,a){return this.a.o==(ud(),Ed)?pi:Oi},b.Zf=function(){},D(k0,"ThresholdStrategy/NullThresholdStrategy",1734),_(570,1,{570:1},OYe),b.c=!1,b.d=!1,D(k0,"ThresholdStrategy/Postprocessable",570),_(1735,789,{},BGe),b.Yf=function(t,s,a){var l,f,v;return f=s==a,l=this.a.a[a.p]==s,f||l?(v=t,this.a.c==(Wd(),Ym)?(f&&(v=dJ(this,s,!0)),!isNaN(v)&&!isFinite(v)&&l&&(v=dJ(this,a,!1))):(f&&(v=dJ(this,s,!0)),!isNaN(v)&&!isFinite(v)&&l&&(v=dJ(this,a,!1))),v):t},b.Zf=function(){for(var t,s,a,l,f;this.d.b!=0;)f=h(SJt(this.d),570),l=ppt(this,f),l.a&&(t=l.a,a=_t(this.a.f[this.a.g[f.b.p].p]),!(!a&&!Qo(t)&&t.c.i.c==t.d.i.c)&&(s=kht(this,f),s||cWt(this.e,f)));for(;this.e.a.c.length!=0;)kht(this,h(Nct(this.e),570))},D(k0,"ThresholdStrategy/SimpleThresholdStrategy",1735),_(625,1,{625:1,245:1,233:1},BLe),b.Hf=function(){return Qat(this)},b.Uf=function(){return Qat(this)};var uie;D(ite,"EdgeRouterFactory",625),_(1427,1,vc,CUe),b.Vf=function(t){return p0n(h(t,38))},b.nf=function(t,s){dmn(h(t,38),s)};var pSt,gSt,bSt,mSt,vSt,dke,ySt,wSt;D(ite,"OrthogonalEdgeRouter",1427),_(1420,1,vc,fQe),b.Vf=function(t){return qun(h(t,38))},b.nf=function(t,s){jyn(this,h(t,38),s)};var xSt,SSt,ESt,kSt,JO,CSt;D(ite,"PolylineEdgeRouter",1420),_(1421,1,Zd,zLe),b.Lb=function(t){return Bbe(h(t,10))},b.Fb=function(t){return this===t},b.Mb=function(t){return Bbe(h(t,10))},D(ite,"PolylineEdgeRouter/1",1421),_(1781,1,br,VLe),b.Mb=function(t){return h(t,129).c==(Mf(),D0)},D(zf,"HyperEdgeCycleDetector/lambda$0$Type",1781),_(1782,1,{},ULe),b.Ge=function(t){return h(t,129).d},D(zf,"HyperEdgeCycleDetector/lambda$1$Type",1782),_(1783,1,br,HLe),b.Mb=function(t){return h(t,129).c==(Mf(),D0)},D(zf,"HyperEdgeCycleDetector/lambda$2$Type",1783),_(1784,1,{},qLe),b.Ge=function(t){return h(t,129).d},D(zf,"HyperEdgeCycleDetector/lambda$3$Type",1784),_(1785,1,{},WLe),b.Ge=function(t){return h(t,129).d},D(zf,"HyperEdgeCycleDetector/lambda$4$Type",1785),_(1786,1,{},GLe),b.Ge=function(t){return h(t,129).d},D(zf,"HyperEdgeCycleDetector/lambda$5$Type",1786),_(111,1,{36:1,111:1},KA),b.wd=function(t){return lqt(this,h(t,111))},b.Fb=function(t){var s;return ue(t,111)?(s=h(t,111),this.g==s.g):!1},b.Hb=function(){return this.g},b.Ib=function(){var t,s,a,l;for(t=new ju("{"),l=new Q(this.n);l.a"+this.b+" ("+yGt(this.c)+")"},b.d=0,D(zf,"HyperEdgeSegmentDependency",129),_(513,22,{3:1,36:1,22:1,513:1},p1e);var D0,Qy,ISt=Wn(zf,"HyperEdgeSegmentDependency/DependencyType",513,Qn,sJt,SKt),TSt;_(1787,1,{},aWe),D(zf,"HyperEdgeSegmentSplitter",1787),_(1788,1,{},LXe),b.a=0,b.b=0,D(zf,"HyperEdgeSegmentSplitter/AreaRating",1788),_(327,1,{327:1},gK),b.a=0,b.b=0,b.c=0,D(zf,"HyperEdgeSegmentSplitter/FreeArea",327),_(1789,1,Vr,tFe),b.ue=function(t,s){return dXt(h(t,111),h(s,111))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(zf,"HyperEdgeSegmentSplitter/lambda$0$Type",1789),_(1790,1,un,Gtt),b.td=function(t){utn(this.a,this.d,this.c,this.b,h(t,111))},b.b=0,D(zf,"HyperEdgeSegmentSplitter/lambda$1$Type",1790),_(1791,1,{},nFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).e,16))},D(zf,"HyperEdgeSegmentSplitter/lambda$2$Type",1791),_(1792,1,{},rFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).j,16))},D(zf,"HyperEdgeSegmentSplitter/lambda$3$Type",1792),_(1793,1,{},iFe),b.Fe=function(t){return Ae(Ke(t))},D(zf,"HyperEdgeSegmentSplitter/lambda$4$Type",1793),_(644,1,{},FK),b.a=0,b.b=0,b.c=0,D(zf,"OrthogonalRoutingGenerator",644),_(1608,1,{},oFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).e,16))},D(zf,"OrthogonalRoutingGenerator/lambda$0$Type",1608),_(1609,1,{},sFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).j,16))},D(zf,"OrthogonalRoutingGenerator/lambda$1$Type",1609),_(649,1,{}),D(ote,"BaseRoutingDirectionStrategy",649),_(1779,649,{},zGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J;if(!(!!t.r&&!t.q))for(M=s+t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(R,v),lr(w.a,l),Cm(this,w,f,l,!1),z=t.r,z&&(q=Ae(Ke(Ff(z.e,0))),l=new ot(q,v),lr(w.a,l),Cm(this,w,f,l,!1),v=s+z.o*a,f=z,l=new ot(q,v),lr(w.a,l),Cm(this,w,f,l,!1)),l=new ot(J,v),lr(w.a,l),Cm(this,w,f,l,!1)))},b._f=function(t){return t.i.n.a+t.n.a+t.a.a},b.ag=function(){return He(),xn},b.bg=function(){return He(),Wt},D(ote,"NorthToSouthRoutingStrategy",1779),_(1780,649,{},VGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J;if(!(!!t.r&&!t.q))for(M=s-t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(R,v),lr(w.a,l),Cm(this,w,f,l,!1),z=t.r,z&&(q=Ae(Ke(Ff(z.e,0))),l=new ot(q,v),lr(w.a,l),Cm(this,w,f,l,!1),v=s-z.o*a,f=z,l=new ot(q,v),lr(w.a,l),Cm(this,w,f,l,!1)),l=new ot(J,v),lr(w.a,l),Cm(this,w,f,l,!1)))},b._f=function(t){return t.i.n.a+t.n.a+t.a.a},b.ag=function(){return He(),Wt},b.bg=function(){return He(),xn},D(ote,"SouthToNorthRoutingStrategy",1780),_(1778,649,{},UGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,z,q,W,J;if(!(!!t.r&&!t.q))for(M=s+t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(v,R),lr(w.a,l),Cm(this,w,f,l,!0),z=t.r,z&&(q=Ae(Ke(Ff(z.e,0))),l=new ot(v,q),lr(w.a,l),Cm(this,w,f,l,!0),v=s+z.o*a,f=z,l=new ot(v,q),lr(w.a,l),Cm(this,w,f,l,!0)),l=new ot(v,J),lr(w.a,l),Cm(this,w,f,l,!0)))},b._f=function(t){return t.i.n.b+t.n.b+t.a.b},b.ag=function(){return He(),nn},b.bg=function(){return He(),Xt},D(ote,"WestToEastRoutingStrategy",1778),_(794,1,{},Owe),b.Ib=function(){return b0(this.a)},b.b=0,b.c=!1,b.d=!1,b.f=0,D(_y,"NubSpline",794),_(402,1,{402:1},Qht,Cnt),D(_y,"NubSpline/PolarCP",402),_(1422,1,vc,Hlt),b.Vf=function(t){return Rln(h(t,38))},b.nf=function(t,s){Zyn(this,h(t,38),s)};var ASt,PSt,OSt,_St,MSt;D(_y,"SplineEdgeRouter",1422),_(267,1,{267:1},f$),b.Ib=function(){return this.a+" ->("+this.c+") "+this.b},b.c=0,D(_y,"SplineEdgeRouter/Dependency",267),_(448,22,{3:1,36:1,22:1,448:1},g1e);var N0,ox,DSt=Wn(_y,"SplineEdgeRouter/SideToProcess",448,Qn,lJt,EKt),NSt;_(1423,1,br,eFe),b.Mb=function(t){return z8(),!h(t,128).o},D(_y,"SplineEdgeRouter/lambda$0$Type",1423),_(1424,1,{},JLe),b.Ge=function(t){return z8(),h(t,128).v+1},D(_y,"SplineEdgeRouter/lambda$1$Type",1424),_(1425,1,un,LYe),b.td=function(t){OYt(this.a,this.b,h(t,46))},D(_y,"SplineEdgeRouter/lambda$2$Type",1425),_(1426,1,un,FYe),b.td=function(t){_Yt(this.a,this.b,h(t,46))},D(_y,"SplineEdgeRouter/lambda$3$Type",1426),_(128,1,{36:1,128:1},ydt,Rwe),b.wd=function(t){return fqt(this,h(t,128))},b.b=0,b.e=!1,b.f=0,b.g=0,b.j=!1,b.k=!1,b.n=0,b.o=!1,b.p=!1,b.q=!1,b.s=0,b.u=0,b.v=0,b.F=0,D(_y,"SplineSegment",128),_(453,1,{453:1},KLe),b.a=0,b.b=!1,b.c=!1,b.d=!1,b.e=!1,b.f=0,D(_y,"SplineSegment/EdgeInformation",453),_(1207,1,{},XLe),D(fI,O2e,1207),_(1208,1,Vr,YLe),b.ue=function(t,s){return ahn(h(t,135),h(s,135))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(fI,Xgt,1208),_(1206,1,{},oKe),D(fI,"MrTree",1206),_(389,22,{3:1,36:1,22:1,389:1,245:1,233:1},_j),b.Hf=function(){return Vdt(this)},b.Uf=function(){return Vdt(this)};var Jz,JI,e_,e9,hke=Wn(fI,"TreeLayoutPhases",389,Qn,Ken,kKt),jSt;_(1103,207,qg,hJe),b.$e=function(t,s){var a,l,f,v,w,S;for(v=(w=new g$,Cs(w,t),_e(w,(ua(),r9),t),S=new Vn,Vgn(t,w,S),ibn(t,w,S),w),f=Ygn(this.a,v),l=new Q(f);l.a"+t$(this.c):"e_"+ri(this)},D(dI,"TEdge",188),_(135,134,{3:1,135:1,94:1,134:1},g$),b.Ib=function(){var t,s,a,l,f;for(f=null,l=sr(this.b,0);l.b!=l.d.c;)a=h(or(l),83),f+=(a.c==null||a.c.length==0?"n_"+a.g:"n_"+a.c)+` -`;for(s=sr(this.a,0);s.b!=s.d.c;)t=h(or(s),188),f+=(!!t.b&&!!t.c?t$(t.b)+"->"+t$(t.c):"e_"+ri(t))+` -`;return f};var r2n=D(dI,"TGraph",135);_(623,493,{3:1,493:1,623:1,94:1,134:1}),D(dI,"TShape",623),_(83,623,{3:1,493:1,83:1,623:1,94:1,134:1},hQ),b.Ib=function(){return t$(this)};var i2n=D(dI,"TNode",83);_(254,1,Rh,qp),b.Hc=function(t){Eo(this,t)},b.Ic=function(){var t;return t=sr(this.a.d,0),new p3(t)},D(dI,"TNode/2",254),_(355,1,bo,p3),b.Nb=function(t){wo(this,t)},b.Pb=function(){return h(or(this.a),188).c},b.Ob=function(){return cj(this.a)},b.Qb=function(){T$(this.a)},D(dI,"TNode/2/1",355),_(1812,1,gi,pJe),b.nf=function(t,s){wbn(this,h(t,135),s)},D(b4,"FanProcessor",1812),_(325,22,{3:1,36:1,22:1,325:1,233:1},AC),b.Hf=function(){switch(this.g){case 0:return new nXe;case 1:return new pJe;case 2:return new uFe;case 3:return new aFe;case 4:return new fFe;case 5:return new dFe;default:throw ee(new Gt(Aee+(this.f!=null?this.f:""+this.g)))}};var lie,fie,die,hie,pie,eV,RSt=Wn(b4,z2e,325,Qn,nnn,CKt),$St;_(1815,1,gi,aFe),b.nf=function(t,s){f1n(this,h(t,135),s)},b.a=0,D(b4,"LevelHeightProcessor",1815),_(1816,1,Rh,cFe),b.Hc=function(t){Eo(this,t)},b.Ic=function(){return Mt(),t5(),B6},D(b4,"LevelHeightProcessor/1",1816),_(1813,1,gi,uFe),b.nf=function(t,s){wdn(this,h(t,135),s)},b.a=0,D(b4,"NeighborsProcessor",1813),_(1814,1,Rh,lFe),b.Hc=function(t){Eo(this,t)},b.Ic=function(){return Mt(),t5(),B6},D(b4,"NeighborsProcessor/1",1814),_(1817,1,gi,fFe),b.nf=function(t,s){l1n(this,h(t,135),s)},b.a=0,D(b4,"NodePositionProcessor",1817),_(1811,1,gi,nXe),b.nf=function(t,s){kmn(this,h(t,135))},D(b4,"RootProcessor",1811),_(1818,1,gi,dFe),b.nf=function(t,s){Fon(h(t,135))},D(b4,"Untreeifyer",1818);var t_,t9,LSt,gie,tV,n9,bie,nV,rV,lE,r9,iV,xp,pke,FSt,mie,Zy,vie,gke;_(830,1,Fl,IUe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,o3e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),mke),(dp(),xi)),Eke),Tt((Lf(),an))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,s3e),""),"Search Order"),"Which search order to use when computing a spanning tree."),bke),xi),Cke),Tt(an)))),Hpt((new TUe,t))};var BSt,bke,zSt,mke;D(QF,"MrTreeMetaDataProvider",830),_(974,1,Fl,TUe),b.Qe=function(t){Hpt(t)};var VSt,vke,USt,yke,oV,wke,HSt,xke,qSt;D(QF,"MrTreeOptions",974),_(975,1,{},hFe),b._e=function(){var t;return t=new hJe,t},b.af=function(t){},D(QF,"MrTreeOptions/MrtreeFactory",975),_(474,22,{3:1,36:1,22:1,474:1},b1e);var yie,Ske,Eke=Wn(QF,"OrderWeighting",474,Qn,fJt,IKt),WSt;_(419,22,{3:1,36:1,22:1,419:1},m1e);var kke,wie,Cke=Wn(QF,"TreeifyingOrder",419,Qn,dJt,AKt),GSt;_(1428,1,vc,yUe),b.Vf=function(t){return h(t,135),XSt},b.nf=function(t,s){Krn(this,h(t,135),s)};var XSt;D("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1428),_(1429,1,vc,vUe),b.Vf=function(t){return h(t,135),KSt},b.nf=function(t,s){_dn(this,h(t,135),s)};var KSt;D("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1429),_(1430,1,vc,wUe),b.Vf=function(t){return h(t,135),YSt},b.nf=function(t,s){L0n(this,h(t,135),s)},b.a=0;var YSt;D("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1430),_(1431,1,vc,xUe),b.Vf=function(t){return h(t,135),QSt},b.nf=function(t,s){mun(h(t,135),s)};var QSt;D("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1431);var i9;_(487,22,{3:1,36:1,22:1,487:1,245:1,233:1},v1e),b.Hf=function(){return Eut(this)},b.Uf=function(){return Eut(this)};var sV,fE,Ike=Wn(a3e,"RadialLayoutPhases",487,Qn,hJt,TKt),ZSt;_(1104,207,qg,iKe),b.$e=function(t,s){var a,l,f,v,w,S,C;if(l=Cdt(this,t),_n(s,"Radial layout",l.c.length),C=Fln(t),Is(t,(VC(),i9),C),!C)throw ee(new Gt("The given graph is not a tree!"));for(v=Ae(Ke(Ot(t,(oy(),uV)))),v==0&&(v=Ldt(t)),Is(t,uV,v),a=new aC(t),pc(Ult(a),new Bde(a)),f=new HN(a),Lme(f),S=new Q(Cdt(this,t));S.a0&&Zct((Fn(s-1,t.length),t.charCodeAt(s-1)),ibt);)--s;if(l>=s)throw ee(new Gt("The given string does not contain any numbers."));if(f=xy(t.substr(l,s-l),`,|;|\r| -`),f.length!=2)throw ee(new Gt("Exactly two numbers are expected, "+f.length+" were found."));try{this.a=gy(py(f[0])),this.b=gy(py(f[1]))}catch(v){throw v=ni(v),ue(v,127)?(a=v,ee(new Gt(obt+a))):ee(v)}},b.Ib=function(){return"("+this.a+","+this.b+")"},b.a=0,b.b=0;var Hi=D(fO,"KVector",8);_(74,68,{3:1,4:1,19:1,28:1,51:1,15:1,68:1,14:1,74:1,409:1},Ic,aj,$Ze),b.Nc=function(){return ron(this)},b.Gf=function(t){var s,a,l,f,v,w;l=xy(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),Dl(this);try{for(a=0,v=0,f=0,w=0;a0&&(v%2==0?f=gy(l[a]):w=gy(l[a]),v>0&&v%2!=0&&lr(this,new ot(f,w)),++v),++a}catch(S){throw S=ni(S),ue(S,127)?(s=S,ee(new Gt("The given string does not match the expected format for vectors."+s))):ee(S)}},b.Ib=function(){var t,s,a;for(t=new ju("("),s=sr(this,0);s.b!=s.d.c;)a=h(or(s),8),Xn(t,a.a+","+a.b),s.b!=s.d.c&&(t.a+="; ");return(t.a+=")",t).a};var MCe=D(fO,"KVectorChain",74);_(247,22,{3:1,36:1,22:1,247:1},PC);var Vie,bV,mV,o_,s_,vV,DCe=Wn(Bl,"Alignment",247,Qn,onn,qKt),a6t;_(943,1,Fl,AUe),b.Qe=function(t){opt(t)};var NCe,Uie,c6t,jCe,RCe,u6t,$Ce,l6t,f6t,LCe,FCe,d6t;D(Bl,"BoxLayouterOptions",943),_(944,1,{},lBe),b._e=function(){var t;return t=new hBe,t},b.af=function(t){},D(Bl,"BoxLayouterOptions/BoxFactory",944),_(290,22,{3:1,36:1,22:1,290:1},OC);var a_,Hie,c_,u_,l_,qie,Wie=Wn(Bl,"ContentAlignment",290,Qn,snn,WKt),h6t;_(671,1,Fl,hde),b.Qe=function(t){Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Zbt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(dp(),dE)),Ze),Tt((Lf(),an))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Jbt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),kd),a2n),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Nxe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),BCe),xi),DCe),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,d4),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,M3e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),kd),MCe),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,GF),""),"Content Alignment"),"Specifies how the content of compound nodes is to be aligned, e.g. top-left."),VCe),j4),Wie),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,gO),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Zt(),!1)),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$xe),""),x2e),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),UCe),xi),d9),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,pO),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),WCe),xi),ioe),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,JF),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,qF),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),YCe),xi),N8e),Zr(an,re(te(Ep,1),je,175,0,[Qi]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Gg),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),s8e),kd),ZSe),Zr(an,re(te(Ep,1),je,175,0,[Qi]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uO),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,rte),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Cee),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),f8e),xi),$8e),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,KF),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),kd),Hi),Zr(Qi,re(te(Ep,1),je,175,0,[lb,Sp]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,aO),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),fa),No),Zr(Qi,re(te(Ep,1),je,175,0,[dh]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,TF),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,cO),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Xxe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),ZCe),kd),MCe),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Qxe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Wo),io),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Zxe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Wo),io),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,emt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),kd),d2n),Zr(an,re(te(Ep,1),je,175,0,[Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,e3e),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),JCe),kd),QSe),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Mxe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Wo),io),Zr(Qi,re(te(Ep,1),je,175,0,[dh,lb,Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,tmt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),ea),To),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,nmt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,rmt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ue(100)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,imt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,omt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ue(4e3)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,smt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ue(400)),fa),No),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,amt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,cmt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,umt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lmt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,_3e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),zCe),xi),U8e),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,xxe),nh),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Sxe),nh),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,yee),nh),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Exe),nh),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,kee),nh),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,kxe),nh),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Cxe),nh),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Txe),nh),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Ixe),nh),"Label Port Spacing"),"Spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Py),nh),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Axe),nh),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),ea),To),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Pxe),nh),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),ea),To),Zr(an,re(te(Ep,1),je,175,0,[Qi]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Oxe),nh),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),kd),Y6t),Zr(Qi,re(te(Ep,1),je,175,0,[dh,lb,Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,t3e),nh),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),w8e),kd),QSe),Tt(an)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,nte),pmt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),fa),No),Zr(an,re(te(Ep,1),je,175,0,[Qi]))))),So(t,nte,tte,S6t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,tte),pmt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),a8e),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Fxe),gmt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),t8e),kd),ZSe),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Lxe),gmt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),n8e),j4),ts),Zr(Qi,re(te(Ep,1),je,175,0,[Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Uxe),tB),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),u8e),xi),m9),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Hxe),tB),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,qxe),tB),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Wxe),tB),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),xi),m9),Tt(Qi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Gxe),tB),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,WF),Ste),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),r8e),j4),y9),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,ete),Ste),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),o8e),j4),F8e),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,XF),Ste),"Node Size Minimum"),"The minimal size to which a node can be reduced."),i8e),kd),Hi),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,D3e),Ste),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Wo),io),Tt(an)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Kxe),Jee),"Edge Label Placement"),"Gives a hint on where to put edge labels."),HCe),xi),S8e),Tt(Sp)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,AF),Jee),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Wo),io),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,fmt),"font"),"Font Name"),"Font name used for a label."),dE),Ze),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,dmt),"font"),"Font Size"),"Font size used for a label."),fa),No),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Jxe),Ete),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),kd),Hi),Tt(lb)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Yxe),Ete),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),fa),No),Tt(lb)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Dxe),Ete),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),p8e),xi),zo),Tt(lb)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,_xe),Ete),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),ea),To),Tt(lb)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Bxe),N3e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),d8e),j4),IV),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,zxe),N3e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Wo),io),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Vxe),N3e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Wo),io),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jxe),bmt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Wo),io),Tt(Qi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Rxe),bmt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Wo),io),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,wee),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),ea),To),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,hmt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),XCe),xi),A8e),Tt(dh)))),vC(t,new $3(dC(YS(QS(new d3,ln),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),vC(t,new $3(dC(YS(QS(new d3,yd),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),vC(t,new $3(dC(YS(QS(new d3,Fbt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),vC(t,new $3(dC(YS(QS(new d3,_m),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),H1t((new PUe,t)),opt((new AUe,t)),x1t((new RUe,t))};var u9,p6t,BCe,R4,g6t,b6t,zCe,m6t,yV,VCe,f_,l9,UCe,Gie,Xie,HCe,qCe,WCe,GCe,XCe,KCe,ax,YCe,v6t,d_,Kie,wV,QCe,cx,ZCe,h_,JCe,e8e,t8e,xV,n8e,hE,r8e,y6t,p_,i8e,$4,o8e,SV,j0,s8e,w6t,a8e,x6t,S6t,c8e,u8e,Yie,Qie,Zie,Jie,l8e,lu,g_,f8e,E6t,eoe,b_,d8e,h8e,f9,p8e,L4,EV,toe,pE,k6t,noe,C6t,I6t,g8e,T6t,b8e,A6t,F4,m8e,kV,v8e,fb,P6t,y8e,w8e,x8e;D(Bl,"CoreOptions",671),_(108,22,{3:1,36:1,22:1,108:1},GT);var T1,xf,qf,A1,P1,d9=Wn(Bl,x2e,108,Qn,Ptn,GKt),O6t;_(271,22,{3:1,36:1,22:1,271:1},RX);var gE,Jy,bE,S8e=Wn(Bl,"EdgeLabelPlacement",271,Qn,fen,XKt),_6t;_(216,22,{3:1,36:1,22:1,216:1},Dj);var h9,m_,B4,roe,ioe=Wn(Bl,"EdgeRouting",216,Qn,Jen,KKt),M6t;_(310,22,{3:1,36:1,22:1,310:1},_C);var E8e,k8e,C8e,I8e,ooe,T8e,A8e=Wn(Bl,"EdgeType",310,Qn,rnn,YKt),D6t;_(941,1,Fl,PUe),b.Qe=function(t){H1t(t)};var P8e,O8e,_8e,M8e,N6t,D8e,p9;D(Bl,"FixedLayouterOptions",941),_(942,1,{},fBe),b._e=function(){var t;return t=new yBe,t},b.af=function(t){},D(Bl,"FixedLayouterOptions/FixedFactory",942),_(332,22,{3:1,36:1,22:1,332:1},$X);var kp,CV,g9,N8e=Wn(Bl,"HierarchyHandling",332,Qn,len,QKt),j6t;_(284,22,{3:1,36:1,22:1,284:1},Nj);var Vh,R0,v_,y_,R6t=Wn(Bl,"LabelSide",284,Qn,Zen,ZKt),$6t;_(92,22,{3:1,36:1,22:1,92:1},Hw);var O1,Sf,Wl,Ef,Xu,kf,Gl,Uh,Cf,ts=Wn(Bl,"NodeLabelPlacement",92,Qn,crn,JKt),L6t;_(248,22,{3:1,36:1,22:1,248:1},XT);var j8e,b9,$0,R8e,w_,m9=Wn(Bl,"PortAlignment",248,Qn,Otn,eYt),F6t;_(100,22,{3:1,36:1,22:1,100:1},MC);var db,ja,Hh,mE,Cd,L0,$8e=Wn(Bl,"PortConstraints",100,Qn,ann,tYt),B6t;_(291,22,{3:1,36:1,22:1,291:1},KT);var v9,_1,x_,F0,z4,IV=Wn(Bl,"PortLabelPlacement",291,Qn,_tn,nYt),z6t;_(61,22,{3:1,36:1,22:1,61:1},YT);var nn,Wt,vE,ux,Wf,Cp,TV,yE,lx,Id,$c,Td,Gf,Ad,V4,wE,fx,xE,xn,Us,Xt,zo=Wn(Bl,"PortSide",61,Qn,mtn,rYt),V6t;_(945,1,Fl,RUe),b.Qe=function(t){x1t(t)};var U6t,H6t,L8e,q6t,W6t;D(Bl,"RandomLayouterOptions",945),_(946,1,{},dBe),b._e=function(){var t;return t=new EBe,t},b.af=function(t){},D(Bl,"RandomLayouterOptions/RandomFactory",946),_(371,22,{3:1,36:1,22:1,371:1},jj);var ew,S_,E_,hb,y9=Wn(Bl,"SizeConstraint",371,Qn,Qen,iYt),G6t;_(258,22,{3:1,36:1,22:1,258:1},qw);var k_,AV,SE,soe,C_,w9,PV,OV,_V,F8e=Wn(Bl,"SizeOptions",258,Qn,hrn,oYt),X6t;_(367,1,{1921:1},GS),b.b=!1,b.c=0,b.d=-1,b.e=null,b.f=null,b.g=-1,b.j=!1,b.k=!1,b.n=!1,b.o=0,b.q=0,b.r=0,D(ma,"BasicProgressMonitor",367),_(936,207,qg,hBe),b.$e=function(t,s){var a,l,f,v,w,S,C,A,M;switch(_n(s,"Box layout",2),f=AT(Ke(Ot(t,(FL(),d6t)))),v=h(Ot(t,f6t),115),a=_t(It(Ot(t,jCe))),l=_t(It(Ot(t,RCe))),h(Ot(t,Uie),309).g){case 0:w=(S=new vu((!t.a&&(t.a=new $e(bi,t,10,11)),t.a)),Mt(),co(S,new yWe(l)),S),C=uye(t),A=Ke(Ot(t,NCe)),(A==null||(Ut(A),A<=0))&&(A=1.3),M=Vyn(w,f,v,C.a,C.b,a,(Ut(A),A)),Tm(t,M.a,M.b,!1,!0);break;default:Lmn(t,f,v,a)}yn(s)},D(ma,"BoxLayoutProvider",936),_(937,1,Vr,yWe),b.ue=function(t,s){return hpn(this,h(t,34),h(s,34))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},b.a=!1,D(ma,"BoxLayoutProvider/1",937),_(157,1,{157:1},_$,RZe),b.Ib=function(){return this.c?pwe(this.c):b0(this.b)},D(ma,"BoxLayoutProvider/Group",157),_(309,22,{3:1,36:1,22:1,309:1},Rj);var B8e,z8e,V8e,aoe,U8e=Wn(ma,"BoxLayoutProvider/PackingMode",309,Qn,etn,sYt),K6t;_(938,1,Vr,pBe),b.ue=function(t,s){return NZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(ma,"BoxLayoutProvider/lambda$0$Type",938),_(939,1,Vr,gBe),b.ue=function(t,s){return kZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(ma,"BoxLayoutProvider/lambda$1$Type",939),_(940,1,Vr,bBe),b.ue=function(t,s){return CZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(ma,"BoxLayoutProvider/lambda$2$Type",940),_(1336,1,{810:1},mBe),b.lg=function(t,s){return gj(),!ue(s,160)||uKe((X3(),h(t,160)),s)},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1336),_(1337,1,un,wWe),b.td=function(t){con(this.a,h(t,146))},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1337),_(1338,1,un,vBe),b.td=function(t){h(t,94),gj()},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1338),_(1342,1,un,xWe),b.td=function(t){Orn(this.a,h(t,94))},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1342),_(1340,1,br,MYe),b.Mb=function(t){return Bin(this.a,this.b,h(t,146))},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1340),_(1339,1,br,DYe),b.Mb=function(t){return vGt(this.a,this.b,h(t,810))},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1339),_(1341,1,un,NYe),b.td=function(t){vQt(this.a,this.b,h(t,146))},D(ma,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1341),_(914,1,{},wBe),b.Kb=function(t){return DQe(t)},b.Fb=function(t){return this===t},D(ma,"ElkUtil/lambda$0$Type",914),_(915,1,un,jYe),b.td=function(t){Shn(this.a,this.b,h(t,80))},b.a=0,b.b=0,D(ma,"ElkUtil/lambda$1$Type",915),_(916,1,un,RYe),b.td=function(t){OHt(this.a,this.b,h(t,201))},b.a=0,b.b=0,D(ma,"ElkUtil/lambda$2$Type",916),_(917,1,un,$Ye),b.td=function(t){OWt(this.a,this.b,h(t,137))},b.a=0,b.b=0,D(ma,"ElkUtil/lambda$3$Type",917),_(918,1,un,SWe),b.td=function(t){RYt(this.a,h(t,463))},D(ma,"ElkUtil/lambda$4$Type",918),_(338,1,{36:1,338:1},CT),b.wd=function(t){return ZWt(this,h(t,236))},b.Fb=function(t){var s;return ue(t,338)?(s=h(t,338),this.a==s.a):!1},b.Hb=function(){return Ci(this.a)},b.Ib=function(){return this.a+" (exclusive)"},b.a=0,D(ma,"ExclusiveBounds/ExclusiveLowerBound",338),_(1111,207,qg,yBe),b.$e=function(t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de,he,ve,Ie,Le,Ye,ft,at;for(_n(s,"Fixed Layout",1),v=h(Ot(t,(Pr(),qCe)),216),R=0,z=0,he=new pn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));he.e!=he.i.gc();){for(oe=h(vn(he),34),at=h(Ot(oe,(eL(),p9)),8),at&&(rd(oe,at.a,at.b),h(Ot(oe,O8e),174).Fc((xu(),ew))&&(q=h(Ot(oe,M8e),8),q.a>0&&q.b>0&&Tm(oe,q.a,q.b,!0,!0))),R=m.Math.max(R,oe.i+oe.g),z=m.Math.max(z,oe.j+oe.f),A=new pn((!oe.n&&(oe.n=new $e(Ms,oe,1,7)),oe.n));A.e!=A.i.gc();)S=h(vn(A),137),at=h(Ot(S,p9),8),at&&rd(S,at.a,at.b),R=m.Math.max(R,oe.i+S.i+S.g),z=m.Math.max(z,oe.j+S.j+S.f);for(Le=new pn((!oe.c&&(oe.c=new $e(fu,oe,9,9)),oe.c));Le.e!=Le.i.gc();)for(Ie=h(vn(Le),122),at=h(Ot(Ie,p9),8),at&&rd(Ie,at.a,at.b),Ye=oe.i+Ie.i,ft=oe.j+Ie.j,R=m.Math.max(R,Ye+Ie.g),z=m.Math.max(z,ft+Ie.f),C=new pn((!Ie.n&&(Ie.n=new $e(Ms,Ie,1,7)),Ie.n));C.e!=C.i.gc();)S=h(vn(C),137),at=h(Ot(S,p9),8),at&&rd(S,at.a,at.b),R=m.Math.max(R,Ye+S.i+S.g),z=m.Math.max(z,ft+S.j+S.f);for(f=new bn(mn(hp(oe).a.Ic(),new j));Yn(f);)a=h(Rn(f),80),M=D0t(a),R=m.Math.max(R,M.a),z=m.Math.max(z,M.b);for(l=new bn(mn(jP(oe).a.Ic(),new j));Yn(l);)a=h(Rn(l),80),Xi(Nh(a))!=t&&(M=D0t(a),R=m.Math.max(R,M.a),z=m.Math.max(z,M.b))}if(v==(cp(),h9))for(de=new pn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));de.e!=de.i.gc();)for(oe=h(vn(de),34),l=new bn(mn(hp(oe).a.Ic(),new j));Yn(l);)a=h(Rn(l),80),w=ubn(a),w.b==0?Is(a,cx,null):Is(a,cx,w);_t(It(Ot(t,(eL(),_8e))))||(ve=h(Ot(t,N6t),115),J=R+ve.b+ve.c,W=z+ve.d+ve.a,Tm(t,J,W,!0,!0)),yn(s)},D(ma,"FixedLayoutProvider",1111),_(370,134,{3:1,409:1,370:1,94:1,134:1},AG,ust),b.Gf=function(t){var s,a,l,f,v,w,S,C,A;if(!!t)try{for(C=xy(t,";,;"),v=C,w=0,S=v.length;w>16&Ti|s^l<<16},b.Ic=function(){return new EWe(this)},b.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Fs(this.b)+")":this.b==null?"pair("+Fs(this.a)+",null)":"pair("+Fs(this.a)+","+Fs(this.b)+")"},D(ma,"Pair",46),_(947,1,bo,EWe),b.Nb=function(t){wo(this,t)},b.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},b.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ee(new aa)},b.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ee(new Cc)},b.b=!1,b.c=!1,D(ma,"Pair/1",947),_(442,1,{442:1},Jtt),b.Fb=function(t){return Ca(this.a,h(t,442).a)&&Ca(this.c,h(t,442).c)&&Ca(this.d,h(t,442).d)&&Ca(this.b,h(t,442).b)},b.Hb=function(){return tL(re(te(dn,1),rt,1,5,[this.a,this.c,this.d,this.b]))},b.Ib=function(){return"("+this.a+Fo+this.c+Fo+this.d+Fo+this.b+")"},D(ma,"Quadruple",442),_(1099,207,qg,EBe),b.$e=function(t,s){var a,l,f,v,w;if(_n(s,"Random Layout",1),(!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i==0){yn(s);return}v=h(Ot(t,(Wme(),q6t)),20),!!v&&v.a!=0?f=new o$(v.a):f=new DQ,a=AT(Ke(Ot(t,U6t))),w=AT(Ke(Ot(t,W6t))),l=h(Ot(t,H6t),115),Syn(t,f,a,w,l),yn(s)},D(ma,"RandomLayoutProvider",1099),_(542,1,{}),b.of=function(){return new ot(this.f.i,this.f.j)},b.Xe=function(t){return knt(t,(Pr(),lu))?Ot(this.f,J6t):Ot(this.f,t)},b.pf=function(){return new ot(this.f.g,this.f.f)},b.qf=function(){return this.g},b.Ye=function(t){return s0(this.f,t)},b.rf=function(t){Oc(this.f,t.a),_c(this.f,t.b)},b.sf=function(t){pm(this.f,t.a),hm(this.f,t.b)},b.tf=function(t){this.g=t},b.g=0;var J6t;D(mO,"ElkGraphAdapters/AbstractElkGraphElementAdapter",542),_(543,1,{818:1},GN),b.uf=function(){var t,s;if(!this.b)for(this.b=e$(NR(this.a).i),s=new pn(NR(this.a));s.e!=s.i.gc();)t=h(vn(s),137),Re(this.b,new JG(t));return this.b},b.b=null,D(mO,"ElkGraphAdapters/ElkEdgeAdapter",543),_(433,542,{},aC),b.vf=function(){return Ult(this)},b.a=null,D(mO,"ElkGraphAdapters/ElkGraphAdapter",433),_(618,542,{183:1},JG),D(mO,"ElkGraphAdapters/ElkLabelAdapter",618),_(617,542,{816:1},ZX),b.uf=function(){return Dcn(this)},b.yf=function(){var t;return t=h(Ot(this.f,(Pr(),h_)),141),!t&&(t=new oC),t},b.Af=function(){return Ncn(this)},b.Cf=function(t){var s;s=new pK(t),Is(this.f,(Pr(),h_),s)},b.Df=function(t){Is(this.f,(Pr(),j0),new Kpe(t))},b.wf=function(){return this.d},b.xf=function(){var t,s;if(!this.a)for(this.a=new Fe,s=new bn(mn(jP(h(this.f,34)).a.Ic(),new j));Yn(s);)t=h(Rn(s),80),Re(this.a,new GN(t));return this.a},b.zf=function(){var t,s;if(!this.c)for(this.c=new Fe,s=new bn(mn(hp(h(this.f,34)).a.Ic(),new j));Yn(s);)t=h(Rn(s),80),Re(this.c,new GN(t));return this.c},b.Bf=function(){return zR(h(this.f,34)).i!=0||_t(It(h(this.f,34).Xe((Pr(),d_))))},b.a=null,b.b=null,b.c=null,b.d=null,b.e=null,D(mO,"ElkGraphAdapters/ElkNodeAdapter",617),_(1214,542,{817:1},kWe),b.uf=function(){return qcn(this)},b.xf=function(){var t,s;if(!this.a)for(this.a=Eh(h(this.f,122).sg().i),s=new pn(h(this.f,122).sg());s.e!=s.i.gc();)t=h(vn(s),80),Re(this.a,new GN(t));return this.a},b.zf=function(){var t,s;if(!this.c)for(this.c=Eh(h(this.f,122).tg().i),s=new pn(h(this.f,122).tg());s.e!=s.i.gc();)t=h(vn(s),80),Re(this.c,new GN(t));return this.c},b.Ef=function(){return h(h(this.f,122).Xe((Pr(),f9)),61)},b.Ff=function(){var t,s,a,l,f,v,w,S;for(l=cd(h(this.f,122)),a=new pn(h(this.f,122).tg());a.e!=a.i.gc();)for(t=h(vn(a),80),S=new pn((!t.c&&(t.c=new Ht(Bn,t,5,8)),t.c));S.e!=S.i.gc();){if(w=h(vn(S),93),r2(Pa(w),l))return!0;if(Pa(w)==l&&_t(It(Ot(t,(Pr(),Kie)))))return!0}for(s=new pn(h(this.f,122).sg());s.e!=s.i.gc();)for(t=h(vn(s),80),v=new pn((!t.b&&(t.b=new Ht(Bn,t,4,7)),t.b));v.e!=v.i.gc();)if(f=h(vn(v),93),r2(Pa(f),l))return!0;return!1},b.a=null,b.b=null,b.c=null,D(mO,"ElkGraphAdapters/ElkPortAdapter",1214);var B0=ii(bl,"EObject"),EE=ii($2,ymt),Xl=ii($2,wmt),I_=ii($2,xmt),T_=ii($2,"ElkShape"),Bn=ii($2,Smt),qi=ii($2,j3e),ai=ii($2,Emt),A_=ii(bl,kmt),x9=ii(bl,"EFactory"),eEt,coe=ii(bl,Cmt),Xf=ii(bl,"EPackage"),Zi,tEt,nEt,G8e,MV,rEt,X8e,K8e,Y8e,Ip,iEt,oEt,Ms=ii($2,R3e),bi=ii($2,$3e),fu=ii($2,L3e);_(89,1,Imt),b.Eg=function(){return this.Fg(),null},b.Fg=function(){return null},b.Gg=function(){return this.Fg(),!1},b.Hg=function(){return!1},b.Ig=function(t){Tr(this,t)},D(v4,"BasicNotifierImpl",89),_(96,89,Omt),b.ih=function(){return bu(this)},b.Jg=function(t,s){return t},b.Kg=function(){throw ee(new jn)},b.Lg=function(t){var s;return s=Ho(h(Dt(this.Og(),this.Qg()),17)),this.$g().dh(this,s.n,s.f,t)},b.Mg=function(t,s){throw ee(new jn)},b.Ng=function(t,s,a){return Hu(this,t,s,a)},b.Og=function(){var t;return this.Kg()&&(t=this.Kg().Zj(),t)?t:this.uh()},b.Pg=function(){return $Z(this)},b.Qg=function(){throw ee(new jn)},b.Rg=function(){var t,s;return s=this.kh().$j(),!s&&this.Kg().dk(s=(yC(),t=uge(Kd(this.Og())),t==null?boe:new tA(this,t))),s},b.Sg=function(t,s){return t},b.Tg=function(t){var s;return s=t.Bj(),s?t.Xi():ti(this.Og(),t)},b.Ug=function(){var t;return t=this.Kg(),t?t.ak():null},b.Vg=function(){return this.Kg()?this.Kg().Zj():null},b.Wg=function(t,s,a){return IL(this,t,s,a)},b.Xg=function(t){return T5(this,t)},b.Yg=function(t,s){return PY(this,t,s)},b.Zg=function(){var t;return t=this.Kg(),!!t&&t.bk()},b.$g=function(){throw ee(new jn)},b._g=function(){return vL(this)},b.ah=function(t,s,a,l){return Q3(this,t,s,l)},b.bh=function(t,s,a){var l;return l=h(Dt(this.Og(),s),65),l.Ij().Lj(this,this.th(),s-this.vh(),t,a)},b.dh=function(t,s,a,l){return qR(this,t,s,l)},b.eh=function(t,s,a){var l;return l=h(Dt(this.Og(),s),65),l.Ij().Mj(this,this.th(),s-this.vh(),t,a)},b.fh=function(){return!!this.Kg()&&!!this.Kg()._j()},b.gh=function(t){return XQ(this,t)},b.hh=function(t){return Rnt(this,t)},b.jh=function(t){return Jpt(this,t)},b.kh=function(){throw ee(new jn)},b.lh=function(){return this.Kg()?this.Kg()._j():null},b.mh=function(){return vL(this)},b.nh=function(t,s){OZ(this,t,s)},b.oh=function(t){this.kh().ck(t)},b.ph=function(t){this.kh().fk(t)},b.qh=function(t){this.kh().ek(t)},b.rh=function(t,s){var a,l,f,v;return v=this.Ug(),!!v&&!!t&&(s=Mo(v.Qk(),this,s),v.Uk(this)),l=this.$g(),l&&((ZZ(this,this.$g(),this.Qg()).Bb&Bo)!=0?(f=l._g(),f&&(t?!v&&f.Uk(this):f.Tk(this))):(s=(a=this.Qg(),a>=0?this.Lg(s):this.$g().dh(this,-1-a,null,s)),s=this.Ng(null,-1,s))),this.ph(t),s},b.sh=function(t){var s,a,l,f,v,w,S,C;if(a=this.Og(),v=ti(a,t),s=this.vh(),v>=s)return h(t,65).Ij().Pj(this,this.th(),v-s);if(v<=-1)if(w=A2((Dc(),vo),a,t),w){if(Uo(),h(w,65).Jj()||(w=L3(gs(vo,w))),f=(l=this.Tg(w),h(l>=0?this.Wg(l,!0,!0):km(this,w,!0),152)),C=w.Uj(),C>1||C==-1)return h(h(f,212).cl(t,!1),76)}else throw ee(new Gt(C0+t.ne()+kte));else if(t.Vj())return l=this.Tg(t),h(l>=0?this.Wg(l,!1,!0):km(this,t,!1),76);return S=new iQe(this,t),S},b.th=function(){return abe(this)},b.uh=function(){return(n0(),Bt).S},b.vh=function(){return fn(this.uh())},b.wh=function(t){IZ(this,t)},b.Ib=function(){return gf(this)},D(zt,"BasicEObjectImpl",96);var sEt;_(113,96,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1}),b.xh=function(t){var s;return s=sbe(this),s[t]},b.yh=function(t,s){var a;a=sbe(this),ui(a,t,s)},b.zh=function(t){var s;s=sbe(this),ui(s,t,null)},b.Eg=function(){return h(Vt(this,4),124)},b.Fg=function(){throw ee(new jn)},b.Gg=function(){return(this.Db&4)!=0},b.Kg=function(){throw ee(new jn)},b.Ah=function(t){Y3(this,2,t)},b.Mg=function(t,s){this.Db=s<<16|this.Db&255,this.Ah(t)},b.Og=function(){return fc(this)},b.Qg=function(){return this.Db>>16},b.Rg=function(){var t,s;return yC(),s=uge(Kd((t=h(Vt(this,16),26),t||this.uh()))),s==null?boe:new tA(this,s)},b.Hg=function(){return(this.Db&1)==0},b.Ug=function(){return h(Vt(this,128),1907)},b.Vg=function(){return h(Vt(this,16),26)},b.Zg=function(){return(this.Db&32)!=0},b.$g=function(){return h(Vt(this,2),48)},b.fh=function(){return(this.Db&64)!=0},b.kh=function(){throw ee(new jn)},b.lh=function(){return h(Vt(this,64),279)},b.oh=function(t){Y3(this,16,t)},b.ph=function(t){Y3(this,128,t)},b.qh=function(t){Y3(this,64,t)},b.th=function(){return Za(this)},b.Db=0,D(zt,"MinimalEObjectImpl",113),_(116,113,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Ah=function(t){this.Cb=t},b.$g=function(){return this.Cb},D(zt,"MinimalEObjectImpl/Container",116),_(1957,116,{104:1,408:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Ve=function(t){return!this.o&&(this.o=new tu((Ma(),Ip),pb,this,0)),lat(this.o,t.q?t.q:(Mt(),Mt(),ah)),this},b.Wg=function(t,s,a){return bve(this,t,s,a)},b.eh=function(t,s,a){return rye(this,t,s,a)},b.gh=function(t){return yge(this,t)},b.nh=function(t,s){sme(this,t,s)},b.uh=function(){return Ma(),oEt},b.wh=function(t){Wbe(this,t)},b.We=function(){return plt(this)},b.Xe=function(t){return Ot(this,t)},b.Ye=function(t){return s0(this,t)},b.Ze=function(t,s){return Is(this,t,s)},D(Yg,"EMapPropertyHolderImpl",1957),_(560,116,{104:1,463:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},$N),b.Wg=function(t,s,a){switch(t){case 0:return this.a;case 1:return this.b}return IL(this,t,s,a)},b.gh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return XQ(this,t)},b.nh=function(t,s){switch(t){case 0:N$(this,Ae(Ke(s)));return;case 1:D$(this,Ae(Ke(s)));return}OZ(this,t,s)},b.uh=function(){return Ma(),tEt},b.wh=function(t){switch(t){case 0:N$(this,0);return;case 1:D$(this,0);return}IZ(this,t)},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (x: ",Fw(t,this.a),t.a+=", y: ",Fw(t,this.b),t.a+=")",t.a)},b.a=0,b.b=0,D(Yg,"ElkBendPointImpl",560),_(710,1957,{104:1,408:1,160:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return Eme(this,t,s,a)},b.bh=function(t,s,a){return xZ(this,t,s,a)},b.eh=function(t,s,a){return sQ(this,t,s,a)},b.gh=function(t){return zbe(this,t)},b.nh=function(t,s){jve(this,t,s)},b.uh=function(){return Ma(),rEt},b.wh=function(t){yme(this,t)},b.ug=function(){return this.k},b.vg=function(){return NR(this)},b.Ib=function(){return MQ(this)},b.k=null,D(Yg,"ElkGraphElementImpl",710),_(711,710,{104:1,408:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return Dme(this,t,s,a)},b.gh=function(t){return Vme(this,t)},b.nh=function(t,s){Rve(this,t,s)},b.uh=function(){return Ma(),iEt},b.wh=function(t){Ume(this,t)},b.wg=function(){return this.f},b.xg=function(){return this.g},b.yg=function(){return this.i},b.zg=function(){return this.j},b.Ag=function(t,s){Uj(this,t,s)},b.Bg=function(t,s){rd(this,t,s)},b.Cg=function(t){Oc(this,t)},b.Dg=function(t){_c(this,t)},b.Ib=function(){return CZ(this)},b.f=0,b.g=0,b.i=0,b.j=0,D(Yg,"ElkShapeImpl",711),_(712,711,{104:1,408:1,93:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return fve(this,t,s,a)},b.bh=function(t,s,a){return Ove(this,t,s,a)},b.eh=function(t,s,a){return _ve(this,t,s,a)},b.gh=function(t){return tme(this,t)},b.nh=function(t,s){Lye(this,t,s)},b.uh=function(){return Ma(),nEt},b.wh=function(t){ove(this,t)},b.sg=function(){return!this.d&&(this.d=new Ht(qi,this,8,5)),this.d},b.tg=function(){return!this.e&&(this.e=new Ht(qi,this,7,4)),this.e},D(Yg,"ElkConnectableShapeImpl",712),_(349,710,{104:1,408:1,80:1,160:1,349:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},cde),b.Lg=function(t){return Cve(this,t)},b.Wg=function(t,s,a){switch(t){case 3:return KR(this);case 4:return!this.b&&(this.b=new Ht(Bn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Ht(Bn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),this.a;case 7:return Zt(),!this.b&&(this.b=new Ht(Bn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ht(Bn,this,5,8)),this.c.i<=1));case 8:return Zt(),!!F8(this);case 9:return Zt(),!!Em(this);case 10:return Zt(),!this.b&&(this.b=new Ht(Bn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ht(Bn,this,5,8)),this.c.i!=0)}return Eme(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 3:return this.Cb&&(a=(l=this.Db>>16,l>=0?Cve(this,a):this.Cb.dh(this,-1-l,null,a))),xpe(this,h(t,34),a);case 4:return!this.b&&(this.b=new Ht(Bn,this,4,7)),Va(this.b,t,a);case 5:return!this.c&&(this.c=new Ht(Bn,this,5,8)),Va(this.c,t,a);case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),Va(this.a,t,a)}return xZ(this,t,s,a)},b.eh=function(t,s,a){switch(s){case 3:return xpe(this,null,a);case 4:return!this.b&&(this.b=new Ht(Bn,this,4,7)),Mo(this.b,t,a);case 5:return!this.c&&(this.c=new Ht(Bn,this,5,8)),Mo(this.c,t,a);case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),Mo(this.a,t,a)}return sQ(this,t,s,a)},b.gh=function(t){switch(t){case 3:return!!KR(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Ht(Bn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ht(Bn,this,5,8)),this.c.i<=1));case 8:return F8(this);case 9:return Em(this);case 10:return!this.b&&(this.b=new Ht(Bn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ht(Bn,this,5,8)),this.c.i!=0)}return zbe(this,t)},b.nh=function(t,s){switch(t){case 3:Xye(this,h(s,34));return;case 4:!this.b&&(this.b=new Ht(Bn,this,4,7)),Cn(this.b),!this.b&&(this.b=new Ht(Bn,this,4,7)),di(this.b,h(s,15));return;case 5:!this.c&&(this.c=new Ht(Bn,this,5,8)),Cn(this.c),!this.c&&(this.c=new Ht(Bn,this,5,8)),di(this.c,h(s,15));return;case 6:!this.a&&(this.a=new $e(ai,this,6,6)),Cn(this.a),!this.a&&(this.a=new $e(ai,this,6,6)),di(this.a,h(s,15));return}jve(this,t,s)},b.uh=function(){return Ma(),G8e},b.wh=function(t){switch(t){case 3:Xye(this,null);return;case 4:!this.b&&(this.b=new Ht(Bn,this,4,7)),Cn(this.b);return;case 5:!this.c&&(this.c=new Ht(Bn,this,5,8)),Cn(this.c);return;case 6:!this.a&&(this.a=new $e(ai,this,6,6)),Cn(this.a);return}yme(this,t)},b.Ib=function(){return jpt(this)},D(Yg,"ElkEdgeImpl",349),_(432,1957,{104:1,408:1,201:1,432:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},RN),b.Lg=function(t){return xve(this,t)},b.Wg=function(t,s,a){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Mi(Xl,this,5)),this.a;case 6:return Dnt(this);case 7:return s?eZ(this):this.i;case 8:return s?JQ(this):this.f;case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),this.e;case 11:return this.d}return bve(this,t,s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?xve(this,a):this.Cb.dh(this,-1-f,null,a))),Spe(this,h(t,80),a);case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),Va(this.g,t,a);case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),Va(this.e,t,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(Ma(),MV)),s),65),v.Ij().Lj(this,Za(this),s-fn((Ma(),MV)),t,a)},b.eh=function(t,s,a){switch(s){case 5:return!this.a&&(this.a=new Mi(Xl,this,5)),Mo(this.a,t,a);case 6:return Spe(this,null,a);case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),Mo(this.g,t,a);case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),Mo(this.e,t,a)}return rye(this,t,s,a)},b.gh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Dnt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return yge(this,t)},b.nh=function(t,s){switch(t){case 1:O5(this,Ae(Ke(s)));return;case 2:D5(this,Ae(Ke(s)));return;case 3:_5(this,Ae(Ke(s)));return;case 4:M5(this,Ae(Ke(s)));return;case 5:!this.a&&(this.a=new Mi(Xl,this,5)),Cn(this.a),!this.a&&(this.a=new Mi(Xl,this,5)),di(this.a,h(s,15));return;case 6:$ht(this,h(s,80));return;case 7:$$(this,h(s,93));return;case 8:R$(this,h(s,93));return;case 9:!this.g&&(this.g=new Ht(ai,this,9,10)),Cn(this.g),!this.g&&(this.g=new Ht(ai,this,9,10)),di(this.g,h(s,15));return;case 10:!this.e&&(this.e=new Ht(ai,this,10,9)),Cn(this.e),!this.e&&(this.e=new Ht(ai,this,10,9)),di(this.e,h(s,15));return;case 11:_be(this,Ln(s));return}sme(this,t,s)},b.uh=function(){return Ma(),MV},b.wh=function(t){switch(t){case 1:O5(this,0);return;case 2:D5(this,0);return;case 3:_5(this,0);return;case 4:M5(this,0);return;case 5:!this.a&&(this.a=new Mi(Xl,this,5)),Cn(this.a);return;case 6:$ht(this,null);return;case 7:$$(this,null);return;case 8:R$(this,null);return;case 9:!this.g&&(this.g=new Ht(ai,this,9,10)),Cn(this.g);return;case 10:!this.e&&(this.e=new Ht(ai,this,10,9)),Cn(this.e);return;case 11:_be(this,null);return}Wbe(this,t)},b.Ib=function(){return iht(this)},b.b=0,b.c=0,b.d=null,b.j=0,b.k=0,D(Yg,"ElkEdgeSectionImpl",432),_(150,116,{104:1,91:1,89:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),b.Wg=function(t,s,a){var l;return t==0?(!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab):ll(this,t-fn(this.uh()),Dt((l=h(Vt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f;return s==0?(!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a)):(f=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),f.Ij().Lj(this,Za(this),s-fn(this.uh()),t,a))},b.eh=function(t,s,a){var l,f;return s==0?(!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a)):(f=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Za(this),s-fn(this.uh()),t,a))},b.gh=function(t){var s;return t==0?!!this.Ab&&this.Ab.i!=0:ul(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.jh=function(t){return Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return}pl(this,t-fn(this.uh()),Dt((a=h(Vt(this,16),26),a||this.uh()),t),s)},b.ph=function(t){Y3(this,128,t)},b.uh=function(){return At(),kEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return}hl(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.Bh=function(){this.Bb|=1},b.Ch=function(t){return U8(this,t)},b.Bb=0,D(zt,"EModelElementImpl",150),_(696,150,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},pde),b.Dh=function(t,s){return d0t(this,t,s)},b.Eh=function(t){var s,a,l,f,v;if(this.a!=Bu(t)||(t.Bb&256)!=0)throw ee(new Gt(Ite+t.zb+jm));for(l=Ss(t);ya(l.a).i!=0;){if(a=h(qP(l,0,(s=h(fe(ya(l.a),0),86),v=s.c,ue(v,87)?h(v,26):(At(),Zl))),26),xm(a))return f=Bu(a).Ih().Eh(a),h(f,48).oh(t),f;l=Ss(a)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new yet(t):new c0e(t)},b.Fh=function(t,s){return Am(this,t,s)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.a}return ll(this,t-fn((At(),H0)),Dt((l=h(Vt(this,16),26),l||H0),t),s,a)},b.bh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 1:return this.a&&(a=h(this.a,48).dh(this,4,Xf,a)),mme(this,h(t,234),a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),H0)),s),65),f.Ij().Lj(this,Za(this),s-fn((At(),H0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 1:return mme(this,null,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),H0)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),H0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ul(this,t-fn((At(),H0)),Dt((s=h(Vt(this,16),26),s||H0),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:Bft(this,h(s,234));return}pl(this,t-fn((At(),H0)),Dt((a=h(Vt(this,16),26),a||H0),t),s)},b.uh=function(){return At(),H0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:Bft(this,null);return}hl(this,t-fn((At(),H0)),Dt((s=h(Vt(this,16),26),s||H0),t))};var S9,Q8e,aEt;D(zt,"EFactoryImpl",696),_(1012,696,{104:1,1983:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},CBe),b.Dh=function(t,s){switch(t.tj()){case 12:return h(s,146).og();case 13:return Fs(s);default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v,w,S,C;switch(t.G==-1&&(t.G=(s=Bu(t),s?up(s.Hh(),t):-1)),t.G){case 4:return v=new ude,v;case 6:return w=new dhe,w;case 7:return S=new hhe,S;case 8:return l=new cde,l;case 9:return a=new $N,a;case 10:return f=new RN,f;case 11:return C=new IBe,C;default:throw ee(new Gt(Ite+t.zb+jm))}},b.Fh=function(t,s){switch(t.tj()){case 13:case 12:return null;default:throw ee(new Gt(_6+t.ne()+jm))}},D(Yg,"ElkGraphFactoryImpl",1012),_(431,150,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),b.Rg=function(){var t,s;return s=(t=h(Vt(this,16),26),uge(Kd(t||this.uh()))),s==null?(yC(),yC(),boe):new FZe(this,s)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.ne()}return ll(this,t-fn(this.uh()),Dt((l=h(Vt(this,16),26),l||this.uh()),t),s,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ul(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:this.Gh(Ln(s));return}pl(this,t-fn(this.uh()),Dt((a=h(Vt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),CEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:this.Gh(null);return}hl(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.ne=function(){return this.zb},b.Gh=function(t){za(this,t)},b.Ib=function(){return S8(this)},b.zb=null,D(zt,"ENamedElementImpl",431),_(179,431,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},dnt),b.Lg=function(t){return eft(this,t)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),this.rb;case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),this.vb;case 7:return s?this.Db>>16==7?h(this.Cb,234):null:$nt(this)}return ll(this,t-fn((At(),Op)),Dt((l=h(Vt(this,16),26),l||Op),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 4:return this.sb&&(a=h(this.sb,48).dh(this,1,x9,a)),xme(this,h(t,465),a);case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),Va(this.rb,t,a);case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),Va(this.vb,t,a);case 7:return this.Cb&&(a=(f=this.Db>>16,f>=0?eft(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,7,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),Op)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),Op)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 4:return xme(this,null,a);case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),Mo(this.rb,t,a);case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),Mo(this.vb,t,a);case 7:return Hu(this,null,7,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Op)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Op)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!$nt(this)}return ul(this,t-fn((At(),Op)),Dt((s=h(Vt(this,16),26),s||Op),t))},b.jh=function(t){var s;return s=Ipn(this,t),s||Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Ln(s));return;case 2:U$(this,Ln(s));return;case 3:V$(this,Ln(s));return;case 4:kZ(this,h(s,465));return;case 5:!this.rb&&(this.rb=new Wv(this,Kf,this)),Cn(this.rb),!this.rb&&(this.rb=new Wv(this,Kf,this)),di(this.rb,h(s,15));return;case 6:!this.vb&&(this.vb=new O3(Xf,this,6,7)),Cn(this.vb),!this.vb&&(this.vb=new O3(Xf,this,6,7)),di(this.vb,h(s,15));return}pl(this,t-fn((At(),Op)),Dt((a=h(Vt(this,16),26),a||Op),t),s)},b.qh=function(t){var s,a;if(!!t&&!!this.rb)for(a=new pn(this.rb);a.e!=a.i.gc();)s=vn(a),ue(s,348)&&(h(s,348).w=null);Y3(this,64,t)},b.uh=function(){return At(),Op},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:U$(this,null);return;case 3:V$(this,null);return;case 4:kZ(this,null);return;case 5:!this.rb&&(this.rb=new Wv(this,Kf,this)),Cn(this.rb);return;case 6:!this.vb&&(this.vb=new O3(Xf,this,6,7)),Cn(this.vb);return}hl(this,t-fn((At(),Op)),Dt((s=h(Vt(this,16),26),s||Op),t))},b.Bh=function(){dZ(this)},b.Hh=function(){return!this.rb&&(this.rb=new Wv(this,Kf,this)),this.rb},b.Ih=function(){return this.sb},b.Jh=function(){return this.ub},b.Kh=function(){return this.xb},b.Lh=function(){return this.yb},b.Mh=function(t){this.ub=t},b.Ib=function(){var t;return(this.Db&64)!=0?S8(this):(t=new _l(S8(this)),t.a+=" (nsURI: ",rs(t,this.yb),t.a+=", nsPrefix: ",rs(t,this.xb),t.a+=")",t.a)},b.xb=null,b.yb=null,D(zt,"EPackageImpl",179),_(549,179,{104:1,1985:1,549:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},pht),b.q=!1,b.r=!1;var cEt=!1;D(Yg,"ElkGraphPackageImpl",549),_(351,711,{104:1,408:1,160:1,137:1,464:1,351:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},ude),b.Lg=function(t){return Sve(this,t)},b.Wg=function(t,s,a){switch(t){case 7:return Lnt(this);case 8:return this.a}return Dme(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 7:return this.Cb&&(a=(l=this.Db>>16,l>=0?Sve(this,a):this.Cb.dh(this,-1-l,null,a))),S0e(this,h(t,160),a)}return xZ(this,t,s,a)},b.eh=function(t,s,a){return s==7?S0e(this,null,a):sQ(this,t,s,a)},b.gh=function(t){switch(t){case 7:return!!Lnt(this);case 8:return!kt("",this.a)}return Vme(this,t)},b.nh=function(t,s){switch(t){case 7:Jye(this,h(s,160));return;case 8:Ebe(this,Ln(s));return}Rve(this,t,s)},b.uh=function(){return Ma(),X8e},b.wh=function(t){switch(t){case 7:Jye(this,null);return;case 8:Ebe(this,"");return}Ume(this,t)},b.Ib=function(){return idt(this)},b.a="",D(Yg,"ElkLabelImpl",351),_(238,712,{104:1,408:1,93:1,160:1,34:1,464:1,238:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},dhe),b.Lg=function(t){return Ive(this,t)},b.Wg=function(t,s,a){switch(t){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),this.a;case 11:return Xi(this);case 12:return!this.b&&(this.b=new $e(qi,this,12,3)),this.b;case 13:return Zt(),!this.a&&(this.a=new $e(bi,this,10,11)),this.a.i>0}return fve(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),Va(this.c,t,a);case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),Va(this.a,t,a);case 11:return this.Cb&&(a=(l=this.Db>>16,l>=0?Ive(this,a):this.Cb.dh(this,-1-l,null,a))),Mpe(this,h(t,34),a);case 12:return!this.b&&(this.b=new $e(qi,this,12,3)),Va(this.b,t,a)}return Ove(this,t,s,a)},b.eh=function(t,s,a){switch(s){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),Mo(this.c,t,a);case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),Mo(this.a,t,a);case 11:return Mpe(this,null,a);case 12:return!this.b&&(this.b=new $e(qi,this,12,3)),Mo(this.b,t,a)}return _ve(this,t,s,a)},b.gh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Xi(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new $e(bi,this,10,11)),this.a.i>0}return tme(this,t)},b.nh=function(t,s){switch(t){case 9:!this.c&&(this.c=new $e(fu,this,9,9)),Cn(this.c),!this.c&&(this.c=new $e(fu,this,9,9)),di(this.c,h(s,15));return;case 10:!this.a&&(this.a=new $e(bi,this,10,11)),Cn(this.a),!this.a&&(this.a=new $e(bi,this,10,11)),di(this.a,h(s,15));return;case 11:Yye(this,h(s,34));return;case 12:!this.b&&(this.b=new $e(qi,this,12,3)),Cn(this.b),!this.b&&(this.b=new $e(qi,this,12,3)),di(this.b,h(s,15));return}Lye(this,t,s)},b.uh=function(){return Ma(),K8e},b.wh=function(t){switch(t){case 9:!this.c&&(this.c=new $e(fu,this,9,9)),Cn(this.c);return;case 10:!this.a&&(this.a=new $e(bi,this,10,11)),Cn(this.a);return;case 11:Yye(this,null);return;case 12:!this.b&&(this.b=new $e(qi,this,12,3)),Cn(this.b);return}ove(this,t)},b.Ib=function(){return pwe(this)},D(Yg,"ElkNodeImpl",238),_(199,712,{104:1,408:1,93:1,160:1,122:1,464:1,199:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},hhe),b.Lg=function(t){return Eve(this,t)},b.Wg=function(t,s,a){return t==9?cd(this):fve(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 9:return this.Cb&&(a=(l=this.Db>>16,l>=0?Eve(this,a):this.Cb.dh(this,-1-l,null,a))),Epe(this,h(t,34),a)}return Ove(this,t,s,a)},b.eh=function(t,s,a){return s==9?Epe(this,null,a):_ve(this,t,s,a)},b.gh=function(t){return t==9?!!cd(this):tme(this,t)},b.nh=function(t,s){switch(t){case 9:Kye(this,h(s,34));return}Lye(this,t,s)},b.uh=function(){return Ma(),Y8e},b.wh=function(t){switch(t){case 9:Kye(this,null);return}ove(this,t)},b.Ib=function(){return $1t(this)},D(Yg,"ElkPortImpl",199);var uEt=ii(Do,"BasicEMap/Entry");_(1072,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,113:1,116:1},IBe),b.Fb=function(t){return this===t},b.ad=function(){return this.b},b.Hb=function(){return Kb(this)},b.Ph=function(t){kbe(this,h(t,146))},b.Wg=function(t,s,a){switch(t){case 0:return this.b;case 1:return this.c}return IL(this,t,s,a)},b.gh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return XQ(this,t)},b.nh=function(t,s){switch(t){case 0:kbe(this,h(s,146));return;case 1:Cbe(this,s);return}OZ(this,t,s)},b.uh=function(){return Ma(),Ip},b.wh=function(t){switch(t){case 0:kbe(this,null);return;case 1:Cbe(this,null);return}IZ(this,t)},b.Nh=function(){var t;return this.a==-1&&(t=this.b,this.a=t?ri(t):0),this.a},b.bd=function(){return this.c},b.Oh=function(t){this.a=t},b.cd=function(t){var s;return s=this.c,Cbe(this,t),s},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new Wp,Xn(Xn(Xn(t,this.b?this.b.og():mc),Iee),eA(this.c)),t.a)},b.a=-1,b.c=null;var pb=D(Yg,"ElkPropertyToValueMapEntryImpl",1072);_(964,1,{},TBe),D(mo,"JsonAdapter",964),_(208,59,S1,Fd),D(mo,"JsonImportException",208),_(836,1,{},tft),D(mo,"JsonImporter",836),_(870,1,{},VYe),D(mo,"JsonImporter/lambda$0$Type",870),_(871,1,{},UYe),D(mo,"JsonImporter/lambda$1$Type",871),_(879,1,{},CWe),D(mo,"JsonImporter/lambda$10$Type",879),_(881,1,{},HYe),D(mo,"JsonImporter/lambda$11$Type",881),_(882,1,{},qYe),D(mo,"JsonImporter/lambda$12$Type",882),_(888,1,{},tnt),D(mo,"JsonImporter/lambda$13$Type",888),_(887,1,{},nnt),D(mo,"JsonImporter/lambda$14$Type",887),_(883,1,{},WYe),D(mo,"JsonImporter/lambda$15$Type",883),_(884,1,{},GYe),D(mo,"JsonImporter/lambda$16$Type",884),_(885,1,{},XYe),D(mo,"JsonImporter/lambda$17$Type",885),_(886,1,{},KYe),D(mo,"JsonImporter/lambda$18$Type",886),_(891,1,{},IWe),D(mo,"JsonImporter/lambda$19$Type",891),_(872,1,{},TWe),D(mo,"JsonImporter/lambda$2$Type",872),_(889,1,{},AWe),D(mo,"JsonImporter/lambda$20$Type",889),_(890,1,{},PWe),D(mo,"JsonImporter/lambda$21$Type",890),_(894,1,{},OWe),D(mo,"JsonImporter/lambda$22$Type",894),_(892,1,{},_We),D(mo,"JsonImporter/lambda$23$Type",892),_(893,1,{},MWe),D(mo,"JsonImporter/lambda$24$Type",893),_(896,1,{},DWe),D(mo,"JsonImporter/lambda$25$Type",896),_(895,1,{},NWe),D(mo,"JsonImporter/lambda$26$Type",895),_(897,1,un,YYe),b.td=function(t){lnn(this.b,this.a,Ln(t))},D(mo,"JsonImporter/lambda$27$Type",897),_(898,1,un,QYe),b.td=function(t){fnn(this.b,this.a,Ln(t))},D(mo,"JsonImporter/lambda$28$Type",898),_(899,1,{},ZYe),D(mo,"JsonImporter/lambda$29$Type",899),_(875,1,{},jWe),D(mo,"JsonImporter/lambda$3$Type",875),_(900,1,{},JYe),D(mo,"JsonImporter/lambda$30$Type",900),_(901,1,{},RWe),D(mo,"JsonImporter/lambda$31$Type",901),_(902,1,{},$We),D(mo,"JsonImporter/lambda$32$Type",902),_(903,1,{},LWe),D(mo,"JsonImporter/lambda$33$Type",903),_(904,1,{},FWe),D(mo,"JsonImporter/lambda$34$Type",904),_(838,1,{},BWe),D(mo,"JsonImporter/lambda$35$Type",838),_(908,1,{},HJe),D(mo,"JsonImporter/lambda$36$Type",908),_(905,1,un,zWe),b.td=function(t){wtn(this.a,h(t,463))},D(mo,"JsonImporter/lambda$37$Type",905),_(906,1,un,eQe),b.td=function(t){Xqt(this.a,this.b,h(t,201))},D(mo,"JsonImporter/lambda$38$Type",906),_(907,1,un,tQe),b.td=function(t){Kqt(this.a,this.b,h(t,201))},D(mo,"JsonImporter/lambda$39$Type",907),_(873,1,{},VWe),D(mo,"JsonImporter/lambda$4$Type",873),_(909,1,un,UWe),b.td=function(t){xtn(this.a,h(t,8))},D(mo,"JsonImporter/lambda$40$Type",909),_(874,1,{},HWe),D(mo,"JsonImporter/lambda$5$Type",874),_(878,1,{},qWe),D(mo,"JsonImporter/lambda$6$Type",878),_(876,1,{},WWe),D(mo,"JsonImporter/lambda$7$Type",876),_(877,1,{},GWe),D(mo,"JsonImporter/lambda$8$Type",877),_(880,1,{},XWe),D(mo,"JsonImporter/lambda$9$Type",880),_(954,1,un,KWe),b.td=function(t){N3(this.a,new Gv(Ln(t)))},D(mo,"JsonMetaDataConverter/lambda$0$Type",954),_(955,1,un,YWe),b.td=function(t){RQt(this.a,h(t,237))},D(mo,"JsonMetaDataConverter/lambda$1$Type",955),_(956,1,un,QWe),b.td=function(t){RJt(this.a,h(t,149))},D(mo,"JsonMetaDataConverter/lambda$2$Type",956),_(957,1,un,ZWe),b.td=function(t){$Qt(this.a,h(t,175))},D(mo,"JsonMetaDataConverter/lambda$3$Type",957),_(237,22,{3:1,36:1,22:1,237:1},I3);var DV,NV,uoe,jV,RV,$V,loe,foe,LV=Wn(oO,"GraphFeature",237,Qn,arn,uYt),lEt;_(13,1,{36:1,146:1},Xr,Vi,$t,$o),b.wd=function(t){return QWt(this,h(t,146))},b.Fb=function(t){return knt(this,t)},b.rg=function(){return lt(this)},b.og=function(){return this.b},b.Hb=function(){return lp(this.b)},b.Ib=function(){return this.b},D(oO,"Property",13),_(797,1,Vr,Gde),b.ue=function(t,s){return nsn(this,h(t,94),h(s,94))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(oO,"PropertyHolderComparator",797);var Z8e=ii(Do,"EList");_(66,51,{19:1,28:1,51:1,15:1,14:1,66:1,57:1}),b.Tc=function(t,s){E8(this,t,s)},b.Dc=function(t){return On(this,t)},b.Uc=function(t,s){return qbe(this,t,s)},b.Ec=function(t){return di(this,t)},b.Uh=function(){return new P3(this)},b.Vh=function(){return new nA(this)},b.Wh=function(t){return qA(this,t)},b.Xh=function(){return!0},b.Yh=function(t,s){},b.Zh=function(){},b.$h=function(t,s){_Y(this,t,s)},b._h=function(t,s,a){},b.ai=function(t,s){},b.bi=function(t,s,a){},b.Fb=function(t){return C1t(this,t)},b.Hb=function(){return Ube(this)},b.ci=function(){return!1},b.Ic=function(){return new pn(this)},b.Wc=function(){return new A3(this)},b.Xc=function(t){var s;if(s=this.gc(),t<0||t>s)throw ee(new Vv(t,s));return new $K(this,t)},b.ei=function(t,s){this.di(t,this.Vc(s))},b.Kc=function(t){return E$(this,t)},b.gi=function(t,s){return s},b.Zc=function(t,s){return p2(this,t,s)},b.Ib=function(){return $me(this)},b.ii=function(){return!0},b.ji=function(t,s){return W5(this,s)},D(Do,"AbstractEList",66),_(60,66,oh,FN,fm,Lbe),b.Qh=function(t,s){return SZ(this,t,s)},b.Rh=function(t){return Nlt(this,t)},b.Sh=function(t,s){cP(this,t,s)},b.Th=function(t){OA(this,t)},b.ki=function(t){return tbe(this,t)},b.$b=function(){f8(this)},b.Fc=function(t){return o6(this,t)},b.Xb=function(t){return fe(this,t)},b.li=function(t){var s,a,l;++this.j,a=this.g==null?0:this.g.length,t>a&&(l=this.g,s=a+(a/2|0)+4,s=0?(this.Yc(s),!0):!1},b.hi=function(t,s){return this.Pi(t,this.ji(t,s))},b.gc=function(){return this.Qi()},b.Nc=function(){return this.Ri()},b.Oc=function(t){return this.Si(t)},b.Ib=function(){return this.Ti()},D(Do,"DelegatingEList",1964),_(1965,1964,hvt),b.Qh=function(t,s){return Ewe(this,t,s)},b.Rh=function(t){return this.Qh(this.Qi(),t)},b.Sh=function(t,s){fht(this,t,s)},b.Th=function(t){tht(this,t)},b.Xh=function(){return!this.Yi()},b.$b=function(){X8(this)},b.Ui=function(t,s,a,l,f){return new wnt(this,t,s,a,l,f)},b.Vi=function(t){Tr(this.vi(),t)},b.Wi=function(){return null},b.Xi=function(){return-1},b.vi=function(){return null},b.Yi=function(){return!1},b.Zi=function(t,s){return s},b.$i=function(t,s){return s},b._i=function(){return!1},b.aj=function(){return!this.Mi()},b.di=function(t,s){var a,l;return this._i()?(l=this.aj(),a=Jve(this,t,s),this.Vi(this.Ui(7,Ue(s),a,t,l)),a):Jve(this,t,s)},b.Yc=function(t){var s,a,l,f;return this._i()?(a=null,l=this.aj(),s=this.Ui(4,f=bR(this,t),null,t,l),this.Yi()&&!!f?(a=this.$i(f,a),a?(a.zi(s),a.Ai()):this.Vi(s)):a?(a.zi(s),a.Ai()):this.Vi(s),f):(f=bR(this,t),this.Yi()&&!!f&&(a=this.$i(f,null),a&&a.Ai()),f)},b.hi=function(t,s){return gpt(this,t,s)},D(v4,"DelegatingNotifyingListImpl",1965),_(142,1,yO),b.zi=function(t){return Vve(this,t)},b.Ai=function(){LY(this)},b.si=function(){return this.d},b.Wi=function(){return null},b.bj=function(){return null},b.ti=function(t){return-1},b.ui=function(){return n1t(this)},b.vi=function(){return null},b.wi=function(){return iwe(this)},b.xi=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},b.cj=function(){return!1},b.yi=function(t){var s,a,l,f,v,w,S,C,A,M,R;switch(this.d){case 1:case 2:switch(f=t.si(),f){case 1:case 2:if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null))return this.g=t.ui(),t.si()==1&&(this.d=1),!0}case 4:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null))return A=Bwe(this),C=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,w=t.xi(),this.d=6,R=new fm(2),C<=w?(On(R,this.n),On(R,t.wi()),this.g=re(te(An,1),nr,24,15,[this.o=C,w+1])):(On(R,t.wi()),On(R,this.n),this.g=re(te(An,1),nr,24,15,[this.o=w,C])),this.n=R,A||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null)){for(A=Bwe(this),w=t.xi(),M=h(this.g,47),l=ge(An,nr,24,M.length+1,15,1),s=0;s>>0,s.toString(16))),l.a+=" (eventType: ",this.d){case 1:{l.a+="SET";break}case 2:{l.a+="UNSET";break}case 3:{l.a+="ADD";break}case 5:{l.a+="ADD_MANY";break}case 4:{l.a+="REMOVE";break}case 6:{l.a+="REMOVE_MANY";break}case 7:{l.a+="MOVE";break}case 8:{l.a+="REMOVING_ADAPTER";break}case 9:{l.a+="RESOLVE";break}default:{aX(l,this.d);break}}if(V1t(this)&&(l.a+=", touch: true"),l.a+=", position: ",aX(l,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),l.a+=", notifier: ",DC(l,this.vi()),l.a+=", feature: ",DC(l,this.Wi()),l.a+=", oldValue: ",DC(l,iwe(this)),l.a+=", newValue: ",this.d==6&&ue(this.g,47)){for(a=h(this.g,47),l.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new bA(this),this.a=this.j),e5(this.b,t)):o6(this,t)},b.ii=function(){return!0},b.a=0,D(Do,"AbstractEList/1",959),_(295,73,YJ,Vv),D(Do,"AbstractEList/BasicIndexOutOfBoundsException",295),_(39,1,bo,pn),b.Nb=function(t){wo(this,t)},b.hj=function(){if(this.i.j!=this.f)throw ee(new ol)},b.ij=function(){return vn(this)},b.Ob=function(){return this.e!=this.i.gc()},b.Pb=function(){return this.ij()},b.Qb=function(){N8(this)},b.e=0,b.f=0,b.g=-1,D(Do,"AbstractEList/EIterator",39),_(276,39,jh,A3,$K),b.Qb=function(){N8(this)},b.Rb=function(t){Sut(this,t)},b.jj=function(){var t;try{return t=this.d.Xb(--this.e),this.hj(),this.g=this.e,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new aa)):ee(s)}},b.kj=function(t){Tlt(this,t)},b.Sb=function(){return this.e!=0},b.Tb=function(){return this.e},b.Ub=function(){return this.jj()},b.Vb=function(){return this.e-1},b.Wb=function(t){this.kj(t)},D(Do,"AbstractEList/EListIterator",276),_(341,39,bo,P3),b.ij=function(){return UQ(this)},b.Qb=function(){throw ee(new jn)},D(Do,"AbstractEList/NonResolvingEIterator",341),_(384,276,jh,nA,Bpe),b.Rb=function(t){throw ee(new jn)},b.ij=function(){var t;try{return t=this.c.fi(this.e),this.hj(),this.g=this.e++,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new aa)):ee(s)}},b.jj=function(){var t;try{return t=this.c.fi(--this.e),this.hj(),this.g=this.e,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new aa)):ee(s)}},b.Qb=function(){throw ee(new jn)},b.Wb=function(t){throw ee(new jn)},D(Do,"AbstractEList/NonResolvingEListIterator",384),_(1955,66,pvt),b.Qh=function(t,s){var a,l,f,v,w,S,C,A,M,R,z;if(f=s.gc(),f!=0){for(A=h(Vt(this.a,4),124),M=A==null?0:A.length,z=M+f,l=mQ(this,z),R=M-t,R>0&&xa(A,t,l,t+f,R),C=s.Ic(),w=0;wa)throw ee(new Vv(t,a));return new Ntt(this,t)},b.$b=function(){var t,s;++this.j,t=h(Vt(this.a,4),124),s=t==null?0:t.length,t6(this,null),_Y(this,s,t)},b.Fc=function(t){var s,a,l,f,v;if(s=h(Vt(this.a,4),124),s!=null){if(t!=null){for(l=s,f=0,v=l.length;f=a)throw ee(new Vv(t,a));return s[t]},b.Vc=function(t){var s,a,l;if(s=h(Vt(this.a,4),124),s!=null){if(t!=null){for(a=0,l=s.length;aa)throw ee(new Vv(t,a));return new Dtt(this,t)},b.di=function(t,s){var a,l,f;if(a=zut(this),f=a==null?0:a.length,t>=f)throw ee(new fs(jte+t+Qg+f));if(s>=f)throw ee(new fs(Rte+s+Qg+f));return l=a[s],t!=s&&(t0&&xa(t,0,s,0,a),s},b.Oc=function(t){var s,a,l;return s=h(Vt(this.a,4),124),l=s==null?0:s.length,l>0&&(t.lengthl&&ui(t,l,null),t};var fEt;D(Do,"ArrayDelegatingEList",1955),_(1026,39,bo,Vit),b.hj=function(){if(this.b.j!=this.f||Pe(h(Vt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},b.Qb=function(){N8(this),this.a=h(Vt(this.b.a,4),124)},D(Do,"ArrayDelegatingEList/EIterator",1026),_(698,276,jh,rtt,Dtt),b.hj=function(){if(this.b.j!=this.f||Pe(h(Vt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},b.kj=function(t){Tlt(this,t),this.a=h(Vt(this.b.a,4),124)},b.Qb=function(){N8(this),this.a=h(Vt(this.b.a,4),124)},D(Do,"ArrayDelegatingEList/EListIterator",698),_(1027,341,bo,Uit),b.hj=function(){if(this.b.j!=this.f||Pe(h(Vt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},D(Do,"ArrayDelegatingEList/NonResolvingEIterator",1027),_(699,384,jh,itt,Ntt),b.hj=function(){if(this.b.j!=this.f||Pe(h(Vt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},D(Do,"ArrayDelegatingEList/NonResolvingEListIterator",699),_(598,295,YJ,FX),D(Do,"BasicEList/BasicIndexOutOfBoundsException",598),_(688,60,oh,k1e),b.Tc=function(t,s){throw ee(new jn)},b.Dc=function(t){throw ee(new jn)},b.Uc=function(t,s){throw ee(new jn)},b.Ec=function(t){throw ee(new jn)},b.$b=function(){throw ee(new jn)},b.li=function(t){throw ee(new jn)},b.Ic=function(){return this.Uh()},b.Wc=function(){return this.Vh()},b.Xc=function(t){return this.Wh(t)},b.di=function(t,s){throw ee(new jn)},b.ei=function(t,s){throw ee(new jn)},b.Yc=function(t){throw ee(new jn)},b.Kc=function(t){throw ee(new jn)},b.Zc=function(t,s){throw ee(new jn)},D(Do,"BasicEList/UnmodifiableEList",688),_(697,1,{3:1,19:1,15:1,14:1,57:1,580:1}),b.Tc=function(t,s){BWt(this,t,h(s,43))},b.Dc=function(t){return kGt(this,h(t,43))},b.Hc=function(t){Eo(this,t)},b.Xb=function(t){return h(fe(this.c,t),133)},b.di=function(t,s){return h(this.c.di(t,s),43)},b.ei=function(t,s){zWt(this,t,h(s,43))},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return h(this.c.Yc(t),43)},b.Zc=function(t,s){return _Qt(this,t,h(s,43))},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b.Uc=function(t,s){return this.c.Uc(t,s)},b.Ec=function(t){return this.c.Ec(t)},b.$b=function(){this.c.$b()},b.Fc=function(t){return this.c.Fc(t)},b.Gc=function(t){return eP(this.c,t)},b.lj=function(){var t,s,a;if(this.d==null){for(this.d=ge(J8e,n4e,60,2*this.f+1,0,1),a=this.e,this.f=0,s=this.c.Ic();s.e!=s.i.gc();)t=h(s.ij(),133),TL(this,t);this.e=a}},b.Fb=function(t){return NJe(this,t)},b.Hb=function(){return Ube(this.c)},b.Vc=function(t){return this.c.Vc(t)},b.mj=function(){this.c=new JWe(this)},b.dc=function(){return this.f==0},b.Ic=function(){return this.c.Ic()},b.Wc=function(){return this.c.Wc()},b.Xc=function(t){return this.c.Xc(t)},b.nj=function(){return DA(this)},b.oj=function(t,s,a){return new qJe(t,s,a)},b.pj=function(){return new _Be},b.Kc=function(t){return nat(this,t)},b.gc=function(){return this.f},b._c=function(t,s){return new Ph(this.c,t,s)},b.Nc=function(){return this.c.Nc()},b.Oc=function(t){return this.c.Oc(t)},b.Ib=function(){return $me(this.c)},b.e=0,b.f=0,D(Do,"BasicEMap",697),_(1021,60,oh,JWe),b.Yh=function(t,s){yHt(this,h(s,133))},b._h=function(t,s,a){var l;++(l=this,h(s,133),l).a.e},b.ai=function(t,s){wHt(this,h(s,133))},b.bi=function(t,s,a){pGt(this,h(s,133),h(a,133))},b.$h=function(t,s){Kat(this.a)},D(Do,"BasicEMap/1",1021),_(1022,60,oh,_Be),b.mi=function(t){return ge(u2n,gvt,602,t,0,1)},D(Do,"BasicEMap/2",1022),_(1023,md,au,eGe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){return LQ(this.a,t)},b.Ic=function(){return this.a.f==0?(zC(),__.a):new BXe(this.a)},b.Kc=function(t){var s;return s=this.a.f,mL(this.a,t),this.a.f!=s},b.gc=function(){return this.a.f},D(Do,"BasicEMap/3",1023),_(mf,28,Cy,tGe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){return I1t(this.a,t)},b.Ic=function(){return this.a.f==0?(zC(),__.a):new zXe(this.a)},b.gc=function(){return this.a.f},D(Do,"BasicEMap/4",mf),_(1025,md,au,nGe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){var s,a,l,f,v,w,S,C,A;if(this.a.f>0&&ue(t,43)&&(this.a.lj(),C=h(t,43),S=C.ad(),f=S==null?0:ri(S),v=kpe(this.a,f),s=this.a.d[v],s)){for(a=h(s.g,364),A=s.i,w=0;w"+this.c},b.a=0;var u2n=D(Do,"BasicEMap/EntryImpl",602);_(531,1,{},LN),D(Do,"BasicEMap/View",531);var __;_(751,1,{}),b.Fb=function(t){return Fye((Mt(),qo),t)},b.Hb=function(){return rme((Mt(),qo))},b.Ib=function(){return b0((Mt(),qo))},D(Do,"ECollections/BasicEmptyUnmodifiableEList",751),_(1283,1,jh,MBe),b.Nb=function(t){wo(this,t)},b.Rb=function(t){throw ee(new jn)},b.Ob=function(){return!1},b.Sb=function(){return!1},b.Pb=function(){throw ee(new aa)},b.Tb=function(){return 0},b.Ub=function(){throw ee(new aa)},b.Vb=function(){return-1},b.Qb=function(){throw ee(new jn)},b.Wb=function(t){throw ee(new jn)},D(Do,"ECollections/BasicEmptyUnmodifiableEList/1",1283),_(1281,751,{19:1,15:1,14:1,57:1},qGe),b.Tc=function(t,s){VXe()},b.Dc=function(t){return UXe()},b.Uc=function(t,s){return HXe()},b.Ec=function(t){return qXe()},b.$b=function(){WXe()},b.Fc=function(t){return!1},b.Gc=function(t){return!1},b.Hc=function(t){Eo(this,t)},b.Xb=function(t){return T1e((Mt(),t)),null},b.Vc=function(t){return-1},b.dc=function(){return!0},b.Ic=function(){return this.a},b.Wc=function(){return this.a},b.Xc=function(t){return this.a},b.di=function(t,s){return GXe()},b.ei=function(t,s){XXe()},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return KXe()},b.Kc=function(t){return YXe()},b.Zc=function(t,s){return QXe()},b.gc=function(){return 0},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b._c=function(t,s){return Mt(),new Ph(qo,t,s)},b.Nc=function(){return T0e((Mt(),qo))},b.Oc=function(t){return Mt(),wP(qo,t)},D(Do,"ECollections/EmptyUnmodifiableEList",1281),_(1282,751,{19:1,15:1,14:1,57:1,580:1},WGe),b.Tc=function(t,s){VXe()},b.Dc=function(t){return UXe()},b.Uc=function(t,s){return HXe()},b.Ec=function(t){return qXe()},b.$b=function(){WXe()},b.Fc=function(t){return!1},b.Gc=function(t){return!1},b.Hc=function(t){Eo(this,t)},b.Xb=function(t){return T1e((Mt(),t)),null},b.Vc=function(t){return-1},b.dc=function(){return!0},b.Ic=function(){return this.a},b.Wc=function(){return this.a},b.Xc=function(t){return this.a},b.di=function(t,s){return GXe()},b.ei=function(t,s){XXe()},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return KXe()},b.Kc=function(t){return YXe()},b.Zc=function(t,s){return QXe()},b.gc=function(){return 0},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b._c=function(t,s){return Mt(),new Ph(qo,t,s)},b.Nc=function(){return T0e((Mt(),qo))},b.Oc=function(t){return Mt(),wP(qo,t)},b.nj=function(){return Mt(),Mt(),ah},D(Do,"ECollections/EmptyUnmodifiableEMap",1282);var tIe=ii(Do,"Enumerator"),FV;_(279,1,{279:1},GZ),b.Fb=function(t){var s;return this===t?!0:ue(t,279)?(s=h(t,279),this.f==s.f&&ZYt(this.i,s.i)&&kK(this.a,(this.f&256)!=0?(s.f&256)!=0?s.a:null:(s.f&256)!=0?null:s.a)&&kK(this.d,s.d)&&kK(this.g,s.g)&&kK(this.e,s.e)&&Lan(this,s)):!1},b.Hb=function(){return this.f},b.Ib=function(){return tpt(this)},b.f=0;var dEt=0,hEt=0,pEt=0,gEt=0,nIe=0,rIe=0,iIe=0,oIe=0,sIe=0,bEt,E9=0,k9=0,mEt=0,vEt=0,BV,aIe;D(Do,"URI",279),_(1071,44,_2,GGe),b.xc=function(t,s){return h(hs(this,Ln(t),h(s,279)),279)},D(Do,"URI/URICache",1071),_(489,60,oh,DBe,wR),b.ci=function(){return!0},D(Do,"UniqueEList",489),_(572,59,S1,w$),D(Do,"WrappedException",572);var ir=ii(bl,vvt),tw=ii(bl,yvt),wc=ii(bl,wvt),nw=ii(bl,xvt),Kf=ii(bl,Svt),Kl=ii(bl,"EClass"),poe=ii(bl,"EDataType"),yEt;_(1156,44,_2,XGe),b.vc=function(t){return to(t)?Ia(this,t):Gs(Es(this.f,t))},D(bl,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1156);var zV=ii(bl,"EEnum"),M1=ii(bl,Evt),ns=ii(bl,kvt),Yl=ii(bl,Cvt),Ql,Qm=ii(bl,Ivt),rw=ii(bl,Tvt);_(1017,1,{},NBe),b.Ib=function(){return"NIL"},D(bl,"EStructuralFeature/Internal/DynamicValueHolder/1",1017);var wEt;_(1016,44,_2,KGe),b.vc=function(t){return to(t)?Ia(this,t):Gs(Es(this.f,t))},D(bl,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1016);var rc=ii(bl,Avt),H4=ii(bl,"EValidator/PatternMatcher"),cIe,uIe,Bt,Tp,iw,V0,xEt,SEt,EEt,U0,Ap,H0,Zm,Pd,kEt,CEt,Zl,Pp,IEt,Op,ow,dx,Vo,TEt,AEt,Jm,VV=ii(Jr,"FeatureMap/Entry");_(530,1,{71:1},Lj),b.Xj=function(){return this.a},b.bd=function(){return this.b},D(zt,"BasicEObjectImpl/1",530),_(1015,1,Ute,iQe),b.Rj=function(t){return PY(this.a,this.b,t)},b.aj=function(){return Rnt(this.a,this.b)},b.Wb=function(t){fge(this.a,this.b,t)},b.Sj=function(){eZt(this.a,this.b)},D(zt,"BasicEObjectImpl/4",1015),_(1956,1,{107:1}),b.Yj=function(t){this.e=t==0?PEt:ge(dn,rt,1,t,5,1)},b.xh=function(t){return this.e[t]},b.yh=function(t,s){this.e[t]=s},b.zh=function(t){this.e[t]=null},b.Zj=function(){return this.c},b.$j=function(){throw ee(new jn)},b._j=function(){throw ee(new jn)},b.ak=function(){return this.d},b.bk=function(){return this.e!=null},b.ck=function(t){this.c=t},b.dk=function(t){throw ee(new jn)},b.ek=function(t){throw ee(new jn)},b.fk=function(t){this.d=t};var PEt;D(zt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1956),_(187,1956,{107:1},Of),b.$j=function(){return this.a},b._j=function(){return this.b},b.dk=function(t){this.a=t},b.ek=function(t){this.b=t},D(zt,"BasicEObjectImpl/EPropertiesHolderImpl",187),_(498,96,Omt,BN),b.Fg=function(){return this.f},b.Kg=function(){return this.k},b.Mg=function(t,s){this.g=t,this.i=s},b.Og=function(){return(this.j&2)==0?this.uh():this.kh().Zj()},b.Qg=function(){return this.i},b.Hg=function(){return(this.j&1)!=0},b.$g=function(){return this.g},b.fh=function(){return(this.j&4)!=0},b.kh=function(){return!this.k&&(this.k=new Of),this.k},b.oh=function(t){this.kh().ck(t),t?this.j|=2:this.j&=-3},b.qh=function(t){this.kh().ek(t),t?this.j|=4:this.j&=-5},b.uh=function(){return(n0(),Bt).S},b.i=0,b.j=1,D(zt,"EObjectImpl",498),_(763,498,{104:1,91:1,89:1,55:1,107:1,48:1,96:1},c0e),b.xh=function(t){return this.e[t]},b.yh=function(t,s){this.e[t]=s},b.zh=function(t){this.e[t]=null},b.Og=function(){return this.d},b.Tg=function(t){return ti(this.d,t)},b.Vg=function(){return this.d},b.Zg=function(){return this.e!=null},b.kh=function(){return!this.k&&(this.k=new RBe),this.k},b.oh=function(t){this.d=t},b.th=function(){var t;return this.e==null&&(t=fn(this.d),this.e=t==0?OEt:ge(dn,rt,1,t,5,1)),this},b.vh=function(){return 0};var OEt;D(zt,"DynamicEObjectImpl",763),_(1347,763,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1},yet),b.Fb=function(t){return this===t},b.Hb=function(){return Kb(this)},b.oh=function(t){this.d=t,this.b=$P(t,"key"),this.c=$P(t,mI)},b.Nh=function(){var t;return this.a==-1&&(t=zY(this,this.b),this.a=t==null?0:ri(t)),this.a},b.ad=function(){return zY(this,this.b)},b.bd=function(){return zY(this,this.c)},b.Oh=function(t){this.a=t},b.Ph=function(t){fge(this,this.b,t)},b.cd=function(t){var s;return s=zY(this,this.c),fge(this,this.c,t),s},b.a=0,D(zt,"DynamicEObjectImpl/BasicEMapEntry",1347),_(1348,1,{107:1},RBe),b.Yj=function(t){throw ee(new jn)},b.xh=function(t){throw ee(new jn)},b.yh=function(t,s){throw ee(new jn)},b.zh=function(t){throw ee(new jn)},b.Zj=function(){throw ee(new jn)},b.$j=function(){return this.a},b._j=function(){return this.b},b.ak=function(){return this.c},b.bk=function(){throw ee(new jn)},b.ck=function(t){throw ee(new jn)},b.dk=function(t){this.a=t},b.ek=function(t){this.b=t},b.fk=function(t){this.c=t},D(zt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1348),_(502,150,{104:1,91:1,89:1,581:1,147:1,55:1,107:1,48:1,96:1,502:1,150:1,113:1,116:1},fde),b.Lg=function(t){return kve(this,t)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.d;case 2:return a?(!this.b&&(this.b=new mu((At(),Vo),ta,this)),this.b):(!this.b&&(this.b=new mu((At(),Vo),ta,this)),DA(this.b));case 3:return Fnt(this);case 4:return!this.a&&(this.a=new Mi(B0,this,4)),this.a;case 5:return!this.c&&(this.c=new Yw(B0,this,5)),this.c}return ll(this,t-fn((At(),Tp)),Dt((l=h(Vt(this,16),26),l||Tp),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 3:return this.Cb&&(a=(f=this.Db>>16,f>=0?kve(this,a):this.Cb.dh(this,-1-f,null,a))),E0e(this,h(t,147),a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),Tp)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),Tp)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 2:return!this.b&&(this.b=new mu((At(),Vo),ta,this)),sR(this.b,t,a);case 3:return E0e(this,null,a);case 4:return!this.a&&(this.a=new Mi(B0,this,4)),Mo(this.a,t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Tp)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Tp)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!Fnt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ul(this,t-fn((At(),Tp)),Dt((s=h(Vt(this,16),26),s||Tp),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:$Yt(this,Ln(s));return;case 2:!this.b&&(this.b=new mu((At(),Vo),ta,this)),q$(this.b,s);return;case 3:Hht(this,h(s,147));return;case 4:!this.a&&(this.a=new Mi(B0,this,4)),Cn(this.a),!this.a&&(this.a=new Mi(B0,this,4)),di(this.a,h(s,15));return;case 5:!this.c&&(this.c=new Yw(B0,this,5)),Cn(this.c),!this.c&&(this.c=new Yw(B0,this,5)),di(this.c,h(s,15));return}pl(this,t-fn((At(),Tp)),Dt((a=h(Vt(this,16),26),a||Tp),t),s)},b.uh=function(){return At(),Tp},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:Ibe(this,null);return;case 2:!this.b&&(this.b=new mu((At(),Vo),ta,this)),this.b.c.$b();return;case 3:Hht(this,null);return;case 4:!this.a&&(this.a=new Mi(B0,this,4)),Cn(this.a);return;case 5:!this.c&&(this.c=new Yw(B0,this,5)),Cn(this.c);return}hl(this,t-fn((At(),Tp)),Dt((s=h(Vt(this,16),26),s||Tp),t))},b.Ib=function(){return cut(this)},b.d=null,D(zt,"EAnnotationImpl",502),_(143,697,r4e,tu),b.Sh=function(t,s){_Wt(this,t,h(s,43))},b.gk=function(t,s){return gXt(this,h(t,43),s)},b.ki=function(t){return h(h(this.c,67).ki(t),133)},b.Uh=function(){return h(this.c,67).Uh()},b.Vh=function(){return h(this.c,67).Vh()},b.Wh=function(t){return h(this.c,67).Wh(t)},b.hk=function(t,s){return sR(this,t,s)},b.Rj=function(t){return h(this.c,76).Rj(t)},b.mj=function(){},b.aj=function(){return h(this.c,76).aj()},b.oj=function(t,s,a){var l;return l=h(Bu(this.b).Ih().Eh(this.b),133),l.Oh(t),l.Ph(s),l.cd(a),l},b.pj=function(){return new Kde(this)},b.Wb=function(t){q$(this,t)},b.Sj=function(){h(this.c,76).Sj()},D(Jr,"EcoreEMap",143),_(158,143,r4e,mu),b.lj=function(){var t,s,a,l,f,v;if(this.d==null){for(v=ge(J8e,n4e,60,2*this.f+1,0,1),a=this.c.Ic();a.e!=a.i.gc();)s=h(a.ij(),133),l=s.Nh(),f=(l&Ir)%v.length,t=v[f],!t&&(t=v[f]=new Kde(this)),t.Dc(s);this.d=v}},D(zt,"EAnnotationImpl/1",158),_(283,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,466:1,48:1,96:1,150:1,283:1,113:1,116:1}),b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!this.Vj();case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q}return ll(this,t-fn(this.uh()),Dt((l=h(Vt(this,16),26),l||this.uh()),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 9:return BK(this,a)}return f=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Za(this),s-fn(this.uh()),t,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Vj();case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0)}return ul(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:this.Gh(Ln(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:this.jk(h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return}pl(this,t-fn(this.uh()),Dt((a=h(Vt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),AEt},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:this.Gh(null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.jk(1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return}hl(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.Bh=function(){$l(this),this.Bb|=1},b.Tj=function(){return $l(this)},b.Uj=function(){return this.t},b.Vj=function(){var t;return t=this.t,t>1||t==-1},b.ci=function(){return(this.Bb&512)!=0},b.ik=function(t,s){return Sme(this,t,s)},b.jk=function(t){iy(this,t)},b.Ib=function(){return Pye(this)},b.s=0,b.t=1,D(zt,"ETypedElementImpl",283),_(443,283,{104:1,91:1,89:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,443:1,283:1,113:1,116:1,665:1}),b.Lg=function(t){return Wlt(this,t)},b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!this.Vj();case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&Nc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this)}return ll(this,t-fn(this.uh()),Dt((l=h(Vt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 17:return this.Cb&&(a=(f=this.Db>>16,f>=0?Wlt(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,17,a)}return v=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),v.Ij().Lj(this,Za(this),s-fn(this.uh()),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 9:return BK(this,a);case 17:return Hu(this,null,17,a)}return f=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Za(this),s-fn(this.uh()),t,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Vj();case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&Nc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this)}return ul(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:pY(this,Ln(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:this.jk(h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Ln(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return}pl(this,t-fn(this.uh()),Dt((a=h(Vt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),TEt},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.jk(1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return}hl(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.Bh=function(){m5(gs((Dc(),vo),this)),$l(this),this.Bb|=1},b.Bj=function(){return this.f},b.uj=function(){return d6(this)},b.Cj=function(){return Qv(this)},b.Gj=function(){return null},b.kk=function(){return this.k},b.Xi=function(){return this.n},b.Hj=function(){return jL(this)},b.Ij=function(){var t,s,a,l,f,v,w,S,C;return this.p||(a=Qv(this),(a.i==null&&Kd(a),a.i).length,l=this.Gj(),l&&fn(Qv(l)),f=$l(this),w=f.wj(),t=w?(w.i&1)!=0?w==du?io:w==An?No:w==aw?L6:w==oo?To:w==W0?$m:w==bx?Lm:w==Lc?y4:AI:w:null,s=d6(this),S=f.uj(),usn(this),(this.Bb&Yd)!=0&&(!!(v=Mve((Dc(),vo),a))&&v!=this||!!(v=L3(gs(vo,this))))?this.p=new sQe(this,v):this.Vj()?this.mk()?l?(this.Bb&Nc)!=0?t?this.nk()?this.p=new wg(47,t,this,l):this.p=new wg(5,t,this,l):this.nk()?this.p=new kg(46,this,l):this.p=new kg(4,this,l):t?this.nk()?this.p=new wg(49,t,this,l):this.p=new wg(7,t,this,l):this.nk()?this.p=new kg(48,this,l):this.p=new kg(6,this,l):(this.Bb&Nc)!=0?t?t==eb?this.p=new Z1(50,uEt,this):this.nk()?this.p=new Z1(43,t,this):this.p=new Z1(1,t,this):this.nk()?this.p=new ep(42,this):this.p=new ep(0,this):t?t==eb?this.p=new Z1(41,uEt,this):this.nk()?this.p=new Z1(45,t,this):this.p=new Z1(3,t,this):this.nk()?this.p=new ep(44,this):this.p=new ep(2,this):ue(f,148)?t==VV?this.p=new ep(40,this):(this.Bb&512)!=0?(this.Bb&Nc)!=0?t?this.p=new Z1(9,t,this):this.p=new ep(8,this):t?this.p=new Z1(11,t,this):this.p=new ep(10,this):(this.Bb&Nc)!=0?t?this.p=new Z1(13,t,this):this.p=new ep(12,this):t?this.p=new Z1(15,t,this):this.p=new ep(14,this):l?(C=l.t,C>1||C==-1?this.nk()?(this.Bb&Nc)!=0?t?this.p=new wg(25,t,this,l):this.p=new kg(24,this,l):t?this.p=new wg(27,t,this,l):this.p=new kg(26,this,l):(this.Bb&Nc)!=0?t?this.p=new wg(29,t,this,l):this.p=new kg(28,this,l):t?this.p=new wg(31,t,this,l):this.p=new kg(30,this,l):this.nk()?(this.Bb&Nc)!=0?t?this.p=new wg(33,t,this,l):this.p=new kg(32,this,l):t?this.p=new wg(35,t,this,l):this.p=new kg(34,this,l):(this.Bb&Nc)!=0?t?this.p=new wg(37,t,this,l):this.p=new kg(36,this,l):t?this.p=new wg(39,t,this,l):this.p=new kg(38,this,l)):this.nk()?(this.Bb&Nc)!=0?t?this.p=new Z1(17,t,this):this.p=new ep(16,this):t?this.p=new Z1(19,t,this):this.p=new ep(18,this):(this.Bb&Nc)!=0?t?this.p=new Z1(21,t,this):this.p=new ep(20,this):t?this.p=new Z1(23,t,this):this.p=new ep(22,this):this.lk()?this.nk()?this.p=new WJe(h(f,26),this,l):this.p=new lge(h(f,26),this,l):ue(f,148)?t==VV?this.p=new ep(40,this):(this.Bb&Nc)!=0?t?this.p=new Get(s,S,this,(FQ(),w==An?bIe:w==du?fIe:w==W0?mIe:w==aw?gIe:w==oo?pIe:w==bx?vIe:w==Lc?dIe:w==wl?hIe:moe)):this.p=new int(h(f,148),s,S,this):t?this.p=new Wet(s,S,this,(FQ(),w==An?bIe:w==du?fIe:w==W0?mIe:w==aw?gIe:w==oo?pIe:w==bx?vIe:w==Lc?dIe:w==wl?hIe:moe)):this.p=new rnt(h(f,148),s,S,this):this.mk()?l?(this.Bb&Nc)!=0?this.nk()?this.p=new XJe(h(f,26),this,l):this.p=new Zpe(h(f,26),this,l):this.nk()?this.p=new GJe(h(f,26),this,l):this.p=new bK(h(f,26),this,l):(this.Bb&Nc)!=0?this.nk()?this.p=new UZe(h(f,26),this):this.p=new ppe(h(f,26),this):this.nk()?this.p=new VZe(h(f,26),this):this.p=new nK(h(f,26),this):this.nk()?l?(this.Bb&Nc)!=0?this.p=new KJe(h(f,26),this,l):this.p=new Jpe(h(f,26),this,l):(this.Bb&Nc)!=0?this.p=new qZe(h(f,26),this):this.p=new gpe(h(f,26),this):l?(this.Bb&Nc)!=0?this.p=new YJe(h(f,26),this,l):this.p=new e0e(h(f,26),this,l):(this.Bb&Nc)!=0?this.p=new HZe(h(f,26),this):this.p=new vR(h(f,26),this)),this.p},b.Dj=function(){return(this.Bb&mf)!=0},b.lk=function(){return!1},b.mk=function(){return!1},b.Ej=function(){return(this.Bb&Yd)!=0},b.Jj=function(){return UY(this)},b.nk=function(){return!1},b.Fj=function(){return(this.Bb&Nc)!=0},b.ok=function(t){this.k=t},b.Gh=function(t){pY(this,t)},b.Ib=function(){return eF(this)},b.e=!1,b.n=0,D(zt,"EStructuralFeatureImpl",443),_(321,443,{104:1,91:1,89:1,32:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,321:1,150:1,443:1,283:1,113:1,116:1,665:1},HG),b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!Iye(this);case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&Nc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this);case 18:return Zt(),(this.Bb&la)!=0;case 19:return s?aQ(this):not(this)}return ll(this,t-fn((At(),iw)),Dt((l=h(Vt(this,16),26),l||iw),t),s,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Iye(this);case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&Nc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this);case 18:return(this.Bb&la)!=0;case 19:return!!not(this)}return ul(this,t-fn((At(),iw)),Dt((s=h(Vt(this,16),26),s||iw),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:pY(this,Ln(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:eKe(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Ln(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return;case 18:OQ(this,_t(It(s)));return}pl(this,t-fn((At(),iw)),Dt((a=h(Vt(this,16),26),a||iw),t),s)},b.uh=function(){return At(),iw},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.b=0,iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return;case 18:OQ(this,!1);return}hl(this,t-fn((At(),iw)),Dt((s=h(Vt(this,16),26),s||iw),t))},b.Bh=function(){aQ(this),m5(gs((Dc(),vo),this)),$l(this),this.Bb|=1},b.Vj=function(){return Iye(this)},b.ik=function(t,s){return this.b=0,this.a=null,Sme(this,t,s)},b.jk=function(t){eKe(this,t)},b.Ib=function(){var t;return(this.Db&64)!=0?eF(this):(t=new _l(eF(this)),t.a+=" (iD: ",K1(t,(this.Bb&la)!=0),t.a+=")",t.a)},b.b=0,D(zt,"EAttributeImpl",321),_(348,431,{104:1,91:1,89:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,348:1,150:1,113:1,116:1,664:1}),b.pk=function(t){return t.Og()==this},b.Lg=function(t){return fZ(this,t)},b.Mg=function(t,s){this.w=null,this.Db=s<<16|this.Db&255,this.Cb=t},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return xm(this);case 4:return this.uj();case 5:return this.F;case 6:return s?Bu(this):w5(this);case 7:return!this.A&&(this.A=new Tc(rc,this,7)),this.A}return ll(this,t-fn(this.uh()),Dt((l=h(Vt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?fZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a)}return v=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),v.Ij().Lj(this,Za(this),s-fn(this.uh()),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Tc(rc,this,7)),Mo(this.A,t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Za(this),s-fn(this.uh()),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return this.uj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0}return ul(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Ln(s));return;case 2:UX(this,Ln(s));return;case 5:m6(this,Ln(s));return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A),!this.A&&(this.A=new Tc(rc,this,7)),di(this.A,h(s,15));return}pl(this,t-fn(this.uh()),Dt((a=h(Vt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),xEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A);return}hl(this,t-fn(this.uh()),Dt((s=h(Vt(this,16),26),s||this.uh()),t))},b.tj=function(){var t;return this.G==-1&&(this.G=(t=Bu(this),t?up(t.Hh(),this):-1)),this.G},b.uj=function(){return null},b.vj=function(){return Bu(this)},b.qk=function(){return this.v},b.wj=function(){return xm(this)},b.xj=function(){return this.D!=null?this.D:this.B},b.yj=function(){return this.F},b.rj=function(t){return nJ(this,t)},b.rk=function(t){this.v=t},b.sk=function(t){_at(this,t)},b.tk=function(t){this.C=t},b.Gh=function(t){ZR(this,t)},b.Ib=function(){return hL(this)},b.C=null,b.D=null,b.G=-1,D(zt,"EClassifierImpl",348),_(87,348,{104:1,91:1,89:1,26:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,87:1,348:1,150:1,467:1,113:1,116:1,664:1},gde),b.pk=function(t){return nXt(this,t.Og())},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return xm(this);case 4:return null;case 5:return this.F;case 6:return s?Bu(this):w5(this);case 7:return!this.A&&(this.A=new Tc(rc,this,7)),this.A;case 8:return Zt(),(this.Bb&256)!=0;case 9:return Zt(),(this.Bb&512)!=0;case 10:return Ss(this);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),this.q;case 12:return T2(this);case 13:return W8(this);case 14:return W8(this),this.r;case 15:return T2(this),this.k;case 16:return gye(this);case 17:return aJ(this);case 18:return Kd(this);case 19:return WL(this);case 20:return T2(this),this.o;case 21:return!this.s&&(this.s=new $e(wc,this,21,17)),this.s;case 22:return ya(this);case 23:return WZ(this)}return ll(this,t-fn((At(),V0)),Dt((l=h(Vt(this,16),26),l||V0),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?fZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),Va(this.q,t,a);case 21:return!this.s&&(this.s=new $e(wc,this,21,17)),Va(this.s,t,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),V0)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),V0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Tc(rc,this,7)),Mo(this.A,t,a);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),Mo(this.q,t,a);case 21:return!this.s&&(this.s=new $e(wc,this,21,17)),Mo(this.s,t,a);case 22:return Mo(ya(this),t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),V0)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),V0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&ya(this.u.a).i!=0&&!(!!this.n&&tZ(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return T2(this).i!=0;case 13:return W8(this).i!=0;case 14:return W8(this),this.r.i!=0;case 15:return T2(this),this.k.i!=0;case 16:return gye(this).i!=0;case 17:return aJ(this).i!=0;case 18:return Kd(this).i!=0;case 19:return WL(this).i!=0;case 20:return T2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&tZ(this.n);case 23:return WZ(this).i!=0}return ul(this,t-fn((At(),V0)),Dt((s=h(Vt(this,16),26),s||V0),t))},b.jh=function(t){var s;return s=this.i==null||!!this.q&&this.q.i!=0?null:$P(this,t),s||Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Ln(s));return;case 2:UX(this,Ln(s));return;case 5:m6(this,Ln(s));return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A),!this.A&&(this.A=new Tc(rc,this,7)),di(this.A,h(s,15));return;case 8:Cme(this,_t(It(s)));return;case 9:kme(this,_t(It(s)));return;case 10:X8(Ss(this)),di(Ss(this),h(s,15));return;case 11:!this.q&&(this.q=new $e(Yl,this,11,10)),Cn(this.q),!this.q&&(this.q=new $e(Yl,this,11,10)),di(this.q,h(s,15));return;case 21:!this.s&&(this.s=new $e(wc,this,21,17)),Cn(this.s),!this.s&&(this.s=new $e(wc,this,21,17)),di(this.s,h(s,15));return;case 22:Cn(ya(this)),di(ya(this),h(s,15));return}pl(this,t-fn((At(),V0)),Dt((a=h(Vt(this,16),26),a||V0),t),s)},b.uh=function(){return At(),V0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A);return;case 8:Cme(this,!1);return;case 9:kme(this,!1);return;case 10:this.u&&X8(this.u);return;case 11:!this.q&&(this.q=new $e(Yl,this,11,10)),Cn(this.q);return;case 21:!this.s&&(this.s=new $e(wc,this,21,17)),Cn(this.s);return;case 22:this.n&&Cn(this.n);return}hl(this,t-fn((At(),V0)),Dt((s=h(Vt(this,16),26),s||V0),t))},b.Bh=function(){var t,s;if(T2(this),W8(this),gye(this),aJ(this),Kd(this),WL(this),WZ(this),f8(fYt(eu(this))),this.s)for(t=0,s=this.s.i;t=0;--t)fe(this,t);return Ige(this)},b.Oc=function(t){var s;if(this.zk())for(s=this.i-1;s>=0;--s)fe(this,s);return qme(this,t)},b.Sj=function(){Cn(this)},b.ji=function(t,s){return $st(this,t,s)},D(Jr,"EcoreEList",612),_(488,612,_s,pA),b.Xh=function(){return!1},b.Xi=function(){return this.c},b.Yi=function(){return!1},b.Ak=function(){return!0},b.ci=function(){return!0},b.gi=function(t,s){return s},b.ii=function(){return!1},b.c=0,D(Jr,"EObjectEList",488),_(82,488,_s,Mi),b.Yi=function(){return!0},b.yk=function(){return!1},b.mk=function(){return!0},D(Jr,"EObjectContainmentEList",82),_(538,82,_s,Kj),b.Zh=function(){this.b=!0},b.aj=function(){return this.b},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.b,this.b=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.b=!1},b.b=!1,D(Jr,"EObjectContainmentEList/Unsettable",538),_(1113,538,_s,Het),b.di=function(t,s){var a,l;return a=h(dP(this,t,s),86),bu(this.e)&&WS(this,new NA(this.a,7,(At(),SEt),Ue(s),(l=a.c,ue(l,87)?h(l,26):Zl),t)),a},b.ej=function(t,s){return Usn(this,h(t,86),s)},b.fj=function(t,s){return Hsn(this,h(t,86),s)},b.gj=function(t,s,a){return tln(this,h(t,86),h(s,86),a)},b.Ui=function(t,s,a,l,f){switch(t){case 3:return o8(this,t,s,a,l,this.i>1);case 5:return o8(this,t,s,a,l,this.i-h(a,14).gc()>0);default:return new p1(this.e,t,this.c,s,a,l,!0)}},b.dj=function(){return!0},b.aj=function(){return tZ(this)},b.Sj=function(){Cn(this)},D(zt,"EClassImpl/1",1113),_(1127,1126,t4e),b.pi=function(t){var s,a,l,f,v,w,S;if(a=t.si(),a!=8){if(l=Oan(t),l==0)switch(a){case 1:case 9:{S=t.wi(),S!=null&&(s=eu(h(S,467)),!s.c&&(s.c=new BS),E$(s.c,t.vi())),w=t.ui(),w!=null&&(f=h(w,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),On(s.c,h(t.vi(),26))));break}case 3:{w=t.ui(),w!=null&&(f=h(w,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),On(s.c,h(t.vi(),26))));break}case 5:{if(w=t.ui(),w!=null)for(v=h(w,15).Ic();v.Ob();)f=h(v.Pb(),467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),On(s.c,h(t.vi(),26)));break}case 4:{S=t.wi(),S!=null&&(f=h(S,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),E$(s.c,t.vi())));break}case 6:{if(S=t.wi(),S!=null)for(v=h(S,15).Ic();v.Ob();)f=h(v.Pb(),467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),E$(s.c,t.vi()));break}}this.Ck(l)}},b.Ck=function(t){_1t(this,t)},b.b=63,D(zt,"ESuperAdapter",1127),_(1128,1127,t4e,iGe),b.Ck=function(t){my(this,t)},D(zt,"EClassImpl/10",1128),_(1117,688,_s),b.Qh=function(t,s){return SZ(this,t,s)},b.Rh=function(t){return Nlt(this,t)},b.Sh=function(t,s){cP(this,t,s)},b.Th=function(t){OA(this,t)},b.ki=function(t){return tbe(this,t)},b.hi=function(t,s){return VY(this,t,s)},b.gk=function(t,s){throw ee(new jn)},b.Uh=function(){return new P3(this)},b.Vh=function(){return new nA(this)},b.Wh=function(t){return qA(this,t)},b.hk=function(t,s){throw ee(new jn)},b.Rj=function(t){return this},b.aj=function(){return this.i!=0},b.Wb=function(t){throw ee(new jn)},b.Sj=function(){throw ee(new jn)},D(Jr,"EcoreEList/UnmodifiableEList",1117),_(317,1117,_s,Ww),b.ii=function(){return!1},D(Jr,"EcoreEList/UnmodifiableEList/FastCompare",317),_(1120,317,_s,vct),b.Vc=function(t){var s,a,l;if(ue(t,170)&&(s=h(t,170),a=s.Xi(),a!=-1)){for(l=this.i;a4)if(this.rj(t)){if(this.mk()){if(l=h(t,48),a=l.Pg(),S=a==this.b&&(this.yk()?l.Jg(l.Qg(),h(Dt(fc(this.b),this.Xi()).Tj(),26).wj())==Ho(h(Dt(fc(this.b),this.Xi()),17)).n:-1-l.Qg()==this.Xi()),this.zk()&&!S&&!a&&!!l.Ug()){for(f=0;f1||l==-1)):!1},b.yk=function(){var t,s,a;return s=Dt(fc(this.b),this.Xi()),ue(s,97)?(t=h(s,17),a=Ho(t),!!a):!1},b.zk=function(){var t,s;return s=Dt(fc(this.b),this.Xi()),ue(s,97)?(t=h(s,17),(t.Bb&Bo)!=0):!1},b.Vc=function(t){var s,a,l,f;if(l=this.Li(t),l>=0)return l;if(this.Ak()){for(a=0,f=this.Qi();a=0;--t)qP(this,t,this.Ji(t));return this.Ri()},b.Oc=function(t){var s;if(this.zk())for(s=this.Qi()-1;s>=0;--s)qP(this,s,this.Ji(s));return this.Si(t)},b.Sj=function(){X8(this)},b.ji=function(t,s){return $ot(this,t,s)},D(Jr,"DelegatingEcoreEList",725),_(1123,725,o4e,tJe),b.Ci=function(t,s){MGt(this,t,h(s,26))},b.Di=function(t){AWt(this,h(t,26))},b.Ji=function(t){var s,a;return s=h(fe(ya(this.a),t),86),a=s.c,ue(a,87)?h(a,26):(At(),Zl)},b.Oi=function(t){var s,a;return s=h(yy(ya(this.a),t),86),a=s.c,ue(a,87)?h(a,26):(At(),Zl)},b.Pi=function(t,s){return ycn(this,t,h(s,26))},b.Xh=function(){return!1},b.Ui=function(t,s,a,l,f){return null},b.Ei=function(){return new sGe(this)},b.Fi=function(){Cn(ya(this.a))},b.Gi=function(t){return uut(this,t)},b.Hi=function(t){var s,a;for(a=t.Ic();a.Ob();)if(s=a.Pb(),!uut(this,s))return!1;return!0},b.Ii=function(t){var s,a,l;if(ue(t,14)&&(l=h(t,14),l.gc()==ya(this.a).i)){for(s=l.Ic(),a=new pn(this);s.Ob();)if(Pe(s.Pb())!==Pe(vn(a)))return!1;return!0}return!1},b.Ki=function(){var t,s,a,l,f;for(a=1,s=new pn(ya(this.a));s.e!=s.i.gc();)t=h(vn(s),86),l=(f=t.c,ue(f,87)?h(f,26):(At(),Zl)),a=31*a+(l?Kb(l):0);return a},b.Li=function(t){var s,a,l,f;for(l=0,a=new pn(ya(this.a));a.e!=a.i.gc();){if(s=h(vn(a),86),Pe(t)===Pe((f=s.c,ue(f,87)?h(f,26):(At(),Zl))))return l;++l}return-1},b.Mi=function(){return ya(this.a).i==0},b.Ni=function(){return null},b.Qi=function(){return ya(this.a).i},b.Ri=function(){var t,s,a,l,f,v;for(v=ya(this.a).i,f=ge(dn,rt,1,v,5,1),a=0,s=new pn(ya(this.a));s.e!=s.i.gc();)t=h(vn(s),86),f[a++]=(l=t.c,ue(l,87)?h(l,26):(At(),Zl));return f},b.Si=function(t){var s,a,l,f,v,w,S;for(S=ya(this.a).i,t.lengthS&&ui(t,S,null),l=0,a=new pn(ya(this.a));a.e!=a.i.gc();)s=h(vn(a),86),v=(w=s.c,ue(w,87)?h(w,26):(At(),Zl)),ui(t,l++,v);return t},b.Ti=function(){var t,s,a,l,f;for(f=new X1,f.a+="[",t=ya(this.a),s=0,l=ya(this.a).i;s>16,f>=0?fZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a);case 9:return!this.a&&(this.a=new $e(M1,this,9,5)),Va(this.a,t,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),U0)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),U0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Tc(rc,this,7)),Mo(this.A,t,a);case 9:return!this.a&&(this.a=new $e(M1,this,9,5)),Mo(this.a,t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),U0)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),U0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return!!ume(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ul(this,t-fn((At(),U0)),Dt((s=h(Vt(this,16),26),s||U0),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Ln(s));return;case 2:UX(this,Ln(s));return;case 5:m6(this,Ln(s));return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A),!this.A&&(this.A=new Tc(rc,this,7)),di(this.A,h(s,15));return;case 8:sL(this,_t(It(s)));return;case 9:!this.a&&(this.a=new $e(M1,this,9,5)),Cn(this.a),!this.a&&(this.a=new $e(M1,this,9,5)),di(this.a,h(s,15));return}pl(this,t-fn((At(),U0)),Dt((a=h(Vt(this,16),26),a||U0),t),s)},b.uh=function(){return At(),U0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Tc(rc,this,7)),Cn(this.A);return;case 8:sL(this,!0);return;case 9:!this.a&&(this.a=new $e(M1,this,9,5)),Cn(this.a);return}hl(this,t-fn((At(),U0)),Dt((s=h(Vt(this,16),26),s||U0),t))},b.Bh=function(){var t,s;if(this.a)for(t=0,s=this.a.i;t>16==5?h(this.Cb,659):null}return ll(this,t-fn((At(),Ap)),Dt((l=h(Vt(this,16),26),l||Ap),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 5:return this.Cb&&(a=(f=this.Db>>16,f>=0?Jlt(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,5,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),Ap)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),Ap)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 5:return Hu(this,null,5,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Ap)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Ap)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&h(this.Cb,659))}return ul(this,t-fn((At(),Ap)),Dt((s=h(Vt(this,16),26),s||Ap),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Ln(s));return;case 2:XY(this,h(s,20).a);return;case 3:Xdt(this,h(s,1912));return;case 4:QY(this,Ln(s));return}pl(this,t-fn((At(),Ap)),Dt((a=h(Vt(this,16),26),a||Ap),t),s)},b.uh=function(){return At(),Ap},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:XY(this,0);return;case 3:Xdt(this,null);return;case 4:QY(this,null);return}hl(this,t-fn((At(),Ap)),Dt((s=h(Vt(this,16),26),s||Ap),t))},b.Ib=function(){var t;return t=this.c,t==null?this.zb:t},b.b=null,b.c=null,b.d=0,D(zt,"EEnumLiteralImpl",565);var l2n=ii(zt,"EFactoryImpl/InternalEDateTimeFormat");_(482,1,{1984:1},kT),D(zt,"EFactoryImpl/1ClientInternalEDateTimeFormat",482),_(240,116,{104:1,91:1,89:1,86:1,55:1,107:1,48:1,96:1,240:1,113:1,116:1},Lb),b.Ng=function(t,s,a){var l;return a=Hu(this,t,s,a),!!this.e&&ue(t,170)&&(l=qL(this,this.e),l!=this.c&&(a=v6(this,l,a))),a},b.Wg=function(t,s,a){var l;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new Mi(ns,this,1)),this.d;case 2:return s?nF(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return s?iZ(this):this.a}return ll(this,t-fn((At(),Zm)),Dt((l=h(Vt(this,16),26),l||Zm),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return tut(this,null,a);case 1:return!this.d&&(this.d=new Mi(ns,this,1)),Mo(this.d,t,a);case 3:return eut(this,null,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Zm)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Zm)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ul(this,t-fn((At(),Zm)),Dt((s=h(Vt(this,16),26),s||Zm),t))},b.nh=function(t,s){var a;switch(t){case 0:gft(this,h(s,86));return;case 1:!this.d&&(this.d=new Mi(ns,this,1)),Cn(this.d),!this.d&&(this.d=new Mi(ns,this,1)),di(this.d,h(s,15));return;case 3:Bve(this,h(s,86));return;case 4:nye(this,h(s,814));return;case 5:P5(this,h(s,138));return}pl(this,t-fn((At(),Zm)),Dt((a=h(Vt(this,16),26),a||Zm),t),s)},b.uh=function(){return At(),Zm},b.wh=function(t){var s;switch(t){case 0:gft(this,null);return;case 1:!this.d&&(this.d=new Mi(ns,this,1)),Cn(this.d);return;case 3:Bve(this,null);return;case 4:nye(this,null);return;case 5:P5(this,null);return}hl(this,t-fn((At(),Zm)),Dt((s=h(Vt(this,16),26),s||Zm),t))},b.Ib=function(){var t;return t=new ju(gf(this)),t.a+=" (expression: ",fJ(this,t),t.a+=")",t.a};var lIe;D(zt,"EGenericTypeImpl",240),_(1950,1936,uB),b.Sh=function(t,s){ZZe(this,t,s)},b.gk=function(t,s){return ZZe(this,this.gc(),t),s},b.ki=function(t){return Ff(this.Bi(),t)},b.Uh=function(){return this.Vh()},b.Bi=function(){return new fGe(this)},b.Vh=function(){return this.Wh(0)},b.Wh=function(t){return this.Bi().Xc(t)},b.hk=function(t,s){return ay(this,t,!0),s},b.di=function(t,s){var a,l;return l=hZ(this,s),a=this.Xc(t),a.Rb(l),l},b.ei=function(t,s){var a;ay(this,s,!0),a=this.Xc(t),a.Rb(s)},D(Jr,"AbstractSequentialInternalEList",1950),_(481,1950,uB,tA),b.ki=function(t){return Ff(this.Bi(),t)},b.Uh=function(){return this.b==null?(Y1(),Y1(),M_):this.Ek()},b.Bi=function(){return new EQe(this.a,this.b)},b.Vh=function(){return this.b==null?(Y1(),Y1(),M_):this.Ek()},b.Wh=function(t){var s,a;if(this.b==null){if(t<0||t>1)throw ee(new fs(vI+t+", size=0"));return Y1(),Y1(),M_}for(a=this.Ek(),s=0;s0;)if(s=this.c[--this.d],(!this.e||s.Bj()!=EE||s.Xi()!=0)&&(!this.Hk()||this.b.hh(s))){if(v=this.b.Yg(s,this.Gk()),this.f=(Uo(),h(s,65).Jj()),this.f||s.Vj()){if(this.Gk()?(l=h(v,14),this.k=l):(l=h(v,67),this.k=this.j=l),ue(this.k,53)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Wh(this.k.gc()):this.k.Xc(this.k.gc()),this.p?ddt(this,this.p):kdt(this))return f=this.p?this.p.Ub():this.j?this.j.ki(--this.n):this.k.Xb(--this.n),this.f?(t=h(f,71),t.Xj(),a=t.bd(),this.i=a):(a=f,this.i=a),this.g=-3,!0}else if(v!=null)return this.k=null,this.p=null,a=v,this.i=a,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return f=this.p?this.p.Ub():this.j?this.j.ki(--this.n):this.k.Xb(--this.n),this.f?(t=h(f,71),t.Xj(),a=t.bd(),this.i=a):(a=f,this.i=a),this.g=-3,!0}},b.Pb=function(){return X$(this)},b.Tb=function(){return this.a},b.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ee(new aa)},b.Vb=function(){return this.a-1},b.Qb=function(){throw ee(new jn)},b.Gk=function(){return!1},b.Wb=function(t){throw ee(new jn)},b.Hk=function(){return!0},b.a=0,b.d=0,b.f=!1,b.g=0,b.n=0,b.o=0;var M_;D(Jr,"EContentsEList/FeatureIteratorImpl",277),_(689,277,lB,hpe),b.Gk=function(){return!0},D(Jr,"EContentsEList/ResolvingFeatureIteratorImpl",689),_(1130,689,lB,zZe),b.Hk=function(){return!1},D(zt,"ENamedElementImpl/1/1",1130),_(1131,277,lB,BZe),b.Hk=function(){return!1},D(zt,"ENamedElementImpl/1/2",1131),_(35,142,yO,Jv,xY,Gi,RY,p1,df,gbe,brt,bbe,mrt,jge,vrt,ybe,yrt,Rge,wrt,mbe,xrt,ZC,NA,eY,vbe,Srt,Nge,Ert),b.Wi=function(){return Jge(this)},b.bj=function(){var t;return t=Jge(this),t?t.uj():null},b.ti=function(t){return this.b==-1&&!!this.a&&(this.b=this.c.Sg(this.a.Xi(),this.a.Bj())),this.c.Jg(this.b,t)},b.vi=function(){return this.c},b.cj=function(){var t;return t=Jge(this),t?t.Fj():!1},b.b=-1,D(zt,"ENotificationImpl",35),_(395,283,{104:1,91:1,89:1,147:1,191:1,55:1,58:1,107:1,466:1,48:1,96:1,150:1,395:1,283:1,113:1,116:1},qG),b.Lg=function(t){return nft(this,t)},b.Wg=function(t,s,a){var l,f,v;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),v=this.t,v>1||v==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?h(this.Cb,26):null;case 11:return!this.d&&(this.d=new Tc(rc,this,11)),this.d;case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),this.c;case 13:return!this.a&&(this.a=new aA(this,this)),this.a;case 14:return nu(this)}return ll(this,t-fn((At(),Pp)),Dt((l=h(Vt(this,16),26),l||Pp),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 10:return this.Cb&&(a=(f=this.Db>>16,f>=0?nft(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,10,a);case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),Va(this.c,t,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),Pp)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),Pp)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 9:return BK(this,a);case 10:return Hu(this,null,10,a);case 11:return!this.d&&(this.d=new Tc(rc,this,11)),Mo(this.d,t,a);case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),Mo(this.c,t,a);case 14:return Mo(nu(this),t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Pp)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Pp)),t,a)},b.gh=function(t){var s,a,l;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l=this.t,l>1||l==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&h(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&nu(this.a.a).i!=0&&!(!!this.b&&nZ(this.b));case 14:return!!this.b&&nZ(this.b)}return ul(this,t-fn((At(),Pp)),Dt((s=h(Vt(this,16),26),s||Pp),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Ln(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:iy(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 11:!this.d&&(this.d=new Tc(rc,this,11)),Cn(this.d),!this.d&&(this.d=new Tc(rc,this,11)),di(this.d,h(s,15));return;case 12:!this.c&&(this.c=new $e(Qm,this,12,10)),Cn(this.c),!this.c&&(this.c=new $e(Qm,this,12,10)),di(this.c,h(s,15));return;case 13:!this.a&&(this.a=new aA(this,this)),X8(this.a),!this.a&&(this.a=new aA(this,this)),di(this.a,h(s,15));return;case 14:Cn(nu(this)),di(nu(this),h(s,15));return}pl(this,t-fn((At(),Pp)),Dt((a=h(Vt(this,16),26),a||Pp),t),s)},b.uh=function(){return At(),Pp},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 11:!this.d&&(this.d=new Tc(rc,this,11)),Cn(this.d);return;case 12:!this.c&&(this.c=new $e(Qm,this,12,10)),Cn(this.c);return;case 13:this.a&&X8(this.a);return;case 14:this.b&&Cn(this.b);return}hl(this,t-fn((At(),Pp)),Dt((s=h(Vt(this,16),26),s||Pp),t))},b.Bh=function(){var t,s;if(this.c)for(t=0,s=this.c.i;tS&&ui(t,S,null),l=0,a=new pn(nu(this.a));a.e!=a.i.gc();)s=h(vn(a),86),v=(w=s.c,w||(At(),Pd)),ui(t,l++,v);return t},b.Ti=function(){var t,s,a,l,f;for(f=new X1,f.a+="[",t=nu(this.a),s=0,l=nu(this.a).i;s1);case 5:return o8(this,t,s,a,l,this.i-h(a,14).gc()>0);default:return new p1(this.e,t,this.c,s,a,l,!0)}},b.dj=function(){return!0},b.aj=function(){return nZ(this)},b.Sj=function(){Cn(this)},D(zt,"EOperationImpl/2",1312),_(490,1,{1910:1,490:1},oQe),D(zt,"EPackageImpl/1",490),_(16,82,_s,$e),b.uk=function(){return this.d},b.vk=function(){return this.b},b.yk=function(){return!0},b.b=0,D(Jr,"EObjectContainmentWithInverseEList",16),_(350,16,_s,O3),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentWithInverseEList/Resolving",350),_(298,350,_s,Wv),b.Zh=function(){this.a.tb=null},D(zt,"EPackageImpl/2",298),_(1201,1,{},xUt),D(zt,"EPackageImpl/3",1201),_(705,44,_2,phe),b._b=function(t){return to(t)?JK(this,t):!!Es(this.f,t)},D(zt,"EPackageRegistryImpl",705),_(501,283,{104:1,91:1,89:1,147:1,191:1,55:1,1986:1,107:1,466:1,48:1,96:1,150:1,501:1,283:1,113:1,116:1},WG),b.Lg=function(t){return rft(this,t)},b.Wg=function(t,s,a){var l,f,v;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),v=this.t,v>1||v==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?h(this.Cb,58):null}return ll(this,t-fn((At(),ow)),Dt((l=h(Vt(this,16),26),l||ow),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Va(this.Ab,t,a);case 10:return this.Cb&&(a=(f=this.Db>>16,f>=0?rft(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,10,a)}return v=h(Dt((l=h(Vt(this,16),26),l||(At(),ow)),s),65),v.Ij().Lj(this,Za(this),s-fn((At(),ow)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 9:return BK(this,a);case 10:return Hu(this,null,10,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),ow)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),ow)),t,a)},b.gh=function(t){var s,a,l;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l=this.t,l>1||l==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&h(this.Cb,58))}return ul(this,t-fn((At(),ow)),Dt((s=h(Vt(this,16),26),s||ow),t))},b.uh=function(){return At(),ow},D(zt,"EParameterImpl",501),_(97,443,{104:1,91:1,89:1,147:1,191:1,55:1,17:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,97:1,443:1,283:1,113:1,116:1,665:1},wpe),b.Wg=function(t,s,a){var l,f,v,w;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),w=this.t,w>1||w==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&Nc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this);case 18:return Zt(),(this.Bb&la)!=0;case 19:return Zt(),v=Ho(this),!!v&&(v.Bb&la)!=0;case 20:return Zt(),(this.Bb&Bo)!=0;case 21:return s?Ho(this):this.b;case 22:return s?eme(this):Hit(this);case 23:return!this.a&&(this.a=new Yw(nw,this,23)),this.a}return ll(this,t-fn((At(),dx)),Dt((l=h(Vt(this,16),26),l||dx),t),s,a)},b.gh=function(t){var s,a,l,f;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&Nc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this);case 18:return(this.Bb&la)!=0;case 19:return l=Ho(this),!!l&&(l.Bb&la)!=0;case 20:return(this.Bb&Bo)==0;case 21:return!!this.b;case 22:return!!Hit(this);case 23:return!!this.a&&this.a.i!=0}return ul(this,t-fn((At(),dx)),Dt((s=h(Vt(this,16),26),s||dx),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:pY(this,Ln(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:iy(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Ln(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return;case 18:jJt(this,_t(It(s)));return;case 20:Ome(this,_t(It(s)));return;case 21:Dbe(this,h(s,17));return;case 23:!this.a&&(this.a=new Yw(nw,this,23)),Cn(this.a),!this.a&&(this.a=new Yw(nw,this,23)),di(this.a,h(s,15));return}pl(this,t-fn((At(),dx)),Dt((a=h(Vt(this,16),26),a||dx),t),s)},b.uh=function(){return At(),dx},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return;case 18:Pme(this,!1),ue(this.Cb,87)&&my(eu(h(this.Cb,87)),2);return;case 20:Ome(this,!0);return;case 21:Dbe(this,null);return;case 23:!this.a&&(this.a=new Yw(nw,this,23)),Cn(this.a);return}hl(this,t-fn((At(),dx)),Dt((s=h(Vt(this,16),26),s||dx),t))},b.Bh=function(){eme(this),m5(gs((Dc(),vo),this)),$l(this),this.Bb|=1},b.Gj=function(){return Ho(this)},b.lk=function(){var t;return t=Ho(this),!!t&&(t.Bb&la)!=0},b.mk=function(){return(this.Bb&la)!=0},b.nk=function(){return(this.Bb&Bo)!=0},b.ik=function(t,s){return this.c=null,Sme(this,t,s)},b.Ib=function(){var t;return(this.Db&64)!=0?eF(this):(t=new _l(eF(this)),t.a+=" (containment: ",K1(t,(this.Bb&la)!=0),t.a+=", resolveProxies: ",K1(t,(this.Bb&Bo)!=0),t.a+=")",t.a)},D(zt,"EReferenceImpl",97),_(541,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,541:1,113:1,116:1},zBe),b.Fb=function(t){return this===t},b.ad=function(){return this.b},b.bd=function(){return this.c},b.Hb=function(){return Kb(this)},b.Ph=function(t){LYt(this,Ln(t))},b.cd=function(t){return CYt(this,Ln(t))},b.Wg=function(t,s,a){var l;switch(t){case 0:return this.b;case 1:return this.c}return ll(this,t-fn((At(),Vo)),Dt((l=h(Vt(this,16),26),l||Vo),t),s,a)},b.gh=function(t){var s;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return ul(this,t-fn((At(),Vo)),Dt((s=h(Vt(this,16),26),s||Vo),t))},b.nh=function(t,s){var a;switch(t){case 0:FYt(this,Ln(s));return;case 1:Abe(this,Ln(s));return}pl(this,t-fn((At(),Vo)),Dt((a=h(Vt(this,16),26),a||Vo),t),s)},b.uh=function(){return At(),Vo},b.wh=function(t){var s;switch(t){case 0:Tbe(this,null);return;case 1:Abe(this,null);return}hl(this,t-fn((At(),Vo)),Dt((s=h(Vt(this,16),26),s||Vo),t))},b.Nh=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:lp(t)),this.a},b.Oh=function(t){this.a=t},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (key: ",rs(t,this.b),t.a+=", value: ",rs(t,this.c),t.a+=")",t.a)},b.a=-1,b.b=null,b.c=null;var ta=D(zt,"EStringToStringMapEntryImpl",541),MEt=ii(Jr,"FeatureMap/Entry/Internal");_(558,1,fB),b.Jk=function(t){return this.Kk(h(t,48))},b.Kk=function(t){return this.Jk(t)},b.Fb=function(t){var s,a;return this===t?!0:ue(t,71)?(s=h(t,71),s.Xj()==this.c?(a=this.bd(),a==null?s.bd()==null:Ar(a,s.bd())):!1):!1},b.Xj=function(){return this.c},b.Hb=function(){var t;return t=this.bd(),ri(this.c)^(t==null?0:ri(t))},b.Ib=function(){var t,s;return t=this.c,s=Bu(t.Cj()).Kh(),t.ne(),(s!=null&&s.length!=0?s+":"+t.ne():t.ne())+"="+this.bd()},D(zt,"EStructuralFeatureImpl/BasicFeatureMapEntry",558),_(759,558,fB,Ppe),b.Kk=function(t){return new Ppe(this.c,t)},b.bd=function(){return this.a},b.Lk=function(t,s,a){return Hrn(this,t,this.a,s,a)},b.Mk=function(t,s,a){return qrn(this,t,this.a,s,a)},D(zt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",759),_(1285,1,{},sQe),b.Kj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v.il(this.a).Rj(l)},b.Lj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v._k(this.a,l,f)},b.Mj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v.al(this.a,l,f)},b.Nj=function(t,s,a){var l;return l=h(T5(t,this.b),212),l.il(this.a).aj()},b.Oj=function(t,s,a,l){var f;f=h(T5(t,this.b),212),f.il(this.a).Wb(l)},b.Pj=function(t,s,a){return h(T5(t,this.b),212).il(this.a)},b.Qj=function(t,s,a){var l;l=h(T5(t,this.b),212),l.il(this.a).Sj()},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1285),_(88,1,{},Z1,wg,ep,kg),b.Kj=function(t,s,a,l,f){var v;if(v=s.xh(a),v==null&&s.yh(a,v=dF(this,t)),!f)switch(this.e){case 50:case 41:return h(v,580).nj();case 40:return h(v,212).fl()}return v},b.Lj=function(t,s,a,l,f){var v,w;return w=s.xh(a),w==null&&s.yh(a,w=dF(this,t)),v=h(w,67).gk(l,f),v},b.Mj=function(t,s,a,l,f){var v;return v=s.xh(a),v!=null&&(f=h(v,67).hk(l,f)),f},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null&&h(l,76).aj()},b.Oj=function(t,s,a,l){var f;f=h(s.xh(a),76),!f&&s.yh(a,f=dF(this,t)),f.Wb(l)},b.Pj=function(t,s,a){var l,f;return f=s.xh(a),f==null&&s.yh(a,f=dF(this,t)),ue(f,76)?h(f,76):(l=h(s.xh(a),14),new uGe(l))},b.Qj=function(t,s,a){var l;l=h(s.xh(a),76),!l&&s.yh(a,l=dF(this,t)),l.Sj()},b.b=0,b.e=0,D(zt,"EStructuralFeatureImpl/InternalSettingDelegateMany",88),_(495,1,{}),b.Lj=function(t,s,a,l,f){throw ee(new jn)},b.Mj=function(t,s,a,l,f){throw ee(new jn)},b.Pj=function(t,s,a){return new ent(this,t,s,a)};var qh;D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",495),_(1302,1,Ute,ent),b.Rj=function(t){return this.a.Kj(this.c,this.d,this.b,t,!0)},b.aj=function(){return this.a.Nj(this.c,this.d,this.b)},b.Wb=function(t){this.a.Oj(this.c,this.d,this.b,t)},b.Sj=function(){this.a.Qj(this.c,this.d,this.b)},b.b=0,D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1302),_(752,495,{},lge),b.Kj=function(t,s,a,l,f){return ZZ(t,t.$g(),t.Qg())==this.b?this.nk()&&l?$Z(t):t.$g():null},b.Lj=function(t,s,a,l,f){var v,w;return t.$g()&&(f=(v=t.Qg(),v>=0?t.Lg(f):t.$g().dh(t,-1-v,null,f))),w=ti(t.Og(),this.e),t.Ng(l,w,f)},b.Mj=function(t,s,a,l,f){var v;return v=ti(t.Og(),this.e),t.Ng(null,v,f)},b.Nj=function(t,s,a){var l;return l=ti(t.Og(),this.e),!!t.$g()&&t.Qg()==l},b.Oj=function(t,s,a,l){var f,v,w,S,C;if(l!=null&&!nJ(this.a,l))throw ee(new XS(dB+(ue(l,55)?Fve(h(l,55).Og()):fbe(ru(l)))+hB+this.a+"'"));if(f=t.$g(),w=ti(t.Og(),this.e),Pe(l)!==Pe(f)||t.Qg()!=w&&l!=null){if(r6(t,h(l,55)))throw ee(new Gt(bI+t.Ib()));C=null,f&&(C=(v=t.Qg(),v>=0?t.Lg(C):t.$g().dh(t,-1-v,null,C))),S=h(l,48),S&&(C=S.ah(t,ti(S.Og(),this.b),null,C)),C=t.Ng(S,w,C),C&&C.Ai()}else t.Gg()&&t.Hg()&&Tr(t,new Gi(t,1,w,l,l))},b.Qj=function(t,s,a){var l,f,v,w;l=t.$g(),l?(w=(f=t.Qg(),f>=0?t.Lg(null):t.$g().dh(t,-1-f,null,null)),v=ti(t.Og(),this.e),w=t.Ng(null,v,w),w&&w.Ai()):t.Gg()&&t.Hg()&&Tr(t,new ZC(t,1,this.e,null,null))},b.nk=function(){return!1},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",752),_(1286,752,{},WJe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1286),_(556,495,{}),b.Kj=function(t,s,a,l,f){var v;return v=s.xh(a),v==null?this.b:Pe(v)===Pe(qh)?null:v},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null&&(Pe(l)===Pe(qh)||!Ar(l,this.b))},b.Oj=function(t,s,a,l){var f,v;t.Gg()&&t.Hg()?(f=(v=s.xh(a),v==null?this.b:Pe(v)===Pe(qh)?null:v),l==null?this.c!=null?(s.yh(a,null),l=this.b):this.b!=null?s.yh(a,qh):s.yh(a,null):(this.Nk(l),s.yh(a,l)),Tr(t,this.d.Ok(t,1,this.e,f,l))):l==null?this.c!=null?s.yh(a,null):this.b!=null?s.yh(a,qh):s.yh(a,null):(this.Nk(l),s.yh(a,l))},b.Qj=function(t,s,a){var l,f;t.Gg()&&t.Hg()?(l=(f=s.xh(a),f==null?this.b:Pe(f)===Pe(qh)?null:f),s.zh(a),Tr(t,this.d.Ok(t,1,this.e,l,this.b))):s.zh(a)},b.Nk=function(t){throw ee(new yGe)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",556),_(B2,1,{},VBe),b.Ok=function(t,s,a,l,f){return new ZC(t,s,a,l,f)},b.Pk=function(t,s,a,l,f,v){return new eY(t,s,a,l,f,v)};var fIe,dIe,hIe,pIe,gIe,bIe,mIe,moe,vIe;D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",B2),_(1303,B2,{},UBe),b.Ok=function(t,s,a,l,f){return new Nge(t,s,a,_t(It(l)),_t(It(f)))},b.Pk=function(t,s,a,l,f,v){return new Ert(t,s,a,_t(It(l)),_t(It(f)),v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1303),_(1304,B2,{},HBe),b.Ok=function(t,s,a,l,f){return new gbe(t,s,a,h(l,215).a,h(f,215).a)},b.Pk=function(t,s,a,l,f,v){return new brt(t,s,a,h(l,215).a,h(f,215).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1304),_(1305,B2,{},qBe),b.Ok=function(t,s,a,l,f){return new bbe(t,s,a,h(l,172).a,h(f,172).a)},b.Pk=function(t,s,a,l,f,v){return new mrt(t,s,a,h(l,172).a,h(f,172).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1305),_(1306,B2,{},WBe),b.Ok=function(t,s,a,l,f){return new jge(t,s,a,Ae(Ke(l)),Ae(Ke(f)))},b.Pk=function(t,s,a,l,f,v){return new vrt(t,s,a,Ae(Ke(l)),Ae(Ke(f)),v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1306),_(1307,B2,{},GBe),b.Ok=function(t,s,a,l,f){return new ybe(t,s,a,h(l,155).a,h(f,155).a)},b.Pk=function(t,s,a,l,f,v){return new yrt(t,s,a,h(l,155).a,h(f,155).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1307),_(1308,B2,{},XBe),b.Ok=function(t,s,a,l,f){return new Rge(t,s,a,h(l,20).a,h(f,20).a)},b.Pk=function(t,s,a,l,f,v){return new wrt(t,s,a,h(l,20).a,h(f,20).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1308),_(1309,B2,{},KBe),b.Ok=function(t,s,a,l,f){return new mbe(t,s,a,h(l,162).a,h(f,162).a)},b.Pk=function(t,s,a,l,f,v){return new xrt(t,s,a,h(l,162).a,h(f,162).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1309),_(1310,B2,{},YBe),b.Ok=function(t,s,a,l,f){return new vbe(t,s,a,h(l,186).a,h(f,186).a)},b.Pk=function(t,s,a,l,f,v){return new Srt(t,s,a,h(l,186).a,h(f,186).a,v)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1310),_(1288,556,{},rnt),b.Nk=function(t){if(!this.a.rj(t))throw ee(new XS(dB+ru(t)+hB+this.a+"'"))},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1288),_(1289,556,{},Wet),b.Nk=function(t){},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1289),_(753,556,{}),b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null},b.Oj=function(t,s,a,l){var f,v;t.Gg()&&t.Hg()?(f=!0,v=s.xh(a),v==null?(f=!1,v=this.b):Pe(v)===Pe(qh)&&(v=null),l==null?this.c!=null?(s.yh(a,null),l=this.b):s.yh(a,qh):(this.Nk(l),s.yh(a,l)),Tr(t,this.d.Pk(t,1,this.e,v,l,!f))):l==null?this.c!=null?s.yh(a,null):s.yh(a,qh):(this.Nk(l),s.yh(a,l))},b.Qj=function(t,s,a){var l,f;t.Gg()&&t.Hg()?(l=!0,f=s.xh(a),f==null?(l=!1,f=this.b):Pe(f)===Pe(qh)&&(f=null),s.zh(a),Tr(t,this.d.Pk(t,2,this.e,f,this.b,l))):s.zh(a)},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",753),_(1290,753,{},int),b.Nk=function(t){if(!this.a.rj(t))throw ee(new XS(dB+ru(t)+hB+this.a+"'"))},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1290),_(1291,753,{},Get),b.Nk=function(t){},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1291),_(394,495,{},vR),b.Kj=function(t,s,a,l,f){var v,w,S,C,A;if(A=s.xh(a),this.Fj()&&Pe(A)===Pe(qh))return null;if(this.nk()&&l&&A!=null){if(S=h(A,48),S.fh()&&(C=h0(t,S),S!=C)){if(!nJ(this.a,C))throw ee(new XS(dB+ru(C)+hB+this.a+"'"));s.yh(a,A=C),this.mk()&&(v=h(C,48),w=S.dh(t,this.b?ti(S.Og(),this.b):-1-ti(t.Og(),this.e),null,null),!v.$g()&&(w=v.ah(t,this.b?ti(v.Og(),this.b):-1-ti(t.Og(),this.e),null,w)),w&&w.Ai()),t.Gg()&&t.Hg()&&Tr(t,new ZC(t,9,this.e,S,C))}return A}else return A},b.Lj=function(t,s,a,l,f){var v,w;return w=s.xh(a),Pe(w)===Pe(qh)&&(w=null),s.yh(a,l),this.Yi()?Pe(w)!==Pe(l)&&w!=null&&(v=h(w,48),f=v.dh(t,ti(v.Og(),this.b),null,f)):this.mk()&&w!=null&&(f=h(w,48).dh(t,-1-ti(t.Og(),this.e),null,f)),t.Gg()&&t.Hg()&&(!f&&(f=new Gp(4)),f.zi(new ZC(t,1,this.e,w,l))),f},b.Mj=function(t,s,a,l,f){var v;return v=s.xh(a),Pe(v)===Pe(qh)&&(v=null),s.zh(a),t.Gg()&&t.Hg()&&(!f&&(f=new Gp(4)),this.Fj()?f.zi(new ZC(t,2,this.e,v,null)):f.zi(new ZC(t,1,this.e,v,null))),f},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null},b.Oj=function(t,s,a,l){var f,v,w,S,C;if(l!=null&&!nJ(this.a,l))throw ee(new XS(dB+(ue(l,55)?Fve(h(l,55).Og()):fbe(ru(l)))+hB+this.a+"'"));C=s.xh(a),S=C!=null,this.Fj()&&Pe(C)===Pe(qh)&&(C=null),w=null,this.Yi()?Pe(C)!==Pe(l)&&(C!=null&&(f=h(C,48),w=f.dh(t,ti(f.Og(),this.b),null,w)),l!=null&&(f=h(l,48),w=f.ah(t,ti(f.Og(),this.b),null,w))):this.mk()&&Pe(C)!==Pe(l)&&(C!=null&&(w=h(C,48).dh(t,-1-ti(t.Og(),this.e),null,w)),l!=null&&(w=h(l,48).ah(t,-1-ti(t.Og(),this.e),null,w))),l==null&&this.Fj()?s.yh(a,qh):s.yh(a,l),t.Gg()&&t.Hg()?(v=new eY(t,1,this.e,C,l,this.Fj()&&!S),w?(w.zi(v),w.Ai()):Tr(t,v)):w&&w.Ai()},b.Qj=function(t,s,a){var l,f,v,w,S;S=s.xh(a),w=S!=null,this.Fj()&&Pe(S)===Pe(qh)&&(S=null),v=null,S!=null&&(this.Yi()?(l=h(S,48),v=l.dh(t,ti(l.Og(),this.b),null,v)):this.mk()&&(v=h(S,48).dh(t,-1-ti(t.Og(),this.e),null,v))),s.zh(a),t.Gg()&&t.Hg()?(f=new eY(t,this.Fj()?2:1,this.e,S,null,w),v?(v.zi(f),v.Ai()):Tr(t,f)):v&&v.Ai()},b.Yi=function(){return!1},b.mk=function(){return!1},b.nk=function(){return!1},b.Fj=function(){return!1},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",394),_(557,394,{},nK),b.mk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",557),_(1294,557,{},VZe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1294),_(755,557,{},ppe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",755),_(1296,755,{},UZe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1296),_(630,557,{},bK),b.Yi=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",630),_(1295,630,{},GJe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1295),_(756,630,{},Zpe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",756),_(1297,756,{},XJe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1297),_(631,394,{},gpe),b.nk=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",631),_(1298,631,{},qZe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1298),_(757,631,{},Jpe),b.Yi=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",757),_(1299,757,{},KJe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1299),_(1292,394,{},HZe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1292),_(754,394,{},e0e),b.Yi=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",754),_(1293,754,{},YJe),b.Fj=function(){return!0},D(zt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1293),_(758,558,fB,G0e),b.Kk=function(t){return new G0e(this.a,this.c,t)},b.bd=function(){return this.b},b.Lk=function(t,s,a){return Ktn(this,t,this.b,a)},b.Mk=function(t,s,a){return Ytn(this,t,this.b,a)},D(zt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",758),_(1300,1,Ute,uGe),b.Rj=function(t){return this.a},b.aj=function(){return ue(this.a,95)?h(this.a,95).aj():!this.a.dc()},b.Wb=function(t){this.a.$b(),this.a.Ec(h(t,14))},b.Sj=function(){ue(this.a,95)?h(this.a,95).Sj():this.a.$b()},D(zt,"EStructuralFeatureImpl/SettingMany",1300),_(1301,558,fB,fit),b.Jk=function(t){return new sK(($r(),A9),this.b.Dh(this.a,t))},b.bd=function(){return null},b.Lk=function(t,s,a){return a},b.Mk=function(t,s,a){return a},D(zt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1301),_(632,558,fB,sK),b.Jk=function(t){return new sK(this.c,t)},b.bd=function(){return this.a},b.Lk=function(t,s,a){return a},b.Mk=function(t,s,a){return a},D(zt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",632),_(387,489,oh,BS),b.mi=function(t){return ge(Kl,rt,26,t,0,1)},b.ii=function(){return!1},D(zt,"ESuperAdapter/1",387),_(438,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,814:1,48:1,96:1,150:1,438:1,113:1,116:1},OG),b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new XC(this,ns,this)),this.a}return ll(this,t-fn((At(),Jm)),Dt((l=h(Vt(this,16),26),l||Jm),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Mo(this.Ab,t,a);case 2:return!this.a&&(this.a=new XC(this,ns,this)),Mo(this.a,t,a)}return f=h(Dt((l=h(Vt(this,16),26),l||(At(),Jm)),s),65),f.Ij().Mj(this,Za(this),s-fn((At(),Jm)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ul(this,t-fn((At(),Jm)),Dt((s=h(Vt(this,16),26),s||Jm),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(ir,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Ln(s));return;case 2:!this.a&&(this.a=new XC(this,ns,this)),Cn(this.a),!this.a&&(this.a=new XC(this,ns,this)),di(this.a,h(s,15));return}pl(this,t-fn((At(),Jm)),Dt((a=h(Vt(this,16),26),a||Jm),t),s)},b.uh=function(){return At(),Jm},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(ir,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:!this.a&&(this.a=new XC(this,ns,this)),Cn(this.a);return}hl(this,t-fn((At(),Jm)),Dt((s=h(Vt(this,16),26),s||Jm),t))},D(zt,"ETypeParameterImpl",438),_(439,82,_s,XC),b.Zi=function(t,s){return Qln(this,h(t,86),s)},b.$i=function(t,s){return Zln(this,h(t,86),s)},D(zt,"ETypeParameterImpl/1",439),_(624,44,_2,GG),b.ec=function(){return new KN(this)},D(zt,"ETypeParameterImpl/2",624),_(550,md,au,KN),b.Dc=function(t){return bJe(this,h(t,86))},b.Ec=function(t){var s,a,l;for(l=!1,a=t.Ic();a.Ob();)s=h(a.Pb(),86),Fr(this.a,s,"")==null&&(l=!0);return l},b.$b=function(){Gc(this.a)},b.Fc=function(t){return sd(this.a,t)},b.Ic=function(){var t;return t=new Ng(new lg(this.a).a),new YN(t)},b.Kc=function(t){return rot(this,t)},b.gc=function(){return gC(this.a)},D(zt,"ETypeParameterImpl/2/1",550),_(551,1,bo,YN),b.Nb=function(t){wo(this,t)},b.Pb=function(){return h(dm(this.a).ad(),86)},b.Ob=function(){return this.a.b},b.Qb=function(){Not(this.a)},D(zt,"ETypeParameterImpl/2/1/1",551),_(1248,44,_2,ZGe),b._b=function(t){return to(t)?JK(this,t):!!Es(this.f,t)},b.vc=function(t){var s,a;return s=to(t)?Ia(this,t):Gs(Es(this.f,t)),ue(s,815)?(a=h(s,815),s=a.Wj(),Fr(this,h(t,234),s),s):s!=null?s:t==null?(fX(),NEt):null},D(zt,"EValidatorRegistryImpl",1248),_(1284,696,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,1913:1,48:1,96:1,150:1,113:1,116:1},QBe),b.Dh=function(t,s){switch(t.tj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return s==null?null:Fs(s);case 25:return ern(s);case 27:return Enn(s);case 28:return knn(s);case 29:return s==null?null:GQe(S9[0],h(s,198));case 41:return s==null?"":Xp(h(s,289));case 42:return Fs(s);case 50:return Ln(s);default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe;switch(t.G==-1&&(t.G=(z=Bu(t),z?up(z.Hh(),t):-1)),t.G){case 0:return a=new HG,a;case 1:return s=new fde,s;case 2:return l=new gde,l;case 4:return f=new QN,f;case 5:return v=new QGe,v;case 6:return w=new vGe,w;case 7:return S=new pde,S;case 10:return A=new BN,A;case 11:return M=new qG,M;case 12:return R=new dnt,R;case 13:return q=new WG,q;case 14:return W=new wpe,W;case 17:return J=new zBe,J;case 18:return C=new Lb,C;case 19:return oe=new OG,oe;default:throw ee(new Gt(Ite+t.zb+jm))}},b.Fh=function(t,s){switch(t.tj()){case 20:return s==null?null:new Lhe(s);case 21:return s==null?null:new Jp(s);case 23:case 22:return s==null?null:aan(s);case 26:case 24:return s==null?null:zA(Uu(s,-128,127)<<24>>24);case 25:return b1n(s);case 27:return jcn(s);case 28:return Rcn(s);case 29:return ffn(s);case 32:case 31:return s==null?null:gy(s);case 38:case 37:return s==null?null:new ahe(s);case 40:case 39:return s==null?null:Ue(Uu(s,Co,Ir));case 41:return null;case 42:return s==null,null;case 44:case 43:return s==null?null:$g(fF(s));case 49:case 48:return s==null?null:K5(Uu(s,pB,32767)<<16>>16);case 50:return s;default:throw ee(new Gt(_6+t.ne()+jm))}},D(zt,"EcoreFactoryImpl",1284),_(540,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,1911:1,48:1,96:1,150:1,179:1,540:1,113:1,116:1,663:1},jtt),b.gb=!1,b.hb=!1;var yIe,DEt=!1;D(zt,"EcorePackageImpl",540),_(1157,1,{815:1},ZBe),b.Wj=function(){return pZe(),jEt},D(zt,"EcorePackageImpl/1",1157),_(1166,1,ur,JBe),b.rj=function(t){return ue(t,147)},b.sj=function(t){return ge(A_,rt,147,t,0,1)},D(zt,"EcorePackageImpl/10",1166),_(1167,1,ur,eze),b.rj=function(t){return ue(t,191)},b.sj=function(t){return ge(coe,rt,191,t,0,1)},D(zt,"EcorePackageImpl/11",1167),_(1168,1,ur,tze),b.rj=function(t){return ue(t,55)},b.sj=function(t){return ge(B0,rt,55,t,0,1)},D(zt,"EcorePackageImpl/12",1168),_(1169,1,ur,nze),b.rj=function(t){return ue(t,395)},b.sj=function(t){return ge(Yl,i4e,58,t,0,1)},D(zt,"EcorePackageImpl/13",1169),_(1170,1,ur,rze),b.rj=function(t){return ue(t,234)},b.sj=function(t){return ge(Xf,rt,234,t,0,1)},D(zt,"EcorePackageImpl/14",1170),_(1171,1,ur,ize),b.rj=function(t){return ue(t,501)},b.sj=function(t){return ge(Qm,rt,1986,t,0,1)},D(zt,"EcorePackageImpl/15",1171),_(1172,1,ur,oze),b.rj=function(t){return ue(t,97)},b.sj=function(t){return ge(rw,F2,17,t,0,1)},D(zt,"EcorePackageImpl/16",1172),_(1173,1,ur,sze),b.rj=function(t){return ue(t,170)},b.sj=function(t){return ge(wc,F2,170,t,0,1)},D(zt,"EcorePackageImpl/17",1173),_(1174,1,ur,aze),b.rj=function(t){return ue(t,466)},b.sj=function(t){return ge(tw,rt,466,t,0,1)},D(zt,"EcorePackageImpl/18",1174),_(1175,1,ur,cze),b.rj=function(t){return ue(t,541)},b.sj=function(t){return ge(ta,gvt,541,t,0,1)},D(zt,"EcorePackageImpl/19",1175),_(1158,1,ur,uze),b.rj=function(t){return ue(t,321)},b.sj=function(t){return ge(nw,F2,32,t,0,1)},D(zt,"EcorePackageImpl/2",1158),_(1176,1,ur,lze),b.rj=function(t){return ue(t,240)},b.sj=function(t){return ge(ns,Mvt,86,t,0,1)},D(zt,"EcorePackageImpl/20",1176),_(1177,1,ur,fze),b.rj=function(t){return ue(t,438)},b.sj=function(t){return ge(rc,rt,814,t,0,1)},D(zt,"EcorePackageImpl/21",1177),_(1178,1,ur,dze),b.rj=function(t){return Rv(t)},b.sj=function(t){return ge(io,Oe,470,t,8,1)},D(zt,"EcorePackageImpl/22",1178),_(1179,1,ur,hze),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Lc,Oe,190,t,0,2)},D(zt,"EcorePackageImpl/23",1179),_(1180,1,ur,pze),b.rj=function(t){return ue(t,215)},b.sj=function(t){return ge(y4,Oe,215,t,0,1)},D(zt,"EcorePackageImpl/24",1180),_(1181,1,ur,gze),b.rj=function(t){return ue(t,172)},b.sj=function(t){return ge(AI,Oe,172,t,0,1)},D(zt,"EcorePackageImpl/25",1181),_(1182,1,ur,bze),b.rj=function(t){return ue(t,198)},b.sj=function(t){return ge(TB,Oe,198,t,0,1)},D(zt,"EcorePackageImpl/26",1182),_(1183,1,ur,mze),b.rj=function(t){return!1},b.sj=function(t){return ge($Ie,rt,2078,t,0,1)},D(zt,"EcorePackageImpl/27",1183),_(1184,1,ur,vze),b.rj=function(t){return $v(t)},b.sj=function(t){return ge(To,Oe,331,t,7,1)},D(zt,"EcorePackageImpl/28",1184),_(1185,1,ur,yze),b.rj=function(t){return ue(t,57)},b.sj=function(t){return ge(Z8e,Ay,57,t,0,1)},D(zt,"EcorePackageImpl/29",1185),_(1159,1,ur,wze),b.rj=function(t){return ue(t,502)},b.sj=function(t){return ge(ir,{3:1,4:1,5:1,1906:1},581,t,0,1)},D(zt,"EcorePackageImpl/3",1159),_(1186,1,ur,xze),b.rj=function(t){return ue(t,565)},b.sj=function(t){return ge(tIe,rt,1912,t,0,1)},D(zt,"EcorePackageImpl/30",1186),_(1187,1,ur,Sze),b.rj=function(t){return ue(t,152)},b.sj=function(t){return ge(kIe,Ay,152,t,0,1)},D(zt,"EcorePackageImpl/31",1187),_(1188,1,ur,Eze),b.rj=function(t){return ue(t,71)},b.sj=function(t){return ge(VV,zvt,71,t,0,1)},D(zt,"EcorePackageImpl/32",1188),_(1189,1,ur,kze),b.rj=function(t){return ue(t,155)},b.sj=function(t){return ge(L6,Oe,155,t,0,1)},D(zt,"EcorePackageImpl/33",1189),_(1190,1,ur,Cze),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(No,Oe,20,t,0,1)},D(zt,"EcorePackageImpl/34",1190),_(1191,1,ur,Ize),b.rj=function(t){return ue(t,289)},b.sj=function(t){return ge(m4e,rt,289,t,0,1)},D(zt,"EcorePackageImpl/35",1191),_(1192,1,ur,Tze),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(zt,"EcorePackageImpl/36",1192),_(1193,1,ur,Aze),b.rj=function(t){return ue(t,84)},b.sj=function(t){return ge(v4e,rt,84,t,0,1)},D(zt,"EcorePackageImpl/37",1193),_(1194,1,ur,Pze),b.rj=function(t){return ue(t,582)},b.sj=function(t){return ge(wIe,rt,582,t,0,1)},D(zt,"EcorePackageImpl/38",1194),_(1195,1,ur,Oze),b.rj=function(t){return!1},b.sj=function(t){return ge(LIe,rt,2079,t,0,1)},D(zt,"EcorePackageImpl/39",1195),_(1160,1,ur,_ze),b.rj=function(t){return ue(t,87)},b.sj=function(t){return ge(Kl,rt,26,t,0,1)},D(zt,"EcorePackageImpl/4",1160),_(1196,1,ur,Mze),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(zt,"EcorePackageImpl/40",1196),_(1197,1,ur,Dze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(zt,"EcorePackageImpl/41",1197),_(1198,1,ur,Nze),b.rj=function(t){return ue(t,579)},b.sj=function(t){return ge(eIe,rt,579,t,0,1)},D(zt,"EcorePackageImpl/42",1198),_(1199,1,ur,jze),b.rj=function(t){return!1},b.sj=function(t){return ge(FIe,Oe,2080,t,0,1)},D(zt,"EcorePackageImpl/43",1199),_(1200,1,ur,Rze),b.rj=function(t){return ue(t,43)},b.sj=function(t){return ge(eb,bF,43,t,0,1)},D(zt,"EcorePackageImpl/44",1200),_(1161,1,ur,$ze),b.rj=function(t){return ue(t,138)},b.sj=function(t){return ge(Kf,rt,138,t,0,1)},D(zt,"EcorePackageImpl/5",1161),_(1162,1,ur,Lze),b.rj=function(t){return ue(t,148)},b.sj=function(t){return ge(poe,rt,148,t,0,1)},D(zt,"EcorePackageImpl/6",1162),_(1163,1,ur,Fze),b.rj=function(t){return ue(t,450)},b.sj=function(t){return ge(zV,rt,659,t,0,1)},D(zt,"EcorePackageImpl/7",1163),_(1164,1,ur,Bze),b.rj=function(t){return ue(t,565)},b.sj=function(t){return ge(M1,rt,666,t,0,1)},D(zt,"EcorePackageImpl/8",1164),_(1165,1,ur,zze),b.rj=function(t){return ue(t,465)},b.sj=function(t){return ge(x9,rt,465,t,0,1)},D(zt,"EcorePackageImpl/9",1165),_(1013,1955,pvt,pXe),b.Yh=function(t,s){Don(this,h(s,410))},b.ai=function(t,s){wdt(this,t,h(s,410))},D(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1013),_(1014,142,yO,Ptt),b.vi=function(){return this.a.a},D(zt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1014),_(1037,1036,{},VQe),D("org.eclipse.emf.ecore.plugin","EcorePlugin",1037);var wIe=ii(Vvt,"Resource");_(764,1349,Uvt),b.Tk=function(t){},b.Uk=function(t){},b.Qk=function(){return!this.a&&(this.a=new FG(this)),this.a},b.Rk=function(t){var s,a,l,f,v;if(l=t.length,l>0)if(Fn(0,t.length),t.charCodeAt(0)==47){for(v=new Ba(4),f=1,s=1;s0&&(t=t.substr(0,a)));return rhn(this,t)},b.Sk=function(){return this.c},b.Ib=function(){var t;return Xp(this.bm)+"@"+(t=ri(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},b.b=!1,D(Hte,"ResourceImpl",764),_(1350,764,Uvt,lGe),D(Hte,"BinaryResourceImpl",1350),_(1142,687,$te),b.ni=function(t){return ue(t,55)?XZt(this,h(t,55)):ue(t,582)?new pn(h(t,582).Qk()):Pe(t)===Pe(this.f)?h(t,15).Ic():(zC(),__.a)},b.Ob=function(){return Aye(this)},b.a=!1,D(Jr,"EcoreUtil/ContentTreeIterator",1142),_(1351,1142,$te,ott),b.ni=function(t){return Pe(t)===Pe(this.f)?h(t,14).Ic():new Wrt(h(t,55))},D(Hte,"ResourceImpl/5",1351),_(638,1963,_vt,FG),b.Fc=function(t){return this.i<=4?o6(this,t):ue(t,48)&&h(t,48).Ug()==this.a},b.Yh=function(t,s){t==this.i-1&&(this.a.b||(this.a.b=!0))},b.$h=function(t,s){t==0?this.a.b||(this.a.b=!0):_Y(this,t,s)},b.ai=function(t,s){},b.bi=function(t,s,a){},b.Xi=function(){return 2},b.vi=function(){return this.a},b.Yi=function(){return!0},b.Zi=function(t,s){var a;return a=h(t,48),s=a.rh(this.a,s),s},b.$i=function(t,s){var a;return a=h(t,48),a.rh(null,s)},b._i=function(){return!1},b.ci=function(){return!0},b.mi=function(t){return ge(B0,rt,55,t,0,1)},b.ii=function(){return!1},D(Hte,"ResourceImpl/ContentsEList",638),_(963,1936,E6,fGe),b.Xc=function(t){return this.a.Wh(t)},b.gc=function(){return this.a.gc()},D(Jr,"AbstractSequentialInternalEList/1",963);var xIe,SIe,vo,EIe;_(614,1,{},set);var UV,HV;D(Jr,"BasicExtendedMetaData",614),_(1133,1,{},cQe),b.Vk=function(){return null},b.Wk=function(){return this.a==-2&&qUt(this,hfn(this.d,this.b)),this.a},b.Xk=function(){return null},b.Yk=function(){return Mt(),Mt(),qo},b.ne=function(){return this.c==N6&&GUt(this,Jut(this.d,this.b)),this.c},b.Zk=function(){return 0},b.a=-2,b.c=N6,D(Jr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1133),_(1134,1,{},Crt),b.Vk=function(){return this.a==(k5(),UV)&&WUt(this,vpn(this.f,this.b)),this.a},b.Wk=function(){return 0},b.Xk=function(){return this.c==(k5(),UV)&&XUt(this,ypn(this.f,this.b)),this.c},b.Yk=function(){return!this.d&&KUt(this,ygn(this.f,this.b)),this.d},b.ne=function(){return this.e==N6&&YUt(this,Jut(this.f,this.b)),this.e},b.Zk=function(){return this.g==-2&&ZUt(this,_ln(this.f,this.b)),this.g},b.e=N6,b.g=-2,D(Jr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1134),_(1132,1,{},uQe),b.b=!1,b.c=!1,D(Jr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1132),_(1135,1,{},Irt),b.c=-2,b.e=N6,b.f=N6,D(Jr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1135),_(576,612,_s,dR),b.Xi=function(){return this.c},b.Ak=function(){return!1},b.gi=function(t,s){return s},b.c=0,D(Jr,"EDataTypeEList",576);var kIe=ii(Jr,"FeatureMap");_(75,576,{3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,76:1,152:1,212:1,1909:1,67:1,95:1},hi),b.Tc=function(t,s){apn(this,t,h(s,71))},b.Dc=function(t){return R1n(this,h(t,71))},b.Th=function(t){jQt(this,h(t,71))},b.Zi=function(t,s){return bXt(this,h(t,71),s)},b.$i=function(t,s){return Upe(this,h(t,71),s)},b.di=function(t,s){return Ngn(this,t,s)},b.gi=function(t,s){return uvn(this,t,h(s,71))},b.Zc=function(t,s){return e0n(this,t,h(s,71))},b.ej=function(t,s){return mXt(this,h(t,71),s)},b.fj=function(t,s){return jJe(this,h(t,71),s)},b.gj=function(t,s,a){return gln(this,h(t,71),h(s,71),a)},b.ji=function(t,s){return wZ(this,t,h(s,71))},b.$k=function(t,s){return mwe(this,t,s)},b.Uc=function(t,s){var a,l,f,v,w,S,C,A,M;for(A=new fm(s.gc()),f=s.Ic();f.Ob();)if(l=h(f.Pb(),71),v=l.Xj(),w1(this.e,v))(!v.ci()||!a$(this,v,l.bd())&&!o6(A,l))&&On(A,l);else{for(M=ec(this.e.Og(),v),a=h(this.g,118),w=!0,S=0;S=0;)if(s=t[this.c],this.k.ml(s.Xj()))return this.j=this.f?s:s.bd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},D(Jr,"BasicFeatureMap/FeatureEIterator",405),_(650,405,jh,BX),b.Gk=function(){return!0},D(Jr,"BasicFeatureMap/ResolvingFeatureEIterator",650),_(961,481,uB,QQe),b.Bi=function(){return this},D(Jr,"EContentsEList/1",961),_(962,481,uB,EQe),b.Gk=function(){return!1},D(Jr,"EContentsEList/2",962),_(960,277,lB,ZQe),b.Ik=function(t){},b.Ob=function(){return!1},b.Sb=function(){return!1},D(Jr,"EContentsEList/FeatureIteratorImpl/1",960),_(804,576,_s,H1e),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EDataTypeEList/Unsettable",804),_(1821,576,_s,oZe),b.ci=function(){return!0},D(Jr,"EDataTypeUniqueEList",1821),_(1822,804,_s,sZe),b.ci=function(){return!0},D(Jr,"EDataTypeUniqueEList/Unsettable",1822),_(139,82,_s,Tc),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentEList/Resolving",139),_(1136,538,_s,aZe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentEList/Unsettable/Resolving",1136),_(731,16,_s,Npe),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectContainmentWithInverseEList/Unsettable",731),_(1146,731,_s,vJe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1146),_(726,488,_s,q1e),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectEList/Unsettable",726),_(326,488,_s,Yw),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectResolvingEList",326),_(1611,726,_s,cZe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectResolvingEList/Unsettable",1611),_(1352,1,{},Vze);var NEt;D(Jr,"EObjectValidator",1352),_(539,488,_s,OR),b.uk=function(){return this.d},b.vk=function(){return this.b},b.Yi=function(){return!0},b.yk=function(){return!0},b.b=0,D(Jr,"EObjectWithInverseEList",539),_(1149,539,_s,yJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseEList/ManyInverse",1149),_(615,539,_s,aK),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectWithInverseEList/Unsettable",615),_(1148,615,_s,wJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseEList/Unsettable/ManyInverse",1148),_(732,539,_s,jpe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectWithInverseResolvingEList",732),_(33,732,_s,Ht),b.xk=function(){return!0},D(Jr,"EObjectWithInverseResolvingEList/ManyInverse",33),_(733,615,_s,Rpe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectWithInverseResolvingEList/Unsettable",733),_(1147,733,_s,xJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1147),_(1137,612,_s),b.Xh=function(){return(this.b&1792)==0},b.Zh=function(){this.b|=1},b.wk=function(){return(this.b&4)!=0},b.Yi=function(){return(this.b&40)!=0},b.xk=function(){return(this.b&16)!=0},b.yk=function(){return(this.b&8)!=0},b.zk=function(){return(this.b&jy)!=0},b.mk=function(){return(this.b&32)!=0},b.Ak=function(){return(this.b&mf)!=0},b.rj=function(t){return this.d?nit(this.d,t):this.Xj().Tj().rj(t)},b.aj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},b.ci=function(){return(this.b&128)!=0},b.Sj=function(){var t;Cn(this),(this.b&2)!=0&&(bu(this.e)?(t=(this.b&1)!=0,this.b&=-2,WS(this,new df(this.e,2,ti(this.e.Og(),this.Xj()),t,!1))):this.b&=-2)},b.ii=function(){return(this.b&1536)==0},b.b=0,D(Jr,"EcoreEList/Generic",1137),_(1138,1137,_s,mnt),b.Xj=function(){return this.a},D(Jr,"EcoreEList/Dynamic",1138),_(730,60,oh,Kde),b.mi=function(t){return WA(this.a.a,t)},D(Jr,"EcoreEMap/1",730),_(729,82,_s,M0e),b.Yh=function(t,s){TL(this.b,h(s,133))},b.$h=function(t,s){Kat(this.b)},b._h=function(t,s,a){var l;++(l=this.b,h(s,133),l).e},b.ai=function(t,s){AQ(this.b,h(s,133))},b.bi=function(t,s,a){AQ(this.b,h(a,133)),Pe(a)===Pe(s)&&h(a,133).Oh(TWt(h(s,133).ad())),TL(this.b,h(s,133))},D(Jr,"EcoreEMap/DelegateEObjectContainmentEList",729),_(1144,143,r4e,iat),D(Jr,"EcoreEMap/Unsettable",1144),_(1145,729,_s,SJe),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Tr(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1145),_(1141,226,_2,gtt),b.a=!1,b.b=!1,D(Jr,"EcoreUtil/Copier",1141),_(728,1,bo,Wrt),b.Nb=function(t){wo(this,t)},b.Ob=function(){return jut(this)},b.Pb=function(){var t;return jut(this),t=this.b,this.b=null,t},b.Qb=function(){this.a.Qb()},D(Jr,"EcoreUtil/ProperContentIterator",728),_(1353,1352,{},$Ue);var jEt;D(Jr,"EcoreValidator",1353);var REt;ii(Jr,"FeatureMapUtil/Validator"),_(1234,1,{1914:1},qze),b.ml=function(t){return!0},D(Jr,"FeatureMapUtil/1",1234),_(740,1,{1914:1},Wwe),b.ml=function(t){var s;return this.c==t?!0:(s=It(Hn(this.a,t)),s==null?Z0n(this,t)?(Kit(this.a,t,(Zt(),$6)),!0):(Kit(this.a,t,(Zt(),tb)),!1):s==(Zt(),$6))},b.e=!1;var voe;D(Jr,"FeatureMapUtil/BasicValidator",740),_(741,44,_2,W1e),D(Jr,"FeatureMapUtil/BasicValidator/Cache",741),_(492,51,{19:1,28:1,51:1,15:1,14:1,57:1,76:1,67:1,95:1},QT),b.Tc=function(t,s){Zht(this.c,this.b,t,s)},b.Dc=function(t){return mwe(this.c,this.b,t)},b.Uc=function(t,s){return amn(this.c,this.b,t,s)},b.Ec=function(t){return $C(this,t)},b.Sh=function(t,s){Hnn(this.c,this.b,t,s)},b.gk=function(t,s){return fwe(this.c,this.b,t,s)},b.ki=function(t){return oF(this.c,this.b,t,!1)},b.Uh=function(){return NQe(this.c,this.b)},b.Vh=function(){return hWt(this.c,this.b)},b.Wh=function(t){return Xtn(this.c,this.b,t)},b.hk=function(t,s){return JZe(this,t,s)},b.$b=function(){b3(this)},b.Fc=function(t){return a$(this.c,this.b,t)},b.Gc=function(t){return Wrn(this.c,this.b,t)},b.Xb=function(t){return oF(this.c,this.b,t,!0)},b.Rj=function(t){return this},b.Vc=function(t){return rtn(this.c,this.b,t)},b.dc=function(){return Fj(this)},b.aj=function(){return!pP(this.c,this.b)},b.Ic=function(){return Mnn(this.c,this.b)},b.Wc=function(){return Dnn(this.c,this.b)},b.Xc=function(t){return Hon(this.c,this.b,t)},b.di=function(t,s){return bpt(this.c,this.b,t,s)},b.ei=function(t,s){Btn(this.c,this.b,t,s)},b.Yc=function(t){return rdt(this.c,this.b,t)},b.Kc=function(t){return Sgn(this.c,this.b,t)},b.Zc=function(t,s){return Ept(this.c,this.b,t,s)},b.Wb=function(t){VL(this.c,this.b),$C(this,h(t,14))},b.gc=function(){return Jon(this.c,this.b)},b.Nc=function(){return den(this.c,this.b)},b.Oc=function(t){return itn(this.c,this.b,t)},b.Ib=function(){var t,s;for(s=new X1,s.a+="[",t=NQe(this.c,this.b);vQ(t);)rs(s,eA(CL(t))),vQ(t)&&(s.a+=Fo);return s.a+="]",s.a},b.Sj=function(){VL(this.c,this.b)},D(Jr,"FeatureMapUtil/FeatureEList",492),_(619,35,yO,SY),b.ti=function(t){return C8(this,t)},b.yi=function(t){var s,a,l,f,v,w,S;switch(this.d){case 1:case 2:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.g=t.ui(),t.si()==1&&(this.d=1),!0;break}case 3:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=5,s=new fm(2),On(s,this.g),On(s,t.ui()),this.g=s,!0;break}}break}case 5:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return a=h(this.g,15),a.Dc(t.ui()),!0;break}}break}case 4:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=1,this.g=t.ui(),!0;break}case 4:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=6,S=new fm(2),On(S,this.n),On(S,t.wi()),this.n=S,w=re(te(An,1),nr,24,15,[this.o,t.xi()]),this.g=w,!0;break}}break}case 6:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return a=h(this.n,15),a.Dc(t.wi()),w=h(this.g,47),l=ge(An,nr,24,w.length+1,15,1),xa(w,0,l,0,w.length),l[w.length]=t.xi(),this.g=l,!0;break}}break}}return!1},D(Jr,"FeatureMapUtil/FeatureENotificationImpl",619),_(547,492,{19:1,28:1,51:1,15:1,14:1,57:1,76:1,152:1,212:1,1909:1,67:1,95:1},gR),b.$k=function(t,s){return mwe(this.c,t,s)},b._k=function(t,s,a){return fwe(this.c,t,s,a)},b.al=function(t,s,a){return Nwe(this.c,t,s,a)},b.bl=function(){return this},b.cl=function(t,s){return HP(this.c,t,s)},b.dl=function(t){return h(oF(this.c,this.b,t,!1),71).Xj()},b.el=function(t){return h(oF(this.c,this.b,t,!1),71).bd()},b.fl=function(){return this.a},b.gl=function(t){return!pP(this.c,t)},b.hl=function(t,s){sF(this.c,t,s)},b.il=function(t){return uat(this.c,t)},b.jl=function(t){Rlt(this.c,t)},D(Jr,"FeatureMapUtil/FeatureFeatureMap",547),_(1233,1,Ute,aQe),b.Rj=function(t){return oF(this.b,this.a,-1,t)},b.aj=function(){return!pP(this.b,this.a)},b.Wb=function(t){sF(this.b,this.a,t)},b.Sj=function(){VL(this.b,this.a)},D(Jr,"FeatureMapUtil/FeatureValue",1233);var q4,yoe,woe,W4,$Et,D_=ii(vB,"AnyType");_(654,59,S1,tX),D(vB,"InvalidDatatypeValueException",654);var qV=ii(vB,qvt),N_=ii(vB,Wvt),CIe=ii(vB,Gvt),LEt,da,IIe,gb,FEt,BEt,zEt,VEt,UEt,HEt,qEt,WEt,GEt,XEt,KEt,hx,YEt,px,I9,QEt,ev,j_,R_,ZEt,T9,A9;_(809,498,{104:1,91:1,89:1,55:1,48:1,96:1,822:1},ghe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.c&&(this.c=new hi(this,0)),this.c):(!this.c&&(this.c=new hi(this,0)),this.c.b);case 1:return a?(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)):(!this.c&&(this.c=new hi(this,0)),h(h(Ta(this.c,($r(),gb)),152),212)).fl();case 2:return a?(!this.b&&(this.b=new hi(this,2)),this.b):(!this.b&&(this.b=new hi(this,2)),this.b.b)}return ll(this,t-fn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.eh=function(t,s,a){var l;switch(s){case 0:return!this.c&&(this.c=new hi(this,0)),BP(this.c,t,a);case 1:return(!this.c&&(this.c=new hi(this,0)),h(h(Ta(this.c,($r(),gb)),152),67)).hk(t,a);case 2:return!this.b&&(this.b=new hi(this,2)),BP(this.b,t,a)}return l=h(Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),s),65),l.Ij().Mj(this,abe(this),s-fn(this.uh()),t,a)},b.gh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)).dc();case 2:return!!this.b&&this.b.i!=0}return ul(this,t-fn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),yA(this.c,s);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(h(Ta(this.c,($r(),gb)),152),212)).Wb(s);return;case 2:!this.b&&(this.b=new hi(this,2)),yA(this.b,s);return}pl(this,t-fn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),IIe},b.wh=function(t){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),Cn(this.c);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)).$b();return;case 2:!this.b&&(this.b=new hi(this,2)),Cn(this.b);return}hl(this,t-fn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (mixed: ",DC(t,this.c),t.a+=", anyAttribute: ",DC(t,this.b),t.a+=")",t.a)},D(Ai,"AnyTypeImpl",809),_(655,498,{104:1,91:1,89:1,55:1,48:1,96:1,1990:1,655:1},Wze),b.Wg=function(t,s,a){switch(t){case 0:return this.a;case 1:return this.b}return ll(this,t-fn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.gh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return ul(this,t-fn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:iHt(this,Ln(s));return;case 1:sHt(this,Ln(s));return}pl(this,t-fn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),hx},b.wh=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}hl(this,t-fn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (data: ",rs(t,this.a),t.a+=", target: ",rs(t,this.b),t.a+=")",t.a)},b.a=null,b.b=null,D(Ai,"ProcessingInstructionImpl",655),_(656,809,{104:1,91:1,89:1,55:1,48:1,96:1,822:1,1991:1,656:1},eXe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.c&&(this.c=new hi(this,0)),this.c):(!this.c&&(this.c=new hi(this,0)),this.c.b);case 1:return a?(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)):(!this.c&&(this.c=new hi(this,0)),h(h(Ta(this.c,($r(),gb)),152),212)).fl();case 2:return a?(!this.b&&(this.b=new hi(this,2)),this.b):(!this.b&&(this.b=new hi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new hi(this,0)),Ln(HP(this.c,($r(),I9),!0));case 4:return Fpe(this.a,(!this.c&&(this.c=new hi(this,0)),Ln(HP(this.c,($r(),I9),!0))));case 5:return this.a}return ll(this,t-fn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.gh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new hi(this,0)),Ln(HP(this.c,($r(),I9),!0))!=null;case 4:return Fpe(this.a,(!this.c&&(this.c=new hi(this,0)),Ln(HP(this.c,($r(),I9),!0))))!=null;case 5:return!!this.a}return ul(this,t-fn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),yA(this.c,s);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(h(Ta(this.c,($r(),gb)),152),212)).Wb(s);return;case 2:!this.b&&(this.b=new hi(this,2)),yA(this.b,s);return;case 3:wge(this,Ln(s));return;case 4:wge(this,Lpe(this.a,s));return;case 5:oHt(this,h(s,148));return}pl(this,t-fn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),px},b.wh=function(t){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),Cn(this.c);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(Ta(this.c,($r(),gb)),152)).$b();return;case 2:!this.b&&(this.b=new hi(this,2)),Cn(this.b);return;case 3:!this.c&&(this.c=new hi(this,0)),sF(this.c,($r(),I9),null);return;case 4:wge(this,Lpe(this.a,null));return;case 5:this.a=null;return}hl(this,t-fn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t))},D(Ai,"SimpleAnyTypeImpl",656),_(657,498,{104:1,91:1,89:1,55:1,48:1,96:1,1992:1,657:1},JGe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.a&&(this.a=new hi(this,0)),this.a):(!this.a&&(this.a=new hi(this,0)),this.a.b);case 1:return a?(!this.b&&(this.b=new tu((At(),Vo),ta,this,1)),this.b):(!this.b&&(this.b=new tu((At(),Vo),ta,this,1)),DA(this.b));case 2:return a?(!this.c&&(this.c=new tu((At(),Vo),ta,this,2)),this.c):(!this.c&&(this.c=new tu((At(),Vo),ta,this,2)),DA(this.c));case 3:return!this.a&&(this.a=new hi(this,0)),Ta(this.a,($r(),j_));case 4:return!this.a&&(this.a=new hi(this,0)),Ta(this.a,($r(),R_));case 5:return!this.a&&(this.a=new hi(this,0)),Ta(this.a,($r(),T9));case 6:return!this.a&&(this.a=new hi(this,0)),Ta(this.a,($r(),A9))}return ll(this,t-fn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.eh=function(t,s,a){var l;switch(s){case 0:return!this.a&&(this.a=new hi(this,0)),BP(this.a,t,a);case 1:return!this.b&&(this.b=new tu((At(),Vo),ta,this,1)),sR(this.b,t,a);case 2:return!this.c&&(this.c=new tu((At(),Vo),ta,this,2)),sR(this.c,t,a);case 5:return!this.a&&(this.a=new hi(this,0)),JZe(Ta(this.a,($r(),T9)),t,a)}return l=h(Dt((this.j&2)==0?($r(),ev):(!this.k&&(this.k=new Of),this.k).Zj(),s),65),l.Ij().Mj(this,abe(this),s-fn(($r(),ev)),t,a)},b.gh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new hi(this,0)),!Fj(Ta(this.a,($r(),j_)));case 4:return!this.a&&(this.a=new hi(this,0)),!Fj(Ta(this.a,($r(),R_)));case 5:return!this.a&&(this.a=new hi(this,0)),!Fj(Ta(this.a,($r(),T9)));case 6:return!this.a&&(this.a=new hi(this,0)),!Fj(Ta(this.a,($r(),A9)))}return ul(this,t-fn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.a&&(this.a=new hi(this,0)),yA(this.a,s);return;case 1:!this.b&&(this.b=new tu((At(),Vo),ta,this,1)),q$(this.b,s);return;case 2:!this.c&&(this.c=new tu((At(),Vo),ta,this,2)),q$(this.c,s);return;case 3:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),j_))),!this.a&&(this.a=new hi(this,0)),$C(Ta(this.a,j_),h(s,15));return;case 4:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),R_))),!this.a&&(this.a=new hi(this,0)),$C(Ta(this.a,R_),h(s,15));return;case 5:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),T9))),!this.a&&(this.a=new hi(this,0)),$C(Ta(this.a,T9),h(s,15));return;case 6:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),A9))),!this.a&&(this.a=new hi(this,0)),$C(Ta(this.a,A9),h(s,15));return}pl(this,t-fn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),ev},b.wh=function(t){switch(t){case 0:!this.a&&(this.a=new hi(this,0)),Cn(this.a);return;case 1:!this.b&&(this.b=new tu((At(),Vo),ta,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new tu((At(),Vo),ta,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),j_)));return;case 4:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),R_)));return;case 5:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),T9)));return;case 6:!this.a&&(this.a=new hi(this,0)),b3(Ta(this.a,($r(),A9)));return}hl(this,t-fn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (mixed: ",DC(t,this.a),t.a+=")",t.a)},D(Ai,"XMLTypeDocumentRootImpl",657),_(1891,696,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1,1993:1},Hze),b.Dh=function(t,s){switch(t.tj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return s==null?null:Fs(s);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ln(s);case 6:return TGt(h(s,190));case 12:case 47:case 49:case 11:return d0t(this,t,s);case 13:return s==null?null:Kbn(h(s,239));case 15:case 14:return s==null?null:IQt(Ae(Ke(s)));case 17:return bft(($r(),s));case 18:return bft(s);case 21:case 20:return s==null?null:TQt(h(s,155).a);case 27:return AGt(h(s,190));case 30:return $lt(($r(),h(s,14)));case 31:return $lt(h(s,14));case 40:return OGt(($r(),s));case 42:return mft(($r(),s));case 43:return mft(s);case 59:case 48:return PGt(($r(),s));default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v;switch(t.G==-1&&(t.G=(a=Bu(t),a?up(a.Hh(),t):-1)),t.G){case 0:return s=new ghe,s;case 1:return l=new Wze,l;case 2:return f=new eXe,f;case 3:return v=new JGe,v;default:throw ee(new Gt(Ite+t.zb+jm))}},b.Fh=function(t,s){var a,l,f,v,w,S,C,A,M,R,z,q,W,J,oe,de;switch(t.tj()){case 5:case 52:case 4:return s;case 6:return Dan(s);case 8:case 7:return s==null?null:Eln(s);case 9:return s==null?null:zA(Uu((l=_a(s,!0),l.length>0&&(Fn(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l),-128,127)<<24>>24);case 10:return s==null?null:zA(Uu((f=_a(s,!0),f.length>0&&(Fn(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),-128,127)<<24>>24);case 11:return Ln(Am(this,($r(),zEt),s));case 12:return Ln(Am(this,($r(),VEt),s));case 13:return s==null?null:new Lhe(_a(s,!0));case 15:case 14:return B1n(s);case 16:return Ln(Am(this,($r(),UEt),s));case 17:return Vut(($r(),s));case 18:return Vut(s);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return _a(s,!0);case 21:case 20:return X1n(s);case 22:return Ln(Am(this,($r(),HEt),s));case 23:return Ln(Am(this,($r(),qEt),s));case 24:return Ln(Am(this,($r(),WEt),s));case 25:return Ln(Am(this,($r(),GEt),s));case 26:return Ln(Am(this,($r(),XEt),s));case 27:return Can(s);case 30:return Uut(($r(),s));case 31:return Uut(s);case 32:return s==null?null:Ue(Uu((M=_a(s,!0),M.length>0&&(Fn(0,M.length),M.charCodeAt(0)==43)?M.substr(1):M),Co,Ir));case 33:return s==null?null:new Jp((R=_a(s,!0),R.length>0&&(Fn(0,R.length),R.charCodeAt(0)==43)?R.substr(1):R));case 34:return s==null?null:Ue(Uu((z=_a(s,!0),z.length>0&&(Fn(0,z.length),z.charCodeAt(0)==43)?z.substr(1):z),Co,Ir));case 36:return s==null?null:$g(fF((q=_a(s,!0),q.length>0&&(Fn(0,q.length),q.charCodeAt(0)==43)?q.substr(1):q)));case 37:return s==null?null:$g(fF((W=_a(s,!0),W.length>0&&(Fn(0,W.length),W.charCodeAt(0)==43)?W.substr(1):W)));case 40:return Gsn(($r(),s));case 42:return Hut(($r(),s));case 43:return Hut(s);case 44:return s==null?null:new Jp((J=_a(s,!0),J.length>0&&(Fn(0,J.length),J.charCodeAt(0)==43)?J.substr(1):J));case 45:return s==null?null:new Jp((oe=_a(s,!0),oe.length>0&&(Fn(0,oe.length),oe.charCodeAt(0)==43)?oe.substr(1):oe));case 46:return _a(s,!1);case 47:return Ln(Am(this,($r(),KEt),s));case 59:case 48:return Wsn(($r(),s));case 49:return Ln(Am(this,($r(),YEt),s));case 50:return s==null?null:K5(Uu((de=_a(s,!0),de.length>0&&(Fn(0,de.length),de.charCodeAt(0)==43)?de.substr(1):de),pB,32767)<<16>>16);case 51:return s==null?null:K5(Uu((v=_a(s,!0),v.length>0&&(Fn(0,v.length),v.charCodeAt(0)==43)?v.substr(1):v),pB,32767)<<16>>16);case 53:return Ln(Am(this,($r(),QEt),s));case 55:return s==null?null:K5(Uu((w=_a(s,!0),w.length>0&&(Fn(0,w.length),w.charCodeAt(0)==43)?w.substr(1):w),pB,32767)<<16>>16);case 56:return s==null?null:K5(Uu((S=_a(s,!0),S.length>0&&(Fn(0,S.length),S.charCodeAt(0)==43)?S.substr(1):S),pB,32767)<<16>>16);case 57:return s==null?null:$g(fF((C=_a(s,!0),C.length>0&&(Fn(0,C.length),C.charCodeAt(0)==43)?C.substr(1):C)));case 58:return s==null?null:$g(fF((A=_a(s,!0),A.length>0&&(Fn(0,A.length),A.charCodeAt(0)==43)?A.substr(1):A)));case 60:return s==null?null:Ue(Uu((a=_a(s,!0),a.length>0&&(Fn(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a),Co,Ir));case 61:return s==null?null:Ue(Uu(_a(s,!0),Co,Ir));default:throw ee(new Gt(_6+t.ne()+jm))}};var JEt,TIe,ekt,AIe;D(Ai,"XMLTypeFactoryImpl",1891),_(577,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1,1917:1,577:1},Rtt),b.N=!1,b.O=!1;var tkt=!1;D(Ai,"XMLTypePackageImpl",577),_(1824,1,{815:1},Gze),b.Wj=function(){return Cwe(),lkt},D(Ai,"XMLTypePackageImpl/1",1824),_(1833,1,ur,Uze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/10",1833),_(1834,1,ur,Xze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/11",1834),_(1835,1,ur,Kze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/12",1835),_(1836,1,ur,Yze),b.rj=function(t){return $v(t)},b.sj=function(t){return ge(To,Oe,331,t,7,1)},D(Ai,"XMLTypePackageImpl/13",1836),_(1837,1,ur,Qze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/14",1837),_(1838,1,ur,Zze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/15",1838),_(1839,1,ur,Jze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/16",1839),_(1840,1,ur,eVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/17",1840),_(1841,1,ur,tVe),b.rj=function(t){return ue(t,155)},b.sj=function(t){return ge(L6,Oe,155,t,0,1)},D(Ai,"XMLTypePackageImpl/18",1841),_(1842,1,ur,nVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/19",1842),_(1825,1,ur,rVe),b.rj=function(t){return ue(t,822)},b.sj=function(t){return ge(D_,rt,822,t,0,1)},D(Ai,"XMLTypePackageImpl/2",1825),_(1843,1,ur,iVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/20",1843),_(1844,1,ur,oVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/21",1844),_(1845,1,ur,sVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/22",1845),_(1846,1,ur,aVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/23",1846),_(1847,1,ur,cVe),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Lc,Oe,190,t,0,2)},D(Ai,"XMLTypePackageImpl/24",1847),_(1848,1,ur,uVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/25",1848),_(1849,1,ur,lVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/26",1849),_(1850,1,ur,fVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/27",1850),_(1851,1,ur,dVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/28",1851),_(1852,1,ur,hVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/29",1852),_(1826,1,ur,pVe),b.rj=function(t){return ue(t,655)},b.sj=function(t){return ge(qV,rt,1990,t,0,1)},D(Ai,"XMLTypePackageImpl/3",1826),_(1853,1,ur,gVe),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(No,Oe,20,t,0,1)},D(Ai,"XMLTypePackageImpl/30",1853),_(1854,1,ur,bVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/31",1854),_(1855,1,ur,mVe),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(Ai,"XMLTypePackageImpl/32",1855),_(1856,1,ur,vVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/33",1856),_(1857,1,ur,yVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/34",1857),_(1858,1,ur,wVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/35",1858),_(1859,1,ur,xVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/36",1859),_(1860,1,ur,SVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/37",1860),_(1861,1,ur,EVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ai,"XMLTypePackageImpl/38",1861),_(1862,1,ur,kVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/39",1862),_(1827,1,ur,CVe),b.rj=function(t){return ue(t,656)},b.sj=function(t){return ge(N_,rt,1991,t,0,1)},D(Ai,"XMLTypePackageImpl/4",1827),_(1863,1,ur,IVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/40",1863),_(1864,1,ur,TVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/41",1864),_(1865,1,ur,AVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/42",1865),_(1866,1,ur,PVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/43",1866),_(1867,1,ur,OVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/44",1867),_(1868,1,ur,_Ve),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(Ai,"XMLTypePackageImpl/45",1868),_(1869,1,ur,MVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/46",1869),_(1870,1,ur,DVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/47",1870),_(1871,1,ur,NVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/48",1871),_(1872,1,ur,jVe),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(Ai,"XMLTypePackageImpl/49",1872),_(1828,1,ur,RVe),b.rj=function(t){return ue(t,657)},b.sj=function(t){return ge(CIe,rt,1992,t,0,1)},D(Ai,"XMLTypePackageImpl/5",1828),_(1873,1,ur,$Ve),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(Ai,"XMLTypePackageImpl/50",1873),_(1874,1,ur,LVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/51",1874),_(1875,1,ur,FVe),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(No,Oe,20,t,0,1)},D(Ai,"XMLTypePackageImpl/52",1875),_(1829,1,ur,BVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Ze,Oe,2,t,6,1)},D(Ai,"XMLTypePackageImpl/6",1829),_(1830,1,ur,zVe),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Lc,Oe,190,t,0,2)},D(Ai,"XMLTypePackageImpl/7",1830),_(1831,1,ur,VVe),b.rj=function(t){return Rv(t)},b.sj=function(t){return ge(io,Oe,470,t,8,1)},D(Ai,"XMLTypePackageImpl/8",1831),_(1832,1,ur,UVe),b.rj=function(t){return ue(t,215)},b.sj=function(t){return ge(y4,Oe,215,t,0,1)},D(Ai,"XMLTypePackageImpl/9",1832);var Od,_p,P9,WV,se;_(50,59,S1,$n),D(mp,"RegEx/ParseException",50),_(799,1,{},dde),b.nl=function(t){return ta*16)throw ee(new $n(Gn((Nn(),ivt))));a=a*16+f}while(!0);if(this.a!=125)throw ee(new $n(Gn((Nn(),ovt))));if(a>j6)throw ee(new $n(Gn((Nn(),svt))));t=a}else{if(f=0,this.c!=0||(f=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(a=f,wr(this),this.c!=0||(f=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));a=a*16+f,t=a}break;case 117:if(l=0,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));s=s*16+l,t=s;break;case 118:if(wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,wr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new $n(Gn((Nn(),bp))));if(s=s*16+l,s>j6)throw ee(new $n(Gn((Nn(),"parser.descappe.4"))));t=s;break;case 65:case 90:case 122:throw ee(new $n(Gn((Nn(),avt))))}return t},b.pl=function(t){var s,a;switch(t){case 100:a=(this.e&32)==32?y0("Nd",!0):(Er(),GV);break;case 68:a=(this.e&32)==32?y0("Nd",!1):(Er(),NIe);break;case 119:a=(this.e&32)==32?y0("IsWord",!0):(Er(),IE);break;case 87:a=(this.e&32)==32?y0("IsWord",!1):(Er(),RIe);break;case 115:a=(this.e&32)==32?y0("IsSpace",!0):(Er(),G4);break;case 83:a=(this.e&32)==32?y0("IsSpace",!1):(Er(),jIe);break;default:throw ee(new qs((s=t,ayt+s.toString(16))))}return a},b.ql=function(t){var s,a,l,f,v,w,S,C,A,M,R,z;for(this.b=1,wr(this),s=null,this.c==0&&this.a==94?(wr(this),t?M=(Er(),Er(),new Lu(5)):(s=(Er(),Er(),new Lu(4)),Oa(s,0,j6),M=new Lu(4))):M=(Er(),Er(),new Lu(4)),f=!0;(z=this.c)!=1&&!(z==0&&this.a==93&&!f);){if(f=!1,a=this.a,l=!1,z==10)switch(a){case 100:case 68:case 119:case 87:case 115:case 83:ky(M,this.pl(a)),l=!0;break;case 105:case 73:case 99:case 67:a=this.Gl(M,a),a<0&&(l=!0);break;case 112:case 80:if(R=kye(this,a),!R)throw ee(new $n(Gn((Nn(),Bte))));ky(M,R),l=!0;break;default:a=this.ol()}else if(z==20){if(w=a5(this.i,58,this.d),w<0)throw ee(new $n(Gn((Nn(),Q3e))));if(S=!0,po(this.i,this.d)==94&&(++this.d,S=!1),v=Ru(this.i,this.d,w),C=Dot(v,S,(this.e&512)==512),!C)throw ee(new $n(Gn((Nn(),Jmt))));if(ky(M,C),l=!0,w+1>=this.j||po(this.i,w+1)!=93)throw ee(new $n(Gn((Nn(),Q3e))));this.d=w+2}if(wr(this),!l)if(this.c!=0||this.a!=45)Oa(M,a,a);else{if(wr(this),(z=this.c)==1)throw ee(new $n(Gn((Nn(),aB))));z==0&&this.a==93?(Oa(M,a,a),Oa(M,45,45)):(A=this.a,z==10&&(A=this.ol()),wr(this),Oa(M,a,A))}(this.e&mf)==mf&&this.c==0&&this.a==44&&wr(this)}if(this.c==1)throw ee(new $n(Gn((Nn(),aB))));return s&&(K8(s,M),M=s),x2(M),G8(M),this.b=0,wr(this),M},b.rl=function(){var t,s,a,l;for(a=this.ql(!1);(l=this.c)!=7;)if(t=this.a,l==0&&(t==45||t==38)||l==4){if(wr(this),this.c!=9)throw ee(new $n(Gn((Nn(),tvt))));if(s=this.ql(!1),l==4)ky(a,s);else if(t==45)K8(a,s);else if(t==38)c0t(a,s);else throw ee(new qs("ASSERT"))}else throw ee(new $n(Gn((Nn(),nvt))));return wr(this),a},b.sl=function(){var t,s;return t=this.a-48,s=(Er(),Er(),new oY(12,null,t)),!this.g&&(this.g=new JN),ZN(this.g,new Yde(t)),wr(this),s},b.tl=function(){return wr(this),Er(),ikt},b.ul=function(){return wr(this),Er(),rkt},b.vl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.wl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.xl=function(){return wr(this),Win()},b.yl=function(){return wr(this),Er(),skt},b.zl=function(){return wr(this),Er(),ckt},b.Al=function(){var t;if(this.d>=this.j||((t=po(this.i,this.d++))&65504)!=64)throw ee(new $n(Gn((Nn(),Ymt))));return wr(this),Er(),Er(),new Ch(0,t-64)},b.Bl=function(){return wr(this),Ebn()},b.Cl=function(){return wr(this),Er(),ukt},b.Dl=function(){var t;return t=(Er(),Er(),new Ch(0,105)),wr(this),t},b.El=function(){return wr(this),Er(),akt},b.Fl=function(){return wr(this),Er(),okt},b.Gl=function(t,s){return this.ol()},b.Hl=function(){return wr(this),Er(),MIe},b.Il=function(){var t,s,a,l,f;if(this.d+1>=this.j)throw ee(new $n(Gn((Nn(),Gmt))));if(l=-1,s=null,t=po(this.i,this.d),49<=t&&t<=57){if(l=t-48,!this.g&&(this.g=new JN),ZN(this.g,new Yde(l)),++this.d,po(this.i,this.d)!=41)throw ee(new $n(Gn((Nn(),Zg))));++this.d}else switch(t==63&&--this.d,wr(this),s=Ywe(this),s.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));break;default:throw ee(new $n(Gn((Nn(),Xmt))))}if(wr(this),f=wm(this),a=null,f.e==2){if(f._l()!=2)throw ee(new $n(Gn((Nn(),Kmt))));a=f.Xl(1),f=f.Xl(0)}if(this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),Er(),Er(),new fst(l,s,f,a)},b.Jl=function(){return wr(this),Er(),DIe},b.Kl=function(){var t;if(wr(this),t=_R(24,wm(this)),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Ll=function(){var t;if(wr(this),t=_R(20,wm(this)),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Ml=function(){var t;if(wr(this),t=_R(22,wm(this)),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Nl=function(){var t,s,a,l,f;for(t=0,a=0,s=-1;this.d=this.j)throw ee(new $n(Gn((Nn(),K3e))));if(s==45){for(++this.d;this.d=this.j)throw ee(new $n(Gn((Nn(),K3e))))}if(s==58){if(++this.d,wr(this),l=wtt(wm(this),t,a),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));wr(this)}else if(s==41)++this.d,wr(this),l=wtt(wm(this),t,a);else throw ee(new $n(Gn((Nn(),Wmt))));return l},b.Ol=function(){var t;if(wr(this),t=_R(21,wm(this)),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Pl=function(){var t;if(wr(this),t=_R(23,wm(this)),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Ql=function(){var t,s;if(wr(this),t=this.f++,s=NK(wm(this),t),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),s},b.Rl=function(){var t;if(wr(this),t=NK(wm(this),0),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Sl=function(t){return wr(this),this.c==5?(wr(this),xR(t,(Er(),Er(),new Zv(9,t)))):xR(t,(Er(),Er(),new Zv(3,t)))},b.Tl=function(t){var s;return wr(this),s=(Er(),Er(),new RC(2)),this.c==5?(wr(this),zg(s,_9),zg(s,t)):(zg(s,t),zg(s,_9)),s},b.Ul=function(t){return wr(this),this.c==5?(wr(this),Er(),Er(),new Zv(9,t)):(Er(),Er(),new Zv(3,t))},b.a=0,b.b=0,b.c=0,b.d=0,b.e=0,b.f=1,b.g=null,b.j=0,D(mp,"RegEx/RegexParser",799),_(1796,799,{},tXe),b.nl=function(t){return!1},b.ol=function(){return awe(this)},b.pl=function(t){return p6(t)},b.ql=function(t){return K0t(this)},b.rl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.sl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.tl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.ul=function(){throw ee(new $n(Gn((Nn(),ml))))},b.vl=function(){return wr(this),p6(67)},b.wl=function(){return wr(this),p6(73)},b.xl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.yl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.zl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Al=function(){return wr(this),p6(99)},b.Bl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Cl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Dl=function(){return wr(this),p6(105)},b.El=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Fl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Gl=function(t,s){return ky(t,p6(s)),-1},b.Hl=function(){return wr(this),Er(),Er(),new Ch(0,94)},b.Il=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Jl=function(){return wr(this),Er(),Er(),new Ch(0,36)},b.Kl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Ll=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Ml=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Nl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Ol=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Pl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Ql=function(){var t;if(wr(this),t=NK(wm(this),0),this.c!=7)throw ee(new $n(Gn((Nn(),Zg))));return wr(this),t},b.Rl=function(){throw ee(new $n(Gn((Nn(),ml))))},b.Sl=function(t){return wr(this),xR(t,(Er(),Er(),new Zv(3,t)))},b.Tl=function(t){var s;return wr(this),s=(Er(),Er(),new RC(2)),zg(s,t),zg(s,_9),s},b.Ul=function(t){return wr(this),Er(),Er(),new Zv(3,t)};var gx=null,kE=null;D(mp,"RegEx/ParserForXMLSchema",1796),_(117,1,R6,$b),b.Vl=function(t){throw ee(new qs("Not supported."))},b.Wl=function(){return-1},b.Xl=function(t){return null},b.Yl=function(){return null},b.Zl=function(t){},b.$l=function(t){},b._l=function(){return 0},b.Ib=function(){return this.am(0)},b.am=function(t){return this.e==11?".":""},b.e=0;var PIe,CE,O9,nkt,OIe,sw=null,GV,xoe=null,_Ie,_9,Soe=null,MIe,DIe,NIe,jIe,RIe,rkt,G4,ikt,okt,skt,akt,IE,ckt,ukt,f2n=D(mp,"RegEx/Token",117);_(136,117,{3:1,136:1,117:1},Lu),b.am=function(t){var s,a,l;if(this.e==4)if(this==_Ie)a=".";else if(this==GV)a="\\d";else if(this==IE)a="\\w";else if(this==G4)a="\\s";else{for(l=new X1,l.a+="[",s=0;s0&&(l.a+=","),this.b[s]===this.b[s+1]?rs(l,UP(this.b[s])):(rs(l,UP(this.b[s])),l.a+="-",rs(l,UP(this.b[s+1])));l.a+="]",a=l.a}else if(this==NIe)a="\\D";else if(this==RIe)a="\\W";else if(this==jIe)a="\\S";else{for(l=new X1,l.a+="[^",s=0;s0&&(l.a+=","),this.b[s]===this.b[s+1]?rs(l,UP(this.b[s])):(rs(l,UP(this.b[s])),l.a+="-",rs(l,UP(this.b[s+1])));l.a+="]",a=l.a}return a},b.a=!1,b.c=!1,D(mp,"RegEx/RangeToken",136),_(575,1,{575:1},Yde),b.a=0,D(mp,"RegEx/RegexParser/ReferencePosition",575),_(574,1,{3:1,574:1},cKe),b.Fb=function(t){var s;return t==null||!ue(t,574)?!1:(s=h(t,574),kt(this.b,s.b)&&this.a==s.a)},b.Hb=function(){return lp(this.b+"/"+twe(this.a))},b.Ib=function(){return this.c.am(this.a)},b.a=0,D(mp,"RegEx/RegularExpression",574),_(221,117,R6,Ch),b.Wl=function(){return this.a},b.am=function(t){var s,a,l;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:l="\\"+oK(this.a&Ti);break;case 12:l="\\f";break;case 10:l="\\n";break;case 13:l="\\r";break;case 9:l="\\t";break;case 27:l="\\e";break;default:this.a>=Bo?(a=(s=this.a>>>0,"0"+s.toString(16)),l="\\v"+Ru(a,a.length-6,a.length)):l=""+oK(this.a&Ti)}break;case 8:this==MIe||this==DIe?l=""+oK(this.a&Ti):l="\\"+oK(this.a&Ti);break;default:l=null}return l},b.a=0,D(mp,"RegEx/Token/CharToken",221),_(307,117,R6,Zv),b.Xl=function(t){return this.a},b.Zl=function(t){this.b=t},b.$l=function(t){this.c=t},b._l=function(){return 1},b.am=function(t){var s;if(this.e==3)if(this.c<0&&this.b<0)s=this.a.am(t)+"*";else if(this.c==this.b)s=this.a.am(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)s=this.a.am(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)s=this.a.am(t)+"{"+this.c+",}";else throw ee(new qs("Token#toString(): CLOSURE "+this.c+Fo+this.b));else if(this.c<0&&this.b<0)s=this.a.am(t)+"*?";else if(this.c==this.b)s=this.a.am(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)s=this.a.am(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)s=this.a.am(t)+"{"+this.c+",}?";else throw ee(new qs("Token#toString(): NONGREEDYCLOSURE "+this.c+Fo+this.b));return s},b.b=0,b.c=0,D(mp,"RegEx/Token/ClosureToken",307),_(800,117,R6,F0e),b.Xl=function(t){return t==0?this.a:this.b},b._l=function(){return 2},b.am=function(t){var s;return this.b.e==3&&this.b.Xl(0)==this.a?s=this.a.am(t)+"+":this.b.e==9&&this.b.Xl(0)==this.a?s=this.a.am(t)+"+?":s=this.a.am(t)+(""+this.b.am(t)),s},D(mp,"RegEx/Token/ConcatToken",800),_(1794,117,R6,fst),b.Xl=function(t){if(t==0)return this.d;if(t==1)return this.b;throw ee(new qs("Internal Error: "+t))},b._l=function(){return this.b?2:1},b.am=function(t){var s;return this.c>0?s="(?("+this.c+")":this.a.e==8?s="(?("+this.a+")":s="(?"+this.a,this.b?s+=this.d+"|"+this.b+")":s+=this.d+")",s},b.c=0,D(mp,"RegEx/Token/ConditionToken",1794),_(1795,117,R6,urt),b.Xl=function(t){return this.b},b._l=function(){return 1},b.am=function(t){return"(?"+(this.a==0?"":twe(this.a))+(this.c==0?"":twe(this.c))+":"+this.b.am(t)+")"},b.a=0,b.c=0,D(mp,"RegEx/Token/ModifierToken",1795),_(801,117,R6,K0e),b.Xl=function(t){return this.a},b._l=function(){return 1},b.am=function(t){var s;switch(s=null,this.e){case 6:this.b==0?s="(?:"+this.a.am(t)+")":s="("+this.a.am(t)+")";break;case 20:s="(?="+this.a.am(t)+")";break;case 21:s="(?!"+this.a.am(t)+")";break;case 22:s="(?<="+this.a.am(t)+")";break;case 23:s="(?"+this.a.am(t)+")"}return s},b.b=0,D(mp,"RegEx/Token/ParenToken",801),_(514,117,{3:1,117:1,514:1},oY),b.Yl=function(){return this.b},b.am=function(t){return this.e==12?"\\"+this.a:Fhn(this.b)},b.a=0,D(mp,"RegEx/Token/StringToken",514),_(459,117,R6,RC),b.Vl=function(t){zg(this,t)},b.Xl=function(t){return h(rm(this.a,t),117)},b._l=function(){return this.a?this.a.a.c.length:0},b.am=function(t){var s,a,l,f,v;if(this.e==1){if(this.a.a.c.length==2)s=h(rm(this.a,0),117),a=h(rm(this.a,1),117),a.e==3&&a.Xl(0)==s?f=s.am(t)+"+":a.e==9&&a.Xl(0)==s?f=s.am(t)+"+?":f=s.am(t)+(""+a.am(t));else{for(v=new X1,l=0;l=this.c.b:this.a<=this.c.b},b.Sb=function(){return this.b>0},b.Tb=function(){return this.b},b.Vb=function(){return this.b-1},b.Qb=function(){throw ee(new G1(pyt))},b.a=0,b.b=0,D(b4e,"ExclusiveRange/RangeIterator",253);var wl=b5(cB,"C"),An=b5(SI,"I"),du=b5(o4,"Z"),W0=b5(EI,"J"),Lc=b5(yI,"B"),oo=b5(wI,"D"),aw=b5(xI,"F"),bx=b5(kI,"S"),d2n=ii("org.eclipse.elk.core.labels","ILabelManager"),$Ie=ii(Do,"DiagnosticChain"),LIe=ii(Vvt,"ResourceSet"),FIe=D(Do,"InvocationTargetException",null),fkt=(oj(),vtn),dkt=dkt=oln;drn(bHt),Frn("permProps",[[[xB,SB],[EB,"gecko1_8"]],[[xB,SB],[EB,"ie10"]],[[xB,SB],[EB,"ie8"]],[[xB,SB],[EB,"ie9"]],[[xB,SB],[EB,"safari"]]]),dkt(null,"elk",null)}).call(this,typeof KE<"u"?KE:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(c,u,d){function p(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function m(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function x(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var E=c("./elk-api.js").default,k=function(T){x(P,T);function P(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};p(this,P);var O=Object.assign({},I),N=!1;try{c.resolve("web-worker"),N=!0}catch{}if(I.workerUrl)if(N){var j=c("web-worker");O.workerFactory=function(F){return new j(F)}}else console.warn(`Web worker requested but 'web-worker' package not installed. -Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!O.workerFactory){var L=c("./elk-worker.min.js"),$=L.Worker;O.workerFactory=function(F){return new $(F)}}return m(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,O))}return P}(E);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=k,k.default=k},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,d){u.exports=Worker},{}]},{},[3])(3)})})(OLt);const QUn=Lue(OLt.exports);globalThis.g=void 0;globalThis.i=void 0;const bU=30,w7t=5;function ZUn(n){return n.edges}function JUn(n){const r=n.target,c=n.getNodeSource();if(c===r)return c.parent;const u=new Set([c]);let d=c.parent;for(;d;)u.add(d),d=d.parent;for(d=r;d;){if(u.has(d))return d;d=d.parent}return c.graph.snapshot.root}function eHn(n){const r=ZUn(n.snapshot),c=new Map,u=new Map;return r.forEach(d=>{const p=JUn(d);c.has(p)||c.set(p,[]),c.get(p).push(d),u.set(d.uniqueId,p)}),{containingNodesToEdges:c,edgeToContainingNode:u}}function _Lt(n,r){var k;const c=r.get(n.uniqueId),u=MLt(n),d=n.source===n.target,p=n.getNodeSource(),m=((k=p.parent)==null?void 0:k.data.initial)===p.data.key,x=[p.uniqueId],E=[u];return{id:n.uniqueId,sources:x,targets:E,absolutePosition:{x:0,y:0},labels:[{id:"label:"+n.uniqueId,width:c.width,height:c.height,text:n.getDisplayEventType()||"always",layoutOptions:{"edgeLabels.inline":d?"false":"true","edgeLabels.placement":"CENTER","edgeLabels.centerLabelPlacementStrategy":"TAIL_LAYER"}}],edge:n,sections:[],layoutOptions:{"elk.layered.priority.direction":m?"1":"0"}}}function MLt(n){return`port:${n.uniqueId}`}function tHn(n){return`self:${n}`}const nHn=n=>new Promise(r=>{const c=new Map;n.nodes.forEach(u=>{c.set(u.uniqueId,u.labelRect)}),n.edges.forEach(u=>{const d=u.getBounds();c.set(u.uniqueId,{...d,width:d.width})}),r(c)});function DLt(n){return n.nodes.length?Math.max(...n.nodes.map(r=>DLt(r))):n.depth}function NLt(n,r){var I;const{relativeNodeEdgeMap:c,reverseEdgeMap:u,rectMap:d}=r,p=d.get(n.uniqueId),m=c.containingNodesToEdges.get(n)||[],x=Array.from((I=u.get(n.uniqueId))!=null?I:[]),E=x.some(O=>O.source===O.target),k=DLt(n)>n.depth+1,T=k&&!r.previousError,P=rHn(n,r);return{id:n.uniqueId,...n.nodes.length?void 0:{width:p.width,height:p.height},node:n,children:P,absolutePosition:{x:0,y:0},edges:m.map(O=>_Lt(O,d)),ports:x.map(O=>({id:MLt(O),width:w7t,height:w7t,layoutOptions:{}})).concat(E?[{id:tHn(n.uniqueId),width:5,height:5,layoutOptions:{}}]:[]),layoutOptions:{"elk.padding":`[top=${p.height+bU}, left=${bU}, right=${bU}, bottom=${bU}]`,"elk.spacing.labelLabel":`${bU}`,"elk.spacing.edgeNode":"100",...k&&{"elk.aspectRatio":"2","elk.layered.wrapping.strategy":"MULTI_EDGE",...T&&{"elk.layered.compaction.postCompaction.strategy":"LEFT"}}}}}function rHn(n,r){return n.nodes.map(c=>NLt(c,r))}function iHn(n){return"absolutePosition"in n}function jLt(n){return n.nodes.length?[n].concat(n.nodes.map(r=>jLt(r)).flat()):[n]}function oHn(n){const r=new Map,c=(d,p)=>{r.get(d.uniqueId)||r.set(d.uniqueId,new Set),r.get(d.uniqueId).add(p)};return n.edges.forEach(d=>{c(d.target,d)}),jLt(n).forEach(d=>{d.edges.forEach(p=>{c(p.target,p)})}),r}async function sHn(n){var j;const r=n.snapshot.root,c=await nHn(n.snapshot),u=eHn(n),d=oHn(r),p=u.containingNodesToEdges.get(void 0)||[],m={relativeNodeEdgeMap:u,reverseEdgeMap:d,rectMap:c},x=L=>({id:"root",edges:p.map($=>_Lt($,c)),children:[NLt(r,L)],layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":"layered","elk.layered.considerModelOrder":"NODES_AND_EDGES","elk.layered.wrapping.strategy":"MULTI_EDGE","elk.aspectRatio":"2","elk.direction":"RIGHT"}});let E,k=0;const T=new QUn;for(;k<=2&&!E;){k++;try{E=await T.layout(x(m))}catch(L){console.error(L),m.previousError=L}}if(!E)throw new Error("Unable to layout ELK node.");const P=new Map,I=L=>{var B,X;const $=u.edgeToContainingNode.get(L.edge.uniqueId),F=$&&P.get($.uniqueId);L.absolutePosition={x:(((B=L.labels)==null?void 0:B[0].x)||0)+((F==null?void 0:F.absolutePosition.x)||0),y:(((X=L.labels)==null?void 0:X[0].y)||0)+((F==null?void 0:F.absolutePosition.y)||0)}},O=(L,$)=>{var F,B,X,ne;P.set(L.node.uniqueId,L),L.absolutePosition={x:((F=$==null?void 0:$.absolutePosition.x)!=null?F:0)+L.x,y:((B=$==null?void 0:$.absolutePosition.y)!=null?B:0)+L.y},(X=L.edges)==null||X.forEach(Z=>{I(Z)}),(ne=L.children)==null||ne.forEach(Z=>{iHn(Z)&&O(Z,L)})};(j=E.edges)==null||j.forEach(I);const N=E.children[0];return O(N,void 0),E}async function x7t(n){const r=await sHn(n),c=[],u=[];function d(p){var m,x;(m=p.edges)==null||m.forEach(E=>{u.push(E)}),(x=p.children)!=null&&x.length?p.children.forEach(E=>d(E)):c.push(p)}d(r),O_t.flushSync(()=>{n.send({type:"autolayout.complete",nodes:c.map(p=>({id:p.id,position:p.absolutePosition})),edges:u.map(p=>({id:p.id,position:{x:p.absolutePosition.x,y:p.absolutePosition.y}}))})})}function aHn(n){return n.dx?[{dx:n.dx,dy:0},{dx:0,dy:1},{dx:0,dy:-1}]:[{dy:n.dy,dx:0},{dy:0,dx:1},{dy:0,dx:-1}]}function _se(n,r){return n>=r[0]&&n<=r[1]}function cHn(n,r,c=10){const u=aHn(n),d=[];for(const x of u){const E=n.withDelta(x),k=E.dx>0&&E.xr.left||E.dy>0&&E.yr.top,T=_se(E.x,[r.left-c,r.right+c])&&!_se(E.x,[r.left,r.right]),P=_se(E.y,[r.top-c,r.bottom+c])&&!_se(E.y,[r.top,r.bottom]);if(x.dx&&k&&P||x.dy&&k&&T)continue;if(LU(E,r,["top","bottom","left","right"])!==void 0)return E;d.push(E)}if(!d.length)return;const m=CVn(d,x=>Pq(x,r)?0:1);return n.withDelta(m)}const uHn=10;function S7t({labelRect:n,labelSide:r,toPoint:c}){const d=[n.centerSide(r)];let p=0;for(;p++<10;){const m=d[d.length-1];if(m.x===c.x||m.y===c.y){d.push(m.at(c));break}if(lHn(m,c)){const x={x:m.dx?c.x:m.x,y:m.dy?c.y:m.y},E=Math.sign(c.x-x.x),k=Math.sign(c.y-x.y);d.push(new Z0(x,{dx:E,dy:k}))}else{const x={x:m.x+10*m.dx,y:m.y+10*m.dy},E=Math.sign(c.x-x.x),k=Math.sign(c.y-x.y);let T;m.dx?T=k===1?"bottom":"top":T=E===1?"right":"left",d.push(new Z0(x,T))}}return{path:d,endPoint:d[d.length-1].at(c)}}function Zce({labelRect:n,toRect:r,otherRects:c,initialRay:u,endOffset:d,toSides:p}){var P;const x=[u],E=(P=c[0])==null?void 0:P.expand(uHn),k=LU(u,r,p);if(k!==void 0){const I=u.at(k),O=I.translate({dx:-d*I.dx,dy:-d*I.dy});return{path:[u,O],endPoint:I}}if(Pq(u,r)){const I={x:u.x+15*u.dx,y:u.y+15*u.dy};u.dy&&(I.y<=r.top+10&&I.y>=r.top?I.y=r.top+10:I.y>=r.bottom-10&&I.y<=r.bottom&&(I.y=r.bottom-10)),u.dx&&(I.x<=r.left+10&&I.x>=r.left?I.x=r.left+10:I.x>=r.right-10&&I.x<=r.right&&(I.x=r.right-10));let O=cHn(u.at(I),r);if(!O)return{path:x,endPoint:x[x.length-1]};const N=LU(O,r,p);return N&&(!E||EH([u,N],{o:E}))&&(O=u.at(I)),x.push(O),T()}function T(){var L,$,F,B,X,ne;const I=x[x.length-1];if(x.length>10)return{path:x,endPoint:I};if(r.contains(I))return{path:x,endPoint:I};if((I.x===r.left||I.x===r.right)&&I.y>=r.top&&I.y<=r.bottom||(I.y===r.top||I.y===r.bottom)&&I.x>=r.left&&I.x<=r.right)return{path:x,endPoint:I};if(!Pq(I,r)){const{dx:Z,dy:H}=I.dx?I.yr.center.x?{dx:-1,dy:0}:{dx:1,dy:0},ce=new Z0({x:I.x+15*I.dx,y:I.y+15*I.dy},"left").withDelta({dx:Z,dy:H});return x.push(ce),T()}const O=LU(I,r,p);if(O){const Z=qce(O),H=Z.translate({dx:d*Z.dx,dy:d*Z.dy});return x.push(H),{path:x,endPoint:Z}}let N=I.dx?new Z0({x:I.dx===-1&&I.x>=r.right?r.right-10:I.dx===1&&I.x<=r.left?r.left+10:I.x+15*I.dx,y:I.y},I.y=r.bottom?r.bottom-10:I.dy===1&&I.y<=r.top?r.top+10:I.y+15*I.dy},I.x=r.left-d||N.x>=r.right&&N.x<=r.right+d:N.y<=r.top&&N.y>=r.top-d||N.y>=r.bottom&&N.y<=r.bottom+d);)N.x+=15*I.dx,N.y+=15*I.dy;return I.dy&&N.y>=r.bottom&&N.y<=r.bottom+20?N.y=r.bottom+20:I.dy&&N.y<=r.top&&N.y>=r.top-20?N.y=r.top-20:I.dx&&N.x>=r.right&&N.x<=r.right+20?N.x=r.right+20:I.dx&&N.x<=r.left&&N.x>=r.left-20&&(N.x=r.left-20),x.push(N),T()}return T()}function mU(n){return{...n,x:Math.round(n.x),y:Math.round(n.y)}}class Aq{constructor({startPoint:r,startAnchor:c=r,endPoint:u,endAnchor:d=u,midPoints:p,override:m,internal:x}){this.startPoint=mU(r),this.startAnchor=mU(c),this.endPoint=mU(u),this.endAnchor=mU(d),this.midPoints=p.map(mU),this.override=m,this.internal=x}get lineSegments(){const{startPoint:r,endPoint:c,midPoints:u}=this;if(!u.length)return[[r,c]];const d=[];for(let p=0;p{if(p===0){const m={...d[0]};u.push(["M",m])}if(p===this.lineSegments.length-1){const m={...d[1]};u.push(["L",m])}else u.push(["L",d[1]])}),c.radius?IVn(u,c.radius):u}join(r){return new Aq({startPoint:this.startPoint,endPoint:r.endPoint,midPoints:this.midPoints.concat([this.endPoint],r.midPoints)})}}function Mse(n){return n.dx?{x:n.x,y:n.y,side:n.dx===1?"right":"left"}:{x:n.x,y:n.y,side:n.dy===1?"bottom":"top"}}function Pq(n,r){const c="dx"in n&&"dy"in n?n.dx===-1?"left":n.dx===1?"right":n.dy===-1?"top":"bottom":n.side;return c==="left"?r.left<=n.x:c==="right"?r.right>=n.x:c==="top"?r.top<=n.y:r.bottom>=n.y}function lHn(n,r){return n.side==="left"?r.x<=n.x:n.side==="right"?r.x>=n.x:n.side==="top"?r.y<=n.y:n.side==="bottom"?r.y>=n.y:!1}const fHn={bend:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>CPe[n.endPoint.side]===r.startPoint.side?0:.5,intersection:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>{for(const c of n.lineSegments)for(const u of r.lineSegments)if($U(c,u)!==!1)return 100;return 0},withinRange:({sourceRect:n,targetRect:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=Pq(c.endPoint,n)?0:1,p=Pq(u.startPoint,r)?0:1;return d+p},preferredSides:({sourceSides:n,targetSides:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=n.includes(c.startPoint.side)?0:100,p=r.includes(u.endPoint.side)?0:100;return d+p},sourceTargetIntersections:({sourceRect:n,targetRect:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=u.lineSegments.some(m=>EH(m,{sourceRect:n}))?100:0,p=c.lineSegments.some(m=>EH(m,{targetRect:r}))?100:0;return d+p},lineSegments:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>(n.lineSegments.length+r.lineSegments.length)*.5};function dHn(n,{sourceSides:r,targetSides:c,sourceRect:u,targetRect:d}){let p=1/0,m;for(const x of n){if(x.sourcePath.override||x.targetPath.override)return x;let E=0;for(const[k,T]of Object.entries(fHn))if(E+=T({sourceTargetPath:x,sourceSides:r,targetSides:c,sourceRect:u,targetRect:d}),E>=p)break;E{const ne=qce(u.centerSide(X)),Z=P instanceof Ju||P instanceof $x?Zce({labelRect:u,toRect:P instanceof Ju&&m instanceof Ju&&P.isAncestorOf(m)?P.currentRects.self:Dse(P),otherRects:P===m?[]:[Dse(m)],initialRay:ne,endOffset:5,toSides:["top","bottom","left","right"]}):S7t({labelRect:u,labelSide:X,toPoint:P}),H=[...Z.path].reverse();if(H.length){const ce=new Aq({startPoint:Mse(H[0]),startAnchor:Z.endPoint,endPoint:Mse(H[H.length-1]),midPoints:H.slice(1,-1)});T.push(ce)}});const O=[];k.forEach(X=>{const ne=qce(u.centerSide(X)),Z=I instanceof Ju||I instanceof $x?Zce({labelRect:u,toRect:I instanceof Ju&&p instanceof Ju&&I.isAncestorOf(p)?I.currentRects.self:Dse(I),otherRects:p===I?[]:[Dse(p)],initialRay:ne,endOffset:10,toSides:["top","bottom","left","right"]}):S7t({labelRect:u,labelSide:X,toPoint:I});if(Z.path.length){const H=new Aq({startPoint:Mse(Z.path[0]),endPoint:Mse(Z.path[Z.path.length-1]),endAnchor:Z.endPoint,midPoints:Z.path.slice(1,-1)});O.push(H)}});const N=[],j=T.some(X=>X.override)?T.filter(X=>X.override):T,L=O.some(X=>X.override)?O.filter(X=>X.override):O;if(j.forEach(X=>{L.forEach(ne=>{X.endPoint.side!==ne.startPoint.side&&N.push({sourcePath:X,targetPath:ne})})}),!N.length)return;const $=void 0,{sourcePath:F,targetPath:B}=dHn(N,{sourceRect:c,targetRect:d,sourceSides:x,targetSides:k});return{sourcePathData:F,targetPathData:B,pathDefinition:$}}const jM=2;class $x{constructor(r,c){var u,d,p;this.config=r,this.data={eventTypeData:{type:"named",eventType:""},guard:void 0,actions:[],description:void 0,metaEntries:void 0},this.delta={dx:0,dy:0},this.position={x:0,y:0},this.uniqueId=eLt(),this.source=c,this.target=(u=c.graph.snapshot.getNodeBySerialisableId(r.target))!=null?u:Ix(c),this.position=(d=r.position)!=null?d:{x:0,y:0},this.layoutStatus=r.position?"done":"needs-layout",this.size=(p=r.size)!=null?p:{width:0,height:0},this.familySize={...this.size},this.start()}get containingNode(){return WVn(this.getNodeSource(),this.target)}getNodeSource(){let r=this.source;for(;!(r instanceof Ju);)if(r=r.source,r===this)throw new Error("Circular edge source");return r}getPathData(r){var I,O;const{labelSides:c}=r!=null?r:{},u=this.getParentEdge(),{tempAnchor:d}=this.graph.snapshot,p=(d==null?void 0:d.edgeId)===this.uniqueId&&d.type==="source"?d.point:void 0,m=(d==null?void 0:d.edgeId)===this.uniqueId&&d.type==="target"?d.point:void 0,[x,E,k,T=["top","left","bottom","right"],P=["top","left","bottom","right"]]=[p?new Du({...p,width:jM,height:jM}):(O=(I=this.getParentEdge())==null?void 0:I.getFamilyRect())!=null?O:this.sourceNodeRect,this.getLabelRect(),m?new Du({...m,width:jM,height:jM}):this.target.currentRects.family];if(!!E)return hHn({source:u!=null?u:this.source,target:this.target,tempSourcePoint:p,tempTargetPoint:m,sourceRect:x,labelRect:E,targetRect:k,sourceSides:T,targetSides:P,labelSides:c})}get currentPosition(){return{x:this.position.x+this.delta.dx,y:this.position.y+this.delta.dy}}start(){var r,c;this.data={eventTypeData:this.config.data.eventTypeData,guard:this.config.data.guard,actions:(r=this.config.data.actions)!=null?r:[],description:this.config.data.description,metaEntries:this.config.data.metaEntries,internal:(c=this.config.data.internal)!=null?c:!0},this.graph=this.source.graph}get sourceNodeRect(){const r=this.getNodeSource();return r.isAncestorOf(this.target)?r.currentRects.label:r.currentRects.family}getSerialisableId(){return WDe(this.getNodeSource().getSerialisableId(),this.getDisplayEventType(),this.getEdgeGroupIndex())}getBounds(){return this.getFamilyRect()}getContainerNode(){const{target:r}=this,c=this.getNodeSource();if(c===r)return c;const u=new Set([c]);let d=c.parent;for(;d;)u.add(d),d=d.parent;for(d=r;d;){if(u.has(d))return d;d=d.parent}return this.graph.snapshot.root}getLabelRect(){return new Du({width:this.size.width,height:this.size.height,x:this.currentPosition.x,y:this.currentPosition.y})}getFamilyRect(){return this.getLabelRect()}getDisplayEventType(){const r=this.getNodeSource();return Uce(this.data.eventTypeData,r.getSerialisableId(),r.invocations.map(c=>({id:Jh(c)})))}getShortDisplayEventType(){const{type:r}=this.data.eventTypeData;if(r!=="after")return this.getDisplayEventType();const{delay:c}=this.data.eventTypeData;return`${r} ${Gce(c)}`}getEdgeGroupIndex(){let r=this.source,c=0;for(;r instanceof $x;)c++,r=r.source;return c}getParentEdge(){if(!(this.source instanceof Ju))return this.source}getGroup(){const r=this.getNodeSource(),c=[];for(const u of this.graph.getSnapshot().edges)Go(this.data.eventTypeData,u.data.eventTypeData)&&u.getNodeSource()===r&&c.push(u);return c.sort((u,d)=>u.getEdgeGroupIndex()-d.getEdgeGroupIndex()),c}getConnectedEdge(){return this.getNodeSource().edges.find(r=>r.source===this)}}function E7t(n){const{containingNode:r}=n;return[r].concat(Oae(r))}const mNe={ALLOW_DRAGGING_EDGE_LINES:!1,ALLOW_TAGS:!1,ALLOW_SAFARI_ACCESS_TO_EDITOR:!1,SHOW_AUTOLAYOUT_BUTTON:!0,ALLOW_SNAP_TO_ELEMENTS:!0,ALLOW_PRO_COLORS:{}.NEXT_PUBLIC_ALLOW_PRO_COLORS},pHn=n=>{let r=mNe[n];return r==="false"&&(r=!1),r==="true"&&(r=!0),typeof window<"u"&&window.location.origin==="http://localhost:3000"?r!=null?r:window.Cypress:r},gHn=(n,r)=>{var $,F;const c=bHn(r);if(!c)return;const d=Object.values(n.selection).filter(B=>B.type==="node");d.length||d.push({type:"node",id:n.root.uniqueId});const p=d.length===1&&d[0].type==="node",m=($=c.nodes[0])!=null&&$.id?n.getNodeBySerialisableId(c.nodes[0].id):void 0,x=n.getNodeByUniqueId(d[0].id),E=x&&m&&x===m;let k;const T=p&&!(c.nodes.length===1&&E);if(T)k=x;else{const B=c.nodes.sort((ne,Z)=>ne.id.split(".").length-Z.id.split(".").length)[0];k=((F=n.getNodeBySerialisableId(B==null?void 0:B.id))==null?void 0:F.parent)||n.root}const P=T?Wce(k):void 0,I={},O=[],N=[],j=(B,X)=>{let ne={x:B.position.x+el*2,y:B.position.y+el*2};P&&c.bounds&&(ne={x:B.position.x-c.bounds.x+P.x,y:B.position.y-c.bounds.y+P.y});const Z=n.addNewNode({node:X,data:{...B.data,key:k7t(B.data.key,X.nodes.map(H=>H.data.key))},position:ne});I[B.id]=Z,O.push(Z),B.nodes.forEach(H=>j(H,Z))};c.nodes.forEach(B=>{j(B,k)});const L=sLt(c.edges);for(const B of L){let X;for(let ne=0;ne{ye.data.eventTypeData.type==="named"&&(ye.data.eventTypeData.eventType=k7t(Uce(ye.data.eventTypeData,Z.source,pe.invocations.map(Ge=>({id:Jh(Ge)}))),n.edges.filter(Ge=>Ge.getNodeSource().getSerialisableId()===ye.source).map(Ge=>Uce(Ge.data.eventTypeData,Ge.getNodeSource().getSerialisableId(),pe.invocations.map(qe=>({id:Jh(qe)}))))))}),position:H});le&&(X=le,N.push(le))}}return c.rootName&&(n.root.data.key=c.rootName),c.context&&(n.data.context=c.context),{nodes:O,edges:N}},k7t=(n,r)=>{let c=n;for(;r.includes(c);)c+=" (copy)";return c},bHn=n=>{var c;const r=(c=n.clipboardData)==null?void 0:c.getData("text/plain");if(!!r)try{const u=JSON.parse(r);if("nodes"in u&&"edges"in u)return u}catch{return}};class mHn{constructor(){this.undos=[],this.redos=[]}canUndo(){return!!this.undos.length}canRedo(){return!!this.redos.length}push(r){this.redos.length=0,this.undos.push(r)}exec(r){this.push(r),r.redo()}undo(){if(!this.canUndo())return;const r=this.undos.pop();this.redos.push(r),r.undo()}redo(){if(!this.canRedo())return;const r=this.redos.pop();this.undos.push(r),r.redo()}}const C7t=(n,r,c)=>{const u=n-r;return u>0?u<=c:u>=-c},vHn=(n,r,c,u=5)=>{const d=[],p=n.translate(r.dx,r.dy);if(C7t(p.center.x,c.center.x,u)){const m=c.center.x-p.center.x;d.push({direction:"y",position:"center",modifier:r.dx+m})}if(C7t(p.center.y,c.center.y,u)){const m=c.center.y-p.center.y;d.push({direction:"x",position:"center",modifier:r.dy+m})}return d};function yHn(n,r){const c=n.getNodeSource();return r.filter(u=>!u.data.guard&&u.getNodeSource().uniqueId===c.uniqueId&&d7(u)!=null&&d7(n)!=null&&d7(u)===d7(n))}function wHn(n){return n.parent?n.parent.nodes.filter(r=>r.uniqueId!==n.uniqueId).filter(r=>r.data.key===n.data.key):[]}const d7=n=>n.data.eventTypeData.type==="named"?n.data.eventTypeData.eventType:null;function RLt(n){var d;const r=[];n.data.key.length===0&&r.push("State key cannot be empty");const c=((d=n.parent)==null?void 0:d.data.initial)===n.data.key,u=n.data.type==="history";return c&&u&&r.push("A history node cannot be the initial node. This will cause an infinite loop."),wHn(n).length>0&&r.push("A state with that name already exists"),new RegExp(/[.#]/).test(n.data.key)&&r.push('State key cannot contain "." or "#"'),r.length>0?r:null}function $Lt(n,r){const c=[],u=n.data.entry.filter(f7),d=n.data.exit.filter(f7),p=u.concat(d).reduce((x,E)=>({...x,...E.assignment}),{}),m=Object.values(r.data.context).map(x=>x.key);for(const x in p)m.includes(x)||c.push(`Key \`${x}\` is missing from the context schema`);return r.reachableNodes.has(n.uniqueId)||c.push("Unreachable state"),c.length>0?c:null}function LLt(n,r){var d;const c=[];((d=d7(n))==null?void 0:d.length)===0&&c.push("Event type cannot be empty"),yHn(n,r.edges).length>1&&c.push("Two events with the same name AND source are not allowed"),d7(n)==="*"&&c.push('Event type cannot be "*". If you meant to create an Eventless ("Always") transition, choose "always" as the type.');const u=d7(n);return u&&(u.startsWith("xstate.")?c.push('Events cannot start with "xstate." - This is reserved for internal XState events'):u.startsWith("error.platform")||u.startsWith("error.execution")?c.push('Events cannot start with "error.platform" and "error.execution" - They are reserved for internal XState error events'):(u.startsWith("done.state")||u.startsWith("done.invoke"))&&c.push('Events cannot start with "done.state" and "done.invoke" - They are reserved for internal XState events')),c.length>0?c:null}function FLt(n){const r=[],c=n.getGroup();if(n.data.guard){const d=n.data.guard.type,p=c.filter(m=>{var x;return((x=m.data.guard)==null?void 0:x.type)===d});p.length>1&&r.push(`Found ${p.length} guards with the name \`${d}\``)}const u=n.getEdgeGroupIndex();return u>0&&c.slice(0,u).some(d=>!d.data.guard)&&r.push("This transition will never be taken"),r.length>0?r:null}function xHn(n){if(!n.nodes)return[];if(n.data.type==="parallel")return n.nodes;const r=n.nodes.find(c=>n.data.initial===c.data.key);return r?[r]:[]}function SHn(n){const r=n.root,c=new Set;u(r);function u(d){if(c.has(d.uniqueId))return;c.add(d.uniqueId),d.parent&&!c.has(d.parent.uniqueId)&&u(d.parent),d.edges.forEach(m=>{u(m.target)}),xHn(d).forEach(m=>{u(m)})}return c}const BLt=({nodeSource:n,index:r,eventTypeData:c})=>{const u=d=>n.invocations.findIndex(p=>p.internalUniqueId===d);switch(c.type){case"always":return["always",r];case"after":return["after",c.delay,r];case"invocation.done":return["invoke",u(c.invocationId),"onDone",r];case"invocation.error":return["invoke",u(c.invocationId),"onError",r];case"state.done":return["onDone",r];case"named":return["on",c.eventType,r];case"wildcard":return["on","*",r]}},yo=n=>BLt({nodeSource:n.getNodeSource(),index:n.getEdgeGroupIndex(),eventTypeData:n.data.eventTypeData});function gr(n){let r=n;const c=[];for(;;){if(!r.parent)return c.reverse();c.push(r.data.key),r=r.parent}}function EHn(n,r){const c=new Set,u={},d=[];let p="idle",m=r;const x={send:P=>{d.push(P),p==="idle"&&k()},subscribe:(P,I,O)=>{const N=zn.toObserver(P,I,O);return c.add(N),N.next(m),{unsubscribe:()=>{c.delete(N)}}},on:(P,I)=>(u[P]||(u[P]=new Set).add(I),{unsubscribe:()=>{u[P].delete(I)}}),getSnapshot:()=>m,get snapshot(){return m},version:0,_update:T},E={publish:(P,I)=>{var O;(O=u[P])==null||O.forEach(N=>{N.send({type:"xactor.topic",topic:P,data:I})})},get self(){return x}};function k(){for(p="processing";d.length;){const P=d.shift();m=n(m,P,E),T()}p="idle"}function T(){x.version++,c.forEach(P=>{var I;return(I=P.next)==null?void 0:I.call(P,m)})}return x.send({type:"xactor.start",self:x}),x}const I7t=(n,r)=>({nodes:r.filter(c=>c.type==="node").map(c=>n.getNodeByUniqueId(c.id)),edges:r.filter(c=>c.type==="edge").map(c=>n.getEdgeByUniqueId(c.id))}),kHn={"context.addFieldByExpression":!0,"context.addFieldByInferredType":!0,"context.modifyField":!0,"context.deleteField":!0,"context.clear":!0,"context.set":!0,"edge.addTransition":!0,"edge.anchor.moveEnd":!0,"edge.modify.guard":!0,"edge.modify.actions.add":!0,"edge.modify.actions.delete":!0,"edge.modify.actions.edit":!0,"edge.modify.internal":!0,"edge.modify.eventType":!0,"edge.modify.description":!0,"edge.modify.meta":!0,"edge.setSourceAndTarget":!0,"edge.targetSelf":!0,"edge.new":!0,"edge.setSource":!0,"edge.setTarget":!0,"node.delete":!0,"node.modify":!0,"node.modify.type":!0,"node.modify.history":!0,"node.modify.key":!0,"node.modify.description":!0,"node.modify.meta":!0,"node.newChildNode":!0,"node.setInitialState":!0,"node.setColor":!0,"selection.cut":!0,"selection.delete":!0,"node.newEdge.end":!0,"selection.moveEnd":!0,paste:!0,undo:!0,redo:!0,"autolayout.complete":!0,"edge.delete":!0,"node.modify.invocations.add":!0,"node.modify.invocations.delete":!0,"node.modify.invocations.edit":!0,"node.modify.actions.add":!0,"node.modify.actions.delete":!0,"node.modify.actions.edit":!0},vU=(n,r)=>n===r||n.isAncestorOf(r);class CHn{constructor(r,c,u,d,p,m){this.digraphConfig=r,this.getViewBox=d,this.userMode=p,this.id=m,this.nodeMap=new Map,this.edgeMap=new Map,this._nodes=new Set,this._edges=new Set,this.selection={},this.highlights=new Set,this.effects=[],this.status="idle",this._layoutString="",this.data=c,this.autolayoutStatus=u?"autolayout-needed":"autolayout-not-needed",this.undoStack=new mHn}get reachableNodes(){return SHn(this)}get problems(){const{nodes:r,edges:c}=this,u=r.flatMap(P=>RLt(P)).filter(Boolean),d=r.flatMap(P=>$Lt(P,this)).filter(Boolean),p=c.flatMap(P=>LLt(P,this)).filter(Boolean),m=c.flatMap(P=>FLt(P)).filter(Boolean),x={},E=(P,I,O)=>{x[P]||(x[P]={}),x[P][I]=O};for(const P in this.data.context){const I=this.data.context[P];I.key.length===0&&E(P,"key","Key can not be empty"),Object.values(this.data.context).filter(O=>O.key===I.key).length>1&&E(P,"key","Duplicate key"),I.expression.length===0&&E(P,"expression","Initial value can not be empty")}const k=u.concat(p),T=d.concat(m);return{errors:k,warnings:T,contextErrors:x,errorsCount:k.length+Object.keys(x).length,warningsCount:T.length}}get nodes(){return Array.from(this._nodes)}get edges(){return Array.from(this._edges)}toJSON(){return this.root.toJSON()}start(r,c){this.self=r,c!=null&&c.autolayout&&(this.autolayoutStatus="autolayout-needed"),this.root=new Ju(gLt(this.digraphConfig.rootNode,u=>{c!=null&&c.isRestart||(u.data.key=this.data.name)}),this.self),this.registerNestedNodes(this.root),this.registerEdges(),this._layoutString=Qce(this),c!=null&&c.autolayout&&setTimeout(()=>{this.performAutolayout()},300)}restart(r,c){var p,m;this.digraphConfig=r;const u=Object.values(this.selection).map(x=>{var E,k;return x.type==="edge"?{...x,id:(E=this.getEdgeByUniqueId(x.id))==null?void 0:E.getSerialisableId()}:{...x,id:(k=this.getNodeByUniqueId(x.id))==null?void 0:k.getSerialisableId()}});this.deselectAll(),this._edges.clear(),this.edgeMap.clear(),this._nodes.clear(),this.nodeMap.clear(),this.start(this.self,{isRestart:!0,autolayout:c});const d=[];for(const x of u)if(x.type==="edge"){const E=(p=this.getEdgeBySerialisableId(x.id))==null?void 0:p.uniqueId;E&&d.push({...x,id:E})}else{const E=(m=this.getNodeBySerialisableId(x.id))==null?void 0:m.uniqueId;E&&d.push({...x,id:E})}this.select(d,{mode:"multi"}),this.nodes.forEach(x=>{x.calculateRects()}),this.edges.forEach(()=>{})}getInvocationById(r){for(const c of this.nodes)for(const u of c.invocations)if(Jh(u)===r)return u}resolveNodeLike(r){if(typeof r!="string")return r;const c=this.getNodeBySerialisableId(r);if(!c)throw new Error(`A node with the serialisable id ${r} could not be found`);return c}registerNestedNodes(r){this.register(r),r.nodes.forEach(c=>{this.registerNestedNodes(c)})}registerEdges(){const r=sLt(this.digraphConfig.edges);for(const c of r){let u;for(let d=0;d{!this.selection[x.uniqueId]&&!c.has(x)&&u.add(x)};Object.values(this.selection).forEach(x=>{if(x.type==="node"){const E=this.getNodeByUniqueId(x.id);if(!E)return;c.add(E),tLt(E).forEach(k=>{c.add(k)})}else{const E=this.getEdgeByUniqueId(x.id);E&&c.add(E)}}),c.forEach(x=>{x instanceof Ju&&x.getContainedEdges().forEach(E=>{c.add(E)}),x instanceof Ju?Oae(x).forEach(E=>{d(E)}):E7t(x).forEach(E=>{d(E)})});const p=r,m=[];if(Object.values(this.selection).length===1&&mNe.ALLOW_SNAP_TO_ELEMENTS){const x=[],E=this.getViewBox(),k=new Du({x:E.minX,y:E.minY,width:E.width,height:E.height});this.nodes.filter(N=>!c.has(N)&&!u.has(N)).forEach(N=>{const j=N.currentRects.family;x.push(j)}),this.edges.filter(N=>!c.has(N)).forEach(N=>{const j=N.getLabelRect();x.push(j)});const[T]=AHn(Object.values(this.selection)[0],this);let P=!1,I=!1;const O=x.filter(N=>u7e(k,N));for(const N of O)if(vHn(T,r,N).forEach(L=>{L.direction==="x"&&!P?(P=!0,p.dy=L.modifier,m.push({direction:"x",type:"center",startRect:T,endRect:N})):L.direction==="y"&&!I&&(I=!0,p.dx=L.modifier,m.push({direction:"y",type:"center",startRect:T,endRect:N}))}),P&&I)break}this.snapLines=m.map(x=>({...x,startRect:x.startRect.translate(p.dx,p.dy)})),c.forEach(x=>{x.delta=p}),u.forEach(x=>{x.calculateRects()})}async performAutolayout(){this.autolayoutStatus!=="autolayout-performing"&&(this.autolayoutStatus="autolayout-performing",await x7t(this.self))}receive(r){var c,u,d,p,m,x,E,k,T,P,I,O,N,j,L,$,F,B,X,ne,Z,H,ce,pe,le,ye,Ge,qe,et,tt,jt,Me,ze,we,De,be,Se,Jt,sn,Tn,qn,rr,Zn,Gr,Je,ct,rn,Ne;if(this.effects.length=0,r.type==="xactor.start"){this.start(r.self);return}switch(r.type){case"restart":{this.restart(r.config,r.autolayout);break}case"context.addFieldByInferredType":{const ae=hUn(r.key,r.expression,r.inferredType),me=()=>{this.data.context={...this.data.context,[ae.uid]:ae}};this.undoStack.push({redo:me,undo:()=>{const Te={...this.data.context};delete Te[ae.uid],this.data.context=Te}}),me();break}case"context.addFieldByExpression":{const ae=u7t(r.key,r.expression),me=()=>{this.data.context={...this.data.context,[ae.uid]:ae}};this.undoStack.push({redo:me,undo:()=>{const Te={...this.data.context};delete Te[ae.uid],this.data.context=Te}}),me();break}case"context.modifyField":{const ae=this.data.context[r.uid],me={...ae,...r.updates},Te=()=>{this.data.context={...this.data.context,[r.uid]:me}};this.undoStack.push({redo:Te,undo:()=>{this.data.context={...this.data.context,[r.uid]:ae}}}),Te();break}case"context.deleteField":{const ae=this.data.context,me=()=>{const Te={...this.data.context};delete Te[r.uid],this.data.context=Te};this.undoStack.push({redo:me,undo:()=>{this.data.context=ae}}),me();break}case"context.clear":{const ae=this.data.context,me=()=>{this.data.context={}};this.undoStack.push({redo:me,undo:()=>{this.data.context=ae}}),me();break}case"context.set":{const ae=this.data.context,me={};for(const[Xe,dt]of Object.entries(r.context)){const Sn=u7t(Xe,dt);me[Sn.uid]=Sn}const Te=()=>{this.data.context=me};this.undoStack.push({redo:Te,undo:()=>{this.data.context=ae}}),Te();break}case"interact.cancel":this.cancelInteraction();break;case"select.start":{this.select([r.entity],r),this.status="selecting";break}case"select":{this.select([r.entity],r),this.status="selected";break}case"select.end":{this.status="selected";break}case"selectAll":{this.selectAll();break}case"deselectAll":{this.deselectAll();break}case"edge.new":{(c=so())==null||c.debouncedTrack(r.type);const{source:ae,target:me}=r,Te=this.getNodeBySerialisableId(ae);if(!Te)return;const Xe=this.addEdge(Te,{edgeConfig:{data:{eventTypeData:A7t(this.getNodeBySerialisableId(ae)),guard:void 0,actions:[],description:void 0,metaEntries:void 0},target:me}});if(!Xe)return;mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(Xe.getNodeSource()),targetPath:gr(Xe.target),transitionPath:yo(Xe),external:!Xe.data.internal,guard:(u=Xe.data.guard)==null?void 0:u.type}),Xe.getNodeSource().parent&&this.triggerNodeLayout();const dt=this.createDeleteEdgeOperation(Xe);this.undoStack.push({undo:()=>{dt.redo(),mr.putEditInExtensionQueue({type:"remove_transition",sourcePath:gr(Xe.getNodeSource()),transitionPath:yo(Xe)}),this.triggerNodeLayout()},redo:()=>{var Sn;dt.undo(),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(Xe.getNodeSource()),targetPath:gr(Xe.target),transitionPath:yo(Xe),external:!Xe.data.internal,guard:(Sn=Xe.data.guard)==null?void 0:Sn.type}),this.triggerNodeLayout()}}),this.select([{id:Xe.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:Xe.uniqueId,field:"key"});break}case"autolayout":{x7t(this.self);break}case"autolayout.complete":{const ae=r.nodes.map(({id:Xe})=>({id:Xe,position:this.getNodeByUniqueId(Xe).position})),me=r.edges.map(({id:Xe})=>({id:Xe,position:this.getEdgeByUniqueId(Xe).position})),Te=Xe=>{Xe.nodes.forEach(({id:dt,position:Sn})=>{this.setNodePosition({node:this.getNodeByUniqueId(dt),position:Sn})}),Xe.edges.forEach(({id:dt,position:Sn})=>{this.setEdgePosition({edge:this.getEdgeByUniqueId(dt),position:Sn})})};Te(r),this.undoStack.push({undo:()=>Te({nodes:ae,edges:me}),redo:()=>Te(r)}),this.triggerNodeLayout(),this.autolayoutStatus="autolayout-performed",this.effects.push({type:"fitToContent"});break}case"selection.cut":{(d=so())==null||d.debouncedTrack(r.type),this.sendSelectionToClipboard(r.clipboardEvent);const ae=I7t(this,Object.values(this.selection));this.deselectAll();const me=this.createDeleteBulkOperation(ae);this.undoStack.exec(me);break}case"selection.copy":{(p=so())==null||p.debouncedTrack(r.type),this.sendSelectionToClipboard(r.clipboardEvent);break}case"paste":{(m=so())==null||m.debouncedTrack(r.type);const ae=gHn(this,r.clipboardEvent);if(!ae||!ae.nodes.length&&!ae.edges.length)break;this.select([...ae.nodes.map(me=>({type:"node",id:me.uniqueId})),...ae.edges.map(me=>({type:"edge",id:me.uniqueId}))]),this.sendSelectionToClipboard(r.clipboardEvent),ae.nodes.forEach(me=>{mr.putEditInExtensionQueue({type:"add_state",path:gr(me.parent),name:me.data.key})}),ae.edges.forEach(me=>{var Te;mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(me.getNodeSource()),targetPath:gr(me.target),transitionPath:yo(me),external:!me.data.internal,guard:(Te=me.data.guard)==null?void 0:Te.type})}),this.undoStack.push({undo:()=>{ae.edges.forEach(me=>{this.createDeleteEdgeOperation(me).redo(),mr.putEditInExtensionQueue({type:"remove_transition",sourcePath:gr(me.getNodeSource()),transitionPath:yo(me)})}),ae.nodes.forEach(me=>{this.deleteNode(me),mr.putEditInExtensionQueue({type:"remove_state",path:gr(me.parent)})}),this.triggerNodeLayout()},redo:()=>{ae.nodes.forEach(me=>{var Te;this.register(me),(Te=me.parent)==null||Te.nodes.push(me),mr.putEditInExtensionQueue({type:"add_state",path:gr(me.parent),name:me.data.key})}),ae.edges.forEach(me=>{var Te;this.register(me),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(me.getNodeSource()),targetPath:gr(me.target),transitionPath:yo(me),external:!me.data.internal,guard:(Te=me.data.guard)==null?void 0:Te.type})}),this.triggerNodeLayout()}}),this.triggerNodeLayout();break}case"selection.delete":{(x=so())==null||x.debouncedTrack(r.type);const ae=I7t(this,Object.values(this.selection));this.deselectAll();const me=this.createDeleteBulkOperation(ae);this.undoStack.exec(me),this.cancelInteraction();break}case"select.box":{this.deselectAll();const ae=this.getEntitiesInRect(new Du(r.box));this.select(ae.map(me=>me instanceof Ju?{type:"node",id:me.uniqueId}:{type:"edge",id:me.uniqueId}));break}case"selection.moveStart":(E=so())==null||E.debouncedTrack(r.type),this.status="movingSelection",this.snapLines=[];break;case"selection.move":{this.status==="movingSelection"&&this.moveSelection(r.delta);break}case"selection.moveCancel":{(k=so())==null||k.debouncedTrack(r.type),this.cancelSelectionMove();break}case"selection.moveEnd":{(T=so())==null||T.debouncedTrack(r.type),this.status="selected";const ae=new Set,me=new Set,Te=jr=>{ae.has(jr)||(ae.add(jr),jr.getContainedEdges().forEach(ki=>{me.add(ki)}),jr.nodes.forEach(Te))},Xe=({node:jr,position:ki})=>{jr._position=ki,jr.delta={dx:0,dy:0},jr.calculateRects()},dt=({edge:jr,position:ki})=>{jr.position=ki,jr.delta={dx:0,dy:0}};Object.values(this.selection).forEach(jr=>{if(jr.type==="node"){const ki=this.getNodeByUniqueId(jr.id);ki&&Te(ki)}else{const ki=this.getEdgeByUniqueId(jr.id);ki&&me.add(ki)}});const Sn=[...me].map(jr=>({edge:jr,position:jr.position})),gn=[...ae].map(jr=>({node:jr,position:jr._position})),yr=[...me].map(jr=>({edge:jr,position:jr.currentPosition})),Sr=[...ae].map(jr=>({node:jr,position:{x:jr._position.x+jr.delta.dx,y:jr._position.y+jr.delta.dy}})),Ur=({nodePositions:jr,edgePositions:ki})=>{ki.forEach(dt),jr.forEach(Xe),this.triggerNodeLayout()};Ur({nodePositions:Sr,edgePositions:yr}),this.undoStack.push({undo:()=>Ur({nodePositions:gn,edgePositions:Sn}),redo:()=>Ur({nodePositions:Sr,edgePositions:yr})});break}case"entities.setSizes":{r.nodeSizes.forEach(ae=>{this.setNodeSize({nodeId:ae.uniqueId,size:ae.size})}),r.edgeSizes.forEach(ae=>{this.setEdgeSize({edgeId:ae.uniqueId,size:ae.size})}),this.autolayoutStatus==="autolayout-needed"?setTimeout(()=>{this.performAutolayout(),this.resolveEdgeLayouts(),this.effects.push({type:"fitToContent"})},300):(this.resolveEdgeLayouts(),this.userMode==="vscode"&&this.effects.push({type:"fitToContent"})),this.triggerNodeLayout();break}case"node.setSize":{this.setNodeSize(r);break}case"node.newEdge.start":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=HVn(ae,r.side);this.status="creatingNewEdge",this.tempEdge={originalSourceSide:r.side,sourceSide:r.side,targetSide:CPe[r.side],originalTargetSide:CPe[r.side],targetPoint:me,target:void 0,nodeId:r.nodeId};break}case"node.newEdge.move":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae||this.status!=="creatingNewEdge"||!this.tempEdge)break;this.tempEdge.targetPoint={x:r.point.x-Yf.width/2,y:r.point.y-Yf.height/2};const me=this.getNodeRectDataAtPoint(r.point);if(me){const Te=me.node;ae.isAncestorOf(Te)||ae===Te?(this.tempEdge.sourceSide="bottom",this.tempEdge.targetSide="top"):(this.tempEdge.sourceSide=this.tempEdge.originalSourceSide,this.tempEdge.targetSide=this.tempEdge.originalTargetSide),me.rectKey==="family"?(this.tempEdge.target=void 0,this.highlight(me.node)):Te.isAncestorOf(ae)?(this.unhighlightAll(),this.tempEdge.target=void 0):(this.tempEdge.target=Te,this.highlight(Te))}else this.unhighlightAll();break}case"node.newEdge.cancel":{if(this.status!=="creatingNewEdge")break;(P=so())==null||P.debouncedTrack(r.type),this.cancelNewEdge();break}case"node.newEdge.end":{const ae=this.getNodeByUniqueId(r.nodeId),{tempEdge:me}=this;if(this.tempEdge=void 0,!ae||ae.data.type==="history"||((I=so())==null||I.debouncedTrack(r.type),this.unhighlightAll(),!me||this.status!=="creatingNewEdge"))break;const Te=!me.target;let Xe=me.target;if(!Xe){const Sn=this.getNodeRectDataAtPoint(r.point),gn=(O=Sn==null?void 0:Sn.node)!=null?O:ae.parent;if(!gn)break;const yr={x:me.targetPoint.x,y:me.targetPoint.y};Xe=this.addNewNode({node:gn,position:yr}),mr.putEditInExtensionQueue({type:"add_state",path:gr(gn),name:Xe.data.key})}const dt=this.addEdge(ae,{edgeConfig:{data:{eventTypeData:A7t(ae),guard:void 0,actions:[],description:void 0,metaEntries:void 0},target:Xe.getSerialisableId()}});if(!dt){console.warn("This should never happen");break}mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(dt.getNodeSource()),targetPath:gr(dt.target),transitionPath:yo(dt),external:!dt.data.internal,guard:(N=dt.data.guard)==null?void 0:N.type}),dt.getNodeSource().parent&&this.triggerNodeLayout(),this.undoStack.push({undo:()=>{this.createDeleteEdgeOperation(dt).redo(),Te&&(this.deleteNode(dt.target),mr.putEditInExtensionQueue({type:"remove_state",path:gr(dt.target)})),this.triggerNodeLayout()},redo:()=>{var Sn;Te&&(this.register(dt.target),dt.target.parent.nodes.push(dt.target),mr.putEditInExtensionQueue({type:"add_state",path:gr(dt.target),name:dt.target.data.key})),this.register(dt),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(dt.getNodeSource()),targetPath:gr(dt.target),transitionPath:yo(dt),external:!dt.data.internal,guard:(Sn=dt.data.guard)==null?void 0:Sn.type}),this.triggerNodeLayout()}}),this.select([{id:dt.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:dt.uniqueId,field:"key"}),this.status="selected";break}case"node.newChildNode":{(j=so())==null||j.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)return;const me=this.addNewNode({...r,node:ae});mr.putEditInExtensionQueue({type:"add_state",name:me.data.key,path:gr(ae)}),this.triggerNodeLayout(),this.undoStack.push({undo:()=>{this.deleteNode(me),mr.putEditInExtensionQueue({type:"remove_state",path:gr(me)}),this.triggerNodeLayout()},redo:()=>{this.register(me),me.parent.nodes.push(me),mr.putEditInExtensionQueue({type:"add_state",name:me.data.key,path:gr(ae)})}}),this.select([{id:me.uniqueId,type:"node"}],{mode:"single"}),this.effects.push({type:"node.focus",nodeId:me.uniqueId});break}case"node.delete":{(L=so())==null||L.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=this.createDeleteBulkOperation({nodes:[ae]});this.undoStack.exec(me);break}case"node.modify":throw new Error("Please remove this event and introduce tags-specific events");case"node.modify.type":{($=so())==null||$.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae){console.error("This should be impossible");return}const me={stateType:ae.data.type,history:ae.data.type==="history"?ae.data.history:void 0},Te=()=>{this.modifyNode(r.nodeId,{type:r.stateType==="normal"?void 0:r.stateType,history:r.stateType==="history"?"shallow":void 0}),mr.putEditInExtensionQueue({type:"set_state_type",path:gr(ae),stateType:r.stateType})};Te(),this.undoStack.push({undo:()=>{this.modifyNode(r.nodeId,{type:me.stateType,history:me.history}),mr.putEditInExtensionQueue({type:"set_state_type",path:gr(ae),stateType:!me.stateType||me.stateType==="atomic"||me.stateType==="compound"?"normal":me.stateType,history:me.history})},redo:Te});break}case"node.modify.invocations.add":{(F=so())==null||F.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=ae.invocations.length,Te=()=>{ae.invocations=[...ae.invocations,r.invokeDefinition],mr.putEditInExtensionQueue({type:"add_invoke",path:gr(ae),source:r.invokeDefinition.src,id:r.invokeDefinition.userIdOverride,invokeIndex:me})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.invocations];Xe.splice(me,1),ae.invocations=Xe,mr.putEditInExtensionQueue({type:"remove_invoke",path:gr(ae),invokeIndex:me})},redo:Te});break}case"node.modify.invocations.delete":{(B=so())==null||B.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=Jh(ae.invocations[r.index]),Te=ae.invocations[r.index],Xe=ae.edges.filter(Sn=>{const gn=Sn.data.eventTypeData;return(gn.type==="invocation.done"||gn.type==="invocation.error")&&gn.invocationId===me}),dt=()=>{const Sn=[...ae.invocations];Sn.splice(r.index,1),ae.invocations=Sn,Xe.forEach(gn=>{mr.putEditInExtensionQueue({type:"remove_transition",sourcePath:gr(gn.getNodeSource()),transitionPath:yo(gn)})}),mr.putEditInExtensionQueue({type:"remove_invoke",path:gr(ae),invokeIndex:r.index}),this.triggerNodeLayout()};dt(),this.undoStack.push({undo:()=>{const Sn=[...ae.invocations];Sn.splice(r.index,0,Te),ae.invocations=Sn,mr.putEditInExtensionQueue({type:"add_invoke",path:gr(ae),source:Te.src,id:Te.userIdOverride,invokeIndex:r.index}),Xe.forEach(gn=>{this.register(gn),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(gn.getNodeSource()),targetPath:gr(gn.target),transitionPath:yo(gn),external:!gn.data.internal})}),this.triggerNodeLayout()},redo:dt});break}case"node.modify.invocations.edit":{(X=so())==null||X.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=Jh(ae.invocations[r.index]),Te=Jh(r.invokeDefinition),Xe=ae.invocations[r.index],dt=ae.edges.filter(gn=>{const yr=gn.data.eventTypeData;return(yr.type==="invocation.done"||yr.type==="invocation.error")&&yr.invocationId===me}).map(gn=>({edge:gn,prevProps:{type:gn.data.eventTypeData.type,invocationId:me},nextProps:{type:gn.data.eventTypeData.type,invocationId:Te}})),Sn=()=>{const gn=[...ae.invocations];gn.splice(r.index,1,r.invokeDefinition),ae.invocations=gn,mr.putEditInExtensionQueue({type:"edit_invoke",path:gr(ae),source:r.invokeDefinition.src,id:r.invokeDefinition.userIdOverride,invokeIndex:r.index}),dt.forEach(({edge:yr,nextProps:Sr})=>{this.edgeModifyEventData(yr.uniqueId,Sr)})};Sn(),this.undoStack.push({undo:()=>{const gn=[...ae.invocations];gn.splice(r.index,1,Xe),ae.invocations=gn,mr.putEditInExtensionQueue({type:"edit_invoke",path:gr(ae),source:r.invokeDefinition.src,id:Xe.userIdOverride,invokeIndex:r.index}),dt.forEach(({edge:yr,prevProps:Sr})=>{this.edgeModifyEventData(yr.uniqueId,Sr)})},redo:Sn});break}case"node.modify.actions.add":{(ne=so())==null||ne.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=ae.data[r.actionType].length,Te=()=>{ae.data[r.actionType]=[...ae.data[r.actionType],r.action],mr.putEditInExtensionQueue({type:"add_action",path:gr(ae),name:r.action.type,actionPath:[r.actionType,me]})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data[r.actionType]];Xe.splice(me,1),ae.data[r.actionType]=Xe,mr.putEditInExtensionQueue({type:"remove_action",path:gr(ae),actionPath:[r.actionType,me]})},redo:Te});break}case"node.modify.actions.delete":{(Z=so())==null||Z.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=ae.data[r.actionType][r.index],Te=()=>{const Xe=[...ae.data[r.actionType]];Xe.splice(r.index,1),ae.data[r.actionType]=Xe,mr.putEditInExtensionQueue({type:"remove_action",path:gr(ae),actionPath:[r.actionType,r.index]})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data[r.actionType]];Xe.splice(r.index,0,me),ae.data[r.actionType]=Xe,mr.putEditInExtensionQueue({type:"add_action",path:gr(ae),name:me.type,actionPath:[r.actionType,r.index]})},redo:Te});break}case"node.modify.actions.edit":{(H=so())==null||H.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),me=ae.data[r.actionType][r.index],Te=()=>{const Xe=[...ae.data[r.actionType]];Xe.splice(r.index,1,r.action),ae.data[r.actionType]=Xe,mr.putEditInExtensionQueue({type:"edit_action",path:gr(ae),actionPath:[r.actionType,r.index],name:r.action.type})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data[r.actionType]];Xe.splice(r.index,1,me),ae.data[r.actionType]=Xe,mr.putEditInExtensionQueue({type:"edit_action",path:gr(ae),actionPath:[r.actionType,r.index],name:me.type})},redo:Te});break}case"node.modify.key":{(ce=so())==null||ce.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.key;if(me===r.key)break;const Te=Xe=>{const dt=gr(ae);if(this.modifyNodeKey(r.nodeId,Xe),!dt.length){mr.putEditInExtensionQueue({type:"set_state_id",path:dt,id:Xe});return}mr.putEditInExtensionQueue({type:"rename_state",path:dt,name:Xe})};Te(r.key),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.key)});break}case"node.modify.description":{(pe=so())==null||pe.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.description;if(me===r.description)return;const Te=Xe=>{this.modifyNode(r.nodeId,{description:Xe}),mr.putEditInExtensionQueue({type:"set_description",statePath:gr(ae),...Xe&&{description:Xe}})};Te(r.description),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.description)});break}case"node.modify.history":{(le=so())==null||le.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.history,Te=Xe=>{ae._data={...ae.data,history:Xe},mr.putEditInExtensionQueue({type:"set_state_type",path:gr(ae),stateType:"history",history:Xe})};Te(r.history),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.history)});break}case"node.modify.meta":{(ye=so())==null||ye.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.metaEntries;if(JSON.stringify(me)===JSON.stringify(r.metaEntries))break;const Te=Xe=>{ae._data={...ae.data,metaEntries:Xe}};Te(r.metaEntries),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.metaEntries)});break}case"node.parent.modify":{const ae=this.getNodeByUniqueId(r.nodeId),me=this.getNodeByUniqueId(r.parentNodeId);if(!ae||!me||ae.isAncestorOf(me)||ae===me)break;const Te=ae.parent;if(!Te)throw new Error("Data/logic consistency problem - you can't reparent a root");const Xe=dt=>{ae.parent.nodes.splice(ae.parent.nodes.findIndex(Sn=>Sn===ae),1),dt.nodes.push(ae),ae.parent=dt,mr.putEditInExtensionQueue({type:"reparent_state",path:gr(ae),newParentPath:gr(dt)}),this.triggerNodeLayout()};Xe(me),this.undoStack.push({undo:()=>Xe(Te),redo:()=>Xe(me)});break}case"edge.setSize":{const{edgeId:ae,size:me}=r;this.setEdgeSize({edgeId:ae,size:me}),this.triggerNodeLayout();break}case"edge.addGuard":{(Ge=so())==null||Ge.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae||ae.data.guard)return;const me=()=>{const Te={type:"New Guard"};ae.data=Object.assign({},ae.data,{guard:Te}),mr.putEditInExtensionQueue({type:"add_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:Te.type})};me(),this.effects.push({type:"edge.focus",edgeId:ae.uniqueId,field:"guard"}),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),mr.putEditInExtensionQueue({type:"remove_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae)})},redo:me});break}case"edge.removeGuard":{(qe=so())==null||qe.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!(ae!=null&&ae.data.guard))return;const me=ae.data.guard,Te=()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),mr.putEditInExtensionQueue({type:"remove_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae)})};Te(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),mr.putEditInExtensionQueue({type:"add_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:me.type})},redo:Te});break}case"edge.addTransition":{(et=so())==null||et.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),me=ae.getConnectedEdge(),Te=new $x({target:ae.target.getSerialisableId(),data:{eventTypeData:ae.data.eventTypeData,guard:void 0,actions:[],description:void 0,internal:vU(ae.getNodeSource(),ae.target),metaEntries:void 0},position:{x:ae.position.x,y:ae.getFamilyRect().bottom+50}},ae);this.register(Te),me&&this.reanchorEdge(me,{newSource:Te});const Xe={type:"New guard"},dt=ae.data.guard?void 0:{redo(){ae.data={...ae.data,guard:Xe},mr.putEditInExtensionQueue({type:"add_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:Xe.type})},undo(){ae.data={...ae.data,guard:void 0},mr.putEditInExtensionQueue({type:"remove_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae)})}};dt==null||dt.redo(),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(Te.getNodeSource()),targetPath:gr(Te.target),transitionPath:yo(Te),external:!Te.data.internal,guard:void 0}),this.undoStack.push({undo:()=>{dt==null||dt.undo(),mr.putEditInExtensionQueue({type:"remove_transition",sourcePath:gr(Te.getNodeSource()),transitionPath:yo(Te)}),me&&this.reanchorEdge(me,{newSource:Te.source}),this.createDeleteEdgeOperation(Te).redo(),this.triggerNodeLayout()},redo:()=>{dt==null||dt.redo(),this.register(Te),me&&this.reanchorEdge(me,{newSource:Te}),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(Te.getNodeSource()),targetPath:gr(Te.target),transitionPath:yo(Te),external:!Te.data.internal,guard:void 0}),this.triggerNodeLayout()}}),this.select([{id:Te.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:Te.uniqueId,field:"guard"}),this.triggerNodeLayout();break}case"edge.delete":{(tt=so())==null||tt.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)return;const me=this.createDeleteEdgeOperation(ae);this.undoStack.exec(me);break}case"undo":{(jt=so())==null||jt.debouncedTrack(r.type),this.undoStack.canUndo()&&this.undoStack.undo();break}case"redo":{(Me=so())==null||Me.debouncedTrack(r.type),this.undoStack.canRedo()&&this.undoStack.redo();break}case"edge.anchor.moveStart":{const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;this.status="movingAnchor",r.anchor==="source"?this.tempAnchor={type:"source",point:r.point,edgeId:ae.uniqueId,newAnchorTarget:void 0}:this.tempAnchor={type:"target",point:r.point,edgeId:ae.uniqueId,newAnchorTarget:void 0};break}case"edge.anchor.move":{if(this.status!=="movingAnchor")break;this.moveAnchor(r);break}case"edge.anchor.moveCancel":{if(this.status!=="movingAnchor")break;(ze=so())==null||ze.debouncedTrack(r.type),this.cancelAnchorMove();break}case"edge.anchor.moveEnd":{(we=so())==null||we.debouncedTrack(r.type);const{tempAnchor:ae}=this;if(this.status!=="movingAnchor"||!ae)break;const me=this.getEdgeByUniqueId(ae.edgeId);if(!me)break;if(this.status="idle",this.unhighlightAll(),ae.newAnchorTarget){if(ae.type==="source"&&ae.newAnchorTarget!==me.getNodeSource()){const Te=({source:yr,newSource:Sr},Ur)=>{const jr=yo(me);let ki=jr;gn&&(Ur?(this.reanchorEdge(gn,{newSource:me}),ki=dt):this.reanchorEdge(gn,{newSource:me.source})),this.reanchorEdge(me,{newSource:Sr}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:gr(Ix(yr)),newSourcePath:gr(Ix(Sr)),transitionPath:jr,newTransitionPath:ki})},Xe=me.source,dt=yo(me),Sn=ae.newAnchorTarget.getAppendantSourceFor(me.data.eventTypeData),gn=me.getConnectedEdge();Te({source:Xe,newSource:Sn}),this.undoStack.push({undo:()=>Te({source:Sn,newSource:Xe},!0),redo:()=>Te({source:Xe,newSource:Sn})})}else if(ae.type==="target"){const Te=({newTarget:Sn})=>{this.reanchorEdge(me,{newTarget:Sn}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:gr(me.getNodeSource()),newTargetPath:gr(Sn),transitionPath:yo(me)}),this.triggerNodeLayout()},Xe=me.target,dt=ae.newAnchorTarget;Te({newTarget:dt}),this.undoStack.push({undo:()=>Te({newTarget:Xe}),redo:()=>Te({newTarget:dt})})}}this.tempAnchor=void 0,this.unhighlightAll(),this.triggerNodeLayout();break}case"edge.modify.guard":{(De=so())==null||De.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(!ae.data.guard&&((be=r.guard)==null?void 0:be.type)){const me=r.guard,Te=()=>{ae.data=Object.assign({},ae.data,{guard:me}),mr.putEditInExtensionQueue({type:"add_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:me.type})};Te(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),mr.putEditInExtensionQueue({type:"remove_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae)})},redo:Te})}else if((Se=r.guard)!=null&&Se.type){const me=ae.data.guard,Te=r.guard,Xe=({guard:dt})=>{ae.data=Object.assign({},ae.data,{guard:dt}),mr.putEditInExtensionQueue({type:"edit_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:dt.type})};Xe({guard:Te}),this.undoStack.push({undo:()=>Xe({guard:me}),redo:()=>Xe({guard:Te})})}else{const me=ae.data.guard,Te=()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),mr.putEditInExtensionQueue({type:"remove_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae)})};Te(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:me}),me&&mr.putEditInExtensionQueue({type:"add_guard",path:gr(ae.getNodeSource()),transitionPath:yo(ae),name:me.type})},redo:Te})}break}case"edge.modify.actions.add":{(Jt=so())==null||Jt.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),me=ae.data.actions.length,Te=()=>{ae.data.actions=[...ae.data.actions,r.action],mr.putEditInExtensionQueue({type:"add_action",path:gr(ae.getNodeSource()),actionPath:[...yo(ae),me],name:r.action.type})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data.actions];Xe.splice(me,1),ae.data.actions=Xe,mr.putEditInExtensionQueue({type:"remove_action",path:gr(ae.getNodeSource()),actionPath:[...yo(ae),me]})},redo:Te});break}case"edge.modify.actions.delete":{(sn=so())==null||sn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),me=ae.data.actions[r.index],Te=()=>{const Xe=[...ae.data.actions];Xe.splice(r.index,1),ae.data.actions=Xe,mr.putEditInExtensionQueue({type:"remove_action",path:gr(ae.getNodeSource()),actionPath:[...yo(ae),r.index]})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data.actions];Xe.splice(r.index,0,me),ae.data.actions=Xe,mr.putEditInExtensionQueue({type:"add_action",path:gr(ae.getNodeSource()),name:me.type,actionPath:[...yo(ae),r.index]})},redo:Te});break}case"edge.modify.actions.edit":{(Tn=so())==null||Tn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),me=ae.data.actions[r.index],Te=()=>{const Xe=[...ae.data.actions];Xe.splice(r.index,1,r.action),ae.data.actions=Xe,mr.putEditInExtensionQueue({type:"edit_action",path:gr(ae.getNodeSource()),actionPath:[...yo(ae),r.index],name:r.action.type})};Te(),this.undoStack.push({undo:()=>{const Xe=[...ae.data.actions];Xe.splice(r.index,1,me),ae.data.actions=Xe,mr.putEditInExtensionQueue({type:"edit_action",path:gr(ae.getNodeSource()),actionPath:[...yo(ae),r.index],name:me.type})},redo:Te});break}case"edge.modify.internal":{(qn=so())==null||qn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=({internal:Te})=>{ae.data=Object.assign({},ae.data,{internal:r.internal}),mr.putEditInExtensionQueue({type:"mark_transition_as_external",sourcePath:gr(ae.getNodeSource()),transitionPath:yo(ae),external:!Te})};me({internal:r.internal}),this.undoStack.push({undo:()=>me({internal:!r.internal}),redo:()=>me({internal:r.internal})});break}case"edge.modify.description":{(rr=so())==null||rr.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(ae.data.description===r.description)return;const me=ae.data.description,Te=Xe=>{ae.data=Object.assign({},ae.data,{description:Xe}),mr.putEditInExtensionQueue({type:"set_description",statePath:gr(ae.getNodeSource()),transitionPath:yo(ae),...Xe&&{description:Xe}}),this.triggerNodeLayout()};Te(r.description),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.description)});break}case"edge.modify.meta":{(Zn=so())==null||Zn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=ae.data.metaEntries;if(JSON.stringify(me)===JSON.stringify(r.metaEntries))break;const Te=Xe=>{ae.data={...ae.data,metaEntries:Xe}};Te(r.metaEntries),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.metaEntries)});break}case"edge.modify.eventType":{(Gr=so())==null||Gr.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(Go(ae.data.eventTypeData,r.eventTypeData))return;const me=ae.data.eventTypeData;if(!(ae.source instanceof Ju)){const Ur=ae.source,jr=ae.getNodeSource().getAppendantSourceFor(r.eventTypeData),ki=ae.getConnectedEdge();this.undoStack.exec({undo:()=>{const Zc=yo(ae);this.edgeModifyEventData(r.edgeId,me),this.reanchorEdge(ae,{newSource:Ur}),ki&&this.reanchorEdge(ki,{newSource:ae}),mr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:gr(ae.getNodeSource()),transitionPath:Zc,newTransitionPath:yo(ae)})},redo:()=>{const Zc=yo(ae);this.edgeModifyEventData(r.edgeId,r.eventTypeData),this.reanchorEdge(ae,{newSource:jr}),ki&&this.reanchorEdge(ki,{newSource:Ur}),mr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:gr(ae.getNodeSource()),transitionPath:Zc,newTransitionPath:yo(ae)})}});break}const Xe=ae.source,dt=ae.getNodeSource(),Sn=dt.getAppendantSourceFor(r.eventTypeData),gn=Sn instanceof Ju?0:Sn.getEdgeGroupIndex()+1,Sr=ae.getGroup().map((Ur,jr)=>({edgeId:Ur.uniqueId,oldTransitionPath:yo(Ur),newTransitionPath:BLt({nodeSource:dt,index:gn+jr,eventTypeData:r.eventTypeData})}));this.undoStack.exec({undo:()=>{const[{newTransitionPath:Ur}]=Sr;for(const jr of Sr)this.edgeModifyEventData(jr.edgeId,me),mr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:gr(dt),transitionPath:Ur,newTransitionPath:jr.oldTransitionPath});this.reanchorEdge(ae,{newSource:Xe})},redo:()=>{const[{oldTransitionPath:Ur}]=Sr;for(const jr of Sr)this.edgeModifyEventData(jr.edgeId,r.eventTypeData),mr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:gr(dt),transitionPath:Ur,newTransitionPath:jr.newTransitionPath});this.reanchorEdge(ae,{newSource:Sn})}});break}case"edge.setSource":{(Je=so())==null||Je.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=ae.getNodeSource(),Te=yo(ae),Xe=this.resolveNodeLike(r.source).getAppendantSourceFor(ae.data.eventTypeData),dt=ae.getConnectedEdge(),Sn=({oldSource:gn,newSource:yr},Sr)=>{const Ur=yo(ae);let jr=Ur;dt&&(Sr?(this.reanchorEdge(dt,{newSource:ae}),jr=Te):this.reanchorEdge(dt,{newSource:ae.source})),this.reanchorEdge(ae,{newSource:yr}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:gr(Ix(gn)),newSourcePath:gr(Ix(yr)),transitionPath:Ur,newTransitionPath:jr}),this.triggerNodeLayout()};Sn({oldSource:me,newSource:Xe}),this.undoStack.push({undo:()=>Sn({oldSource:Xe,newSource:me},!0),redo:()=>Sn({oldSource:me,newSource:Xe})});break}case"edge.setTarget":{(ct=so())==null||ct.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=ae.target,Te=this.resolveNodeLike(r.target),Xe=({newTarget:dt})=>{this.reanchorEdge(ae,{newTarget:dt}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:gr(ae.getNodeSource()),newTargetPath:gr(dt),transitionPath:yo(ae)}),this.triggerNodeLayout()};Xe({newTarget:Te}),this.undoStack.push({undo:()=>Xe({newTarget:me}),redo:()=>Xe({newTarget:Te})});break}case"edge.setSourceAndTarget":{(rn=so())==null||rn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=ae.getNodeSource(),Te=yo(ae),Xe=ae.target,dt=this.resolveNodeLike(r.source).getAppendantSourceFor(ae.data.eventTypeData),Sn=this.resolveNodeLike(r.target),gn=ae.getConnectedEdge(),yr=({newSource:Sr,newTarget:Ur},jr)=>{const ki=gr(ae.getNodeSource()),Zc=yo(ae);let Ee=Zc;gn&&(jr?(this.reanchorEdge(gn,{newSource:ae}),Ee=Te):this.reanchorEdge(gn,{newSource:ae.source})),this.reanchorEdge(ae,{newSource:Sr,newTarget:Ur}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:ki,newSourcePath:gr(Ix(Sr)),newTargetPath:gr(Ur),transitionPath:Zc,newTransitionPath:Ee}),this.triggerNodeLayout()};this.undoStack.exec({undo:()=>yr({newSource:me,newTarget:Xe},!0),redo:()=>yr({newSource:dt,newTarget:Sn})});break}case"edge.targetSelf":{(Ne=so())==null||Ne.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const me=ae.target,Te=ae.getNodeSource(),Xe=({newTarget:dt})=>{this.reanchorEdge(ae,{newTarget:dt}),mr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:gr(ae.getNodeSource()),newTargetPath:gr(dt),transitionPath:yo(ae)}),this.triggerNodeLayout()};this.undoStack.exec({undo:()=>Xe({newTarget:me}),redo:()=>Xe({newTarget:Te})});break}case"node.setInitialState":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.initial,Te=Xe=>{this.modifyNode(ae.uniqueId,{initial:Xe}),mr.putEditInExtensionQueue({type:"set_initial_state",path:gr(ae),initialState:Xe})};Te(r.key),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.key)});break}case"node.setColor":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const me=ae.data.color,Te=Xe=>this.modifyNode(ae.uniqueId,{color:Xe});Te(r.color),this.undoStack.push({undo:()=>Te(me),redo:()=>Te(r.color)});break}case"interact.enter":{const ae=Object.values(this.selection);if(ae.length===1)switch(ae[0].type){case"node":{const me=this.getNodeByUniqueId(ae[0].id);if(!me)break;this.effects.push({type:"node.focus",nodeId:me.uniqueId});break}case"edge":{const me=this.getEdgeByUniqueId(ae[0].id);if(!me)break;this.effects.push({type:"edge.focus",edgeId:me.uniqueId,field:"key"});break}}break}}if(kHn[r.type]){const ae=Qce(this);this._layoutString!==ae&&(this._layoutString=ae,mr.putEditInExtensionQueue({type:"update_layout_string",layoutString:ae})),this.effects.push({type:"reportChange"})}mr.flushEditsToExtension({reason:r.type==="undo"?"undo":r.type==="redo"?"redo":void 0})}setEdgeSize({edgeId:r,size:c}){if(this.status!=="movingSelection"){const u=this.getEdgeByUniqueId(r);if(!u)return;u.size={height:c.height,width:c.width}}}resolveEdgeLayouts(){this.edges.filter(r=>r.layoutStatus==="needs-layout").forEach(r=>{const c=r.getNodeSource();if(c.labelSize.height>0&&c.labelSize.width>0){const u=c.findBestSiblingPosition("right",r);this.setEdgePosition({edge:r,position:u}),r.layoutStatus="done"}})}moveAnchor(r){if(this.status!=="movingAnchor"||!this.tempAnchor)return;this.tempAnchor.point=r.point;const c=this.getNodeRectDataAtPoint(r.point);c?c.rectKey!=="family"?(this.tempAnchor.newAnchorTarget=c.node,this.highlight(c.node)):(this.tempAnchor.newAnchorTarget=void 0,this.unhighlightAll()):(this.tempAnchor.newAnchorTarget=void 0,this.unhighlightAll())}reanchorEdge(r,{newSource:c=r.source,newTarget:u=r.target}){const d=r.getNodeSource(),p=Ix(c);r.data=Object.assign({},r.data,{internal:d===p&&vU(d,r.target)?r.data.internal:vU(p,u)}),r.source=c,r.target=u}edgeModifyEventData(r,c){const u=this.getEdgeByUniqueId(r);!u||(u.data.eventTypeData=c)}createDeleteEdgeOperation(r){const c=r.getConnectedEdge();return{undo:()=>{this.register(r),c&&this.reanchorEdge(c,{newSource:r}),mr.putEditInExtensionQueue({type:"add_transition",sourcePath:gr(r.getNodeSource()),targetPath:gr(r.target),transitionPath:yo(r),external:!r.data.internal})},redo:()=>{c&&this.reanchorEdge(c,{newSource:r.source}),this.unregister(r),mr.putEditInExtensionQueue({type:"remove_transition",sourcePath:gr(r.getNodeSource()),transitionPath:yo(r)})}}}getSortedNodesWithin(r){const c=new Set;function u(p){c.add(p);for(const m of p.nodes)u(m)}for(const p of r)c.has(p)||u(p);const d=p=>{let m=0,x=p;for(;x;)m++,x=x.parent;return m};return Array.from(c).sort((p,m)=>d(m)-d(p))}deleteNode(r){if(!r.parent){console.error(`Cannot delete root node (ID: "${r.getSerialisableId()}")`);return}return QVn(r.parent.nodes,r),this.unregister(r),r}sendSelectionToClipboard(r){var E;if(!(Object.values(this.selection).length>0))return;const u=sS(Object.values(this.selection).map(k=>{if(k.type==="node"){const P=this.getNodeByUniqueId(k.id);return P==null?void 0:P.currentRects.family}const T=this.getEdgeByUniqueId(k.id);return T==null?void 0:T.getBounds()})),d={nodes:[],edges:[],bounds:{height:u.height,width:u.width,x:u.x,y:u.y}},p=new Set,m=k=>{p.add(k.id),k.nodes.forEach(m)};Object.values(this.selection).forEach(k=>{if(k.type==="node"){if(k.id===this.root.uniqueId)return;const T=this.getNodeByUniqueId(k.id);if(p.has(T.getSerialisableId()))return;const P=cfe(T);d.nodes.push(P),m(P)}else{const T=this.getEdgeByUniqueId(k.id);d.edges.push(oNe(T))}}),this.selection[this.root.uniqueId]&&(d.rootName=this.root.data.key,d.context=this.data.context);try{(E=r.clipboardData)==null||E.setData("text/plain",JSON.stringify(d))}catch(k){console.warn(k)}}addNewNode(r){var x;const c=r.node,u=(x=r.position)!=null?x:Wce(c),d=THn(c),p={nodes:[],data:{entry:[],exit:[],invoke:[],key:d,tags:[],...r.data},position:u},m=new Ju(p,this.self,r.node);return this.register(m),c.nodes.push(m),m}setNodeSize(r){const c=this.getNodeByUniqueId(r.nodeId);!c||(c.labelSize=r.size,c.layoutStatus==="needs-layout"&&(c._position=Wce(c.parent),c.layoutStatus="done"),c.calculateRects(),Oae(c).forEach(u=>{u.calculateRects()}))}getNodeEdges(r){return this.edges.filter(c=>c.getNodeSource()===r)}setNodePosition(r){const{node:c}=r;if(c.nodes.length){const u={dx:r.position.x-c.position.x,dy:r.position.y-c.position.y};c.nodes.forEach(d=>{this.setNodePosition({node:d,position:{x:d.position.x+u.dx,y:d.position.y+u.dy}})})}else c._position=r.position;Oae(r.node).forEach(u=>{u.calculateRects()})}setEdgePosition({edge:r,position:c}){r.position=c,E7t(r).forEach(u=>{u.calculateRects()})}select(r,{mode:c="single"}={}){c==="single"&&this.deselectAll(),r.forEach(u=>{u.type==="edge"?this.selection[u.id]=u:this.selection[u.id]=u})}deselectById(r){delete this.selection[r]}selectAll(){const r=this.nodes.map(u=>({type:"node",id:u.uniqueId})),c=this.edges.map(u=>({type:"edge",id:u.uniqueId}));this.select([...r,...c],{mode:"multi"})}deselectAll(){this.selection={}}highlight(r){this.unhighlightAll(),this.highlights=new Set([r]),r.isHighlighted=!0}unhighlight(r){this.highlights.delete(r),r.isHighlighted=!1}unhighlightAll(){this.highlights.forEach(r=>this.unhighlight(r))}register(r){r instanceof Ju?(this._nodes.add(r),this.nodeMap.set(r.uniqueId,r)):r instanceof $x&&(this._edges.add(r),this.edgeMap.set(r.uniqueId,r))}unregister(r){this.deselectById(r.uniqueId),r instanceof Ju?(this._nodes.delete(r),this.nodeMap.delete(r.uniqueId)):r instanceof $x&&(this._edges.delete(r),this.edgeMap.delete(r.uniqueId))}getNodeBySerialisableId(r){const c=r.split(".").slice(1);let u=this.root,d;for(;u&&(d=c.shift());)u=u.nodes.find(p=>p.data.key===d);return u}getNodeByUniqueId(r){return this.nodeMap.get(r)}triggerNodeLayout(){function r(c){c.nodes.forEach(u=>{r(u)}),c.calculateRects()}r(this.root)}getNodeAtPoint(r,c="family"){const u=this.nodes.filter(d=>IHn(r,d.currentRects[c]));return u.length?u[u.length-1]:void 0}getNodeRectDataAtPoint(r){const c=this.getNodeAtPoint(r);if(!c)return;const u=c.getIntersectingRect(r);if(!!u)return{node:c,rectKey:u.rectKey,rect:u.rect}}getEntitiesInRect(r){const c=[];return this.nodes.forEach(u=>{u7e(r,u.currentRects.label)&&c.push(u)}),this.edges.forEach(u=>{u7e(r,u.getLabelRect())&&c.push(u)}),c}getEdgeBySerialisableId(r){return this.edges.find(c=>c.getSerialisableId()===r)}getEdgeByUniqueId(r){return this.edgeMap.get(r)}addEdge(r,c){const u=Ix(r);if(u.data.type==="history")return;const d=this.getNodeBySerialisableId(c.edgeConfig.target);let p;if(c.position)p=c.position;else if(d===u){const E=u.currentRects.family.centerSide("left");p={x:E.x-160,y:E.y-g7e.height/2}}else{const x=u.isAncestorOf(d),E=d.currentRects.family,k=_Vn(E)?E:MVn(E);p=DVn(x?u.currentRects.label:u.currentRects.family,k),p.x-=g7e.width/2,p.y-=g7e.height/2}const m=new $x({...c.edgeConfig,position:p,data:{...c.edgeConfig.data,internal:vU(u,d)}},r);return this.register(m),m}cancelInteraction(){switch(this.status){case"movingSelection":this.cancelSelectionMove();return;case"creatingNewEdge":this.cancelNewEdge();return;case"movingAnchor":this.cancelAnchorMove();return;case"selected":this.deselectAll();return}}cancelSelectionMove(){this.status="selected",this.moveSelection({dx:0,dy:0})}cancelNewEdge(){this.unhighlightAll(),this.tempEdge=void 0,this.status="idle"}cancelAnchorMove(){this.unhighlightAll(),this.tempAnchor=void 0,this.status="idle"}createDeleteBulkOperation(r){const c=this.getSortedNodesWithin(r.nodes||[]),u=c.flatMap(m=>m.getSourceAndTargetEdges()),p=[...new Set([...u,...r.edges||[]])].map(m=>this.createDeleteEdgeOperation(m));return{redo:()=>{p.forEach(m=>m.redo()),c.forEach(m=>{this.deleteNode(m),mr.putEditInExtensionQueue({type:"remove_state",path:gr(m)})}),this.triggerNodeLayout()},undo:()=>{c.reverse().forEach(m=>{this.register(m),m.parent.nodes.push(m),mr.putEditInExtensionQueue({type:"add_state",path:gr(m.parent),name:m.data.key})}),p.forEach(m=>m.undo()),this.triggerNodeLayout()}}}}const g7e=new Du({width:80,height:36,x:0,y:0}),T7t=(n,r,c,u,d="web",p)=>EHn((m,x)=>(m.receive(x),m),new CHn(n,r,c,u,d,p)),A7t=n=>{const r=n,c=r.edges,u=r.invocations.find(x=>!c.some(E=>E.data.eventTypeData.type==="invocation.done"&&E.data.eventTypeData.invocationId===Jh(x)));if(u)return{type:"invocation.done",invocationId:Jh(u)};const d=r.invocations.find(x=>!c.some(E=>E.data.eventTypeData.type==="invocation.error"&&E.data.eventTypeData.invocationId===Jh(x)));if(d)return{type:"invocation.error",invocationId:d.userIdOverride||d.internalUniqueId};let p=c.length+1,m=`Event ${p}`;for(;c.some(x=>x.data.eventTypeData.type==="named"&&x.data.eventTypeData.eventType===m);)p++,m=`Event ${p}`;return{type:"named",eventType:m}},IHn=(n,r)=>n.x>r.left&&n.xr.top&&n.y{const r=new Set(n.nodes.map(u=>u.data.key));let c=1;for(;r.has(`new state ${c}`);)c++;return`new state ${c}`},AHn=(n,r)=>{if(n.type==="edge"){const u=r.getEdgeByUniqueId(n.id);return[u.getLabelRect().translate(-(u==null?void 0:u.delta.dx),-u.delta.dy),u.delta]}const c=r.getNodeByUniqueId(n.id);return[c.currentRects.family.translate(-c.delta.dx,-c.delta.dy),c.delta]},zLt=rfe()?window.localStorage:ife(),PHn=()=>{var c;const r=(c=zLt.getItem("panels"))!=null?c:(!1).toString();try{return Boolean(JSON.parse(r))}catch{return!1}},OHn=(n,r)=>{var c;return lN({graphActor:n,selected:void 0,activeState:void 0,initialState:void 0,selectionBox:null,eventLog:[],leftPanel:(c=r==null?void 0:r.leftPanelDefaultOpen)!=null?c:!0},{events:{"KEY.DELETE":()=>({}),"KEY.ESCAPE":()=>({}),"KEYDOWN.SHIFT":()=>({}),"KEYUP.SHIFT":()=>({}),INPUT:u=>({entity:u}),"INPUT.CANCEL":()=>({}),SELECT:u=>({entity:u}),"SIMULATION.EVENT.CLICK":(u,d)=>({eventType:u,guardName:d}),"SIMULATION.EVENTLOG.CLICK":u=>({index:u}),"SIMULATION.RESET":()=>({}),"mode.simulate":()=>({}),"mode.edit":()=>({}),"mode.test":()=>({}),"selectionBox.change":u=>({selectionBox:u}),"leftPanel.toggle":()=>({}),CONFIG_UPDATED_BY_POSTMESSAGE:()=>({}),GRAPH_ACTOR_UPDATED:u=>({actor:u})}})},_Hn=({graphActor:n,ref:r,canvasOpts:c,initialViewBox:u})=>{const d=OHn(n,c);return d.createMachine({preserveActionOrder:!0,invoke:[{id:"canvasInteractions",src:()=>Sq.withContext({...mb.initialContext,ref:r,graphActor:n,viewBox:new DD(u||JDe),persistedViewBox:u})}],initial:"editing",states:{editing:{initial:"idle",entry:d.assign({activeState:void 0,eventLog:[]}),exit:p=>p.graphActor.send({type:"deselectAll"}),invoke:{src:p=>()=>Il.bind(window,{type:"keydown",options:{capture:!0},listener:m=>{const x=m.target;if(fN(x))return;const E=k=>{m.preventDefault(),m.stopPropagation(),p.graphActor.send(k)};switch(m.key){case"z":{if(!xq(m))return;m.shiftKey?E({type:"redo"}):E({type:"undo"});return}case"a":if(!xq(m))return;E({type:"selectAll"})}}})},states:{idle:{on:{"selectionBox.change":{target:"selecting",actions:[eo({selectionBox:(p,m)=>m.selectionBox})]}}},selecting:{on:{"selectionBox.change":[{cond:(p,m)=>!!m.selectionBox,actions:[d.assign({selectionBox:(p,m)=>m.selectionBox}),p=>{p.graphActor.send({type:"select.box",box:p.selectionBox,mode:"single"})}]},{target:"idle",actions:d.assign({selectionBox:null})}],"KEY.ESCAPE":"idle"}},input:{on:{"INPUT.CANCEL":"idle"},always:{target:"idle",cond:p=>!Object.keys(p.graphActor.snapshot.selection).length},initial:"unknown",states:{unknown:{always:[{target:"state",cond:p=>Object.keys(p.graphActor.snapshot.selection).length===1&&Object.values(p.graphActor.snapshot.selection)[0].type==="node"},{target:"edge",cond:p=>p.graphActor.snapshot.selection instanceof $x}]},edge:{tags:"edgeInput"},newEdge:{tags:"edgeInput",on:{}},state:{tags:"stateInput",entry:dBn(p=>p.selected)}}}},on:{"KEY.DELETE":{actions:p=>{p.graphActor.send({type:"selection.delete"})}},"KEY.ESCAPE":{actions:"deselectAll"},INPUT:".input"}},simulating:{entry:[eo(p=>{const m=Nse(p);return{activeState:m.initialState,initialState:m.initialState}})],exit:eo(()=>({activeState:void 0,eventLog:[],initialState:void 0})),on:{CONFIG_UPDATED_BY_POSTMESSAGE:"editing","SIMULATION.RESET":{actions:eo(p=>({activeState:Nse(p).initialState}))},"SIMULATION.EVENTLOG.CLICK":{cond:(p,m)=>Boolean(p.eventLog[m.index]),actions:eo((p,m)=>{const x=p.eventLog.slice(0,m.index),E=Nse(p),k=x.reduce((T,P)=>E.transition(T,P),E.initialState);return{eventLog:x,activeState:k}})},"SIMULATION.EVENT.CLICK":{actions:eo((p,m)=>{const x=Nse(p),E=x.transition(p.activeState||x.initialState,{event:{type:m.eventType},guardNamesToEnsurePass:m.guardName?[m.guardName]:[]});return{eventLog:[...p.eventLog,{event:{type:m.eventType},guardNamesToEnsurePass:m.guardName?[m.guardName]:[],newState:E}],activeState:E}})}}},testing:{}},on:{GRAPH_ACTOR_UPDATED:{actions:d.assign((p,m)=>({graphActor:m.actor}))},SELECT:{actions:d.assign({selected:(p,m)=>m.entity})},"mode.simulate":{target:".simulating",actions:["focusSvgRef"]},"mode.edit":".editing","mode.test":".testing","leftPanel.toggle":{actions:[d.assign({leftPanel:p=>!p.leftPanel}),"persistPanelState"]}}},{actions:{focusSvgRef:()=>{var p;(p=r.current)==null||p.focus()},deselectAll:p=>{p.graphActor.send({type:"deselectAll"})},persistPanelState:p=>{zLt.setItem("panels",JSON.stringify(p.leftPanel))}}})},Nse=n=>{const{config:r}=L$t(dN.toJSON(n.graphActor.snapshot));return new wVn(r)};function La(n,r,{checkForDefaultPrevented:c=!0}={}){return function(d){if(n==null||n(d),c===!1||!d.defaultPrevented)return r==null?void 0:r(d)}}function xW(n,r=[]){let c=[];function u(p,m){const x=U.exports.createContext(m),E=c.length;c=[...c,m];function k(P){const{scope:I,children:O,...N}=P,j=(I==null?void 0:I[n][E])||x,L=U.exports.useMemo(()=>N,Object.values(N));return U.exports.createElement(j.Provider,{value:L},O)}function T(P,I){const O=(I==null?void 0:I[n][E])||x,N=U.exports.useContext(O);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${p}\``)}return k.displayName=p+"Provider",[k,T]}const d=()=>{const p=c.map(m=>U.exports.createContext(m));return function(x){const E=(x==null?void 0:x[n])||p;return U.exports.useMemo(()=>({[`__scope${n}`]:{...x,[n]:E}}),[x,E])}};return d.scopeName=n,[u,MHn(d,...r)]}function MHn(...n){const r=n[0];if(n.length===1)return r;const c=()=>{const u=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(p){const m=u.reduce((x,{useScope:E,scopeName:k})=>{const P=E(p)[`__scope${k}`];return{...x,...P}},{});return U.exports.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return c.scopeName=r.scopeName,c}function DHn(n,r){typeof n=="function"?n(r):n!=null&&(n.current=r)}function vNe(...n){return r=>n.forEach(c=>DHn(c,r))}function _b(...n){return U.exports.useCallback(vNe(...n),n)}const Oq=U.exports.forwardRef((n,r)=>{const{children:c,...u}=n,d=U.exports.Children.toArray(c),p=d.find(jHn);if(p){const m=p.props.children,x=d.map(E=>E===p?U.exports.Children.count(m)>1?U.exports.Children.only(null):U.exports.isValidElement(m)?m.props.children:null:E);return U.exports.createElement(RPe,ia({},u,{ref:r}),U.exports.isValidElement(m)?U.exports.cloneElement(m,void 0,x):null)}return U.exports.createElement(RPe,ia({},u,{ref:r}),c)});Oq.displayName="Slot";const RPe=U.exports.forwardRef((n,r)=>{const{children:c,...u}=n;return U.exports.isValidElement(c)?U.exports.cloneElement(c,{...RHn(u,c.props),ref:vNe(r,c.ref)}):U.exports.Children.count(c)>1?U.exports.Children.only(null):null});RPe.displayName="SlotClone";const NHn=({children:n})=>U.exports.createElement(U.exports.Fragment,null,n);function jHn(n){return U.exports.isValidElement(n)&&n.type===NHn}function RHn(n,r){const c={...r};for(const u in r){const d=n[u],p=r[u];/^on[A-Z]/.test(u)?c[u]=(...x)=>{p==null||p(...x),d==null||d(...x)}:u==="style"?c[u]={...d,...p}:u==="className"&&(c[u]=[d,p].filter(Boolean).join(" "))}return{...n,...c}}const $Hn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Jx=$Hn.reduce((n,r)=>{const c=U.exports.forwardRef((u,d)=>{const{asChild:p,...m}=u,x=p?Oq:r;return U.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),U.exports.createElement(x,ia({},m,{ref:d}))});return c.displayName=`Primitive.${r}`,{...n,[r]:c}},{});function VLt(n,r){n&&PS.exports.flushSync(()=>n.dispatchEvent(r))}function ULt(n){const r=n+"CollectionProvider",[c,u]=xW(r),[d,p]=c(r,{collectionRef:{current:null},itemMap:new Map}),m=O=>{const{scope:N,children:j}=O,L=ut.useRef(null),$=ut.useRef(new Map).current;return ut.createElement(d,{scope:N,itemMap:$,collectionRef:L},j)},x=n+"CollectionSlot",E=ut.forwardRef((O,N)=>{const{scope:j,children:L}=O,$=p(x,j),F=_b(N,$.collectionRef);return ut.createElement(Oq,{ref:F},L)}),k=n+"CollectionItemSlot",T="data-radix-collection-item",P=ut.forwardRef((O,N)=>{const{scope:j,children:L,...$}=O,F=ut.useRef(null),B=_b(N,F),X=p(k,j);return ut.useEffect(()=>(X.itemMap.set(F,{ref:F,...$}),()=>void X.itemMap.delete(F))),ut.createElement(Oq,{[T]:"",ref:B},L)});function I(O){const N=p(n+"CollectionConsumer",O);return ut.useCallback(()=>{const L=N.collectionRef.current;if(!L)return[];const $=Array.from(L.querySelectorAll(`[${T}]`));return Array.from(N.itemMap.values()).sort((X,ne)=>$.indexOf(X.ref.current)-$.indexOf(ne.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:E,ItemSlot:P},I,u]}const LHn=U.exports.createContext(void 0);function HLt(n){const r=U.exports.useContext(LHn);return n||r||"ltr"}function Mw(n){const r=U.exports.useRef(n);return U.exports.useEffect(()=>{r.current=n}),U.exports.useMemo(()=>(...c)=>{var u;return(u=r.current)===null||u===void 0?void 0:u.call(r,...c)},[])}function FHn(n){const r=Mw(n);U.exports.useEffect(()=>{const c=u=>{u.key==="Escape"&&r(u)};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r])}const $Pe="dismissableLayer.update",BHn="dismissableLayer.pointerDownOutside",zHn="dismissableLayer.focusOutside";let P7t;const VHn=U.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UHn=U.exports.forwardRef((n,r)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:x,...E}=n,k=U.exports.useContext(VHn),[T,P]=U.exports.useState(null),[,I]=U.exports.useState({}),O=_b(r,Z=>P(Z)),N=Array.from(k.layers),[j]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),L=N.indexOf(j),$=T?N.indexOf(T):-1,F=k.layersWithOutsidePointerEventsDisabled.size>0,B=$>=L,X=HHn(Z=>{const H=Z.target,ce=[...k.branches].some(pe=>pe.contains(H));!B||ce||(d==null||d(Z),m==null||m(Z),Z.defaultPrevented||x==null||x())}),ne=qHn(Z=>{const H=Z.target;[...k.branches].some(pe=>pe.contains(H))||(p==null||p(Z),m==null||m(Z),Z.defaultPrevented||x==null||x())});return FHn(Z=>{$===k.layers.size-1&&(u==null||u(Z),!Z.defaultPrevented&&x&&(Z.preventDefault(),x()))}),U.exports.useEffect(()=>{if(!!T)return c&&(k.layersWithOutsidePointerEventsDisabled.size===0&&(P7t=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(T)),k.layers.add(T),O7t(),()=>{c&&k.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=P7t)}},[T,c,k]),U.exports.useEffect(()=>()=>{!T||(k.layers.delete(T),k.layersWithOutsidePointerEventsDisabled.delete(T),O7t())},[T,k]),U.exports.useEffect(()=>{const Z=()=>I({});return document.addEventListener($Pe,Z),()=>document.removeEventListener($Pe,Z)},[]),U.exports.createElement(Jx.div,ia({},E,{ref:O,style:{pointerEvents:F?B?"auto":"none":void 0,...n.style},onFocusCapture:La(n.onFocusCapture,ne.onFocusCapture),onBlurCapture:La(n.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:La(n.onPointerDownCapture,X.onPointerDownCapture)}))});function HHn(n){const r=Mw(n),c=U.exports.useRef(!1),u=U.exports.useRef(()=>{});return U.exports.useEffect(()=>{const d=m=>{if(m.target&&!c.current){let k=function(){qLt(BHn,r,E,{discrete:!0})};var x=k;const E={originalEvent:m};m.pointerType==="touch"?(document.removeEventListener("click",u.current),u.current=k,document.addEventListener("click",u.current,{once:!0})):k()}c.current=!1},p=window.setTimeout(()=>{document.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(p),document.removeEventListener("pointerdown",d),document.removeEventListener("click",u.current)}},[r]),{onPointerDownCapture:()=>c.current=!0}}function qHn(n){const r=Mw(n),c=U.exports.useRef(!1);return U.exports.useEffect(()=>{const u=d=>{d.target&&!c.current&&qLt(zHn,r,{originalEvent:d},{discrete:!1})};return document.addEventListener("focusin",u),()=>document.removeEventListener("focusin",u)},[r]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function O7t(){const n=new CustomEvent($Pe);document.dispatchEvent(n)}function qLt(n,r,c,{discrete:u}){const d=c.originalEvent.target,p=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:c});r&&d.addEventListener(n,r,{once:!0}),u?VLt(d,p):d.dispatchEvent(p)}let b7e=0;function WHn(){U.exports.useEffect(()=>{var n,r;const c=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(n=c[0])!==null&&n!==void 0?n:_7t()),document.body.insertAdjacentElement("beforeend",(r=c[1])!==null&&r!==void 0?r:_7t()),b7e++,()=>{b7e===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(u=>u.remove()),b7e--}},[])}function _7t(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",n}const m7e="focusScope.autoFocusOnMount",v7e="focusScope.autoFocusOnUnmount",M7t={bubbles:!1,cancelable:!0},GHn=U.exports.forwardRef((n,r)=>{const{loop:c=!1,trapped:u=!1,onMountAutoFocus:d,onUnmountAutoFocus:p,...m}=n,[x,E]=U.exports.useState(null),k=Mw(d),T=Mw(p),P=U.exports.useRef(null),I=_b(r,j=>E(j)),O=U.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.exports.useEffect(()=>{if(u){let $=function(B){if(O.paused||!x)return;const X=B.target;x.contains(X)?P.current=X:G9(P.current,{select:!0})},F=function(B){O.paused||!x||x.contains(B.relatedTarget)||G9(P.current,{select:!0})};var L=$,j=F;return document.addEventListener("focusin",$),document.addEventListener("focusout",F),()=>{document.removeEventListener("focusin",$),document.removeEventListener("focusout",F)}}},[u,x,O.paused]),U.exports.useEffect(()=>{if(x){N7t.add(O);const j=document.activeElement;if(!x.contains(j)){const $=new CustomEvent(m7e,M7t);x.addEventListener(m7e,k),x.dispatchEvent($),$.defaultPrevented||(XHn(JHn(WLt(x)),{select:!0}),document.activeElement===j&&G9(x))}return()=>{x.removeEventListener(m7e,k),setTimeout(()=>{const $=new CustomEvent(v7e,M7t);x.addEventListener(v7e,T),x.dispatchEvent($),$.defaultPrevented||G9(j!=null?j:document.body,{select:!0}),x.removeEventListener(v7e,T),N7t.remove(O)},0)}}},[x,k,T,O]);const N=U.exports.useCallback(j=>{if(!c&&!u||O.paused)return;const L=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,$=document.activeElement;if(L&&$){const F=j.currentTarget,[B,X]=KHn(F);B&&X?!j.shiftKey&&$===X?(j.preventDefault(),c&&G9(B,{select:!0})):j.shiftKey&&$===B&&(j.preventDefault(),c&&G9(X,{select:!0})):$===F&&j.preventDefault()}},[c,u,O.paused]);return U.exports.createElement(Jx.div,ia({tabIndex:-1},m,{ref:I,onKeyDown:N}))});function XHn(n,{select:r=!1}={}){const c=document.activeElement;for(const u of n)if(G9(u,{select:r}),document.activeElement!==c)return}function KHn(n){const r=WLt(n),c=D7t(r,n),u=D7t(r.reverse(),n);return[c,u]}function WLt(n){const r=[],c=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const d=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||d?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)r.push(c.currentNode);return r}function D7t(n,r){for(const c of n)if(!YHn(c,{upTo:r}))return c}function YHn(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function QHn(n){return n instanceof HTMLInputElement&&"select"in n}function G9(n,{select:r=!1}={}){if(n&&n.focus){const c=document.activeElement;n.focus({preventScroll:!0}),n!==c&&QHn(n)&&r&&n.select()}}const N7t=ZHn();function ZHn(){let n=[];return{add(r){const c=n[0];r!==c&&(c==null||c.pause()),n=j7t(n,r),n.unshift(r)},remove(r){var c;n=j7t(n,r),(c=n[0])===null||c===void 0||c.resume()}}}function j7t(n,r){const c=[...n],u=c.indexOf(r);return u!==-1&&c.splice(u,1),c}function JHn(n){return n.filter(r=>r.tagName!=="A")}const jD=Boolean(globalThis==null?void 0:globalThis.document)?U.exports.useLayoutEffect:()=>{},eqn=gTe["useId".toString()]||(()=>{});let tqn=0;function LPe(n){const[r,c]=U.exports.useState(eqn());return jD(()=>{n||c(u=>u!=null?u:String(tqn++))},[n]),n||(r?`radix-${r}`:"")}function pN(n){return n.split("-")[0]}function lfe(n){return n.split("-")[1]}function gN(n){return["top","bottom"].includes(pN(n))?"x":"y"}function yNe(n){return n==="y"?"height":"width"}function R7t(n,r,c){let{reference:u,floating:d}=n;const p=u.x+u.width/2-d.width/2,m=u.y+u.height/2-d.height/2,x=gN(r),E=yNe(x),k=u[E]/2-d[E]/2,T=pN(r),P=x==="x";let I;switch(T){case"top":I={x:p,y:u.y-d.height};break;case"bottom":I={x:p,y:u.y+u.height};break;case"right":I={x:u.x+u.width,y:m};break;case"left":I={x:u.x-d.width,y:m};break;default:I={x:u.x,y:u.y}}switch(lfe(r)){case"start":I[x]-=k*(c&&P?-1:1);break;case"end":I[x]+=k*(c&&P?-1:1);break}return I}const nqn=async(n,r,c)=>{const{placement:u="bottom",strategy:d="absolute",middleware:p=[],platform:m}=c,x=await(m.isRTL==null?void 0:m.isRTL(r));let E=await m.getElementRects({reference:n,floating:r,strategy:d}),{x:k,y:T}=R7t(E,u,x),P=u,I={},O=0;for(let N=0;N({name:"arrow",options:n,async fn(r){const{element:c,padding:u=0}=n!=null?n:{},{x:d,y:p,placement:m,rects:x,platform:E}=r;if(c==null)return{};const k=GLt(u),T={x:d,y:p},P=gN(m),I=lfe(m),O=yNe(P),N=await E.getDimensions(c),j=P==="y"?"top":"left",L=P==="y"?"bottom":"right",$=x.reference[O]+x.reference[P]-T[P]-x.floating[O],F=T[P]-x.reference[P],B=await(E.getOffsetParent==null?void 0:E.getOffsetParent(c));let X=B?P==="y"?B.clientHeight||0:B.clientWidth||0:0;X===0&&(X=x.floating[O]);const ne=$/2-F/2,Z=k[j],H=X-N[O]-k[L],ce=X/2-N[O]/2+ne,pe=FPe(Z,ce,H),Ge=(I==="start"?k[j]:k[L])>0&&ce!==pe&&x.reference[O]<=x.floating[O]?cesqn[r])}function aqn(n,r,c){c===void 0&&(c=!1);const u=lfe(n),d=gN(n),p=yNe(d);let m=d==="x"?u===(c?"end":"start")?"right":"left":u==="start"?"bottom":"top";return r.reference[p]>r.floating[p]&&(m=tue(m)),{main:m,cross:tue(m)}}const cqn={start:"end",end:"start"};function L7t(n){return n.replace(/start|end/g,r=>cqn[r])}const uqn=["top","right","bottom","left"];function lqn(n){const r=tue(n);return[L7t(n),r,L7t(r)]}const fqn=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var c;const{placement:u,middlewareData:d,rects:p,initialPlacement:m,platform:x,elements:E}=r,{mainAxis:k=!0,crossAxis:T=!0,fallbackPlacements:P,fallbackStrategy:I="bestFit",flipAlignment:O=!0,...N}=n,j=pN(u),$=P||(j===m||!O?[tue(m)]:lqn(m)),F=[m,...$],B=await eue(r,N),X=[];let ne=((c=d.flip)==null?void 0:c.overflows)||[];if(k&&X.push(B[j]),T){const{main:pe,cross:le}=aqn(u,p,await(x.isRTL==null?void 0:x.isRTL(E.floating)));X.push(B[pe],B[le])}if(ne=[...ne,{placement:u,overflows:X}],!X.every(pe=>pe<=0)){var Z,H;const pe=((Z=(H=d.flip)==null?void 0:H.index)!=null?Z:0)+1,le=F[pe];if(le)return{data:{index:pe,overflows:ne},reset:{placement:le}};let ye="bottom";switch(I){case"bestFit":{var ce;const Ge=(ce=ne.map(qe=>[qe,qe.overflows.filter(et=>et>0).reduce((et,tt)=>et+tt,0)]).sort((qe,et)=>qe[1]-et[1])[0])==null?void 0:ce[0].placement;Ge&&(ye=Ge);break}case"initialPlacement":ye=m;break}if(u!==ye)return{reset:{placement:ye}}}return{}}}};function F7t(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function B7t(n){return uqn.some(r=>n[r]>=0)}const dqn=function(n){let{strategy:r="referenceHidden",...c}=n===void 0?{}:n;return{name:"hide",async fn(u){const{rects:d}=u;switch(r){case"referenceHidden":{const p=await eue(u,{...c,elementContext:"reference"}),m=F7t(p,d.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:B7t(m)}}}case"escaped":{const p=await eue(u,{...c,altBoundary:!0}),m=F7t(p,d.floating);return{data:{escapedOffsets:m,escaped:B7t(m)}}}default:return{}}}}};async function hqn(n,r){const{placement:c,platform:u,elements:d}=n,p=await(u.isRTL==null?void 0:u.isRTL(d.floating)),m=pN(c),x=lfe(c),E=gN(c)==="x",k=["left","top"].includes(m)?-1:1,T=p&&E?-1:1,P=typeof r=="function"?r(n):r;let{mainAxis:I,crossAxis:O,alignmentAxis:N}=typeof P=="number"?{mainAxis:P,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...P};return x&&typeof N=="number"&&(O=x==="end"?N*-1:N),E?{x:O*T,y:I*k}:{x:I*k,y:O*T}}const pqn=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:c,y:u}=r,d=await hqn(r,n);return{x:c+d.x,y:u+d.y,data:d}}}};function XLt(n){return n==="x"?"y":"x"}const gqn=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:c,y:u,placement:d}=r,{mainAxis:p=!0,crossAxis:m=!1,limiter:x={fn:L=>{let{x:$,y:F}=L;return{x:$,y:F}}},...E}=n,k={x:c,y:u},T=await eue(r,E),P=gN(pN(d)),I=XLt(P);let O=k[P],N=k[I];if(p){const L=P==="y"?"top":"left",$=P==="y"?"bottom":"right",F=O+T[L],B=O-T[$];O=FPe(F,O,B)}if(m){const L=I==="y"?"top":"left",$=I==="y"?"bottom":"right",F=N+T[L],B=N-T[$];N=FPe(F,N,B)}const j=x.fn({...r,[P]:O,[I]:N});return{...j,data:{x:j.x-c,y:j.y-u}}}}},bqn=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:c,y:u,placement:d,rects:p,middlewareData:m}=r,{offset:x=0,mainAxis:E=!0,crossAxis:k=!0}=n,T={x:c,y:u},P=gN(d),I=XLt(P);let O=T[P],N=T[I];const j=typeof x=="function"?x({...p,placement:d}):x,L=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(E){const ne=P==="y"?"height":"width",Z=p.reference[P]-p.floating[ne]+L.mainAxis,H=p.reference[P]+p.reference[ne]-L.mainAxis;OH&&(O=H)}if(k){var $,F,B,X;const ne=P==="y"?"width":"height",Z=["top","left"].includes(pN(d)),H=p.reference[I]-p.floating[ne]+(Z&&($=(F=m.offset)==null?void 0:F[I])!=null?$:0)+(Z?0:L.crossAxis),ce=p.reference[I]+p.reference[ne]+(Z?0:(B=(X=m.offset)==null?void 0:X[I])!=null?B:0)-(Z?L.crossAxis:0);Nce&&(N=ce)}return{[P]:O,[I]:N}}}};function KLt(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function jS(n){if(n==null)return window;if(!KLt(n)){const r=n.ownerDocument;return r&&r.defaultView||window}return n}function SW(n){return jS(n).getComputedStyle(n)}function IS(n){return KLt(n)?"":n?(n.nodeName||"").toLowerCase():""}function YLt(){const n=navigator.userAgentData;return n!=null&&n.brands?n.brands.map(r=>r.brand+"/"+r.version).join(" "):navigator.userAgent}function e3(n){return n instanceof jS(n).HTMLElement}function Tk(n){return n instanceof jS(n).Element}function mqn(n){return n instanceof jS(n).Node}function wNe(n){if(typeof ShadowRoot>"u")return!1;const r=jS(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function ffe(n){const{overflow:r,overflowX:c,overflowY:u}=SW(n);return/auto|scroll|overlay|hidden/.test(r+u+c)}function vqn(n){return["table","td","th"].includes(IS(n))}function QLt(n){const r=/firefox/i.test(YLt()),c=SW(n);return c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].includes(c.willChange)||r&&c.willChange==="filter"||r&&(c.filter?c.filter!=="none":!1)}function ZLt(){return!/^((?!chrome|android).)*safari/i.test(YLt())}const z7t=Math.min,kH=Math.max,nue=Math.round;function TS(n,r,c){var u,d,p,m;r===void 0&&(r=!1),c===void 0&&(c=!1);const x=n.getBoundingClientRect();let E=1,k=1;r&&e3(n)&&(E=n.offsetWidth>0&&nue(x.width)/n.offsetWidth||1,k=n.offsetHeight>0&&nue(x.height)/n.offsetHeight||1);const T=Tk(n)?jS(n):window,P=!ZLt()&&c,I=(x.left+(P&&(u=(d=T.visualViewport)==null?void 0:d.offsetLeft)!=null?u:0))/E,O=(x.top+(P&&(p=(m=T.visualViewport)==null?void 0:m.offsetTop)!=null?p:0))/k,N=x.width/E,j=x.height/k;return{width:N,height:j,top:O,right:I+N,bottom:O+j,left:I,x:I,y:O}}function Vk(n){return((mqn(n)?n.ownerDocument:n.document)||window.document).documentElement}function dfe(n){return Tk(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function JLt(n){return TS(Vk(n)).left+dfe(n).scrollLeft}function yqn(n){const r=TS(n);return nue(r.width)!==n.offsetWidth||nue(r.height)!==n.offsetHeight}function wqn(n,r,c){const u=e3(r),d=Vk(r),p=TS(n,u&&yqn(r),c==="fixed");let m={scrollLeft:0,scrollTop:0};const x={x:0,y:0};if(u||!u&&c!=="fixed")if((IS(r)!=="body"||ffe(d))&&(m=dfe(r)),e3(r)){const E=TS(r,!0);x.x=E.x+r.clientLeft,x.y=E.y+r.clientTop}else d&&(x.x=JLt(d));return{x:p.left+m.scrollLeft-x.x,y:p.top+m.scrollTop-x.y,width:p.width,height:p.height}}function eFt(n){return IS(n)==="html"?n:n.assignedSlot||n.parentNode||(wNe(n)?n.host:null)||Vk(n)}function V7t(n){return!e3(n)||getComputedStyle(n).position==="fixed"?null:n.offsetParent}function xqn(n){let r=eFt(n);for(wNe(r)&&(r=r.host);e3(r)&&!["html","body"].includes(IS(r));){if(QLt(r))return r;r=r.parentNode}return null}function BPe(n){const r=jS(n);let c=V7t(n);for(;c&&vqn(c)&&getComputedStyle(c).position==="static";)c=V7t(c);return c&&(IS(c)==="html"||IS(c)==="body"&&getComputedStyle(c).position==="static"&&!QLt(c))?r:c||xqn(n)||r}function U7t(n){if(e3(n))return{width:n.offsetWidth,height:n.offsetHeight};const r=TS(n);return{width:r.width,height:r.height}}function Sqn(n){let{rect:r,offsetParent:c,strategy:u}=n;const d=e3(c),p=Vk(c);if(c===p)return r;let m={scrollLeft:0,scrollTop:0};const x={x:0,y:0};if((d||!d&&u!=="fixed")&&((IS(c)!=="body"||ffe(p))&&(m=dfe(c)),e3(c))){const E=TS(c,!0);x.x=E.x+c.clientLeft,x.y=E.y+c.clientTop}return{...r,x:r.x-m.scrollLeft+x.x,y:r.y-m.scrollTop+x.y}}function Eqn(n,r){const c=jS(n),u=Vk(n),d=c.visualViewport;let p=u.clientWidth,m=u.clientHeight,x=0,E=0;if(d){p=d.width,m=d.height;const k=ZLt();(k||!k&&r==="fixed")&&(x=d.offsetLeft,E=d.offsetTop)}return{width:p,height:m,x,y:E}}function kqn(n){var r;const c=Vk(n),u=dfe(n),d=(r=n.ownerDocument)==null?void 0:r.body,p=kH(c.scrollWidth,c.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),m=kH(c.scrollHeight,c.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0);let x=-u.scrollLeft+JLt(n);const E=-u.scrollTop;return SW(d||c).direction==="rtl"&&(x+=kH(c.clientWidth,d?d.clientWidth:0)-p),{width:p,height:m,x,y:E}}function tFt(n){const r=eFt(n);return["html","body","#document"].includes(IS(r))?n.ownerDocument.body:e3(r)&&ffe(r)?r:tFt(r)}function rue(n,r){var c;r===void 0&&(r=[]);const u=tFt(n),d=u===((c=n.ownerDocument)==null?void 0:c.body),p=jS(u),m=d?[p].concat(p.visualViewport||[],ffe(u)?u:[]):u,x=r.concat(m);return d?x:x.concat(rue(m))}function Cqn(n,r){const c=r.getRootNode==null?void 0:r.getRootNode();if(n.contains(r))return!0;if(c&&wNe(c)){let u=r;do{if(u&&n===u)return!0;u=u.parentNode||u.host}while(u)}return!1}function Iqn(n,r){const c=TS(n,!1,r==="fixed"),u=c.top+n.clientTop,d=c.left+n.clientLeft;return{top:u,left:d,x:d,y:u,right:d+n.clientWidth,bottom:u+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}function H7t(n,r,c){return r==="viewport"?Jce(Eqn(n,c)):Tk(r)?Iqn(r,c):Jce(kqn(Vk(n)))}function Tqn(n){const r=rue(n),u=["absolute","fixed"].includes(SW(n).position)&&e3(n)?BPe(n):n;return Tk(u)?r.filter(d=>Tk(d)&&Cqn(d,u)&&IS(d)!=="body"):[]}function Aqn(n){let{element:r,boundary:c,rootBoundary:u,strategy:d}=n;const m=[...c==="clippingAncestors"?Tqn(r):[].concat(c),u],x=m[0],E=m.reduce((k,T)=>{const P=H7t(r,T,d);return k.top=kH(P.top,k.top),k.right=z7t(P.right,k.right),k.bottom=z7t(P.bottom,k.bottom),k.left=kH(P.left,k.left),k},H7t(r,x,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}const Pqn={getClippingRect:Aqn,convertOffsetParentRelativeRectToViewportRelativeRect:Sqn,isElement:Tk,getDimensions:U7t,getOffsetParent:BPe,getDocumentElement:Vk,getElementRects:n=>{let{reference:r,floating:c,strategy:u}=n;return{reference:wqn(r,BPe(c),u),floating:{...U7t(c),x:0,y:0}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>SW(n).direction==="rtl"};function Oqn(n,r,c,u){u===void 0&&(u={});const{ancestorScroll:d=!0,ancestorResize:p=!0,elementResize:m=!0,animationFrame:x=!1}=u,E=d&&!x,k=p&&!x,T=E||k?[...Tk(n)?rue(n):[],...rue(r)]:[];T.forEach(j=>{E&&j.addEventListener("scroll",c,{passive:!0}),k&&j.addEventListener("resize",c)});let P=null;if(m){let j=!0;P=new ResizeObserver(()=>{j||c(),j=!1}),Tk(n)&&!x&&P.observe(n),P.observe(r)}let I,O=x?TS(n):null;x&&N();function N(){const j=TS(n);O&&(j.x!==O.x||j.y!==O.y||j.width!==O.width||j.height!==O.height)&&c(),O=j,I=requestAnimationFrame(N)}return c(),()=>{var j;T.forEach(L=>{E&&L.removeEventListener("scroll",c),k&&L.removeEventListener("resize",c)}),(j=P)==null||j.disconnect(),P=null,x&&cancelAnimationFrame(I)}}const _qn=(n,r,c)=>nqn(n,r,{platform:Pqn,...c});var zPe=typeof document<"u"?U.exports.useLayoutEffect:U.exports.useEffect;function VPe(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let c,u,d;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(!VPe(n[u],r[u]))return!1;return!0}if(d=Object.keys(n),c=d.length,c!==Object.keys(r).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,d[u]))return!1;for(u=c;u--!==0;){const p=d[u];if(!(p==="_owner"&&n.$$typeof)&&!VPe(n[p],r[p]))return!1}return!0}return n!==n&&r!==r}function Mqn(n){const r=U.exports.useRef(n);return zPe(()=>{r.current=n}),r}function Dqn(n){let{middleware:r,placement:c="bottom",strategy:u="absolute",whileElementsMounted:d}=n===void 0?{}:n;const p=U.exports.useRef(null),m=U.exports.useRef(null),x=Mqn(d),E=U.exports.useRef(null),[k,T]=U.exports.useState({x:null,y:null,strategy:u,placement:c,middlewareData:{}}),[P,I]=U.exports.useState(r);VPe(P==null?void 0:P.map(B=>{let{options:X}=B;return X}),r==null?void 0:r.map(B=>{let{options:X}=B;return X}))||I(r);const O=U.exports.useCallback(()=>{!p.current||!m.current||_qn(p.current,m.current,{middleware:P,placement:c,strategy:u}).then(B=>{N.current&&PS.exports.flushSync(()=>{T(B)})})},[P,c,u]);zPe(()=>{N.current&&O()},[O]);const N=U.exports.useRef(!1);zPe(()=>(N.current=!0,()=>{N.current=!1}),[]);const j=U.exports.useCallback(()=>{if(typeof E.current=="function"&&(E.current(),E.current=null),p.current&&m.current)if(x.current){const B=x.current(p.current,m.current,O);E.current=B}else O()},[O,x]),L=U.exports.useCallback(B=>{p.current=B,j()},[j]),$=U.exports.useCallback(B=>{m.current=B,j()},[j]),F=U.exports.useMemo(()=>({reference:p,floating:m}),[]);return U.exports.useMemo(()=>({...k,update:O,refs:F,reference:L,floating:$}),[k,O,F,L,$])}const Nqn=n=>{const{element:r,padding:c}=n;function u(d){return Object.prototype.hasOwnProperty.call(d,"current")}return{name:"arrow",options:n,fn(d){return u(r)?r.current!=null?$7t({element:r.current,padding:c}).fn(d):{}:r?$7t({element:r,padding:c}).fn(d):{}}}};function jqn(n){const[r,c]=U.exports.useState(void 0);return jD(()=>{if(n){c({width:n.offsetWidth,height:n.offsetHeight});const u=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const p=d[0];let m,x;if("borderBoxSize"in p){const E=p.borderBoxSize,k=Array.isArray(E)?E[0]:E;m=k.inlineSize,x=k.blockSize}else m=n.offsetWidth,x=n.offsetHeight;c({width:m,height:x})});return u.observe(n,{box:"border-box"}),()=>u.unobserve(n)}else c(void 0)},[n]),r}const nFt="Popper",[xNe,rFt]=xW(nFt),[Rqn,iFt]=xNe(nFt),$qn=n=>{const{__scopePopper:r,children:c}=n,[u,d]=U.exports.useState(null);return U.exports.createElement(Rqn,{scope:r,anchor:u,onAnchorChange:d},c)},Lqn="PopperAnchor",Fqn=U.exports.forwardRef((n,r)=>{const{__scopePopper:c,virtualRef:u,...d}=n,p=iFt(Lqn,c),m=U.exports.useRef(null),x=_b(r,m);return U.exports.useEffect(()=>{p.onAnchorChange((u==null?void 0:u.current)||m.current)}),u?null:U.exports.createElement(Jx.div,ia({},d,{ref:x}))}),iue="PopperContent",[Bqn,yur]=xNe(iue),[zqn,Vqn]=xNe(iue,{hasParent:!1,positionUpdateFns:new Set}),Uqn=U.exports.forwardRef((n,r)=>{var c,u,d,p,m,x,E,k;const{__scopePopper:T,side:P="bottom",sideOffset:I=0,align:O="center",alignOffset:N=0,arrowPadding:j=0,collisionBoundary:L=[],collisionPadding:$=0,sticky:F="partial",hideWhenDetached:B=!1,avoidCollisions:X=!0,...ne}=n,Z=iFt(iue,T),[H,ce]=U.exports.useState(null),pe=_b(r,gn=>ce(gn)),[le,ye]=U.exports.useState(null),Ge=jqn(le),qe=(c=Ge==null?void 0:Ge.width)!==null&&c!==void 0?c:0,et=(u=Ge==null?void 0:Ge.height)!==null&&u!==void 0?u:0,tt=P+(O!=="center"?"-"+O:""),jt=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},Me=Array.isArray(L)?L:[L],ze=Me.length>0,we={padding:jt,boundary:Me.filter(qqn),altBoundary:ze},{reference:De,floating:be,strategy:Se,x:Jt,y:sn,placement:Tn,middlewareData:qn,update:rr}=Dqn({strategy:"fixed",placement:tt,whileElementsMounted:Oqn,middleware:[pqn({mainAxis:I+et,alignmentAxis:N}),X?gqn({mainAxis:!0,crossAxis:!1,limiter:F==="partial"?bqn():void 0,...we}):void 0,le?Nqn({element:le,padding:j}):void 0,X?fqn({...we}):void 0,Wqn({arrowWidth:qe,arrowHeight:et}),B?dqn({strategy:"referenceHidden"}):void 0].filter(Hqn)});jD(()=>{De(Z.anchor)},[De,Z.anchor]);const Zn=Jt!==null&&sn!==null,[Gr,Je]=oFt(Tn),ct=(d=qn.arrow)===null||d===void 0?void 0:d.x,rn=(p=qn.arrow)===null||p===void 0?void 0:p.y,Ne=((m=qn.arrow)===null||m===void 0?void 0:m.centerOffset)!==0,[ae,me]=U.exports.useState();jD(()=>{H&&me(window.getComputedStyle(H).zIndex)},[H]);const{hasParent:Te,positionUpdateFns:Xe}=Vqn(iue,T),dt=!Te;U.exports.useLayoutEffect(()=>{if(!dt)return Xe.add(rr),()=>{Xe.delete(rr)}},[dt,Xe,rr]),U.exports.useLayoutEffect(()=>{dt&&Zn&&Array.from(Xe).reverse().forEach(gn=>requestAnimationFrame(gn))},[dt,Zn,Xe]);const Sn={"data-side":Gr,"data-align":Je,...ne,ref:pe,style:{...ne.style,animation:Zn?void 0:"none",opacity:(x=qn.hide)!==null&&x!==void 0&&x.referenceHidden?0:void 0}};return U.exports.createElement("div",{ref:be,"data-radix-popper-content-wrapper":"",style:{position:Se,left:0,top:0,transform:Zn?`translate3d(${Math.round(Jt)}px, ${Math.round(sn)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ae,["--radix-popper-transform-origin"]:[(E=qn.transformOrigin)===null||E===void 0?void 0:E.x,(k=qn.transformOrigin)===null||k===void 0?void 0:k.y].join(" ")}},U.exports.createElement(Bqn,{scope:T,placedSide:Gr,onArrowChange:ye,arrowX:ct,arrowY:rn,shouldHideArrow:Ne},dt?U.exports.createElement(zqn,{scope:T,hasParent:!0,positionUpdateFns:Xe},U.exports.createElement(Jx.div,Sn)):U.exports.createElement(Jx.div,Sn)))});function Hqn(n){return n!==void 0}function qqn(n){return n!==null}const Wqn=n=>({name:"transformOrigin",options:n,fn(r){var c,u,d,p,m;const{placement:x,rects:E,middlewareData:k}=r,P=((c=k.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,I=P?0:n.arrowWidth,O=P?0:n.arrowHeight,[N,j]=oFt(x),L={start:"0%",center:"50%",end:"100%"}[j],$=((u=(d=k.arrow)===null||d===void 0?void 0:d.x)!==null&&u!==void 0?u:0)+I/2,F=((p=(m=k.arrow)===null||m===void 0?void 0:m.y)!==null&&p!==void 0?p:0)+O/2;let B="",X="";return N==="bottom"?(B=P?L:`${$}px`,X=`${-O}px`):N==="top"?(B=P?L:`${$}px`,X=`${E.floating.height+O}px`):N==="right"?(B=`${-O}px`,X=P?L:`${F}px`):N==="left"&&(B=`${E.floating.width+O}px`,X=P?L:`${F}px`),{data:{x:B,y:X}}}});function oFt(n){const[r,c="center"]=n.split("-");return[r,c]}const sFt=$qn,Gqn=Fqn,Xqn=Uqn,Kqn=U.exports.forwardRef((n,r)=>{var c;const{container:u=globalThis==null||(c=globalThis.document)===null||c===void 0?void 0:c.body,...d}=n;return u?O_t.createPortal(U.exports.createElement(Jx.div,ia({},d,{ref:r})),u):null});function Yqn(n,r){return U.exports.useReducer((c,u)=>{const d=r[c][u];return d!=null?d:c},n)}const hfe=n=>{const{present:r,children:c}=n,u=Qqn(r),d=typeof c=="function"?c({present:u.isPresent}):U.exports.Children.only(c),p=_b(u.ref,d.ref);return typeof c=="function"||u.isPresent?U.exports.cloneElement(d,{ref:p}):null};hfe.displayName="Presence";function Qqn(n){const[r,c]=U.exports.useState(),u=U.exports.useRef({}),d=U.exports.useRef(n),p=U.exports.useRef("none"),m=n?"mounted":"unmounted",[x,E]=Yqn(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.exports.useEffect(()=>{const k=jse(u.current);p.current=x==="mounted"?k:"none"},[x]),jD(()=>{const k=u.current,T=d.current;if(T!==n){const I=p.current,O=jse(k);n?E("MOUNT"):O==="none"||(k==null?void 0:k.display)==="none"?E("UNMOUNT"):E(T&&I!==O?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),jD(()=>{if(r){const k=P=>{const O=jse(u.current).includes(P.animationName);P.target===r&&O&&PS.exports.flushSync(()=>E("ANIMATION_END"))},T=P=>{P.target===r&&(p.current=jse(u.current))};return r.addEventListener("animationstart",T),r.addEventListener("animationcancel",k),r.addEventListener("animationend",k),()=>{r.removeEventListener("animationstart",T),r.removeEventListener("animationcancel",k),r.removeEventListener("animationend",k)}}else E("ANIMATION_END")},[r,E]),{isPresent:["mounted","unmountSuspended"].includes(x),ref:U.exports.useCallback(k=>{k&&(u.current=getComputedStyle(k)),c(k)},[])}}function jse(n){return(n==null?void 0:n.animationName)||"none"}function aFt({prop:n,defaultProp:r,onChange:c=()=>{}}){const[u,d]=Zqn({defaultProp:r,onChange:c}),p=n!==void 0,m=p?n:u,x=Mw(c),E=U.exports.useCallback(k=>{if(p){const P=typeof k=="function"?k(n):k;P!==n&&x(P)}else d(k)},[p,n,d,x]);return[m,E]}function Zqn({defaultProp:n,onChange:r}){const c=U.exports.useState(n),[u]=c,d=U.exports.useRef(u),p=Mw(r);return U.exports.useEffect(()=>{d.current!==u&&(p(u),d.current=u)},[u,d,p]),c}const y7e="rovingFocusGroup.onEntryFocus",Jqn={bubbles:!1,cancelable:!0},SNe="RovingFocusGroup",[UPe,cFt,eWn]=ULt(SNe),[tWn,uFt]=xW(SNe,[eWn]),[nWn,rWn]=tWn(SNe),iWn=U.exports.forwardRef((n,r)=>U.exports.createElement(UPe.Provider,{scope:n.__scopeRovingFocusGroup},U.exports.createElement(UPe.Slot,{scope:n.__scopeRovingFocusGroup},U.exports.createElement(oWn,ia({},n,{ref:r}))))),oWn=U.exports.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:c,orientation:u,loop:d=!1,dir:p,currentTabStopId:m,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:k,...T}=n,P=U.exports.useRef(null),I=_b(r,P),O=HLt(p),[N=null,j]=aFt({prop:m,defaultProp:x,onChange:E}),[L,$]=U.exports.useState(!1),F=Mw(k),B=cFt(c),X=U.exports.useRef(!1);return U.exports.useEffect(()=>{const ne=P.current;if(ne)return ne.addEventListener(y7e,F),()=>ne.removeEventListener(y7e,F)},[F]),U.exports.createElement(nWn,{scope:c,orientation:u,dir:O,loop:d,currentTabStopId:N,onItemFocus:U.exports.useCallback(ne=>j(ne),[j]),onItemShiftTab:U.exports.useCallback(()=>$(!0),[])},U.exports.createElement(Jx.div,ia({tabIndex:L?-1:0,"data-orientation":u},T,{ref:I,style:{outline:"none",...n.style},onMouseDown:La(n.onMouseDown,()=>{X.current=!0}),onFocus:La(n.onFocus,ne=>{const Z=!X.current;if(ne.target===ne.currentTarget&&Z&&!L){const H=new CustomEvent(y7e,Jqn);if(ne.currentTarget.dispatchEvent(H),!H.defaultPrevented){const ce=B().filter(qe=>qe.focusable),pe=ce.find(qe=>qe.active),le=ce.find(qe=>qe.id===N),Ge=[pe,le,...ce].filter(Boolean).map(qe=>qe.ref.current);lFt(Ge)}}X.current=!1}),onBlur:La(n.onBlur,()=>$(!1))})))}),sWn="RovingFocusGroupItem",aWn=U.exports.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:c,focusable:u=!0,active:d=!1,...p}=n,m=LPe(),x=rWn(sWn,c),E=x.currentTabStopId===m,k=cFt(c);return U.exports.createElement(UPe.ItemSlot,{scope:c,id:m,focusable:u,active:d},U.exports.createElement(Jx.span,ia({tabIndex:E?0:-1,"data-orientation":x.orientation},p,{ref:r,onMouseDown:La(n.onMouseDown,T=>{u?x.onItemFocus(m):T.preventDefault()}),onFocus:La(n.onFocus,()=>x.onItemFocus(m)),onKeyDown:La(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const P=lWn(T,x.orientation,x.dir);if(P!==void 0){T.preventDefault();let O=k().filter(N=>N.focusable).map(N=>N.ref.current);if(P==="last")O.reverse();else if(P==="prev"||P==="next"){P==="prev"&&O.reverse();const N=O.indexOf(T.currentTarget);O=x.loop?fWn(O,N+1):O.slice(N+1)}setTimeout(()=>lFt(O))}})})))}),cWn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uWn(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function lWn(n,r,c){const u=uWn(n.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(u))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(u)))return cWn[u]}function lFt(n){const r=document.activeElement;for(const c of n)if(c===r||(c.focus(),document.activeElement!==r))return}function fWn(n,r){return n.map((c,u)=>n[(r+u)%n.length])}const dWn=iWn,hWn=aWn;var fFt=nDe(),w7e=function(){},pfe=U.exports.forwardRef(function(n,r){var c=U.exports.useRef(null),u=U.exports.useState({onScrollCapture:w7e,onWheelCapture:w7e,onTouchMoveCapture:w7e}),d=u[0],p=u[1],m=n.forwardProps,x=n.children,E=n.className,k=n.removeScrollBar,T=n.enabled,P=n.shards,I=n.sideCar,O=n.noIsolation,N=n.inert,j=n.allowPinchZoom,L=n.as,$=L===void 0?"div":L,F=eDe(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),B=I,X=JMe([c,r]),ne=F1(F1({},F),d);return We(Si,{children:[T&&V(B,{sideCar:fFt,removeScrollBar:k,shards:P,noIsolation:O,inert:N,setCallbacks:p,allowPinchZoom:!!j,lockRef:c}),m?U.exports.cloneElement(U.exports.Children.only(x),F1(F1({},ne),{ref:X})):V($,{...F1({},ne,{className:E,ref:X}),children:x})]})});pfe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pfe.classNames={fullWidth:gH,zeroRight:pH};var HPe=!1;if(typeof window<"u")try{var Rse=Object.defineProperty({},"passive",{get:function(){return HPe=!0,!0}});window.addEventListener("test",Rse,Rse),window.removeEventListener("test",Rse,Rse)}catch{HPe=!1}var sM=HPe?{passive:!1}:!1,pWn=function(n){var r=window.getComputedStyle(n);return r.overflowY!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowY==="visible")},gWn=function(n){var r=window.getComputedStyle(n);return r.overflowX!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowX==="visible")},q7t=function(n,r){var c=r;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var u=dFt(n,c);if(u){var d=hFt(n,c),p=d[1],m=d[2];if(p>m)return!0}c=c.parentNode}while(c&&c!==document.body);return!1},bWn=function(n){var r=n.scrollTop,c=n.scrollHeight,u=n.clientHeight;return[r,c,u]},mWn=function(n){var r=n.scrollLeft,c=n.scrollWidth,u=n.clientWidth;return[r,c,u]},dFt=function(n,r){return n==="v"?pWn(r):gWn(r)},hFt=function(n,r){return n==="v"?bWn(r):mWn(r)},vWn=function(n,r){return n==="h"&&r==="rtl"?-1:1},yWn=function(n,r,c,u,d){var p=vWn(n,window.getComputedStyle(r).direction),m=p*u,x=c.target,E=r.contains(x),k=!1,T=m>0,P=0,I=0;do{var O=hFt(n,x),N=O[0],j=O[1],L=O[2],$=j-L-p*N;(N||$)&&dFt(n,x)&&(P+=$,I+=N),x=x.parentNode}while(!E&&x!==document.body||E&&(r.contains(x)||r===x));return(T&&(d&&P===0||!d&&m>P)||!T&&(d&&I===0||!d&&-m>I))&&(k=!0),k},$se=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},W7t=function(n){return[n.deltaX,n.deltaY]},G7t=function(n){return n&&"current"in n?n.current:n},wWn=function(n,r){return n[0]===r[0]&&n[1]===r[1]},xWn=function(n){return` - .block-interactivity-`.concat(n,` {pointer-events: none;} - .allow-interactivity-`).concat(n,` {pointer-events: all;} -`)},SWn=0,aM=[];function EWn(n){var r=U.exports.useRef([]),c=U.exports.useRef([0,0]),u=U.exports.useRef(),d=U.exports.useState(SWn++)[0],p=U.exports.useState(function(){return dDe()})[0],m=U.exports.useRef(n);U.exports.useEffect(function(){m.current=n},[n]),U.exports.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var j=xjt([n.lockRef.current],(n.shards||[]).map(G7t),!0).filter(Boolean);return j.forEach(function(L){return L.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),j.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var x=U.exports.useCallback(function(j,L){if("touches"in j&&j.touches.length===2)return!m.current.allowPinchZoom;var $=$se(j),F=c.current,B="deltaX"in j?j.deltaX:F[0]-$[0],X="deltaY"in j?j.deltaY:F[1]-$[1],ne,Z=j.target,H=Math.abs(B)>Math.abs(X)?"h":"v";if("touches"in j&&H==="h"&&Z.type==="range")return!1;var ce=q7t(H,Z);if(!ce)return!0;if(ce?ne=H:(ne=H==="v"?"h":"v",ce=q7t(H,Z)),!ce)return!1;if(!u.current&&"changedTouches"in j&&(B||X)&&(u.current=ne),!ne)return!0;var pe=u.current||ne;return yWn(pe,L,j,pe==="h"?B:X,!0)},[]),E=U.exports.useCallback(function(j){var L=j;if(!(!aM.length||aM[aM.length-1]!==p)){var $="deltaY"in L?W7t(L):$se(L),F=r.current.filter(function(ne){return ne.name===L.type&&ne.target===L.target&&wWn(ne.delta,$)})[0];if(F&&F.should){L.preventDefault();return}if(!F){var B=(m.current.shards||[]).map(G7t).filter(Boolean).filter(function(ne){return ne.contains(L.target)}),X=B.length>0?x(L,B[0]):!m.current.noIsolation;X&&L.preventDefault()}}},[]),k=U.exports.useCallback(function(j,L,$,F){var B={name:j,delta:L,target:$,should:F};r.current.push(B),setTimeout(function(){r.current=r.current.filter(function(X){return X!==B})},1)},[]),T=U.exports.useCallback(function(j){c.current=$se(j),u.current=void 0},[]),P=U.exports.useCallback(function(j){k(j.type,W7t(j),j.target,x(j,n.lockRef.current))},[]),I=U.exports.useCallback(function(j){k(j.type,$se(j),j.target,x(j,n.lockRef.current))},[]);U.exports.useEffect(function(){return aM.push(p),n.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:I}),document.addEventListener("wheel",E,sM),document.addEventListener("touchmove",E,sM),document.addEventListener("touchstart",T,sM),function(){aM=aM.filter(function(j){return j!==p}),document.removeEventListener("wheel",E,sM),document.removeEventListener("touchmove",E,sM),document.removeEventListener("touchstart",T,sM)}},[]);var O=n.removeScrollBar,N=n.inert;return We(Si,{children:[N?V(p,{styles:xWn(d)}):null,O?V(Qjt,{gapMode:"margin"}):null]})}const kWn=Cjt(fFt,EWn);var pFt=U.exports.forwardRef(function(n,r){return V(pfe,{...F1({},n,{ref:r,sideCar:kWn})})});pFt.classNames=pfe.classNames;const CWn=pFt,qPe=["Enter"," "],IWn=["ArrowDown","PageUp","Home"],gFt=["ArrowUp","PageDown","End"],TWn=[...IWn,...gFt],AWn={ltr:[...qPe,"ArrowRight"],rtl:[...qPe,"ArrowLeft"]},PWn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gfe="Menu",[_q,OWn,_Wn]=ULt(gfe),[sT,bFt]=xW(gfe,[_Wn,rFt,uFt]),bfe=rFt(),mFt=uFt(),[vFt,Uk]=sT(gfe),[MWn,EW]=sT(gfe),DWn=n=>{const{__scopeMenu:r,open:c=!1,children:u,dir:d,onOpenChange:p,modal:m=!0}=n,x=bfe(r),[E,k]=U.exports.useState(null),T=U.exports.useRef(!1),P=Mw(p),I=HLt(d);return U.exports.useEffect(()=>{const O=()=>{T.current=!0,document.addEventListener("pointerdown",N,{capture:!0,once:!0}),document.addEventListener("pointermove",N,{capture:!0,once:!0})},N=()=>T.current=!1;return document.addEventListener("keydown",O,{capture:!0}),()=>{document.removeEventListener("keydown",O,{capture:!0}),document.removeEventListener("pointerdown",N,{capture:!0}),document.removeEventListener("pointermove",N,{capture:!0})}},[]),U.exports.createElement(sFt,x,U.exports.createElement(vFt,{scope:r,open:c,onOpenChange:P,content:E,onContentChange:k},U.exports.createElement(MWn,{scope:r,onClose:U.exports.useCallback(()=>P(!1),[P]),isUsingKeyboardRef:T,dir:I,modal:m},u)))},yFt=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,...u}=n,d=bfe(c);return U.exports.createElement(Gqn,ia({},d,u,{ref:r}))}),wFt="MenuPortal",[NWn,xFt]=sT(wFt,{forceMount:void 0}),jWn=n=>{const{__scopeMenu:r,forceMount:c,children:u,container:d}=n,p=Uk(wFt,r);return U.exports.createElement(NWn,{scope:r,forceMount:c},U.exports.createElement(hfe,{present:c||p.open},U.exports.createElement(Kqn,{asChild:!0,container:d},u)))},Pw="MenuContent",[RWn,ENe]=sT(Pw),$Wn=U.exports.forwardRef((n,r)=>{const c=xFt(Pw,n.__scopeMenu),{forceMount:u=c.forceMount,...d}=n,p=Uk(Pw,n.__scopeMenu),m=EW(Pw,n.__scopeMenu);return U.exports.createElement(_q.Provider,{scope:n.__scopeMenu},U.exports.createElement(hfe,{present:u||p.open},U.exports.createElement(_q.Slot,{scope:n.__scopeMenu},m.modal?U.exports.createElement(LWn,ia({},d,{ref:r})):U.exports.createElement(FWn,ia({},d,{ref:r})))))}),LWn=U.exports.forwardRef((n,r)=>{const c=Uk(Pw,n.__scopeMenu),u=U.exports.useRef(null),d=_b(r,u);return U.exports.useEffect(()=>{const p=u.current;if(p)return mjt(p)},[]),U.exports.createElement(kNe,ia({},n,{ref:d,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:La(n.onFocusOutside,p=>p.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)}))}),FWn=U.exports.forwardRef((n,r)=>{const c=Uk(Pw,n.__scopeMenu);return U.exports.createElement(kNe,ia({},n,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)}))}),kNe=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,loop:u=!1,trapFocus:d,onOpenAutoFocus:p,onCloseAutoFocus:m,disableOutsidePointerEvents:x,onEscapeKeyDown:E,onPointerDownOutside:k,onFocusOutside:T,onInteractOutside:P,onDismiss:I,disableOutsideScroll:O,...N}=n,j=Uk(Pw,c),L=EW(Pw,c),$=bfe(c),F=mFt(c),B=OWn(c),[X,ne]=U.exports.useState(null),Z=U.exports.useRef(null),H=_b(r,Z,j.onContentChange),ce=U.exports.useRef(0),pe=U.exports.useRef(""),le=U.exports.useRef(0),ye=U.exports.useRef(null),Ge=U.exports.useRef("right"),qe=U.exports.useRef(0),et=O?CWn:U.exports.Fragment,tt=O?{as:Oq,allowPinchZoom:!0}:void 0,jt=ze=>{var we,De;const be=pe.current+ze,Se=B().filter(Zn=>!Zn.disabled),Jt=document.activeElement,sn=(we=Se.find(Zn=>Zn.ref.current===Jt))===null||we===void 0?void 0:we.textValue,Tn=Se.map(Zn=>Zn.textValue),qn=YWn(Tn,be,sn),rr=(De=Se.find(Zn=>Zn.textValue===qn))===null||De===void 0?void 0:De.ref.current;(function Zn(Gr){pe.current=Gr,window.clearTimeout(ce.current),Gr!==""&&(ce.current=window.setTimeout(()=>Zn(""),1e3))})(be),rr&&setTimeout(()=>rr.focus())};U.exports.useEffect(()=>()=>window.clearTimeout(ce.current),[]),WHn();const Me=U.exports.useCallback(ze=>{var we,De;return Ge.current===((we=ye.current)===null||we===void 0?void 0:we.side)&&ZWn(ze,(De=ye.current)===null||De===void 0?void 0:De.area)},[]);return U.exports.createElement(RWn,{scope:c,searchRef:pe,onItemEnter:U.exports.useCallback(ze=>{Me(ze)&&ze.preventDefault()},[Me]),onItemLeave:U.exports.useCallback(ze=>{var we;Me(ze)||((we=Z.current)===null||we===void 0||we.focus(),ne(null))},[Me]),onTriggerLeave:U.exports.useCallback(ze=>{Me(ze)&&ze.preventDefault()},[Me]),pointerGraceTimerRef:le,onPointerGraceIntentChange:U.exports.useCallback(ze=>{ye.current=ze},[])},U.exports.createElement(et,tt,U.exports.createElement(GHn,{asChild:!0,trapped:d,onMountAutoFocus:La(p,ze=>{var we;ze.preventDefault(),(we=Z.current)===null||we===void 0||we.focus()}),onUnmountAutoFocus:m},U.exports.createElement(UHn,{asChild:!0,disableOutsidePointerEvents:x,onEscapeKeyDown:E,onPointerDownOutside:k,onFocusOutside:T,onInteractOutside:P,onDismiss:I},U.exports.createElement(dWn,ia({asChild:!0},F,{dir:L.dir,orientation:"vertical",loop:u,currentTabStopId:X,onCurrentTabStopIdChange:ne,onEntryFocus:ze=>{L.isUsingKeyboardRef.current||ze.preventDefault()}}),U.exports.createElement(Xqn,ia({role:"menu","aria-orientation":"vertical","data-state":CFt(j.open),dir:L.dir},$,N,{ref:H,style:{outline:"none",...N.style},onKeyDown:La(N.onKeyDown,ze=>{const De=ze.target.closest('[role="menu"]')===ze.currentTarget,be=ze.ctrlKey||ze.altKey||ze.metaKey,Se=ze.key.length===1;De&&(ze.key==="Tab"&&ze.preventDefault(),!be&&Se&&jt(ze.key));const Jt=Z.current;if(ze.target!==Jt||!TWn.includes(ze.key))return;ze.preventDefault();const Tn=B().filter(qn=>!qn.disabled).map(qn=>qn.ref.current);gFt.includes(ze.key)&&Tn.reverse(),XWn(Tn)}),onBlur:La(n.onBlur,ze=>{ze.currentTarget.contains(ze.target)||(window.clearTimeout(ce.current),pe.current="")}),onPointerMove:La(n.onPointerMove,Mq(ze=>{const we=ze.target,De=qe.current!==ze.clientX;if(ze.currentTarget.contains(we)&&De){const be=ze.clientX>qe.current?"right":"left";Ge.current=be,qe.current=ze.clientX}}))})))))))}),WPe="MenuItem",X7t="menu.itemSelect",BWn=U.exports.forwardRef((n,r)=>{const{disabled:c=!1,onSelect:u,...d}=n,p=U.exports.useRef(null),m=EW(WPe,n.__scopeMenu),x=ENe(WPe,n.__scopeMenu),E=_b(r,p),k=U.exports.useRef(!1),T=()=>{const P=p.current;if(!c&&P){const I=new CustomEvent(X7t,{bubbles:!0,cancelable:!0});P.addEventListener(X7t,O=>u==null?void 0:u(O),{once:!0}),VLt(P,I),I.defaultPrevented?k.current=!1:m.onClose()}};return U.exports.createElement(SFt,ia({},d,{ref:E,disabled:c,onClick:La(n.onClick,T),onPointerDown:P=>{var I;(I=n.onPointerDown)===null||I===void 0||I.call(n,P),k.current=!0},onPointerUp:La(n.onPointerUp,P=>{var I;k.current||(I=P.currentTarget)===null||I===void 0||I.click()}),onKeyDown:La(n.onKeyDown,P=>{const I=x.searchRef.current!=="";c||I&&P.key===" "||qPe.includes(P.key)&&(P.currentTarget.click(),P.preventDefault())})}))}),SFt=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,disabled:u=!1,textValue:d,...p}=n,m=ENe(WPe,c),x=mFt(c),E=U.exports.useRef(null),k=_b(r,E),[T,P]=U.exports.useState(!1),[I,O]=U.exports.useState("");return U.exports.useEffect(()=>{const N=E.current;if(N){var j;O(((j=N.textContent)!==null&&j!==void 0?j:"").trim())}},[p.children]),U.exports.createElement(_q.ItemSlot,{scope:c,disabled:u,textValue:d!=null?d:I},U.exports.createElement(hWn,ia({asChild:!0},x,{focusable:!u}),U.exports.createElement(Jx.div,ia({role:"menuitem","data-highlighted":T?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0},p,{ref:k,onPointerMove:La(n.onPointerMove,Mq(N=>{u?m.onItemLeave(N):(m.onItemEnter(N),N.defaultPrevented||N.currentTarget.focus())})),onPointerLeave:La(n.onPointerLeave,Mq(N=>m.onItemLeave(N))),onFocus:La(n.onFocus,()=>P(!0)),onBlur:La(n.onBlur,()=>P(!1))}))))}),zWn="MenuRadioGroup";sT(zWn,{value:void 0,onValueChange:()=>{}});const VWn="MenuItemIndicator";sT(VWn,{checked:!1});const EFt="MenuSub",[UWn,kFt]=sT(EFt),HWn=n=>{const{__scopeMenu:r,children:c,open:u=!1,onOpenChange:d}=n,p=Uk(EFt,r),m=bfe(r),[x,E]=U.exports.useState(null),[k,T]=U.exports.useState(null),P=Mw(d);return U.exports.useEffect(()=>(p.open===!1&&P(!1),()=>P(!1)),[p.open,P]),U.exports.createElement(sFt,m,U.exports.createElement(vFt,{scope:r,open:u,onOpenChange:P,content:k,onContentChange:T},U.exports.createElement(UWn,{scope:r,contentId:LPe(),triggerId:LPe(),trigger:x,onTriggerChange:E},c)))},Lse="MenuSubTrigger",qWn=U.exports.forwardRef((n,r)=>{const c=Uk(Lse,n.__scopeMenu),u=EW(Lse,n.__scopeMenu),d=kFt(Lse,n.__scopeMenu),p=ENe(Lse,n.__scopeMenu),m=U.exports.useRef(null),{pointerGraceTimerRef:x,onPointerGraceIntentChange:E}=p,k={__scopeMenu:n.__scopeMenu},T=U.exports.useCallback(()=>{m.current&&window.clearTimeout(m.current),m.current=null},[]);return U.exports.useEffect(()=>T,[T]),U.exports.useEffect(()=>{const P=x.current;return()=>{window.clearTimeout(P),E(null)}},[x,E]),U.exports.createElement(yFt,ia({asChild:!0},k),U.exports.createElement(SFt,ia({id:d.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":d.contentId,"data-state":CFt(c.open)},n,{ref:vNe(r,d.onTriggerChange),onClick:P=>{var I;(I=n.onClick)===null||I===void 0||I.call(n,P),!(n.disabled||P.defaultPrevented)&&(P.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:La(n.onPointerMove,Mq(P=>{p.onItemEnter(P),!P.defaultPrevented&&!n.disabled&&!c.open&&!m.current&&(p.onPointerGraceIntentChange(null),m.current=window.setTimeout(()=>{c.onOpenChange(!0),T()},100))})),onPointerLeave:La(n.onPointerLeave,Mq(P=>{var I;T();const O=(I=c.content)===null||I===void 0?void 0:I.getBoundingClientRect();if(O){var N;const j=(N=c.content)===null||N===void 0?void 0:N.dataset.side,L=j==="right",$=L?-5:5,F=O[L?"left":"right"],B=O[L?"right":"left"];p.onPointerGraceIntentChange({area:[{x:P.clientX+$,y:P.clientY},{x:F,y:O.top},{x:B,y:O.top},{x:B,y:O.bottom},{x:F,y:O.bottom}],side:j}),window.clearTimeout(x.current),x.current=window.setTimeout(()=>p.onPointerGraceIntentChange(null),300)}else{if(p.onTriggerLeave(P),P.defaultPrevented)return;p.onPointerGraceIntentChange(null)}})),onKeyDown:La(n.onKeyDown,P=>{const I=p.searchRef.current!=="";if(!(n.disabled||I&&P.key===" ")&&AWn[u.dir].includes(P.key)){var O;c.onOpenChange(!0),(O=c.content)===null||O===void 0||O.focus(),P.preventDefault()}})})))}),WWn="MenuSubContent",GWn=U.exports.forwardRef((n,r)=>{const c=xFt(Pw,n.__scopeMenu),{forceMount:u=c.forceMount,...d}=n,p=Uk(Pw,n.__scopeMenu),m=EW(Pw,n.__scopeMenu),x=kFt(WWn,n.__scopeMenu),E=U.exports.useRef(null),k=_b(r,E);return U.exports.createElement(_q.Provider,{scope:n.__scopeMenu},U.exports.createElement(hfe,{present:u||p.open},U.exports.createElement(_q.Slot,{scope:n.__scopeMenu},U.exports.createElement(kNe,ia({id:x.contentId,"aria-labelledby":x.triggerId},d,{ref:k,align:"start",side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:T=>{var P;m.isUsingKeyboardRef.current&&((P=E.current)===null||P===void 0||P.focus()),T.preventDefault()},onCloseAutoFocus:T=>T.preventDefault(),onFocusOutside:La(n.onFocusOutside,T=>{T.target!==x.trigger&&p.onOpenChange(!1)}),onEscapeKeyDown:La(n.onEscapeKeyDown,m.onClose),onKeyDown:La(n.onKeyDown,T=>{const P=T.currentTarget.contains(T.target),I=PWn[m.dir].includes(T.key);if(P&&I){var O;p.onOpenChange(!1),(O=x.trigger)===null||O===void 0||O.focus(),T.preventDefault()}})})))))});function CFt(n){return n?"open":"closed"}function XWn(n){const r=document.activeElement;for(const c of n)if(c===r||(c.focus(),document.activeElement!==r))return}function KWn(n,r){return n.map((c,u)=>n[(r+u)%n.length])}function YWn(n,r,c){const d=r.length>1&&Array.from(r).every(k=>k===r[0])?r[0]:r,p=c?n.indexOf(c):-1;let m=KWn(n,Math.max(p,0));d.length===1&&(m=m.filter(k=>k!==c));const E=m.find(k=>k.toLowerCase().startsWith(d.toLowerCase()));return E!==c?E:void 0}function QWn(n,r){const{x:c,y:u}=n;let d=!1;for(let p=0,m=r.length-1;pu!=T>u&&c<(k-x)*(u-E)/(T-E)+x&&(d=!d)}return d}function ZWn(n,r){if(!r)return!1;const c={x:n.clientX,y:n.clientY};return QWn(c,r)}function Mq(n){return r=>r.pointerType==="mouse"?n(r):void 0}const JWn=DWn,eGn=yFt,tGn=jWn,nGn=$Wn,rGn=BWn,iGn=HWn,oGn=qWn,sGn=GWn,IFt="ContextMenu",[aGn,wur]=xW(IFt,[bFt]),Hk=bFt(),[cGn,TFt]=aGn(IFt),uGn=n=>{const{__scopeContextMenu:r,children:c,onOpenChange:u,dir:d,modal:p=!0}=n,[m,x]=U.exports.useState(!1),E=Hk(r),k=Mw(u),T=U.exports.useCallback(P=>{x(P),k(P)},[k]);return U.exports.createElement(cGn,{scope:r,open:m,onOpenChange:T,modal:p},U.exports.createElement(JWn,ia({},E,{dir:d,open:m,onOpenChange:T,modal:p}),c))},lGn="ContextMenuTrigger",fGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=TFt(lGn,c),p=Hk(c),m=U.exports.useRef({x:0,y:0}),x=U.exports.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),E=U.exports.useRef(0),k=U.exports.useCallback(()=>window.clearTimeout(E.current),[]),T=P=>{m.current={x:P.clientX,y:P.clientY},d.onOpenChange(!0)};return U.exports.useEffect(()=>k,[k]),U.exports.createElement(U.exports.Fragment,null,U.exports.createElement(eGn,ia({},p,{virtualRef:x})),U.exports.createElement(Jx.span,ia({"data-state":d.open?"open":"closed"},u,{ref:r,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:La(n.onContextMenu,P=>{k(),T(P),P.preventDefault()}),onPointerDown:La(n.onPointerDown,Fse(P=>{k(),E.current=window.setTimeout(()=>T(P),700)})),onPointerMove:La(n.onPointerMove,Fse(k)),onPointerCancel:La(n.onPointerCancel,Fse(k)),onPointerUp:La(n.onPointerUp,Fse(k))})))}),dGn=n=>{const{__scopeContextMenu:r,...c}=n,u=Hk(r);return U.exports.createElement(tGn,ia({},u,c))},hGn="ContextMenuContent",pGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=TFt(hGn,c),p=Hk(c),m=U.exports.useRef(!1);return U.exports.createElement(nGn,ia({},p,u,{ref:r,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:x=>{var E;(E=n.onCloseAutoFocus)===null||E===void 0||E.call(n,x),!x.defaultPrevented&&m.current&&x.preventDefault(),m.current=!1},onInteractOutside:x=>{var E;(E=n.onInteractOutside)===null||E===void 0||E.call(n,x),!x.defaultPrevented&&!d.modal&&(m.current=!0)},style:{...n.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))}),gGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(rGn,ia({},d,u,{ref:r}))}),bGn=n=>{const{__scopeContextMenu:r,children:c,onOpenChange:u,open:d,defaultOpen:p}=n,m=Hk(r),[x,E]=aFt({prop:d,defaultProp:p,onChange:u});return U.exports.createElement(iGn,ia({},m,{open:x,onOpenChange:E}),c)},mGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(oGn,ia({},d,u,{ref:r}))}),vGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(sGn,ia({},d,u,{ref:r,style:{...n.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))});function Fse(n){return r=>r.pointerType!=="mouse"?n(r):void 0}const yGn=uGn,wGn=fGn,xGn=dGn,SGn=pGn,EGn=gGn,kGn=bGn,CGn=mGn,IGn=vGn,K7t=({children:n,isDanger:r,labelAs:c="p",...u})=>{const{getColorModeValue:d}=ei();return V(Vc,{...u,w:"full",rounded:"none",fontSize:"sm",variant:r?d("danger","danger"):d("light","light"),bg:d("white","gray.850"),color:r?d("danger.500","red.300"):d("gray.800","gray.50"),height:"7",children:V(Bi,{flexGrow:1,textAlign:"left",as:c,pr:"4",css:{"&:first-letter":{textTransform:"capitalize"}},children:n})})},TGn=n=>n.isSubMenu?V(Si,{children:n.children}):V(yGn,{children:n.children}),AFt=({children:n,isDisabled:r,options:c,isSubMenu:u=!1,...d})=>{const{getColorModeValue:p}=ei(),m=U.exports.useRef(null),x=U.exports.useRef(!1);if(r)return V(Si,{children:n});const E=u?{}:{onCloseAutoFocus:k=>{x.current&&(x.current=!1,k.preventDefault())}};return We(TGn,{isSubMenu:u,children:[V(In,{as:u?CGn:wGn,...d,children:n}),V(xGn,{children:V(In,{as:u?IGn:SGn,boxShadow:p("dark-lg","dark-lg"),overflow:"hidden",minWidth:"100px",bg:p("gray.25","gray.850"),color:p("white","white"),ref:m,paddingY:"0.5",shadow:"lg",rounded:"md",border:"1px",borderColor:p("gray.50","whiteAlpha.50"),...E,children:c.filter(k=>!k.isHidden).map((k,T)=>k.children?V(kGn,{children:V(AFt,{isSubMenu:!0,options:k.children,__css:{'&[data-state="open"] button':{backgroundColor:p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)")},"&:focus":{outline:"none"},"&:focus button":{backgroundColor:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-danger-500)"):p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)"),color:k.isDanger?p("var(--chakra-colors-white)","var(--chakra-colors-white)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")},"&:hover button":{background:k.isDanger?p("var(--chakra-colors-redAlpha-100)","var(--chakra-colors-redAlpha-100)"):p("var(--chakra-colors-gray-50)","var(--chakra-colors-whiteAlpha-200)"),color:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-red-300)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")}},children:V(K7t,{rightIcon:V(zce,{}),children:k.label})})},T):V(In,{as:EGn,__css:{"&:focus":{outline:"none"},"&:focus button":{backgroundColor:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-danger-500)"):p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)"),color:k.isDanger?p("var(--chakra-colors-white)","var(--chakra-colors-white)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")},"&:hover button":{background:k.isDanger?p("var(--chakra-colors-redAlpha-100)","var(--chakra-colors-redAlpha-100)"):p("var(--chakra-colors-gray-50)","var(--chakra-colors-whiteAlpha-200)"),color:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-red-300)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")}},onSelect:()=>{if(!m.current)return;(I=>{const O=HTMLElement.prototype.focus,N=SVGElement.prototype.focus;let j=!1;HTMLElement.prototype.focus=function(...L){if(!j)return j=!0,x.current=!0,O.apply(this,L)},SVGElement.prototype.focus=function(...L){if(!j)return j=!0,x.current=!0,N.apply(this,L)};try{I()}finally{HTMLElement.prototype.focus=O,SVGElement.prototype.focus=N}})(()=>{var I;(I=k.action)==null||I.call(k)})},children:V(K7t,{isDanger:k.isDanger,title:k.title,isDisabled:k.isDisabled,leftIcon:k.icon,rightIcon:k.isActive?V(Szn,{}):void 0,labelAs:typeof k.label=="string"?"p":"div",textStyle:"medium",children:k.label})},T))})})]})},PFt=()=>({nodes:new Map,edges:new Map,focus(n,r){var u,d,p;if(n==="edge_label"||n==="edge_guard"){const m=this.edges.get(r);return m?n==="edge_guard"?((u=m.guardInputRef.current)==null||u.focus(),null):((d=m.labelInputRef.current)==null||d.focus(),null):()=>this.focus(n,r)}const c=this.nodes.get(r);return c?((p=c.inputRef.current)==null||p.focus(),null):()=>this.focus(n,r)}}),OFt=U.exports.createContext(PFt());function _Ft(){return U.exports.useContext(OFt)}function MFt(...[n,r,c]){const u=_Ft();Ble(()=>n==="edge"?(u.edges.set(r,c),()=>void u.edges.delete(r)):(u.nodes.set(r,c),()=>void u.nodes.delete(r)),[c])}function AGn({children:n,value:r}){return V(OFt.Provider,{value:r,children:n})}const r1=U.exports.createContext(null),DFt=U.exports.createContext(null),Qc=()=>U.exports.useContext(DFt);function bN(n){const r=U.exports.useContext(r1),c=Al(r,u=>u.children.canvasInteractions,vPe,tNe);return Al(c,n,vPe,u=>u.deferred?Sq.initialState:u.state)}function RS(){return bN(r=>r==null?void 0:r.context.viewBox)}function PGn(n){const r=Qc(),{getColorModeValue:c}=ei(),{selection:u}=n,d=U.exports.useRef(null);U.exports.useEffect(()=>Il.bindAll(d.current,[{type:"pointerdown",listener:m=>{m.stopPropagation()}}]),[]);const{zoom:p}=RS();return We(_w,{height:"2rem",isAttached:!0,ref:d,style:{position:"absolute",left:`calc(50% + ${u.svgRect.x+u.svgRect.width/2}px)`,top:u.svgRect.y,transform:`translate(-50%, calc(-100%)) scale(${1/p}) translateY(-10px)`,transformOrigin:"50% bottom"},children:[V(Vc,{...c(oue,sue),"aria-label":"Add guarded transition",title:"Add guarded transition",onClick:m=>{r.send({type:"edge.addTransition",edgeId:u.edgeId}),m.target.blur()},paddingInline:"2",leftIcon:V(VDe,{}),height:"100%",children:"Transition"}),u.type==="single-edge"?V(S$t,{...c(oue,sue),"aria-label":"Delete transition",title:"Delete transition",onClick:m=>{r.send({type:"edge.delete",edgeId:u.edgeId}),m.target.blur()},icon:V(yW,{}),height:"100%"}):null]})}function qk(n){const{width:r,height:c,x:u,y:d,style:p}=n;return V(Qt.svg,{width:r,height:c,style:{position:"absolute",left:`${u}px`,top:`${d}px`,overflow:"visible",...p},css:{pointerEvents:"none","[data-interactive]":{pointerEvents:"auto"}},children:n.children})}const mN=U.exports.createContext({current:null}),NFt=12,cM=NFt*1.5,Y7t=({anchorType:n,edgeId:r,cx:c,cy:u,...d})=>{const p=ut.useRef(null),m=Qc(),{getColorModeValue:x}=ei(),{zoom:E}=RS(),k=U.exports.useContext(mN);ut.useEffect(()=>Il.bindAll(p.current,[{type:"pointerdown",listener:I=>{Hce(I,r),I.stopPropagation(),I.target.setPointerCapture(I.pointerId),m.send({type:"edge.anchor.moveStart",edgeId:r,anchor:n,point:jx(I,k.current)})}},{type:"pointermove",listener:I=>{m.send({type:"edge.anchor.move",edgeId:r,point:jx(I,k.current)})}},{type:"pointerup",listener:I=>{I.target.releasePointerCapture(I.pointerId),m.send({type:"edge.anchor.moveEnd",point:jx(I,k.current)})}},{type:"pointercancel",listener:I=>{I.target.releasePointerCapture(I.pointerId),m.send({type:"edge.anchor.moveEnd",point:jx(I,k.current)})}}]),[n,r,m]);const T=cM/2,P=T;return We(qk,{pointerEvents:"auto",x:+c,y:+u,height:cM,width:cM,style:{transform:`scale(${1/E}) translate(${-cM/2}px, ${-cM/2}px) `,transformOrigin:"top left"},children:[V("filter",{id:"anchor-shadow",children:V("feDropShadow",{dx:"0",dy:"0",stdDeviation:".5"})}),We("g",{"data-edge-anchor-group":!0,children:[V("circle",{r:NFt/2,fill:x("black","white"),cx:T,cy:P,"data-edge-anchor":!0,style:{filter:"url(#anchor-shadow)"}}),V("circle",{ref:p,r:cM/2,fill:"transparent",cx:T,cy:P,cursor:"grab",pointerEvents:"auto",...d})]})]})},OGn=sg({preserveActionOrder:!0,id:"drag",initial:"choose_initial_state",context:{ref:null,delta:{dx:0,dy:0},currentDelta:{dx:0,dy:0},startPoint:{x:0,y:0},dragPoint:{x:0,y:0},disabled:!1},states:{choose_initial_state:{always:[{cond:"isDisabled",target:"disabled"},"enabled"]},disabled:{on:{ENABLE_DRAG:"enabled"}},enabled:{initial:"idle",on:{DISABLE_DRAG:"disabled"},invoke:{src:"pointerListeners"},states:{idle:{on:{pointerdown:{target:"preDragging",actions:"updateStartPoint"}}},preDragging:{on:{pointerup:{target:"idle",actions:"click"},pointermove:"dragging",pointerleave:"idle",pointercancel:"idle"}},dragging:{entry:["dragStart","setPointerCapture"],exit:["releasePointerCapture"],on:{pointermove:{actions:["updateDelta","onDrag"]},pointerup:{target:"idle",actions:["updateDelta","dragEnd","resetState"]},pointercancel:{target:"idle",actions:["updateDelta","dragEnd","resetState"]}}}}}}},{guards:{isDisabled:n=>n.disabled},actions:{setPointerCapture:({ref:n},r)=>{"pointerId"in r&&n.current.setPointerCapture(r.pointerId)},releasePointerCapture:({ref:n},r)=>{"pointerId"in r&&n.current.releasePointerCapture(r.pointerId)},updateStartPoint:eo({startPoint:(n,r)=>({x:r.x,y:r.y}),dragPoint:(n,r)=>({x:r.x,y:r.y})}),updateDelta:eo({dragPoint:(n,r)=>({x:r.x,y:r.y}),delta:(n,r)=>({dx:r.x-n.startPoint.x,dy:r.y-n.startPoint.y}),currentDelta:(n,r)=>({dx:r.x-n.dragPoint.x,dy:r.y-n.dragPoint.y})}),resetState:eo({startPoint:{x:0,y:0},delta:{dx:0,dy:0},dragPoint:{x:0,y:0},currentDelta:{dx:0,dy:0}})},services:{pointerListeners:({ref:n,svgRef:r})=>c=>Il.bindAll(n.current,[{type:"pointerdown",listener:u=>{var p;if(jU(u)||(Hce(u,"drag"),u.button!==0&&u.button!==1))return;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerdown",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointermove",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointermove",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointerup",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerup",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointercancel",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointercancel",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointerleave",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerleave",pointerId:u.pointerId,pointerEvent:u,...d})}}])}}),mfe=(n,{disabled:r=!1,onClick:c,onDragStart:u,onDrag:d,onDragEnd:p},m)=>{const x=vW(OGn,{context:{ref:n,svgRef:m,disabled:r},actions:{click:E=>{c==null||c(E)},onDrag:E=>{d==null||d(E)},dragEnd:E=>{p==null||p(E)},dragStart:E=>{u==null||u(E.startPoint)}}});return U.exports.useEffect(()=>{x.send({type:r?"DISABLE_DRAG":"ENABLE_DRAG"})},[r,x]),x.send};class CNe extends Error{}function INe(n,r,c=(u,d)=>u===d){const u=r(n.getSnapshot()),[,d]=U.exports.useState(u);return U.exports.useEffect(()=>{let p=u;const m=n.subscribe(()=>{const x=r(n.getSnapshot());x instanceof CNe||c(x,p)||(p=x,d(x))});return()=>{m==null||m.unsubscribe()}},[n,r]),u}function va(n,r){const c=Qc();return INe(c,n,r)}function Ew(n,r,c){const u=Qc();return INe(u,d=>{const p=d.getNodeByUniqueId(n);return p?r(p,d):new CNe},c)}function jd(n,r,c){const u=Qc();return INe(u,U.exports.useCallback(d=>{const p=d.getEdgeByUniqueId(n);return p?r(p,d):new CNe},[n,r]),c)}function jFt(n){return va(r=>r.status==="selected"&&Object.keys(r.selection).length===1&&!!r.selection[n])}const Xh=20,Bse=({side:n,nodeId:r,...c})=>{const u=ut.useRef(null),d=Qc(),p=bN(I=>I.matches({mode:"pannable"})),{getColorModeValue:m}=ei(),x=U.exports.useContext(mN),E=Ew(r,I=>({point:I.currentRects.family.centerSide(n),serialisableId:I.getSerialisableId()}),Go),{zoom:k}=RS(),T=2;mfe(u,{onDragStart:()=>{d.send({type:"node.newEdge.start",nodeId:r,side:n})},onDrag:I=>{d.send({type:"node.newEdge.move",nodeId:r,point:I.dragPoint})},onDragEnd:I=>{d.send({type:"node.newEdge.end",nodeId:r,point:I.dragPoint})},onClick:I=>{console.log("clicked"),d.send({type:"node.newEdge.start",nodeId:r,side:n}),d.send({type:"node.newEdge.end",nodeId:r,point:I.startPoint})}},x),ut.useEffect(()=>{if(p){d.send({type:"node.newEdge.cancel"});return}},[d,p,r,n]);const P={left:`translate(${-Xh-10}px, ${-Xh/2}px)`,right:`translate(${10}px, ${-Xh/2}px)`,top:`translate(${-Xh/2}px, ${-Xh-10}px)`,bottom:`translate(${-Xh/2}px, ${10}px)`}[n];return V(qk,{x:E.point.x,y:E.point.y,width:Xh,height:Xh,style:{color:m("white","var(--chakra-colors-primary-600)"),transformOrigin:"top left",transform:`scale(${1/k}) ${P} `},children:We("g",{"data-node-anchor-group":!0,children:[V("rect",{pointerEvents:"auto",fill:m("var(--chakra-colors-blue-500)","white"),ref:u,"data-testname":`${E.serialisableId}#new-edge-anchor#${n}`,width:Xh,height:Xh,rx:T,ry:T,...c,cursor:"grab","data-node-anchor":!0,onPointerOver:()=>{d.send({type:"node.newEdge.start",nodeId:r,side:n})},onPointerOut:()=>{d.send({type:"node.newEdge.cancel"})}}),V("line",{x1:Xh/2,y1:6,x2:Xh/2,y2:Xh-6,stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",pointerEvents:"none","data-node-anchor-line":!0}),V("line",{x1:6,y1:Xh/2,x2:Xh-6,y2:Xh/2,stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",pointerEvents:"none","data-node-anchor-line":!0})]})})};function _Gn(n){const r=Qc(),{getColorModeValue:c}=ei(),{selection:u,...d}=n,p=U.exports.useRef(null);U.exports.useEffect(()=>Il.bindAll(p.current,[{type:"pointerdown",listener:x=>{x.stopPropagation()}}]),[]);const{zoom:m}=RS();return We(_w,{height:"2rem",isAttached:!0,pointerEvents:"auto",ref:p,...d,style:{...d.style,position:"absolute",left:`calc(50% + ${u.svgRect.x+u.svgRect.width/2}px)`,top:u.svgRect.y,transform:`translateX(-50%) scale(${1/m}) translateY(calc(-100% - ${Xh+20}px))`,transformOrigin:"top center"},children:[V(Vc,{...c(oue,sue),"aria-label":"Add child state",title:"Add child state",onClick:x=>{r.send({type:"node.newChildNode",nodeId:u.nodeId}),x.currentTarget.blur()},leftIcon:V(VDe,{}),paddingInline:"2",height:"100%",children:"State"}),!u.isRoot&&V(S$t,{...c(oue,sue),"aria-label":"Delete state",title:"Delete state",onClick:()=>{r.send({type:"node.delete",nodeId:u.nodeId})},height:"100%",icon:V(yW,{})})]})}const MGn=({nodeId:n})=>We(Si,{children:[V(Bse,{nodeId:n,side:"top"}),V(Bse,{nodeId:n,side:"bottom"}),V(Bse,{nodeId:n,side:"left"}),V(Bse,{nodeId:n,side:"right"})]}),Q7t=({box:n,...r})=>{const c=Math.min(n[0].x,n[1].x),u=Math.max(n[0].x,n[1].x)-c,d=Math.min(n[0].y,n[1].y),p=Math.max(n[0].y,n[1].y)-d;return V(qk,{children:V("rect",{x:c,y:d,width:u,height:p,...r})})},DGn=2;function NGn({canvasActor:n}){const{getColorModeValue:r}=ei(),c=Al(n,p=>p.context.selectionBox,Go),u=va(p=>{const m=Object.values(p.selection);return m.length<=1?null:sS(m.map(x=>x.type==="node"?p.getNodeByUniqueId(x.id).currentRects.family:p.getEdgeByUniqueId(x.id).getBounds())).expand(DGn).getBox()},Go),{zoom:d}=RS();return We(Si,{children:[c&&V(Q7t,{box:c,fill:r("#8A8A99","#8A8A99"),opacity:.2,stroke:r("white","white"),vectorEffect:"non-scaling-stroke",strokeWidth:2/d}),u&&V(Q7t,{box:u,fill:r("rgba(138, 138, 153, 0.05)","rgba(138, 138, 153, 0.05)"),stroke:r("var(--chakra-colors-blue-500","#fff"),vectorEffect:"non-scaling-stroke",strokeWidth:2/d})]})}const RM=2,jGn=({nodeId:n})=>{const{getColorModeValue:r}=ei(),{x:c,y:u,width:d,height:p}=Ew(n,x=>({x:x.currentRects.family.left-RM,y:x.currentRects.family.top-RM,width:x.currentRects.family.width+RM*2,height:x.currentRects.family.height+RM*2}),Go),{zoom:m}=RS();return V("rect",{"data-testid":`node-selection-rect:${n}`,fill:"none",stroke:r("var(--chakra-colors-blue-500","#fff"),strokeWidth:2/m,rx:2,x:c,y:u,width:d,height:p,vectorEffect:"non-scaling-stroke"})},RGn=({edgeId:n})=>{const{getColorModeValue:r}=ei(),c=jd(n,d=>{const p=d.getFamilyRect();if(!!p)return{x:p.left-zse,y:p.top-zse,width:p.width+zse*2,height:p.height+zse*2}},Go),{zoom:u}=RS();return c?V("rect",{fill:"none",stroke:r("var(--chakra-colors-blue-500)","#fff"),strokeWidth:2/u,rx:20,x:c.x,y:c.y,width:c.width,height:c.height,vectorEffect:"non-scaling-stroke",pointerEvents:"none"}):null},zse=RM-1,$Gn=({edgeId:n})=>{const{edgePathData:r,displayEventType:c}=jd(n,u=>({edgePathData:u.getPathData(),displayEventType:u.getDisplayEventType()}),Go);return We(Si,{children:[r&&V(Y7t,{edgeId:n,"data-testname":"notdefined",cx:r.sourcePathData.startAnchor.x,cy:r.sourcePathData.startAnchor.y,anchorType:"source"}),r&&V(Y7t,{"data-testname":`${c}#transition#0#target-anchor`,edgeId:n,cx:r.targetPathData.endAnchor.x,cy:r.targetPathData.endAnchor.y,anchorType:"target"})]})},oue={fontSize:"sm",bg:"blue.500",color:"white",rounded:"2px",_hover:{bg:"blue.600"},_focus:{bg:"blue.600"},_active:{bg:"blue.600"}},sue={fontSize:"sm",bg:"white",color:"black",rounded:"2px",_hover:{bg:"gray.50"},_focus:{bg:"gray.50"},_active:{bg:"gray.50"}};function vfe(){const n=U.exports.useContext(r1);return Al(n,c=>c.children.canvasInteractions,Object.is,tNe)}const LGn=()=>{const n=U.exports.useContext(r1),r=va(m=>{const x=Object.keys(m.selection);if(x.length===0)return{type:"none"};if(x.length===1){const E=Object.values(m.selection)[0];if(E.type==="node"){const T=m.getNodeByUniqueId(E.id);return{type:"single-node",nodeId:T.uniqueId,isRoot:!T.parent,svgRect:T.currentRects.family}}const k=m.getEdgeByUniqueId(E.id);return{type:"single-edge",edgeId:E.id,svgRect:k.getLabelRect()}}else return{type:"multi",boundsBox:sS(Object.values(m.selection).map(E=>E.type==="node"?m.getNodeByUniqueId(E.id).currentRects.family:m.getEdgeByUniqueId(E.id).getBounds())).expand(RM).getBox()}},Go),c=va(m=>m.tempEdge),u=va(m=>Object.values(m.selection).filter(x=>x.type==="edge"),Go),d=va(m=>Object.values(m.selection).filter(x=>x.type==="node"),Go);return va(m=>["selecting","movingSelection"].includes(m.status))?null:We(Si,{children:[V(NGn,{canvasActor:n}),We(qk,{children:[u.map(m=>V(RGn,{edgeId:m.id},m.id)),d.map(m=>V(jGn,{nodeId:m.id},m.id))]}),r.type==="single-node"?We(Si,{children:[V(_Gn,{opacity:(c==null?void 0:c.originalSourceSide)==="top"?0:1,transition:"opacity 0.2s",selection:r}),V(MGn,{nodeId:r.nodeId},r.nodeId)]}):r.type==="single-edge"?We(Si,{children:[V(PGn,{selection:r}),V($Gn,{edgeId:r.edgeId},r.edgeId)]}):null]})},jw=()=>{const n=ut.useContext(r1);return Al(n,c=>c.matches("simulating"))},FGn=()=>ut.useContext(r1),yfe=n=>{const r=Ew(n,x=>x.getSerialisableId()),c=va(x=>x.root.data.key),u=va(x=>x.root.uniqueId===n),d=ut.useContext(r1),p=jw();return(Al(d,x=>{const E=x.context.activeState;return((E==null?void 0:E.toStrings())||[]).map(T=>`${c}.${T}`).includes(r)})||u)&&p},RFt=n=>{const r=jd(n,x=>x.getNodeSource().uniqueId),c=jd(n,x=>x.getDisplayEventType()),u=ut.useContext(r1),d=Al(u,x=>x.context.activeState?zGn(c,x.context.activeState):!1),p=yfe(r),m=jw();return d&&p&&m},BGn=n=>{const r=new Set;for(const c of n)for(let u=0;uc.split(".")).concat([])},zGn=(n,r)=>{const c=VGn(r),u=r==null?void 0:r.configuration.flatMap(d=>d.transitions).filter(d=>{const p=d.eventType;return p.startsWith("done.state.")?c.has(p):!0});return u!=null&&u.some(d=>{var p;return!((p=d.cond)!=null&&p.name)&&d.eventType===""})?n==="":u!=null&&u.some(d=>{var p;return!((p=d.cond)!=null&&p.name)&&d.eventType.startsWith("done.state.")&&c.has(d.eventType)})?n.startsWith("done.state."):u.some(d=>d.eventType===n)},VGn=n=>{const r=zn.toStatePaths(n==null?void 0:n.value),u=BGn(r).map(p=>{var m;return(m=n==null?void 0:n.machine)==null?void 0:m.getStateNodeByPath(p)}),d=new Set;return u.forEach(p=>{Pae(n.configuration,p)&&d.add(`done.state.${p.id}`)}),d},$Ft=(n,{canZoomIn:r,canZoomOut:c,showKeyboardShortcuts:u})=>[{label:V(B9,{title:"Zoom In",icon:T$t,keyboardShortcut:u?V(hh,{children:"+"}):void 0,isDisabled:!r}),action:()=>n.send({type:"zoom.in"})},{label:V(B9,{title:"Zoom Out",icon:I$t,keyboardShortcut:u?V(hh,{children:"-"}):void 0,isDisabled:!c}),action:()=>{c&&n.send({type:"zoom.out"})}},{label:V(B9,{title:"25%"}),action:()=>n.send({type:"zoom.set",value:.25,origin:{x:0,y:0}})},{label:V(B9,{title:"50%"}),action:()=>n.send({type:"zoom.set",value:.5,origin:{x:0,y:0}})},{label:V(B9,{title:"75%"}),action:()=>n.send({type:"zoom.set",value:.75,origin:{x:0,y:0}})},{label:V(B9,{title:"100%",keyboardShortcut:u?We(Si,{children:[V(hh,{children:"Shift"})," + ",V(hh,{children:"0"})]}):void 0}),action:()=>n.send({type:"zoom.set",value:1,origin:{x:0,y:0}})},{label:V(B9,{title:"Fit to Content",icon:azn,keyboardShortcut:u?We(Si,{children:[V(hh,{children:"Shift"})," + ",V(hh,{children:"1"})]}):void 0}),action:()=>n.send({type:"fit_to_content"})}],UGn=()=>{const n=U.exports.useContext(r1),{getColorModeValue:r}=ei(),c=Al(n,m=>m.children.canvasInteractions,Object.is,tNe),{zoom:u,canZoomOut:d,canZoomIn:p}=Al(c,m=>({viewBox:m.context.viewBox,zoom:m.context.viewBox.zoom,canZoomOut:m.can({type:"zoom.out"}),canZoomIn:m.can({type:"zoom.in"})}),Go,m=>m.deferred?Sq.initialState:m.state);return We(_w,{isAttached:!0,children:[V(Ev,{"aria-label":"Zoom Out",isDisabled:!d,onClick:()=>c.send({type:"zoom.out"}),bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),children:V(I$t,{})}),We(NU.Wrapper,{placement:"top-end",children:[We(NU.MenuButton,{as:Vc,textStyle:"semibold",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),variant:"gray",width:"8ch",fontSize:"sm",children:[(u*100).toFixed(),"%"]}),V(s3,{children:V(NU.MenuList,{children:$Ft(c,{canZoomIn:p,canZoomOut:d,showKeyboardShortcuts:!0}).map((m,x)=>V(NU.MenuItem,{onClick:m.action,children:m.label},`zoomCommand-${x}`))})})]}),V(Ev,{"aria-label":"Zoom In",isDisabled:!p,bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),onClick:()=>c.send({type:"zoom.in"}),children:V(T$t,{})})]})},B9=n=>{const{getColorModeValue:r}=ei();return We(nl,{w:"full",opacity:n.isDisabled?.25:1,cursor:n.isDisabled?"not-allowed":"",children:[n.icon&&V(n.icon,{w:"4",h:"4",color:r("gray.600","gray.400")}),V(Bi,{flex:"1",marginLeft:n.icon?"0":"22px",pl:1,children:n.title}),n.keyboardShortcut&&V(In,{color:r("gray.600","gray.200"),pl:"4",children:n.keyboardShortcut})]})},HGn=["normal","parallel","history","final"];function qGn(n,r,c,{nodeId:u,serialisableId:d,data:p,isInitialState:m,isRootNode:x,isParentParallelState:E,showProOptions:k=!1}){var I;const T=[{label:"rename",action:()=>{r.send({type:"select",mode:"single",entity:{id:u,type:"node"}}),n.focus("node",u)}},{label:"type",children:HGn.map(O=>({label:O,isActive:O===nNe(p.type),action:()=>{r.send({type:"node.modify.type",nodeId:u,stateType:O})}}))},{label:"add self-transition",action:()=>{r.send({type:"edge.new",source:d,target:d})}}],P=(I=r.getSnapshot().getNodeByUniqueId(u))==null?void 0:I.parent;return!m&&!x&&!E&&P&&T.push({label:"mark as initial state",action:()=>{r.send({type:"node.setInitialState",nodeId:P.uniqueId,key:p.key})}}),x&&T.unshift({label:"autolayout",action:()=>{r.send({type:"autolayout"})}}),T.push({label:"Center to view",action:()=>{c.send({type:"fit_to_content",nodeId:u})}}),k&&mNe.ALLOW_PRO_COLORS&&T.push({label:"color",children:V$n.map(O=>({label:O,isActive:O===p.color||p.color===void 0&&O==="Default",action:()=>{r.send({type:"node.setColor",nodeId:u,color:O})}}))}),x||T.push({label:"Delete",isDanger:!0,action:()=>{r.send({type:"node.delete",nodeId:u})}}),T}function WGn(n,r,{edgeId:c,data:u,transitionPossibleEventTypes:d,firstInvocationId:p,targetSerialisableId:m,sourceSerialisableId:x}){const{eventTypeData:E}=u,k=[{label:"event",isActive:E.type==="named",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"named",eventType:"Event name"},edgeId:c})}},{label:"after",isActive:E.type==="after",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"after",delay:"500"},edgeId:c})}},{label:"always",isActive:E.type==="always",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"always"},edgeId:c})}},{label:"wildcard event",isActive:E.type==="wildcard",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"wildcard"},edgeId:c})}}];d.includes("state.done")&&k.push({label:"State Done Event",isActive:E.type==="state.done",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"state.done"},edgeId:c})}}),d.includes("invocation.done")&&p&&k.push({label:"Invocation Done Event",isActive:E.type==="invocation.done",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"invocation.done",invocationId:p},edgeId:c})}}),d.includes("invocation.error")&&p&&k.push({label:"Invocation Error Event",isActive:E.type==="invocation.error",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"invocation.error",invocationId:p},edgeId:c})}});const T=[{label:"event type",children:k}];return u.guard?T.push({label:"remove guard",action:()=>{r.send({type:"edge.removeGuard",edgeId:c})}}):T.push({label:"add guard",action:()=>{r.send({type:"edge.addGuard",edgeId:c})}}),m!==x&&!["invocation.done","invocation.error","state.done"].includes(u.eventTypeData.type)&&T.push({label:"switch source and target",action:()=>{r.send({type:"edge.setSourceAndTarget",edgeId:c,source:m,target:x})}}),m!==x&&T.push({label:"make self event",action:()=>{r.send({type:"edge.targetSelf",edgeId:c})}}),E.type==="named"&&T.unshift({label:"rename",action:()=>{r.send({type:"select",entity:{id:c,type:"edge"},mode:"single"}),n.focus("edge_label",c)}}),T.push({label:"Delete",isDanger:!0,action:()=>{r.send({type:"edge.delete",edgeId:c})}}),T}function GGn({showProOptions:n=!1,...r}){const c=Qc(),u=vfe(),d=jw(),p=_Ft(),{canZoomIn:m,canZoomOut:x}=bN(T=>({canZoomIn:T.can({type:"zoom.in"}),canZoomOut:T.can({type:"zoom.out"})}));let E;const k=va(ut.useCallback(T=>{var O,N,j;const P=T.selection,I=Object.values(P);if(I.length===0||d)return{type:"zoom"};if(I.length===1){if(I[0].type==="node"){const F=T.getNodeByUniqueId(I[0].id);return{type:"single_node_selection",nodeId:F.uniqueId,serialisableId:F.getSerialisableId(),data:F.data,isInitialState:((O=F.parent)==null?void 0:O.data.initial)===F.data.key,isRootNode:!F.parent,isParentParallelState:((N=F.parent)==null?void 0:N.data.type)==="parallel"}}const L=T.getEdgeByUniqueId(I[0].id),$=L.getNodeSource();return{type:"single_edge_selection",edgeId:L.uniqueId,data:L.data,transitionPossibleEventTypes:oLt(L),firstInvocationId:(j=$.invocations)!=null&&j[0]?Jh($.invocations[0]):void 0,targetSerialisableId:L.target.getSerialisableId(),sourceSerialisableId:$.getSerialisableId()}}return{type:"multi_selection"}},[d]),Go);return k.type==="zoom"?E=$Ft(u,{canZoomIn:m,canZoomOut:x,showKeyboardShortcuts:!1}):k.type==="single_node_selection"?E=qGn(p,c,u,{...k,showProOptions:n}):k.type==="single_edge_selection"?E=WGn(p,c,k):E=[{label:"Delete",isDanger:!0,action:()=>{c.send({type:"selection.delete"})}}],V(AFt,{options:E,...r})}const XGn=n=>({context:"{}",rootNode:{id:n,size:{height:0,width:0},position:{x:0,y:0},nodes:[{id:"First State",data:{type:"atomic",key:"First State",entry:[],exit:[],invoke:[],tags:[]},position:{x:0,y:0},nodes:[]},{id:"Second State",data:{type:"atomic",key:"Second State",entry:[],exit:[],invoke:[],tags:[]},position:{x:400,y:0},nodes:[]}],data:{key:n,type:"compound",initial:"First State",entry:[],exit:[],invoke:[],tags:[]}},edges:[{id:WDe(`${n}.First State`,"Event",0),data:{eventTypeData:{type:"named",eventType:"Event"},guard:void 0,actions:[],description:void 0,internal:!1,metaEntries:[]},position:{x:200,y:0},source:`${n}.First State`,target:`${n}.Second State`}]}),KGn=(n,r,c,u,d,p)=>"rootNode"in n&&"edges"in n?T7t(n,{name:r,context:"context"in n?JSON.parse(n.context):{}},c,u,d,p):T7t(XGn(r),{name:r,context:{}},c,u,d,p),kW=U.exports.createContext({}),YGn=sg({id:"initial fit to content",initial:"check autolayout status",states:{"check autolayout status":{always:[{cond:"isAutolayoutNeeded",target:"autolayout needed"},{target:"fit to content done"}]},"autolayout needed":{invoke:{src:"listenToGraphAutolayoutStatus"},on:{"autolayout performed":{target:"fit to content done"}}},"fit to content done":{type:"final"}}});function QGn(n){return n}function ZGn(n){return n.length===0?QGn:n.length===1?n[0]:function(c){return n.reduce((u,d)=>d(u),c)}}function wfe(n){const r={subscribe(c){let u=null,d=!1,p=!1,m=!1;function x(){if(u===null){m=!0;return}p||(p=!0,typeof u=="function"?u():u&&u.unsubscribe())}return u=n({next(E){var k;d||(k=c.next)==null||k.call(c,E)},error(E){var k;d||(d=!0,(k=c.error)==null||k.call(c,E),x())},complete(){var E;d||(d=!0,(E=c.complete)==null||E.call(c),x())}}),m&&x(),{unsubscribe:x}},pipe(...c){return ZGn(c)(r)}};return r}function JGn(n){return r=>{let c=0,u=null;const d=[];function p(){u||(u=r.subscribe({next(x){var E;for(const k of d)(E=k.next)==null||E.call(k,x)},error(x){var E;for(const k of d)(E=k.error)==null||E.call(k,x)},complete(){var x;for(const E of d)(x=E.complete)==null||x.call(E)}}))}function m(){if(c===0&&u){const x=u;u=null,x.unsubscribe()}}return{subscribe(x){return c++,d.push(x),p(),{unsubscribe(){c--,m();const E=d.findIndex(k=>k===x);E>-1&&d.splice(E,1)}}}}}}function eXn(n){return r=>({subscribe(c){return r.subscribe({next(u){var d,p;(d=n.next)==null||d.call(n,u),(p=c.next)==null||p.call(c,u)},error(u){var d,p;(d=n.error)==null||d.call(n,u),(p=c.error)==null||p.call(c,u)},complete(){var u,d;(u=n.complete)==null||u.call(n),(d=c.complete)==null||d.call(c)}})}})}class TNe extends Error{constructor(r){super(r),this.name="ObservableAbortError",Object.setPrototypeOf(this,TNe.prototype)}}function tXn(n){let r;return{promise:new Promise((u,d)=>{let p=!1;function m(){p||(p=!0,d(new TNe("This operation was aborted.")),x.unsubscribe())}const x=n.subscribe({next(E){p=!0,u(E),m()},error(E){p=!0,d(E),m()},complete(){p=!0,m()}});r=m}),abort:r}}class x7 extends Error{static from(r,c={}){var u;return r instanceof Error?r.name==="TRPCClientError"?r:new x7(r.message,{...c,cause:r,result:null}):new x7((u=r.error.message)!=null?u:"",{...c,cause:void 0,result:r})}constructor(r,c){var d,p;const u=c==null?void 0:c.cause;super(r,{cause:u}),this.meta=c==null?void 0:c.meta,this.cause=u,this.shape=(d=c==null?void 0:c.result)==null?void 0:d.error,this.data=(p=c==null?void 0:c.result)==null?void 0:p.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,x7.prototype)}}function nXn(n,r){if("error"in n){const u=r.transformer.deserialize(n.error);return{ok:!1,error:{...n,error:u}}}const c={...n.result,...(!n.result.type||n.result.type==="data")&&{type:"data",data:r.transformer.deserialize(n.result.data)}};return{ok:!0,result:c}}function rXn(n){return wfe(r=>{function c(d=0,p=n.op){const m=n.links[d];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:p,next(E){return c(d+1,E)}})}return c().subscribe(r)})}function LFt(){return typeof window<"u"?window:globalThis}function iXn(n){var r;return(r=n!=null?n:LFt().AbortController)!=null?r:null}function oXn(n){if(n)return n;const r=LFt(),c=r.fetch;if(c)return typeof c.bind=="function"?c.bind(r):c;throw new Error("No fetch implementation found")}function sXn(n){const r=n.headers||(()=>({}));return{url:n.url,fetch:oXn(n.fetch),AbortController:iXn(n.AbortController),headers:typeof r=="function"?r:()=>r}}function aXn(n){const r={};for(let c=0;cn.runtime.transformer.serialize(r)))}function BFt(n){let r=n.url+"/"+n.path;const c=[];if("inputs"in n&&c.push("batch=1"),n.type==="query"){const u=FFt(n);u!==void 0&&c.push(`input=${encodeURIComponent(JSON.stringify(u))}`)}return c.length&&(r+="?"+c.join("&")),r}function uXn(n){if(n.type==="query")return;const r=FFt(n);return r!==void 0?JSON.stringify(r):void 0}function lXn(n){const{type:r}=n,c=n.AbortController?new n.AbortController:null;return{promise:new Promise((p,m)=>{const x=BFt(n),E=uXn(n),k={};Promise.resolve(n.headers()).then(T=>{if(r==="subscription")throw new Error("Subscriptions should use wsLink");return n.fetch(x,{method:cXn[r],signal:c==null?void 0:c.signal,body:E,headers:{"content-type":"application/json",...T}})}).then(T=>(k.response=T,T.json())).then(T=>{p({json:T,meta:k})}).catch(m)}),cancel:()=>{c==null||c.abort()}}}const x7e=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function S7e(n){let r=null,c=null;const u=()=>{clearTimeout(c),c=null,r=null};function d(x){const E=[[]];let k=0;for(;;){const T=x[k];if(!T)break;const P=E[E.length-1];if(T.aborted){T.reject(new Error("Aborted")),k++;continue}if(n.validate(P.concat(T).map(O=>O.key))){P.push(T),k++;continue}if(P.length===0){T.reject(new Error("Input is too big for a single dispatch")),k++;continue}E.push([])}return E}function p(){const x=d(r);u();for(const E of x){if(!E.length)continue;const k={items:E,cancel:x7e};for(const I of E)I.batch=k;const{promise:T,cancel:P}=n.fetch(k.items.map(I=>I.key));k.cancel=P,T.then(I=>{for(let O=0;O{for(const O of k.items)O.reject(I),O.batch=null})}}function m(x){const E={aborted:!1,key:x,batch:null,resolve:x7e,reject:x7e},k=new Promise((P,I)=>{E.reject=I,E.resolve=P,r||(r=[]),r.push(E)});return c||(c=setTimeout(p)),{promise:k,cancel:()=>{var P;E.aborted=!0,(P=E.batch)!=null&&P.items.every(I=>I.aborted)&&(E.batch.cancel(),E.batch=null)}}}return{load:m}}function ANe(n){const r=sXn(n);return c=>{const u=n.maxURLLength||1/0,d=k=>({validate:I=>{if(u===1/0)return!0;const O=I.map(L=>L.path).join(","),N=I.map(L=>L.input);return BFt({...r,runtime:c,type:k,path:O,inputs:N}).length<=u},fetch:I=>{const O=I.map($=>$.path).join(","),N=I.map($=>$.input),{promise:j,cancel:L}=lXn({...r,runtime:c,type:k,path:O,inputs:N});return{promise:j.then($=>(Array.isArray($.json)?$.json:I.map(()=>$.json)).map(X=>({meta:$.meta,json:X}))),cancel:L}}}),p=S7e(d("query")),m=S7e(d("mutation")),x=S7e(d("subscription")),E={query:p,subscription:x,mutation:m};return({op:k})=>wfe(T=>{const P=E[k.type],{promise:I,cancel:O}=P.load(k);return I.then(N=>{const j=nXn(N.json,c);if(!j.ok){T.error(x7.from(j.error,{meta:N.meta}));return}T.next({context:N.meta,result:j.result}),T.complete()}).catch(N=>T.error(x7.from(N))),()=>{O()}})}}const zFt=()=>{};function VFt(n,r){return new Proxy(zFt,{get(u,d){if(!(typeof d!="string"||d==="then"))return VFt(n,[...r,d])},apply(u,d,p){return n({args:p,path:r})}})}const PNe=n=>VFt(n,[]),xfe=n=>new Proxy(zFt,{get(r,c){if(!(typeof c!="string"||c==="then"))return n(c)}}),fXn={query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},dXn=(n=console)=>r=>{const{direction:c,input:u,type:d,path:p,context:m,id:x}=r,[E,k]=fXn[d],T=` - background-color: #${c==="up"?E:k}; - color: ${c==="up"?"black":"white"}; - padding: 2px; - `,P=["%c",c==="up"?">>":"<<",d,`#${x}`,`%c${p}%c`,"%O"],I=[T,`${T}; font-weight: bold;`,`${T}; font-weight: normal;`];r.direction==="up"?I.push({input:u,context:m}):I.push({input:u,result:r.result,elapsedMs:r.elapsedMs,context:m});const O=r.direction==="down"&&r.result&&(r.result instanceof Error||"error"in r.result.result)?"error":"log";n[O].apply(null,[P.join(" ")].concat(I))};function hXn(n={}){const{enabled:r=()=>!0}=n,{logger:c=dXn(n.console)}=n;return()=>({op:u,next:d})=>wfe(p=>{r({...u,direction:"up"})&&c({...u,direction:"up"});const m=Date.now();function x(E){const k=Date.now()-m;r({...u,direction:"down",result:E})&&c({...u,direction:"down",elapsedMs:k,result:E})}return d(u).pipe(eXn({next(E){x(E)},error(E){x(E)}})).subscribe(p)})}class UFt{$request({type:r,input:c,path:u,context:d={}}){return rXn({links:this.links,op:{id:++this.requestId,type:r,path:u,input:c,context:d}}).pipe(JGn())}requestAsPromise(r){const c=this.$request(r),{promise:u,abort:d}=tXn(c);return new Promise((m,x)=>{var E;(E=r.signal)==null||E.addEventListener("abort",d),u.then(k=>{m(k.result.data)}).catch(k=>{x(x7.from(k))})})}query(r,c,u){return this.requestAsPromise({type:"query",path:r,input:c,context:u==null?void 0:u.context,signal:u==null?void 0:u.signal})}mutation(r,c,u){return this.requestAsPromise({type:"mutation",path:r,input:c,context:u==null?void 0:u.context,signal:u==null?void 0:u.signal})}subscription(r,c,u){return this.$request({type:"subscription",path:r,input:c,context:u==null?void 0:u.context}).subscribe({next(p){var m,x,E;p.result.type==="started"?(m=u.onStarted)==null||m.call(u):p.result.type==="stopped"?(x=u.onStopped)==null||x.call(u):(E=u.onData)==null||E.call(u,p.result.data)},error(p){var m;(m=u.onError)==null||m.call(u,p)},complete(){var p;(p=u.onComplete)==null||p.call(u)}})}constructor(r){this.requestId=0;function c(){return r.transformer?"input"in r.transformer?{serialize:r.transformer.input.serialize,deserialize:r.transformer.output.deserialize}:r.transformer:{serialize:u=>u,deserialize:u=>u}}this.runtime={transformer:c()},this.links=r.links.map(u=>u(this.runtime))}}function HFt(n){const r=()=>"links"in n?n.links:[ANe(n)];return new UFt({transformer:n.transformer,links:r()})}const pXn={query:"query",mutate:"mutation",subscribe:"subscription"};function qFt(n){return xfe(r=>r in n?n[r]:PNe(({path:c,args:u})=>{const d=[r,...c],p=d.pop(),m=pXn[p],x=d.join(".");return n[m](x,...u)}))}function gXn(n){const r=new UFt(n);return qFt(r)}class vN{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.push(r),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(c=>c!==r),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Dq=typeof window>"u";function cv(){}function bXn(n,r){return typeof n=="function"?n(r):n}function GPe(n){return typeof n=="number"&&n>=0&&n!==1/0}function WFt(n,r){return Math.max(n+(r||0)-Date.now(),0)}function CH(n,r,c){return CW(n)?typeof r=="function"?{...c,queryKey:n,queryFn:r}:{...r,queryKey:n}:n}function mXn(n,r,c){return CW(n)?typeof r=="function"?{...c,mutationKey:n,mutationFn:r}:{...r,mutationKey:n}:typeof n=="function"?{...r,mutationFn:n}:{...n}}function VE(n,r,c){return CW(n)?[{...r,queryKey:n},c]:[n||{},r]}function Z7t(n,r){const{type:c="all",exact:u,fetchStatus:d,predicate:p,queryKey:m,stale:x}=n;if(CW(m)){if(u){if(r.queryHash!==ONe(m,r.options))return!1}else if(!aue(r.queryKey,m))return!1}if(c!=="all"){const E=r.isActive();if(c==="active"&&!E||c==="inactive"&&E)return!1}return!(typeof x=="boolean"&&r.isStale()!==x||typeof d<"u"&&d!==r.state.fetchStatus||p&&!p(r))}function J7t(n,r){const{exact:c,fetching:u,predicate:d,mutationKey:p}=n;if(CW(p)){if(!r.options.mutationKey)return!1;if(c){if(nk(r.options.mutationKey)!==nk(p))return!1}else if(!aue(r.options.mutationKey,p))return!1}return!(typeof u=="boolean"&&r.state.status==="loading"!==u||d&&!d(r))}function ONe(n,r){return((r==null?void 0:r.queryKeyHashFn)||nk)(n)}function nk(n){return JSON.stringify(n,(r,c)=>KPe(c)?Object.keys(c).sort().reduce((u,d)=>(u[d]=c[d],u),{}):c)}function aue(n,r){return GFt(n,r)}function GFt(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?!Object.keys(r).some(c=>!GFt(n[c],r[c])):!1}function XFt(n,r){if(n===r)return n;const c=eTt(n)&&eTt(r);if(c||KPe(n)&&KPe(r)){const u=c?n.length:Object.keys(n).length,d=c?r:Object.keys(r),p=d.length,m=c?[]:{};let x=0;for(let E=0;E"u")return!0;const c=r.prototype;return!(!tTt(c)||!c.hasOwnProperty("isPrototypeOf"))}function tTt(n){return Object.prototype.toString.call(n)==="[object Object]"}function CW(n){return Array.isArray(n)}function KFt(n){return new Promise(r=>{setTimeout(r,n)})}function nTt(n){KFt(0).then(n)}function vXn(){if(typeof AbortController=="function")return new AbortController}function YPe(n,r,c){return c.isDataEqual!=null&&c.isDataEqual(n,r)?n:typeof c.structuralSharing=="function"?c.structuralSharing(n,r):c.structuralSharing!==!1?XFt(n,r):r}class yXn extends vN{constructor(){super(),this.setup=r=>{if(!Dq&&window.addEventListener){const c=()=>r();return window.addEventListener("visibilitychange",c,!1),window.addEventListener("focus",c,!1),()=>{window.removeEventListener("visibilitychange",c),window.removeEventListener("focus",c)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}}setEventListener(r){var c;this.setup=r,(c=this.cleanup)==null||c.call(this),this.cleanup=r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(r){this.focused=r,r&&this.onFocus()}onFocus(){this.listeners.forEach(r=>{r()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const cue=new yXn;class wXn extends vN{constructor(){super(),this.setup=r=>{if(!Dq&&window.addEventListener){const c=()=>r();return window.addEventListener("online",c,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",c)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}}setEventListener(r){var c;this.setup=r,(c=this.cleanup)==null||c.call(this),this.cleanup=r(u=>{typeof u=="boolean"?this.setOnline(u):this.onOnline()})}setOnline(r){this.online=r,r&&this.onOnline()}onOnline(){this.listeners.forEach(r=>{r()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const uue=new wXn;function xXn(n){return Math.min(1e3*2**n,3e4)}function Sfe(n){return(n!=null?n:"online")==="online"?uue.isOnline():!0}class YFt{constructor(r){this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}}function Mae(n){return n instanceof YFt}function QFt(n){let r=!1,c=0,u=!1,d,p,m;const x=new Promise((L,$)=>{p=L,m=$}),E=L=>{u||(O(new YFt(L)),n.abort==null||n.abort())},k=()=>{r=!0},T=()=>{r=!1},P=()=>!cue.isFocused()||n.networkMode!=="always"&&!uue.isOnline(),I=L=>{u||(u=!0,n.onSuccess==null||n.onSuccess(L),d==null||d(),p(L))},O=L=>{u||(u=!0,n.onError==null||n.onError(L),d==null||d(),m(L))},N=()=>new Promise(L=>{d=$=>{if(u||!P())return L($)},n.onPause==null||n.onPause()}).then(()=>{d=void 0,u||n.onContinue==null||n.onContinue()}),j=()=>{if(u)return;let L;try{L=n.fn()}catch($){L=Promise.reject($)}Promise.resolve(L).then(I).catch($=>{var F,B;if(u)return;const X=(F=n.retry)!=null?F:3,ne=(B=n.retryDelay)!=null?B:xXn,Z=typeof ne=="function"?ne(c,$):ne,H=X===!0||typeof X=="number"&&c{if(P())return N()}).then(()=>{r?O($):j()})})};return Sfe(n.networkMode)?j():N().then(j),{promise:x,cancel:E,continue:()=>{d==null||d()},cancelRetry:k,continueRetry:T}}const _Ne=console;function SXn(){let n=[],r=0,c=T=>{T()},u=T=>{T()};const d=T=>{let P;r++;try{P=T()}finally{r--,r||x()}return P},p=T=>{r?n.push(T):nTt(()=>{c(T)})},m=T=>(...P)=>{p(()=>{T(...P)})},x=()=>{const T=n;n=[],T.length&&nTt(()=>{u(()=>{T.forEach(P=>{c(P)})})})};return{batch:d,batchCalls:m,schedule:p,setNotifyFunction:T=>{c=T},setBatchNotifyFunction:T=>{u=T}}}const nf=SXn();class ZFt{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GPe(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(r){this.cacheTime=Math.max(this.cacheTime||0,r!=null?r:Dq?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class EXn extends ZFt{constructor(r){super(),this.abortSignalConsumed=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.logger=r.logger||_Ne,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||kXn(this.options),this.state=this.initialState}get meta(){return this.options.meta}setOptions(r){this.options={...this.defaultOptions,...r},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(r,c){const u=YPe(this.state.data,r,this.options);return this.dispatch({data:u,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),u}setState(r,c){this.dispatch({type:"setState",state:r,setStateOptions:c})}cancel(r){var c;const u=this.promise;return(c=this.retryer)==null||c.cancel(r),u?u.then(cv).catch(cv):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(r=>r.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(r=>r.getCurrentResult().isStale)}isStaleByTime(r=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!WFt(this.state.dataUpdatedAt,r)}onFocus(){var r;const c=this.observers.find(u=>u.shouldFetchOnWindowFocus());c&&c.refetch({cancelRefetch:!1}),(r=this.retryer)==null||r.continue()}onOnline(){var r;const c=this.observers.find(u=>u.shouldFetchOnReconnect());c&&c.refetch({cancelRefetch:!1}),(r=this.retryer)==null||r.continue()}addObserver(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(c=>c!==r),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(r,c){var u,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&c!=null&&c.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var p;return(p=this.retryer)==null||p.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){const O=this.observers.find(N=>N.options.queryFn);O&&this.setOptions(O.options)}Array.isArray(this.options.queryKey);const m=vXn(),x={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},E=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>{if(m)return this.abortSignalConsumed=!0,m.signal}})};E(x);const k=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(x)):Promise.reject("Missing queryFn"),T={fetchOptions:c,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:k};if(E(T),(u=this.options.behavior)==null||u.onFetch(T),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=T.fetchOptions)==null?void 0:d.meta)){var P;this.dispatch({type:"fetch",meta:(P=T.fetchOptions)==null?void 0:P.meta})}const I=O=>{if(Mae(O)&&O.silent||this.dispatch({type:"error",error:O}),!Mae(O)){var N,j;(N=(j=this.cache.config).onError)==null||N.call(j,O,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=QFt({fn:T.fetchFn,abort:m==null?void 0:m.abort.bind(m),onSuccess:O=>{var N,j;if(typeof O>"u"){I(new Error("undefined"));return}this.setData(O),(N=(j=this.cache.config).onSuccess)==null||N.call(j,O,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:I,onFail:(O,N)=>{this.dispatch({type:"failed",failureCount:O,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay,networkMode:T.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(r){const c=u=>{var d,p;switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(d=r.meta)!=null?d:null,fetchStatus:Sfe(this.options.networkMode)?"fetching":"paused",...!u.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...u,data:r.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:(p=r.dataUpdatedAt)!=null?p:Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const m=r.error;return Mae(m)&&m.revert&&this.revertState?{...this.revertState}:{...u,error:m,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=c(this.state),nf.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate(r)}),this.cache.notify({query:this,type:"updated",action:r})})}}function kXn(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,c=typeof r<"u",u=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:c?u!=null?u:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"loading",fetchStatus:"idle"}}class CXn extends vN{constructor(r){super(),this.config=r||{},this.queries=[],this.queriesMap={}}build(r,c,u){var d;const p=c.queryKey,m=(d=c.queryHash)!=null?d:ONe(p,c);let x=this.get(m);return x||(x=new EXn({cache:this,logger:r.getLogger(),queryKey:p,queryHash:m,options:r.defaultQueryOptions(c),state:u,defaultOptions:r.getQueryDefaults(p)}),this.add(x)),x}add(r){this.queriesMap[r.queryHash]||(this.queriesMap[r.queryHash]=r,this.queries.push(r),this.notify({type:"added",query:r}))}remove(r){const c=this.queriesMap[r.queryHash];c&&(r.destroy(),this.queries=this.queries.filter(u=>u!==r),c===r&&delete this.queriesMap[r.queryHash],this.notify({type:"removed",query:r}))}clear(){nf.batch(()=>{this.queries.forEach(r=>{this.remove(r)})})}get(r){return this.queriesMap[r]}getAll(){return this.queries}find(r,c){const[u]=VE(r,c);return typeof u.exact>"u"&&(u.exact=!0),this.queries.find(d=>Z7t(u,d))}findAll(r,c){const[u]=VE(r,c);return Object.keys(u).length>0?this.queries.filter(d=>Z7t(u,d)):this.queries}notify(r){nf.batch(()=>{this.listeners.forEach(c=>{c(r)})})}onFocus(){nf.batch(()=>{this.queries.forEach(r=>{r.onFocus()})})}onOnline(){nf.batch(()=>{this.queries.forEach(r=>{r.onOnline()})})}}class IXn extends ZFt{constructor(r){super(),this.options={...r.defaultOptions,...r.options},this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.logger=r.logger||_Ne,this.observers=[],this.state=r.state||JFt(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(r){this.dispatch({type:"setState",state:r})}addObserver(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){this.observers=this.observers.filter(c=>c!==r),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const r=()=>{var B;return this.retryer=QFt({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(X,ne)=>{this.dispatch({type:"failed",failureCount:X,error:ne})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(B=this.options.retry)!=null?B:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},c=this.state.status==="loading";try{var u,d,p,m,x,E;if(!c){var k,T,P,I;this.dispatch({type:"loading",variables:this.options.variables}),await((k=(T=this.mutationCache.config).onMutate)==null?void 0:k.call(T,this.state.variables,this));const X=await((P=(I=this.options).onMutate)==null?void 0:P.call(I,this.state.variables));X!==this.state.context&&this.dispatch({type:"loading",context:X,variables:this.state.variables})}const B=await r();return await((u=(d=this.mutationCache.config).onSuccess)==null?void 0:u.call(d,B,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,B,this.state.variables,this.state.context)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,B,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:B}),B}catch(B){try{var O,N,j,L,$,F;throw await((O=(N=this.mutationCache.config).onError)==null?void 0:O.call(N,B,this.state.variables,this.state.context,this)),await((j=(L=this.options).onError)==null?void 0:j.call(L,B,this.state.variables,this.state.context)),await(($=(F=this.options).onSettled)==null?void 0:$.call(F,void 0,B,this.state.variables,this.state.context)),B}finally{this.dispatch({type:"error",error:B})}}}dispatch(r){const c=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"loading":return{...u,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Sfe(this.options.networkMode),status:"loading",variables:r.variables};case"success":return{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"};case"setState":return{...u,...r.state}}};this.state=c(this.state),nf.batch(()=>{this.observers.forEach(u=>{u.onMutationUpdate(r)}),this.mutationCache.notify({mutation:this,type:"updated",action:r})})}}function JFt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class TXn extends vN{constructor(r){super(),this.config=r||{},this.mutations=[],this.mutationId=0}build(r,c,u){const d=new IXn({mutationCache:this,logger:r.getLogger(),mutationId:++this.mutationId,options:r.defaultMutationOptions(c),state:u,defaultOptions:c.mutationKey?r.getMutationDefaults(c.mutationKey):void 0});return this.add(d),d}add(r){this.mutations.push(r),this.notify({type:"added",mutation:r})}remove(r){this.mutations=this.mutations.filter(c=>c!==r),this.notify({type:"removed",mutation:r})}clear(){nf.batch(()=>{this.mutations.forEach(r=>{this.remove(r)})})}getAll(){return this.mutations}find(r){return typeof r.exact>"u"&&(r.exact=!0),this.mutations.find(c=>J7t(r,c))}findAll(r){return this.mutations.filter(c=>J7t(r,c))}notify(r){nf.batch(()=>{this.listeners.forEach(c=>{c(r)})})}resumePausedMutations(){const r=this.mutations.filter(c=>c.state.isPaused);return nf.batch(()=>r.reduce((c,u)=>c.then(()=>u.continue().catch(cv)),Promise.resolve()))}}function QPe(){return{onFetch:n=>{n.fetchFn=()=>{var r,c,u,d,p,m;const x=(r=n.fetchOptions)==null||(c=r.meta)==null?void 0:c.refetchPage,E=(u=n.fetchOptions)==null||(d=u.meta)==null?void 0:d.fetchMore,k=E==null?void 0:E.pageParam,T=(E==null?void 0:E.direction)==="forward",P=(E==null?void 0:E.direction)==="backward",I=((p=n.state.data)==null?void 0:p.pages)||[],O=((m=n.state.data)==null?void 0:m.pageParams)||[];let N=O,j=!1;const L=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{var H;if((H=n.signal)!=null&&H.aborted)j=!0;else{var ce;(ce=n.signal)==null||ce.addEventListener("abort",()=>{j=!0})}return n.signal}})},$=n.options.queryFn||(()=>Promise.reject("Missing queryFn")),F=(Z,H,ce,pe)=>(N=pe?[H,...N]:[...N,H],pe?[ce,...Z]:[...Z,ce]),B=(Z,H,ce,pe)=>{if(j)return Promise.reject("Cancelled");if(typeof ce>"u"&&!H&&Z.length)return Promise.resolve(Z);const le={queryKey:n.queryKey,pageParam:ce,meta:n.options.meta};L(le);const ye=$(le);return Promise.resolve(ye).then(qe=>F(Z,ce,qe,pe))};let X;if(!I.length)X=B([]);else if(T){const Z=typeof k<"u",H=Z?k:ZPe(n.options,I);X=B(I,Z,H)}else if(P){const Z=typeof k<"u",H=Z?k:eBt(n.options,I);X=B(I,Z,H,!0)}else{N=[];const Z=typeof n.options.getNextPageParam>"u";X=(x&&I[0]?x(I[0],0,I):!0)?B([],Z,O[0]):Promise.resolve(F([],O[0],I[0]));for(let ce=1;ce{if(x&&I[ce]?x(I[ce],ce,I):!0){const ye=Z?O[ce]:ZPe(n.options,pe);return B(pe,Z,ye)}return Promise.resolve(F(pe,O[ce],I[ce]))})}return X.then(Z=>({pages:Z,pageParams:N}))}}}}function ZPe(n,r){return n.getNextPageParam==null?void 0:n.getNextPageParam(r[r.length-1],r)}function eBt(n,r){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(r[0],r)}function AXn(n,r){if(n.getNextPageParam&&Array.isArray(r)){const c=ZPe(n,r);return typeof c<"u"&&c!==null&&c!==!1}}function PXn(n,r){if(n.getPreviousPageParam&&Array.isArray(r)){const c=eBt(n,r);return typeof c<"u"&&c!==null&&c!==!1}}class OXn{constructor(r={}){this.queryCache=r.queryCache||new CXn,this.mutationCache=r.mutationCache||new TXn,this.logger=r.logger||_Ne,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=cue.subscribe(()=>{cue.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=uue.subscribe(()=>{uue.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var r,c;(r=this.unsubscribeFocus)==null||r.call(this),(c=this.unsubscribeOnline)==null||c.call(this)}isFetching(r,c){const[u]=VE(r,c);return u.fetchStatus="fetching",this.queryCache.findAll(u).length}isMutating(r){return this.mutationCache.findAll({...r,fetching:!0}).length}getQueryData(r,c){var u;return(u=this.queryCache.find(r,c))==null?void 0:u.state.data}getQueriesData(r){return this.getQueryCache().findAll(r).map(({queryKey:c,state:u})=>{const d=u.data;return[c,d]})}setQueryData(r,c,u){const d=this.queryCache.find(r),p=d==null?void 0:d.state.data,m=bXn(c,p);if(typeof m>"u")return;const x=CH(r),E=this.defaultQueryOptions(x);return this.queryCache.build(this,E).setData(m,{...u,manual:!0})}setQueriesData(r,c,u){return nf.batch(()=>this.getQueryCache().findAll(r).map(({queryKey:d})=>[d,this.setQueryData(d,c,u)]))}getQueryState(r,c){var u;return(u=this.queryCache.find(r,c))==null?void 0:u.state}removeQueries(r,c){const[u]=VE(r,c),d=this.queryCache;nf.batch(()=>{d.findAll(u).forEach(p=>{d.remove(p)})})}resetQueries(r,c,u){const[d,p]=VE(r,c,u),m=this.queryCache,x={type:"active",...d};return nf.batch(()=>(m.findAll(d).forEach(E=>{E.reset()}),this.refetchQueries(x,p)))}cancelQueries(r,c,u){const[d,p={}]=VE(r,c,u);typeof p.revert>"u"&&(p.revert=!0);const m=nf.batch(()=>this.queryCache.findAll(d).map(x=>x.cancel(p)));return Promise.all(m).then(cv).catch(cv)}invalidateQueries(r,c,u){const[d,p]=VE(r,c,u);return nf.batch(()=>{var m,x;if(this.queryCache.findAll(d).forEach(k=>{k.invalidate()}),d.refetchType==="none")return Promise.resolve();const E={...d,type:(m=(x=d.refetchType)!=null?x:d.type)!=null?m:"active"};return this.refetchQueries(E,p)})}refetchQueries(r,c,u){const[d,p]=VE(r,c,u),m=nf.batch(()=>this.queryCache.findAll(d).filter(E=>!E.isDisabled()).map(E=>{var k;return E.fetch(void 0,{...p,cancelRefetch:(k=p==null?void 0:p.cancelRefetch)!=null?k:!0,meta:{refetchPage:d.refetchPage}})}));let x=Promise.all(m).then(cv);return p!=null&&p.throwOnError||(x=x.catch(cv)),x}fetchQuery(r,c,u){const d=CH(r,c,u),p=this.defaultQueryOptions(d);typeof p.retry>"u"&&(p.retry=!1);const m=this.queryCache.build(this,p);return m.isStaleByTime(p.staleTime)?m.fetch(p):Promise.resolve(m.state.data)}prefetchQuery(r,c,u){return this.fetchQuery(r,c,u).then(cv).catch(cv)}fetchInfiniteQuery(r,c,u){const d=CH(r,c,u);return d.behavior=QPe(),this.fetchQuery(d)}prefetchInfiniteQuery(r,c,u){return this.fetchInfiniteQuery(r,c,u).then(cv).catch(cv)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(r){this.defaultOptions=r}setQueryDefaults(r,c){const u=this.queryDefaults.find(d=>nk(r)===nk(d.queryKey));u?u.defaultOptions=c:this.queryDefaults.push({queryKey:r,defaultOptions:c})}getQueryDefaults(r){if(!r)return;const c=this.queryDefaults.find(u=>aue(r,u.queryKey));return c==null?void 0:c.defaultOptions}setMutationDefaults(r,c){const u=this.mutationDefaults.find(d=>nk(r)===nk(d.mutationKey));u?u.defaultOptions=c:this.mutationDefaults.push({mutationKey:r,defaultOptions:c})}getMutationDefaults(r){if(!r)return;const c=this.mutationDefaults.find(u=>aue(r,u.mutationKey));return c==null?void 0:c.defaultOptions}defaultQueryOptions(r){if(r!=null&&r._defaulted)return r;const c={...this.defaultOptions.queries,...this.getQueryDefaults(r==null?void 0:r.queryKey),...r,_defaulted:!0};return!c.queryHash&&c.queryKey&&(c.queryHash=ONe(c.queryKey,c)),typeof c.refetchOnReconnect>"u"&&(c.refetchOnReconnect=c.networkMode!=="always"),typeof c.useErrorBoundary>"u"&&(c.useErrorBoundary=!!c.suspense),c}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...this.defaultOptions.mutations,...this.getMutationDefaults(r==null?void 0:r.mutationKey),...r,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tBt extends vN{constructor(r,c){super(),this.client=r,this.options=c,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(c)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),rTt(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return JPe(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return JPe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(r,c){const u=this.options,d=this.currentQuery;if(this.options=this.client.defaultQueryOptions(r),XPe(u,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();const p=this.hasListeners();p&&iTt(this.currentQuery,d,this.options,u)&&this.executeFetch(),this.updateResult(c),p&&(this.currentQuery!==d||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();const m=this.computeRefetchInterval();p&&(this.currentQuery!==d||this.options.enabled!==u.enabled||m!==this.currentRefetchInterval)&&this.updateRefetchInterval(m)}getOptimisticResult(r){const c=this.client.getQueryCache().build(this.client,r);return this.createResult(c,r)}getCurrentResult(){return this.currentResult}trackResult(r){const c={};return Object.keys(r).forEach(u=>{Object.defineProperty(c,u,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(u),r[u])})}),c}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:r,...c}={}){return this.fetch({...c,meta:{refetchPage:r}})}fetchOptimistic(r){const c=this.client.defaultQueryOptions(r),u=this.client.getQueryCache().build(this.client,c);return u.isFetchingOptimistic=!0,u.fetch().then(()=>this.createResult(u,c))}fetch(r){var c;return this.executeFetch({...r,cancelRefetch:(c=r.cancelRefetch)!=null?c:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(r){this.updateQuery();let c=this.currentQuery.fetch(this.options,r);return r!=null&&r.throwOnError||(c=c.catch(cv)),c}updateStaleTimeout(){if(this.clearStaleTimeout(),Dq||this.currentResult.isStale||!GPe(this.options.staleTime))return;const c=WFt(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},c)}computeRefetchInterval(){var r;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(r=this.options.refetchInterval)!=null?r:!1}updateRefetchInterval(r){this.clearRefetchInterval(),this.currentRefetchInterval=r,!(Dq||this.options.enabled===!1||!GPe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||cue.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(r,c){const u=this.currentQuery,d=this.options,p=this.currentResult,m=this.currentResultState,x=this.currentResultOptions,E=r!==u,k=E?r.state:this.currentQueryInitialState,T=E?this.currentResult:this.previousQueryResult,{state:P}=r;let{dataUpdatedAt:I,error:O,errorUpdatedAt:N,fetchStatus:j,status:L}=P,$=!1,F=!1,B;if(c._optimisticResults){const ce=this.hasListeners(),pe=!ce&&rTt(r,c),le=ce&&iTt(r,u,c,d);(pe||le)&&(j=Sfe(r.options.networkMode)?"fetching":"paused",I||(L="loading")),c._optimisticResults==="isRestoring"&&(j="idle")}if(c.keepPreviousData&&!P.dataUpdatedAt&&T!=null&&T.isSuccess&&L!=="error")B=T.data,I=T.dataUpdatedAt,L=T.status,$=!0;else if(c.select&&typeof P.data<"u")if(p&&P.data===(m==null?void 0:m.data)&&c.select===this.selectFn)B=this.selectResult;else try{this.selectFn=c.select,B=c.select(P.data),B=YPe(p==null?void 0:p.data,B,c),this.selectResult=B,this.selectError=null}catch(ce){this.selectError=ce}else B=P.data;if(typeof c.placeholderData<"u"&&typeof B>"u"&&L==="loading"){let ce;if(p!=null&&p.isPlaceholderData&&c.placeholderData===(x==null?void 0:x.placeholderData))ce=p.data;else if(ce=typeof c.placeholderData=="function"?c.placeholderData():c.placeholderData,c.select&&typeof ce<"u")try{ce=c.select(ce),this.selectError=null}catch(pe){this.selectError=pe}typeof ce<"u"&&(L="success",B=YPe(p==null?void 0:p.data,ce,c),F=!0)}this.selectError&&(O=this.selectError,B=this.selectResult,N=Date.now(),L="error");const X=j==="fetching",ne=L==="loading",Z=L==="error";return{status:L,fetchStatus:j,isLoading:ne,isSuccess:L==="success",isError:Z,isInitialLoading:ne&&X,data:B,dataUpdatedAt:I,error:O,errorUpdatedAt:N,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>k.dataUpdateCount||P.errorUpdateCount>k.errorUpdateCount,isFetching:X,isRefetching:X&&!ne,isLoadingError:Z&&P.dataUpdatedAt===0,isPaused:j==="paused",isPlaceholderData:F,isPreviousData:$,isRefetchError:Z&&P.dataUpdatedAt!==0,isStale:MNe(r,c),refetch:this.refetch,remove:this.remove}}updateResult(r){const c=this.currentResult,u=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,XPe(u,c))return;this.currentResult=u;const d={cache:!0},p=()=>{if(!c)return!0;const{notifyOnChangeProps:m}=this.options;if(m==="all"||!m&&!this.trackedProps.size)return!0;const x=new Set(m!=null?m:this.trackedProps);return this.options.useErrorBoundary&&x.add("error"),Object.keys(this.currentResult).some(E=>{const k=E;return this.currentResult[k]!==c[k]&&x.has(k)})};(r==null?void 0:r.listeners)!==!1&&p()&&(d.listeners=!0),this.notify({...d,...r})}updateQuery(){const r=this.client.getQueryCache().build(this.client,this.options);if(r===this.currentQuery)return;const c=this.currentQuery;this.currentQuery=r,this.currentQueryInitialState=r.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(c==null||c.removeObserver(this),r.addObserver(this))}onQueryUpdate(r){const c={};r.type==="success"?c.onSuccess=!r.manual:r.type==="error"&&!Mae(r.error)&&(c.onError=!0),this.updateResult(c),this.hasListeners()&&this.updateTimers()}notify(r){nf.batch(()=>{if(r.onSuccess){var c,u,d,p;(c=(u=this.options).onSuccess)==null||c.call(u,this.currentResult.data),(d=(p=this.options).onSettled)==null||d.call(p,this.currentResult.data,null)}else if(r.onError){var m,x,E,k;(m=(x=this.options).onError)==null||m.call(x,this.currentResult.error),(E=(k=this.options).onSettled)==null||E.call(k,void 0,this.currentResult.error)}r.listeners&&this.listeners.forEach(T=>{T(this.currentResult)}),r.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function _Xn(n,r){return r.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&r.retryOnMount===!1)}function rTt(n,r){return _Xn(n,r)||n.state.dataUpdatedAt>0&&JPe(n,r,r.refetchOnMount)}function JPe(n,r,c){if(r.enabled!==!1){const u=typeof c=="function"?c(n):c;return u==="always"||u!==!1&&MNe(n,r)}return!1}function iTt(n,r,c,u){return c.enabled!==!1&&(n!==r||u.enabled===!1)&&(!c.suspense||n.state.status!=="error")&&MNe(n,c)}function MNe(n,r){return n.isStaleByTime(r.staleTime)}class MXn extends tBt{constructor(r,c){super(r,c)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(r,c){super.setOptions({...r,behavior:QPe()},c)}getOptimisticResult(r){return r.behavior=QPe(),super.getOptimisticResult(r)}fetchNextPage({pageParam:r,...c}={}){return this.fetch({...c,meta:{fetchMore:{direction:"forward",pageParam:r}}})}fetchPreviousPage({pageParam:r,...c}={}){return this.fetch({...c,meta:{fetchMore:{direction:"backward",pageParam:r}}})}createResult(r,c){var u,d,p,m,x,E;const{state:k}=r,T=super.createResult(r,c),{isFetching:P,isRefetching:I}=T,O=P&&((u=k.fetchMeta)==null||(d=u.fetchMore)==null?void 0:d.direction)==="forward",N=P&&((p=k.fetchMeta)==null||(m=p.fetchMore)==null?void 0:m.direction)==="backward";return{...T,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:AXn(c,(x=k.data)==null?void 0:x.pages),hasPreviousPage:PXn(c,(E=k.data)==null?void 0:E.pages),isFetchingNextPage:O,isFetchingPreviousPage:N,isRefetching:I&&!O&&!N}}}class DXn extends vN{constructor(r,c){super(),this.client=r,this.setOptions(c),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const c=this.options;this.options=this.client.defaultMutationOptions(r),XPe(c,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var r;(r=this.currentMutation)==null||r.removeObserver(this)}}onMutationUpdate(r){this.updateResult();const c={listeners:!0};r.type==="success"?c.onSuccess=!0:r.type==="error"&&(c.onError=!0),this.notify(c)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(r,c){return this.mutateOptions=c,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof r<"u"?r:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const r=this.currentMutation?this.currentMutation.state:JFt(),c={...r,isLoading:r.status==="loading",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=c}notify(r){nf.batch(()=>{if(this.mutateOptions){if(r.onSuccess){var c,u,d,p;(c=(u=this.mutateOptions).onSuccess)==null||c.call(u,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(d=(p=this.mutateOptions).onSettled)==null||d.call(p,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(r.onError){var m,x,E,k;(m=(x=this.mutateOptions).onError)==null||m.call(x,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(E=(k=this.mutateOptions).onSettled)==null||E.call(k,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}r.listeners&&this.listeners.forEach(T=>{T(this.currentResult)})})}}function NXn(n){return{mutationKey:n.options.mutationKey,state:n.state}}function jXn(n){return{state:n.state,queryKey:n.queryKey,queryHash:n.queryHash}}function RXn(n){return n.state.isPaused}function $Xn(n){return n.state.status==="success"}function LXn(n,r={}){const c=[],u=[];if(r.dehydrateMutations!==!1){const d=r.shouldDehydrateMutation||RXn;n.getMutationCache().getAll().forEach(p=>{d(p)&&c.push(NXn(p))})}if(r.dehydrateQueries!==!1){const d=r.shouldDehydrateQuery||$Xn;n.getQueryCache().getAll().forEach(p=>{d(p)&&u.push(jXn(p))})}return{mutations:c,queries:u}}function FXn(n,r,c){if(typeof r!="object"||r===null)return;const u=n.getMutationCache(),d=n.getQueryCache(),p=r.mutations||[],m=r.queries||[];p.forEach(x=>{var E;u.build(n,{...c==null||(E=c.defaultOptions)==null?void 0:E.mutations,mutationKey:x.mutationKey},x.state)}),m.forEach(x=>{var E;const k=d.get(x.queryHash);if(k){k.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GXn:WXn;rBt.useSyncExternalStore=RD.useSyncExternalStore!==void 0?RD.useSyncExternalStore:XXn;(function(n){n.exports=rBt})(nBt);const iBt=nBt.exports.useSyncExternalStore,oTt=U.exports.createContext(void 0),oBt=U.exports.createContext(!1);function sBt(n,r){return n||(r&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=oTt),window.ReactQueryClientContext):oTt)}const Efe=({context:n}={})=>{const r=U.exports.useContext(sBt(n,U.exports.useContext(oBt)));if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},KXn=({client:n,children:r,context:c,contextSharing:u=!1})=>{U.exports.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]);const d=sBt(c,u);return V(oBt.Provider,{value:!c&&u,children:V(d.Provider,{value:n,children:r})})},aBt=U.exports.createContext(!1),YXn=()=>U.exports.useContext(aBt);aBt.Provider;function QXn(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const ZXn=U.exports.createContext(QXn()),JXn=()=>U.exports.useContext(ZXn);function cBt(n,r){return typeof n=="function"?n(...r):!!n}const eKn=(n,r)=>{(n.suspense||n.useErrorBoundary)&&(r.isReset()||(n.retryOnMount=!1))},tKn=n=>{U.exports.useEffect(()=>{n.clearReset()},[n])},nKn=({result:n,errorResetBoundary:r,useErrorBoundary:c,query:u})=>n.isError&&!r.isReset()&&!n.isFetching&&cBt(c,[n.error,u]),rKn=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},iKn=(n,r)=>n.isLoading&&n.isFetching&&!r,oKn=(n,r,c)=>(n==null?void 0:n.suspense)&&iKn(r,c),sKn=(n,r,c)=>r.fetchOptimistic(n).then(({data:u})=>{n.onSuccess==null||n.onSuccess(u),n.onSettled==null||n.onSettled(u,null)}).catch(u=>{c.clearReset(),n.onError==null||n.onError(u),n.onSettled==null||n.onSettled(void 0,u)});function uBt(n,r){const c=Efe({context:n.context}),u=YXn(),d=JXn(),p=c.defaultQueryOptions(n);p._optimisticResults=u?"isRestoring":"optimistic",p.onError&&(p.onError=nf.batchCalls(p.onError)),p.onSuccess&&(p.onSuccess=nf.batchCalls(p.onSuccess)),p.onSettled&&(p.onSettled=nf.batchCalls(p.onSettled)),rKn(p),eKn(p,d),tKn(d);const[m]=U.exports.useState(()=>new r(c,p)),x=m.getOptimisticResult(p);if(iBt(U.exports.useCallback(E=>u?()=>{}:m.subscribe(nf.batchCalls(E)),[m,u]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),U.exports.useEffect(()=>{m.setOptions(p,{listeners:!1})},[p,m]),oKn(p,x,u))throw sKn(p,m,d);if(nKn({result:x,errorResetBoundary:d,useErrorBoundary:p.useErrorBoundary,query:m.getCurrentQuery()}))throw x.error;return p.notifyOnChangeProps?x:m.trackResult(x)}function aKn(n,r,c){const u=CH(n,r,c);return uBt(u,tBt)}function cKn(n,r={}){const c=Efe({context:r.context}),u=U.exports.useRef(r);u.current=r,U.exports.useMemo(()=>{n&&FXn(c,n,u.current)},[c,n])}const uKn=({children:n,options:r,state:c})=>(cKn(c,r),n);function lKn(n,r,c){const u=mXn(n,r,c),d=Efe({context:u.context}),[p]=U.exports.useState(()=>new DXn(d,u));U.exports.useEffect(()=>{p.setOptions(u)},[p,u]);const m=iBt(U.exports.useCallback(E=>p.subscribe(nf.batchCalls(E)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x=U.exports.useCallback((E,k)=>{p.mutate(E,k).catch(fKn)},[p]);if(m.error&&cBt(p.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:x,mutateAsync:m.mutate}}function fKn(){}function dKn(n,r,c){const u=CH(n,r,c);return uBt(u,MXn)}function j1(n,r){const c=Array.isArray(n)?n:[n],[u,d]=c;return[typeof u!="string"||u===""?[]:u.split("."),{...d&&{input:d},...r&&r!=="any"&&{type:r}}]}function eOe(n,r){return r===void 0?[n]:[n,r]}function lBt(n,r){return PNe(c=>{const u=c.args,d=[n,...c.path],p=d.pop(),m=d.join(".");if(p==="useMutation")return r[p](m,...u);const[x,...E]=u,k=eOe(m,x);if(p.startsWith("useSuspense")){const T=E[0]||{},I=r[p==="useSuspenseQuery"?"useQuery":"useInfiniteQuery"](k,{...T,suspense:!0,enabled:!0});return[I.data,I]}return r[p](k,...E)})}const hKn=["client","ssrContext","ssrState","abortOnUnmount"],pKn=U.exports.createContext(null);function fBt(n){return xfe(r=>{const c=r;return c==="client"?qFt(n.client):hKn.includes(c)?n[c]:PNe(({path:u,args:d})=>{const p=[r,...u],m=p.pop(),x=p.join("."),E=O=>{if(["setData","setInfiniteData"].includes(O)){const[$,F,...B]=d;return{queryKey:eOe(x,$),updater:F,rest:B}}const[N,...j]=d;return{queryKey:eOe(x,N),rest:j}},{queryKey:k,rest:T,updater:P}=E(m);return{fetch:()=>n.fetchQuery(k,...T),fetchInfinite:()=>n.fetchInfiniteQuery(k,...T),prefetch:()=>n.prefetchQuery(k,...T),prefetchInfinite:()=>n.prefetchInfiniteQuery(k,...T),invalidate:()=>n.invalidateQueries(k,...T),refetch:()=>n.refetchQueries(k,...T),cancel:()=>n.cancelQuery(k,...T),setData:()=>n.setQueryData(k,P,...T),setInfiniteData:()=>n.setInfiniteQueryData(k,P,...T),getData:()=>n.getQueryData(k),getInfiniteData:()=>n.getInfiniteQueryData(k)}[m]()})})}function z9(n,r){const[c,u]=n;return[c,u,r==null?void 0:r.trpc]}function k7e(n){const r=U.exports.useRef(n);return r.current.path=n.path,r.current}function dBt(n){var O,N,j,L;const r=(j=(N=(O=n==null?void 0:n.unstable_overrides)==null?void 0:O.useMutation)==null?void 0:N.onSuccess)!=null?j:$=>$.originalFn(),c=(L=n==null?void 0:n.context)!=null?L:pKn,u=n==null?void 0:n.reactQueryContext,d=$=>HFt($),p=$=>{var ce;const{abortOnUnmount:F=!1,client:B,queryClient:X,ssrContext:ne}=$,[Z,H]=U.exports.useState((ce=$.ssrState)!=null?ce:!1);return U.exports.useEffect(()=>{H(pe=>pe?"mounted":!1)},[]),V(c.Provider,{value:{abortOnUnmount:F,queryClient:X,client:B,ssrContext:ne||null,ssrState:Z,fetchQuery:U.exports.useCallback((pe,le)=>X.fetchQuery(j1(pe,"query"),()=>B.query(...z9(pe,le)),le),[B,X]),fetchInfiniteQuery:U.exports.useCallback((pe,le)=>X.fetchInfiniteQuery(j1(pe,"infinite"),({pageParam:ye})=>{const[Ge,qe]=pe,et={...qe,cursor:ye};return B.query(...z9([Ge,et],le))},le),[B,X]),prefetchQuery:U.exports.useCallback((pe,le)=>X.prefetchQuery(j1(pe,"query"),()=>B.query(...z9(pe,le)),le),[B,X]),prefetchInfiniteQuery:U.exports.useCallback((pe,le)=>X.prefetchInfiniteQuery(j1(pe,"infinite"),({pageParam:ye})=>{const[Ge,qe]=pe,et={...qe,cursor:ye};return B.query(...z9([Ge,et],le))},le),[B,X]),invalidateQueries:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.invalidateQueries(j1(le,"any"),...ye)},[X]),refetchQueries:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.refetchQueries(j1(le,"any"),...ye)},[X]),cancelQuery:U.exports.useCallback(pe=>X.cancelQueries(j1(pe,"any")),[X]),setQueryData:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.setQueryData(j1(le,"query"),...ye)},[X]),getQueryData:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.getQueryData(j1(le,"query"),...ye)},[X]),setInfiniteQueryData:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.setQueryData(j1(le,"infinite"),...ye)},[X]),getInfiniteQueryData:U.exports.useCallback((...pe)=>{const[le,...ye]=pe;return X.getQueryData(j1(le,"infinite"),...ye)},[X])},children:$.children})};function m(){return ut.useContext(c)}function x($,F,B){var Z;const{queryClient:X,ssrState:ne}=m();return ne&&ne!=="mounted"&&((Z=X.getQueryCache().find(j1($,F)))==null?void 0:Z.state.status)==="error"?{retryOnMount:!1,...B}:B}function E($,F){var ye,Ge,qe;const{abortOnUnmount:B,client:X,ssrState:ne,queryClient:Z,prefetchQuery:H}=m();typeof window>"u"&&ne==="prepass"&&((ye=F==null?void 0:F.trpc)==null?void 0:ye.ssr)!==!1&&(F==null?void 0:F.enabled)!==!1&&!Z.getQueryCache().find(j1($,"query"))&&H($,F);const ce=x($,"query",F),pe=(qe=(Ge=F==null?void 0:F.trpc)==null?void 0:Ge.abortOnUnmount)!=null?qe:B,le=aKn(j1($,"query"),et=>{const tt={...ce,trpc:{...ce==null?void 0:ce.trpc,...pe?{signal:et.signal}:{}}};return X.query(...z9($,tt))},{context:u,...ce});return le.trpc=k7e({path:$[0]}),le}function k($,F){const{client:B}=m(),X=Efe({context:u}),ne=lKn(Z=>{const H=Array.isArray($)?$[0]:$;return B.mutation(...z9([H,Z],F))},{context:u,...F,onSuccess(...Z){return r({originalFn:()=>{var ce;return(ce=F==null?void 0:F.onSuccess)==null?void 0:ce.call(F,...Z)},queryClient:X})}});return ne.trpc=k7e({path:Array.isArray($)?$[0]:$}),ne}function T($,F){var Z;const B=(Z=F==null?void 0:F.enabled)!=null?Z:!0,X=nk($),{client:ne}=m();return U.exports.useEffect(()=>{if(!B)return;const[H,ce]=$;let pe=!1;const le=ne.subscription(H,ce!=null?ce:void 0,{onStarted:()=>{var ye;pe||(ye=F.onStarted)==null||ye.call(F)},onData:ye=>{pe||F.onData(ye)},onError:ye=>{var Ge;pe||(Ge=F.onError)==null||Ge.call(F,ye)}});return()=>{pe=!0,le.unsubscribe()}},[X,B])}function P($,F){var qe,et,tt;const[B,X]=$,{client:ne,ssrState:Z,prefetchInfiniteQuery:H,queryClient:ce,abortOnUnmount:pe}=m();typeof window>"u"&&Z==="prepass"&&((qe=F==null?void 0:F.trpc)==null?void 0:qe.ssr)!==!1&&(F==null?void 0:F.enabled)!==!1&&!ce.getQueryCache().find(j1($,"infinite"))&&H($,F);const le=x($,"infinite",F),ye=(tt=(et=F==null?void 0:F.trpc)==null?void 0:et.abortOnUnmount)!=null?tt:pe,Ge=dKn(j1($,"infinite"),jt=>{const Me={...le,trpc:{...le==null?void 0:le.trpc,...ye?{signal:jt.signal}:{}}},ze={...X!=null?X:{},cursor:jt.pageParam};return ne.query(...z9([B,ze],Me))},{context:u,...le});return Ge.trpc=k7e({path:B}),Ge}return{Provider:p,createClient:d,useContext:m,useQuery:E,useMutation:k,useSubscription:T,useDehydratedState:($,F)=>U.exports.useMemo(()=>F&&$.runtime.transformer.deserialize(F),[F,$]),useInfiniteQuery:P}}function gKn(n){return xfe(r=>r==="useContext"?()=>{const c=n.useContext();return U.exports.useMemo(()=>fBt(c),[c])}:r in n?n[r]:lBt(r,n))}function bKn(n){const r=dBt(n),c=gKn(r);return{...r,proxy:c}}const sTt=n=>{var r;return(r=n.queryClient)!=null?r:new OXn(n.queryClientConfig)};function Ak(){return Ak=Object.assign||function(n){for(var r=1;r0){for(var x=Ak({},p.state),E=0,k=m.length;E0;){var E=n[n.length-1].shift();if(E!==void 0){var k=OKn(E,d,p);n.push(k),r.push(CBt()),c.push(IBt()),u.push(Pk())}else n.pop(),yKn(r.pop()),wKn(c.pop()),h7(u.pop());if(RBt&&Date.now()-x>5)return!0}return!1}catch(P){var T=Pk();if(!T)throw P;return T.error=P,d.unshift(T),!1}finally{iD.current=m}},LBt=function(n,r,c,u){return{contextMap:kfe(),contextStore:Cfe(),errorFrame:Pk(),thenable:null,kind:"frame.yield",traversalChildren:n,traversalMap:r,traversalStore:c,traversalErrorFrame:u}},FBt=function(n,r,c){var u=[n],d=[CBt()],p=[IBt()],m=[Pk()];$Bt(u,d,p,m,r,c)&&r.unshift(LBt(u,d,p,m))},lTt=function(n,r,c){if(n.kind==="frame.yield")$M(null),BU(n.contextMap),zU(n.contextStore),h7(n.errorFrame),$Bt(n.traversalChildren,n.traversalMap,n.traversalStore,n.traversalErrorFrame,r,c)&&r.unshift(LBt(n.traversalChildren,n.traversalMap,n.traversalStore,n.traversalErrorFrame));else{var u=iD.current,d=null;iD.current=_Bt;try{n.kind==="frame.class"?d=function(m,x){if($M(null),BU(x.contextMap),zU(x.contextStore),h7(x.errorFrame),x.error){if(++x.instance.updater._thrown>=25)return null;x.instance._isMounted=!0,typeof x.instance.componentDidCatch=="function"&&x.instance.componentDidCatch(x.error),typeof x.type.getDerivedStateFromError=="function"&&x.instance.updater.enqueueSetState(x.instance,x.type.getDerivedStateFromError(x.error))}return jBt(x.type,x.instance,m)}(r,n):n.kind==="frame.hooks"?d=function(m,x){return PBt(x.hook),$M(x.id),BU(x.contextMap),zU(x.contextStore),h7(x.errorFrame),NBt(x.type,x.props,m)}(r,n):n.kind==="frame.lazy"&&(d=function(m,x){return $M(null),BU(x.contextMap),zU(x.contextStore),h7(x.errorFrame),MBt(x.type,x.props)}(0,n))}catch(m){var p=Pk();if(!p)throw m;p.error=m,r.unshift(p),d=null}finally{iD.current=u}FBt(Tx(d),r,c)}};function _Kn(n,r){setImmediate(n)}var BBt=function(n,r,c){var u=n.shift();return u?(RBt&&u.kind==="frame.yield"&&(u.thenable=new Promise(_Kn)),Promise.resolve(u.thenable).then(function(){return function(d){NNe.current=d}(c),lTt(u,n,r),BBt(n,r,c)},function(d){if(!u.errorFrame)throw d;u.errorFrame.error=d,lTt(u.errorFrame,n,r)})):Promise.resolve()},MKn=function(){},DKn=function(n,r){r||(r=MKn);var c=[],u=NNe.current={uniqueID:0};BU({}),zU(new Map),h7(null);try{FBt(Tx(n),c,r)}catch(d){return Promise.reject(d)}return BBt(c,r,u)};function fTt(n){const r=n.state.error;if(r instanceof Error&&r.name==="TRPCClientError"){const c={message:r.message,data:r.data,shape:r.shape};return{...n,state:{...n.state,error:c}}}return n}function NKn(n){const{config:r}=n;return c=>{const u=bKn({unstable_overrides:n.unstable_overrides}),d=m=>{var O;const[x]=U.exports.useState(()=>{if(m.trpc)return m.trpc;const N=r({}),j=sTt(N),L=u.createClient(N);return{abortOnUnmount:N.abortOnUnmount,queryClient:j,trpcClient:L,ssrState:n.ssr?"mounting":!1,ssrContext:null}}),{queryClient:E,trpcClient:k,ssrState:T,ssrContext:P}=x,I=u.useDehydratedState(k,m.pageProps.trpcState);return ut.createElement(u.Provider,{abortOnUnmount:(O=x.abortOnUnmount)!=null?O:!1,client:k,queryClient:E,ssrState:T,ssrContext:P},V(KXn,{client:E,children:V(uKn,{state:I,children:V(c,{...Object.assign({},m)})})}))};(c.getInitialProps||n.ssr)&&(d.getInitialProps=async m=>{var ne,Z,H;const x=m.AppTree,E=!!m.Component,k=E?m.ctx:m;let T={};if(c.getInitialProps){const ce=await c.getInitialProps(m);T={...E?(ne=ce.pageProps)!=null?ne:{}:ce,...T}}const P=ce=>E?{pageProps:ce}:ce;if(typeof window<"u"||!n.ssr)return P(T);const I=r({ctx:k}),O=HFt(I),N=sTt(I),L={pageProps:T,trpc:{config:I,trpcClient:O,queryClient:N,ssrState:"prepass",ssrContext:k}};for(;await DKn(U.exports.createElement(x,L)),!!N.isFetching();)await new Promise(ce=>{const pe=N.getQueryCache().subscribe(le=>{(le==null?void 0:le.query.getObserversCount())===0&&(ce(),pe())})});const $=LXn(N,{shouldDehydrateQuery(){return!0}}),F={...$,queries:$.queries.map(fTt),mutations:$.mutations.map(fTt)};T.trpcState=O.runtime.transformer.serialize(F);const B=P(T),X=((Z=n.responseMeta)==null?void 0:Z.call(n,{ctx:k,clientErrors:[...$.queries,...$.mutations].map(ce=>ce.state.error).flatMap(ce=>ce instanceof Error&&ce.name==="TRPCClientError"?[ce]:[])}))||{};for(const[ce,pe]of Object.entries(X.headers||{}))typeof pe=="string"&&((H=k.res)==null||H.setHeader(ce,pe));return X.status&&k.res&&(k.res.statusCode=X.status),B});const p=c.displayName||c.name||"Component";return d.displayName=`withTRPC(${p})`,d}}function jKn(n){const r=dBt({unstable_overrides:n.unstable_overrides}),c=NKn(n);return xfe(u=>u==="useContext"?()=>{const d=r.useContext();return U.exports.useMemo(()=>fBt(d),[d])}:u==="withTRPC"?c:lBt(u,r))}var RKn=function(){function n(){this.keyToValue=new Map,this.valueToKey=new Map}return n.prototype.set=function(r,c){this.keyToValue.set(r,c),this.valueToKey.set(c,r)},n.prototype.getByKey=function(r){return this.keyToValue.get(r)},n.prototype.getByValue=function(r){return this.valueToKey.get(r)},n.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},n}(),zBt=function(){function n(r){this.generateIdentifier=r,this.kv=new RKn}return n.prototype.register=function(r,c){this.kv.getByValue(r)||(c||(c=this.generateIdentifier(r)),this.kv.set(c,r))},n.prototype.clear=function(){this.kv.clear()},n.prototype.getIdentifier=function(r){return this.kv.getByValue(r)},n.prototype.getValue=function(r){return this.kv.getByKey(r)},n}(),$Kn=globalThis&&globalThis.__extends||function(){var n=function(r,c){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(u[p]=d[p])},n(r,c)};return function(r,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");n(r,c);function u(){this.constructor=r}r.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),LKn=function(n){$Kn(r,n);function r(){var c=n.call(this,function(u){return u.name})||this;return c.classToAllowedProps=new Map,c}return r.prototype.register=function(c,u){typeof u=="object"?(u.allowProps&&this.classToAllowedProps.set(c,u.allowProps),n.prototype.register.call(this,c,u.identifier)):n.prototype.register.call(this,c,u)},r.prototype.getAllowedProps=function(c){return this.classToAllowedProps.get(c)},r}(zBt),FKn=globalThis&&globalThis.__read||function(n,r){var c=typeof Symbol=="function"&&n[Symbol.iterator];if(!c)return n;var u=c.call(n),d,p=[],m;try{for(;(r===void 0||r-- >0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function BKn(n){if("values"in Object)return Object.values(n);var r=[];for(var c in n)n.hasOwnProperty(c)&&r.push(n[c]);return r}function zKn(n,r){var c=BKn(n);if("find"in c)return c.find(r);for(var u=c,d=0;d"u"},HKn=function(n){return n===null},jq=function(n){return typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype},nOe=function(n){return jq(n)&&Object.keys(n).length===0},Ok=function(n){return Array.isArray(n)},qKn=function(n){return typeof n=="string"},WKn=function(n){return typeof n=="number"&&!isNaN(n)},GKn=function(n){return typeof n=="boolean"},XKn=function(n){return n instanceof RegExp},hue=function(n){return n instanceof Map},pue=function(n){return n instanceof Set},UBt=function(n){return UKn(n)==="Symbol"},KKn=function(n){return n instanceof Date&&!isNaN(n.valueOf())},YKn=function(n){return n instanceof Error},hTt=function(n){return typeof n=="number"&&isNaN(n)},pTt=function(n){return GKn(n)||HKn(n)||VBt(n)||WKn(n)||qKn(n)||UBt(n)},QKn=function(n){return typeof n=="bigint"},ZKn=function(n){return n===1/0||n===-1/0},JKn=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},eYn=function(n){return n instanceof URL},HBt=function(n){return n.replace(/\./g,"\\.")},$7e=function(n){return n.map(String).map(HBt).join(".")},TH=function(n){for(var r=[],c="",u=0;u0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},oOe=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;c0?"Infinity":"-Infinity"},Number),Ex(function(n){return n===0&&1/n===-1/0},"number",function(){return"-0"},Number),Ex(eYn,"URL",function(n){return n.toString()},function(n){return new URL(n)})];function Tfe(n,r,c,u){return{isApplicable:n,annotation:r,transform:c,untransform:u}}var WBt=Tfe(function(n,r){if(UBt(n)){var c=!!r.symbolRegistry.getIdentifier(n);return c}return!1},function(n,r){var c=r.symbolRegistry.getIdentifier(n);return["symbol",c]},function(n){return n.description},function(n,r,c){var u=c.symbolRegistry.getValue(r[1]);if(!u)throw new Error("Trying to deserialize unknown symbol");return u}),tYn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(n,r){return n[r.name]=r,n},{}),GBt=Tfe(JKn,function(n){return["typed-array",n.constructor.name]},function(n){return oOe([],iOe(n))},function(n,r){var c=tYn[r[1]];if(!c)throw new Error("Trying to deserialize unknown typed array");return new c(n)});function XBt(n,r){if(n!=null&&n.constructor){var c=!!r.classRegistry.getIdentifier(n.constructor);return c}return!1}var KBt=Tfe(XBt,function(n,r){var c=r.classRegistry.getIdentifier(n.constructor);return["class",c]},function(n,r){var c=r.classRegistry.getAllowedProps(n.constructor);if(!c)return rOe({},n);var u={};return c.forEach(function(d){u[d]=n[d]}),u},function(n,r,c){var u=c.classRegistry.getValue(r[1]);if(!u)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(u.prototype),n)}),YBt=Tfe(function(n,r){return!!r.customTransformerRegistry.findApplicable(n)},function(n,r){var c=r.customTransformerRegistry.findApplicable(n);return["custom",c.name]},function(n,r){var c=r.customTransformerRegistry.findApplicable(n);return c.serialize(n)},function(n,r,c){var u=c.customTransformerRegistry.findByName(r[1]);if(!u)throw new Error("Trying to deserialize unknown custom value");return u.deserialize(n)}),nYn=[KBt,WBt,YBt,GBt],gTt=function(n,r){var c=dTt(nYn,function(d){return d.isApplicable(n,r)});if(c)return{value:c.transform(n,r),type:c.annotation(n,r)};var u=dTt(qBt,function(d){return d.isApplicable(n,r)});if(u)return{value:u.transform(n,r),type:u.annotation}},QBt={};qBt.forEach(function(n){QBt[n.annotation]=n});var rYn=function(n,r,c){if(Ok(r))switch(r[0]){case"symbol":return WBt.untransform(n,r,c);case"class":return KBt.untransform(n,r,c);case"custom":return YBt.untransform(n,r,c);case"typed-array":return GBt.untransform(n,r,c);default:throw new Error("Unknown transformation: "+r)}else{var u=QBt[r];if(!u)throw new Error("Unknown transformation: "+r);return u.untransform(n,c)}},Hse=function(n,r){for(var c=n.keys();r>0;)c.next(),r--;return c.next().value};function ZBt(n){if(Dae(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Dae(n,"prototype"))throw new Error("prototype is not allowed as a property");if(Dae(n,"constructor"))throw new Error("constructor is not allowed as a property")}var iYn=function(n,r){return ZBt(r),r.forEach(function(c){n=n[c]}),n},sOe=function(n,r,c){if(ZBt(r),r.length===0)return c(n);for(var u=n,d=0;d0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},ik=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;ccOe(d,r));if(!lYn(n))return n;const c=Object.getOwnPropertyNames(n),u=Object.getOwnPropertySymbols(n);return[...c,...u].reduce((d,p)=>{if(bTt(r.props)&&!r.props.includes(p))return d;const m=n[p],x=cOe(m,r);return fYn(d,p,x,n,r.nonenumerable),d},{})}var Z9=globalThis&&globalThis.__assign||function(){return Z9=Object.assign||function(n){for(var r,c=1,u=arguments.length;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},hYn=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;cn.error===void 0},actions:{setError:eo({error:(n,r)=>r.error})}}),gYn=NDe(pYn).start(),bYn=()=>({next:n,op:r})=>wfe(c=>n(r).subscribe({next(d){c.next(d)},error(d){gYn.send({type:"SET_ERROR",error:d}),c.error(d)},complete(){c.complete()}})),mTt=gXn({transformer:yN,links:[ANe({url:`${R$t()}/registry/api/trpc`})]});jKn({config({ctx:n}){return{transformer:yN,links:[bYn,hXn({enabled:r=>r.direction==="down"&&r.result instanceof Error}),ANe({url:`${R$t()}/registry/api/trpc`})],headers(){if(n!=null&&n.req){const{connection:r,...c}=n.req.headers;return{...c,"x-ssr":"1"}}return{}}}},ssr:!0,responseMeta(n){var u,d;const r=n.ctx;if(r.status)return{status:r.status};const c=n.clientErrors[0];return c?{status:(d=(u=c.data)==null?void 0:u.httpStatus)!=null?d:500}:{}}});const mYn=async({event:n,afterUpdate:r})=>{let c;switch(n.type){case"Update":c=`/registry/api/algolia/update-index?${n.machineId?`machineId=${n.machineId}`:""}`;break;case"Delete":c=`/registry/api/algolia/update-index?deleteMachineId=${n.machineId}`;break}r&&r.refreshAfterTimeoutInMs?(await fetch(c),await JVn(r.refreshAfterTimeoutInMs),r.refresh()):fetch(c).then(()=>{r&&r.refresh()})},vYn=rfe()?window.localStorage:ife(),yYn="digraph_cache",wYn=n=>{vYn.setItem(yYn,JSON.stringify({...dN.toJSON(n),layout:Qce(n)}))},xYn=sg({id:"importMachine",initial:"waiting",predictableActionArguments:!0,tsTypes:{},schema:{context:{jsonCode:"",error:null},events:{}},states:{waiting:{on:{edit:{actions:["clearError","saveCode"]},import:[{target:"updating",cond:"isWebMode"},{target:"updatingInPlaygournd",cond:"isPlaygoundMode"},{actions:["unhandledMode"]}]}},updatingInPlaygournd:{invoke:{id:"getDigraphActorByJSONConfig",src:"getDigraphActorByJSONConfig",onDone:{target:"updateDone",actions:["setDigraphCache"]},onError:"updateFailed"}},updating:{invoke:{id:"updateMachineByJSONConfig",src:"updateMachineByJSONConfig",onDone:{target:"updateDone",actions:["updateMachineInAlgolia"]},onError:"updateFailed"}},updateFailed:{entry:"saveError",always:"waiting"},updateDone:{entry:["restartDigraph","closeModal"],always:"waiting"}}}),SYn=({isOpen:n,onClose:r})=>{const{selectedMachine:c,userMode:u}=U.exports.useContext(kW),d=Qc(),p=va(E=>E.root.data.key),[m,x]=Nw(xYn,{guards:{isWebMode:()=>u==="web",isPlaygoundMode:()=>u==="web-playground"},actions:{clearError:eo({error:E=>null}),saveError:eo({error:(E,k)=>{var T,P;return(P=(T=k.data)==null?void 0:T.message.replace(/TRPCError: /,""))!=null?P:"Invalid JSON definition provided."}}),saveCode:eo({jsonCode:(E,k)=>k.jsonCode}),updateMachineInAlgolia:(E,k)=>{mYn({event:{type:"Update",machineId:k.data.machineId}})},setDigraphCache:()=>{wYn(d.getSnapshot())},restartDigraph:(E,k)=>{d.send({type:"restart",config:k.data.definition,autolayout:!0})},closeModal:()=>{r()},unhandledMode:()=>{throw Error("Unhandled userMode in import from code")}},services:{getDigraphActorByJSONConfig:({jsonCode:E})=>mTt.machines.getDigraphConfig.query({definition:E}).then(k=>({definition:k[0]})),updateMachineByJSONConfig:({jsonCode:E},{machineId:k})=>mTt.machines.updateByCode.mutate({id:k,definition:E}).then(T=>{const P=T[0];return{updatedMachine:P,machineId:k,definition:P.definition}})}});return V(_$t,{title:"Import Code",onClose:r,isOpen:n,size:"2xl",blockScrollOnMount:!1,children:We(yk,{alignItems:"flex-start",gap:"4",children:[We(MS,{as:"h2",fontSize:"md",fontWeight:"normal",color:"warning.500",flex:"1",textAlign:"start",children:["Warning: importing from JSON will overwrite all data in"," ",We("strong",{children:['"',p,'"']})]}),m.context.error&&V(Bi,{color:"red.500",children:m.context.error.toString()}),V("form",{onSubmit:E=>{E.preventDefault();const k=c.id;x({type:"import",machineId:k})},style:{width:"100%"},children:We(yk,{gap:"4",alignItems:"flex-start",children:[V(Ji.Textarea,{minHeight:"50vh",placeholder:"createMachine(...)",onChange:E=>{x({type:"edit",jsonCode:E.target.value})},isRequired:!0}),V(Vc,{type:"submit",alignSelf:"center",isDisabled:m.matches("updating"),children:"Import"})]})})]})})},yU=n=>{const{getColorModeValue:r}=ei(),c={borderBottom:"1px",borderColor:r("gray.50","gray.700")};return We(Si,{children:[V(In,{display:"flex",alignItems:"center",p:"1",color:r("gray.600","gray.200"),...c,children:n.shortcut}),V(In,{display:"flex",alignItems:"center",...c,children:V(Bi,{children:n.title})})]})},EYn=({isOpen:n=!1,onClose:r})=>V(_$t,{title:"Keyboard Shortcuts",isOpen:n,onClose:r,bodyPadding:"none",children:We(In,{px:"8",pt:"0",children:[We(In,{display:"grid",gridTemplateColumns:"auto auto",gridAutoRows:"1fr",children:[V(yU,{shortcut:V(hh,{children:"+"}),title:"Zoom In"}),V(yU,{shortcut:V(hh,{children:"-"}),title:"Zoom Out"}),V(yU,{shortcut:We(Si,{children:[V(hh,{children:"Shift"})," + ",V(hh,{children:"1"})]}),title:"Fit to Content"}),V(yU,{shortcut:We(Si,{children:[V(hh,{children:"Shift"})," + ",V(hh,{children:"0"})]}),title:"Zoom to 100%"}),V(yU,{shortcut:We(In,{children:[V(hh,{children:"\u2191"}),V(hh,{children:"\u2193"}),V(hh,{children:"\u2190"}),V(hh,{children:"\u2192"})]}),title:We(Si,{children:["Pan the view. Use ",V(hh,{children:"Shift"})," for a larger pan."]})})]}),V(In,{display:"flex",py:"6",children:V(Vc,{"aria-label":"close keyboard shortcuts modal",variant:"gray",onClick:r,children:"Close"})})]})});function Rq(n){var r,c;switch(n.type){case"xstate.raise":return We(Si,{children:["raise ",V("strong",{children:n.event})]});case"xstate.send":{if(!n.event)return V(Si,{children:"send dynamic event"});if((c=(r=n.event)==null?void 0:r.type)!=null&&c.startsWith("xstate.after"))return We(Si,{children:["send ",Gce(n.delay)," delay"]});const u=n.event.type;return We(Si,{children:["send ",V("strong",{children:u||"??"})]})}case"xstate.log":return We(Si,{children:["log",n.label?` (${n.label})`:" "," ",n.value?`"${n.value}"`:""]});case"xstate.assign":return typeof n.assignment=="object"&&Object.keys(n.assignment).length>0?We(Si,{children:["assign to"," ",Object.keys(n.assignment).map((u,d,p)=>We(U.exports.Fragment,{children:[V("code",{children:u}),d===p.length-1?"":", "]},u))]}):V(Si,{children:"assign"});case"xstate.choose":return V(Si,{children:"choose"});case"xstate.pure":return V(Si,{children:"pure"})}if(n.type==="xstate.cancel"){const u=n.sendId.match(/^xstate\.after\((.*)\)#.*$/);if(!u)return`cancel ${n.sendId}`;const[,d]=u;return`cancel ${Gce(d)} delay`}return n.type.startsWith("function () {")?V("em",{children:"anonymous"}):n.type}const kYn=({action:n,isActiveInSimulation:r})=>{const{getColorModeValue:c}=ei();return We(In,{display:"flex",flexDirection:"row",alignItems:"flex-start",style:{gap:".5rem"},px:"2",children:[V("span",{children:V(szn,{h:"5",w:"5",color:r?"whiteAlpha.700":c("gray.600","gray.400")})}),V(In,{minWidth:0,children:V(Bi,{width:"max-content",maxWidth:"xs",fontSize:"xs",textStyle:"medium",color:r?"whiteAlpha.700":c("gray.600","gray.400"),children:Bx(n)?"Inline":Rq(n)})})]})},tzt=n=>{let r=ZBn;switch(n.type){case"final":r=nzn;break;case"history":n.history==="deep"?r=tzn:r=ezn;break;case"parallel":r=JBn;break}return r},CYn=(n,r,c)=>{let u=rzn;return n===r?u=izn:c.type==="always"&&(u=ozn),u},$q=lN({expanded:new Set},{events:{simulationUpdated:n=>({nodeIds:n}),toggle:(n,r)=>({id:n,clearExpanded:r}),select:(n,r,c)=>({id:n,mode:r,selectionType:c})}}),IYn=$q.createMachine({on:{toggle:{actions:eo({expanded:(n,r)=>(r.clearExpanded===!0&&n.expanded.clear(),n.expanded.has(r.id)?n.expanded.delete(r.id):n.expanded.add(r.id),n.expanded)})},select:{actions:"sendToGraphActor"},simulationUpdated:{actions:eo({expanded:(n,r)=>new Set(r.nodeIds)})}}}),RNe=ut.createContext({}),VU=n=>{const{getColorModeValue:r}=ei();return We(nl,{paddingLeft:`calc(1.5rem * ${n.depth})`,alignItems:"stretch",border:"2px solid transparent",borderColor:n.selected?r("blue.400","blue.400"):r("transparent","transparent"),spacing:"none",children:[n.isToggleable&&V(Ev,{"aria-label":`Toggle ${n.label}`,onClick:n.onToggle,size:"xs",rounded:"none",bg:r("transparent","transparent"),_active:{bg:r("white","gray.700")},height:"auto",children:V(wzn,{transition:"transform 0.2s",transform:n.isExpanded?"rotate(0deg)":"rotate(-90deg)",color:r("gray.500","gray.400"),height:"2.5"})}),We(Y0,{variant:"unstyled",onClick:n.onClick,isDisabled:!n.onClick,rounded:"none",marginLeft:n.isToggleable?"":"6",color:r(n.isActiveInSimulationMode?"primary.600":"gray.800","gray.100"),_disabled:{color:r("gray.300","gray.400")},py:"1",height:"auto",flex:"1",paddingRight:"1.5rem",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:"4",pl:1,_hover:{bg:n.selected?void 0:r("gray.25","whiteAlpha.100")},transition:"all 0.15s ease-in-out",children:[V(n.icon,{h:"3",w:"3",color:r("gray.300","gray.600")}),V(aN,{label:n.label,openDelay:1200,children:V(In,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textStyle:n.depth===0?"bold":"medium",fontSize:"sm",children:n.text})})]})]})},nzt=({depth:n,nodeId:r})=>{const c=U.exports.useContext(RNe),u=Al(c,I=>I.context.expanded.has(r)),d=yfe(r),p=Ew(r,I=>({data:I.data,invocations:I.invocations,edges:I.edges.filter(O=>O.source===I).map(O=>O.uniqueId),nodeIds:I.nodes.map(O=>O.uniqueId)}),Go),m=va(I=>Boolean(I.selection[r])),x=p.edges,E=p.data.entry,k=p.data.exit,T=p.invocations,P=tzt(p.data);return We(In,{children:[V(VU,{depth:n,selected:m,onToggle:()=>c.send($q.events.toggle(r)),isToggleable:p.nodeIds.length>0||x.length>0||E.length>0,icon:P,isExpanded:u,label:p.data.key,text:p.data.key,onClick:I=>{c.send($q.events.select(r,I.shiftKey?"multi":"single","node"))},isActiveInSimulationMode:d}),We(In,{padding:"0",border:"none",_empty:{display:"none"},display:u?"block":"none",children:[E.map((I,O)=>V(VU,{depth:n+1,selected:!1,isToggleable:!1,icon:E$t,isExpanded:!1,label:Bx(I)?"Inline":I.type,text:Bx(I)?"Inline":Rq(I)},O)),k.map((I,O)=>V(VU,{depth:n+1,selected:!1,isToggleable:!1,icon:k$t,isExpanded:!1,label:Bx(I)?"Inline":I.type,text:Bx(I)?"Inline":Rq(I)},O)),T.map((I,O)=>V(VU,{depth:n+1,selected:!1,isToggleable:!1,icon:C$t,isExpanded:!1,text:I.jsImplementation?"Inline":I.src,label:I.jsImplementation?"Inline":I.src},O)),Array.from(x).map(I=>V(TYn,{edgeId:I,depth:n+1},I)),p.nodeIds.map(I=>V(nzt,{depth:n+1,nodeId:I},I))]})]})},TYn=({depth:n,edgeId:r})=>{const c=U.exports.useContext(RNe),u=Al(c,x=>x.context.expanded.has(r)),d=jd(r,x=>({eventType:x.data.eventTypeData,shortDisplayEventType:x.getShortDisplayEventType(),displayEventType:x.getDisplayEventType(),sourceId:x.getNodeSource().getSerialisableId(),targetId:x.target.getSerialisableId()}),Go),p=CYn(d.sourceId,d.targetId,d.eventType),m=va(x=>Boolean(x.selection[r]));return V(In,{children:V(VU,{depth:n,selected:m,isToggleable:!1,onToggle:()=>c.send($q.events.toggle(r)),onClick:x=>{c.send($q.events.select(r,x.shiftKey?"multi":"single","edge"))},icon:p,isExpanded:u,text:d.shortDisplayEventType,label:d.displayEventType})})},AYn=U.exports.memo(function({graphActor:r}){const c=jw(),u=U.exports.useContext(r1),d=Al(u,x=>{var P;if(!x.matches("simulating"))return[];const E=zn.toStatePaths((P=x.context.activeState)==null?void 0:P.value)||[],k=x.context.graphActor,T=k.snapshot.root.data.key;return Array.from(new Set(E.flatMap(I=>{const O=[T,...I],N=[];for(const j of O)N.length===0?N.push(j):N.push([N[N.length-1]||"",j].join("."));return N.map(j=>k.snapshot.getNodeBySerialisableId(j).uniqueId)})))},MD),p=vW(IYn,{actions:{sendToGraphActor:(x,E)=>{c||E.type==="select"&&(E.selectionType==="node"?r.send({type:"select",entity:{type:"node",id:E.id},mode:E.mode}):r.send({type:"select",entity:{type:"edge",id:E.id},mode:E.mode}))}}});U.exports.useEffect(()=>{d.length>0?p.send({type:"simulationUpdated",nodeIds:d}):p.send({type:"toggle",id:r.getSnapshot().root.uniqueId,clearExpanded:!0})},[r,d,p]);const m=va(x=>x.root.uniqueId);return V(RNe.Provider,{value:p,children:V(nzt,{nodeId:m,depth:0},m)})}),PYn=Qt(H1.div,{shouldForwardProp:n=>vD(n)||n==="children"}),OYn=({topElement:n})=>{const r=Qc(),c=U.exports.useContext(r1),u=Al(c,p=>p.context.leftPanel),{getColorModeValue:d}=ei();return V(PYn,{layout:!0,initial:{x:u?0:"-100%"},animate:{x:u?0:"-100%"},transition:{type:"tween",duration:"0.2",delay:"0.1",ease:u?"easeOut":"easeIn"},style:{position:u?"relative":"absolute"},h:"full",w:"20rem",children:V(In,{h:"full",bg:d("white","gray.900"),borderRightWidth:"1px",borderColor:d("gray.100","gray.700"),children:We(yk,{divider:V(jNt,{borderColor:d("gray.100","gray.700")}),h:"full",align:"flex-start",spacing:0,children:[n,V(In,{pb:"8",px:"1",pt:"5",overflowY:"auto",w:"full","data-testname":"left-treeview",children:V(AYn,{graphActor:r})})]})})})},Afe=(n,r)=>function(u){return V(Ao,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...r,...u,children:n})},_Yn=Afe(We(Si,{children:[V("path",{d:"M2 4H3.33333H14",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M5.33325 4.00016V2.66683C5.33325 2.31321 5.47373 1.97407 5.72378 1.72402C5.97382 1.47397 6.31296 1.3335 6.66659 1.3335H9.33325C9.68687 1.3335 10.026 1.47397 10.2761 1.72402C10.5261 1.97407 10.6666 2.31321 10.6666 2.66683V4.00016M12.6666 4.00016V13.3335C12.6666 13.6871 12.5261 14.0263 12.2761 14.2763C12.026 14.5264 11.6869 14.6668 11.3333 14.6668H4.66659C4.31296 14.6668 3.97382 14.5264 3.72378 14.2763C3.47373 14.0263 3.33325 13.6871 3.33325 13.3335V4.00016H12.6666Z",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M6.66675 7.3335V11.3335",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),V("path",{d:"M9.33325 7.3335V11.3335",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]}),{viewBox:"0 0 18 18"}),MYn=Afe(V(Si,{children:V("path",{d:"M22 13.1111V6H14.8889L17.8133 8.92444L8.92444 17.8133L6 14.8889V22H13.1111L10.1867 19.0756L19.0756 10.1867L22 13.1111Z"})}),{viewBox:"0 0 27 27"}),DYn=Afe(We(Si,{children:[V("path",{fill:"#fff",d:"M0 200V0h400v400H0"}),V("path",{fill:"#323330",d:"M87.7 200.7V217h52v148h36.9V217h52v-16c0-9 0-16.3-.4-16.5 0-.3-31.7-.4-70.2-.4l-70 .3v16.4l-.3-.1zM321.4 184c10.2 2.4 18 7 25 14.3 3.7 4 9.2 11 9.6 12.8 0 .6-17.3 12.3-27.8 18.8-.4.3-2-1.4-3.6-4-5.2-7.4-10.5-10.6-18.8-11.2-12-.8-20 5.5-20 16 0 3.2.6 5 1.8 7.6 2.7 5.5 7.7 8.8 23.2 15.6 28.6 12.3 41 20.4 48.5 32 8.5 13 10.4 33.4 4.7 48.7-6.4 16.7-22 28-44.3 31.7-7 1.2-23 1-30.5-.3-16-3-31.3-11-40.7-21.3-3.7-4-10.8-14.7-10.4-15.4l3.8-2.4 15-8.7 11.3-6.6 2.6 3.5c3.3 5.2 10.7 12.2 15 14.6 13 6.7 30.4 5.8 39-2 3.7-3.4 5.3-7 5.3-12 0-4.6-.7-6.7-3-10.2-3.2-4.4-9.6-8-27.6-16-20.7-8.8-29.5-14.4-37.7-23-4.7-5.2-9-13.3-11-20-1.5-5.8-2-20-.6-25.7 4.3-20 19.4-34 41-38 7-1.4 23.5-.8 30.4 1l-.2.2z"})]}),{viewBox:"0 0 400 400"}),NYn=Afe(We(Si,{children:[V("path",{fill:"#fff",d:"M0 0h1052v1052H0z"}),V("path",{d:"M965.9 801.1c-7.7-48-39-88.3-131.7-125.9-32.2-14.8-68.1-25.399-78.8-49.8-3.8-14.2-4.3-22.2-1.9-30.8 6.9-27.9 40.2-36.6 66.6-28.6 17 5.7 33.1 18.801 42.8 39.7 45.4-29.399 45.3-29.2 77-49.399-11.6-18-17.8-26.301-25.4-34-27.3-30.5-64.5-46.2-124-45-10.3 1.3-20.699 2.699-31 4-29.699 7.5-58 23.1-74.6 44-49.8 56.5-35.6 155.399 25 196.1 59.7 44.8 147.4 55 158.6 96.9 10.9 51.3-37.699 67.899-86 62-35.6-7.4-55.399-25.5-76.8-58.4-39.399 22.8-39.399 22.8-79.899 46.1 9.6 21 19.699 30.5 35.8 48.7 76.2 77.3 266.899 73.5 301.1-43.5 1.399-4.001 10.6-30.801 3.199-72.101zm-394-317.6h-98.4c0 85-.399 169.4-.399 254.4 0 54.1 2.8 103.7-6 118.9-14.4 29.899-51.7 26.2-68.7 20.399-17.3-8.5-26.1-20.6-36.3-37.699-2.8-4.9-4.9-8.7-5.601-9-26.699 16.3-53.3 32.699-80 49 13.301 27.3 32.9 51 58 66.399 37.5 22.5 87.9 29.4 140.601 17.3 34.3-10 63.899-30.699 79.399-62.199 22.4-41.3 17.6-91.3 17.4-146.6.5-90.2 0-180.4 0-270.9z",fill:"#323330"})]}),{viewBox:"0 0 1052 1052"}),jYn=sg({initial:"not copied",schema:{context:{text:""},events:{}},on:{"text changed":{actions:"updateText"}},states:{"not copied":{on:{copy:"copied"}},copied:{entry:"onCopy",after:{copyThrottleDuration:"not copied"}}}}),RYn=({text:n,onCopy:r,copyThrottleDuration:c,variant:u="gray",size:d="sm",onClick:p,...m})=>{const[x,E]=Nw(jYn,{context:{text:n},actions:{onCopy:T=>{V_n(T.text),r==null||r(T.text)},updateText:eo({text:(T,P)=>P.type!=="text changed"?T.text:P.text})},delays:{copyThrottleDuration:c!=null?c:1500}}),k=x.matches("copied");return U.exports.useEffect(()=>{E({type:"text changed",text:n})},[n,E]),V(Vc,{...m,size:d,variant:u,onClick:T=>{E({type:"copy"}),p==null||p(T)},children:k?"Copied":"Copy"})},vTt=n=>new Promise((r,c)=>{const u=document.createElement("script");u.src=n;const d=setTimeout(()=>{c("Timeout")},15e3);u.onload=()=>{r(),clearTimeout(d)},document.body.appendChild(u)}),$Yn=()=>{let n=!1;const r=async()=>{if(n)return;const u=window.define;window.define=()=>{},await Promise.all([vTt("https://unpkg.com/prettier@2.3.2/standalone.js"),vTt("https://unpkg.com/prettier@2.3.2/parser-typescript.js")]),window.define=u,n=!0};return{format:async(u,d)=>{try{return await r(),prettier.format(u,{parser:"typescript",plugins:prettierPlugins,...d})}catch{}return u}}},rzt=$Yn();function $Ne(n){return n.replace(/"(assign\(.+\))"/g,"$1")}function izt(n){return $Ne(JSON.stringify(iNe(dN.toJSON(n,r=>JSON.stringify(lUn(r))),JSON.parse).config,null,2))}const ozt=n=>{const{config:r}=iNe(dN.toJS(n),d=>Eq(d)),c=$Ne(JSON.stringify(fLt(r,"context"),null,2));return`createMachine({ - ${uLt(c)}, - context: ${afe(n.data.context)}, - predictableActionArguments: true, - preserveActionOrder: true, - })`},szt=n=>{const{schema:r,...c}=dN.toTS(n),{config:u}=iNe(c,m=>Eq(m)),d=$Ne(JSON.stringify(fLt(u,"context"),null,2));return`createMachine({ - ${uLt(d)}, - schema: { - context: {} as { - ${r.context.join(` -`)} - }, - ${r.events.length>0?`events: {} as ${r.events.map(m=>`{"type": ${m}}`).join("| ")}`:""} - }, - context: ${afe(n.data.context)}, - predictableActionArguments: true, - preserveActionOrder: true, - })`},LYn=n=>new Promise((r,c)=>{setTimeout(()=>{c()},n)}),FYn=sg({tsTypes:{},predictableActionArguments:!0,preserveActionOrder:!0,initial:"waitingForChanges",schema:{context:{},events:{},services:{format:{}}},invoke:{id:"graphSub",src:n=>(r,c)=>{let u="";function d(m){return m.subscribe(x=>{const E=szt(x);E!==u&&(u=E,r({type:"start formatting",originalCode:{json:izt(x),js:ozt(x),ts:E}}))})}let p=d(n.graphActor);return c(m=>{m.type==="graph actor changed"&&(p.unsubscribe(),p=d(m.graphActor))}),p.unsubscribe}},on:{"start formatting":{target:".formatting",actions:["storeNamesAndCodesByOriginalCode"]},"graph actor changed":{actions:["updateGraphActor",pBn("graphSub",(n,r)=>r)],target:".formatting",cond:"graphActorHasActuallyChanged"}},states:{waitingForChanges:{},formatting:{invoke:{src:"format",onDone:[{target:"done",actions:"storeFormattedCode"}],onError:[{target:"done",actions:"fallbackToUnformattedCode"}]}},done:{}}}),BYn=({graphActor:n,formatOptions:r})=>{const[c,u]=Nw(FYn,{guards:{graphActorHasActuallyChanged:(d,p)=>!Go(d.graphActor,p.graphActor)},actions:{updateGraphActor:eo((d,p)=>{const m=p.graphActor.getSnapshot(),x={json:izt(m),js:ozt(m),ts:szt(m)};return{graphActor:p.graphActor,originalCode:x,names:Object.keys(x),codes:Object.values(x)}}),storeNamesAndCodesByOriginalCode:eo((d,p)=>({names:Object.keys(p.originalCode),codes:Object.values(p.originalCode)})),fallbackToUnformattedCode:eo({formattedCodes:d=>Object.fromEntries(d.names.map((p,m)=>[p,d.codes[m]]))}),storeFormattedCode:eo({formattedCodes:(d,p)=>Object.fromEntries(d.names.map((m,x)=>[m,p.data[x]]))})},services:{format:d=>Promise.race([Promise.all(d.codes.map(p=>rzt.format(p))),LYn(1e3)])},context:{graphActor:n,formatOptions:r}});return U.exports.useEffect(()=>{u({type:"graph actor changed",graphActor:n})},[n]),{isLoading:!c.matches("done"),codes:c.context.formattedCodes}},azt={key:"",expression:"",inferredType:"string"},zYn=sg({initial:"pristine",context:azt,preserveActionOrder:!0,states:{pristine:{entry:["clearForm"],on:{change:{target:"dirty"}}},dirty:{tags:["showType"],entry:["updateContext"],on:{blur:{target:"committing"},submit:{target:"committing"},change:{target:"dirty"}}},committing:{tags:["showType"],entry:["commit"],always:"pristine"}}}),VYn=n=>{const[r,c]=Nw(zYn,{actions:{updateContext:eo((u,{type:d,...p})=>({...u,...p})),commit:u=>{n.onCommit(u.key,u.expression,u.inferredType)},clearForm:eo(azt)}});return We(Bc,{flex:"1",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",as:"form",onSubmit:u=>{u.preventDefault(),c({type:"submit"})},children:[V(Ji.Input,{placeholder:"Key",width:"80px",flexShrink:"0",size:"sm",value:r.context.key,onChange:u=>{c({type:"change",key:u.target.value})}}),We(Bc,{gap:"2",flex:"1",children:[V(Ji.Input,{placeholder:"Initial value",flex:"1",flexShrink:"0",size:"sm",fontFamily:"var(--chakra-fonts-mono)",onBlur:()=>{c({type:"blur"})},value:r.context.expression,onChange:u=>{c({type:"change",expression:u.target.value,inferredType:uUn(u.target.value)})}}),r.hasTag("showType")&&V(FMe,{alignSelf:"center",children:bUn(r.context.inferredType)})]}),V("input",{type:"submit",hidden:!0})]})};function UYn(n,r,c){return r in n?Object.defineProperty(n,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[r]=c,n}function yTt(n,r){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,u)}return c}function wTt(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}function qYn(n,r){if(n==null)return{};var c=HYn(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}function WYn(n,r){return GYn(n)||XYn(n,r)||KYn(n,r)||YYn()}function GYn(n){if(Array.isArray(n))return n}function XYn(n,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var c=[],u=!0,d=!1,p=void 0;try{for(var m=n[Symbol.iterator](),x;!(u=(x=m.next()).done)&&(c.push(x.value),!(r&&c.length===r));u=!0);}catch(E){d=!0,p=E}finally{try{!u&&m.return!=null&&m.return()}finally{if(d)throw p}}return c}}function KYn(n,r){if(!!n){if(typeof n=="string")return xTt(n,r);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return xTt(n,r)}}function xTt(n,r){(r==null||r>n.length)&&(r=n.length);for(var c=0,u=new Array(r);c=n.length?n.apply(this,d):function(){for(var m=arguments.length,x=new Array(m),E=0;E1&&arguments[1]!==void 0?arguments[1]:{};qse.initial(n),qse.handler(r);var c={current:n},u=UU(lQn)(c,r),d=UU(uQn)(c),p=UU(qse.changes)(n),m=UU(cQn)(c);function x(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(T){return T};return qse.selector(k),k(c.current)}function E(k){ZYn(u,d,p,m)(k)}return[x,E]}function cQn(n,r){return Lq(r)?r(n.current):r}function uQn(n,r){return n.current=ETt(ETt({},n.current),r),r}function lQn(n,r,c){return Lq(r)?r(n.current):Object.keys(c).forEach(function(u){var d;return(d=r[u])===null||d===void 0?void 0:d.call(r,n.current[u])}),c}var fQn={create:aQn},dQn={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}};function hQn(n){return function r(){for(var c=this,u=arguments.length,d=new Array(u),p=0;p=n.length?n.apply(this,d):function(){for(var m=arguments.length,x=new Array(m),E=0;E{u.current=!1}:n,r)}function AH(){}function bue(n,r,c,u){return _Qn(n,u)||MQn(n,r,c,u)}function _Qn(n,r){return n.editor.getModel(bzt(n,r))}function MQn(n,r,c,u){return n.editor.createModel(r,c,u&&bzt(n,u))}function bzt(n,r){return n.Uri.parse(r)}function DQn(n){return n===void 0}function mzt({original:n,modified:r,language:c,originalLanguage:u,modifiedLanguage:d,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:x,keepCurrentModifiedModel:E,theme:k,loading:T,options:P,height:I,width:O,className:N,wrapperProps:j,beforeMount:L,onMount:$}){const[F,B]=U.exports.useState(!1),[X,ne]=U.exports.useState(!0),Z=U.exports.useRef(null),H=U.exports.useRef(null),ce=U.exports.useRef(null),pe=U.exports.useRef($),le=U.exports.useRef(L);gzt(()=>{const et=dzt.init();return et.then(tt=>(H.current=tt)&&ne(!1)).catch(tt=>(tt==null?void 0:tt.type)!=="cancelation"&&console.error("Monaco initialization: error:",tt)),()=>Z.current?qe():et.cancel()}),ww(()=>{const et=Z.current.getModifiedEditor();et.getOption(H.current.editor.EditorOption.readOnly)?et.setValue(r):r!==et.getValue()&&(et.executeEdits("",[{range:et.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),et.pushUndoStop())},[r],F),ww(()=>{Z.current.getModel().original.setValue(n)},[n],F),ww(()=>{const{original:et,modified:tt}=Z.current.getModel();H.current.editor.setModelLanguage(et,u||c),H.current.editor.setModelLanguage(tt,d||c)},[c,u,d],F),ww(()=>{H.current.editor.setTheme(k)},[k],F),ww(()=>{Z.current.updateOptions(P)},[P],F);const ye=U.exports.useCallback(()=>{le.current(H.current);const et=bue(H.current,n,u||c,p),tt=bue(H.current,r,d||c,m);Z.current.setModel({original:et,modified:tt})},[c,r,d,n,u,p,m]),Ge=U.exports.useCallback(()=>{Z.current=H.current.editor.createDiffEditor(ce.current,{automaticLayout:!0,...P}),ye(),H.current.editor.setTheme(k),B(!0)},[P,k,ye]);U.exports.useEffect(()=>{F&&pe.current(Z.current,H.current)},[F]),U.exports.useEffect(()=>{!X&&!F&&Ge()},[X,F,Ge]);function qe(){const et=Z.current.getModel();if(!x){var tt;(tt=et.original)===null||tt===void 0||tt.dispose()}if(!E){var jt;(jt=et.modified)===null||jt===void 0||jt.dispose()}Z.current.dispose()}return V(pzt,{width:O,height:I,isEditorReady:F,loading:T,_ref:ce,className:N,wrapperProps:j})}mzt.propTypes={original:Dn.exports.string,modified:Dn.exports.string,language:Dn.exports.string,originalLanguage:Dn.exports.string,modifiedLanguage:Dn.exports.string,originalModelPath:Dn.exports.string,modifiedModelPath:Dn.exports.string,keepCurrentOriginalModel:Dn.exports.bool,keepCurrentModifiedModel:Dn.exports.bool,theme:Dn.exports.string,loading:Dn.exports.oneOfType([Dn.exports.element,Dn.exports.string]),options:Dn.exports.object,width:Dn.exports.oneOfType([Dn.exports.number,Dn.exports.string]),height:Dn.exports.oneOfType([Dn.exports.number,Dn.exports.string]),className:Dn.exports.string,wrapperProps:Dn.exports.object,beforeMount:Dn.exports.func,onMount:Dn.exports.func};mzt.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:AH,onMount:AH};function NQn(n){const r=U.exports.useRef();return U.exports.useEffect(()=>{r.current=n},[n]),r.current}const Wse=new Map;function LNe({defaultValue:n,defaultLanguage:r,defaultPath:c,value:u,language:d,path:p,theme:m,line:x,loading:E,options:k,overrideServices:T,saveViewState:P,keepCurrentModel:I,width:O,height:N,className:j,wrapperProps:L,beforeMount:$,onMount:F,onChange:B,onValidate:X}){const[ne,Z]=U.exports.useState(!1),[H,ce]=U.exports.useState(!0),pe=U.exports.useRef(null),le=U.exports.useRef(null),ye=U.exports.useRef(null),Ge=U.exports.useRef(F),qe=U.exports.useRef($),et=U.exports.useRef(null),tt=U.exports.useRef(u),jt=NQn(p);gzt(()=>{const we=dzt.init();return we.then(De=>(pe.current=De)&&ce(!1)).catch(De=>(De==null?void 0:De.type)!=="cancelation"&&console.error("Monaco initialization: error:",De)),()=>le.current?ze():we.cancel()}),ww(()=>{const we=bue(pe.current,n||u,r||d,p);we!==le.current.getModel()&&(P&&Wse.set(jt,le.current.saveViewState()),le.current.setModel(we),P&&le.current.restoreViewState(Wse.get(p)))},[p],ne),ww(()=>{le.current.updateOptions(k)},[k],ne),ww(()=>{le.current.getOption(pe.current.editor.EditorOption.readOnly)?le.current.setValue(u):u!==le.current.getValue()&&(le.current.executeEdits("",[{range:le.current.getModel().getFullModelRange(),text:u,forceMoveMarkers:!0}]),le.current.pushUndoStop())},[u],ne),ww(()=>{pe.current.editor.setModelLanguage(le.current.getModel(),d)},[d],ne),ww(()=>{DQn(x)||le.current.revealLine(x)},[x],ne),ww(()=>{pe.current.editor.setTheme(m)},[m],ne);const Me=U.exports.useCallback(()=>{qe.current(pe.current);const we=p||c,De=bue(pe.current,u||n,r||d,we);le.current=pe.current.editor.create(ye.current,{model:De,automaticLayout:!0,...k},T),P&&le.current.restoreViewState(Wse.get(we)),pe.current.editor.setTheme(m),Z(!0)},[n,r,c,u,d,p,k,T,P,m]);U.exports.useEffect(()=>{ne&&Ge.current(le.current,pe.current)},[ne]),U.exports.useEffect(()=>{!H&&!ne&&Me()},[H,ne,Me]),tt.current=u,U.exports.useEffect(()=>{if(ne&&B){var we,De;(we=et.current)===null||we===void 0||we.dispose(),et.current=(De=le.current)===null||De===void 0?void 0:De.onDidChangeModelContent(be=>{const Se=le.current.getValue();tt.current!==Se&&B(Se,be)})}},[ne,B]),U.exports.useEffect(()=>{if(ne){const we=pe.current.editor.onDidChangeMarkers(De=>{var be;const Se=(be=le.current.getModel())===null||be===void 0?void 0:be.uri;if(Se&&De.find(sn=>sn.path===Se.path)){const sn=pe.current.editor.getModelMarkers({resource:Se});X==null||X(sn)}});return()=>{we==null||we.dispose()}}},[ne,X]);function ze(){var we;if((we=et.current)===null||we===void 0||we.dispose(),I)P&&Wse.set(p,le.current.saveViewState());else{var De;(De=le.current.getModel())===null||De===void 0||De.dispose()}le.current.dispose()}return V(pzt,{width:O,height:N,isEditorReady:ne,loading:E,_ref:ye,className:j,wrapperProps:L})}LNe.propTypes={defaultValue:Dn.exports.string,defaultPath:Dn.exports.string,defaultLanguage:Dn.exports.string,value:Dn.exports.string,language:Dn.exports.string,path:Dn.exports.string,theme:Dn.exports.string,line:Dn.exports.number,loading:Dn.exports.oneOfType([Dn.exports.element,Dn.exports.string]),options:Dn.exports.object,overrideServices:Dn.exports.object,saveViewState:Dn.exports.bool,keepCurrentModel:Dn.exports.bool,width:Dn.exports.oneOfType([Dn.exports.number,Dn.exports.string]),height:Dn.exports.oneOfType([Dn.exports.number,Dn.exports.string]),className:Dn.exports.string,wrapperProps:Dn.exports.object,beforeMount:Dn.exports.func,onMount:Dn.exports.func,onChange:Dn.exports.func,onValidate:Dn.exports.func};LNe.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:AH,onMount:AH,onValidate:AH};var jQn=U.exports.memo(LNe);const RQn={base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#393a40"}},$Qn=(n,r)=>({message:n,startLineNumber:1,startColumn:1,endLineNumber:r,endColumn:1/0}),LQn=async(n,r)=>{const c=r.uri,u=n.Uri.parse(c.toString());return await n.languages.typescript.getTypeScriptWorker().then(p=>p(u))},FQn={minimap:{enabled:!1},tabSize:2,glyphMargin:!1,lineNumbers:"off",folding:!0,showFoldingControls:"always",renderValidationDecorations:"on",scrollBeyondLastLine:!1,fontSize:14,fontFamily:"var(--chakra-fonts-mono)",wordWrap:"on",wrappingStrategy:"advanced",overviewRulerLanes:0,lineDecorationsWidth:0,renderWhitespace:"none",fixedOverflowWidgets:!0},BQn={renderLineHighlight:"none",quickSuggestions:!1,glyphMargin:!1,lineDecorationsWidth:0,folding:!1,fixedOverflowWidgets:!0,acceptSuggestionOnEnter:"on",hover:{delay:100},roundedSelection:!1,contextmenu:!1,cursorStyle:"line-thin",occurrencesHighlight:!1,links:!1,minimap:{enabled:!1},wordBasedSuggestions:!1,find:{addExtraSpaceOnTop:!1,autoFindInSelection:"never",seedSearchStringFromSelection:"never"},fontSize:14,fontWeight:"normal",wordWrap:"off",lineNumbers:"off",lineNumbersMinChars:0,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollbar:{horizontal:"hidden",vertical:"hidden",alwaysConsumeMouseWheel:!1}},zQn={typescript:"ts"},VQn=(n,r)=>`context-editor-${n}.${zQn[r]}`,UQn=250,FNe=100,HQn=450,CTt=n=>Math.max(FNe,Math.min(HQn,n)),ITt="validation",vzt=({value:n,defaultValue:r,formatOnMount:c=!0,...u})=>{var k;const[d,p]=U.exports.useState((k=n!=null?n:r)!=null?k:""),[m,x]=U.exports.useState(!c),{getColorModeValue:E}=ei();return U.exports.useEffect(()=>{if(!c)return;(async()=>{let P=d;try{P=cLt(await rzt.format(rNe(d),{printWidth:30,quoteProps:"consistent",semi:!1}))}catch{}finally{x(!0),p(P)}})()},[d,c]),m?V(qQn,{value:d,...u}):V(In,{bg:E("white","gray.700"),display:"grid",placeContent:"center",height:FNe,children:"Preparing the editor"})};function qQn({fallbackValue:n,value:r,monacoOptions:c={},autoGrow:u=!0,getCommitTrigger:d=()=>{},id:p,lang:m="typescript",width:x=UQn,height:E=FNe,preParseCode:k,parseExpression:T,validateExpression:P,commitCode:I,useStatelyDarkTheme:O=!1,onMount:N=()=>{}}){const j=U.exports.useRef([]),[L,$]=U.exports.useState(r),[F,B]=U.exports.useState(E),[X,ne]=U.exports.useState(null),Z=U.exports.useRef(null),H=U.exports.useRef(null),ce=U.exports.useRef(null),pe=U.exports.useRef(null),{colorMode:le}=ei(),ye={light:"vs-light",dark:O?"stately-dark":"vs-dark"},Ge=U.exports.useCallback(()=>{if(!!X)try{const we=pe.current,De=ce.current;if(we&&De){const be=we.getModel();De==null||De.editor.setModelMarkers(be,ITt,[{...$Qn(X.message,be.getLineCount()),severity:De.MarkerSeverity.Error}])}}catch{}},[X]),qe=U.exports.useCallback(()=>{const we=pe.current,De=ce.current;if(De&&we){const be=we.getModel();De.editor.setModelMarkers(be,ITt,[])}},[]),et=we=>{const De=ce.current,be=Z.current;be==null?De&&(Z.current=De.editor.createModel(we,"typescript")):be.setValue(we)},tt=we=>{const De=ce.current,be=pe.current,Se=Z.current;let Jt=[];Array.isArray(we)?Jt=we.map(sn=>Se.getPositionAt(Se.getValue().indexOf(sn))):Jt=[Se.getPositionAt(Se.getValue().indexOf(we))],j.current=be.deltaDecorations(j.current,Jt.map(sn=>({range:new De.Range(sn.lineNumber,0,sn.lineNumber,1/0),options:{isWholeLine:!0,className:"editor-line-error",glyphMarginClassName:"editor-line-error-glyph"}})))},jt=()=>{const we=pe.current;j.current=we.deltaDecorations(j.current,[])},Me=async()=>{const we=ce.current,De=Z.current;try{const be=await LQn(we,De),Se=De.uri.toString();return await T(be,Se)}catch(be){console.log(be);const Se=be;Array.isArray(Se.keys)?(tt(Se.keys),Se.keys.length>0?Se.keys.length===1?ne({...Se,message:`${Se.message} at key "${Se.keys}"`}):ne({...Se,message:`${Se.message} at keys [${Se.keys.map(kq)}]`}):ne(Se)):ne({message:'The context value must be provided as a JavaScript object in "{}" format.'})}},ze=cUn(async()=>{const we=L||n;et(k(we));const De=await Me();if(De!=null){const be=P(De);be!=null?(Array.isArray(be.keys)&&tt(be.keys),ne(be)):I(De,we)}});return U.exports.useEffect(()=>{typeof d=="function"&&d(ze)},[ze,d]),U.exports.useLayoutEffect(()=>{var De;if(!u)return;const we=pe.current;if(we){const be=((De=H.current)==null?void 0:De.getBoundingClientRect().width)||x;we.layout({height:F,width:be})}},[F,u,x]),U.exports.useEffect(()=>{X?Ge():qe()},[X,qe,Ge]),We(Si,{children:[V(In,{bg:"gray.700",ref:H,height:`${F}px`,sx:{"& *, & *:after, & *:before":{position:"static"}},borderWidth:"1px",borderColor:X?"red.500":"gray.700",children:V(jQn,{path:VQn(p,m),language:m,value:L,options:{...FQn,...BQn,...c},beforeMount:we=>{ce.current=we,we.editor.defineTheme("stately-dark",RQn),we.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSyntaxValidation:!0,noSemanticValidation:!0,diagnosticCodesToIgnore:[1005]}),we.languages.typescript.typescriptDefaults.setCompilerOptions({...we.languages.typescript.typescriptDefaults.getCompilerOptions(),module:we.languages.typescript.ModuleKind.CommonJS,moduleResolution:we.languages.typescript.ModuleResolutionKind.NodeJs,strict:!0,allowJs:!0,allowUnusedLabels:!0}),we.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:`${new URL(window.location.origin)}registry/tsworker.js`})},onMount:async(we,De)=>{pe.current=we,we.focus(),we.setValue(L||""),we.addAction({id:"submit",label:"Submit",keybindings:[De.KeyCode.Enter|De.KeyMod.CtrlCmd],run:()=>ze()}),u&&B(CTt(we.getContentHeight())),we.onDidContentSizeChange(be=>{u&&B(CTt(be.contentHeight))}),we.onDidChangeModel(()=>{ne(null)}),N(we,De)},loading:"Preparing the editor",onChange:we=>{ne(null),jt(),$(we!=null?we:"")},theme:ye[le]})}),X&&V(Bi,{as:Bi,paddingBlock:"2",paddingInline:"1",color:"red.400",children:X.message})]})}const WQn=({onCommit:n,...r})=>V(vzt,{...r,preParseCode:c=>rNe(c),parseExpression:(c,u)=>c.parseObjectWithProperties(u),validateExpression:c=>{if(!Object.values(c).some(p=>p.type==="function"))return null;const d=Object.entries(c).filter(([,p])=>p.type==="function").map(([p])=>c[p].isMethod?`${p}(`:`${p}:`);return{message:"Valid values for context properties are string, number, boolean, array and object.",code:"INVALID_CONTEXT_VALUE",keys:d}},commitCode:c=>n(Object.entries(c).reduce((u,[d,p])=>({...u,[Eq(d)]:{...p,type:p.type==="null"?"unknown":p.type,text:cLt(p.type==="string"&&p.isLiteral?Eq(p.text):p.text)}}),{}))}),GQn=({onCommit:n,...r})=>V(vzt,{...r,preParseCode:c=>rNe(c),parseExpression:(c,u)=>c.parseAsSingleExpression(u),validateExpression:()=>null,commitCode:(c,u)=>n({...c,type:c.type==="null"?"unknown":c.type,text:u.trim()})});function TTt({isSummaryView:n=!1,field:r,...c}){const{onChange:u,getUid:d}=U.exports.useContext(BD),p=d(r);if(r.isNull)return V(In,{as:"span",height:"32px",children:V(FMe,{width:"max-content",children:"null"})});if(!r.isLiteral)return V(ATt,{field:r,isSummaryView:n});switch(r.type){case"unknown":case"string":case"number":case"boolean":return V(Ji.Input,{...c,width:"100%",placeholder:r.type==="string"?'" "':"",defaultValue:r.expression,onChange:m=>{u(p,{expression:m.target.value})}});case"array":case"object":return V(ATt,{field:r,isSummaryView:n});default:return null}}function ATt({isSummaryView:n,...r}){const{getUid:c}=U.exports.useContext(BD),{field:u}=r,{panelRef:d,onPopoverClose:p,onPopoverOpen:m,openPopoverId:x}=U.exports.useContext(Xfe),{toggleRow:E}=U.exports.useContext(BD),{getColorModeValue:k}=ei(),T=c(u),P=x===T;return V(Si,{children:We(bDe,{placement:"left-start",isLazy:!0,lazyBehavior:"keepMounted",offset:[0,90],autoFocus:!1,closeOnBlur:!1,closeOnEsc:!1,onOpen:()=>{m(T)},onClose:p,isOpen:P,children:[V(n?O=>V(In,{flex:"1",onClick:()=>{E(T)},...O}):Mce,{children:V(Bi,{noOfLines:3,as:"pre",fontSize:"14px",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"100%",transition:"background 250ms ease",cursor:"pointer",_hover:{backgroundColor:k("whiteAlpha.100","whiteAlpha.100")},children:u.expression})}),We(Si,{children:[!n&&V(Mce,{children:V(Y0,{size:"sm",variant:"unstyled",marginBlockStart:"2",fontWeight:"semibold",textAlign:"start",children:P?"Close editor":"Open in Editor"})}),V(s3,{containerRef:d,children:V(XQn,{...r})})]})]},T)})}function XQn({field:n}){const{openPopoverId:r,onPopoverClose:c}=U.exports.useContext(Xfe),{onChange:u,getUid:d,getKey:p}=U.exports.useContext(BD),{getColorModeValue:m}=ei(),x=U.exports.useRef(null),E=d(n),k=p(n),T=r===E;return We(yDe,{bg:m("white","gray.800"),borderWidth:T?1:0,children:[V(wDe,{fontWeight:"semibold",borderBottom:"none",children:V(Bi,{children:k})}),V(vDe,{}),We(mDe,{children:[V(GQn,{id:k,defaultValue:n.expression,fallbackValue:lLt(n.type),getCommitTrigger:P=>{x.current=P},onCommit:P=>{u(E,{expression:P.text}),c()}}),V(nl,{justifyContent:"center",paddingBlock:"3",children:V(Vc,{alignSelf:"flex-end",onClick:()=>x.current(),title:"Save changes","aria-label":"Save changes",minWidth:"100px",children:"Save"})})]})]})}const KQn=n=>({padding:"0",maxWidth:"100%",width:"30px",justifyContent:"center",bg:n("gray.100","gray.800"),fontSize:"1.5em",size:"xs",variant:"unstyled",rounded:"none",display:"flex"}),YQn=({field:n})=>{var N,j;const{isExpanded:r,toggleRow:c,onChange:u,onDelete:d,errors:p,getKey:m,getUid:x}=U.exports.useContext(BD),E=x(n),k=p[E]&&Object.keys(p[E]).length>0,T=pUn(p[E]),{getColorModeValue:P}=ei(),I=KQn(P),O=U.exports.useContext(Xfe);return U.exports.useEffect(()=>{!r(E)&&E===O.openPopoverId&&O.onPopoverClose()},[r,E,O]),We(In,{children:[V(lq,{in:!r(E),unmountOnExit:!0,children:We(Bc,{alignItems:"center",sx:{"&:hover .expand-wrapper":{width:"30px"},"&:hover .expand-button":{display:"flex"},"&:hover .error-button":{display:"none"}},children:[We(Bc,{flex:"1",justifyContent:"space-between",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",children:[V(Ji.Input,{width:"80px",flexShrink:"0",size:"sm",value:m(n),onChange:L=>{u(E,{key:L.target.value})},isInvalid:!!T("key")}),V(Bc,{flex:"1",alignItems:"center",children:V(TTt,{field:n,isSummaryView:!0,size:"sm",paddingInlineEnd:"30px",isInvalid:!!T("expression")})})]}),We(In,{className:"expand-wrapper",width:k?30:0,overflow:"hidden",transition:"width 200ms",alignSelf:"stretch",children:[V(Y0,{...I,display:"none",className:"expand-button",_hover:{bg:P("gray.100","gray.800")},onClick:()=>{c(E)},title:"Expand row","aria-label":"Expand row",height:"100%",children:V(MYn,{fill:"gray.300"})}),k&&V(Y0,{...I,onClick:()=>{c(E)},className:"error-button",title:"Expand row","aria-label":"Expand row",children:V(Bc,{rounded:"full",bg:"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:"white",shrink:0,as:"span",alignSelf:"center",children:V(UDe,{w:"4",h:"4"})})})]})]})}),V(lq,{in:r(E),unmountOnExit:!0,children:V(In,{bg:P("blackAlpha.100","blackAlpha.500"),paddingInline:"3",marginInline:"0",paddingBlockEnd:"3",children:We(yk,{gap:"3",alignItems:"stretch",color:P("gray.800","gray.300"),children:[We(In,{fontSize:"0.9em",children:[We(Bc,{justifyContent:"space-between",alignItems:"center",height:"8",children:[V(Bi,{children:"Edit Schema"}),We(Bc,{alignItems:"center",gap:"2",children:[V(Y0,{size:"xs",variant:"light",paddingInline:"0",title:"Delete row","aria-label":"Delete row",onClick:()=>{d(E)},rounded:"0",width:"30px",children:V(_Yn,{fontSize:"1.5em",fill:"transparent"})}),V(Y0,{size:"xs",variant:"light",paddingInline:"0",title:"Close row","aria-label":"Close row",onClick:()=>{c(E)},fontSize:"1em",rounded:"0",width:"30px",children:V(yW,{fontSize:"1.5em"})})]})]}),V(mv,{})]}),V(z7e,{label:"Key",htmlFor:uM("key",E),children:V(Ji.Control,{hideLabel:!0,label:"key",display:"flex",flexDirection:"column",alignItems:"flex-end",error:(N=T("key"))!=null?N:void 0,errorProps:{alignSelf:"flex-start"},children:V(Ji.Input,{id:uM("key",E),width:"100%",size:"sm",defaultValue:m(n),onChange:L=>{u(E,{key:L.target.value})},isInvalid:!!T("key")})})}),V(z7e,{label:"Type",htmlFor:uM("type",E),children:We(yk,{alignItems:"flex-start",children:[We(Ji.Select,{id:uM("type",E),width:"auto",size:"sm",defaultValue:n.type,isInvalid:!!T("type"),onChange:L=>{u(E,{type:L.target.value})},children:[V("option",{value:"unknown",children:"Unknown"}),V("option",{value:"string",children:"String"}),V("option",{value:"number",children:"Number"}),V("option",{value:"boolean",children:"Boolean"}),V("option",{value:"array",children:"Array"}),V("option",{value:"object",children:"Object"})]}),!!T("type")&&V(Bi,{color:"red.500",fontSize:"sm",children:T("type")})]})}),V(z7e,{label:"Initial",htmlFor:uM("expression",E),children:V(Ji.Control,{label:"initial",hideLabel:!0,display:"flex",flexDirection:"column",error:(j=T("expression"))!=null?j:void 0,children:V(TTt,{field:n,size:"sm",isInvalid:!!T("expression"),id:uM("expression",E)})})}),We(MMe,{display:"flex",alignItems:"center",children:[V(iN,{htmlFor:`switch-initial-nullable-${E}`,mb:"0",fontSize:"0.9em",children:"Set initial value to null"}),V(xRt,{id:`switch-initial-nullable-${E}`,isChecked:n.isNull,onChange:L=>{u(E,{expression:L.target.checked?"null":lLt(n.type),isNull:L.target.checked})}})]})]})})})]})},uM=(n,r)=>`${n}-${r}`,z7e=({label:n,htmlFor:r,children:c,...u})=>We(nl,{...u,alignItems:"flex-start",children:[V(iN,{whiteSpace:"nowrap",flexShrink:0,flexBasis:"40px",color:"inherit",fontSize:"0.9em",htmlFor:r,children:n}),V(Bc,{flex:"1",justifyContent:"flex-start",children:c})]}),BD=U.exports.createContext(null),QQn=({label:n,expressions:r,expressionErrors:c,onRawCommit:u,onModifyField:d,onDeleteField:p,getUid:m,getKey:x})=>{const[E,k]=U.exports.useState(()=>new Set),[T,P]=U.exports.useState("table"),I=B=>{k(X=>new Set(X).add(B))},O=B=>{k(X=>{const ne=new Set(X);return ne.delete(B),ne})},N=B=>{E.has(B)?O(B):I(B)},j=()=>{P(B=>B==="table"?"raw":"table")},L=Object.entries(r),$=Object.entries(r).reduce((B,[X,ne])=>{const Z=x(ne);return{...B,[X]:{...ne,key:Z}}},{});U.exports.useEffect(()=>{k(new Set)},[T]);const F=U.exports.useRef(null);return We(Si,{children:[We(nl,{justifyContent:"space-between",alignItems:"center",marginBlockEnd:"4",children:[n&&V(MS,{textTransform:"uppercase",fontSize:"sm",fontWeight:"normal",letterSpacing:"wider",children:n}),"(",V(Bc,{gap:"2",alignItems:"center",children:V(Vc,{onClick:()=>{j()},width:"150px","aria-label":"Toggle context view",title:"Toggle context view",size:"sm",variant:"gray",children:T==="raw"?"Switch to Table view":"Switch to Code view"})}),")"]}),T==="raw"&&We(In,{children:[V(WQn,{fallbackValue:"{}",defaultValue:afe($),onCommit:B=>{u(B),P("table")},getCommitTrigger:B=>{F.current=B},monacoOptions:{renderValidationDecorations:"off"},autoGrow:!0,id:"raw"}),V(nl,{justifyContent:"center",paddingBlock:"3",children:V(Vc,{alignSelf:"flex-end",onClick:()=>{F.current()},title:"Save changes","aria-label":"Save changes",minWidth:"100px",children:"Save"})})]}),T==="table"&&V(Si,{children:L.length>0&&V(BD.Provider,{value:{fields:r,errors:c,onChange:(B,X)=>{const ne=$[B];d(B,{...ne,...X})},onDelete:B=>{p(B)},isExpanded:B=>E.has(B),toggleRow:N,getUid:m,getKey:x,label:n},children:V(Bc,{gap:"4",flexDirection:"column",paddingBlockEnd:"3",children:L.map(([B,X])=>V(YQn,{field:{...X,key:x(X)}},B))})})})]})},ZQn=()=>{const n=Qc(),{context:r,contextErrors:c}=va(U.exports.useCallback(u=>({contextErrors:u.problems.contextErrors,context:u.data.context}),[]),Go);return V(QQn,{label:" ",getUid:u=>u.uid,getKey:u=>u.key,expressions:r,expressionErrors:c,onRawCommit:u=>{n.send({type:"context.set",context:u})},onModifyField:(u,d)=>{n.send({type:"context.modifyField",uid:u,updates:d})},onDeleteField:u=>{n.send({type:"context.deleteField",uid:u})}})};function _k({value:n,onCommit:r,commitOnEsc:c,focusRefOnKeyDownCommit:u}){const[d,p]=U.exports.useState(n),[m,x]=U.exports.useState(d);n!==d&&(p(n),x(n));const E=()=>{if(m===d)return;const k=m.trim();x(k),r(k)};return{value:m,onChange:k=>{x(k.currentTarget.value)},onBlur:E,onKeyDown:k=>{var T,P;switch(k.key){case"Enter":if(k.currentTarget.tagName==="TEXTAREA"&&!xq(k))return;k.preventDefault(),E(),(T=u==null?void 0:u.current)==null||T.focus();return;case"Escape":if(!c)return;E(),(P=u==null?void 0:u.current)==null||P.focus();return}}}}const JQn=()=>{const{getColorModeValue:n}=ei(),r=va(x=>({machineName:x.root.data.key,nodesLength:x.nodes.length,edgesLength:x.edges.length}),Go),c=Qc(),u=va(x=>x.root.uniqueId),{ownerName:d,projectName:p}=U.exports.useContext(kW),m=_k({value:r.machineName,onCommit:x=>c.send({type:"node.modify.key",nodeId:u,key:x})});return We(z1,{paddingX:"1",paddingY:"2",spacing:"3",children:[d&&We(Bc,{children:[V(Bi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",children:"Owner"}),V(In,{flex:"1",children:V(Bi,{fontSize:"sm",paddingLeft:"3",children:d})})]}),p&&We(Bc,{children:[V(Bi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",children:"Project"}),V(In,{flex:"1",children:V(Bi,{fontSize:"sm",paddingLeft:"3",children:p})})]}),We(Bc,{children:[V(Bi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",paddingTop:"1",children:"Name"}),V(In,{flex:"1",children:V(Ji.Control,{label:"Name",paddingInline:"0",hideLabel:!0,children:V(Ji.Input,{size:"sm",...m})})})]}),We(Bc,{paddingTop:"2",children:[We(Bc,{children:[V(Bi,{fontSize:"sm",textStyle:"semibold",as:"span",children:r.nodesLength}),We(Bi,{fontSize:"sm",as:"span",paddingLeft:"1",children:["state",r.nodesLength===1?"":"s"]})]}),We(Bc,{pl:"4",children:[V(Bi,{fontSize:"sm",textStyle:"semibold",as:"span",children:r.edgesLength}),We(Bi,{fontSize:"sm",as:"span",paddingLeft:"1",children:["transition",r.edgesLength===1?" ":"s"]})]})]})]})},eZn=sg({initial:"idle",states:{idle:{on:{pointerdown:"pending"}},pending:{on:{pointermove:"moving",pointerup:"clicked"}},moving:{on:{pointerup:"idle",pointerdown:"pending"}},clicked:{entry:"onClick",on:{blur:"idle"}}}}),tZn=U.exports.forwardRef(function({selectOnFocus:r,onFocus:c,onBlur:u,onChange:d,onPointerUp:p,style:m,className:x,isDisabled:E,...k},T){var X,ne,Z;const{getColorModeValue:P}=ei(),I=U.exports.useRef(null),O=RMe(T,I),N=U.exports.useRef(!1),[j,L]=Nw(eZn,{actions:{onClick:()=>{var H,ce;(H=I.current)==null||H.focus(),(ce=I.current)==null||ce.select()}}}),[$,F]=U.exports.useState((ne=(X=k.value)!=null?X:k.defaultValue)!=null?ne:""),B=(Z=k.value)!=null?Z:$;return We(In,{display:"inline-grid",className:x,children:[V(In,{style:{font:"inherit",...m,gridArea:"1 / 1",whiteSpace:"pre",color:P("transparent","transparent"),userSelect:"none",paddingRight:"2px"},onPointerUp:H=>{L(H)},onPointerMove:H=>L(H),onPointerDown:H=>{H.button===0&&L(H)},children:B||" "}),V("input",{...k,disabled:E,"data-interactive":!0,type:"text",style:{appearance:"none",padding:0,margin:0,color:"inherit",border:"inherit",background:P("transparent","transparent"),font:"inherit",outline:"inherit",...m,width:"auto",minWidth:"3ch",gridArea:"1 / 1",resize:"none",pointerEvents:j.matches("clicked")?"auto":"none"},size:3,ref:O,onPointerDown:()=>{N.current=!0;const H=()=>{N.current=!1,ce()},ce=Il.bindAll(document.body,[{type:"pointerdown",listener:H},{type:"pointercancel",listener:H}],{capture:!0})},onPointerUp:H=>{r&&N.current&&(N.current=!1,H.currentTarget.select()),p==null||p(H)},onFocus:H=>{r&&!N.current&&H.currentTarget.select(),c==null||c(H)},onBlur:H=>{L(H),u==null||u(H)},onChange:H=>{F(H.currentTarget.value),d==null||d(H)}})]})}),uOe=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei(),d=U.exports.useMemo(()=>Qt(tZn,{baseStyle:{paddingInline:"1",_focusWithin:{outline:"none",border:"none",background:u("whiteAlpha.300","whiteAlpha.300"),rounded:"sm"},"&:hover:not(:focus-within)":{background:u("whiteAlpha.200","whiteAlpha.200")}}}),[u]);return V(d,{ref:c,...r})}),nZn={errors:n=>V(Bc,{rounded:"full",bg:n.bg||"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:V(UDe,{w:"4",h:"4"})}),warnings:n=>V(Bc,{rounded:"full",bg:n.bg||"orange.400",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:V(HDe,{w:"4",h:"4"})}),none:()=>null},rZn={errors:n=>V(Bc,{rounded:"full",bg:n.bg||"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:V(UDe,{w:"4",h:"4"})}),warnings:n=>V(Bc,{rounded:"full",bg:n.bg||"orange.400",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:V(HDe,{w:"4",h:"4"})}),none:()=>null},yzt=({errors:n,warnings:r,hidden:c,...u})=>{const d=n!=null?n:[],p=r!=null?r:[],{getColorModeValue:m}=ei(),x=d.length>0?"errors":p.length>0?"warnings":"none",E=m(nZn,rZn)[x],k=x==="errors"?d:p;return V(aN,{hasArrow:!0,bg:m("gray.800","gray.800"),color:m("white","white"),label:V(Si,{children:k.length>0&&V(Bc,{gap:"2",direction:"column",padding:"2",children:k.map((T,P)=>We(ut.Fragment,{children:[We(Bc,{alignItems:"center",gap:"2.5",children:[V(E,{bg:m("gray.400","gray.200"),color:m("black","black")}),V(Bi,{children:T})]}),Pd||(d=r.indexOf("#"),d!==-1&&u>d)?r:"javascript:void(0)"}/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */var BNe=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)};function oD(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?OTt(n.position):"start"in n||"end"in n?OTt(n):"line"in n||"column"in n?lOe(n):""}function lOe(n){return _Tt(n&&n.line)+":"+_Tt(n&&n.column)}function OTt(n){return lOe(n&&n.start)+"-"+lOe(n&&n.end)}function _Tt(n){return n&&typeof n=="number"?n:1}class Tv extends Error{constructor(r,c,u){const d=[null,null];let p={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof c=="string"&&(u=c,c=void 0),typeof u=="string"){const m=u.indexOf(":");m===-1?d[1]=u:(d[0]=u.slice(0,m),d[1]=u.slice(m+1))}c&&("type"in c||"position"in c?c.position&&(p=c.position):"start"in c||"end"in c?p=c:("line"in c||"column"in c)&&(p.start=c)),this.name=oD(c)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=p.start.line,this.column=p.start.column,this.source=d[0],this.ruleId=d[1],this.position=p,this.actual,this.expected,this.file,this.url,this.note}}Tv.prototype.file="";Tv.prototype.name="";Tv.prototype.reason="";Tv.prototype.message="";Tv.prototype.stack="";Tv.prototype.fatal=null;Tv.prototype.column=null;Tv.prototype.line=null;Tv.prototype.source=null;Tv.prototype.ruleId=null;Tv.prototype.position=null;const Ax={basename:oZn,dirname:sZn,extname:aZn,join:cZn,sep:"/"};function oZn(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');TW(n);let c=0,u=-1,d=n.length,p;if(r===void 0||r.length===0||r.length>n.length){for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else u<0&&(p=!0,u=d+1);return u<0?"":n.slice(c,u)}if(r===n)return"";let m=-1,x=r.length-1;for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else m<0&&(p=!0,m=d+1),x>-1&&(n.charCodeAt(d)===r.charCodeAt(x--)?x<0&&(u=d):(x=-1,u=m));return c===u?u=m:u<0&&(u=n.length),n.slice(c,u)}function sZn(n){if(TW(n),n.length===0)return".";let r=-1,c=n.length,u;for(;--c;)if(n.charCodeAt(c)===47){if(u){r=c;break}}else u||(u=!0);return r<0?n.charCodeAt(0)===47?"/":".":r===1&&n.charCodeAt(0)===47?"//":n.slice(0,r)}function aZn(n){TW(n);let r=n.length,c=-1,u=0,d=-1,p=0,m;for(;r--;){const x=n.charCodeAt(r);if(x===47){if(m){u=r+1;break}continue}c<0&&(m=!0,c=r+1),x===46?d<0?d=r:p!==1&&(p=1):d>-1&&(p=-1)}return d<0||c<0||p===0||p===1&&d===c-1&&d===u+1?"":n.slice(d,c)}function cZn(...n){let r=-1,c;for(;++r0&&n.charCodeAt(n.length-1)===47&&(c+="/"),r?"/"+c:c}function lZn(n,r){let c="",u=0,d=-1,p=0,m=-1,x,E;for(;++m<=n.length;){if(m2){if(E=c.lastIndexOf("/"),E!==c.length-1){E<0?(c="",u=0):(c=c.slice(0,E),u=c.length-1-c.lastIndexOf("/")),d=m,p=0;continue}}else if(c.length>0){c="",u=0,d=m,p=0;continue}}r&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+n.slice(d+1,m):c=n.slice(d+1,m),u=m-d-1;d=m,p=0}else x===46&&p>-1?p++:p=-1}return c}function TW(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const fZn={cwd:dZn};function dZn(){return"/"}function fOe(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function hZn(n){if(typeof n=="string")n=new URL(n);else if(!fOe(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return pZn(n)}function pZn(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=n.pathname;let c=-1;for(;++c"u"||Nae.call(r,d)},LTt=function(r,c){NTt&&c.name==="__proto__"?NTt(r,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):r[c.name]=c.newValue},FTt=function(r,c){if(c==="__proto__")if(Nae.call(r,c)){if(jTt)return jTt(r,c).value}else return;return r[c]},BTt=function n(){var r,c,u,d,p,m,x=arguments[0],E=1,k=arguments.length,T=!1;for(typeof x=="boolean"&&(T=x,x=arguments[1]||{},E=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});Em.length;let E;x&&m.push(d);try{E=n.apply(this,m)}catch(k){const T=k;if(x&&c)throw T;return d(T)}x||(E instanceof Promise?E.then(p,d):E instanceof Error?d(E):p(E))}function d(m,...x){c||(c=!0,r(m,...x))}function p(m){d(null,m)}}class Av extends Error{constructor(r,c,u){const d=[null,null];let p={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof c=="string"&&(u=c,c=void 0),typeof u=="string"){const m=u.indexOf(":");m===-1?d[1]=u:(d[0]=u.slice(0,m),d[1]=u.slice(m+1))}c&&("type"in c||"position"in c?c.position&&(p=c.position):"start"in c||"end"in c?p=c:("line"in c||"column"in c)&&(p.start=c)),this.name=oD(c)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=p.start.line,this.column=p.start.column,this.source=d[0],this.ruleId=d[1],this.position=p,this.actual,this.expected,this.file,this.url,this.note}}Av.prototype.file="";Av.prototype.name="";Av.prototype.reason="";Av.prototype.message="";Av.prototype.stack="";Av.prototype.fatal=null;Av.prototype.column=null;Av.prototype.line=null;Av.prototype.source=null;Av.prototype.ruleId=null;Av.prototype.position=null;const Px={basename:vZn,dirname:yZn,extname:wZn,join:xZn,sep:"/"};function vZn(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');AW(n);let c=0,u=-1,d=n.length,p;if(r===void 0||r.length===0||r.length>n.length){for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else u<0&&(p=!0,u=d+1);return u<0?"":n.slice(c,u)}if(r===n)return"";let m=-1,x=r.length-1;for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else m<0&&(p=!0,m=d+1),x>-1&&(n.charCodeAt(d)===r.charCodeAt(x--)?x<0&&(u=d):(x=-1,u=m));return c===u?u=m:u<0&&(u=n.length),n.slice(c,u)}function yZn(n){if(AW(n),n.length===0)return".";let r=-1,c=n.length,u;for(;--c;)if(n.charCodeAt(c)===47){if(u){r=c;break}}else u||(u=!0);return r<0?n.charCodeAt(0)===47?"/":".":r===1&&n.charCodeAt(0)===47?"//":n.slice(0,r)}function wZn(n){AW(n);let r=n.length,c=-1,u=0,d=-1,p=0,m;for(;r--;){const x=n.charCodeAt(r);if(x===47){if(m){u=r+1;break}continue}c<0&&(m=!0,c=r+1),x===46?d<0?d=r:p!==1&&(p=1):d>-1&&(p=-1)}return d<0||c<0||p===0||p===1&&d===c-1&&d===u+1?"":n.slice(d,c)}function xZn(...n){let r=-1,c;for(;++r0&&n.charCodeAt(n.length-1)===47&&(c+="/"),r?"/"+c:c}function EZn(n,r){let c="",u=0,d=-1,p=0,m=-1,x,E;for(;++m<=n.length;){if(m2){if(E=c.lastIndexOf("/"),E!==c.length-1){E<0?(c="",u=0):(c=c.slice(0,E),u=c.length-1-c.lastIndexOf("/")),d=m,p=0;continue}}else if(c.length>0){c="",u=0,d=m,p=0;continue}}r&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+n.slice(d+1,m):c=n.slice(d+1,m),u=m-d-1;d=m,p=0}else x===46&&p>-1?p++:p=-1}return c}function AW(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const kZn={cwd:CZn};function CZn(){return"/"}function hOe(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function IZn(n){if(typeof n=="string")n=new URL(n);else if(!hOe(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return TZn(n)}function TZn(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=n.pathname;let c=-1;for(;++c{if(Z||!H||!ce)ne(Z);else{const pe=p.stringify(H,ce);pe==null||(MZn(pe)?ce.value=pe:ce.result=pe),ne(Z,ce)}});function ne(Z,H){Z||!H?B(Z):F?F(H):L(null,H)}}}function N(j){let L;p.freeze(),X7e("processSync",p.Parser),K7e("processSync",p.Compiler);const $=wU(j);return p.process($,F),HTt("processSync","process",L),$;function F(B){L=!0,DTt(B)}}}function VTt(n,r){return typeof n=="function"&&n.prototype&&(OZn(n.prototype)||r in n.prototype)}function OZn(n){let r;for(r in n)if(xzt.call(n,r))return!0;return!1}function X7e(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `Parser`")}function K7e(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `Compiler`")}function Y7e(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function UTt(n){if(!dOe(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function HTt(n,r,c){if(!c)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function wU(n){return _Zn(n)?n:new AZn(n)}function _Zn(n){return Boolean(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function MZn(n){return typeof n=="string"||BNe(n)}function DZn(n,r){var{includeImageAlt:c=!0}=r||{};return Ezt(n,c)}function Ezt(n,r){return n&&typeof n=="object"&&(n.value||(r?n.alt:"")||"children"in n&&qTt(n.children,r)||Array.isArray(n)&&qTt(n,r))||""}function qTt(n,r){for(var c=[],u=-1;++ud?0:d+r:r=r>d?d:r,c=c>0?c:0,u.length<1e4)m=Array.from(u),m.unshift(r,c),[].splice.apply(n,m);else for(c&&[].splice.apply(n,[r,c]);p0?(t3(n,n.length,0,r),n):r}const WTt={}.hasOwnProperty;function NZn(n){const r={};let c=-1;for(;++cm))return;const H=r.events.length;let ce=H,pe,le;for(;ce--;)if(r.events[ce][0]==="exit"&&r.events[ce][1].type==="chunkFlow"){if(pe){le=r.events[ce][1].end;break}pe=!0}for($(u),Z=H;ZB;){const ne=c[X];r.containerState=ne[1],ne[0].exit.call(r,n)}c.length=B}function F(){d.write([null]),p=void 0,d=void 0,r.containerState._closeFlow=void 0}}function WZn(n,r,c){return Yc(n,n.attempt(this.parser.constructs.document,r,c),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function KTt(n){if(n===null||wv(n)||BZn(n))return 1;if(zZn(n))return 2}function zNe(n,r,c){const u=[];let d=-1;for(;++d1&&n[c][1].end.offset-n[c][1].start.offset>1?2:1;const P=Object.assign({},n[u][1].end),I=Object.assign({},n[c][1].start);YTt(P,-E),YTt(I,E),m={type:E>1?"strongSequence":"emphasisSequence",start:P,end:Object.assign({},n[u][1].end)},x={type:E>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[c][1].start),end:I},p={type:E>1?"strongText":"emphasisText",start:Object.assign({},n[u][1].end),end:Object.assign({},n[c][1].start)},d={type:E>1?"strong":"emphasis",start:Object.assign({},m.start),end:Object.assign({},x.end)},n[u][1].end=Object.assign({},m.start),n[c][1].start=Object.assign({},x.end),k=[],n[u][1].end.offset-n[u][1].start.offset&&(k=hv(k,[["enter",n[u][1],r],["exit",n[u][1],r]])),k=hv(k,[["enter",d,r],["enter",m,r],["exit",m,r],["enter",p,r]]),k=hv(k,zNe(r.parser.constructs.insideSpan.null,n.slice(u+1,c),r)),k=hv(k,[["exit",p,r],["enter",x,r],["exit",x,r],["exit",d,r]]),n[c][1].end.offset-n[c][1].start.offset?(T=2,k=hv(k,[["enter",n[c][1],r],["exit",n[c][1],r]])):T=0,t3(n,u-1,c-u+3,k),c=u+k.length-T-2;break}}for(c=-1;++c=4?m(k):c(k)}function m(k){return k===null?E(k):jo(k)?n.attempt(iJn,m,E)(k):(n.enter("codeFlowValue"),x(k))}function x(k){return k===null||jo(k)?(n.exit("codeFlowValue"),m(k)):(n.consume(k),x)}function E(k){return n.exit("codeIndented"),r(k)}}function sJn(n,r,c){const u=this;return d;function d(m){return u.parser.lazy[u.now().line]?c(m):jo(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),d):Yc(n,p,"linePrefix",4+1)(m)}function p(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?r(m):jo(m)?d(m):c(m)}}const aJn={name:"codeText",tokenize:lJn,resolve:cJn,previous:uJn};function cJn(n){let r=n.length-4,c=3,u,d;if((n[c][1].type==="lineEnding"||n[c][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(u=c;++u=4?r(m):n.interrupt(u.parser.constructs.flow,c,r)(m)}}function Azt(n,r,c,u,d,p,m,x,E){const k=E||Number.POSITIVE_INFINITY;let T=0;return P;function P($){return $===60?(n.enter(u),n.enter(d),n.enter(p),n.consume($),n.exit(p),I):$===null||$===41||gOe($)?c($):(n.enter(u),n.enter(m),n.enter(x),n.enter("chunkString",{contentType:"string"}),j($))}function I($){return $===62?(n.enter(p),n.consume($),n.exit(p),n.exit(d),n.exit(u),r):(n.enter(x),n.enter("chunkString",{contentType:"string"}),O($))}function O($){return $===62?(n.exit("chunkString"),n.exit(x),I($)):$===null||$===60||jo($)?c($):(n.consume($),$===92?N:O)}function N($){return $===60||$===62||$===92?(n.consume($),O):O($)}function j($){return $===40?++T>k?c($):(n.consume($),j):$===41?T--?(n.consume($),j):(n.exit("chunkString"),n.exit(x),n.exit(m),n.exit(u),r($)):$===null||wv($)?T?c($):(n.exit("chunkString"),n.exit(x),n.exit(m),n.exit(u),r($)):gOe($)?c($):(n.consume($),$===92?L:j)}function L($){return $===40||$===41||$===92?(n.consume($),j):j($)}}function Pzt(n,r,c,u,d,p){const m=this;let x=0,E;return k;function k(O){return n.enter(u),n.enter(d),n.consume(O),n.exit(d),n.enter(p),T}function T(O){return O===null||O===91||O===93&&!E||O===94&&!x&&"_hiddenFootnoteSupport"in m.parser.constructs||x>999?c(O):O===93?(n.exit(p),n.enter(d),n.consume(O),n.exit(d),n.exit(u),r):jo(O)?(n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),T):(n.enter("chunkString",{contentType:"string"}),P(O))}function P(O){return O===null||O===91||O===93||jo(O)||x++>999?(n.exit("chunkString"),T(O)):(n.consume(O),E=E||!td(O),O===92?I:P)}function I(O){return O===91||O===92||O===93?(n.consume(O),x++,P):P(O)}}function Ozt(n,r,c,u,d,p){let m;return x;function x(I){return n.enter(u),n.enter(d),n.consume(I),n.exit(d),m=I===40?41:I,E}function E(I){return I===m?(n.enter(d),n.consume(I),n.exit(d),n.exit(u),r):(n.enter(p),k(I))}function k(I){return I===m?(n.exit(p),E(m)):I===null?c(I):jo(I)?(n.enter("lineEnding"),n.consume(I),n.exit("lineEnding"),Yc(n,k,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),T(I))}function T(I){return I===m||I===null||jo(I)?(n.exit("chunkString"),k(I)):(n.consume(I),I===92?P:T)}function P(I){return I===m||I===92?(n.consume(I),T):T(I)}}function PH(n,r){let c;return u;function u(d){return jo(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c=!0,u):td(d)?Yc(n,u,c?"linePrefix":"lineSuffix")(d):r(d)}}function sD(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mJn={name:"definition",tokenize:yJn},vJn={tokenize:wJn,partial:!0};function yJn(n,r,c){const u=this;let d;return p;function p(E){return n.enter("definition"),Pzt.call(u,n,m,c,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function m(E){return d=sD(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),PH(n,Azt(n,n.attempt(vJn,Yc(n,x,"whitespace"),Yc(n,x,"whitespace")),c,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):c(E)}function x(E){return E===null||jo(E)?(n.exit("definition"),u.parser.defined.includes(d)||u.parser.defined.push(d),r(E)):c(E)}}function wJn(n,r,c){return u;function u(m){return wv(m)?PH(n,d)(m):c(m)}function d(m){return m===34||m===39||m===40?Ozt(n,Yc(n,p,"whitespace"),c,"definitionTitle","definitionTitleMarker","definitionTitleString")(m):c(m)}function p(m){return m===null||jo(m)?r(m):c(m)}}const xJn={name:"hardBreakEscape",tokenize:SJn};function SJn(n,r,c){return u;function u(p){return n.enter("hardBreakEscape"),n.enter("escapeMarker"),n.consume(p),d}function d(p){return jo(p)?(n.exit("escapeMarker"),n.exit("hardBreakEscape"),r(p)):c(p)}}const EJn={name:"headingAtx",tokenize:CJn,resolve:kJn};function kJn(n,r){let c=n.length-2,u=3,d,p;return n[u][1].type==="whitespace"&&(u+=2),c-2>u&&n[c][1].type==="whitespace"&&(c-=2),n[c][1].type==="atxHeadingSequence"&&(u===c-1||c-4>u&&n[c-2][1].type==="whitespace")&&(c-=u+1===c?2:4),c>u&&(d={type:"atxHeadingText",start:n[u][1].start,end:n[c][1].end},p={type:"chunkText",start:n[u][1].start,end:n[c][1].end,contentType:"text"},t3(n,u,c-u+1,[["enter",d,r],["enter",p,r],["exit",p,r],["exit",d,r]])),n}function CJn(n,r,c){const u=this;let d=0;return p;function p(T){return n.enter("atxHeading"),n.enter("atxHeadingSequence"),m(T)}function m(T){return T===35&&d++<6?(n.consume(T),m):T===null||wv(T)?(n.exit("atxHeadingSequence"),u.interrupt?r(T):x(T)):c(T)}function x(T){return T===35?(n.enter("atxHeadingSequence"),E(T)):T===null||jo(T)?(n.exit("atxHeading"),r(T)):td(T)?Yc(n,x,"whitespace")(T):(n.enter("atxHeadingText"),k(T))}function E(T){return T===35?(n.consume(T),E):(n.exit("atxHeadingSequence"),x(T))}function k(T){return T===null||T===35||wv(T)?(n.exit("atxHeadingText"),x(T)):(n.consume(T),k)}}const IJn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],JTt=["pre","script","style","textarea"],TJn={name:"htmlFlow",tokenize:OJn,resolveTo:PJn,concrete:!0},AJn={tokenize:_Jn,partial:!0};function PJn(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function OJn(n,r,c){const u=this;let d,p,m,x,E;return k;function k(Se){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(Se),T}function T(Se){return Se===33?(n.consume(Se),P):Se===47?(n.consume(Se),N):Se===63?(n.consume(Se),d=3,u.interrupt?r:we):Lx(Se)?(n.consume(Se),m=String.fromCharCode(Se),p=!0,j):c(Se)}function P(Se){return Se===45?(n.consume(Se),d=2,I):Se===91?(n.consume(Se),d=5,m="CDATA[",x=0,O):Lx(Se)?(n.consume(Se),d=4,u.interrupt?r:we):c(Se)}function I(Se){return Se===45?(n.consume(Se),u.interrupt?r:we):c(Se)}function O(Se){return Se===m.charCodeAt(x++)?(n.consume(Se),x===m.length?u.interrupt?r:ye:O):c(Se)}function N(Se){return Lx(Se)?(n.consume(Se),m=String.fromCharCode(Se),j):c(Se)}function j(Se){return Se===null||Se===47||Se===62||wv(Se)?Se!==47&&p&&JTt.includes(m.toLowerCase())?(d=1,u.interrupt?r(Se):ye(Se)):IJn.includes(m.toLowerCase())?(d=6,Se===47?(n.consume(Se),L):u.interrupt?r(Se):ye(Se)):(d=7,u.interrupt&&!u.parser.lazy[u.now().line]?c(Se):p?F(Se):$(Se)):Se===45||kb(Se)?(n.consume(Se),m+=String.fromCharCode(Se),j):c(Se)}function L(Se){return Se===62?(n.consume(Se),u.interrupt?r:ye):c(Se)}function $(Se){return td(Se)?(n.consume(Se),$):pe(Se)}function F(Se){return Se===47?(n.consume(Se),pe):Se===58||Se===95||Lx(Se)?(n.consume(Se),B):td(Se)?(n.consume(Se),F):pe(Se)}function B(Se){return Se===45||Se===46||Se===58||Se===95||kb(Se)?(n.consume(Se),B):X(Se)}function X(Se){return Se===61?(n.consume(Se),ne):td(Se)?(n.consume(Se),X):F(Se)}function ne(Se){return Se===null||Se===60||Se===61||Se===62||Se===96?c(Se):Se===34||Se===39?(n.consume(Se),E=Se,Z):td(Se)?(n.consume(Se),ne):(E=null,H(Se))}function Z(Se){return Se===null||jo(Se)?c(Se):Se===E?(n.consume(Se),ce):(n.consume(Se),Z)}function H(Se){return Se===null||Se===34||Se===39||Se===60||Se===61||Se===62||Se===96||wv(Se)?X(Se):(n.consume(Se),H)}function ce(Se){return Se===47||Se===62||td(Se)?F(Se):c(Se)}function pe(Se){return Se===62?(n.consume(Se),le):c(Se)}function le(Se){return td(Se)?(n.consume(Se),le):Se===null||jo(Se)?ye(Se):c(Se)}function ye(Se){return Se===45&&d===2?(n.consume(Se),tt):Se===60&&d===1?(n.consume(Se),jt):Se===62&&d===4?(n.consume(Se),De):Se===63&&d===3?(n.consume(Se),we):Se===93&&d===5?(n.consume(Se),ze):jo(Se)&&(d===6||d===7)?n.check(AJn,De,Ge)(Se):Se===null||jo(Se)?Ge(Se):(n.consume(Se),ye)}function Ge(Se){return n.exit("htmlFlowData"),qe(Se)}function qe(Se){return Se===null?be(Se):jo(Se)?n.attempt({tokenize:et,partial:!0},qe,be)(Se):(n.enter("htmlFlowData"),ye(Se))}function et(Se,Jt,sn){return Tn;function Tn(rr){return Se.enter("lineEnding"),Se.consume(rr),Se.exit("lineEnding"),qn}function qn(rr){return u.parser.lazy[u.now().line]?sn(rr):Jt(rr)}}function tt(Se){return Se===45?(n.consume(Se),we):ye(Se)}function jt(Se){return Se===47?(n.consume(Se),m="",Me):ye(Se)}function Me(Se){return Se===62&&JTt.includes(m.toLowerCase())?(n.consume(Se),De):Lx(Se)&&m.length<8?(n.consume(Se),m+=String.fromCharCode(Se),Me):ye(Se)}function ze(Se){return Se===93?(n.consume(Se),we):ye(Se)}function we(Se){return Se===62?(n.consume(Se),De):Se===45&&d===2?(n.consume(Se),we):ye(Se)}function De(Se){return Se===null||jo(Se)?(n.exit("htmlFlowData"),be(Se)):(n.consume(Se),De)}function be(Se){return n.exit("htmlFlow"),r(Se)}}function _Jn(n,r,c){return u;function u(d){return n.exit("htmlFlowData"),n.enter("lineEndingBlank"),n.consume(d),n.exit("lineEndingBlank"),n.attempt(Ofe,r,c)}}const MJn={name:"htmlText",tokenize:DJn};function DJn(n,r,c){const u=this;let d,p,m,x;return E;function E(be){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(be),k}function k(be){return be===33?(n.consume(be),T):be===47?(n.consume(be),H):be===63?(n.consume(be),ne):Lx(be)?(n.consume(be),le):c(be)}function T(be){return be===45?(n.consume(be),P):be===91?(n.consume(be),p="CDATA[",m=0,L):Lx(be)?(n.consume(be),X):c(be)}function P(be){return be===45?(n.consume(be),I):c(be)}function I(be){return be===null||be===62?c(be):be===45?(n.consume(be),O):N(be)}function O(be){return be===null||be===62?c(be):N(be)}function N(be){return be===null?c(be):be===45?(n.consume(be),j):jo(be)?(x=N,ze(be)):(n.consume(be),N)}function j(be){return be===45?(n.consume(be),De):N(be)}function L(be){return be===p.charCodeAt(m++)?(n.consume(be),m===p.length?$:L):c(be)}function $(be){return be===null?c(be):be===93?(n.consume(be),F):jo(be)?(x=$,ze(be)):(n.consume(be),$)}function F(be){return be===93?(n.consume(be),B):$(be)}function B(be){return be===62?De(be):be===93?(n.consume(be),B):$(be)}function X(be){return be===null||be===62?De(be):jo(be)?(x=X,ze(be)):(n.consume(be),X)}function ne(be){return be===null?c(be):be===63?(n.consume(be),Z):jo(be)?(x=ne,ze(be)):(n.consume(be),ne)}function Z(be){return be===62?De(be):ne(be)}function H(be){return Lx(be)?(n.consume(be),ce):c(be)}function ce(be){return be===45||kb(be)?(n.consume(be),ce):pe(be)}function pe(be){return jo(be)?(x=pe,ze(be)):td(be)?(n.consume(be),pe):De(be)}function le(be){return be===45||kb(be)?(n.consume(be),le):be===47||be===62||wv(be)?ye(be):c(be)}function ye(be){return be===47?(n.consume(be),De):be===58||be===95||Lx(be)?(n.consume(be),Ge):jo(be)?(x=ye,ze(be)):td(be)?(n.consume(be),ye):De(be)}function Ge(be){return be===45||be===46||be===58||be===95||kb(be)?(n.consume(be),Ge):qe(be)}function qe(be){return be===61?(n.consume(be),et):jo(be)?(x=qe,ze(be)):td(be)?(n.consume(be),qe):ye(be)}function et(be){return be===null||be===60||be===61||be===62||be===96?c(be):be===34||be===39?(n.consume(be),d=be,tt):jo(be)?(x=et,ze(be)):td(be)?(n.consume(be),et):(n.consume(be),d=void 0,Me)}function tt(be){return be===d?(n.consume(be),jt):be===null?c(be):jo(be)?(x=tt,ze(be)):(n.consume(be),tt)}function jt(be){return be===62||be===47||wv(be)?ye(be):c(be)}function Me(be){return be===null||be===34||be===39||be===60||be===61||be===96?c(be):be===62||wv(be)?ye(be):(n.consume(be),Me)}function ze(be){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(be),n.exit("lineEnding"),Yc(n,we,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function we(be){return n.enter("htmlTextData"),x(be)}function De(be){return be===62?(n.consume(be),n.exit("htmlTextData"),n.exit("htmlText"),r):c(be)}}const UNe={name:"labelEnd",tokenize:FJn,resolveTo:LJn,resolveAll:$Jn},NJn={tokenize:BJn},jJn={tokenize:zJn},RJn={tokenize:VJn};function $Jn(n){let r=-1,c;for(;++r-1&&(m[0]=m[0].slice(u)),p>0&&m.push(n[d].slice(0,p))),m}function der(n,r){let c=-1;const u=[];let d;for(;++c13&&c<32||c>126&&c<160||c>55295&&c<57344||c>64975&&c<65008||(c&65535)===65535||(c&65535)===65534||c>1114111?"\uFFFD":String.fromCharCode(c)}const Ier=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ter(n){return n.replace(Ier,Aer)}function Aer(n,r,c){if(r)return r;if(c.charCodeAt(0)===35){const d=c.charCodeAt(1),p=d===120||d===88;return Dzt(c.slice(p?2:1),p?16:10)}return VNe(c)||n}const mOe={}.hasOwnProperty,Per=function(n,r,c){return typeof r!="string"&&(c=r,r=void 0),Oer(c)(Cer(Eer(c).document().write(ker()(n,r,!0))))};function Oer(n={}){const r=Nzt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E(yr),autolinkProtocol:Ge,autolinkEmail:Ge,atxHeading:E(Xe),blockQuote:E(rn),characterEscape:Ge,characterReference:Ge,codeFenced:E(Ne),codeFencedFenceInfo:k,codeFencedFenceMeta:k,codeIndented:E(Ne,k),codeText:E(ae,k),codeTextData:Ge,data:Ge,codeFlowValue:Ge,definition:E(me),definitionDestinationString:k,definitionLabelString:k,definitionTitleString:k,emphasis:E(Te),hardBreakEscape:E(dt),hardBreakTrailing:E(dt),htmlFlow:E(Sn,k),htmlFlowData:Ge,htmlText:E(Sn,k),htmlTextData:Ge,image:E(gn),label:k,link:E(yr),listItem:E(Ur),listItemValue:j,listOrdered:E(Sr,N),listUnordered:E(Sr),paragraph:E(jr),reference:qn,referenceString:k,resourceDestinationString:k,resourceTitleString:k,setextHeading:E(Xe),strong:E(ki),thematicBreak:E(Ee)},exit:{atxHeading:P(),atxHeadingSequence:ce,autolink:P(),autolinkEmail:ct,autolinkProtocol:Je,blockQuote:P(),characterEscapeValue:qe,characterReferenceMarkerHexadecimal:Zn,characterReferenceMarkerNumeric:Zn,characterReferenceValue:Gr,codeFenced:P(B),codeFencedFence:F,codeFencedFenceInfo:L,codeFencedFenceMeta:$,codeFlowValue:qe,codeIndented:P(X),codeText:P(ze),codeTextData:qe,data:qe,definition:P(),definitionDestinationString:H,definitionLabelString:ne,definitionTitleString:Z,emphasis:P(),hardBreakEscape:P(tt),hardBreakTrailing:P(tt),htmlFlow:P(jt),htmlFlowData:qe,htmlText:P(Me),htmlTextData:qe,image:P(De),label:Se,labelText:be,lineEnding:et,link:P(we),listItem:P(),listOrdered:P(),listUnordered:P(),paragraph:P(),referenceString:rr,resourceDestinationString:Jt,resourceTitleString:sn,resource:Tn,setextHeading:P(ye),setextHeadingLineSequence:le,setextHeadingText:pe,strong:P(),thematicBreak:P()}},n.mdastExtensions||[]),c={};return u;function u(K){let ie={type:"root",children:[]};const ke=[ie],nt=[],Nt=[],cn={stack:ke,tokenStack:nt,config:r,enter:T,exit:I,buffer:k,resume:O,setData:p,getData:m};let Hr=-1;for(;++Hr0){const _o=nt[nt.length-1];(_o[1]||nAt).call(cn,void 0,_o[0])}for(ie.position={start:x(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:x(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Hr=-1;++Hr{const u=this.data("settings");return Per(c,Object.assign({},u,n,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Rd=function(n,r,c){var u={type:String(n)};return c==null&&(typeof r=="string"||Array.isArray(r))?c=r:Object.assign(u,r),Array.isArray(c)?u.children=c:c!=null&&(u.value=String(c)),u};const Rae={}.hasOwnProperty;function Der(n,r){const c=r.data||{};return"value"in r&&!(Rae.call(c,"hName")||Rae.call(c,"hProperties")||Rae.call(c,"hChildren"))?n.augment(r,Rd("text",r.value)):n(r,"div",q1(n,r))}function jzt(n,r,c){const u=r&&r.type;let d;if(!u)throw new Error("Expected node, got `"+r+"`");return Rae.call(n.handlers,u)?d=n.handlers[u]:n.passThrough&&n.passThrough.includes(u)?d=Ner:d=n.unknownHandler,(typeof d=="function"?d:Der)(n,r,c)}function Ner(n,r){return"children"in r?{...r,children:q1(n,r)}:r}function q1(n,r){const c=[];if("children"in r){const u=r.children;let d=-1;for(;++d":""))+")"})),I;function I(){let O=[],N,j,L;if((!r||d(x,E,k[k.length-1]||null))&&(O=Ver(c(x,k)),O[0]===rAt))return O;if(x.children&&O[0]!==Ber)for(j=(u?x.children.length:-1)+p,L=k.concat(x);j>-1&&j-1?u.offset:null}}}function Uer(n){return!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column}const iAt={}.hasOwnProperty;function Her(n){const r=Object.create(null);if(!n||!n.type)throw new Error("mdast-util-definitions expected node");return $zt(n,"definition",u=>{const d=oAt(u.identifier);d&&!iAt.call(r,d)&&(r[d]=u)}),c;function c(u){const d=oAt(u);return d&&iAt.call(r,d)?r[d]:null}}function oAt(n){return String(n||"").toUpperCase()}const qer={'"':"quot","&":"amp","<":"lt",">":"gt"};function Wer(n){return n.replace(/["&<>]/g,r);function r(c){return"&"+qer[c]+";"}}function zzt(n,r){const c=Wer(Ger(n||""));if(!r)return c;const u=c.indexOf(":"),d=c.indexOf("?"),p=c.indexOf("#"),m=c.indexOf("/");return u<0||m>-1&&u>m||d>-1&&u>d||p>-1&&u>p||r.test(c.slice(0,u))?c:""}function Ger(n){const r=[];let c=-1,u=0,d=0;for(;++c55295&&p<57344){const x=n.charCodeAt(c+1);p<56320&&x>56319&&x<57344?(m=String.fromCharCode(p,x),d=1):m="\uFFFD"}else m=String.fromCharCode(p);m&&(r.push(n.slice(u,c),encodeURIComponent(m)),u=c+d+1,m=""),d&&(c+=d,d=0)}return r.join("")+n.slice(u)}function hS(n,r){const c=[];let u=-1;for(r&&c.push(Rd("text",` -`));++u0&&c.push(Rd("text",` -`)),c}function Xer(n){let r=-1;const c=[];for(;++r1?"-"+x:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};x>1&&P.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(x)}]}),E.length>0&&E.push({type:"text",value:" "}),E.push(P)}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const P=k.children[k.children.length-1];P&&P.type==="text"?P.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...E)}else d.push(...E);const T={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+m},children:hS(d,!0)};u.position&&(T.position=u.position),c.push(T)}return c.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:JSON.parse(JSON.stringify(n.footnoteLabelProperties)),children:[Rd("text",n.footnoteLabel)]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:hS(c,!0)},{type:"text",value:` -`}]}}function Ker(n,r){return n(r,"blockquote",hS(q1(n,r),!0))}function Yer(n,r){return[n(r,"br"),Rd("text",` -`)]}function Qer(n,r){const c=r.value?r.value+` -`:"",u=r.lang&&r.lang.match(/^[^ \t]+(?=[ \t]|$)/),d={};u&&(d.className=["language-"+u]);const p=n(r,"code",d,[Rd("text",c)]);return r.meta&&(p.data={meta:r.meta}),n(r.position,"pre",[p])}function Zer(n,r){return n(r,"del",q1(n,r))}function Jer(n,r){return n(r,"em",q1(n,r))}function Vzt(n,r){const c=String(r.identifier),u=zzt(c.toLowerCase()),d=n.footnoteOrder.indexOf(c);let p;d===-1?(n.footnoteOrder.push(c),n.footnoteCounts[c]=1,p=n.footnoteOrder.length):(n.footnoteCounts[c]++,p=d+1);const m=n.footnoteCounts[c];return n(r,"sup",[n(r.position,"a",{href:"#"+n.clobberPrefix+"fn-"+u,id:n.clobberPrefix+"fnref-"+u+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Rd("text",String(p))])])}function etr(n,r){const c=n.footnoteById;let u=1;for(;u in c;)u++;const d=String(u);return c[d]={type:"footnoteDefinition",identifier:d,children:[{type:"paragraph",children:r.children}],position:r.position},Vzt(n,{type:"footnoteReference",identifier:d,position:r.position})}function ttr(n,r){return n(r,"h"+r.depth,q1(n,r))}function ntr(n,r){return n.dangerous?n.augment(r,Rd("raw",r.value)):null}var sAt={};function rtr(n){var r,c,u=sAt[n];if(u)return u;for(u=sAt[n]=[],r=0;r<128;r++)c=String.fromCharCode(r),/^[0-9a-z]$/i.test(c)?u.push(c):u.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r"u"&&(c=!0),x=rtr(r),u=0,d=n.length;u=55296&&p<=57343){if(p>=55296&&p<=56319&&u+1=56320&&m<=57343)){E+=encodeURIComponent(n[u]+n[u+1]),u++;continue}E+="%EF%BF%BD";continue}E+=encodeURIComponent(n[u])}return E}Mfe.defaultChars=";/?:@&=+$,-_.!~*'()#";Mfe.componentChars="-_.!~*'()";var Dfe=Mfe;function Uzt(n,r){const c=r.referenceType;let u="]";if(c==="collapsed"?u+="[]":c==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return Rd("text","!["+r.alt+u);const d=q1(n,r),p=d[0];p&&p.type==="text"?p.value="["+p.value:d.unshift(Rd("text","["));const m=d[d.length-1];return m&&m.type==="text"?m.value+=u:d.push(Rd("text",u)),d}function itr(n,r){const c=n.definition(r.identifier);if(!c)return Uzt(n,r);const u={src:Dfe(c.url||""),alt:r.alt};return c.title!==null&&c.title!==void 0&&(u.title=c.title),n(r,"img",u)}function otr(n,r){const c={src:Dfe(r.url),alt:r.alt};return r.title!==null&&r.title!==void 0&&(c.title=r.title),n(r,"img",c)}function str(n,r){return n(r,"code",[Rd("text",r.value.replace(/\r?\n|\r/g," "))])}function atr(n,r){const c=n.definition(r.identifier);if(!c)return Uzt(n,r);const u={href:Dfe(c.url||"")};return c.title!==null&&c.title!==void 0&&(u.title=c.title),n(r,"a",u,q1(n,r))}function ctr(n,r){const c={href:Dfe(r.url)};return r.title!==null&&r.title!==void 0&&(c.title=r.title),n(r,"a",c,q1(n,r))}function utr(n,r,c){const u=q1(n,r),d=c?ltr(c):Hzt(r),p={},m=[];if(typeof r.checked=="boolean"){let k;u[0]&&u[0].type==="element"&&u[0].tagName==="p"?k=u[0]:(k=n(null,"p",[]),u.unshift(k)),k.children.length>0&&k.children.unshift(Rd("text"," ")),k.children.unshift(n(null,"input",{type:"checkbox",checked:r.checked,disabled:!0})),p.className=["task-list-item"]}let x=-1;for(;++x1:r}function ftr(n,r){const c={},u=r.ordered?"ol":"ul",d=q1(n,r);let p=-1;for(typeof r.start=="number"&&r.start!==1&&(c.start=r.start);++p0,!0),u[0]),d=u.index+u[0].length,u=c.exec(r);return p.push(uAt(r.slice(d),d>0,!1)),p.join("")}function uAt(n,r,c){let u=0,d=n.length;if(r){let p=n.codePointAt(u);for(;p===aAt||p===cAt;)u++,p=n.codePointAt(u)}if(c){let p=n.codePointAt(d-1);for(;p===aAt||p===cAt;)d--,p=n.codePointAt(d-1)}return d>u?n.slice(u,d):""}function mtr(n,r){return n.augment(r,Rd("text",btr(String(r.value))))}function vtr(n,r){return n(r,"hr")}const ytr={blockquote:Ker,break:Yer,code:Qer,delete:Zer,emphasis:Jer,footnoteReference:Vzt,footnote:etr,heading:ttr,html:ntr,imageReference:itr,image:otr,inlineCode:str,linkReference:atr,link:ctr,listItem:utr,list:ftr,paragraph:dtr,root:htr,strong:ptr,table:gtr,text:mtr,thematicBreak:vtr,toml:Gse,yaml:Gse,definition:Gse,footnoteDefinition:Gse};function Gse(){return null}const wtr={}.hasOwnProperty;function xtr(n,r){const c=r||{},u=c.allowDangerousHtml||!1,d={};return m.dangerous=u,m.clobberPrefix=c.clobberPrefix===void 0||c.clobberPrefix===null?"user-content-":c.clobberPrefix,m.footnoteLabel=c.footnoteLabel||"Footnotes",m.footnoteLabelTagName=c.footnoteLabelTagName||"h2",m.footnoteLabelProperties=c.footnoteLabelProperties||{id:"footnote-label",className:["sr-only"]},m.footnoteBackLabel=c.footnoteBackLabel||"Back to content",m.definition=Her(n),m.footnoteById=d,m.footnoteOrder=[],m.footnoteCounts={},m.augment=p,m.handlers={...ytr,...c.handlers},m.unknownHandler=c.unknownHandler,m.passThrough=c.passThrough,$zt(n,"footnoteDefinition",x=>{const E=String(x.identifier).toUpperCase();wtr.call(d,E)||(d[E]=x)}),m;function p(x,E){if(x&&"data"in x&&x.data){const k=x.data;k.hName&&(E.type!=="element"&&(E={type:"element",tagName:"",properties:{},children:[]}),E.tagName=k.hName),E.type==="element"&&k.hProperties&&(E.properties={...E.properties,...k.hProperties}),"children"in E&&E.children&&k.hChildren&&(E.children=k.hChildren)}if(x){const k="type"in x?x:{position:x};Uer(k)||(E.position={start:Lzt(k),end:Fzt(k)})}return E}function m(x,E,k,T){return Array.isArray(k)&&(T=k,k={}),p(x,{type:"element",tagName:E,properties:k||{},children:T||[]})}}function qzt(n,r){const c=xtr(n,r),u=jzt(c,n,null),d=Xer(c);return d&&u.children.push(Rd("text",` -`),d),Array.isArray(u)?{type:"root",children:u}:u}const Str=function(n,r){return n&&"run"in n?ktr(n,r):Ctr(n||r)},Etr=Str;function ktr(n,r){return(c,u,d)=>{n.run(qzt(c,r),u,p=>{d(p)})}}function Ctr(n){return r=>qzt(r,n)}class PW{constructor(r,c,u){this.property=r,this.normal=c,u&&(this.space=u)}}PW.prototype.property={};PW.prototype.normal={};PW.prototype.space=null;function Wzt(n,r){const c={},u={};let d=-1;for(;++d4&&c.slice(0,4)==="data"&&Otr.test(r)){if(r.charAt(4)==="-"){const p=r.slice(5).replace(fAt,Ntr);u="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=r.slice(4);if(!fAt.test(p)){let m=p.replace(_tr,Dtr);m.charAt(0)!=="-"&&(m="-"+m),r="data"+m}}d=HNe}return new d(u,r)}function Dtr(n){return"-"+n.toLowerCase()}function Ntr(n){return n.charAt(1).toUpperCase()}const dAt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jtr=Wzt([Kzt,Xzt,Zzt,Jzt,Atr],"html"),Rtr=Wzt([Kzt,Xzt,Zzt,Jzt,Ptr],"svg"),eVt=function(n){if(n==null)return Btr;if(typeof n=="string")return Ftr(n);if(typeof n=="object")return Array.isArray(n)?$tr(n):Ltr(n);if(typeof n=="function")return Nfe(n);throw new Error("Expected function, string, or object as test")};function $tr(n){const r=[];let c=-1;for(;++c":""))+")"})),I;function I(){let O=[],N,j,L;if((!r||d(x,E,k[k.length-1]||null))&&(O=Htr(c(x,k)),O[0]===hAt))return O;if(x.children&&O[0]!==Vtr)for(j=(u?x.children.length:-1)+p,L=k.concat(x);j>-1&&j{qtr(r,"element",(c,u,d)=>{const p=d;let m;if(n.allowedElements?m=!n.allowedElements.includes(c.tagName):n.disallowedElements&&(m=n.disallowedElements.includes(c.tagName)),!m&&n.allowElement&&typeof u=="number"&&(m=!n.allowElement(c,u,p)),m&&typeof u=="number")return n.unwrapDisallowed&&c.children?p.children.splice(u,1,...c.children):p.children.splice(u,1),u})}}var tVt={exports:{}},kc={};/** - * @license React - * react-is.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 qNe=Symbol.for("react.element"),WNe=Symbol.for("react.portal"),jfe=Symbol.for("react.fragment"),Rfe=Symbol.for("react.strict_mode"),$fe=Symbol.for("react.profiler"),Lfe=Symbol.for("react.provider"),Ffe=Symbol.for("react.context"),Gtr=Symbol.for("react.server_context"),Bfe=Symbol.for("react.forward_ref"),zfe=Symbol.for("react.suspense"),Vfe=Symbol.for("react.suspense_list"),Ufe=Symbol.for("react.memo"),Hfe=Symbol.for("react.lazy"),Xtr=Symbol.for("react.offscreen"),nVt;nVt=Symbol.for("react.module.reference");function Ov(n){if(typeof n=="object"&&n!==null){var r=n.$$typeof;switch(r){case qNe:switch(n=n.type,n){case jfe:case $fe:case Rfe:case zfe:case Vfe:return n;default:switch(n=n&&n.$$typeof,n){case Gtr:case Ffe:case Bfe:case Hfe:case Ufe:case Lfe:return n;default:return r}}case WNe:return r}}}kc.ContextConsumer=Ffe;kc.ContextProvider=Lfe;kc.Element=qNe;kc.ForwardRef=Bfe;kc.Fragment=jfe;kc.Lazy=Hfe;kc.Memo=Ufe;kc.Portal=WNe;kc.Profiler=$fe;kc.StrictMode=Rfe;kc.Suspense=zfe;kc.SuspenseList=Vfe;kc.isAsyncMode=function(){return!1};kc.isConcurrentMode=function(){return!1};kc.isContextConsumer=function(n){return Ov(n)===Ffe};kc.isContextProvider=function(n){return Ov(n)===Lfe};kc.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===qNe};kc.isForwardRef=function(n){return Ov(n)===Bfe};kc.isFragment=function(n){return Ov(n)===jfe};kc.isLazy=function(n){return Ov(n)===Hfe};kc.isMemo=function(n){return Ov(n)===Ufe};kc.isPortal=function(n){return Ov(n)===WNe};kc.isProfiler=function(n){return Ov(n)===$fe};kc.isStrictMode=function(n){return Ov(n)===Rfe};kc.isSuspense=function(n){return Ov(n)===zfe};kc.isSuspenseList=function(n){return Ov(n)===Vfe};kc.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===jfe||n===$fe||n===Rfe||n===zfe||n===Vfe||n===Xtr||typeof n=="object"&&n!==null&&(n.$$typeof===Hfe||n.$$typeof===Ufe||n.$$typeof===Lfe||n.$$typeof===Ffe||n.$$typeof===Bfe||n.$$typeof===nVt||n.getModuleId!==void 0)};kc.typeOf=Ov;(function(n){n.exports=kc})(tVt);const Ktr=Lue(tVt.exports);function Ytr(n){var r=n&&typeof n=="object"&&n.type==="text"?n.value||"":n;return typeof r=="string"&&r.replace(/[ \t\n\f\r]/g,"")===""}function Qtr(n){return n.join(" ").trim()}function Ztr(n,r){var c=r||{};return n[n.length-1]===""&&(n=n.concat("")),n.join((c.padRight?" ":"")+","+(c.padLeft===!1?"":" ")).trim()}var pAt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Jtr=/\n/g,enr=/^\s*/,tnr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,nnr=/^:\s*/,rnr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,inr=/^[;\s]*/,onr=/^\s+|\s+$/g,snr=` -`,gAt="/",bAt="*",J9="",anr="comment",cnr="declaration",unr=function(n,r){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];r=r||{};var c=1,u=1;function d(N){var j=N.match(Jtr);j&&(c+=j.length);var L=N.lastIndexOf(snr);u=~L?N.length-L:u+N.length}function p(){var N={line:c,column:u};return function(j){return j.position=new m(N),k(),j}}function m(N){this.start=N,this.end={line:c,column:u},this.source=r.source}m.prototype.content=n;function x(N){var j=new Error(r.source+":"+c+":"+u+": "+N);if(j.reason=N,j.filename=r.source,j.line=c,j.column=u,j.source=n,!r.silent)throw j}function E(N){var j=N.exec(n);if(!!j){var L=j[0];return d(L),n=n.slice(L.length),j}}function k(){E(enr)}function T(N){var j;for(N=N||[];j=P();)j!==!1&&N.push(j);return N}function P(){var N=p();if(!(gAt!=n.charAt(0)||bAt!=n.charAt(1))){for(var j=2;J9!=n.charAt(j)&&(bAt!=n.charAt(j)||gAt!=n.charAt(j+1));)++j;if(j+=2,J9===n.charAt(j-1))return x("End of comment missing");var L=n.slice(2,j-2);return u+=2,d(L),n=n.slice(j),u+=2,N({type:anr,comment:L})}}function I(){var N=p(),j=E(tnr);if(!!j){if(P(),!E(nnr))return x("property missing ':'");var L=E(rnr),$=N({type:cnr,property:mAt(j[0].replace(pAt,J9)),value:L?mAt(L[0].replace(pAt,J9)):J9});return E(inr),$}}function O(){var N=[];T(N);for(var j;j=I();)j!==!1&&(N.push(j),T(N));return N}return k(),O()};function mAt(n){return n?n.replace(onr,J9):J9}var lnr=unr;function fnr(n,r){var c=null;if(!n||typeof n!="string")return c;for(var u,d=lnr(n),p=typeof r=="function",m,x,E=0,k=d.length;E0?ut.createElement(I,x,T):ut.createElement(I,x)}function gnr(n){let r=-1;for(;++rString(r)).join("")}const vAt={}.hasOwnProperty,wnr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xse={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function GNe(n){for(const p in Xse)if(vAt.call(Xse,p)&&vAt.call(n,p)){const m=Xse[p];console.warn(`[react-markdown] Warning: please ${m.to?`use \`${m.to}\` instead of`:"remove"} \`${p}\` (see <${wnr}#${m.id}> for more info)`),delete Xse[p]}const r=PZn().use(Mer).use(n.remarkPlugins||[]).use(Etr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(Wtr,n),c=new gZn;typeof n.children=="string"?c.value=n.children:n.children!==void 0&&n.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${n.children}\`)`);const u=r.runSync(r.parse(c),c);if(u.type!=="root")throw new TypeError("Expected a `root` node");let d=V(Si,{children:rVt({options:n,schema:jtr,listDepth:0},u)});return n.className&&(d=V("div",{className:n.className,children:d})),d}GNe.defaultProps={transformLinkUri:iZn};GNe.propTypes={children:Dn.exports.string,className:Dn.exports.string,allowElement:Dn.exports.func,allowedElements:Dn.exports.arrayOf(Dn.exports.string),disallowedElements:Dn.exports.arrayOf(Dn.exports.string),unwrapDisallowed:Dn.exports.bool,remarkPlugins:Dn.exports.arrayOf(Dn.exports.oneOfType([Dn.exports.object,Dn.exports.func,Dn.exports.arrayOf(Dn.exports.oneOfType([Dn.exports.bool,Dn.exports.string,Dn.exports.object,Dn.exports.func,Dn.exports.arrayOf(Dn.exports.any)]))])),rehypePlugins:Dn.exports.arrayOf(Dn.exports.oneOfType([Dn.exports.object,Dn.exports.func,Dn.exports.arrayOf(Dn.exports.oneOfType([Dn.exports.bool,Dn.exports.string,Dn.exports.object,Dn.exports.func,Dn.exports.arrayOf(Dn.exports.any)]))])),sourcePos:Dn.exports.bool,rawSourcePos:Dn.exports.bool,skipHtml:Dn.exports.bool,includeElementIndex:Dn.exports.bool,transformLinkUri:Dn.exports.oneOfType([Dn.exports.func,Dn.exports.bool]),linkTarget:Dn.exports.oneOfType([Dn.exports.func,Dn.exports.string]),transformImageUri:Dn.exports.func,components:Dn.exports.object};const xnr=Qt(GNe),Snr={ul:zMe,ol:BMe,p:({...n})=>V(Bi,{...n}),a:fq,blockquote:({...n})=>V(Bi,{paddingLeft:"2",borderLeftWidth:"2px",borderColor:"whiteAlpha.400",...n})},Enr={display:"flex",flexDirection:"column",gap:"2","h1, h2, h3":{fontSize:"md"},"h1, h2, h3, strong":{fontVariationSettings:"'wght' 700"},a:{color:"blue.300",_hover:{textDecoration:"underline"}},blockquote:{borderLeft:"2px solid currentColor",paddingLeft:"2"},li:{marginLeft:"4"},pre:{overflow:"hidden",textOverflow:"ellipsis"}},XNe=({children:n,components:r={},__css:c={}})=>V(xnr,{__css:{...Enr,...c},components:{...Snr,...r},children:n});function iVt(n,r){U.exports.useLayoutEffect(()=>{const c=n.current;if(!c||!r)return;r(c.getBoundingClientRect());const u=new ResizeObserver(()=>{requestAnimationFrame(()=>{c.ownerDocument.contains(c)&&r(c.getBoundingClientRect())})});return u.observe(c),()=>{u.unobserve(c)}},[n,r])}const V9=({children:n})=>V(nl,{whiteSpace:"nowrap",textOverflow:"ellipsis",children:n}),tTe=n=>V(In,{height:"6px",width:"6px",borderRadius:"6px",bg:n.bg||"transparent",display:"inline-block",border:"1px",borderColor:"whiteAlpha.500"}),oVt=({eventType:n,guard:r})=>{const c=va(u=>{if("invocationId"in n)return u.getInvocationById(n.invocationId)});return n.type==="state.done"?We(V9,{children:[V(tTe,{bg:"green.400"}),V(Bi,{as:"em",children:"onDone"})]}):n.type==="invocation.done"&&c?We(V9,{children:[V(tTe,{bg:"green.400"}),V("em",{children:"done:"})," ",V(Bi,{children:c.userIdOverride||c.src})]}):n.type==="invocation.error"&&c?We(V9,{children:[V(tTe,{bg:"orange.400"}),V("em",{children:"error:"})," ",V(Bi,{children:c.userIdOverride||c.src})]}):n.type==="after"?We(V9,{children:[V("em",{children:"after"})," ",isNaN(Number(n.delay))?V(Bi,{children:n.delay}):V(aN,{label:`${(+n.delay).toLocaleString("en-US")} ms`,children:V(Bi,{children:Gce(n.delay).toString()})})]}):n.type==="always"?r?null:V(V9,{children:V("em",{children:"always"})}):n.type==="wildcard"?V(V9,{children:V(Bi,{children:"*"})}):n.type==="named"?V(V9,{children:V(Bi,{children:n.eventType})}):null},knr=({actions:n,description:r,isActiveInSimulation:c=!1,...u})=>{const{getColorModeValue:d}=ei();return We(In,{fontSize:"sm",borderBottomRadius:"2xl",overflow:"hidden",color:d(c?"whiteAlpha.800":"gray.600","gray.300"),_empty:{display:"none"},...u,children:[(n||[]).length>0&&V(z1,{py:"3",spacing:"1.5",children:n==null?void 0:n.map((p,m)=>V(kYn,{action:p,isActiveInSimulation:c},m))}),r&&V(In,{color:c?"whiteAlpha.700":d("gray.600","gray.400"),px:"3",pb:"3",children:V(In,{width:"max-content",maxWidth:"xs",fontSize:"sm",children:V(XNe,{children:r})})})]})};function Cnr({actions:n,description:r,edgeId:c,eventType:u,isActiveInSimulation:d,onLabelRect:p,selected:m,eventTypeData:x,style:E}){const k=ut.useRef(null),T=ut.useRef(null),P=ut.useRef(null),I=Qc(),O=FGn(),N=jw(),j=ut.useRef(null),L=ut.useRef(null),{getColorModeValue:$}=ei(),F=U.exports.useContext(mN);iVt(T,ut.useCallback(et=>{const tt=eNe(et,F.current);p==null||p(tt)},[]));const{sourceId:B,targetId:X,guard:ne,edgeGuardText:Z,edgeIndex:H,edgeOrdinal:ce}=jd(c,et=>{var Me;const tt=et.getGroup(),jt=et.getEdgeGroupIndex();return{sourceId:et.getNodeSource().getSerialisableId(),targetId:et.target.getSerialisableId(),guard:et.data.guard,edgeGuardText:Inr({edgeIndex:jt,guard:(Me=et.data.guard)==null?void 0:Me.type}),edgeIndex:jt,edgeOrdinal:tt.length>1?jt+1:void 0}},Go);mfe(k,{disabled:N,onDragStart:()=>{I.send({type:"selection.moveStart"})},onDrag:({delta:et})=>{I.send({type:"selection.move",delta:et})},onDragEnd:()=>{I.send({type:"selection.moveEnd"})}},F),MFt("edge",c,{labelInputRef:j,guardInputRef:L}),U.exports.useEffect(()=>Il.bind(k.current,{type:"pointerdown",listener:et=>{d?(Hce(et,c),O.send({type:"SIMULATION.EVENT.CLICK",eventType:u,guardName:ne==null?void 0:ne.type})):N||m||(Hce(et,c),I.send({type:rLt(et)?"select":"select.start",entity:{id:c,type:"edge"},mode:et.shiftKey?"multi":"single"}))}}),[m,d,N,c,u,I,O,ne==null?void 0:ne.type]);const pe=jFt(c),le=jd(c,(et,tt)=>{var jt;return(jt=LLt(et,tt))!=null?jt:[]},MD),ye=jd(c,et=>{var tt;return(tt=FLt(et))!=null?tt:[]},MD),Ge=_k({value:u,focusRefOnKeyDownCommit:k,commitOnEsc:!0,onCommit:et=>I.send({type:"edge.modify.eventType",edgeId:c,eventTypeData:{type:"named",eventType:et}})}),qe=_k({value:(ne==null?void 0:ne.type)||"",focusRefOnKeyDownCommit:k,commitOnEsc:!0,onCommit:et=>I.send({type:"edge.modify.guard",edgeId:c,guard:{type:et}})});return V(In,{tabIndex:-1,ref:k,display:"grid","data-edge-id":c,userSelect:"none",pointerEvents:"auto",style:{outline:"none",...E},children:We(In,{ref:T,rounded:"2xl",background:d?$("primary.600","primary.600"):$(N?"gray.50":"gray.25","gray.900"),borderColor:$("gray.100","whiteAlpha.200"),sx:{"&:hover":d?{background:"primary.600"}:{}},paddingY:"0.5",paddingX:"1",borderWidth:$("2px","2px"),color:d?$("white","white"):N?$("gray.500","gray.400"):$("gray.800","gray.50"),...d&&{borderColor:$("primary.600","whiteAlpha.300"),borderWidth:"1px"},shadow:d?"md":"none",children:[V(yzt,{hidden:N,errors:le,warnings:ye}),We(In,{"data-edge-active":d,"data-testname":`${u}#label`,"data-test-event-group-index":H,"data-full-testname":`${B}#${X}#${u}#label`,display:"flex",flexDir:"row",alignItems:"center",gap:"1",gridColumnGap:"1",ref:P,paddingX:"2",paddingY:"1",...n.length>0&&{borderBottom:$("1px","1px"),borderColor:d?"whiteAlpha.300":$("gray.100","gray.700")},children:[typeof ce=="number"&&V(dzn,{width:"4",height:"4",number:ce,fill:d?"var(--chakra-colors-gray-800)":$("white","var(--chakra-colors-gray-800)"),color:d?"white":N?$("gray.400","gray.400"):$("gray.800","white"),pointerEvents:"none"}),x.type==="named"?V(uOe,{pointerEvents:pe?"auto":"none",isDisabled:N,px:"1",textStyle:"semibold",fontSize:"md",onPointerDownCapture:et=>{et.stopPropagation()},ref:j,selectOnFocus:!0,...Ge}):V(oVt,{eventType:x,guard:Z}),Z&&We(In,{whiteSpace:"nowrap",fontSize:"xs",borderRadius:"full",display:"flex",flexDir:"row",alignItems:"center",gap:"1",ml:"1.5",children:[V(Bi,{as:"span",color:d?"whiteAlpha.700":$("gray.600","gray.400"),textStyle:"bold",children:Z}),V(uOe,{ref:L,textStyle:"semibold","data-test-edge-guard":ne==null?void 0:ne.type,pointerEvents:pe?"auto":"none",isDisabled:N,px:"1",selectOnFocus:!0,...qe})]})]}),V(In,{children:V(knr,{actions:n,description:r,isActiveInSimulation:d})})]})})}function Inr({edgeIndex:n,guard:r}){return n===0?r?"IF":void 0:r?"ELSE IF":"ELSE"}const yAt=n=>V(In,{as:"span",children:n.paths.map(r=>{const c=r.join(".");return V(Bi,{children:c},c)})}),Tnr=()=>{const{getColorModeValue:n}=ei(),r=U.exports.useContext(r1),c=Al(r,d=>d.context.eventLog,Go),u=Al(r,d=>{var p;return zn.toStatePaths((p=d.context.initialState)==null?void 0:p.value)},Go);return We(ERt,{w:"full",size:"sm",children:[V(r$n,{children:We(Z9e,{children:[V(g9t,{paddingInline:"0",letterSpacing:"widest",children:"Event"}),V(g9t,{paddingInline:"0",letterSpacing:"widest",children:"State"})]})}),We(i$n,{children:[We(Z9e,{children:[V(dse,{paddingInline:"0",fontSize:"xs",children:"Start"}),V(dse,{paddingInline:"0",fontSize:"xs",children:V(Vc,{bg:n("transparent","gray.800"),leftIcon:V(zce,{}),pl:"1",size:"xs",variant:"gray",onClick:()=>{r.send({type:"SIMULATION.EVENTLOG.CLICK",index:0})},children:V(yAt,{paths:u})})})]}),c.map((d,p)=>We(Z9e,{fontSize:"xs",children:[We(dse,{paddingInline:"0",children:[V(oVt,{eventType:F$t(d.event.type)}),d.guardNamesToEnsurePass[0]&&We(Bi,{fontSize:"xs",children:["(",d.guardNamesToEnsurePass[0],")"]})]}),V(dse,{paddingInline:"0",children:V(Vc,{bg:n("transparent","gray.800"),leftIcon:V(zce,{}),pl:"1",size:"xs",variant:"gray",onClick:()=>{r.send({type:"SIMULATION.EVENTLOG.CLICK",index:p+1})},children:V(yAt,{paths:zn.toStatePaths(d.newState.value)})})})]},p))]})]})};function Hc(){return Hc=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}function xN(n,r){if(n==null)return{};var c=Pnr(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}function Onr(n){if(Array.isArray(n))return n}function _nr(n,r){var c=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var u=[],d=!0,p=!1,m,x;try{for(c=c.call(n);!(d=(m=c.next()).done)&&(u.push(m.value),!(r&&u.length===r));d=!0);}catch(E){p=!0,x=E}finally{try{!d&&c.return!=null&&c.return()}finally{if(p)throw x}}return u}}function xOe(n,r){(r==null||r>n.length)&&(r=n.length);for(var c=0,u=new Array(r);c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jnr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Rnr(n,r){return r&&(typeof r=="object"||typeof r=="function")?r:jnr(n)}function ZNe(n){var r=Nnr();return function(){var u=mue(n),d;if(r){var p=mue(this).constructor;d=Reflect.construct(u,arguments,p)}else d=u.apply(this,arguments);return Rnr(this,d)}}var $nr=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],vue=function(){};function Lnr(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function Fnr(n,r,c){var u=[c];if(r&&n)for(var d in r)r.hasOwnProperty(d)&&r[d]&&u.push("".concat(Lnr(n,d)));return u.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var SAt=function(r){return Knr(r)?r.filter(Boolean):SOe(r)==="object"&&r!==null?[r]:[]},aVt=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var c=xN(r,$nr);return Pu({},c)};function qfe(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function Bnr(n){return qfe(n)?window.innerHeight:n.clientHeight}function cVt(n){return qfe(n)?window.pageYOffset:n.scrollTop}function yue(n,r){if(qfe(n)){window.scrollTo(0,r);return}n.scrollTop=r}function znr(n){var r=getComputedStyle(n),c=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var d=n;d=d.parentElement;)if(r=getComputedStyle(d),!(c&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return d;return document.documentElement}function Vnr(n,r,c,u){return c*((n=n/u-1)*n*n+1)+r}function Kse(n,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:vue,d=cVt(n),p=r-d,m=10,x=0;function E(){x+=m;var k=Vnr(x,d,p,c);yue(n,k),xc.bottom?yue(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+d,n.scrollHeight)):u.top-d1?c-1:0),d=1;d=j)return{placement:"bottom",maxHeight:r};if(le>=j&&!m)return p&&Kse(k,ye,qe),{placement:"bottom",maxHeight:r};if(!m&&le>=u||m&&ce>=u){p&&Kse(k,ye,qe);var et=m?ce-ne:le-ne;return{placement:"bottom",maxHeight:et}}if(d==="auto"||m){var tt=r,jt=m?H:pe;return jt>=u&&(tt=Math.min(jt-ne-E.controlHeight,r)),{placement:"top",maxHeight:tt}}if(d==="bottom")return p&&yue(k,ye),{placement:"bottom",maxHeight:r};break;case"top":if(H>=j)return{placement:"top",maxHeight:r};if(pe>=j&&!m)return p&&Kse(k,Ge,qe),{placement:"top",maxHeight:r};if(!m&&pe>=u||m&&H>=u){var Me=r;return(!m&&pe>=u||m&&H>=u)&&(Me=m?H-Z:pe-Z),p&&Kse(k,Ge,qe),{placement:"top",maxHeight:Me}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(d,'".'))}return T}function Znr(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var kOe=function(r){return r==="auto"?"bottom":r},Jnr=function(r){var c,u=r.placement,d=r.theme,p=d.borderRadius,m=d.spacing,x=d.colors;return c={label:"menu"},eS(c,Znr(u),"100%"),eS(c,"backgroundColor",x.neutral0),eS(c,"borderRadius",p),eS(c,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),eS(c,"marginBottom",m.menuGutter),eS(c,"marginTop",m.menuGutter),eS(c,"position","absolute"),eS(c,"width","100%"),eS(c,"zIndex",1),c},lVt=U.exports.createContext({getPortalPlacement:null}),fVt=function(n){QNe(c,n);var r=ZNe(c);function c(){var u;KNe(this,c);for(var d=arguments.length,p=new Array(d),m=0;m1?"s":""," ").concat(p.join(","),", selected.");case"select-option":return m?"option ".concat(d," is disabled. Select another option."):"option ".concat(d,", selected.");default:return""}},onFocus:function(r){var c=r.context,u=r.focused,d=r.options,p=r.label,m=p===void 0?"":p,x=r.selectValue,E=r.isDisabled,k=r.isSelected,T=function(N,j){return N&&N.length?"".concat(N.indexOf(j)+1," of ").concat(N.length):""};if(c==="value"&&x)return"value ".concat(m," focused, ").concat(T(x,u),".");if(c==="menu"){var P=E?" disabled":"",I="".concat(k?"selected":"focused").concat(P);return"option ".concat(m," ").concat(I,", ").concat(T(d,u),".")}return""},onFilter:function(r){var c=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(c?" for search term "+c:"",".")}},sir=function(r){var c=r.ariaSelection,u=r.focusedOption,d=r.focusedValue,p=r.focusableOptions,m=r.isFocused,x=r.selectValue,E=r.selectProps,k=r.id,T=E.ariaLiveMessages,P=E.getOptionLabel,I=E.inputValue,O=E.isMulti,N=E.isOptionDisabled,j=E.isSearchable,L=E.menuIsOpen,$=E.options,F=E.screenReaderStatus,B=E.tabSelectsValue,X=E["aria-label"],ne=E["aria-live"],Z=U.exports.useMemo(function(){return Pu(Pu({},oir),T||{})},[T]),H=U.exports.useMemo(function(){var et="";if(c&&Z.onChange){var tt=c.option,jt=c.options,Me=c.removedValue,ze=c.removedValues,we=c.value,De=function(rr){return Array.isArray(rr)?null:rr},be=Me||tt||De(we),Se=be?P(be):"",Jt=jt||ze||void 0,sn=Jt?Jt.map(P):[],Tn=Pu({isDisabled:be&&N(be,x),label:Se,labels:sn},c);et=Z.onChange(Tn)}return et},[c,Z,N,x,P]),ce=U.exports.useMemo(function(){var et="",tt=u||d,jt=!!(u&&x&&x.includes(u));if(tt&&Z.onFocus){var Me={focused:tt,label:P(tt),isDisabled:N(tt,x),isSelected:jt,options:$,context:tt===u?"menu":"value",selectValue:x};et=Z.onFocus(Me)}return et},[u,d,P,N,Z,$,x]),pe=U.exports.useMemo(function(){var et="";if(L&&$.length&&Z.onFilter){var tt=F({count:p.length});et=Z.onFilter({inputValue:I,resultsMessage:tt})}return et},[p,I,L,Z,$,F]),le=U.exports.useMemo(function(){var et="";if(Z.guidance){var tt=d?"value":L?"menu":"input";et=Z.guidance({"aria-label":X,context:tt,isDisabled:u&&N(u,x),isMulti:O,isSearchable:j,tabSelectsValue:B})}return et},[X,u,d,O,N,j,L,Z,x,B]),ye="".concat(ce," ").concat(pe," ").concat(le),Ge=ao(U.exports.Fragment,null,ao("span",{id:"aria-selection"},H),ao("span",{id:"aria-context"},ye)),qe=(c==null?void 0:c.action)==="initial-input-focus";return ao(U.exports.Fragment,null,ao(IAt,{id:k},qe&&Ge),ao(IAt,{"aria-live":ne,"aria-atomic":"false","aria-relevant":"additions text"},m&&!qe&&Ge))},COe=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],air=new RegExp("["+COe.map(function(n){return n.letters}).join("")+"]","g"),SVt={};for(var rTe=0;rTe-1}},fir=["innerRef"];function dir(n){var r=n.innerRef,c=xN(n,fir),u=Ynr(c,"onExited","in","enter","exit","appear");return ao("input",Hc({ref:r},u,{css:X_e({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hir=function(r){r.preventDefault(),r.stopPropagation()};function pir(n){var r=n.isEnabled,c=n.onBottomArrive,u=n.onBottomLeave,d=n.onTopArrive,p=n.onTopLeave,m=U.exports.useRef(!1),x=U.exports.useRef(!1),E=U.exports.useRef(0),k=U.exports.useRef(null),T=U.exports.useCallback(function(L,$){if(k.current!==null){var F=k.current,B=F.scrollTop,X=F.scrollHeight,ne=F.clientHeight,Z=k.current,H=$>0,ce=X-ne-B,pe=!1;ce>$&&m.current&&(u&&u(L),m.current=!1),H&&x.current&&(p&&p(L),x.current=!1),H&&$>ce?(c&&!m.current&&c(L),Z.scrollTop=X,pe=!0,m.current=!0):!H&&-$>B&&(d&&!x.current&&d(L),Z.scrollTop=0,pe=!0,x.current=!0),pe&&hir(L)}},[c,u,d,p]),P=U.exports.useCallback(function(L){T(L,L.deltaY)},[T]),I=U.exports.useCallback(function(L){E.current=L.changedTouches[0].clientY},[]),O=U.exports.useCallback(function(L){var $=E.current-L.changedTouches[0].clientY;T(L,$)},[T]),N=U.exports.useCallback(function(L){if(!!L){var $=Gnr?{passive:!1}:!1;L.addEventListener("wheel",P,$),L.addEventListener("touchstart",I,$),L.addEventListener("touchmove",O,$)}},[O,I,P]),j=U.exports.useCallback(function(L){!L||(L.removeEventListener("wheel",P,!1),L.removeEventListener("touchstart",I,!1),L.removeEventListener("touchmove",O,!1))},[O,I,P]);return U.exports.useEffect(function(){if(!!r){var L=k.current;return N(L),function(){j(L)}}},[r,N,j]),function(L){k.current=L}}var AAt=["boxSizing","height","overflow","paddingRight","position"],PAt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function OAt(n){n.preventDefault()}function _At(n){n.stopPropagation()}function MAt(){var n=this.scrollTop,r=this.scrollHeight,c=n+this.offsetHeight;n===0?this.scrollTop=1:c===r&&(this.scrollTop=n-1)}function DAt(){return"ontouchstart"in window||navigator.maxTouchPoints}var NAt=!!(typeof window<"u"&&window.document&&window.document.createElement),xU=0,lM={capture:!1,passive:!1};function gir(n){var r=n.isEnabled,c=n.accountForScrollbars,u=c===void 0?!0:c,d=U.exports.useRef({}),p=U.exports.useRef(null),m=U.exports.useCallback(function(E){if(!!NAt){var k=document.body,T=k&&k.style;if(u&&AAt.forEach(function(N){var j=T&&T[N];d.current[N]=j}),u&&xU<1){var P=parseInt(d.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,O=window.innerWidth-I+P||0;Object.keys(PAt).forEach(function(N){var j=PAt[N];T&&(T[N]=j)}),T&&(T.paddingRight="".concat(O,"px"))}k&&DAt()&&(k.addEventListener("touchmove",OAt,lM),E&&(E.addEventListener("touchstart",MAt,lM),E.addEventListener("touchmove",_At,lM))),xU+=1}},[u]),x=U.exports.useCallback(function(E){if(!!NAt){var k=document.body,T=k&&k.style;xU=Math.max(xU-1,0),u&&xU<1&&AAt.forEach(function(P){var I=d.current[P];T&&(T[P]=I)}),k&&DAt()&&(k.removeEventListener("touchmove",OAt,lM),E&&(E.removeEventListener("touchstart",MAt,lM),E.removeEventListener("touchmove",_At,lM)))}},[u]);return U.exports.useEffect(function(){if(!!r){var E=p.current;return m(E),function(){x(E)}}},[r,m,x]),function(E){p.current=E}}var bir=function(){return document.activeElement&&document.activeElement.blur()},mir={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function vir(n){var r=n.children,c=n.lockEnabled,u=n.captureEnabled,d=u===void 0?!0:u,p=n.onBottomArrive,m=n.onBottomLeave,x=n.onTopArrive,E=n.onTopLeave,k=pir({isEnabled:d,onBottomArrive:p,onBottomLeave:m,onTopArrive:x,onTopLeave:E}),T=gir({isEnabled:c}),P=function(O){k(O),T(O)};return ao(U.exports.Fragment,null,c&&ao("div",{onClick:bir,css:mir}),r(P))}var yir=function(r){return r.label},wir=function(r){return r.label},xir=function(r){return r.value},Sir=function(r){return!!r.isDisabled},Eir={clearIndicator:mrr,container:arr,control:Err,dropdownIndicator:grr,group:Irr,groupHeading:Arr,indicatorsContainer:frr,indicatorSeparator:yrr,input:_rr,loadingIndicator:Srr,loadingMessage:irr,menu:Jnr,menuList:trr,menuPortal:orr,multiValue:jrr,multiValueLabel:Rrr,multiValueRemove:$rr,noOptionsMessage:rrr,option:Vrr,placeholder:Hrr,singleValue:Wrr,valueContainer:urr},kir={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Cir=4,kVt=4,Iir=38,Tir=kVt*2,Air={baseUnit:kVt,controlHeight:Iir,menuGutter:Tir},sTe={borderRadius:Cir,colors:kir,spacing:Air},Pir={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:EAt(),captureMenuScroll:!EAt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lir(),formatGroupLabel:yir,getOptionLabel:wir,getOptionValue:xir,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Sir,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!qnr(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var c=r.count;return"".concat(c," result").concat(c!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function jAt(n,r,c,u){var d=AVt(n,r,c),p=PVt(n,r,c),m=TVt(n,r),x=wue(n,r);return{type:"option",data:r,isDisabled:d,isSelected:p,label:m,value:x,index:u}}function CVt(n,r){return n.options.map(function(c,u){if("options"in c){var d=c.options.map(function(m,x){return jAt(n,m,r,x)}).filter(function(m){return RAt(n,m)});return d.length>0?{type:"group",data:c,options:d,index:u}:void 0}var p=jAt(n,c,r,u);return RAt(n,p)?p:void 0}).filter(Xnr)}function IVt(n){return n.reduce(function(r,c){return c.type==="group"?r.push.apply(r,xVt(c.options.map(function(u){return u.data}))):r.push(c.data),r},[])}function Oir(n,r){return IVt(CVt(n,r))}function RAt(n,r){var c=n.inputValue,u=c===void 0?"":c,d=r.data,p=r.isSelected,m=r.label,x=r.value;return(!_Vt(n)||!p)&&OVt(n,{label:m,value:x,data:d},u)}function _ir(n,r){var c=n.focusedValue,u=n.selectValue,d=u.indexOf(c);if(d>-1){var p=r.indexOf(c);if(p>-1)return c;if(d-1?c:r[0]}var TVt=function(r,c){return r.getOptionLabel(c)},wue=function(r,c){return r.getOptionValue(c)};function AVt(n,r,c){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,c):!1}function PVt(n,r,c){if(c.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,c);var u=wue(n,r);return c.some(function(d){return wue(n,d)===u})}function OVt(n,r,c){return n.filterOption?n.filterOption(r,c):!0}var _Vt=function(r){var c=r.hideSelectedOptions,u=r.isMulti;return c===void 0?u:c},Dir=1,MVt=function(n){QNe(c,n);var r=ZNe(c);function c(u){var d;return KNe(this,c),d=r.call(this,u),d.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},d.blockOptionHover=!1,d.isComposing=!1,d.commonProps=void 0,d.initialTouchX=0,d.initialTouchY=0,d.instancePrefix="",d.openAfterFocus=!1,d.scrollToFocusedOptionOnUpdate=!1,d.userIsDragging=void 0,d.controlRef=null,d.getControlRef=function(p){d.controlRef=p},d.focusedOptionRef=null,d.getFocusedOptionRef=function(p){d.focusedOptionRef=p},d.menuListRef=null,d.getMenuListRef=function(p){d.menuListRef=p},d.inputRef=null,d.getInputRef=function(p){d.inputRef=p},d.focus=d.focusInput,d.blur=d.blurInput,d.onChange=function(p,m){var x=d.props,E=x.onChange,k=x.name;m.name=k,d.ariaOnChange(p,m),E(p,m)},d.setValue=function(p,m,x){var E=d.props,k=E.closeMenuOnSelect,T=E.isMulti,P=E.inputValue;d.onInputChange("",{action:"set-value",prevInputValue:P}),k&&(d.setState({inputIsHiddenAfterUpdate:!T}),d.onMenuClose()),d.setState({clearFocusValueOnUpdate:!0}),d.onChange(p,{action:m,option:x})},d.selectOption=function(p){var m=d.props,x=m.blurInputOnSelect,E=m.isMulti,k=m.name,T=d.state.selectValue,P=E&&d.isOptionSelected(p,T),I=d.isOptionDisabled(p,T);if(P){var O=d.getOptionValue(p);d.setValue(T.filter(function(N){return d.getOptionValue(N)!==O}),"deselect-option",p)}else if(!I)E?d.setValue([].concat(xVt(T),[p]),"select-option",p):d.setValue(p,"select-option");else{d.ariaOnChange(p,{action:"select-option",option:p,name:k});return}x&&d.blurInput()},d.removeValue=function(p){var m=d.props.isMulti,x=d.state.selectValue,E=d.getOptionValue(p),k=x.filter(function(P){return d.getOptionValue(P)!==E}),T=Qse(m,k,k[0]||null);d.onChange(T,{action:"remove-value",removedValue:p}),d.focusInput()},d.clearValue=function(){var p=d.state.selectValue;d.onChange(Qse(d.props.isMulti,[],null),{action:"clear",removedValues:p})},d.popValue=function(){var p=d.props.isMulti,m=d.state.selectValue,x=m[m.length-1],E=m.slice(0,m.length-1),k=Qse(p,E,E[0]||null);d.onChange(k,{action:"pop-value",removedValue:x})},d.getValue=function(){return d.state.selectValue},d.cx=function(){for(var p=arguments.length,m=new Array(p),x=0;xT||k>T}},d.onTouchEnd=function(p){d.userIsDragging||(d.controlRef&&!d.controlRef.contains(p.target)&&d.menuListRef&&!d.menuListRef.contains(p.target)&&d.blurInput(),d.initialTouchX=0,d.initialTouchY=0)},d.onControlTouchEnd=function(p){d.userIsDragging||d.onControlMouseDown(p)},d.onClearIndicatorTouchEnd=function(p){d.userIsDragging||d.onClearIndicatorMouseDown(p)},d.onDropdownIndicatorTouchEnd=function(p){d.userIsDragging||d.onDropdownIndicatorMouseDown(p)},d.handleInputChange=function(p){var m=d.props.inputValue,x=p.currentTarget.value;d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange(x,{action:"input-change",prevInputValue:m}),d.props.menuIsOpen||d.onMenuOpen()},d.onInputFocus=function(p){d.props.onFocus&&d.props.onFocus(p),d.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(d.openAfterFocus||d.props.openMenuOnFocus)&&d.openMenu("first"),d.openAfterFocus=!1},d.onInputBlur=function(p){var m=d.props.inputValue;if(d.menuListRef&&d.menuListRef.contains(document.activeElement)){d.inputRef.focus();return}d.props.onBlur&&d.props.onBlur(p),d.onInputChange("",{action:"input-blur",prevInputValue:m}),d.onMenuClose(),d.setState({focusedValue:null,isFocused:!1})},d.onOptionHover=function(p){d.blockOptionHover||d.state.focusedOption===p||d.setState({focusedOption:p})},d.shouldHideSelectedOptions=function(){return _Vt(d.props)},d.onKeyDown=function(p){var m=d.props,x=m.isMulti,E=m.backspaceRemovesValue,k=m.escapeClearsValue,T=m.inputValue,P=m.isClearable,I=m.isDisabled,O=m.menuIsOpen,N=m.onKeyDown,j=m.tabSelectsValue,L=m.openMenuOnFocus,$=d.state,F=$.focusedOption,B=$.focusedValue,X=$.selectValue;if(!I&&!(typeof N=="function"&&(N(p),p.defaultPrevented))){switch(d.blockOptionHover=!0,p.key){case"ArrowLeft":if(!x||T)return;d.focusValue("previous");break;case"ArrowRight":if(!x||T)return;d.focusValue("next");break;case"Delete":case"Backspace":if(T)return;if(B)d.removeValue(B);else{if(!E)return;x?d.popValue():P&&d.clearValue()}break;case"Tab":if(d.isComposing||p.shiftKey||!O||!j||!F||L&&d.isOptionSelected(F,X))return;d.selectOption(F);break;case"Enter":if(p.keyCode===229)break;if(O){if(!F||d.isComposing)return;d.selectOption(F);break}return;case"Escape":O?(d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange("",{action:"menu-close",prevInputValue:T}),d.onMenuClose()):P&&k&&d.clearValue();break;case" ":if(T)return;if(!O){d.openMenu("first");break}if(!F)return;d.selectOption(F);break;case"ArrowUp":O?d.focusOption("up"):d.openMenu("last");break;case"ArrowDown":O?d.focusOption("down"):d.openMenu("first");break;case"PageUp":if(!O)return;d.focusOption("pageup");break;case"PageDown":if(!O)return;d.focusOption("pagedown");break;case"Home":if(!O)return;d.focusOption("first");break;case"End":if(!O)return;d.focusOption("last");break;default:return}p.preventDefault()}},d.instancePrefix="react-select-"+(d.props.instanceId||++Dir),d.state.selectValue=SAt(u.value),d}return YNe(c,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(d){var p=this.props,m=p.isDisabled,x=p.menuIsOpen,E=this.state.isFocused;(E&&!m&&d.isDisabled||E&&x&&!d.menuIsOpen)&&this.focusInput(),E&&m&&!d.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Unr(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(d,p){this.props.onInputChange(d,p)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(d){var p=this,m=this.state,x=m.selectValue,E=m.isFocused,k=this.buildFocusableOptions(),T=d==="first"?0:k.length-1;if(!this.props.isMulti){var P=k.indexOf(x[0]);P>-1&&(T=P)}this.scrollToFocusedOptionOnUpdate=!(E&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:k[T]},function(){return p.onMenuOpen()})}},{key:"focusValue",value:function(d){var p=this.state,m=p.selectValue,x=p.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var E=m.indexOf(x);x||(E=-1);var k=m.length-1,T=-1;if(!!m.length){switch(d){case"previous":E===0?T=0:E===-1?T=k:T=E-1;break;case"next":E>-1&&E0&&arguments[0]!==void 0?arguments[0]:"first",p=this.props.pageSize,m=this.state.focusedOption,x=this.getFocusableOptions();if(!!x.length){var E=0,k=x.indexOf(m);m||(k=-1),d==="up"?E=k>0?k-1:x.length-1:d==="down"?E=(k+1)%x.length:d==="pageup"?(E=k-p,E<0&&(E=0)):d==="pagedown"?(E=k+p,E>x.length-1&&(E=x.length-1)):d==="last"&&(E=x.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:x[E],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sTe):Pu(Pu({},sTe),this.props.theme):sTe}},{key:"getCommonProps",value:function(){var d=this.clearValue,p=this.cx,m=this.getStyles,x=this.getValue,E=this.selectOption,k=this.setValue,T=this.props,P=T.isMulti,I=T.isRtl,O=T.options,N=this.hasValue();return{clearValue:d,cx:p,getStyles:m,getValue:x,hasValue:N,isMulti:P,isRtl:I,options:O,selectOption:E,selectProps:T,setValue:k,theme:this.getTheme()}}},{key:"hasValue",value:function(){var d=this.state.selectValue;return d.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var d=this.props,p=d.isClearable,m=d.isMulti;return p===void 0?m:p}},{key:"isOptionDisabled",value:function(d,p){return AVt(this.props,d,p)}},{key:"isOptionSelected",value:function(d,p){return PVt(this.props,d,p)}},{key:"filterOption",value:function(d,p){return OVt(this.props,d,p)}},{key:"formatOptionLabel",value:function(d,p){if(typeof this.props.formatOptionLabel=="function"){var m=this.props.inputValue,x=this.state.selectValue;return this.props.formatOptionLabel(d,{context:p,inputValue:m,selectValue:x})}else return this.getOptionLabel(d)}},{key:"formatGroupLabel",value:function(d){return this.props.formatGroupLabel(d)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var d=this.props,p=d.isDisabled,m=d.isSearchable,x=d.inputId,E=d.inputValue,k=d.tabIndex,T=d.form,P=d.menuIsOpen,I=this.getComponents(),O=I.Input,N=this.state,j=N.inputIsHidden,L=N.ariaSelection,$=this.commonProps,F=x||this.getElementId("input"),B=Pu(Pu(Pu({"aria-autocomplete":"list","aria-expanded":P,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},P&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!m&&{"aria-readonly":!0}),this.hasValue()?(L==null?void 0:L.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return m?V(O,{...$,autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:F,innerRef:this.getInputRef,isDisabled:p,isHidden:j,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:k,form:T,type:"text",value:E,...B}):V(dir,{id:F,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:vue,onFocus:this.onInputFocus,disabled:p,tabIndex:k,inputMode:"none",form:T,value:"",...B})}},{key:"renderPlaceholderOrValue",value:function(){var d=this,p=this.getComponents(),m=p.MultiValue,x=p.MultiValueContainer,E=p.MultiValueLabel,k=p.MultiValueRemove,T=p.SingleValue,P=p.Placeholder,I=this.commonProps,O=this.props,N=O.controlShouldRenderValue,j=O.isDisabled,L=O.isMulti,$=O.inputValue,F=O.placeholder,B=this.state,X=B.selectValue,ne=B.focusedValue,Z=B.isFocused;if(!this.hasValue()||!N)return $?null:U.exports.createElement(P,{...I,key:"placeholder",isDisabled:j,isFocused:Z,innerProps:{id:this.getElementId("placeholder")}},F);if(L)return X.map(function(ce,pe){var le=ce===ne,ye="".concat(d.getOptionLabel(ce),"-").concat(d.getOptionValue(ce));return U.exports.createElement(m,{...I,components:{Container:x,Label:E,Remove:k},isFocused:le,isDisabled:j,key:ye,index:pe,removeProps:{onClick:function(){return d.removeValue(ce)},onTouchEnd:function(){return d.removeValue(ce)},onMouseDown:function(qe){qe.preventDefault()}},data:ce},d.formatOptionLabel(ce,"value"))});if($)return null;var H=X[0];return V(T,{...I,data:H,isDisabled:j,children:this.formatOptionLabel(H,"value")})}},{key:"renderClearIndicator",value:function(){var d=this.getComponents(),p=d.ClearIndicator,m=this.commonProps,x=this.props,E=x.isDisabled,k=x.isLoading,T=this.state.isFocused;if(!this.isClearable()||!p||E||!this.hasValue()||k)return null;var P={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return V(p,{...m,innerProps:P,isFocused:T})}},{key:"renderLoadingIndicator",value:function(){var d=this.getComponents(),p=d.LoadingIndicator,m=this.commonProps,x=this.props,E=x.isDisabled,k=x.isLoading,T=this.state.isFocused;if(!p||!k)return null;var P={"aria-hidden":"true"};return V(p,{...m,innerProps:P,isDisabled:E,isFocused:T})}},{key:"renderIndicatorSeparator",value:function(){var d=this.getComponents(),p=d.DropdownIndicator,m=d.IndicatorSeparator;if(!p||!m)return null;var x=this.commonProps,E=this.props.isDisabled,k=this.state.isFocused;return V(m,{...x,isDisabled:E,isFocused:k})}},{key:"renderDropdownIndicator",value:function(){var d=this.getComponents(),p=d.DropdownIndicator;if(!p)return null;var m=this.commonProps,x=this.props.isDisabled,E=this.state.isFocused,k={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return V(p,{...m,innerProps:k,isDisabled:x,isFocused:E})}},{key:"renderMenu",value:function(){var d=this,p=this.getComponents(),m=p.Group,x=p.GroupHeading,E=p.Menu,k=p.MenuList,T=p.MenuPortal,P=p.LoadingMessage,I=p.NoOptionsMessage,O=p.Option,N=this.commonProps,j=this.state.focusedOption,L=this.props,$=L.captureMenuScroll,F=L.inputValue,B=L.isLoading,X=L.loadingMessage,ne=L.minMenuHeight,Z=L.maxMenuHeight,H=L.menuIsOpen,ce=L.menuPlacement,pe=L.menuPosition,le=L.menuPortalTarget,ye=L.menuShouldBlockScroll,Ge=L.menuShouldScrollIntoView,qe=L.noOptionsMessage,et=L.onMenuScrollToTop,tt=L.onMenuScrollToBottom;if(!H)return null;var jt=function(Jt,sn){var Tn=Jt.type,qn=Jt.data,rr=Jt.isDisabled,Zn=Jt.isSelected,Gr=Jt.label,Je=Jt.value,ct=j===qn,rn=rr?void 0:function(){return d.onOptionHover(qn)},Ne=rr?void 0:function(){return d.selectOption(qn)},ae="".concat(d.getElementId("option"),"-").concat(sn),me={id:ae,onClick:Ne,onMouseMove:rn,onMouseOver:rn,tabIndex:-1};return U.exports.createElement(O,{...N,innerProps:me,data:qn,isDisabled:rr,isSelected:Zn,key:ae,label:Gr,type:Tn,value:Je,isFocused:ct,innerRef:ct?d.getFocusedOptionRef:void 0},d.formatOptionLabel(Jt.data,"menu"))},Me;if(this.hasOptions())Me=this.getCategorizedOptions().map(function(Se){if(Se.type==="group"){var Jt=Se.data,sn=Se.options,Tn=Se.index,qn="".concat(d.getElementId("group"),"-").concat(Tn),rr="".concat(qn,"-heading");return U.exports.createElement(m,{...N,key:qn,data:Jt,options:sn,Heading:x,headingProps:{id:rr,data:Se.data},label:d.formatGroupLabel(Se.data)},Se.options.map(function(Zn){return jt(Zn,"".concat(Tn,"-").concat(Zn.index))}))}else if(Se.type==="option")return jt(Se,"".concat(Se.index))});else if(B){var ze=X({inputValue:F});if(ze===null)return null;Me=V(P,{...N,children:ze})}else{var we=qe({inputValue:F});if(we===null)return null;Me=V(I,{...N,children:we})}var De={minMenuHeight:ne,maxMenuHeight:Z,menuPlacement:ce,menuPosition:pe,menuShouldScrollIntoView:Ge},be=V(fVt,{...N,...De,children:function(Se){var Jt=Se.ref,sn=Se.placerProps,Tn=sn.placement,qn=sn.maxHeight;return V(E,{...N,...De,innerRef:Jt,innerProps:{onMouseDown:d.onMenuMouseDown,onMouseMove:d.onMenuMouseMove,id:d.getElementId("listbox")},isLoading:B,placement:Tn,children:V(vir,{captureEnabled:$,onTopArrive:et,onBottomArrive:tt,lockEnabled:ye,children:function(rr){return V(k,{...N,innerRef:function(Gr){d.getMenuListRef(Gr),rr(Gr)},isLoading:B,maxHeight:qn,focusedOption:j,children:Me})}})})}});return le||pe==="fixed"?V(T,{...N,appendTo:le,controlElement:this.controlRef,menuPlacement:ce,menuPosition:pe,children:be}):be}},{key:"renderFormField",value:function(){var d=this,p=this.props,m=p.delimiter,x=p.isDisabled,E=p.isMulti,k=p.name,T=this.state.selectValue;if(!(!k||x))if(E)if(m){var P=T.map(function(N){return d.getOptionValue(N)}).join(m);return V("input",{name:k,type:"hidden",value:P})}else{var I=T.length>0?T.map(function(N,j){return V("input",{name:k,type:"hidden",value:d.getOptionValue(N)},"i-".concat(j))}):V("input",{name:k,type:"hidden"});return V("div",{children:I})}else{var O=T[0]?this.getOptionValue(T[0]):"";return V("input",{name:k,type:"hidden",value:O})}}},{key:"renderLiveRegion",value:function(){var d=this.commonProps,p=this.state,m=p.ariaSelection,x=p.focusedOption,E=p.focusedValue,k=p.isFocused,T=p.selectValue,P=this.getFocusableOptions();return V(sir,{...d,id:this.getElementId("live-region"),ariaSelection:m,focusedOption:x,focusedValue:E,isFocused:k,selectValue:T,focusableOptions:P})}},{key:"render",value:function(){var d=this.getComponents(),p=d.Control,m=d.IndicatorsContainer,x=d.SelectContainer,E=d.ValueContainer,k=this.props,T=k.className,P=k.id,I=k.isDisabled,O=k.menuIsOpen,N=this.state.isFocused,j=this.commonProps=this.getCommonProps();return We(x,{...j,className:T,innerProps:{id:P,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:N,children:[this.renderLiveRegion(),We(p,{...j,innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:N,menuIsOpen:O,children:[We(E,{...j,isDisabled:I,children:[this.renderPlaceholderOrValue(),this.renderInput()]}),We(m,{...j,isDisabled:I,children:[this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator()]})]}),this.renderMenu(),this.renderFormField()]})}}],[{key:"getDerivedStateFromProps",value:function(d,p){var m=p.prevProps,x=p.clearFocusValueOnUpdate,E=p.inputIsHiddenAfterUpdate,k=p.ariaSelection,T=p.isFocused,P=p.prevWasFocused,I=d.options,O=d.value,N=d.menuIsOpen,j=d.inputValue,L=d.isMulti,$=SAt(O),F={};if(m&&(O!==m.value||I!==m.options||N!==m.menuIsOpen||j!==m.inputValue)){var B=N?Oir(d,$):[],X=x?_ir(p,$):null,ne=Mir(p,B);F={selectValue:$,focusedOption:ne,focusedValue:X,clearFocusValueOnUpdate:!1}}var Z=E!=null&&d!==m?{inputIsHidden:E,inputIsHiddenAfterUpdate:void 0}:{},H=k,ce=T&&P;return T&&!ce&&(H={value:Qse(L,$,$[0]||null),options:$,action:"initial-input-focus"},ce=!P),(k==null?void 0:k.action)==="initial-input-focus"&&(H=null),Pu(Pu(Pu({},F),Z),{},{prevProps:d,ariaSelection:H,prevWasFocused:ce})}}]),c}(U.exports.Component);MVt.defaultProps=Pir;var Nir=U.exports.forwardRef(function(n,r){var c=Qrr(n);return V(MVt,{ref:r,...c})});const jir=Nir;var Rir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.innerProps,m=r.isDisabled,x=r.isRtl,E=r.hasValue,k=r.selectProps.chakraStyles,T={position:"relative",direction:x?"rtl":void 0,pointerEvents:"auto"},P=k!=null&&k.container?k.container(T,r):T;return V(In,{...p,className:d({"--is-disabled":m,"--is-rtl":x,"--has-value":E},u),sx:P,children:c})},$ir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.isMulti,m=r.hasValue,x=r.innerProps,E=r.selectProps,k=E.size,T=E.chakraStyles,P={sm:"0.75rem",md:"1rem",lg:"1rem"},I={display:"flex",alignItems:"center",flex:1,padding:"0.125rem "+P[k||"md"],flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},O=T!=null&&T.valueContainer?T.valueContainer(I,r):I;return V(In,{...x,className:d({"value-container":!0,"value-container--is-multi":p,"value-container--has-value":m},u),sx:O,children:c})},Lir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.innerProps,m=r.selectProps.chakraStyles,x={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},E=m!=null&&m.indicatorsContainer?m.indicatorsContainer(x,r):x;return V(In,{...p,className:d({indicators:!0},u),sx:E,children:c})};function zD(){return zD=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Kir=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var c=Xir(r,Gir);return IOe({},c)},Yir=["innerRef","isDisabled","isHidden","inputClassName"];function _H(){return _H=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Zir=function(r){var c=r.className,u=r.cx,d=r.value,p=r.selectProps,m=p.chakraStyles,x=p.isReadOnly,E=p.isRequired,k=Kir(r),T=k.innerRef,P=k.isDisabled,I=k.isHidden,O=k.inputClassName,N=Qir(k,Yir),j={gridArea:"1 / 2",font:"inherit",minW:"2px",border:0,margin:0,outline:0},L={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",_after:_H({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},j)},$=m!=null&&m.inputContainer?m.inputContainer(L,r):L,F=_H({label:"input",color:"inherit",background:0,opacity:I?0:1,width:"100%"},j),B=m!=null&&m.input?m.input(F,r):F;return ut.createElement(In,{className:u({"input-container":!0},c),"data-value":d||"",sx:$},ut.createElement(Qt.input,_H({className:u({input:!0},O),ref:T,sx:B,disabled:P,readOnly:x,"aria-readonly":x?!0:void 0,"aria-required":E?!0:void 0},N)))};const Jir=Zir;function VD(){return VD=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Ior=function(r){var c,u=r.components,d=u===void 0?{}:u;r.theme;var p=r.size,m=p===void 0?"md":p,x=r.colorScheme,E=x===void 0?"gray":x,k=r.isDisabled,T=r.isInvalid,P=r.isReadOnly,I=r.isRequired,O=r.inputId,N=r.tagVariant,j=r.hasStickyGroupHeaders,L=j===void 0?!1:j,$=r.selectedOptionStyle,F=$===void 0?"color":$,B=r.selectedOptionColor,X=B===void 0?"blue":B,ne=r.focusBorderColor,Z=r.errorBorderColor,H=r.chakraStyles,ce=H===void 0?{}:H,pe=r.onFocus,le=r.onBlur,ye=Cor(r,kor),Ge=Lle({id:O,isDisabled:k,isInvalid:T,isRequired:I,isReadOnly:P,onFocus:pe,onBlur:le}),qe=m,et=["sm","md","lg"];et.includes(m)||(qe="md");var tt=N,jt=["subtle","solid","outline"];N!==void 0&&(jt.includes(N)||(tt="subtle"));var Me=F,ze=["color","check"];ze.includes(F)||(Me="color");var we=X;typeof X!="string"&&(we="blue");var De=xue({components:xue({},Eor,d),colorScheme:E,size:qe,tagVariant:tt,selectedOptionStyle:Me,selectedOptionColor:we,hasStickyGroupHeaders:L,chakraStyles:ce,focusBorderColor:ne,errorBorderColor:Z,onFocus:Ge.onFocus,onBlur:Ge.onBlur,isDisabled:Ge.disabled,isInvalid:!!Ge["aria-invalid"],inputId:Ge.id},ye,{"aria-invalid":((c=ye["aria-invalid"])!=null?c:Ge["aria-invalid"])?!0:void 0});return De};const Tor=Ior;var Aor=U.exports.forwardRef(function(n,r){var c=Tor(n);return V(jir,{ref:r,...c})});const Por=Aor,Oor=sg({context:{entries:[]},on:{"entry.add":{actions:[eo({entries:(n,r)=>{const c={...r.entry,id:`entry-${Math.random()}`};return[...n.entries,c]}}),wH({type:"updated"}),"focusLastRef"]},"entry.delete":{actions:[eo({entries:(n,r)=>n.entries.filter(c=>c.id!==r.entryId)}),wH({type:"updated"})]},"entry.update":{actions:[eo({entries:(n,r)=>n.entries.map(u=>u.id===r.entryId?{...u,...r.entry}:u)}),wH({type:"updated"})]},updated:{actions:"onChange"}}});function $At(n){try{return JSON.parse(n)}catch{return n}}const _or=n=>{const r=n!==void 0?JSON.stringify(n):"";return sg({context:{value:r,parsedValue:$At(r)},on:{update:{actions:eo({value:(c,u)=>u.value,parsedValue:(c,u)=>$At(u.value)})}}})};function Mor({value:n,onBlur:r,inputProps:c}){const[u,d]=Nw(()=>_or(n)),{value:p,parsedValue:m}=u.context;return We(In,{display:"grid",css:{"> *":{gridArea:"1 / 1"}},_hover:{"&:not(:focus-within) > [data-json-type]":{opacity:1}},children:[V(Ji.Input,{...c,size:"sm",value:p,onChange:x=>d({type:"update",value:x.target.value}),onBlur:()=>{r==null||r(m),typeof m=="string"&&d({type:"update",value:JSON.stringify(m)})},style:{width:"100%"},fontFamily:"mono"}),V(Bi,{"data-json-type":!0,as:"span",fontSize:"xs",alignSelf:"center",justifySelf:"self-end",marginRight:"2",color:"white.100",background:"gray.600",paddingInline:"1",opacity:0,transition:"opacity 0.2s",zIndex:1,children:Dor(m)})]})}function Dor(n){return typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":Array.isArray(n)?"array":typeof n=="object"?"object":"string"}const Nor=(n,r)=>sg({context:{key:n,value:r},on:{update:{actions:[eo((c,u)=>({...c,...u.entry})),wH({type:"updated"})]},updated:{cond:c=>c.key!==void 0&&c.value!==void 0,actions:"onChange"}}});function jor({property:n,value:r,propertyLabel:c,valueLabel:u,onChange:d,onDelete:p,onKeyInputRef:m}){const{getColorModeValue:x}=ei(),[,E]=Nw(()=>Nor(n,r),{actions:{onChange:T=>{d([T.key,T.value])}}}),k=T=>{E({type:"update",entry:T})};return We(In,{as:"form",display:"grid",gridTemplateColumns:"1fr 2fr 1rem",gridAutoRows:"auto",gridColumnGap:"2",marginBottom:"2",children:[V(In,{children:V(Ji.Input,{ref:m,size:"sm",defaultValue:n,style:{width:"100%"},name:"key",onBlur:T=>{k({key:T.target.value})},placeholder:c})}),V(Mor,{value:r,onBlur:T=>k({value:T}),inputProps:{display:"flex",gap:"2",alignItems:"center",name:"value",placeholder:u}}),p&&V(Ev,{"aria-label":"Delete",onClick:p,bg:x("transparent","transparent"),size:"xs",alignSelf:"center",children:V(yW,{})})]})}function NVt({entries:n,buttonLabel:r="Add entry",keyLabel:c="Key",valueLabel:u="Value",onChange:d}){const p=U.exports.useRef(null),m=U.exports.useRef({}),[x,E]=Nw(Oor,{context:{entries:n.map(([k,T])=>({id:`entry-${Math.random()}`,key:k,value:T}))},actions:{onChange:k=>{const T=k.entries.map(({key:P,value:I})=>[P,I]);d(T)},focusLastRef:k=>{const T=k.entries[k.entries.length-1].id;p.current=()=>m.current[T].focus()}}});return Ble(()=>{if(p.current){const k=p.current;p.current=null,k()}}),We(In,{children:[We(In,{display:"grid",gridTemplateColumns:"1fr 2fr 1rem",fontSize:"xs",color:"gray.400",fontWeight:"md",marginBottom:"1",hidden:x.context.entries.length===0,children:[V("span",{children:c}),V("span",{children:u})]}),x.context.entries.map(({id:k,key:T,value:P})=>V(jor,{onKeyInputRef:I=>{I?m.current[k]=I:delete m.current[k]},property:T,propertyLabel:"Key",value:P,onChange:([I,O])=>{E({type:"entry.update",entryId:k,entry:{key:I,value:O}})},onDelete:()=>{E({type:"entry.delete",entryId:k})}},k)),V(Vc,{variant:"gray",size:"sm",onClick:()=>{E({type:"entry.add",entry:{key:"",value:""}})},children:r})]})}var E7=n=>n.type==="checkbox",Sue=n=>n instanceof Date,xb=n=>n==null;const jVt=n=>typeof n=="object";var og=n=>!xb(n)&&!Array.isArray(n)&&jVt(n)&&!Sue(n),Ror=n=>og(n)&&n.target?E7(n.target)?n.target.checked:n.target.value:n,RVt=n=>n.substring(0,n.search(/.\d/))||n,$Vt=(n,r)=>[...n].some(c=>RVt(r)===c),Fq=n=>n.filter(Boolean),$p=n=>n===void 0,fi=(n,r,c)=>{if(og(n)&&r){const u=Fq(r.split(/[,[\].]+?/)).reduce((d,p)=>xb(d)?d:d[p],n);return $p(u)||u===n?$p(n[r])?c:n[r]:u}};const TOe={BLUR:"blur",CHANGE:"change"},Sw={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tS={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};var Wfe=(n,r)=>{const c=Object.assign({},n);return delete c[r],c};const LVt=U.exports.createContext(null);LVt.displayName="RHFContext";const FVt=()=>U.exports.useContext(LVt);var BVt=(n,r,c,u=!0)=>{function d(m){return()=>{if(m in n)return r[m]!==Sw.all&&(r[m]=!u||Sw.all),c&&(c[m]=!0),n[m]}}const p={};for(const m in n)Object.defineProperty(p,m,{get:d(m)});return p},uv=n=>og(n)&&!Object.keys(n).length,zVt=(n,r,c)=>{const u=Wfe(n,"name");return uv(u)||Object.keys(u).length>=Object.keys(r).length||Object.keys(u).find(d=>r[d]===(!c||Sw.all))},HU=n=>Array.isArray(n)?n:[n];function eje({disabled:n,subject:r,callback:c}){const u=U.exports.useRef(r),d=U.exports.useRef();n?u.current&&(d.current&&d.current.unsubscribe(),u.current=d.current=void 0):(u.current||(u.current=r),!d.current&&u.current&&(d.current=u.current.subscribe({next:c}))),U.exports.useEffect(()=>()=>{d.current&&d.current.unsubscribe()},[])}function $or(n){const r=FVt(),{control:c=r.control,disabled:u,name:d}=n||{},[p,m]=U.exports.useState(c._formState),x=U.exports.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),E=U.exports.useRef(d);return E.current=d,eje({disabled:u,callback:k=>(!E.current||!k.name||HU(E.current).includes(k.name))&&zVt(k,x.current)&&m(Object.assign(Object.assign({},c._formState),k)),subject:c._subjects.state}),BVt(p,c._proxyFormState,x.current,!1)}function Lor(n){const r=FVt(),{name:c,control:u=r.control,shouldUnregister:d}=n,[p,m]=U.exports.useState(fi(u._formValues,c,fi(u._defaultValues,c,n.defaultValue))),x=$or({control:u||r.control,name:c}),E=U.exports.useRef(c);E.current=c,eje({subject:u._subjects.control,callback:P=>(!P.name||E.current===P.name)&&m(fi(P.values,c))});const k=u.register(c,Object.assign(Object.assign({},n.rules),{value:p})),T=U.exports.useCallback((P,I)=>{const O=fi(u._fields,P);O&&(O._f.mount=I)},[u]);return U.exports.useEffect(()=>(T(c,!0),()=>{const P=u._shouldUnregister||d;($Vt(u._names.array,c)?P&&!u._stateFlags.action:P)?u.unregister(c):T(c,!1)}),[c,u,d,T]),{field:{onChange:P=>{const I=Ror(P);m(I),k.onChange({target:{value:I,name:c},type:TOe.CHANGE})},onBlur:()=>{k.onBlur({target:{value:p,name:c},type:TOe.BLUR})},name:c,value:p,ref:P=>{const I=fi(u._fields,c);P&&I&&P.focus&&(I._f.ref={focus:()=>P.focus(),setCustomValidity:O=>P.setCustomValidity(O),reportValidity:()=>P.reportValidity()})}},formState:x,fieldState:{invalid:!!fi(x.errors,c),isDirty:!!fi(x.dirtyFields,c),isTouched:!!fi(x.touchedFields,c),error:fi(x.errors,c)}}}const H7=n=>n.render(Lor(n));var For=(n,r,c,u,d)=>r?Object.assign(Object.assign({},c[n]),{types:Object.assign(Object.assign({},c[n]&&c[n].types?c[n].types:{}),{[u]:d||!0})}):{},VVt=n=>/^\w*$/.test(n),UVt=n=>Fq(n.replace(/["|']|\]/g,"").split(/\.|\[/));function Qu(n,r,c){let u=-1;const d=VVt(r)?[r]:UVt(r),p=d.length,m=p-1;for(;++u{for(const u of c||Object.keys(n)){const d=fi(n,u);if(d){const p=d._f,m=Wfe(d,"_f");if(p&&r(p.name)){if(p.ref.focus&&$p(p.ref.focus()))break;if(p.refs){p.refs[0].focus();break}}else og(m)&&AOe(m,r)}}};var aTe=(n,r)=>n.map((c={})=>Wfe(c,r));function POe(n){let r;const c=Array.isArray(n);if(n instanceof Date)r=new Date(n);else if(n instanceof Set)r=new Set(n);else if(c||og(n)){r=c?[]:{};for(const u in n)r[u]=POe(n[u])}else return n;return r}var Bq=n=>xb(n)||!jVt(n);function LM(n,r){if(Bq(n)||Bq(r)||Sue(n)||Sue(r))return n===r;const c=Object.keys(n),u=Object.keys(r);if(c.length!==u.length)return!1;for(const d of c){const p=n[d];if(!u.includes(d))return!1;if(d!=="ref"){const m=r[d];if((og(p)||Array.isArray(p))&&(og(m)||Array.isArray(m))?!LM(p,m):p!==m)return!1}}return!0}var LAt=n=>({isOnSubmit:!n||n===Sw.onSubmit,isOnBlur:n===Sw.onBlur,isOnChange:n===Sw.onChange,isOnAll:n===Sw.all,isOnTouch:n===Sw.onTouched}),UD=n=>typeof n=="boolean",tje=n=>n.type==="file",HVt=n=>typeof n=="function",$ae=n=>n instanceof HTMLElement,qVt=n=>n.type==="select-multiple",nje=n=>n.type==="radio",Bor=n=>nje(n)||E7(n),pS=n=>typeof n=="string",FAt=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u",BAt=n=>!$ae(n)||!document.contains(n);class zor{constructor(){this.tearDowns=[]}add(r){this.tearDowns.push(r)}unsubscribe(){for(const r of this.tearDowns)r();this.tearDowns=[]}}class Vor{constructor(r,c){this.observer=r,this.closed=!1,c.add(()=>this.closed=!0)}next(r){this.closed||this.observer.next(r)}}class Zse{constructor(){this.observers=[]}next(r){for(const c of this.observers)c.next(r)}subscribe(r){const c=new zor,u=new Vor(r,c);return this.observers.push(u),c}unsubscribe(){this.observers=[]}}function Uor(n,r){const c=r.slice(0,-1).length;let u=0;for(;u0&&(p=n);++xog(I)&&!uv(I)||UD(I)).length)&&(p?delete p[P]:delete n[P]),p=E}}return n}const zAt={value:!1,isValid:!1},VAt={value:!0,isValid:!0};var WVt=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(c=>c&&c.checked&&!c.disabled).map(c=>c.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!$p(n[0].attributes.value)?$p(n[0].value)||n[0].value===""?VAt:{value:n[0].value,isValid:!0}:VAt:zAt}return zAt},GVt=(n,{valueAsNumber:r,valueAsDate:c,setValueAs:u})=>$p(n)?n:r?n===""?NaN:+n:c?new Date(n):u?u(n):n,Hor=n=>[...n].filter(({selected:r})=>r).map(({value:r})=>r);const UAt={isValid:!1,value:null};var XVt=n=>Array.isArray(n)?n.reduce((r,c)=>c&&c.checked&&!c.disabled?{isValid:!0,value:c.value}:r,UAt):UAt;function cTe(n){const r=n.ref;if(!(n.refs?n.refs.every(c=>c.disabled):r.disabled))return tje(r)?r.files:nje(r)?XVt(n.refs).value:qVt(r)?Hor(r.options):E7(r)?WVt(n.refs).value:GVt($p(r.value)?n.ref.value:r.value,n)}var qor=(n,r,c,u)=>{const d={};for(const p of n){const m=fi(r,p);m&&Qu(d,p,m._f)}return{criteriaMode:c,names:[...n],fields:d,shouldUseNativeValidation:u}},Wor=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate);function KVt(n,r){if(Bq(n)||Bq(r))return r;for(const c in r){const u=n[c],d=r[c];try{n[c]=og(u)&&og(d)||Array.isArray(u)&&Array.isArray(d)?KVt(u,d):d}catch{}}return n}function OOe(n,r,c,u,d){let p=-1;for(;++pKVt(OOe(n,r,c.slice(0,n.length)),OOe(r,n,c.slice(0,n.length))),Gor=(n,r,c,u,d)=>d.isOnAll?!1:!c&&d.isOnTouch?!(r||n):(c?u.isOnBlur:d.isOnBlur)?!n:(c?u.isOnChange:d.isOnChange)?n:!0,lTe=(n,r)=>!Fq(fi(n,r,[])).length&&ov(n,r),Lae=n=>pS(n)||U.exports.isValidElement(n),YVt=n=>n instanceof RegExp;function HAt(n,r,c="validate"){if(Lae(n)||Array.isArray(n)&&n.every(Lae)||UD(n)&&!n)return{type:c,message:Lae(n)?n:"",ref:r}}var fM=n=>og(n)&&!YVt(n)?n:{value:n,message:""},qAt=async(n,r,c,u)=>{const{ref:d,refs:p,required:m,maxLength:x,minLength:E,min:k,max:T,pattern:P,validate:I,name:O,valueAsNumber:N,mount:j,disabled:L}=n._f;if(!j||L)return{};const $=p?p[0]:d,F=le=>{u&&$.reportValidity&&($.setCustomValidity(UD(le)?"":le||" "),$.reportValidity())},B={},X=nje(d),ne=E7(d),Z=X||ne,H=(N||tje(d))&&!d.value||r===""||Array.isArray(r)&&!r.length,ce=For.bind(null,O,c,B),pe=(le,ye,Ge,qe=tS.maxLength,et=tS.minLength)=>{const tt=le?ye:Ge;B[O]=Object.assign({type:le?qe:et,message:tt,ref:d},ce(le?qe:et,tt))};if(m&&(!Z&&(H||xb(r))||UD(r)&&!r||ne&&!WVt(p).isValid||X&&!XVt(p).isValid)){const{value:le,message:ye}=Lae(m)?{value:!!m,message:m}:fM(m);if(le&&(B[O]=Object.assign({type:tS.required,message:ye,ref:$},ce(tS.required,ye)),!c))return F(ye),B}if(!H&&(!xb(k)||!xb(T))){let le,ye;const Ge=fM(T),qe=fM(k);if(isNaN(r)){const et=d.valueAsDate||new Date(r);pS(Ge.value)&&(le=et>new Date(Ge.value)),pS(qe.value)&&(ye=etGe.value),xb(qe.value)||(ye=etle.value,qe=!xb(ye.value)&&r.length"u";function Kor(n={}){let r=Object.assign(Object.assign({},WAt),n),c,u={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},d={},p=r.defaultValues||{},m=r.shouldUnregister?{}:POe(p),x={action:!1,mount:!1,watch:!1},E=0,k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},T={};const P={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},I={watch:new Zse,control:new Zse,array:new Zse,state:new Zse},O=LAt(r.mode),N=LAt(r.reValidateMode),j=r.criteriaMode===Sw.all,L=(Je,ct)=>(...rn)=>{clearTimeout(E),E=window.setTimeout(()=>Je(...rn),ct)},$=Je=>k.watchAll||k.watch.has(Je)||k.watch.has((Je.match(/\w+/)||[])[0]),F=(Je,ct)=>{Qu(u.errors,Je,ct),I.state.next({errors:u.errors})},B=async(Je,ct,rn,Ne,ae)=>{const me=fi(u.errors,ct),Te=P.isValid&&u.isValid!==rn;if(n.delayError&&Ne?(c=c||L(F,n.delayError),c(ct,Ne)):(clearTimeout(E),Ne?Qu(u.errors,ct,Ne):ov(u.errors,ct)),((Ne?!LM(me,Ne):me)||!uv(ae)||Te)&&!Je){const Xe=Object.assign(Object.assign(Object.assign({},ae),Te?{isValid:rn}:{}),{errors:u.errors,name:ct});u=Object.assign(Object.assign({},u),Xe),I.state.next(Xe)}T[ct]--,P.isValidating&&!T[ct]&&(I.state.next({isValidating:!1}),T={})},X=(Je,ct,rn={},Ne)=>{const ae=fi(d,Je);let me=ct;if(ae){const Te=ae._f;Te&&(Qu(m,Je,GVt(ct,Te)),me=FAt&&$ae(Te.ref)&&xb(ct)?"":ct,tje(Te.ref)&&!pS(me)?Te.ref.files=me:qVt(Te.ref)?[...Te.ref.options].forEach(Xe=>Xe.selected=me.includes(Xe.value)):Te.refs?E7(Te.ref)?Te.refs.length>1?Te.refs.forEach(Xe=>Xe.checked=Array.isArray(me)?!!me.find(dt=>dt===Xe.value):me===Xe.value):Te.refs[0].checked=!!me:Te.refs.forEach(Xe=>Xe.checked=Xe.value===me):Te.ref.value=me,Ne&&I.control.next({values:m,name:Je}))}(rn.shouldDirty||rn.shouldTouch)&&ne(Je,me,rn.shouldTouch),rn.shouldValidate&&ze(Je)},ne=(Je,ct,rn,Ne=!0)=>{const ae={name:Je};let me=!1;if(P.isDirty){const Xe=u.isDirty;u.isDirty=ye(),ae.isDirty=u.isDirty,me=Xe!==ae.isDirty}if(P.dirtyFields&&!rn){const Xe=fi(u.dirtyFields,Je);!LM(fi(p,Je),ct)?Qu(u.dirtyFields,Je,!0):ov(u.dirtyFields,Je),ae.dirtyFields=u.dirtyFields,me=me||Xe!==fi(u.dirtyFields,Je)}const Te=fi(u.touchedFields,Je);return rn&&!Te&&(Qu(u.touchedFields,Je,rn),ae.touchedFields=u.touchedFields,me=me||P.touchedFields&&Te!==rn),me&&Ne&&I.state.next(ae),me?ae:{}},Z=async Je=>r.resolver?await r.resolver(Object.assign({},m),r.context,qor(Je||k.mount,d,r.criteriaMode,r.shouldUseNativeValidation)):{},H=async Je=>{const{errors:ct}=await Z();if(Je)for(const rn of Je){const Ne=fi(ct,rn);Ne?Qu(u.errors,rn,Ne):ov(u.errors,rn)}else u.errors=ct;return ct},ce=async(Je,ct,rn={valid:!0})=>{for(const Ne in Je){const ae=Je[Ne];if(ae){const me=ae._f,Te=Wfe(ae,"_f");if(me){const Xe=await qAt(ae,fi(m,me.name),j,r.shouldUseNativeValidation);if(Xe[me.name]&&(rn.valid=!1,ct))break;ct||(Xe[me.name]?Qu(u.errors,me.name,Xe[me.name]):ov(u.errors,me.name))}Te&&await ce(Te,ct,rn)}}return rn.valid},pe=async Je=>{const ct=Je.target;let rn=ct.name;const Ne=fi(d,rn);if(Ne){let ae,me;const Te=ct.type?cTe(Ne._f):ct.value,Xe=Je.type===TOe.BLUR;Xe&&Ne._f.onBlur?Ne._f.onBlur(Je):Ne._f.onChange&&Ne._f.onChange(Je);const dt=!Wor(Ne._f)&&!r.resolver&&!fi(u.errors,rn)&&!Ne._f.deps||Gor(Xe,fi(u.touchedFields,rn),u.isSubmitted,N,O),Sn=!Xe&&$(rn);Qu(m,rn,Te);const gn=ne(rn,Te,Xe,!1),yr=!uv(gn)||Sn;if(!Xe&&I.watch.next({name:rn,type:Je.type}),dt)return yr&&I.state.next(Object.assign({name:rn},Sn?{}:gn));if(!Xe&&Sn&&I.state.next({}),T[rn]=(T[rn],1),P.isValidating&&I.state.next({isValidating:!0}),r.resolver){const{errors:Sr}=await Z([rn]);if(ae=fi(Sr,rn),E7(ct)&&!ae){const Ur=RVt(rn),jr=fi(d,Ur);if(Array.isArray(jr)&&jr.every(ki=>ki._f&&E7(ki._f.ref))){const ki=fi(Sr,Ur,{});ki.type&&(ae=ki),rn=Ur}}me=uv(Sr)}else ae=(await qAt(Ne,fi(m,rn),j,r.shouldUseNativeValidation))[rn],me=await Ge(!0);Ne._f.deps&&ze(Ne._f.deps),B(!1,rn,me,ae,gn)}},le=(Je,ct,rn)=>{const Ne=fi(d,Je);if(Ne){const ae=fi(m,Je),me=$p(ae)?fi(p,Je):ae;$p(me)||rn&&rn.defaultChecked||ct?Qu(m,Je,ct?me:cTe(Ne._f)):X(Je,me)}x.mount&&Ge()},ye=(Je,ct)=>(Je&&ct&&Qu(m,Je,ct),!LM(Object.assign({},we()),p)),Ge=async Je=>{let ct=!1;return P.isValid&&(ct=r.resolver?uv((await Z()).errors):await ce(d,!0),!Je&&ct!==u.isValid&&(u.isValid=ct,I.state.next({isValid:ct}))),ct},qe=(Je,ct,rn)=>Object.entries(ct).forEach(([Ne,ae])=>{const me=`${Je}.${Ne}`,Te=fi(d,me);(k.array.has(Je)||!Bq(ae)||Te&&!Te._f)&&!Sue(ae)?qe(me,ae,rn):X(me,ae,rn,!0)}),et=(Je,ct,rn,Ne)=>{const ae=Object.assign({},rn||x.mount?m:$p(ct)?p:pS(Je)?{[Je]:ct}:ct);if(!Je)return Ne&&(k.watchAll=!0),ae;const me=[];for(const Te of HU(Je))Ne&&k.watch.add(Te),me.push(fi(ae,Te));return Array.isArray(Je)?me:me[0]},tt=(Je,ct,rn,Ne,ae=[],me=!0,Te=!0)=>{let Xe;if(x.action=!0,Te&&fi(d,ct)&&(Xe=rn(fi(d,ct),Ne.argA,Ne.argB),me&&Qu(d,ct,Xe)),Array.isArray(fi(u.errors,ct))){const dt=rn(fi(u.errors,ct),Ne.argA,Ne.argB);me&&Qu(u.errors,ct,dt),lTe(u.errors,ct)}if(P.touchedFields&&fi(u.touchedFields,ct)){const dt=rn(fi(u.touchedFields,ct),Ne.argA,Ne.argB);me&&Qu(u.touchedFields,ct,dt),lTe(u.touchedFields,ct)}(P.dirtyFields||P.isDirty)&&(Qu(u.dirtyFields,ct,uTe(aTe(ae,Je),fi(p,ct,[]),fi(u.dirtyFields,ct,[]))),ae&&Qu(u.dirtyFields,ct,uTe(aTe(ae,Je),fi(p,ct,[]),fi(u.dirtyFields,ct,[]))),lTe(u.dirtyFields,ct)),I.state.next({isDirty:ye(ct,aTe(ae,Je)),dirtyFields:u.dirtyFields,errors:u.errors,isValid:u.isValid})},jt=Je=>fi(x.mount?m:p,Je,[]),Me=(Je,ct,rn={})=>{const Ne=fi(d,Je),ae=k.array.has(Je);Qu(m,Je,ct),ae?(I.array.next({name:Je,values:m}),(P.isDirty||P.dirtyFields)&&rn.shouldDirty&&(Qu(u.dirtyFields,Je,uTe(ct,fi(p,Je,[]),fi(u.dirtyFields,Je,[]))),I.state.next({name:Je,dirtyFields:u.dirtyFields,isDirty:ye(Je,ct)}))):Ne&&!Ne._f&&!xb(ct)?qe(Je,ct,rn):X(Je,ct,rn,!0),$(Je)&&I.state.next({}),I.watch.next({name:Je})},ze=async(Je,ct={})=>{const rn=HU(Je);let Ne;if(I.state.next({isValidating:!0}),r.resolver){const ae=await H($p(Je)?Je:rn);Ne=Je?rn.every(me=>!fi(ae,me)):uv(ae)}else Je?(Ne=(await Promise.all(rn.map(async ae=>{const me=fi(d,ae);return await ce(me&&me._f?{[ae]:me}:me)}))).every(Boolean),Ge()):Ne=await ce(d);return I.state.next(Object.assign(Object.assign({},pS(Je)?{name:Je}:{}),{errors:u.errors,isValid:Ne,isValidating:!1})),ct.shouldFocus&&!Ne&&AOe(d,ae=>fi(u.errors,ae),Je?rn:k.mount),Ne},we=Je=>{const ct=Object.assign(Object.assign({},p),x.mount?m:{});return $p(Je)?ct:pS(Je)?fi(ct,Je):Je.map(rn=>fi(ct,rn))},De=Je=>{Je?HU(Je).forEach(ct=>ov(u.errors,ct)):u.errors={},I.state.next({errors:u.errors})},be=(Je,ct,rn)=>{const Ne=(fi(d,Je,{_f:{}})._f||{}).ref;Qu(u.errors,Je,Object.assign(Object.assign({},ct),{ref:Ne})),I.state.next({name:Je,errors:u.errors,isValid:!1}),rn&&rn.shouldFocus&&Ne&&Ne.focus&&Ne.focus()},Se=(Je,ct)=>HVt(Je)?I.watch.subscribe({next:rn=>Je(et(void 0,ct),rn)}):et(Je,ct,!1,!0),Jt=(Je,ct={})=>{for(const rn of Je?HU(Je):k.mount)k.mount.delete(rn),k.array.delete(rn),fi(d,rn)&&(ct.keepValue||(ov(d,rn),ov(m,rn)),!ct.keepError&&ov(u.errors,rn),!ct.keepDirty&&ov(u.dirtyFields,rn),!ct.keepTouched&&ov(u.touchedFields,rn),!r.shouldUnregister&&!ct.keepDefaultValue&&ov(p,rn));I.watch.next({}),I.state.next(Object.assign(Object.assign({},u),ct.keepDirty?{isDirty:ye()}:{})),!ct.keepIsValid&&Ge()},sn=(Je,ct,rn)=>{Tn(Je,rn);let Ne=fi(d,Je);const ae=$p(ct.value)&&ct.querySelectorAll&&ct.querySelectorAll("input,select,textarea")[0]||ct,me=Bor(ae);ae===Ne._f.ref||me&&Fq(Ne._f.refs||[]).find(Te=>Te===ae)||(Ne={_f:me?Object.assign(Object.assign({},Ne._f),{refs:[...Fq(Ne._f.refs||[]).filter(Te=>$ae(Te)&&document.contains(Te)),ae],ref:{type:ae.type,name:Je}}):Object.assign(Object.assign({},Ne._f),{ref:ae})},Qu(d,Je,Ne),(!rn||!rn.disabled)&&le(Je,!1,ae))},Tn=(Je,ct={})=>{const rn=fi(d,Je);return Qu(d,Je,{_f:Object.assign(Object.assign(Object.assign({},rn&&rn._f?rn._f:{ref:{name:Je}}),{name:Je,mount:!0}),ct)}),k.mount.add(Je),$p(ct.value)||Qu(m,Je,ct.value),rn&&UD(ct.disabled)&&Qu(m,Je,ct.disabled?void 0:fi(m,Je,cTe(rn._f))),!rn&&le(Je,!0),Xor?{name:Je}:Object.assign(Object.assign({name:Je},UD(ct.disabled)?{disabled:ct.disabled}:{}),{onChange:pe,onBlur:pe,ref:Ne=>{if(Ne)sn(Je,Ne,ct);else{const ae=fi(d,Je,{}),me=r.shouldUnregister||ct.shouldUnregister;ae._f&&(ae._f.mount=!1),me&&!($Vt(k.array,Je)&&x.action)&&k.unMount.add(Je)}}})},qn=(Je,ct)=>async rn=>{rn&&(rn.preventDefault&&rn.preventDefault(),rn.persist&&rn.persist());let Ne=!0,ae=Object.assign({},m);I.state.next({isSubmitting:!0});try{if(r.resolver){const{errors:me,values:Te}=await Z();u.errors=me,ae=Te}else await ce(d);uv(u.errors)&&Object.keys(u.errors).every(me=>fi(ae,me))?(I.state.next({errors:{},isSubmitting:!0}),await Je(ae,rn)):(ct&&await ct(u.errors,rn),r.shouldFocusError&&AOe(d,me=>fi(u.errors,me),k.mount))}catch(me){throw Ne=!1,me}finally{u.isSubmitted=!0,I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:uv(u.errors)&&Ne,submitCount:u.submitCount+1,errors:u.errors})}},rr=(Je,ct={})=>{const rn=Je||p,Ne=POe(rn);if(ct.keepValues||(m=n.shouldUnregister?{}:Ne),FAt&&!ct.keepValues)for(const ae of k.mount){const me=fi(d,ae);if(me&&me._f){const Te=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;try{$ae(Te)&&Te.closest("form").reset();break}catch{}}}ct.keepDefaultValues||(p=Object.assign({},rn)),ct.keepValues||(d={},I.control.next({values:ct.keepDefaultValues?p:Object.assign({},rn)}),I.watch.next({}),I.array.next({values:Ne})),k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},I.state.next({submitCount:ct.keepSubmitCount?u.submitCount:0,isDirty:ct.keepDirty?u.isDirty:ct.keepDefaultValues?LM(Je,p):!1,isSubmitted:ct.keepIsSubmitted?u.isSubmitted:!1,dirtyFields:ct.keepDirty?u.dirtyFields:{},touchedFields:ct.keepTouched?u.touchedFields:{},errors:ct.keepErrors?u.errors:{},isSubmitting:!1,isSubmitSuccessful:!1}),x.mount=!P.isValid||!!ct.keepIsValid,x.watch=!!n.shouldUnregister},Zn=Je=>fi(d,Je)._f.ref.focus();return{control:{register:Tn,unregister:Jt,_getWatch:et,_getIsDirty:ye,_updateValid:Ge,_removeFields:()=>{for(const Je of k.unMount){const ct=fi(d,Je);ct&&(ct._f.refs?ct._f.refs.every(BAt):BAt(ct._f.ref))&&Jt(Je)}k.unMount=new Set},_updateFieldArray:tt,_getFieldArrayValue:jt,_subjects:I,_shouldUnregister:r.shouldUnregister,_proxyFormState:P,get _fields(){return d},set _fields(Je){d=Je},get _formValues(){return m},set _formValues(Je){m=Je},get _stateFlags(){return x},set _stateFlags(Je){x=Je},get _defaultValues(){return p},set _defaultValues(Je){p=Je},get _names(){return k},set _names(Je){k=Je},get _formState(){return u},set _formState(Je){u=Je},_updateProps:Je=>{r=Object.assign(Object.assign({},WAt),Je)}},trigger:ze,register:Tn,handleSubmit:qn,watch:Se,setValue:Me,getValues:we,reset:rr,clearErrors:De,unregister:Jt,setError:be,setFocus:Zn}}function Gfe(n={}){const r=U.exports.useRef(),[c,u]=U.exports.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});r.current?r.current.control._updateProps(n):r.current=Object.assign(Object.assign({},Kor(n)),{formState:c});const d=r.current.control;return eje({subject:d._subjects.state,callback:p=>{zVt(p,d._proxyFormState,!0)&&(d._formState=Object.assign(Object.assign({},d._formState),p),u(Object.assign({},d._formState)))}}),U.exports.useEffect(()=>{d._stateFlags.mount||(d._proxyFormState.isValid&&d._updateValid(),d._stateFlags.mount=!0),d._stateFlags.watch&&(d._stateFlags.watch=!1,d._subjects.state.next({})),d._removeFields()}),r.current.formState=BVt(c,d._proxyFormState),r.current}const HD=({onCancel:n,onSave:r})=>We(_w,{children:[V(Vc,{size:"sm",variant:"gray",type:"button",onClick:n,children:"Cancel"}),V(Vc,{size:"sm",...typeof r!="function"?{type:"submit"}:{onClick:r},children:"Save"})]}),QVt=()=>{const n=Qc(),r=new Set;return n.snapshot.nodes.forEach(c=>{c.data.entry.forEach(u=>r.add(u.type)),c.data.exit.forEach(u=>r.add(u.type))}),n.snapshot.edges.forEach(c=>c.data.actions.forEach(u=>r.add(u.type))),Array.from(r).filter(c=>c!=="xstate.assign").sort()},ZVt=()=>{const n=Qc(),r=new Set,c=new Set;return n.snapshot.nodes.forEach(u=>{u.invocations.forEach(d=>{r.add(d.src),d.userIdOverride&&c.add(d.userIdOverride)})}),{src:Array.from(r).sort(),id:Array.from(c).sort()}},JVt=({initialKey:n="",initialExpression:r="",onSubmit:c,onCancel:u})=>{const[d,p]=U.exports.useState(n),[m,x]=U.exports.useState(r);return We("form",{style:{display:"flex",flexDirection:"column",gap:"var(--chakra-sizes-4)"},onSubmit:E=>{E.preventDefault(),c({type:"xstate.assign",assignment:{[d]:m}})},children:[We(Bc,{flex:"1",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",children:[V(Ji.Input,{size:"sm",placeholder:"key",width:"80px",defaultValue:d,onChange:E=>{p(E.target.value)}}),V(In,{flex:"1",children:V(Ji.Input,{size:"sm",placeholder:"assignment",fontFamily:"mono",defaultValue:m,onChange:E=>{x(E.target.value)}})})]}),V(HD,{onCancel:u})]})},_Oe=n=>{const r=Gfe({}),c=QVt();return mr.enabled?V(In,{paddingBlockEnd:"0",children:We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[V(Ji.Control,{label:"Type",children:V(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>V(xk,{options:c,autoFocus:!0,...u})})}),V(In,{marginBlockStart:"4",children:V(HD,{onCancel:n.onCancel})})]})}):We(F9.Tabs,{pr:"5",children:[We(F9.TabList,{children:[V(F9.Tab,{children:"Custom"}),V(F9.Tab,{children:"Assign"})]}),We(F9.TabPanels,{children:[V(F9.TabPanel,{paddingInline:"0",children:V(z1,{spacing:"4",children:We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[V(Ji.Control,{label:"Type",children:V(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>V(xk,{size:"sm",options:c,autoFocus:!0,...u})})}),V(In,{marginBlockStart:"4",children:V(HD,{onCancel:n.onCancel})})]})})}),V(F9.TabPanel,{paddingInline:"0",children:V(JVt,{onSubmit:n.onSubmit,onCancel:n.onCancel})})]})]})},MOe=n=>{const r=Gfe({defaultValues:n.initialValues}),c=QVt();if(a7(n.initialValues)&&!mr.enabled){const[u,d]=Object.entries(n.initialValues.assignment)[0];return We(Si,{children:[V(mv,{}),V(In,{pt:"4",pb:"4",pr:"2",children:V(JVt,{onSubmit:n.onSubmit,onCancel:n.onCancel,initialKey:u,initialExpression:d})}),V(mv,{})]})}return We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[V(mv,{}),We(z1,{pt:"2",pb:"4",pr:"2",spacing:"4",children:[V(Ji.Control,{label:"Type",children:V(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>V(xk,{size:"sm",options:c,autoFocus:!0,...u})})}),V(HD,{onCancel:n.onCancel})]}),V(mv,{})]})},Yor=n=>{const r=Gfe({}),{src:c,id:u}=ZVt();return V("form",{onSubmit:r.handleSubmit(d=>{n.onSubmit({userIdOverride:d.id,src:d.src,internalUniqueId:lVn(),jsImplementation:void 0})}),children:We(z1,{pt:"2",pb:"4",spacing:"2",pr:"5",children:[V(Ji.Control,{label:"Src",children:V(H7,{control:r.control,name:"src",rules:{required:"Src is required"},render:({field:d})=>V(xk,{size:"sm",options:c,autoFocus:!0,...d})})}),V(Ji.Control,{label:"Id",pb:"2",children:V(H7,{control:r.control,name:"id",render:({field:d})=>V(xk,{size:"sm",options:u,...d})})}),V(HD,{onCancel:n.onCancel})]})})},Qor=n=>{const r=Gfe({defaultValues:{id:n.initialValues.userIdOverride,src:n.initialValues.src}}),{src:c,id:u}=ZVt();return We("form",{onSubmit:r.handleSubmit(d=>{n.onSubmit({src:d.src,internalUniqueId:n.initialValues.internalUniqueId,userIdOverride:d.id,jsImplementation:n.initialValues.jsImplementation})}),children:[V(mv,{}),We(z1,{spacing:"4",pt:"2",pb:"4",pr:"2",children:[V(Ji.Control,{label:"Src",children:V(H7,{control:r.control,name:"src",rules:{required:"Src is required"},render:({field:d})=>V(xk,{size:"sm",options:c,autoFocus:!0,...d})})}),V(Ji.Control,{label:"Id",children:V(H7,{control:r.control,name:"id",render:({field:d})=>V(xk,{size:"sm",options:u,...d})})}),V(HD,{onCancel:n.onCancel})]}),V(mv,{})]})};function eUt(n,r,c){const u=d=>{const{getColorModeValue:p}=ei();return V(n,{...c(p),...d})};return u.displayName=r,u}const Zor=n=>{const{isOpen:r,isDisabled:c}=MOn(),{reduceMotion:u}=Nle(),d=cMt("chakra-accordion__icon",n.className),p=aW(),[m,x]=U.exports.useState(!1);U.exports.useEffect(()=>{x(!0)},[]);const E={opacity:c?.4:1,transform:r?void 0:"rotate(-90deg)",transition:!m||u?void 0:"transform 0.1s",transformOrigin:"center",...p.icon};return V(Ao,{viewBox:"0 0 24 24","aria-hidden":!0,className:d,__css:E,...n,children:V("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})};function Jor(n){return n==="assign"}const esr=n=>{const{getColorModeValue:r}=ei();return V(In,{border:"none",children:We(nl,{alignItems:"flex-start",paddingBottom:n.properties.length>1?"2":0,children:[V(z1,{spacing:"0.5",flex:"1",justifyContent:"center",alignItems:"flex-start",border:"none",minWidth:0,pt:"1",children:n.properties.map(c=>{const u=Jor(c.value);return We(In,{width:"full",children:[V(aN,{label:`${n.hideKeyByDefault?"":c.key+":"} ${c.value}`,openDelay:1e3,children:We(Bi,{fontSize:"xs",color:r("gray.600","gray.400"),width:"100%",noOfLines:1,textOverflow:"ellipsis",children:[n.hideKeyByDefault?null:We(Si,{children:[c.key,":"]}),V(Bi,{display:"inline",as:"span",color:u?r("gray.800","gray.400"):r("gray.800","gray.50"),textStyle:u?"bold":"medium",pl:n.hideKeyByDefault?0:"1.5",children:c.value})]},c.key)}),c.assignment&&V(In,{paddingTop:"0.5",paddingBottom:"2",w:"full",children:Object.entries(c.assignment).map(([d,p])=>We(nl,{spacing:"0",alignItems:"start",children:[We(Bi,{fontSize:"xs",color:r("gray.800","gray.400"),children:[d,":"]}),V(Bi,{as:"code",fontSize:"xs",color:r("gray.800","gray.50"),paddingLeft:"1.5",width:"full",children:p})]},d))})]},c.value)})}),We(z1,{spacing:"0",direction:"row",border:"none",children:[V(Ev,{"aria-label":"Delete",onClick:n.onDelete,bg:r("transparent","transparent"),size:"xs",isDisabled:n.deleteDisabled,children:V(yW,{})}),n.allowEdit&&V(Ev,{"aria-label":n.editButtonLabel,onClick:n.onEdit,bg:r("transparent","transparent"),size:"xs",isDisabled:n.editDisabled,children:V(QBn,{})})]})]})})},tsr=({children:n})=>{if(!n)return null;const r=ut.Children.toArray(n);return V(In,{children:r.map((c,u)=>V(U.exports.Fragment,{children:c},u))})};function nsr(n){return lN({idBeingEdited:null},{events:{ADD:()=>({}),EDIT:u=>({id:u}),CANCEL:()=>({}),CONFIRM:u=>({entity:u}),REPORT_PANEL_OPEN:()=>({}),REPORT_PANEL_CLOSED:()=>({})}}).createMachine({id:"Inline edit machine",initial:"Panel Closed",states:{"Panel open":{initial:"idle",states:{idle:{on:{ADD:{actions:"openAccordionPanel",target:"#Inline edit machine.Panel open.addFormOpen"},EDIT:{actions:"assignIdBeingEdited",target:"#Inline edit machine.Panel open.editFormOpen"}}},editFormOpen:{on:{CANCEL:{target:"#Inline edit machine.Panel open.idle"},CONFIRM:{actions:"onEdit",target:"#Inline edit machine.Panel open.idle"}}},addFormOpen:{on:{CANCEL:{target:"#Inline edit machine.Panel open.idle"},CONFIRM:{actions:"onAdd",target:"#Inline edit machine.Panel open.idle"}}}},on:{REPORT_PANEL_CLOSED:{target:"#Inline edit machine.Panel Closed"}}},"Panel Closed":{on:{REPORT_PANEL_OPEN:{target:"#Inline edit machine.Panel open"},ADD:{actions:"openAccordionPanel",target:"#Inline edit machine.Panel open.addFormOpen"}}}}},{actions:{openAccordionPanel:()=>{n.openAccordionPanel()},assignIdBeingEdited:eo((u,d)=>"id"in d?{idBeingEdited:d.id}:{})}})}function Fae(n){const[r,c]=Nw(()=>nsr({openAccordionPanel:n.openAccordionPanel}),{actions:{onEdit:(d,p)=>{"entity"in p&&n.onEdit(d.idBeingEdited,p.entity)},onAdd:(d,p)=>{"entity"in p&&n.onAdd(p.entity)}}}),{getColorModeValue:u}=ei();return ut.useEffect(()=>{n.isPanelOpen?c("REPORT_PANEL_OPEN"):c("REPORT_PANEL_CLOSED")},[n.isPanelOpen,c]),We(isr,{children:[We(nl,{children:[We(rsr,{paddingInlineStart:"0",display:"flex",css:{gap:".5rem"},flex:"1",children:[V(Zor,{color:u("gray.300","gray.600")}),We(In,{flex:"1",textAlign:"left",fontSize:"sm",textStyle:"medium",children:[n.title," ",V(ONt,{variant:"subtle",marginLeft:"2",children:n.countInTitle})]})]}),V(Ev,{onClick:()=>{c("ADD"),n.openAccordionPanel()},isDisabled:!r.can("ADD"),rounded:"none",bg:u("transparent","transparent"),"aria-label":n.addButtonLabel,children:V(VDe,{})})]}),n.isPanelOpen&&(n.entities.length>0||r.matches("Panel open.addFormOpen"))&&We(In,{background:u("gray.25","blackAlpha.400"),paddingBottom:"2",paddingRight:"1",paddingTop:"2",paddingLeft:"4",borderRadius:"md",border:"1px",borderColor:u("gray.50","whiteAlpha.200"),children:[V(tsr,{children:n.entities.map((d,p)=>{var m,x;return r.matches("Panel open.editFormOpen")&&d._id===r.context.idBeingEdited?V(n.editForm,{onSubmit:E=>c({type:"CONFIRM",entity:E}),onCancel:()=>c("CANCEL"),initialValues:d},d._id):V(esr,{hideKeyByDefault:n.hideKeyByDefault,allowEdit:(x=(m=n.allowEdit)==null?void 0:m.call(n,d))!=null?x:!0,properties:n.getProperties(d),editButtonLabel:n.editButtonLabel,onDelete:()=>{n.onDelete(d._id)},onEdit:()=>c({type:"EDIT",id:d._id}),deleteDisabled:!r.can({type:"EDIT",id:d._id}),editDisabled:!r.can({type:"EDIT",id:d._id})},p)})}),r.matches("Panel open.addFormOpen")&&V(n.addForm,{onSubmit:d=>{c({type:"CONFIRM",entity:d})},onCancel:()=>c("CANCEL"),entities:n.entities},n.entities.length)]})]})}const rsr=eUt(kMe,"PanelAccordionButton",n=>({display:"flex",css:{gap:".5rem"},_hover:{background:n("gray.25","whiteAlpha.100")}})),isr=eUt(CMe,"PanelAccordionItem",()=>({borderColor:"transparent"})),osr={"no-children":{form:["key","type","parent","description","meta"],accordion:["invoke","entry","exit","tags"]},"with-children":{form:["key","type","initial-state","parent","description","meta"],accordion:["invoke","entry","exit","tags"]},final:{form:["key","type","parent","description","meta"],accordion:["entry","exit","tags"]},history:{form:["key","type","history-type","parent","description","meta"],accordion:[]},parallel:{form:["key","type","parent","description","meta"],accordion:["invoke","entry","exit","tags"]}},ssr=(n,r)=>{const c=nNe(n.type);switch(c){case"normal":return r>0?"with-children":"no-children";default:return c}},asr=({nodeId:n})=>{var I;const r=Qc(),{getColorModeValue:c}=ei(),u=Ew(n,O=>{const N=nNe(O.data.type);return{data:O.data,node:O,type:N,invocations:O.invocations,nodesLength:O.nodes.length,nodeKeys:O.nodes.map(j=>j.data.key),edges:O.edges.map(j=>({id:j.uniqueId,eventType:j.data.eventTypeData}))}},Go),d=ssr(u.data,u.nodesLength),p=osr[d],[m,x]=U.exports.useState(p.accordion.map((O,N)=>N)||[]),E=Ew(n,O=>O.parent),k="12",T=_k({value:u.data.key,onCommit:O=>r.send({type:"node.modify.key",key:O,nodeId:n})}),P=_k({value:u.data.description||"",onCommit:O=>r.send({type:"node.modify.description",nodeId:n,description:O})});return V(z1,{paddingTop:"1",paddingBottom:"2",children:We(z1,{spacing:"4",children:[p.form.map(O=>{switch(O){case"key":return V(Ji.Control,{label:"Key",columns:!0,labelColumnWidth:k,children:V(Ji.Input,{size:"sm",...T})},"key");case"parent":return E?V(Ji.Control,{label:"Parent",columns:!0,labelColumnWidth:k,children:V(Por,{size:"sm",useBasicStyles:!0,selectedOptionStyle:"check",focusBorderColor:c("blue.500","blue.500"),chakraStyles:{container:(N,j)=>({...N,bg:c("white",j.isFocused?"transparent":"#393A3F"),borderColor:c("gray.100","whiteAlpha.50"),borderRadius:8}),menu:N=>({...N,marginTop:1,bg:c("white","gray.700"),boxShadow:"lg",borderColor:c("gray.100","gray.400"),color:c("gray.800","white"),borderRadius:8}),menuList:N=>({...N,bg:"none"}),option:N=>({...N,fontSize:"sm",marginTop:0,marginBottom:0})},defaultValue:E,getOptionLabel:N=>N.getSerialisableId(),getOptionValue:N=>N.uniqueId,options:r.getSnapshot().nodes.filter(N=>N.uniqueId!==n&&!u.node.isAncestorOf(N)),onChange:N=>{!N||r.send({type:"node.parent.modify",nodeId:n,parentNodeId:N.uniqueId})}})},"parent"):null;case"description":return V(Ji.Control,{label:"Description",children:V(Ji.Textarea,{size:"sm",...P})},"description");case"type":return V(Ji.Control,{label:"Type",columns:!0,labelColumnWidth:k,children:We(Ji.Select,{value:u.type,onChange:N=>{r.send({type:"node.modify.type",nodeId:n,stateType:N.target.value})},size:"sm",maxWidth:"36",children:[V("option",{value:"normal",children:"Normal"}),V("option",{value:"parallel",children:"Parallel"}),V("option",{value:"history",children:"History"}),V("option",{value:"final",children:"Final"})]})},"state_type");case"history-type":return V(Ji.Control,{label:"History",columns:!0,labelColumnWidth:k,children:We(_w,{isAttached:!0,children:[V(Y0,{size:"sm",isActive:u.data.history==="shallow",onClick:()=>{u.data.history!=="shallow"&&r.send({type:"node.modify.history",nodeId:n,history:"shallow"})},color:c("gray.500","gray.300"),background:c("white","gray.800"),border:"1px",borderColor:c("gray.100","gray.700"),_active:{color:c("white","gray.50"),bg:c("blue.500","gray.700"),borderColor:c("transparent","gray.600")},cursor:u.data.history==="shallow"?"default":"pointer",children:"Shallow"}),V(Y0,{size:"sm",onClick:()=>{u.data.history!=="deep"&&r.send({type:"node.modify.history",nodeId:n,history:"deep"})},isActive:u.data.history==="deep",color:c("gray.500","gray.300"),background:c("white","gray.800"),border:"1px",borderColor:c("gray.100","gray.700"),_active:{color:c("white","gray.50"),bg:c("blue.500","gray.700"),borderColor:c("transparent","gray.600")},cursor:u.data.history==="deep"?"default":"pointer",children:"Deep"})]})},"history_type");case"initial-state":return V(Ji.Control,{label:"Initial state",columns:!0,children:V(Ji.Select,{size:"sm",value:u.data.initial,onChange:N=>{r.send({type:"node.setInitialState",nodeId:n,key:N.target.value})},children:u.nodeKeys.map(N=>V("option",{children:N},N))})},"initial_state");default:return null}}),p.accordion.length?We(In,{children:[V(iN,{color:c("gray.500","gray.400"),fontSize:"sm",mb:"0",children:"Effects"}),V(jle,{allowMultiple:!0,index:m,onChange:O=>{x(O)},children:p.accordion.map((O,N)=>{const j=()=>{m.includes(N)&&x($=>[...$,N])},L=m.includes(N);switch(O){case"invoke":return V(Fae,{isPanelOpen:L,addButtonLabel:"Add Invocation",addForm:Yor,editForm:Qor,entities:u.invocations.map(($,F)=>({...$,_id:F})),allowEdit:$=>!$.jsImplementation,getProperties:$=>[{key:"Source",value:$.jsImplementation?"Inline":$.src},{key:"Id",value:$.userIdOverride||""}],onAdd:$=>{r.send({type:"node.modify.invocations.add",nodeId:n,invokeDefinition:$})},onDelete:$=>{r.send({type:"node.modify.invocations.delete",nodeId:n,index:$})},onEdit:($,F)=>{r.send({type:"node.modify.invocations.edit",nodeId:n,index:$,invokeDefinition:F})},openAccordionPanel:j,title:"Invoked actors",countInTitle:u.invocations.length,editButtonLabel:"Edit invoked actor"},N);case"entry":return V(Fae,{isPanelOpen:L,hideKeyByDefault:!0,getProperties:$=>[a7($)?{key:"Type",assignment:$.assignment,value:"assign"}:{key:"Type",value:$.jsImplementation?"Inline":$.type}],allowEdit:$=>!Bx($),addButtonLabel:"Add Entry Action",editButtonLabel:"Edit Entry Action",title:"Entry actions",countInTitle:u.data.entry.length,onAdd:$=>{r.send({type:"node.modify.actions.add",nodeId:n,actionType:"entry",action:$})},entities:u.data.entry.map(($,F)=>({...$,_id:F})),onEdit:($,F)=>{r.send({type:"node.modify.actions.edit",nodeId:n,actionType:"entry",action:F,index:$})},onDelete:$=>{r.send({type:"node.modify.actions.delete",nodeId:n,actionType:"entry",index:$})},openAccordionPanel:j,addForm:_Oe,editForm:MOe},N);case"exit":return V(Fae,{allowEdit:$=>!Bx($),isPanelOpen:L,hideKeyByDefault:!0,addButtonLabel:"Add Exit Action",editButtonLabel:"Edit Exit Action",getProperties:$=>[a7($)?{key:"Type",assignment:$.assignment,value:"assign"}:{key:"Type",value:$.jsImplementation?"Inline":$.type}],title:"Exit actions",countInTitle:u.data.exit.length,onAdd:$=>{r.send({type:"node.modify.actions.add",nodeId:n,actionType:"exit",action:$})},entities:u.data.exit.map(($,F)=>({...$,_id:F})),onEdit:($,F)=>{r.send({type:"node.modify.actions.edit",nodeId:n,actionType:"exit",action:F,index:$})},onDelete:$=>{r.send({type:"node.modify.actions.delete",nodeId:n,actionType:"exit",index:$})},openAccordionPanel:j,addForm:_Oe,editForm:MOe},N);case"tags":return null;default:return null}})})]}):null,!mr.enabled&&p.form.includes("meta")&&V(Ji.Control,{label:"Meta data",hideLabel:!0,children:V(NVt,{entries:(I=u.data.metaEntries)!=null?I:[],buttonLabel:"Add meta data",keyLabel:"Meta key",valueLabel:"Meta value",onChange:O=>{r.send({type:"node.modify.meta",nodeId:n,metaEntries:O})}})})]})})},csr=()=>{const n=Qc(),r=new Set;return n.snapshot.edges.forEach(c=>{c.data.eventTypeData.type==="named"&&r.add(c.data.eventTypeData.eventType)}),{events:Array.from(r).sort()}},usr=sg({initial:"checking",on:{INVOKES_CHANGED:{target:".checking"},CHOOSE_AFTER:{target:".afterEvent",actions:eo(n=>({value:{type:"after",delay:"500"}}))},CHOOSE_DONE_EVENT:{target:".doneEvent",cond:"canChooseInvoke",actions:"assignDoneInvokeEventToValue"},CHOOSE_DONE_STATE:{target:".doneStateEvent",cond:"canChooseDoneState",actions:"assignDoneStateEventToValue"},CHOOSE_ALWAYS_EVENT:{target:".alwaysEvent",actions:eo(n=>({value:{type:"always"}}))},CHOOSE_ERROR_EVENT:{target:".errorEvent",cond:"canChooseInvoke",actions:"assignErrorEventToValue"},CHOOSE_NORMAL_EVENT:{target:".normalEvent",actions:eo(n=>({value:{type:"named",eventType:"Event name"}}))},CHOOSE_WILDCARD:{target:".wildcardEvent",actions:eo(n=>({value:{type:"wildcard"}}))},VALUE_CHANGED_IN_DIGRAPH:{target:".checking",actions:eo((n,r)=>({value:r.value}))}},states:{checking:{always:[{cond:n=>n.value.type==="always",target:"alwaysEvent"},{cond:n=>n.value.type==="wildcard",target:"wildcardEvent"},{cond:n=>n.value.type==="after",target:"afterEvent"},{cond:n=>n.value.type==="invocation.done",target:"doneEvent"},{cond:n=>n.value.type==="invocation.error",target:"errorEvent"},{cond:n=>n.value.type==="state.done",target:"doneStateEvent"},{target:"normalEvent"}]},alwaysEvent:{},wildcardEvent:{},doneStateEvent:{},normalEvent:{on:{CHANGE:{actions:eo((n,r)=>({value:{type:"named",eventType:r.value}}))}}},afterEvent:{on:{CHOOSE_AFTER_LENGTH:{actions:eo((n,r)=>({value:{type:"after",delay:r.value}}))}}},errorEvent:{always:{cond:"noInvokes",target:"normalEvent"},on:{CHOOSE_INVOCATION:{actions:eo((n,r)=>({value:{type:n.value.type,invocationId:r.id}}))}}},doneEvent:{always:{cond:"noInvokes",target:"normalEvent"},on:{CHOOSE_INVOCATION:{actions:eo((n,r)=>({value:{type:n.value.type,invocationId:r.id}}))}}}}}),lsr=n=>{const r=U.exports.useRef(null),{getColorModeValue:c}=ei(),{events:u}=csr(),d=Qc(),p=jd(n.edgeId,N=>{const j=N.getNodeSource();return{invokes:j.invocations,data:N.data,sourceUniqueId:j.uniqueId,sourceId:j.getSerialisableId(),eventTypes:oLt(N)}},Go),m=jd(n.edgeId,N=>N.data.eventTypeData);U.exports.useEffect(()=>{k({type:"VALUE_CHANGED_IN_DIGRAPH",value:m})},[m]);const x=p.invokes,[E,k]=Nw(usr,{context:{value:m},guards:{canChooseDoneState:()=>p.eventTypes.includes("state.done"),noInvokes:()=>!p.eventTypes.includes("invocation.done"),canChooseInvoke:()=>p.eventTypes.includes("invocation.done")},actions:{assignDoneStateEventToValue:eo(N=>({value:{type:"state.done"}})),assignErrorEventToValue:eo(N=>({value:{type:"invocation.error",invocationId:Jh(x[0])}})),assignDoneInvokeEventToValue:eo(N=>({value:{type:"invocation.done",invocationId:Jh(x[0])}}))}});U.exports.useEffect(()=>{k({type:"INVOKES_CHANGED"})},[x]);const T=va(N=>p.data.guard?!1:N.edges.filter(L=>!L.data.guard&&L.getNodeSource().uniqueId===p.sourceUniqueId&&Go(L.data.eventTypeData,E.context.value)).length>1);U.exports.useEffect(()=>{d.send({type:"edge.modify.eventType",edgeId:n.edgeId,eventTypeData:E.context.value})},[E.context.value,n.edgeId]);const P=jd(n.edgeId,N=>N.getNodeSource().getSerialisableId()),I=jd(n.edgeId,N=>N.getNodeSource().invocations,Go),O="12";return We(Si,{children:[V(Ji.Control,{label:"Trigger",columns:!0,labelColumnWidth:O,error:T?E.matches("doneEvent")?"Two done events with the same invocation AND source are not allowed":E.matches("errorEvent")?"Two error events with the same invocation AND source are not allowed":E.matches("alwaysEvent")?"Two always events with the same source are not allowed":E.matches("doneStateEvent")?"Two state done events with the same source are not allowed":E.matches("wildcardEvent")?"Two wildcard events with the same source are not allowed":void 0:"",children:We(Ji.Select,{size:"sm",onChange:N=>{switch(N.target.value){case"after":k("CHOOSE_AFTER");break;case"doneState":k("CHOOSE_DONE_STATE");break;case"normal":k("CHOOSE_NORMAL_EVENT");break;case"done":k("CHOOSE_DONE_EVENT");break;case"error":k("CHOOSE_ERROR_EVENT");break;case"always":k("CHOOSE_ALWAYS_EVENT");break;case"wildcard":k("CHOOSE_WILDCARD");break}},value:E.matches("afterEvent")?"after":E.matches("doneEvent")?"done":E.matches("errorEvent")?"error":E.matches("alwaysEvent")?"always":E.matches("doneStateEvent")?"doneState":E.matches("wildcardEvent")?"wildcard":"normal",children:[E.can({type:"CHOOSE_NORMAL_EVENT"})&&V("option",{value:"normal",children:"Event"}),E.can({type:"CHOOSE_AFTER"})&&V("option",{value:"after",children:"After"}),E.can({type:"CHOOSE_ALWAYS_EVENT"})&&V("option",{value:"always",children:"Always"}),E.can({type:"CHOOSE_DONE_STATE"})&&V("option",{value:"doneState",children:"State Done Event"}),E.can({type:"CHOOSE_DONE_EVENT"})&&V("option",{value:"done",children:"Invocation Done Event"}),E.can({type:"CHOOSE_ERROR_EVENT"})&&V("option",{value:"error",children:"Invocation Error Event"}),E.can({type:"CHOOSE_WILDCARD"})&&V("option",{value:"wildcard",children:"Wildcard Event"})]})}),E.can({type:"CHANGE",value:""})&&"eventType"in E.context.value&&V(Ji.Control,{label:"Name",columns:!0,labelColumnWidth:O,error:T?"Multiple unguarded events from the same source with the same name are not allowed":void 0,children:V(xk,{ref:r,options:u.filter(N=>E.context.value.type!=="named"?!1:N!==E.context.value.eventType),value:E.context.value.eventType,onChange:N=>{k({type:"CHANGE",value:N.target.value})},size:"sm"})}),E.can({type:"CHOOSE_AFTER_LENGTH",value:"100"})&&"delay"in E.context.value&&V(Ji.Control,{label:"Delay",columns:!0,labelColumnWidth:O,error:T?"Two events with the same delay AND source are not allowed":void 0,children:V(Ji.Input,{ref:r,value:E.context.value.delay,onChange:N=>{k({type:"CHOOSE_AFTER_LENGTH",value:N.target.value})},size:"sm",maxWidth:"40"})}),E.can({type:"CHOOSE_INVOCATION",id:""})&&"invocationId"in E.context.value&&V(Ji.Control,{columns:!0,labelColumnWidth:O,label:"Actor",children:V(Ji.Select,{size:"sm",value:E.context.value.invocationId,ref:r,onChange:N=>{k({type:"CHOOSE_INVOCATION",id:N.target.value})},children:x.map(N=>We("option",{value:Jh(N),children:[N.src,N.userIdOverride?` (${N.userIdOverride})`:""]},Jh(N)))})}),V(Bi,{fontSize:"xs",pl:"16",color:c("gray.500","gray.400"),children:E.matches("afterEvent")?"delay"in E.context.value?`Taken after ${E.context.value.delay} milliseconds`:"Taken after a time in milliseconds":E.matches("doneEvent")?"Taken when an invocation completes":E.matches("errorEvent")?"Taken when an error occurs in an invocation":E.matches("alwaysEvent")?"Taken immediately":E.matches("doneStateEvent")?"Taken when the source state reaches a 'final' state":E.matches("wildcardEvent")?"Taken when any event is received":`Taken when the '${Uce(E.context.value,P,I.map(N=>({id:Jh(N)})))}' event is received`})]})},fsr=({edgeId:n})=>{var T;const{getColorModeValue:r}=ei(),c=Qc(),u=jd(n,P=>({uniqueId:P.uniqueId,sourceId:P.getNodeSource().getSerialisableId(),targetId:P.target.getSerialisableId(),graphNodeIds:P.graph.snapshot.nodes.map(I=>I.getSerialisableId()).sort((I,O)=>I.localeCompare(O)),guard:P.data.guard,internal:P.data.internal,data:P.data}),Go),d=jd(n,P=>P.data.guard,Go),[p,m]=U.exports.useState([0]),x="12",E=_k({value:(d==null?void 0:d.type)||"",onCommit:P=>c.send({type:"edge.modify.guard",edgeId:n,guard:{type:P}})}),k=_k({value:u.data.description||"",onCommit:P=>c.send({type:"edge.modify.description",edgeId:n,description:P})});return V(z1,{paddingTop:"1",paddingBottom:"2",children:We(z1,{spacing:"4",children:[V(lsr,{edgeId:n},u.uniqueId),V(Ji.Control,{label:"Source",columns:!0,labelColumnWidth:x,children:V(Ji.Select,{value:u.sourceId,onChange:P=>{c.send({type:"edge.setSource",edgeId:n,source:P.target.value})},size:"sm",children:u.graphNodeIds.map(P=>V("option",{children:P},P))})},"source"),V(Ji.Control,{label:"Target",columns:!0,labelColumnWidth:x,children:V(Ji.Select,{value:u.targetId,onChange:P=>{c.send({type:"edge.setTarget",edgeId:n,target:P.target.value})},size:"sm",children:u.graphNodeIds.map(P=>V("option",{children:P},P))})},"target"),V(Ji.Control,{label:"Guard",columns:!0,labelColumnWidth:x,error:void 0,children:V(Ji.Input,{isDisabled:(d==null?void 0:d.jsImplementation)!==void 0,size:"sm",...E})},"guard"),V(Ji.Control,{label:"Internal",hideLabel:!0,columns:!0,labelColumnWidth:x,children:We(_w,{isAttached:!0,children:[V(Y0,{size:"sm",isActive:u.internal,onClick:()=>{u.internal||c.send({type:"edge.modify.internal",edgeId:n,internal:!0})},color:r("gray.500","gray.300"),background:r("white","gray.800"),border:"1px",borderColor:r("gray.100","gray.700"),_active:{color:r("white","gray.50"),bg:r("blue.500","gray.700"),borderColor:r("transparent","gray.600")},cursor:u.internal?"default":"pointer",children:"Internal"}),V(Y0,{size:"sm",onClick:()=>{!u.internal||c.send({type:"edge.modify.internal",edgeId:n,internal:!1})},isActive:!u.internal,color:r("gray.500","gray.300"),background:r("white","gray.800"),border:"1px",borderColor:r("gray.100","gray.700"),_active:{color:r("white","gray.50"),bg:r("blue.500","gray.700"),borderColor:r("transparent","gray.600")},cursor:u.internal?"pointer":"default",children:"External"})]})},"internal"),V(Ji.Control,{label:"Description",children:V(Ji.Textarea,{size:"sm",...k})},"description"),We(In,{children:[V(iN,{color:r("gray.500","gray.400"),fontSize:"sm",mb:"0",children:"Effects"}),V(jle,{allowMultiple:!0,index:p,onChange:P=>{m(P)},children:V(Fae,{allowEdit:P=>!Bx(P),isPanelOpen:p.includes(0),addButtonLabel:"Add Action",editButtonLabel:"Edit Action",getProperties:P=>[f7(P)?{key:"Type",assignment:P.assignment,value:"assign"}:{key:"Type",value:P.jsImplementation?"Inline":P.type}],title:"Actions",hideKeyByDefault:!0,countInTitle:u.data.actions.length,onAdd:P=>{c.send({type:"edge.modify.actions.add",edgeId:n,action:P})},entities:u.data.actions.map((P,I)=>({...P,_id:I})),onEdit:(P,I)=>{c.send({type:"edge.modify.actions.edit",edgeId:n,action:I,index:P})},onDelete:P=>{c.send({type:"edge.modify.actions.delete",edgeId:n,index:P})},openAccordionPanel:()=>{p.includes(0)||m(P=>[...P,0])},addForm:_Oe,editForm:MOe})})]}),V(Ji.Control,{label:"Meta data",hideLabel:!0,children:V(NVt,{entries:(T=u.data.metaEntries)!=null?T:[],buttonLabel:"Add meta data",keyLabel:"Meta key",valueLabel:"Meta value",onChange:P=>{c.send({type:"edge.modify.meta",edgeId:u.uniqueId,metaEntries:P})}})})]})})},Xfe=U.exports.createContext(null),dsr=({refs:n,index:r,children:c,label:u,Footer:d,Icon:p,onOpen:m,onClose:x,isOpen:E,autoClose:k=!1,size:T="xs",autoFocus:P=!0})=>{const{getColorModeValue:I}=ei();return V("li",{ref:O=>{n.current[r]=O},children:V(bDe,{placement:"left-start",isLazy:!0,lazyBehavior:"unmount",offset:[-30,15],returnFocusOnClose:!0,closeOnBlur:k,closeOnEsc:!0,onOpen:m,onClose:x,isOpen:E,autoFocus:P,children:({isOpen:O})=>We(Si,{children:[V(Mce,{children:V(Vc,{"aria-label":"Details view",variant:"light",size:"md",paddingX:"0",paddingY:"6",fontSize:"2xl",children:V(aN,{label:u,placement:"left",openDelay:500,children:V(In,{children:p})})})}),V(s3,{children:We(yDe,{borderWidth:O?1:0,bg:I("white","gray.800"),width:T,borderColor:I("gray.100","gray.700"),shadow:"md",children:[We(In,{position:"sticky",top:"0",bg:I("white","gray.800"),zIndex:"1",borderRadius:"inherit",children:[V(vDe,{zIndex:1,size:"md"}),V(wDe,{fontSize:"sm",textStyle:"bold",borderColor:I("gray.50","gray.700"),children:u})]}),V(mDe,{maxHeight:"calc(100vh - 96px - 30px - 96px)",overflowY:"auto",children:c}),d&&V(mRt,{children:d})]})})]})})})},hsr=ut.forwardRef(function(r,c){const u=CRt({...r,ref:c}),d=!!u["aria-selected"];return V(Vc,{_focus:{outlineOffset:0},variant:d?"primary":"gray",...u,children:u.children})}),fTe=[{label:"JSON",key:"json",icon:V(Bi,{as:"span",display:"block",bg:"transparent",width:"1rem",height:"1rem",children:"{ }"})},{label:"JavaScript",key:"js",icon:V(NYn,{width:"1rem",height:"1rem"})},{label:"TypeScript",key:"ts",icon:V(DYn,{width:"1rem",height:"1rem"})}],psr=({selectedIndex:n,setSelectedIndex:r})=>{const c=U.exports.useContext(yUt),u=Qc(),{getColorModeValue:d}=ei(),{isLoading:p,codes:m}=BYn({graphActor:u,formatOptions:{printWidth:100}});return p?V(In,{children:"Loading"}):V(Si,{children:V(xDe,{p:"2",index:n,onChange:x=>{r(x)},children:We(yk,{alignItems:"stretch",gap:"4",children:[We(Bc,{justifyContent:"space-between",flex:"1",children:[V(SDe,{borderBottom:"0",children:V(_w,{isAttached:!0,size:"sm",children:fTe.map(x=>We(hsr,{display:"flex",gap:"2",children:[V(Bi,{as:"span",display:"block","aria-hidden":"true",children:x.icon}),V(Bi,{as:"span",display:"block",marginTop:"0.5!important",children:x.label})]},x.key))})}),We(_w,{isAttached:!0,children:[V(Vc,{size:"sm",variant:"light",paddingInlineEnd:"0",onClick:()=>{c==null||c.onOpen()},children:"Import"}),V(RYn,{variant:"light",text:m==null?void 0:m[fTe[n].key],width:"70px",paddingInlineEnd:"0"})]})]}),V(kDe,{children:fTe.map(x=>V(EDe,{p:"0",children:V(In,{as:"textarea",resize:"none",borderRadius:"md",width:"100%",height:"60vh",readOnly:!0,fontFamily:"mono",fontSize:"sm",padding:"3",value:m[x.key],bg:d("blackAlpha.100","whiteAlpha.100")})},x.key))})]})})})},gsr=()=>{const{userMode:n}=U.exports.useContext(kW),r=U.exports.useRef(null),c=Qc(),[u,d]=U.exports.useState(0),[p,m]=U.exports.useState(""),[x,E]=U.exports.useState(""),k=U.exports.useRef([]),T=U.exports.useContext(r1),P=Al(T,X=>X.matches("simulating")?"sim":"edit"),{getColorModeValue:I}=ei(),O=va(X=>Object.values(X.selection)[0],Go),[N,j]=U.exports.useState(!0),L=!T.initialized&&P==="edit",F=U.exports.useRef(P).current!==P;U.exports.useEffect(()=>{L&&(j(!1),E("0"))},[L,E,j]),U.exports.useEffect(()=>{F&&(j(!0),E(""))},[F,E]);const B={edit:[{label:O?O.type==="node"?"State details":"Transition details":"Machine details",Body:O?O.type==="node"?V(asr,{nodeId:O.id},O.id):V(fsr,{edgeId:O.id},O.id):V(JQn,{}),Icon:bzn},{label:"Context",Body:V(Xfe.Provider,{value:{panelRef:r,openPopoverId:p,onPopoverOpen(X){m(X)},onPopoverClose(){m("")}},children:V(In,{paddingBlockEnd:"4",children:V(ZQn,{})})}),Footer:V(VYn,{onCommit:(X,ne,Z)=>{c.send({type:"context.addFieldByInferredType",key:X,expression:ne,inferredType:Z})}}),Icon:gzn,disabled:mr.enabled},{label:"Code",Body:V(psr,{selectedIndex:u,setSelectedIndex:d}),autoClose:!1,size:"lg",Icon:mzn,disabled:mr.enabled}],sim:[{label:"Event log",Body:V(Tnr,{}),Icon:X=>V(uzn,{width:"24px",height:"24px",...X}),autoClose:!1}]};return V(In,{as:"ul",listStyleType:"none",bg:I("white","gray.800"),borderWidth:"1px",borderRightWidth:"0",borderColor:I("gray.100","gray.700"),shadow:"md",borderLeftRadius:"md",padding:"2",height:"max-content",position:"absolute",right:"0",marginTop:n==="vscode"?"24":"16",ref:r,children:B[P].filter(X=>!X.disabled).map(({label:X,Body:ne,Footer:Z,Icon:H,autoClose:ce,size:pe},le)=>V(dsr,{refs:k,index:le,label:X,Footer:Z,size:pe,Icon:V(H,{color:le.toString()===x?I("blue.500","white"):I("gray.800","gray.300"),_hover:{color:le.toString()===x?I("blue.500","white"):I("gray.600","gray.200")}}),autoClose:ce,onOpen:()=>{j(!0),E(le.toString())},onClose:()=>{j(!0),E("")},isOpen:x===le.toString(),autoFocus:N,children:ne},le))})};function bsr(n){const{getColorModeValue:r}=ei(),{viewBox:c,cursorType:u}=n;return We("svg",{viewBox:`${c.minX} ${c.minY} ${c.width} ${c.height}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"100%",position:"fixed",top:0,left:0,cursor:u},children:[V("pattern",{id:"grid",width:"24",height:"24",x:0,y:0,patternUnits:"userSpaceOnUse",children:V("path",{d:"M 24 0 L 0 0 0 24",fill:"none",stroke:r("var(--chakra-colors-primary-grid_temp)","rgba(255,255,255,0.1)"),strokeWidth:"1"})}),V("rect",{width:c.width*2,height:c.height*2,x:c.minX-c.width/2,y:c.minY-c.height/2,fill:"url('#grid')",pointerEvents:"none"})]})}function msr({edgeId:n}){return V(vsr,{edgeId:n,css:{cursor:"pointer",path:{transition:"stroke 0.1s ease, fill 0.1s ease"}}})}function vsr({edgeId:n,css:r}){const c=Qc(),u=va(O=>Boolean(O.selection[n])),{position:d,description:p,actions:m}=jd(n,O=>({position:O.currentPosition,actions:O.data.actions,description:O.data.description}),Go),x=jd(n,O=>O.getDisplayEventType()),E=jd(n,O=>O.data.eventTypeData,Go),k=va(O=>O.status==="movingSelection"),T=RFt(n),{getColorModeValue:P}=ei(),I=jw();return V(In,{css:r,opacity:u?1:"var(--default-entity-opacity, 1)",_hover:T?{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:P("primary.600","primary.600")},["marker path"]:{fill:P("primary.600","primary.600")}}:{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:P("gray.800","white")},["marker path"]:{fill:P("gray.800","white")},cursor:I?"default":"pointer"},children:V(Cnr,{actions:m,isActiveInSimulation:T,description:p||"",eventType:x,eventTypeData:E,onLabelRect:ut.useCallback(O=>{c.send({type:"edge.setSize",edgeId:n,size:O})},[n]),edgeId:n,selected:u&&!k,style:{position:"absolute",left:`${d.x}px`,top:`${d.y}px`}})})}function ysr(){const n=va(r=>r.edges.map(c=>c.uniqueId),MD);return V(Si,{children:n.map(r=>V(msr,{edgeId:r},r))})}const DOe=({id:n,pathProps:r})=>V("marker",{id:n,viewBox:"0 0 10 10",markerWidth:"5",markerHeight:"5",refX:"5",refY:"5",markerUnits:"strokeWidth",orient:"auto",children:V("path",{d:"M0,0 L0,10 L10,5 z",...r})}),NOe=5,dTe=5;function wsr(n,r){var c;return n.status==="movingAnchor"&&((c=n.tempAnchor)==null?void 0:c.type)==="source"&&n.tempAnchor.edgeId===r?n.tempAnchor.point:void 0}const xsr=Qt("g");function Ssr(n,r){var c;return n.status==="movingAnchor"&&((c=n.tempAnchor)==null?void 0:c.type)==="target"&&n.tempAnchor.edgeId===r?n.tempAnchor.point:void 0}function Esr(n){const{getColorModeValue:r}=ei(),c=jw(),u=RFt(n),d=va(x=>Boolean(x.selection[n]));let p=r("var(--chakra-colors-gray-400)","var(--chakra-colors-gray-400)"),m=r("black","white");return c&&(u?(p=r("var(--chakra-colors-gray-800)","white"),m=r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)")):p=r("var(--chakra-colors-gray-300)","var(--chakra-colors-gray-400)")),d&&(p=r("var(--chakra-colors-gray-900)","var(--chakra-colors-gray-100)")),{stroke:p,hoverColor:m}}const ksr=({sourcePathData:n,targetPathData:r,radius:c=10,pathProps:u,hoverPathProps:d,sourcePathProps:p,targetPathProps:m,highlightPathProps:x})=>{const E=U.exports.useId(),k=U.exports.useId(),T=U.exports.useMemo(()=>n?u7(n.getSvgPath({radius:c})):void 0,[n,c]),P=U.exports.useMemo(()=>r?u7(r.getSvgPath({radius:c})):void 0,[r,c]),{zoom:I}=RS();return We(xsr,{"data-name":"edge-path-group",_hover:{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:d==null?void 0:d.stroke},'[data-name="edge-path-target"]':{markerEnd:`url(#${k})`}},children:[We("defs",{children:[V(DOe,{id:E,pathProps:{fill:u==null?void 0:u.stroke}}),V(DOe,{id:k,pathProps:{fill:d==null?void 0:d.stroke}})]}),T&&V("path",{"data-name":"edge-path-source",d:T,fill:"none",strokeWidth:2,stroke:"white",strokeLinecap:"round",...u,...p}),P&&V("path",{"data-name":"edge-path-target",d:P,fill:"none",markerEnd:`url(#${E})`,strokeWidth:2,stroke:"white",...u,...m}),V("path",{d:[T,P].filter(Boolean).join(" "),stroke:"transparent",strokeWidth:12/(I!=null?I:1),fill:"none",onClick:u==null?void 0:u.onClick,pointerEvents:"stroke",strokeOpacity:0,...x})]})},Csr=({edgeId:n,radius:r,onClick:c,...u})=>{const{pathData:d,isSelected:p}=jd(n,(k,T)=>{const P=wsr(T,n),I=Ssr(T,n),O=Boolean(T.selection[n]);return{pathData:k.getPathData({tempSourcePoint:P,tempTargetPoint:I}),isSelected:O}},Go),m=jd(n,k=>k.getEdgeGroupIndex()),{stroke:x,hoverColor:E}=Esr(n);return d?V(qk,{style:{opacity:p?1:"var(--default-entity-opacity, 1)"},children:V(ksr,{sourcePathData:d.sourcePathData,targetPathData:d.targetPathData,radius:r,pathProps:{stroke:x,...u},sourcePathProps:{strokeDasharray:m&&m>0?"1 5":void 0},targetPathProps:{display:"block"},hoverPathProps:{stroke:E},highlightPathProps:{onClick:c}})}):null},Isr=({edgeId:n})=>{const r=Qc(),c=jw();return V(Csr,{edgeId:n,onClick:()=>{c||r.send({type:"select",entity:{type:"edge",id:n},mode:"single"})}})};function Tsr(){const n=va(r=>r.edges.map(c=>c.uniqueId),MD);return V(Si,{children:n.map(r=>V(Isr,{edgeId:r},r))})}function jOe(n){const{x:r,y:c,width:u,height:d,...p}=n;return V("svg",{viewBox:`0 0 ${u} ${d}`,width:u,height:d,style:{position:"absolute",left:`${r}px`,top:`${c}px`,pointerEvents:"none",overflow:"visible"},children:V("rect",{width:u,height:d,pointerEvents:"auto",...p})})}function Asr({serialisableId:n,left:r,top:c}){const u={x:r,y:c+dTe*2},d={x:r-NOe,y:c+dTe*2},p={x:d.x-NOe,y:d.y-dTe*2},m=U.exports.useId(),{getColorModeValue:x}=ei(),E=x("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-400)");return V(qk,{children:We("g",{children:[V("defs",{children:V(DOe,{id:m,pathProps:{fill:E}})}),V("circle",{fill:E,r:"4",cx:p.x,cy:p.y}),V("path",{"data-testname":`${n}#initial`,strokeWidth:2,style:{transition:"stroke 0.3s",strokeDashoffset:"0",strokeDasharray:"1 1"},d:`M ${p.x},${p.y} Q ${p.x},${d.y} ${d.x},${d.y} L ${d.x+1}, ${d.y} M ${u.x},${u.y}`,stroke:E,fill:"none",markerEnd:`url(#${m})`,pathLength:1})]})})}const hTe=({prefix:n,color:r,children:c,...u})=>{const{getColorModeValue:d}=ei();return V(In,{display:"flex",flexDir:"row",alignItems:"baseline",style:{gap:"1ch"},...u,children:We(Bi,{width:"max-content",maxWidth:"xs",fontSize:"sm",children:[We(Bi,{as:"span",fontSize:"xs",textStyle:"semibold",whiteSpace:"nowrap",color:r,textTransform:"uppercase",children:[n," ",V(Bi,{as:"span",fontSize:"xs",textStyle:"semibold",whiteSpace:"nowrap",color:d("gray.300","gray.500"),textTransform:"uppercase",children:"/"})," "]}),c]})})},Psr=({style:n,nodeId:r})=>{const c=U.exports.useCallback(pe=>{x.send({type:"node.setSize",nodeId:r,size:eNe(pe,k.current)})},[r]),u=yfe(r),d=U.exports.useRef(null),p=U.exports.useRef(null),m=jw(),x=Qc(),{getColorModeValue:E}=ei(),k=U.exports.useContext(mN),{nodeData:T,serializableId:P,isSelected:I,childrenRect:O,childStateCount:N}=Ew(r,pe=>{const le=pe.uniqueId in pe.graph.snapshot.selection;return{nodeData:pe.data,serializableId:pe.getSerialisableId(),isSelected:le,childrenRect:pe._rects.children,childStateCount:pe.config.nodes.length}},Go),j=Ew(r,pe=>pe.data.entry,Go),L=Ew(r,pe=>pe.data.exit,Go),$=Ew(r,pe=>pe.invocations,Go),F=jFt(r),{errors:B,warnings:X}=va(pe=>{const le=pe.getNodeByUniqueId(r);return le?{errors:RLt(le),warnings:$Lt(le,pe)}:{errors:null,warnings:null}},Go);MFt("node",r,{inputRef:p});const ne=T.type==="final"?"final":T.type==="history"?T.history==="deep"?"deep history":"history":void 0;iVt(d,c);const Z=tzt(T),H=j.length>0||L.length>0||$.length>0||T.description;mfe(d,{disabled:m,onDragStart:()=>{x.send({type:"selection.moveStart"})},onDrag:({delta:pe})=>{x.send({type:"selection.move",delta:pe})},onDragEnd:()=>{x.send({type:"selection.moveEnd"})}},k),U.exports.useEffect(()=>{if(!m)return Il.bind(d.current,{type:"pointerdown",listener:pe=>{I||x.send({type:rLt(pe)?"select":"select.start",entity:{id:r,type:"node"},mode:pe.shiftKey?"multi":"single"})}})},[I,x,r,m]);const ce=_k({value:T.key,focusRefOnKeyDownCommit:d,commitOnEsc:!0,onCommit:pe=>x.send({type:"node.modify.key",nodeId:r,key:pe})});return We(In,{tabIndex:-1,"data-testid":`node:${P}`,title:`#${P}${ne?` (${ne})`:""}`,"data-node-id":r,"data-node-active":u,style:{outline:"none",...n},ref:d,width:"auto",minWidth:O.width,userSelect:"none",color:u?E("gray.800","white"):m?E("gray.500","gray.400"):E("gray.800","gray.50"),borderBottom:N>0?"1px":"0",borderColor:m&&!u?E("gray.100","gray.800"):E("gray.100","gray.700"),children:[V(yzt,{hidden:m,errors:B,warnings:X}),We(nl,{paddingInline:"3",paddingBlock:"2",spacing:"3",alignItems:"flex-start",width:"max-content",maxWidth:"xl",children:[T.type&&["history","final"].includes(T.type)&&V(Z,{w:"6",h:"6",color:u?E("primary.600","white"):E("gray.600","gray.200"),mt:"1px",pointerEvents:"none"}),V(Ji.Control,{label:"Key",hideLabel:!0,children:V(uOe,{pointerEvents:F?"auto":"none",isDisabled:m,textStyle:"semibold",fontSize:"md",ref:p,onPointerDownCapture:pe=>{pe.stopPropagation()},selectOnFocus:!0,...ce})})]}),H&&V(In,{px:"3",children:V(mv,{mb:"3"})}),We(z1,{pb:"3",_empty:{display:"none"},spacing:"1.5",children:[j.map((pe,le)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[V(E$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),V(hTe,{prefix:"entry","aria-label":`entry: ${pe.type}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:Bx(pe)?V("em",{children:"Inline"}):Rq(pe)})]},le)),$.map((pe,le)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[V(C$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),V(hTe,{prefix:"invoke","aria-label":`invoke: ${pe.src}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:pe.jsImplementation?V("em",{children:"Inline"}):We(Si,{children:[pe.src,pe.userIdOverride?` (${pe.userIdOverride})`:""]})})]},le)),L.map((pe,le)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[V(k$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),V(hTe,{prefix:"exit","aria-label":`exit: ${pe.type}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:Bx(pe)?V("em",{children:"Inline"}):Rq(pe)})]},le))]}),T.description&&V(In,{color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),px:"3",pb:"3",children:V(In,{width:"max-content",maxWidth:"md",fontSize:"sm",children:V(XNe,{children:T.description})})})]})},Osr=({nodeId:n})=>{const{getColorModeValue:r}=ei(),{userMode:c}=U.exports.useContext(kW),u=Ew(n,m=>{var T,P;const x=((T=m.parent)==null?void 0:T.data.initial)===m.data.key,E=Object.values(m.graph.snapshot.selection).some(I=>{if(I.type!=="edge")return;const O=m.graph.snapshot.getEdgeByUniqueId(I.id);if(!!O)return O.source===m||O.target===m}),k=((P=m.parent)==null?void 0:P.data.type)==="parallel";return{data:m.data,rects:m.currentRects,isInitial:x,isChildOfParallel:k,serialisableId:m.getSerialisableId(),uniqueId:m.uniqueId,isHighlighted:m.isHighlighted,childStateCount:m.config.nodes.length,edgeIsSelected:E}},Go),d=yfe(n),p=jw();return We(In,{style:{transition:"opacity 0.1s ease"},opacity:u.edgeIsSelected?1:"var(--default-entity-opacity, 1)",children:[u.isInitial&&V(Asr,{left:u.rects.family.left-NOe*2,top:u.rects.family.top,serialisableId:u.serialisableId}),V(_sr,{node:u}),V(jOe,{"data-node-id":`${u.serialisableId}#label`,"data-node-rect":"self","data-node-active":d,x:u.rects.self.x,y:u.rects.self.y,width:u.rects.self.width,height:u.rects.self.height,fill:d?u.childStateCount>0?r("white","var(--chakra-colors-gray-700)"):r("#F5FAFF","#0C113B"):p?r("var(--chakra-colors-gray-50)","var(--chakra-colors-gray-850)"):r("white","var(--chakra-colors-gray-700)")}),V("div",{style:{position:"absolute",left:`${u.rects.family.left}px`,top:`${u.rects.family.top}px`,overflow:"visible",color:r(d?"white":"inherit","white")},children:V(Psr,{nodeId:u.uniqueId})}),V(jOe,{"data-node-id":c==="screenshot"?"screenshot-root-id":void 0,pointerEvents:"none","data-node-rect":"family",fill:"transparent",style:r({filter:"drop-shadow( 0 0 0.01rem rgba(155,160,168,0.4))"},{filter:"drop-shadow( 0 0.3rem 0.5rem rgba(0, 0, 0, .4))"}),x:u.rects.family.left,y:u.rects.family.top,width:u.rects.family.width,height:u.rects.family.height,rx:2,ry:2,stroke:d?u.childStateCount>0?r("var(--chakra-colors-gray-100)","var(--chakra-colors-gray-700)"):r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)"):r("var(--chakra-colors-gray-100)","var(--chakra-colors-gray-700)"),strokeWidth:2,...u.isChildOfParallel&&{stroke:r("var(--chakra-colors-gray-600)","var(--chakra-colors-gray-400)"),strokeDasharray:"4px",strokeWidth:r("1px","inherit")},...u.isHighlighted&&{stroke:r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)"),strokeDasharray:"0px"}})]})};function _sr(n){const{getColorModeValue:r}=ei(),{node:c}=n;return V(Si,{children:V(jOe,{"data-node-id":`${c.serialisableId}#children`,"data-node-rect":"children",fill:r("#FAFBFC","var(--chakra-colors-gray-900)"),fillOpacity:.16,x:c.rects.children.left,y:c.rects.children.top,width:c.rects.family.width,height:c.rects.children.height,pointerEvents:"none"})})}function Msr(){const n=va(r=>r.nodes,vPe);return V(Si,{children:n.map(r=>V(Osr,{nodeId:r.uniqueId},r.uniqueId))})}const Dsr=U.exports.forwardRef(function(r,c){const{viewBox:u,children:d,...p}=r;return V(In,{...p,ref:c,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%"},children:V("div",{style:{position:"absolute",top:0,left:0,transform:`scale(${u.zoom}) translate(${-u.minX}px, ${-u.minY}px)`},children:d})})}),GAt=el*5,XAt=el*2,Nsr=()=>{const n=U.exports.useRef(null),{getColorModeValue:r}=ei(),c=va(d=>{var p;return(p=d.tempEdge)==null?void 0:p.sourceSide}),u=va(d=>{if(!d.tempEdge)return null;const{nodeId:p}=d.tempEdge,m=d.getNodeByUniqueId(p);if(!m||d.tempEdge.nodeId!==m.uniqueId||d.tempEdge.target===m)return null;const x=m.currentRects.family;let E=new Du({...d.tempEdge.targetPoint,width:jM,height:jM}),k=d.tempEdge.targetPoint,T=m;const P=T.graph.snapshot.getNodeRectDataAtPoint(k);P&&P.rectKey!=="family"&&(T=P.node,E=T.currentRects.family,k=void 0);const I=k?new Du({x:k.x,y:k.y,width:GAt,height:XAt}):void 0,O=qce(x.centerSide(c!=null?c:"top")),N=Zce(I?{labelRect:x,toRect:I,otherRects:[],initialRay:O,endOffset:10,toSides:["top","bottom","left","right"]}:{labelRect:x,toRect:E,otherRects:[],initialRay:O,endOffset:10,toSides:["top","bottom","left","right"]}),j=new Aq({startPoint:O,endPoint:N.path[N.path.length-1],midPoints:N.path.slice(1,-1)});return{d:u7(j.getSvgPath({radius:10})),tempEdge:d.tempEdge}},Go);return u?V(qk,{children:We("g",{"data-testname":"new-event-dragbox",children:[V("path",{stroke:r("#398ef1","#398ef1"),fill:"none",ref:n,d:u.d,strokeWidth:4,vectorEffect:"non-scaling-stroke"}),!u.tempEdge.target&&V("rect",{x:u.tempEdge.targetPoint.x,y:u.tempEdge.targetPoint.y,width:GAt,height:XAt,fill:r("#313238","#313238"),opacity:.5})]})}):null},jsr=()=>{const{getColorModeValue:n}=ei(),{zoom:r}=RS(),c=va(u=>{if(u.status!=="movingSelection")return[];const d=u.snapLines;return d?d.map(p=>p.direction==="x"?p.startRect.center.x>p.endRect.center.x?u7([["M",p.startRect.centerSide("right")],["L",p.endRect.centerSide("left")]]):u7([["M",p.startRect.centerSide("left")],["L",p.endRect.centerSide("right")]]):p.startRect.center.y>p.endRect.center.y?u7([["M",p.startRect.centerSide("bottom")],["L",p.endRect.centerSide("top")]]):u7([["M",p.startRect.centerSide("top")],["L",p.endRect.centerSide("bottom")]])):[]},MD);return V(qk,{children:c.map(u=>V("path",{d:u,stroke:n("var(--chakra-colors-primary-500)","var(--chakra-colors-primary-500)"),strokeWidth:2/r},u))})};var ac;(function(n){n.assertEqual=d=>d;function r(d){}n.assertIs=r;function c(d){throw new Error}n.assertNever=c,n.arrayToEnum=d=>{const p={};for(const m of d)p[m]=m;return p},n.getValidEnumValues=d=>{const p=n.objectKeys(d).filter(x=>typeof d[d[x]]!="number"),m={};for(const x of p)m[x]=d[x];return n.objectValues(m)},n.objectValues=d=>n.objectKeys(d).map(function(p){return d[p]}),n.objectKeys=typeof Object.keys=="function"?d=>Object.keys(d):d=>{const p=[];for(const m in d)Object.prototype.hasOwnProperty.call(d,m)&&p.push(m);return p},n.find=(d,p)=>{for(const m of d)if(p(m))return m},n.isInteger=typeof Number.isInteger=="function"?d=>Number.isInteger(d):d=>typeof d=="number"&&isFinite(d)&&Math.floor(d)===d;function u(d,p=" | "){return d.map(m=>typeof m=="string"?`'${m}'`:m).join(p)}n.joinValues=u,n.jsonStringifyReplacer=(d,p)=>typeof p=="bigint"?p.toString():p})(ac||(ac={}));const si=ac.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),XE=n=>{switch(typeof n){case"undefined":return si.undefined;case"string":return si.string;case"number":return isNaN(n)?si.nan:si.number;case"boolean":return si.boolean;case"function":return si.function;case"bigint":return si.bigint;case"object":return Array.isArray(n)?si.array:n===null?si.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?si.promise:typeof Map<"u"&&n instanceof Map?si.map:typeof Set<"u"&&n instanceof Set?si.set:typeof Date<"u"&&n instanceof Date?si.date:si.object;default:return si.unknown}},Yr=ac.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]),Rsr=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class bS extends Error{constructor(r){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const c=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,c):this.__proto__=c,this.name="ZodError",this.issues=r}get errors(){return this.issues}format(r){const c=r||function(p){return p.message},u={_errors:[]},d=p=>{for(const m of p.issues)if(m.code==="invalid_union")m.unionErrors.map(d);else if(m.code==="invalid_return_type")d(m.returnTypeError);else if(m.code==="invalid_arguments")d(m.argumentsError);else if(m.path.length===0)u._errors.push(c(m));else{let x=u,E=0;for(;Ec.message){const c={},u=[];for(const d of this.issues)d.path.length>0?(c[d.path[0]]=c[d.path[0]]||[],c[d.path[0]].push(r(d))):u.push(r(d));return{formErrors:u,fieldErrors:c}}get formErrors(){return this.flatten()}}bS.create=n=>new bS(n);const zq=(n,r)=>{let c;switch(n.code){case Yr.invalid_type:n.received===si.undefined?c="Required":c=`Expected ${n.expected}, received ${n.received}`;break;case Yr.invalid_literal:c=`Invalid literal value, expected ${JSON.stringify(n.expected,ac.jsonStringifyReplacer)}`;break;case Yr.unrecognized_keys:c=`Unrecognized key(s) in object: ${ac.joinValues(n.keys,", ")}`;break;case Yr.invalid_union:c="Invalid input";break;case Yr.invalid_union_discriminator:c=`Invalid discriminator value. Expected ${ac.joinValues(n.options)}`;break;case Yr.invalid_enum_value:c=`Invalid enum value. Expected ${ac.joinValues(n.options)}, received '${n.received}'`;break;case Yr.invalid_arguments:c="Invalid function arguments";break;case Yr.invalid_return_type:c="Invalid function return type";break;case Yr.invalid_date:c="Invalid date";break;case Yr.invalid_string:typeof n.validation=="object"?"startsWith"in n.validation?c=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?c=`Invalid input: must end with "${n.validation.endsWith}"`:ac.assertNever(n.validation):n.validation!=="regex"?c=`Invalid ${n.validation}`:c="Invalid";break;case Yr.too_small:n.type==="array"?c=`Array must contain ${n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?c=`String must contain ${n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?c=`Number must be greater than ${n.inclusive?"or equal to ":""}${n.minimum}`:n.type==="date"?c=`Date must be greater than ${n.inclusive?"or equal to ":""}${new Date(n.minimum)}`:c="Invalid input";break;case Yr.too_big:n.type==="array"?c=`Array must contain ${n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?c=`String must contain ${n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?c=`Number must be less than ${n.inclusive?"or equal to ":""}${n.maximum}`:n.type==="date"?c=`Date must be smaller than ${n.inclusive?"or equal to ":""}${new Date(n.maximum)}`:c="Invalid input";break;case Yr.custom:c="Invalid input";break;case Yr.invalid_intersection_types:c="Intersection results could not be merged";break;case Yr.not_multiple_of:c=`Number must be a multiple of ${n.multipleOf}`;break;default:c=r.defaultError,ac.assertNever(n)}return{message:c}};let tUt=zq;function $sr(n){tUt=n}function Eue(){return tUt}const kue=n=>{const{data:r,path:c,errorMaps:u,issueData:d}=n,p=[...c,...d.path||[]],m={...d,path:p};let x="";const E=u.filter(k=>!!k).slice().reverse();for(const k of E)x=k(m,{data:r,defaultError:x}).message;return{...d,path:p,message:d.message||x}},Lsr=[];function Wi(n,r){const c=kue({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Eue(),zq].filter(u=>!!u)});n.common.issues.push(c)}class Fp{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,c){const u=[];for(const d of c){if(d.status==="aborted")return ls;d.status==="dirty"&&r.dirty(),u.push(d.value)}return{status:r.value,value:u}}static async mergeObjectAsync(r,c){const u=[];for(const d of c)u.push({key:await d.key,value:await d.value});return Fp.mergeObjectSync(r,u)}static mergeObjectSync(r,c){const u={};for(const d of c){const{key:p,value:m}=d;if(p.status==="aborted"||m.status==="aborted")return ls;p.status==="dirty"&&r.dirty(),m.status==="dirty"&&r.dirty(),(typeof m.value<"u"||d.alwaysSet)&&(u[p.value]=m.value)}return{status:r.value,value:u}}}const ls=Object.freeze({status:"aborted"}),Fsr=n=>({status:"dirty",value:n}),Bp=n=>({status:"valid",value:n}),ROe=n=>n.status==="aborted",$Oe=n=>n.status==="dirty",Cue=n=>n.status==="valid",LOe=n=>typeof Promise!==void 0&&n instanceof Promise;var Ra;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(Ra||(Ra={}));class n3{constructor(r,c,u,d){this.parent=r,this.data=c,this._path=u,this._key=d}get path(){return this._path.concat(this._key)}}const KAt=(n,r)=>{if(Cue(r))return{success:!0,data:r.value};{if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");const c=new bS(n.common.issues);return{success:!1,error:c}}};function oa(n){if(!n)return{};const{errorMap:r,invalid_type_error:c,required_error:u,description:d}=n;if(r&&(c||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:d}:{errorMap:(m,x)=>m.code!=="invalid_type"?{message:x.defaultError}:typeof x.data>"u"?{message:u!=null?u:x.defaultError}:{message:c!=null?c:x.defaultError},description:d}}class ra{constructor(r){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(r){return XE(r.data)}_getOrReturnCtx(r,c){return c||{common:r.parent.common,data:r.data,parsedType:XE(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new Fp,ctx:{common:r.parent.common,data:r.data,parsedType:XE(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const c=this._parse(r);if(LOe(c))throw new Error("Synchronous parse encountered promise.");return c}_parseAsync(r){const c=this._parse(r);return Promise.resolve(c)}parse(r,c){const u=this.safeParse(r,c);if(u.success)return u.data;throw u.error}safeParse(r,c){var u;const d={common:{issues:[],async:(u=c==null?void 0:c.async)!==null&&u!==void 0?u:!1,contextualErrorMap:c==null?void 0:c.errorMap},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:XE(r)},p=this._parseSync({data:r,path:d.path,parent:d});return KAt(d,p)}async parseAsync(r,c){const u=await this.safeParseAsync(r,c);if(u.success)return u.data;throw u.error}async safeParseAsync(r,c){const u={common:{issues:[],contextualErrorMap:c==null?void 0:c.errorMap,async:!0},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:XE(r)},d=this._parse({data:r,path:[],parent:u}),p=await(LOe(d)?d:Promise.resolve(d));return KAt(u,p)}refine(r,c){const u=d=>typeof c=="string"||typeof c>"u"?{message:c}:typeof c=="function"?c(d):c;return this._refinement((d,p)=>{const m=r(d),x=()=>p.addIssue({code:Yr.custom,...u(d)});return typeof Promise<"u"&&m instanceof Promise?m.then(E=>E?!0:(x(),!1)):m?!0:(x(),!1)})}refinement(r,c){return this._refinement((u,d)=>r(u)?!0:(d.addIssue(typeof c=="function"?c(u,d):c),!1))}_refinement(r){return new o3({schema:this,typeName:Xo.ZodEffects,effect:{type:"refinement",refinement:r}})}optional(){return Kx.create(this)}nullable(){return G7.create(this)}nullish(){return this.optional().nullable()}array(){return r3.create(this)}promise(){return GD.create(this)}or(r){return Vq.create([this,r])}and(r){return Uq.create(this,r)}transform(r){return new o3({schema:this,typeName:Xo.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const c=typeof r=="function"?r:()=>r;return new rje({innerType:this,defaultValue:c,typeName:Xo.ZodDefault})}brand(){return new rUt({typeName:Xo.ZodBranded,type:this,...oa(void 0)})}describe(r){const c=this.constructor;return new c({...this._def,description:r})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bsr=/^c[^\s-]{8,}$/i,zsr=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Vsr=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class Mk extends ra{constructor(){super(...arguments),this._regex=(r,c,u)=>this.refinement(d=>r.test(d),{validation:c,code:Yr.invalid_string,...Ra.errToObj(u)}),this.nonempty=r=>this.min(1,Ra.errToObj(r)),this.trim=()=>new Mk({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(r){if(this._getType(r)!==si.string){const p=this._getOrReturnCtx(r);return Wi(p,{code:Yr.invalid_type,expected:si.string,received:p.parsedType}),ls}const u=new Fp;let d;for(const p of this._def.checks)if(p.kind==="min")r.data.lengthp.value&&(d=this._getOrReturnCtx(r,d),Wi(d,{code:Yr.too_big,maximum:p.value,type:"string",inclusive:!0,message:p.message}),u.dirty());else if(p.kind==="email")Vsr.test(r.data)||(d=this._getOrReturnCtx(r,d),Wi(d,{validation:"email",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="uuid")zsr.test(r.data)||(d=this._getOrReturnCtx(r,d),Wi(d,{validation:"uuid",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="cuid")Bsr.test(r.data)||(d=this._getOrReturnCtx(r,d),Wi(d,{validation:"cuid",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="url")try{new URL(r.data)}catch{d=this._getOrReturnCtx(r,d),Wi(d,{validation:"url",code:Yr.invalid_string,message:p.message}),u.dirty()}else p.kind==="regex"?(p.regex.lastIndex=0,p.regex.test(r.data)||(d=this._getOrReturnCtx(r,d),Wi(d,{validation:"regex",code:Yr.invalid_string,message:p.message}),u.dirty())):p.kind==="trim"?r.data=r.data.trim():p.kind==="startsWith"?r.data.startsWith(p.value)||(d=this._getOrReturnCtx(r,d),Wi(d,{code:Yr.invalid_string,validation:{startsWith:p.value},message:p.message}),u.dirty()):p.kind==="endsWith"?r.data.endsWith(p.value)||(d=this._getOrReturnCtx(r,d),Wi(d,{code:Yr.invalid_string,validation:{endsWith:p.value},message:p.message}),u.dirty()):ac.assertNever(p);return{status:u.value,value:r.data}}_addCheck(r){return new Mk({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...Ra.errToObj(r)})}url(r){return this._addCheck({kind:"url",...Ra.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...Ra.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...Ra.errToObj(r)})}regex(r,c){return this._addCheck({kind:"regex",regex:r,...Ra.errToObj(c)})}startsWith(r,c){return this._addCheck({kind:"startsWith",value:r,...Ra.errToObj(c)})}endsWith(r,c){return this._addCheck({kind:"endsWith",value:r,...Ra.errToObj(c)})}min(r,c){return this._addCheck({kind:"min",value:r,...Ra.errToObj(c)})}max(r,c){return this._addCheck({kind:"max",value:r,...Ra.errToObj(c)})}length(r,c){return this.min(r,c).max(r,c)}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get minLength(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r}get maxLength(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuenew Mk({checks:[],typeName:Xo.ZodString,...oa(n)});function Usr(n,r){const c=(n.toString().split(".")[1]||"").length,u=(r.toString().split(".")[1]||"").length,d=c>u?c:u,p=parseInt(n.toFixed(d).replace(".","")),m=parseInt(r.toFixed(d).replace(".",""));return p%m/Math.pow(10,d)}class q7 extends ra{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._getType(r)!==si.number){const p=this._getOrReturnCtx(r);return Wi(p,{code:Yr.invalid_type,expected:si.number,received:p.parsedType}),ls}let u;const d=new Fp;for(const p of this._def.checks)p.kind==="int"?ac.isInteger(r.data)||(u=this._getOrReturnCtx(r,u),Wi(u,{code:Yr.invalid_type,expected:"integer",received:"float",message:p.message}),d.dirty()):p.kind==="min"?(p.inclusive?r.datap.value:r.data>=p.value)&&(u=this._getOrReturnCtx(r,u),Wi(u,{code:Yr.too_big,maximum:p.value,type:"number",inclusive:p.inclusive,message:p.message}),d.dirty()):p.kind==="multipleOf"?Usr(r.data,p.value)!==0&&(u=this._getOrReturnCtx(r,u),Wi(u,{code:Yr.not_multiple_of,multipleOf:p.value,message:p.message}),d.dirty()):ac.assertNever(p);return{status:d.value,value:r.data}}gte(r,c){return this.setLimit("min",r,!0,Ra.toString(c))}gt(r,c){return this.setLimit("min",r,!1,Ra.toString(c))}lte(r,c){return this.setLimit("max",r,!0,Ra.toString(c))}lt(r,c){return this.setLimit("max",r,!1,Ra.toString(c))}setLimit(r,c,u,d){return new q7({...this._def,checks:[...this._def.checks,{kind:r,value:c,inclusive:u,message:Ra.toString(d)}]})}_addCheck(r){return new q7({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:Ra.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ra.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ra.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ra.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ra.toString(r)})}multipleOf(r,c){return this._addCheck({kind:"multipleOf",value:r,message:Ra.toString(c)})}get minValue(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r}get maxValue(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuer.kind==="int")}}q7.create=n=>new q7({checks:[],typeName:Xo.ZodNumber,...oa(n)});class Iue extends ra{_parse(r){if(this._getType(r)!==si.bigint){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.bigint,received:u.parsedType}),ls}return Bp(r.data)}}Iue.create=n=>new Iue({typeName:Xo.ZodBigInt,...oa(n)});class Tue extends ra{_parse(r){if(this._getType(r)!==si.boolean){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.boolean,received:u.parsedType}),ls}return Bp(r.data)}}Tue.create=n=>new Tue({typeName:Xo.ZodBoolean,...oa(n)});class qD extends ra{_parse(r){if(this._getType(r)!==si.date){const p=this._getOrReturnCtx(r);return Wi(p,{code:Yr.invalid_type,expected:si.date,received:p.parsedType}),ls}if(isNaN(r.data.getTime())){const p=this._getOrReturnCtx(r);return Wi(p,{code:Yr.invalid_date}),ls}const u=new Fp;let d;for(const p of this._def.checks)p.kind==="min"?r.data.getTime()p.value&&(d=this._getOrReturnCtx(r,d),Wi(d,{code:Yr.too_big,message:p.message,inclusive:!0,maximum:p.value,type:"date"}),u.dirty()):ac.assertNever(p);return{status:u.value,value:new Date(r.data.getTime())}}_addCheck(r){return new qD({...this._def,checks:[...this._def.checks,r]})}min(r,c){return this._addCheck({kind:"min",value:r.getTime(),message:Ra.toString(c)})}max(r,c){return this._addCheck({kind:"max",value:r.getTime(),message:Ra.toString(c)})}get minDate(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuenew qD({checks:[],typeName:Xo.ZodDate,...oa(n)});class Aue extends ra{_parse(r){if(this._getType(r)!==si.undefined){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.undefined,received:u.parsedType}),ls}return Bp(r.data)}}Aue.create=n=>new Aue({typeName:Xo.ZodUndefined,...oa(n)});class Pue extends ra{_parse(r){if(this._getType(r)!==si.null){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.null,received:u.parsedType}),ls}return Bp(r.data)}}Pue.create=n=>new Pue({typeName:Xo.ZodNull,...oa(n)});class WD extends ra{constructor(){super(...arguments),this._any=!0}_parse(r){return Bp(r.data)}}WD.create=n=>new WD({typeName:Xo.ZodAny,...oa(n)});class k7 extends ra{constructor(){super(...arguments),this._unknown=!0}_parse(r){return Bp(r.data)}}k7.create=n=>new k7({typeName:Xo.ZodUnknown,...oa(n)});class AS extends ra{_parse(r){const c=this._getOrReturnCtx(r);return Wi(c,{code:Yr.invalid_type,expected:si.never,received:c.parsedType}),ls}}AS.create=n=>new AS({typeName:Xo.ZodNever,...oa(n)});class Oue extends ra{_parse(r){if(this._getType(r)!==si.undefined){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.void,received:u.parsedType}),ls}return Bp(r.data)}}Oue.create=n=>new Oue({typeName:Xo.ZodVoid,...oa(n)});class r3 extends ra{_parse(r){const{ctx:c,status:u}=this._processInputParams(r),d=this._def;if(c.parsedType!==si.array)return Wi(c,{code:Yr.invalid_type,expected:si.array,received:c.parsedType}),ls;if(d.minLength!==null&&c.data.lengthd.maxLength.value&&(Wi(c,{code:Yr.too_big,maximum:d.maxLength.value,type:"array",inclusive:!0,message:d.maxLength.message}),u.dirty()),c.common.async)return Promise.all(c.data.map((m,x)=>d.type._parseAsync(new n3(c,m,c.path,x)))).then(m=>Fp.mergeArray(u,m));const p=c.data.map((m,x)=>d.type._parseSync(new n3(c,m,c.path,x)));return Fp.mergeArray(u,p)}get element(){return this._def.type}min(r,c){return new r3({...this._def,minLength:{value:r,message:Ra.toString(c)}})}max(r,c){return new r3({...this._def,maxLength:{value:r,message:Ra.toString(c)}})}length(r,c){return this.min(r,c).max(r,c)}nonempty(r){return this.min(1,r)}}r3.create=(n,r)=>new r3({type:n,minLength:null,maxLength:null,typeName:Xo.ZodArray,...oa(r)});var _ue;(function(n){n.mergeShapes=(r,c)=>({...r,...c})})(_ue||(_ue={}));const YAt=n=>r=>new Zu({...n,shape:()=>({...n.shape(),...r})});function vM(n){if(n instanceof Zu){const r={};for(const c in n.shape){const u=n.shape[c];r[c]=Kx.create(vM(u))}return new Zu({...n._def,shape:()=>r})}else return n instanceof r3?r3.create(vM(n.element)):n instanceof Kx?Kx.create(vM(n.unwrap())):n instanceof G7?G7.create(vM(n.unwrap())):n instanceof i3?i3.create(n.items.map(r=>vM(r))):n}class Zu extends ra{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=YAt(this._def),this.extend=YAt(this._def)}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),c=ac.objectKeys(r);return this._cached={shape:r,keys:c}}_parse(r){if(this._getType(r)!==si.object){const k=this._getOrReturnCtx(r);return Wi(k,{code:Yr.invalid_type,expected:si.object,received:k.parsedType}),ls}const{status:u,ctx:d}=this._processInputParams(r),{shape:p,keys:m}=this._getCached(),x=[];if(!(this._def.catchall instanceof AS&&this._def.unknownKeys==="strip"))for(const k in d.data)m.includes(k)||x.push(k);const E=[];for(const k of m){const T=p[k],P=d.data[k];E.push({key:{status:"valid",value:k},value:T._parse(new n3(d,P,d.path,k)),alwaysSet:k in d.data})}if(this._def.catchall instanceof AS){const k=this._def.unknownKeys;if(k==="passthrough")for(const T of x)E.push({key:{status:"valid",value:T},value:{status:"valid",value:d.data[T]}});else if(k==="strict")x.length>0&&(Wi(d,{code:Yr.unrecognized_keys,keys:x}),u.dirty());else if(k!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const k=this._def.catchall;for(const T of x){const P=d.data[T];E.push({key:{status:"valid",value:T},value:k._parse(new n3(d,P,d.path,T)),alwaysSet:T in d.data})}}return d.common.async?Promise.resolve().then(async()=>{const k=[];for(const T of E){const P=await T.key;k.push({key:P,value:await T.value,alwaysSet:T.alwaysSet})}return k}).then(k=>Fp.mergeObjectSync(u,k)):Fp.mergeObjectSync(u,E)}get shape(){return this._def.shape()}strict(r){return Ra.errToObj,new Zu({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(c,u)=>{var d,p,m,x;const E=(m=(p=(d=this._def).errorMap)===null||p===void 0?void 0:p.call(d,c,u).message)!==null&&m!==void 0?m:u.defaultError;return c.code==="unrecognized_keys"?{message:(x=Ra.errToObj(r).message)!==null&&x!==void 0?x:E}:{message:E}}}:{}})}strip(){return new Zu({...this._def,unknownKeys:"strip"})}passthrough(){return new Zu({...this._def,unknownKeys:"passthrough"})}setKey(r,c){return this.augment({[r]:c})}merge(r){return new Zu({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>_ue.mergeShapes(this._def.shape(),r._def.shape()),typeName:Xo.ZodObject})}catchall(r){return new Zu({...this._def,catchall:r})}pick(r){const c={};return ac.objectKeys(r).map(u=>{this.shape[u]&&(c[u]=this.shape[u])}),new Zu({...this._def,shape:()=>c})}omit(r){const c={};return ac.objectKeys(this.shape).map(u=>{ac.objectKeys(r).indexOf(u)===-1&&(c[u]=this.shape[u])}),new Zu({...this._def,shape:()=>c})}deepPartial(){return vM(this)}partial(r){const c={};if(r)return ac.objectKeys(this.shape).map(u=>{ac.objectKeys(r).indexOf(u)===-1?c[u]=this.shape[u]:c[u]=this.shape[u].optional()}),new Zu({...this._def,shape:()=>c});for(const u in this.shape){const d=this.shape[u];c[u]=d.optional()}return new Zu({...this._def,shape:()=>c})}required(){const r={};for(const c in this.shape){let d=this.shape[c];for(;d instanceof Kx;)d=d._def.innerType;r[c]=d}return new Zu({...this._def,shape:()=>r})}keyof(){return nUt(ac.objectKeys(this.shape))}}Zu.create=(n,r)=>new Zu({shape:()=>n,unknownKeys:"strip",catchall:AS.create(),typeName:Xo.ZodObject,...oa(r)});Zu.strictCreate=(n,r)=>new Zu({shape:()=>n,unknownKeys:"strict",catchall:AS.create(),typeName:Xo.ZodObject,...oa(r)});Zu.lazycreate=(n,r)=>new Zu({shape:n,unknownKeys:"strip",catchall:AS.create(),typeName:Xo.ZodObject,...oa(r)});class Vq extends ra{_parse(r){const{ctx:c}=this._processInputParams(r),u=this._def.options;function d(p){for(const x of p)if(x.result.status==="valid")return x.result;for(const x of p)if(x.result.status==="dirty")return c.common.issues.push(...x.ctx.common.issues),x.result;const m=p.map(x=>new bS(x.ctx.common.issues));return Wi(c,{code:Yr.invalid_union,unionErrors:m}),ls}if(c.common.async)return Promise.all(u.map(async p=>{const m={...c,common:{...c.common,issues:[]},parent:null};return{result:await p._parseAsync({data:c.data,path:c.path,parent:m}),ctx:m}})).then(d);{let p;const m=[];for(const E of u){const k={...c,common:{...c.common,issues:[]},parent:null},T=E._parseSync({data:c.data,path:c.path,parent:k});if(T.status==="valid")return T;T.status==="dirty"&&!p&&(p={result:T,ctx:k}),k.common.issues.length&&m.push(k.common.issues)}if(p)return c.common.issues.push(...p.ctx.common.issues),p.result;const x=m.map(E=>new bS(E));return Wi(c,{code:Yr.invalid_union,unionErrors:x}),ls}}get options(){return this._def.options}}Vq.create=(n,r)=>new Vq({options:n,typeName:Xo.ZodUnion,...oa(r)});class Kfe extends ra{_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.object)return Wi(c,{code:Yr.invalid_type,expected:si.object,received:c.parsedType}),ls;const u=this.discriminator,d=c.data[u],p=this.options.get(d);return p?c.common.async?p._parseAsync({data:c.data,path:c.path,parent:c}):p._parseSync({data:c.data,path:c.path,parent:c}):(Wi(c,{code:Yr.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[u]}),ls)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(r,c,u){const d=new Map;try{c.forEach(p=>{const m=p.shape[r].value;d.set(m,p)})}catch{throw new Error("The discriminator value could not be extracted from all the provided schemas")}if(d.size!==c.length)throw new Error("Some of the discriminator values are not unique");return new Kfe({typeName:Xo.ZodDiscriminatedUnion,discriminator:r,options:d,...oa(u)})}}function FOe(n,r){const c=XE(n),u=XE(r);if(n===r)return{valid:!0,data:n};if(c===si.object&&u===si.object){const d=ac.objectKeys(r),p=ac.objectKeys(n).filter(x=>d.indexOf(x)!==-1),m={...n,...r};for(const x of p){const E=FOe(n[x],r[x]);if(!E.valid)return{valid:!1};m[x]=E.data}return{valid:!0,data:m}}else if(c===si.array&&u===si.array){if(n.length!==r.length)return{valid:!1};const d=[];for(let p=0;p{if(ROe(p)||ROe(m))return ls;const x=FOe(p.value,m.value);return x.valid?(($Oe(p)||$Oe(m))&&c.dirty(),{status:c.value,value:x.data}):(Wi(u,{code:Yr.invalid_intersection_types}),ls)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([p,m])=>d(p,m)):d(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Uq.create=(n,r,c)=>new Uq({left:n,right:r,typeName:Xo.ZodIntersection,...oa(c)});class i3 extends ra{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.array)return Wi(u,{code:Yr.invalid_type,expected:si.array,received:u.parsedType}),ls;if(u.data.lengththis._def.items.length&&(Wi(u,{code:Yr.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),c.dirty());const p=u.data.map((m,x)=>{const E=this._def.items[x]||this._def.rest;return E?E._parse(new n3(u,m,u.path,x)):null}).filter(m=>!!m);return u.common.async?Promise.all(p).then(m=>Fp.mergeArray(c,m)):Fp.mergeArray(c,p)}get items(){return this._def.items}rest(r){return new i3({...this._def,rest:r})}}i3.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new i3({items:n,typeName:Xo.ZodTuple,rest:null,...oa(r)})};class Hq extends ra{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.object)return Wi(u,{code:Yr.invalid_type,expected:si.object,received:u.parsedType}),ls;const d=[],p=this._def.keyType,m=this._def.valueType;for(const x in u.data)d.push({key:p._parse(new n3(u,x,u.path,x)),value:m._parse(new n3(u,u.data[x],u.path,x))});return u.common.async?Fp.mergeObjectAsync(c,d):Fp.mergeObjectSync(c,d)}get element(){return this._def.valueType}static create(r,c,u){return c instanceof ra?new Hq({keyType:r,valueType:c,typeName:Xo.ZodRecord,...oa(u)}):new Hq({keyType:Mk.create(),valueType:r,typeName:Xo.ZodRecord,...oa(c)})}}class Mue extends ra{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.map)return Wi(u,{code:Yr.invalid_type,expected:si.map,received:u.parsedType}),ls;const d=this._def.keyType,p=this._def.valueType,m=[...u.data.entries()].map(([x,E],k)=>({key:d._parse(new n3(u,x,u.path,[k,"key"])),value:p._parse(new n3(u,E,u.path,[k,"value"]))}));if(u.common.async){const x=new Map;return Promise.resolve().then(async()=>{for(const E of m){const k=await E.key,T=await E.value;if(k.status==="aborted"||T.status==="aborted")return ls;(k.status==="dirty"||T.status==="dirty")&&c.dirty(),x.set(k.value,T.value)}return{status:c.value,value:x}})}else{const x=new Map;for(const E of m){const k=E.key,T=E.value;if(k.status==="aborted"||T.status==="aborted")return ls;(k.status==="dirty"||T.status==="dirty")&&c.dirty(),x.set(k.value,T.value)}return{status:c.value,value:x}}}}Mue.create=(n,r,c)=>new Mue({valueType:r,keyType:n,typeName:Xo.ZodMap,...oa(c)});class W7 extends ra{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.set)return Wi(u,{code:Yr.invalid_type,expected:si.set,received:u.parsedType}),ls;const d=this._def;d.minSize!==null&&u.data.sized.maxSize.value&&(Wi(u,{code:Yr.too_big,maximum:d.maxSize.value,type:"set",inclusive:!0,message:d.maxSize.message}),c.dirty());const p=this._def.valueType;function m(E){const k=new Set;for(const T of E){if(T.status==="aborted")return ls;T.status==="dirty"&&c.dirty(),k.add(T.value)}return{status:c.value,value:k}}const x=[...u.data.values()].map((E,k)=>p._parse(new n3(u,E,u.path,k)));return u.common.async?Promise.all(x).then(E=>m(E)):m(x)}min(r,c){return new W7({...this._def,minSize:{value:r,message:Ra.toString(c)}})}max(r,c){return new W7({...this._def,maxSize:{value:r,message:Ra.toString(c)}})}size(r,c){return this.min(r,c).max(r,c)}nonempty(r){return this.min(1,r)}}W7.create=(n,r)=>new W7({valueType:n,minSize:null,maxSize:null,typeName:Xo.ZodSet,...oa(r)});class cD extends ra{constructor(){super(...arguments),this.validate=this.implement}_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.function)return Wi(c,{code:Yr.invalid_type,expected:si.function,received:c.parsedType}),ls;function u(x,E){return kue({data:x,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,Eue(),zq].filter(k=>!!k),issueData:{code:Yr.invalid_arguments,argumentsError:E}})}function d(x,E){return kue({data:x,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,Eue(),zq].filter(k=>!!k),issueData:{code:Yr.invalid_return_type,returnTypeError:E}})}const p={errorMap:c.common.contextualErrorMap},m=c.data;return this._def.returns instanceof GD?Bp(async(...x)=>{const E=new bS([]),k=await this._def.args.parseAsync(x,p).catch(I=>{throw E.addIssue(u(x,I)),E}),T=await m(...k);return await this._def.returns._def.type.parseAsync(T,p).catch(I=>{throw E.addIssue(d(T,I)),E})}):Bp((...x)=>{const E=this._def.args.safeParse(x,p);if(!E.success)throw new bS([u(x,E.error)]);const k=m(...E.data),T=this._def.returns.safeParse(k,p);if(!T.success)throw new bS([d(k,T.error)]);return T.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...r){return new cD({...this._def,args:i3.create(r).rest(k7.create())})}returns(r){return new cD({...this._def,returns:r})}implement(r){return this.parse(r)}strictImplement(r){return this.parse(r)}static create(r,c,u){return new cD({args:r||i3.create([]).rest(k7.create()),returns:c||k7.create(),typeName:Xo.ZodFunction,...oa(u)})}}class Due extends ra{get schema(){return this._def.getter()}_parse(r){const{ctx:c}=this._processInputParams(r);return this._def.getter()._parse({data:c.data,path:c.path,parent:c})}}Due.create=(n,r)=>new Due({getter:n,typeName:Xo.ZodLazy,...oa(r)});class Nue extends ra{_parse(r){if(r.data!==this._def.value){const c=this._getOrReturnCtx(r);return Wi(c,{code:Yr.invalid_literal,expected:this._def.value}),ls}return{status:"valid",value:r.data}}get value(){return this._def.value}}Nue.create=(n,r)=>new Nue({value:n,typeName:Xo.ZodLiteral,...oa(r)});function nUt(n,r){return new Yfe({values:n,typeName:Xo.ZodEnum,...oa(r)})}class Yfe extends ra{_parse(r){if(typeof r.data!="string"){const c=this._getOrReturnCtx(r),u=this._def.values;return Wi(c,{expected:ac.joinValues(u),received:c.parsedType,code:Yr.invalid_type}),ls}if(this._def.values.indexOf(r.data)===-1){const c=this._getOrReturnCtx(r),u=this._def.values;return Wi(c,{received:c.data,code:Yr.invalid_enum_value,options:u}),ls}return Bp(r.data)}get options(){return this._def.values}get enum(){const r={};for(const c of this._def.values)r[c]=c;return r}get Values(){const r={};for(const c of this._def.values)r[c]=c;return r}get Enum(){const r={};for(const c of this._def.values)r[c]=c;return r}}Yfe.create=nUt;class jue extends ra{_parse(r){const c=ac.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(r);if(u.parsedType!==si.string&&u.parsedType!==si.number){const d=ac.objectValues(c);return Wi(u,{expected:ac.joinValues(d),received:u.parsedType,code:Yr.invalid_type}),ls}if(c.indexOf(r.data)===-1){const d=ac.objectValues(c);return Wi(u,{received:u.data,code:Yr.invalid_enum_value,options:d}),ls}return Bp(r.data)}get enum(){return this._def.values}}jue.create=(n,r)=>new jue({values:n,typeName:Xo.ZodNativeEnum,...oa(r)});class GD extends ra{_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.promise&&c.common.async===!1)return Wi(c,{code:Yr.invalid_type,expected:si.promise,received:c.parsedType}),ls;const u=c.parsedType===si.promise?c.data:Promise.resolve(c.data);return Bp(u.then(d=>this._def.type.parseAsync(d,{path:c.path,errorMap:c.common.contextualErrorMap})))}}GD.create=(n,r)=>new GD({type:n,typeName:Xo.ZodPromise,...oa(r)});class o3 extends ra{innerType(){return this._def.schema}_parse(r){const{status:c,ctx:u}=this._processInputParams(r),d=this._def.effect||null;if(d.type==="preprocess"){const m=d.transform(u.data);return u.common.async?Promise.resolve(m).then(x=>this._def.schema._parseAsync({data:x,path:u.path,parent:u})):this._def.schema._parseSync({data:m,path:u.path,parent:u})}const p={addIssue:m=>{Wi(u,m),m.fatal?c.abort():c.dirty()},get path(){return u.path}};if(p.addIssue=p.addIssue.bind(p),d.type==="refinement"){const m=x=>{const E=d.refinement(x,p);if(u.common.async)return Promise.resolve(E);if(E instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return x};if(u.common.async===!1){const x=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return x.status==="aborted"?ls:(x.status==="dirty"&&c.dirty(),m(x.value),{status:c.value,value:x.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(x=>x.status==="aborted"?ls:(x.status==="dirty"&&c.dirty(),m(x.value).then(()=>({status:c.value,value:x.value}))))}if(d.type==="transform")if(u.common.async===!1){const m=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!Cue(m))return m;const x=d.transform(m.value,p);if(x instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:c.value,value:x}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(m=>Cue(m)?Promise.resolve(d.transform(m.value,p)).then(x=>({status:c.value,value:x})):m);ac.assertNever(d)}}o3.create=(n,r,c)=>new o3({schema:n,typeName:Xo.ZodEffects,effect:r,...oa(c)});o3.createWithPreprocess=(n,r,c)=>new o3({schema:r,effect:{type:"preprocess",transform:n},typeName:Xo.ZodEffects,...oa(c)});class Kx extends ra{_parse(r){return this._getType(r)===si.undefined?Bp(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Kx.create=(n,r)=>new Kx({innerType:n,typeName:Xo.ZodOptional,...oa(r)});class G7 extends ra{_parse(r){return this._getType(r)===si.null?Bp(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}G7.create=(n,r)=>new G7({innerType:n,typeName:Xo.ZodNullable,...oa(r)});class rje extends ra{_parse(r){const{ctx:c}=this._processInputParams(r);let u=c.data;return c.parsedType===si.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:c.path,parent:c})}removeDefault(){return this._def.innerType}}rje.create=(n,r)=>new Kx({innerType:n,typeName:Xo.ZodOptional,...oa(r)});class Rue extends ra{_parse(r){if(this._getType(r)!==si.nan){const u=this._getOrReturnCtx(r);return Wi(u,{code:Yr.invalid_type,expected:si.nan,received:u.parsedType}),ls}return{status:"valid",value:r.data}}}Rue.create=n=>new Rue({typeName:Xo.ZodNaN,...oa(n)});const Hsr=Symbol("zod_brand");class rUt extends ra{_parse(r){const{ctx:c}=this._processInputParams(r),u=c.data;return this._def.type._parse({data:u,path:c.path,parent:c})}unwrap(){return this._def.type}}const iUt=(n,r={},c)=>n?WD.create().superRefine((u,d)=>{if(!n(u)){const p=typeof r=="function"?r(u):r,m=typeof p=="string"?{message:p}:p;d.addIssue({code:"custom",...m,fatal:c})}}):WD.create(),qsr={object:Zu.lazycreate};var Xo;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded"})(Xo||(Xo={}));const Wsr=(n,r={message:`Input not instance of ${n.name}`})=>iUt(c=>c instanceof n,r,!0),oUt=Mk.create,sUt=q7.create,Gsr=Rue.create,Xsr=Iue.create,aUt=Tue.create,Ksr=qD.create,Ysr=Aue.create,Qsr=Pue.create,Zsr=WD.create,Jsr=k7.create,ear=AS.create,tar=Oue.create,nar=r3.create,rar=Zu.create,iar=Zu.strictCreate,oar=Vq.create,sar=Kfe.create,aar=Uq.create,car=i3.create,uar=Hq.create,lar=Mue.create,far=W7.create,dar=cD.create,har=Due.create,par=Nue.create,gar=Yfe.create,bar=jue.create,mar=GD.create,QAt=o3.create,yar=Kx.create,war=G7.create,xar=o3.createWithPreprocess,Sar=()=>oUt().optional(),Ear=()=>sUt().optional(),kar=()=>aUt().optional(),Car=ls;var pw=Object.freeze({__proto__:null,getParsedType:XE,ZodParsedType:si,defaultErrorMap:zq,setErrorMap:$sr,getErrorMap:Eue,makeIssue:kue,EMPTY_PATH:Lsr,addIssueToContext:Wi,ParseStatus:Fp,INVALID:ls,DIRTY:Fsr,OK:Bp,isAborted:ROe,isDirty:$Oe,isValid:Cue,isAsync:LOe,ZodType:ra,ZodString:Mk,ZodNumber:q7,ZodBigInt:Iue,ZodBoolean:Tue,ZodDate:qD,ZodUndefined:Aue,ZodNull:Pue,ZodAny:WD,ZodUnknown:k7,ZodNever:AS,ZodVoid:Oue,ZodArray:r3,get objectUtil(){return _ue},ZodObject:Zu,ZodUnion:Vq,ZodDiscriminatedUnion:Kfe,ZodIntersection:Uq,ZodTuple:i3,ZodRecord:Hq,ZodMap:Mue,ZodSet:W7,ZodFunction:cD,ZodLazy:Due,ZodLiteral:Nue,ZodEnum:Yfe,ZodNativeEnum:jue,ZodPromise:GD,ZodEffects:o3,ZodTransformer:o3,ZodOptional:Kx,ZodNullable:G7,ZodDefault:rje,ZodNaN:Rue,BRAND:Hsr,ZodBranded:rUt,custom:iUt,Schema:ra,ZodSchema:ra,late:qsr,get ZodFirstPartyTypeKind(){return Xo},any:Zsr,array:nar,bigint:Xsr,boolean:aUt,date:Ksr,discriminatedUnion:sar,effect:QAt,enum:gar,function:dar,instanceof:Wsr,intersection:aar,lazy:har,literal:par,map:lar,nan:Gsr,nativeEnum:bar,never:ear,null:Qsr,nullable:war,number:sUt,object:rar,oboolean:kar,onumber:Ear,optional:yar,ostring:Sar,preprocess:xar,promise:mar,record:uar,set:far,strictObject:iar,string:oUt,transformer:QAt,tuple:car,undefined:Ysr,union:oar,unknown:Jsr,void:tar,NEVER:Car,ZodIssueCode:Yr,quotelessJson:Rsr,ZodError:bS});const Iar=pw.object({minX:pw.number(),minY:pw.number(),width:pw.number(),height:pw.number(),initial:pw.optional(pw.object({minX:pw.number(),minY:pw.number(),width:pw.number(),height:pw.number()}))}),cUt=rfe()?window.localStorage:ife(),Tar="viewbox_cache",uUt=n=>`${Tar}#${n}`;function Aar(n,r){U.exports.useEffect(()=>{const c=setTimeout(()=>{cUt.setItem(n,JSON.stringify(r))},300);return()=>clearTimeout(c)},[n,r])}function Par(n,r){Aar(uUt(n),r)}function Oar(n){const r=[n.snapshot.id,n.snapshot.root.getSerialisableId()];for(const c of r)try{const u=uUt(c),d=cUt.getItem(u);if(d)return Iar.parse(JSON.parse(d))}catch(u){console.error("error parsing viewBox",u)}}function _ar(n,r,c){return Math.max(r,Math.min(n,c))}const Nu={toVector(n,r){return n===void 0&&(n=r),Array.isArray(n)?n:[n,n]},add(n,r){return[n[0]+r[0],n[1]+r[1]]},sub(n,r){return[n[0]-r[0],n[1]-r[1]]},addTo(n,r){n[0]+=r[0],n[1]+=r[1]},subTo(n,r){n[0]-=r[0],n[1]-=r[1]}};function ZAt(n,r,c){return r===0||Math.abs(r)===1/0?Math.pow(n,c*5):n*r*c/(r+c*n)}function JAt(n,r,c,u=.15){return u===0?_ar(n,r,c):nc?+ZAt(n-c,c-r,u)+c:n}function Mar(n,[r,c],[u,d]){const[[p,m],[x,E]]=n;return[JAt(r,p,m,u),JAt(c,x,E,d)]}function Zf(n,r,c){return r in n?Object.defineProperty(n,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[r]=c,n}function ePt(n,r){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,u)}return c}function kl(n){for(var r=1;r{var c,u;return r.target===n.currentTarget||((c=n.currentTarget)===null||c===void 0||(u=c.contains)===null||u===void 0?void 0:u.call(c,r.target))})}function Bar(n){return n.type==="touchend"||n.type==="touchcancel"?n.changedTouches:n.targetTouches}function dUt(n){return Qfe(n)?Bar(n)[0]:n}function BOe(n,r){const c=r.clientX-n.clientX,u=r.clientY-n.clientY,d=(r.clientX+n.clientX)/2,p=(r.clientY+n.clientY)/2,m=Math.hypot(c,u);return{angle:-(Math.atan2(c,u)*180)/Math.PI,distance:m,origin:[d,p]}}function zar(n){return Far(n).map(r=>r.identifier)}function nPt(n,r){const[c,u]=Array.from(n.touches).filter(d=>r.includes(d.identifier));return BOe(c,u)}function pTe(n){const r=dUt(n);return Qfe(n)?r.identifier:r.pointerId}function XD(n){const r=dUt(n);return[r.clientX,r.clientY]}const rPt=40,iPt=800;function hUt(n){let{deltaX:r,deltaY:c,deltaMode:u}=n;return u===1?(r*=rPt,c*=rPt):u===2&&(r*=iPt,c*=iPt),[r,c]}function Var(n){var r,c;const{scrollX:u,scrollY:d,scrollLeft:p,scrollTop:m}=n.currentTarget;return[(r=u!=null?u:p)!==null&&r!==void 0?r:0,(c=d!=null?d:m)!==null&&c!==void 0?c:0]}function Uar(n){const r={};if("buttons"in n&&(r.buttons=n.buttons),"shiftKey"in n){const{shiftKey:c,altKey:u,metaKey:d,ctrlKey:p}=n;Object.assign(r,{shiftKey:c,altKey:u,metaKey:d,ctrlKey:p})}return r}function $ue(n,...r){return typeof n=="function"?n(...r):n}function Har(){}function qar(...n){return n.length===0?Har:n.length===1?n[0]:function(){let r;for(const c of n)r=c.apply(this,arguments)||r;return r}}function oPt(n,r){return Object.assign({},r,n||{})}const War=32;class pUt{constructor(r,c,u){this.ctrl=r,this.args=c,this.key=u,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:c,ingKey:u,args:d}=this;c[u]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=d,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const c=this.state,u=this.config;c._active||(this.reset(),this.computeInitial(),c._active=!0,c.target=r.target,c.currentTarget=r.currentTarget,c.lastOffset=u.from?$ue(u.from,c):c.offset,c.offset=c.lastOffset),c.startTime=c.timeStamp=r.timeStamp}computeValues(r){const c=this.state;c._values=r,c.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:c,config:u,shared:d}=this;c.args=this.args;let p=0;if(r&&(c.event=r,u.preventDefault&&r.cancelable&&c.event.preventDefault(),c.type=r.type,d.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,d.locked=!!document.pointerLockElement,Object.assign(d,Uar(r)),d.down=d.pressed=d.buttons%2===1||d.touches>0,p=r.timeStamp-c.timeStamp,c.timeStamp=r.timeStamp,c.elapsedTime=c.timeStamp-c.startTime),c._active){const Z=c._delta.map(Math.abs);Nu.addTo(c._distance,Z)}this.axisIntent&&this.axisIntent(r);const[m,x]=c._movement,[E,k]=u.threshold,{_step:T,values:P}=c;if(u.hasCustomTransform?(T[0]===!1&&(T[0]=Math.abs(m)>=E&&P[0]),T[1]===!1&&(T[1]=Math.abs(x)>=k&&P[1])):(T[0]===!1&&(T[0]=Math.abs(m)>=E&&Math.sign(m)*E),T[1]===!1&&(T[1]=Math.abs(x)>=k&&Math.sign(x)*k)),c.intentional=T[0]!==!1||T[1]!==!1,!c.intentional)return;const I=[0,0];if(u.hasCustomTransform){const[Z,H]=P;I[0]=T[0]!==!1?Z-T[0]:0,I[1]=T[1]!==!1?H-T[1]:0}else I[0]=T[0]!==!1?m-T[0]:0,I[1]=T[1]!==!1?x-T[1]:0;this.restrictToAxis&&!c._blocked&&this.restrictToAxis(I);const O=c.offset,N=c._active&&!c._blocked||c.active;N&&(c.first=c._active&&!c.active,c.last=!c._active&&c.active,c.active=d[this.ingKey]=c._active,r&&(c.first&&("bounds"in u&&(c._bounds=$ue(u.bounds,c)),this.setup&&this.setup()),c.movement=I,this.computeOffset()));const[j,L]=c.offset,[[$,F],[B,X]]=c._bounds;c.overflow=[j<$?-1:j>F?1:0,LX?1:0],c._movementBound[0]=c.overflow[0]?c._movementBound[0]===!1?c._movement[0]:c._movementBound[0]:!1,c._movementBound[1]=c.overflow[1]?c._movementBound[1]===!1?c._movement[1]:c._movementBound[1]:!1;const ne=c._active?u.rubberband||[0,0]:[0,0];if(c.offset=Mar(c._bounds,c.offset,ne),c.delta=Nu.sub(c.offset,O),this.computeMovement(),N&&(!c.last||p>War)){c.delta=Nu.sub(c.offset,O);const Z=c.delta.map(Math.abs);Nu.addTo(c.distance,Z),c.direction=c.delta.map(Math.sign),c._direction=c._delta.map(Math.sign),!c.first&&p>0&&(c.velocity=[Z[0]/p,Z[1]/p])}}emit(){const r=this.state,c=this.shared,u=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!u.triggerAllEvents)return;const d=this.handler(kl(kl(kl({},c),r),{},{[this.aliasKey]:r.values}));d!==void 0&&(r.memo=d)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Gar([n,r],c){const u=Math.abs(n),d=Math.abs(r);if(u>d&&u>c)return"x";if(d>u&&d>c)return"y"}class OW extends pUt{constructor(...r){super(...r),Zf(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Nu.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Nu.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const c=this.state,u=this.config;if(!c.axis&&r){const d=typeof u.axisThreshold=="object"?u.axisThreshold[fUt(r)]:u.axisThreshold;c.axis=Gar(c._movement,d)}c._blocked=(u.lockDirection||!!u.axis)&&!c.axis||!!u.axis&&u.axis!==c.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const Xar=n=>n,sPt=.15,gUt={enabled(n=!0){return n},eventOptions(n,r,c){return kl(kl({},c.shared.eventOptions),n)},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[sPt,sPt];case!1:return[0,0];default:return Nu.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Nu.toVector(n)},transform(n,r,c){const u=n||c.shared.transform;return this.hasCustomTransform=!!u,u||Xar},threshold(n){return Nu.toVector(n,0)}},Kar=0,cT=kl(kl({},gUt),{},{axis(n,r,{axis:c}){if(this.lockDirection=c==="lock",!this.lockDirection)return c},axisThreshold(n=Kar){return n},bounds(n={}){if(typeof n=="function")return p=>cT.bounds(n(p));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:r=-1/0,right:c=1/0,top:u=-1/0,bottom:d=1/0}=n;return[[r,c],[u,d]]}}),Jse=10,aPt={ArrowRight:(n=1)=>[Jse*n,0],ArrowLeft:(n=1)=>[-Jse*n,0],ArrowUp:(n=1)=>[0,-Jse*n],ArrowDown:(n=1)=>[0,Jse*n]};class Yar extends OW{constructor(...r){super(...r),Zf(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const c=r._bounds.getBoundingClientRect(),u=r.currentTarget.getBoundingClientRect(),d={left:c.left-u.left+r.offset[0],right:c.right-u.right+r.offset[0],top:c.top-u.top+r.offset[1],bottom:c.bottom-u.bottom+r.offset[1]};r._bounds=cT.bounds(d)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const c=this.config,u=this.state;if(r.buttons!=null&&(Array.isArray(c.pointerButtons)?!c.pointerButtons.includes(r.buttons):c.pointerButtons!==-1&&c.pointerButtons!==r.buttons))return;const d=this.ctrl.setEventIds(r);c.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(d&&d.size>1&&u._pointerActive)&&(this.start(r),this.setupPointer(r),u._pointerId=pTe(r),u._pointerActive=!0,this.computeValues(XD(r)),this.computeInitial(),c.preventScrollAxis&&fUt(r)!=="mouse"?(u._active=!1,this.setupScrollPrevention(r)):c.delay>0?(this.setupDelayTrigger(r),c.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const c=this.state;c._active=!0,c._preventScroll=!0,c._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const c=this.state,u=this.config;if(!c._pointerActive||c.type===r.type&&r.timeStamp===c.timeStamp)return;const d=pTe(r);if(c._pointerId!==void 0&&d!==c._pointerId)return;const p=XD(r);if(document.pointerLockElement===r.target?c._delta=[r.movementX,r.movementY]:(c._delta=Nu.sub(p,c._values),this.computeValues(p)),Nu.addTo(c._movement,c._delta),this.compute(r),c._delayed&&c.intentional){this.timeoutStore.remove("dragDelay"),c.active=!1,this.startPointerDrag(r);return}if(u.preventScrollAxis&&!c._preventScroll)if(c.axis)if(c.axis===u.preventScrollAxis||u.preventScrollAxis==="xy"){c._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{}const c=this.state,u=this.config;if(!c._active||!c._pointerActive)return;const d=pTe(r);if(c._pointerId!==void 0&&d!==c._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[p,m]=c._distance;if(c.tap=p<=u.tapsThreshold&&m<=u.tapsThreshold,c.tap&&u.filterTaps)c._force=!0;else{const[x,E]=c.direction,[k,T]=c.velocity,[P,I]=c.movement,[O,N]=u.swipe.velocity,[j,L]=u.swipe.distance,$=u.swipe.duration;c.elapsedTime<$&&(Math.abs(k)>O&&Math.abs(P)>j&&(c.swipe[0]=x),Math.abs(T)>N&&Math.abs(I)>L&&(c.swipe[1]=E))}this.emit()}pointerClick(r){!this.state.tap&&r.detail>0&&(r.preventDefault(),r.stopPropagation())}setupPointer(r){const c=this.config,u=c.device;c.pointerLock&&r.currentTarget.requestPointerLock(),c.pointerCapture||(this.eventStore.add(this.sharedConfig.window,u,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,Qar(r);const c=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",c),this.eventStore.add(this.sharedConfig.window,"touch","cancel",c),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const c=aPt[r.key];if(c){const u=this.state,d=r.shiftKey?10:r.altKey?.1:1;this.start(r),u._delta=c(d),u._keyboardActive=!0,Nu.addTo(u._movement,u._delta),this.compute(r),this.emit()}}keyUp(r){r.key in aPt&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const c=this.config.device;r(c,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(c,"change",this.pointerMove.bind(this)),r(c,"end",this.pointerUp.bind(this)),r(c,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Qar(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const _W=typeof window<"u"&&window.document&&window.document.createElement;function Zar(){return _W&&"ontouchstart"in window}function cPt(){return Zar()||_W&&window.navigator.maxTouchPoints>1}function Jar(){return _W&&"onpointerdown"in window}function ecr(){return _W&&"exitPointerLock"in window.document}function tcr(){try{return"constructor"in GestureEvent}catch{return!1}}const pv={isBrowser:_W,gesture:tcr(),touch:cPt(),touchscreen:cPt(),pointer:Jar(),pointerLock:ecr()},ncr=250,rcr=180,icr=.5,ocr=50,scr=250,uPt={mouse:0,touch:0,pen:8},acr=kl(kl({},cT),{},{device(n,r,{pointer:{touch:c=!1,lock:u=!1,mouse:d=!1}={}}){return this.pointerLock=u&&pv.pointerLock,pv.touch&&c?"touch":this.pointerLock?"mouse":pv.pointer&&!d?"pointer":pv.touch?"touch":"mouse"},preventScrollAxis(n,r,{preventScroll:c}){if(this.preventScrollDelay=typeof c=="number"?c:c||c===void 0&&n?ncr:void 0,!(!pv.touchscreen||c===!1))return n||(c!==void 0?"y":void 0)},pointerCapture(n,r,{pointer:{capture:c=!0,buttons:u=1}={}}){return this.pointerButtons=u,!this.pointerLock&&this.device==="pointer"&&c},keys(n=!0){return n},threshold(n,r,{filterTaps:c=!1,tapsThreshold:u=3,axis:d=void 0}){const p=Nu.toVector(n,c?u:d?1:0);return this.filterTaps=c,this.tapsThreshold=u,p},swipe({velocity:n=icr,distance:r=ocr,duration:c=scr}={}){return{velocity:this.transform(Nu.toVector(n)),distance:this.transform(Nu.toVector(r)),duration:c}},delay(n=0){switch(n){case!0:return rcr;case!1:return 0;default:return n}},axisThreshold(n){return n?kl(kl({},uPt),n):uPt}});function bUt(n){const[r,c]=n.overflow,[u,d]=n._delta,[p,m]=n._direction;(r<0&&u>0&&p<0||r>0&&u<0&&p>0)&&(n._movement[0]=n._movementBound[0]),(c<0&&d>0&&m<0||c>0&&d<0&&m>0)&&(n._movement[1]=n._movementBound[1])}const ccr=30,ucr=100;class lcr extends pUt{constructor(...r){super(...r),Zf(this,"ingKey","pinching"),Zf(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const r=this.state;r._touchIds=[],r.canceled=!1,r.cancel=this.cancel.bind(this),r.turns=0}computeOffset(){const{type:r,movement:c,lastOffset:u}=this.state;r==="wheel"?this.state.offset=Nu.add(c,u):this.state.offset=[(1+c[0])*u[0],c[1]+u[1]]}computeMovement(){const{offset:r,lastOffset:c}=this.state;this.state.movement=[r[0]/c[0],r[1]-c[1]]}axisIntent(){const r=this.state,[c,u]=r._movement;if(!r.axis){const d=Math.abs(c)*ccr-Math.abs(u);d<0?r.axis="angle":d>0&&(r.axis="scale")}}restrictToAxis(r){this.config.lockDirection&&(this.state.axis==="scale"?r[1]=0:this.state.axis==="angle"&&(r[0]=0))}cancel(){const r=this.state;r.canceled||setTimeout(()=>{r.canceled=!0,r._active=!1,this.compute(),this.emit()},0)}touchStart(r){this.ctrl.setEventIds(r);const c=this.state,u=this.ctrl.touchIds;if(c._active&&c._touchIds.every(p=>u.has(p))||u.size<2)return;this.start(r),c._touchIds=Array.from(u).slice(0,2);const d=nPt(r,c._touchIds);this.pinchStart(r,d)}pointerStart(r){if(r.buttons!=null&&r.buttons%2!==1)return;this.ctrl.setEventIds(r),r.target.setPointerCapture(r.pointerId);const c=this.state,u=c._pointerEvents,d=this.ctrl.pointerIds;if(c._active&&Array.from(u.keys()).every(m=>d.has(m))||(u.size<2&&u.set(r.pointerId,r),c._pointerEvents.size<2))return;this.start(r);const p=BOe(...Array.from(u.values()));this.pinchStart(r,p)}pinchStart(r,c){const u=this.state;u.origin=c.origin,this.computeValues([c.distance,c.angle]),this.computeInitial(),this.compute(r),this.emit()}touchMove(r){if(!this.state._active)return;const c=nPt(r,this.state._touchIds);this.pinchMove(r,c)}pointerMove(r){const c=this.state._pointerEvents;if(c.has(r.pointerId)&&c.set(r.pointerId,r),!this.state._active)return;const u=BOe(...Array.from(c.values()));this.pinchMove(r,u)}pinchMove(r,c){const u=this.state,d=u._values[1],p=c.angle-d;let m=0;Math.abs(p)>270&&(m+=Math.sign(p)),this.computeValues([c.distance,c.angle-360*m]),u.origin=c.origin,u.turns=m,u._movement=[u._values[0]/u._initial[0]-1,u._values[1]-u._initial[1]],this.compute(r),this.emit()}touchEnd(r){this.ctrl.setEventIds(r),!!this.state._active&&this.state._touchIds.some(c=>!this.ctrl.touchIds.has(c))&&(this.state._active=!1,this.compute(r),this.emit())}pointerEnd(r){const c=this.state;this.ctrl.setEventIds(r);try{r.target.releasePointerCapture(r.pointerId)}catch{}c._pointerEvents.has(r.pointerId)&&c._pointerEvents.delete(r.pointerId),!!c._active&&c._pointerEvents.size<2&&(c._active=!1,this.compute(r),this.emit())}gestureStart(r){r.cancelable&&r.preventDefault();const c=this.state;c._active||(this.start(r),this.computeValues([r.scale,r.rotation]),c.origin=[r.clientX,r.clientY],this.compute(r),this.emit())}gestureMove(r){if(r.cancelable&&r.preventDefault(),!this.state._active)return;const c=this.state;this.computeValues([r.scale,r.rotation]),c.origin=[r.clientX,r.clientY];const u=c._movement;c._movement=[r.scale-1,r.rotation],c._delta=Nu.sub(c._movement,u),this.compute(r),this.emit()}gestureEnd(r){!this.state._active||(this.state._active=!1,this.compute(r),this.emit())}wheel(r){const c=this.config.modifierKey;c&&!r[c]||(this.state._active?this.wheelChange(r):this.wheelStart(r),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(r){this.start(r),this.wheelChange(r)}wheelChange(r){"uv"in r||r.cancelable&&r.preventDefault();const u=this.state;u._delta=[-hUt(r)[1]/ucr*u.offset[0],0],Nu.addTo(u._movement,u._delta),bUt(u),this.state.origin=[r.clientX,r.clientY],this.compute(r),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){const c=this.config.device;c&&(r(c,"start",this[c+"Start"].bind(this)),r(c,"change",this[c+"Move"].bind(this)),r(c,"end",this[c+"End"].bind(this)),r(c,"cancel",this[c+"End"].bind(this))),this.config.pinchOnWheel&&r("wheel","",this.wheel.bind(this),{passive:!1})}}const fcr=kl(kl({},gUt),{},{device(n,r,{shared:c,pointer:{touch:u=!1}={}}){if(c.target&&!pv.touch&&pv.gesture)return"gesture";if(pv.touch&&u)return"touch";if(pv.touchscreen){if(pv.pointer)return"pointer";if(pv.touch)return"touch"}},bounds(n,r,{scaleBounds:c={},angleBounds:u={}}){const d=m=>{const x=oPt($ue(c,m),{min:-1/0,max:1/0});return[x.min,x.max]},p=m=>{const x=oPt($ue(u,m),{min:-1/0,max:1/0});return[x.min,x.max]};return typeof c!="function"&&typeof u!="function"?[d(),p()]:m=>[d(m),p(m)]},threshold(n,r,c){return this.lockDirection=c.axis==="lock",Nu.toVector(n,this.lockDirection?[.1,3]:0)},modifierKey(n){return n===void 0?"ctrlKey":n},pinchOnWheel(n=!0){return n}});class dcr extends OW{constructor(...r){super(...r),Zf(this,"ingKey","moving")}move(r){this.config.mouseOnly&&r.pointerType!=="mouse"||(this.state._active?this.moveChange(r):this.moveStart(r),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(r){this.start(r),this.computeValues(XD(r)),this.compute(r),this.computeInitial(),this.emit()}moveChange(r){if(!this.state._active)return;const c=XD(r),u=this.state;u._delta=Nu.sub(c,u._values),Nu.addTo(u._movement,u._delta),this.computeValues(c),this.compute(r),this.emit()}moveEnd(r){!this.state._active||(this.state._active=!1,this.compute(r),this.emit())}bind(r){r("pointer","change",this.move.bind(this)),r("pointer","leave",this.moveEnd.bind(this))}}const hcr=kl(kl({},cT),{},{mouseOnly:(n=!0)=>n});class pcr extends OW{constructor(...r){super(...r),Zf(this,"ingKey","scrolling")}scroll(r){this.state._active||this.start(r),this.scrollChange(r),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(r){r.cancelable&&r.preventDefault();const c=this.state,u=Var(r);c._delta=Nu.sub(u,c._values),Nu.addTo(c._movement,c._delta),this.computeValues(u),this.compute(r),this.emit()}scrollEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){r("scroll","",this.scroll.bind(this))}}const gcr=cT;class bcr extends OW{constructor(...r){super(...r),Zf(this,"ingKey","wheeling")}wheel(r){this.state._active||this.start(r),this.wheelChange(r),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(r){const c=this.state;c._delta=hUt(r),Nu.addTo(c._movement,c._delta),bUt(c),this.compute(r),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){r("wheel","",this.wheel.bind(this))}}const mcr=cT;class vcr extends OW{constructor(...r){super(...r),Zf(this,"ingKey","hovering")}enter(r){this.config.mouseOnly&&r.pointerType!=="mouse"||(this.start(r),this.computeValues(XD(r)),this.compute(r),this.emit())}leave(r){if(this.config.mouseOnly&&r.pointerType!=="mouse")return;const c=this.state;if(!c._active)return;c._active=!1;const u=XD(r);c._movement=c._delta=Nu.sub(u,c._values),this.computeValues(u),this.compute(r),c.delta=c.movement,this.emit()}bind(r){r("pointer","enter",this.enter.bind(this)),r("pointer","leave",this.leave.bind(this))}}const ycr=kl(kl({},cT),{},{mouseOnly:(n=!0)=>n}),ije=new Map,zOe=new Map;function wcr(n){ije.set(n.key,n.engine),zOe.set(n.key,n.resolver)}const xcr={key:"drag",engine:Yar,resolver:acr},Scr={key:"hover",engine:vcr,resolver:ycr},Ecr={key:"move",engine:dcr,resolver:hcr},kcr={key:"pinch",engine:lcr,resolver:fcr},Ccr={key:"scroll",engine:pcr,resolver:gcr},Icr={key:"wheel",engine:bcr,resolver:mcr};function Tcr(n,r){if(n==null)return{};var c={},u=Object.keys(n),d,p;for(p=0;p=0)&&(c[d]=n[d]);return c}function Acr(n,r){if(n==null)return{};var c=Tcr(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}const Pcr={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=pv.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:r=!1}={}){return{passive:n,capture:r}},transform(n){return n}},Ocr=["target","eventOptions","window","enabled","transform"];function Bae(n={},r){const c={};for(const[u,d]of Object.entries(r))switch(typeof d){case"function":c[u]=d.call(c,n[u],u,n);break;case"object":c[u]=Bae(n[u],d);break;case"boolean":d&&(c[u]=n[u]);break}return c}function _cr(n,r,c={}){const u=n,{target:d,eventOptions:p,window:m,enabled:x,transform:E}=u,k=Acr(u,Ocr);if(c.shared=Bae({target:d,eventOptions:p,window:m,enabled:x,transform:E},Pcr),r){const T=zOe.get(r);c[r]=Bae(kl({shared:c.shared},k),T)}else for(const T in k){const P=zOe.get(T);P&&(c[T]=Bae(kl({shared:c.shared},k[T]),P))}return c}class mUt{constructor(r,c){Zf(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=c}add(r,c,u,d,p){const m=this._listeners,x=Lar(c,u),E=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},k=kl(kl({},E),p);r.addEventListener(x,d,k);const T=()=>{r.removeEventListener(x,d,k),m.delete(T)};return m.add(T),T}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class Mcr{constructor(){Zf(this,"_timeouts",new Map)}add(r,c,u=140,...d){this.remove(r),this._timeouts.set(r,window.setTimeout(c,u,...d))}remove(r){const c=this._timeouts.get(r);c&&window.clearTimeout(c)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}class Dcr{constructor(r){Zf(this,"gestures",new Set),Zf(this,"_targetEventStore",new mUt(this)),Zf(this,"gestureEventStores",{}),Zf(this,"gestureTimeoutStores",{}),Zf(this,"handlers",{}),Zf(this,"config",{}),Zf(this,"pointerIds",new Set),Zf(this,"touchIds",new Set),Zf(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Ncr(this,r)}setEventIds(r){if(Qfe(r))return this.touchIds=new Set(zar(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,c){this.handlers=r,this.nativeHandlers=c}applyConfig(r,c){this.config=_cr(r,c,this.config)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const c=this.config.shared,u={};let d;if(!(c.target&&(d=c.target(),!d))){if(c.enabled){for(const m of this.gestures){const x=this.config[m],E=lPt(u,x.eventOptions,!!d);if(x.enabled){const k=ije.get(m);new k(this,r,m).bind(E)}}const p=lPt(u,c.eventOptions,!!d);for(const m in this.nativeHandlers)p(m,"",x=>this.nativeHandlers[m](kl(kl({},this.state.shared),{},{event:x,args:r})),void 0,!0)}for(const p in u)u[p]=qar(...u[p]);if(!d)return u;for(const p in u){const{device:m,capture:x,passive:E}=$ar(p);this._targetEventStore.add(d,m,"",u[p],{capture:x,passive:E})}}}}function dM(n,r){n.gestures.add(r),n.gestureEventStores[r]=new mUt(n,r),n.gestureTimeoutStores[r]=new Mcr}function Ncr(n,r){r.drag&&dM(n,"drag"),r.wheel&&dM(n,"wheel"),r.scroll&&dM(n,"scroll"),r.move&&dM(n,"move"),r.pinch&&dM(n,"pinch"),r.hover&&dM(n,"hover")}const lPt=(n,r,c)=>(u,d,p,m={},x=!1)=>{var E,k;const T=(E=m.capture)!==null&&E!==void 0?E:r.capture,P=(k=m.passive)!==null&&k!==void 0?k:r.passive;let I=x?u:jar(u,d,T);c&&P&&(I+="Passive"),n[I]=n[I]||[],n[I].push(p)},jcr=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function Rcr(n){const r={},c={},u=new Set;for(let d in n)jcr.test(d)?(u.add(RegExp.lastMatch),c[d]=n[d]):r[d]=n[d];return[c,r,u]}function hM(n,r,c,u,d,p){if(!n.has(c)||!ije.has(u))return;const m=c+"Start",x=c+"End",E=k=>{let T;return k.first&&m in r&&r[m](k),c in r&&(T=r[c](k)),k.last&&x in r&&r[x](k),T};d[u]=E,p[u]=p[u]||{}}function $cr(n,r){const[c,u,d]=Rcr(n),p={};return hM(d,c,"onDrag","drag",p,r),hM(d,c,"onWheel","wheel",p,r),hM(d,c,"onScroll","scroll",p,r),hM(d,c,"onPinch","pinch",p,r),hM(d,c,"onMove","move",p,r),hM(d,c,"onHover","hover",p,r),{handlers:p,config:r,nativeHandlers:u}}function Lcr(n,r={},c,u){const d=ut.useMemo(()=>new Dcr(n),[]);if(d.applyHandlers(n,u),d.applyConfig(r,c),ut.useEffect(d.effect.bind(d)),ut.useEffect(()=>d.clean.bind(d),[]),r.target===void 0)return d.bind.bind(d)}function Fcr(n){return n.forEach(wcr),function(c,u){const{handlers:d,nativeHandlers:p,config:m}=$cr(c,u||{});return Lcr(d,m,void 0,p)}}function fPt(n,r){return Fcr([xcr,kcr,Ccr,Icr,Ecr,Scr])(n,r||{})}function Bcr(n,r){const c=vfe(),u=bN(d=>d?d.context.viewBox.zoom:1);fPt({onPinch:({origin:[d,p],offset:[m]})=>{if(!r.current||!n.current)return;const x=CS({x:d,y:p});c.send({type:"zoom.set",value:m,origin:Zx(x,r.current)})},onWheel:({event:d})=>{!r.current||!n.current||d.metaKey||d.ctrlKey||c.send({type:"viewbox.move",vector:zVn(d)})}},{target:n,pinch:{scaleBounds:{min:.1,max:10},from:[u,0],modifierKey:"ctrlKey"}}),fPt({onPinch:({origin:[d,p],offset:[m]})=>{if(!r.current||!n.current)return;const x=CS({x:d,y:p});c.send({type:"zoom.set",value:m,origin:Zx(x,r.current)})}},{target:n,pinch:{scaleBounds:{min:.1,max:10},from:[u,0],modifierKey:"metaKey"}})}const zcr=n=>n.context.viewBox,Vcr=n=>{switch(!0){case n.hasTag("grab"):return"grab";case n.hasTag("grabbing"):return"grabbing";default:return"auto"}},Ucr=sg({initial:"selectable",invoke:{src:()=>n=>{const r=Il.bind(window,{type:"keydown",listener:u=>{const d=u.target;u.code==="Space"&&!TPe(d)&&n({type:"keydown.space"})}}),c=Il.bind(window,{type:"keyup",listener:u=>{const d=u.target;u.code==="Space"&&!TPe(d)&&n({type:"keyup.space"})}});return()=>{r(),c()}}},states:{selectable:{initial:"idle",states:{idle:{on:{"drag.start":"selecting"}},selecting:{entry:"deselectAll",on:{"drag.dragging":{actions:"select"},"drag.end":{target:"idle",actions:"endSelection"}}}},on:{"keydown.space":"pannable","pointerdown.middle":"pannable.panning"}},pannable:{initial:"idle",states:{idle:{on:{"drag.start":"panning"}},panning:{on:{"drag.dragging":{actions:"pan"},"drag.end":{target:"idle",actions:"endSelection"}}}},on:{"keyup.space":"selectable","pointerup.middle":"selectable"}}}});function Hcr({layoutInitialized:n}){const r=Qc(),c=U.exports.useContext(mN),u=U.exports.useRef(null),d=U.exports.useContext(r1),p=vfe(),m=U.exports.useRef(!0),x=Al(p,zcr,Go,L=>L.deferred?Sq.initialState:L.state),E=Al(p,Vcr,Go,L=>L.deferred?Sq.initialState:L.state),k=bN(L=>L.matches({mode:"pannable"}));U.exports.useLayoutEffect(()=>{const L=()=>{requestAnimationFrame(()=>{if(!c.current)return;const $=c.current.getBoundingClientRect();p.send({type:"SET_VIEWBOX_SIZE",width:$.width,height:$.height})})};return window.addEventListener("resize",L),L(),()=>{window.removeEventListener("resize",L)}},[p]),U.exports.useLayoutEffect(()=>{!c.current||!m.current||(m.current=!1,r.send({type:"entities.setSizes",nodeSizes:[...c.current.querySelectorAll("[data-node-id]")].map(L=>({uniqueId:L.dataset.nodeId,size:L.getBoundingClientRect()})),edgeSizes:[...c.current.querySelectorAll("[data-edge-id]")].map(L=>({uniqueId:L.dataset.edgeId,size:L.getBoundingClientRect()}))}))},[r,c]);const T=va(L=>L.id);U.exports.useLayoutEffect(()=>{const L=()=>{requestAnimationFrame(()=>{if(!c.current)return;const $=c.current.getBoundingClientRect();p.send({type:"SET_VIEWBOX_SIZE",width:$.width,height:$.height})})};return window.addEventListener("resize",L),L(),()=>{window.removeEventListener("resize",L)}},[p]),Par(T,x),Bcr(u,c),mfe(u,{onDragStart:()=>{j.send({type:"drag.start"})},onDrag:L=>{j.send({type:"drag.dragging",initial:L.startPoint,current:L.dragPoint,dx:L.currentDelta.dx,dy:L.currentDelta.dy})},onDragEnd:()=>{j.send({type:"drag.end"})},onClick:()=>{r.send({type:"deselectAll"})}}),U.exports.useEffect(()=>{const L=p.subscribe(({event:$})=>{var F,B,X;switch($.type){case"zoom.set":case"zoom.in":case"zoom.out":(F=so())==null||F.debouncedTrack($.type);return;case"viewbox.move":(B=so())==null||B.debouncedTrack($.type);return;case"selection.start":case"selection.end":(X=so())==null||X.track(`Canvas Interaction: ${$.type}`);return;default:return}});return()=>L.unsubscribe()},[p]);const P=va(L=>Object.values(L.selection),Go),I=va(L=>L.status),O=jw(),N=U.exports.useMemo(()=>We(Si,{children:[V(Tsr,{}),V(Msr,{}),V(ysr,{}),V(jsr,{}),V(Nsr,{}),V(LGn,{})]}),[]),j=vW(Ucr,{actions:{deselectAll:()=>{r.send({type:"deselectAll"})},select:(L,$)=>{if(!("initial"in $))return;const F=Zx($.initial,c.current),B=Zx($.current,c.current);d.send({type:"selectionBox.change",selectionBox:[F,B]})},endSelection:()=>{d.send({type:"selectionBox.change",selectionBox:null})},pan:(L,$)=>{!("dx"in $)||!("dy"in $)||p.send({type:"viewbox.move",vector:l7({x:$.dx,y:$.dy})})}}});return U.exports.useEffect(()=>{Il.bindAll(u.current,[{type:"mousedown",listener:L=>{L.button===1&&j.send({type:"pointerdown.middle"})}},{type:"mouseup",listener:L=>{L.button===1&&j.send({type:"pointerup.middle"})}}])},[j]),We(Si,{children:[V(bsr,{viewBox:x,cursorType:E}),V(Dsr,{"data-testid":"canvas",ref:u,viewBox:x,css:{cursor:E,pointerEvents:"auto","& > *":{pointerEvents:k?"none":"auto"},"--default-entity-opacity":I==="selected"&&P.some(L=>L.type==="edge")?.5:1},sx:{"[data-edge-anchor-group]:hover":{"[data-edge-anchor]":{fill:"primary.600"}},"[data-node-anchor-group]:hover":{"[data-node-anchor]":{fill:"primary.600"},"[data-node-anchor-line]":{stroke:"white"}}},onPointerUp:()=>{r.send({type:"select.end"})},onDoubleClick:L=>{if(L.target!==L.currentTarget||O)return;const $=jx(L,c.current),F=r.getSnapshot().getNodeRectDataAtPoint($);if(!F||F.rectKey==="family"){const B=new Du({x:$.x-Yf.width/2,y:$.y-Yf.height/2,width:Yf.width,height:Yf.height});r.send({type:"node.newChildNode",nodeId:F?F.node.uniqueId:r.getSnapshot().root.uniqueId,position:B})}},children:N}),V(Qt.svg,{ref:c,tabIndex:-1,"data-testname":"svg-canvas",viewBox:`${x.minX} ${x.minY} ${x.width} ${x.height}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"100%",position:"fixed",overflow:"visible",top:0,left:0,cursor:E,userSelect:"none",outline:"none",pointerEvents:"none"},opacity:n?"1":"0"})]})}const qcr=n=>V(MS,{...n,as:"h1",fontSize:"sm"}),vUt=n=>V(MS,{...n,as:"h2",fontSize:"sm"}),Wcr=n=>V(MS,{...n,as:"h3",fontSize:"sm",marginBlock:"2"}),Gcr=n=>V(MS,{...n,as:"h4",fontSize:"sm",marginBlock:"2"}),Xcr=n=>V(MS,{...n,as:"h4",fontSize:"sm",marginBlock:"2"}),Kcr=n=>V(Bi,{...n,as:"strong"}),Ycr=n=>V(Bi,{...n,as:"em"}),Qcr=n=>V(BMe,{...n,marginBlock:"0"}),Zcr=n=>V(zMe,{...n,marginBlock:"0"}),Jcr={h1:qcr,h2:vUt,h3:Wcr,h4:Gcr,h5:Xcr,strong:Kcr,em:Ycr,ol:Qcr,ul:Zcr,a:n=>V(fq,{...n,target:"_blank"}),img:n=>V(gNt,{...n,alt:n.alt,display:"block",maxWidth:"100%",__css:{"&:not([data-has-loaded])":{border:"1px solid"}},onLoad:r=>{r.target.setAttribute("data-has-loaded","true")},src:`https://raw.githubusercontent.com/statelyai/assets/main/copy/tutorials/${n.src}`})},dPt=U.exports.memo(function(r){const{getColorModeValue:c}=ei();return V(XNe,{components:Jcr,__css:{"& h1, & h2, & h3, & h4, & strong":{fontVariationSettings:"'wght' 600",fontSize:"inherit"},"& h1, & h2, & h3, & h4, & h5":{color:c("gray.900","gray.100")},"& h3":{borderTop:"solid 1px",borderTopColor:c("gray.100","gray.600"),paddingTop:"4"},"& h4":{marginBottom:"0"},"& a":{color:c("blue.500","blue.300"),textDecoration:"underline"},"& p":{color:c("gray.800","gray.300")},"& li":{color:c("gray.800","gray.300"),marginLeft:"1"}},...r})},()=>!0),eur={"What is a state machine?":`State machines help us model how a process goes from state to state when an event occurs. - - State machines are useful in software development because they help us capture all the states, events and transitions between them. Using state machines makes it easier to find impossible states and spot undesirable transitions. - - State machines model your application logic. Below is the logic for a video player. When the video is Played, it is opened into fullscreen mode. When the video is stopped, it closes out of fullscreen mode. When the video player is in fullscreen mode, it can be _Playing_ or _Paused_. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](what-is-a-state-machine/what-is-a-state-machine-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=dbcfca1c-075d-4cd6-a865-efcbd7be1544). - - [Read more about state machines in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/) - - ### What is a statechart? - - Statecharts are fancy state machines used to model more complex logic. - - Statecharts are a visual extension to state machines that use boxes and arrows, much like flowcharts and sequence diagrams. Statecharts add extra features not available in ordinary state machines, including hierarchy (parent states), concurrency (parallel states) and communication (actors). - - When you make a state machine in the Stately Studio, it\u2019s also a statechart! - - [Watch the \u2018What are state machines and statecharts?\u2019 video (1m 5s)](https://www.youtube.com/watch?v=Aixi0e53qAE). - - [Read more about statecharts in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/)`,States:`A state describes the machine\u2019s status or mode, which could be as simple as *Paused* and *Playing*. A state machine can only be in one state at a time. - - ![Video player state machine with an initial Paused state and a Playing state.](states/states-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=741f69fd-7f01-4932-9407-6871e225bb6d). - - The rounded rectangle boxes are states. These states are \u201Cfinite\u201D; the machine can only move through the states you\u2019ve pre-defined. - - [Watch the \u2018What are states?\u2019 video (52s)](https://www.youtube.com/watch?v=z-6yhmSWUcc). - - ### How to create a state - - 1. Select your machine or an existing state. - 2. Create a new state inside your machine or existing state: - - Use the **+ State** button that appears above the selected state, or: - - Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. - - Double-click inside your machine or an existing state. - - [Read more about states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#states)`,"Initial state":`When a state machine starts, it enters the **initial state** first. A machine can only have one top-level initial state; if there were multiple initial states, the machine wouldn\u2019t know where to start! - - The filled circle with an arrow icon represents the initial state. - - In our video player, paused is the initial state because the video player is paused by default and requires user interaction to start playing. - - ![State machine with an initial state of Paused, transitioning through a Play event to the Playing state. From the Playing state back to the Paused state is a Pause event.](initial-states/initial-state-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=3ebc8874-2294-480b-a06e-74845337cd8d). - - [Watch the \u2018What are initial states?\u2019 tutorial video (1m 16s)](https://www.youtube.com/watch?v=goCpmgyrjL0). - - ### How to change the initial state - - Each new machine or parent state will set the first new state as its initial state by default. - - #### Using the **quick actions** menu: - - 1. Select the state you wish to make the new initial state. - 2. Right-click the state to bring up the **quick actions** menu. - 3. Choose **Mark as initial state** from the **quick actions** menu. - - #### Using the **State details** panel: - - 1. Select the parent state or parent machine. - 2. Open the **State details** panel from the right tool menu. - 3. Choose the desired initial state from the Initial state dropdown menu. - - [Read more about initial states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#initial-state)`,"Events and transitions":`A machine moves from state to state through **transitions**. Transitions are caused by events; when an event happens, the machine transitions to the next state. - - Transitions are \u201Cdeterministic\u201D; each combination of state and event always points to the same next state. - - The arrows are transitions, and the rounded rectangles on the arrow\u2019s lines are events. Each transition has a **source** state which comes before the transition, and a **target** state, which comes after the transition. The transition\u2019s arrow starts from the source state and points to the target state. - - ![A video player state machine with an initial Paused State and a Playing state. The Play event transitions from Paused to Playing. The Pause event transitions from Playing to Paused.](transitions-and-events/transitions-and-events-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=9630e3b7-9f8e-4dc9-8b55-661f854d28b7). - - In the video player machine above, the events are *PLAY* and *PAUSE*. The *Play* event transitions from the *Paused* state to the *Playing* state. The *Pause* event transitions from the *Playing* state to the *Paused* state. - - [Watch the \u2018Transitions and events\u2019 tutorial video (1m 50s)](https://www.youtube.com/watch?v=0qgP4RZyq58). - - ### How to add a transition and event - - 1. Select an existing state. - 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. - - ### How to change the source and target states for a transition or event - - First select the transition or event you want to change. Then\u2026 - - #### Using the **Transition details** panel - - 1. Select the transition or event you wish to change. - 2. Open the **Transition details** panel from the right tool menu. - 3. Choose a new source state from the **Source** dropdown options. - 4. Choose a new target state from the **Target** dropdown options. - - #### Dragging the transition handles - - 1. Select the transition or event you want to change. - 2. Drag the transition\u2019s handle connected to the source state to connect it to a new source state. - 3. Drag the transition\u2019s handle connected to the target state to connect it to a new target state. - - ### How to switch the source and target states for a transition or event - - 1. Select the transition or event. - 2. Right-click the state to bring up the **quick actions** menu. - 3. Choose **Switch source and target** from the **quick actions** menu. - - [Read more about states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#transitions-and-events)`,"Parent and child states":`States can contain more states, also known as **child states**. These child states are only active when the parent state is active. - - Child states are nested inside their parent states. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](parent-states/parent-states-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=9ba5377c-aab3-4465-8909-4eea499622fa). - - In the video player above, the *Opened* state is a parent state to the *Playing*, *Paused*, and *Stopped* states. These states, their transitions, and their events are nested inside the *Opened* state. - - [Watch the \u2018Parent and child states\u2019 tutorial video (1m 6s)](https://www.youtube.com/watch?v=aUhEdeIf_mQ). - - ### How to add a child state - - First, select your machine or an existing state where you want to create the child state. Then\u2026 - - - Use the **+ State** button that appears above the selected state to create a nested child state. Or\u2026 - - If a state already contains child states, you can double-click inside the parent state to create another child state. - - ### How to change the parent state of a child state - - Using the **State details** panel: - - 1. Select the child state you want to reparent. - 2. Open the **State details** panel from the right tool menu. - 3. Choose your desired new parent from the **Parent** dropdown menu. - - [Read more about parent and child states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#compound-states)`,"Parallel states":`A parallel state is a parent state separated into multiple regions of child states, where each region is active simultaneously. - - A dashed line borders each region. - - ![A state machine containing two region states with dashed borders around the outside. The first region is the video state which is active at the same time as the audio state, and contains a playing and stopped state, with stop and play events. The other region is an audio state, which is active at the same time as the video state, and has muted and unmuted states, and unmute and mute events.](parallel-states/parallel-states-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=733de338-26cb-40a5-a0b5-b76bfc0405c3). - - In the video player machine above, the video and audio states are active at the same time, which means the following combinations of states can happen simultaneously: - - - video playing, audio muted - - video playing, audio unmuted - - video stopped, audio muted - - video stopped, audio unmuted - - [Watch the \u2018What are parallel states?\u2019 video (54s)](https://www.youtube.com/watch?v=CWwgT1TbI4c). - - ### How to make a state a parallel state - - First, select the parent state you want to set as a parallel state. Then\u2026 - - #### Using the **quick actions** menu: - - 1. Right-click the state to bring up the **quick actions** menu. - 2. Choose **Parallel** from the **Type** options. - - #### Using the **State details** panel: - - 1. Select the parent state you want to set as the parallel state. - 2. Open the **State details** panel from the right tool menu. - 3. Choose **Parallel** from the **Type** dropdown menu. - - [Read more about parallel states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#compound-states)`,"Final states":`When a machine reaches the final state, it can no longer receive any events, and anything running inside it is canceled and cleaned up. The box with a surrounding border icon represents the final state. - - A machine can have multiple final states or no final states. - - In the video player below, *Stopped* is the final child state in the *Opened* state. When the video player is *Stopped*, the video player moves to its *Closed* state. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped, represented by an icon alongside the Stopped label of a square with a double border. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](final-states/final-state-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=c6f8ca35-25e3-4fc6-b4fe-c9994715852e). - - [Watch the \u2018What are final states?\u2019 video (55s)](https://www.youtube.com/watch?v=wqW8Gz4NYDc). - - ### How to make a state a final state - - First, select the state you want to set as the final state. - - #### Using the **quick actions** menu - - 1. Right-click the state to bring up the **quick actions** menu. - 2. Choose **Final** from the **Type** options. - - #### Using the **State details** panel - - 1. Select the state you want to set as the final state. - 2. Open the **State details** panel from the right tool menu. - 3. Choose **Final** from the **Type** dropdown menu. - - [Read more about final states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#final-state)`,"History states":`A history state returns the parent state to its most recently active child state. The box with an **H** inside represents the history state. - - The history state can be deep or shallow: - - - A shallow history state remembers the immediate child\u2019s state. - - A deep history state remembers the deepest active state or states inside its child states. - - ### How to make a state a history state - - First, select the state you want to set as a history state for the parent state. Then\u2026 - - #### Using the **quick actions** menu - - 1. Right-click the state to bring up the **quick actions** menu. - 2. Choose **History** from the **Type** options. - - #### Using the **State details** panel - - 1. Select the state you want to set as the final state. - 2. Open the **State details** panel from the right tool menu. - 3. Choose **History** from the **Type** dropdown menu. - 4. Use the **History** toggle that appears when the state has a **History Type** to choose between **Shallow** and **Deep** history options. - - [Read more about history states in our docs](https://xstate.js.org/docs/guides/history.html#history) - `,Guards:`A **guard** is a condition that the machine checks when it goes through an event. If the condition is true, the machine follows the transition to the next state. If the condition is false, the machine follows the rest of the conditions to the next state. Any transition can be a guarded transition. - - Guards are numbered in the order they are checked and labeled with \u201Cif\u201D or \u201Celse if\u201D along with their condition. Multiple guards on the same events are connected with a dotted line. - - ## How to add a guard to an event - - First, select the event where you want to add a guard. Then\u2026 - - #### Using the **+ Transition** button - - 1. Use the **+ Transition** button to replace your event with a guarded transition. - 2. Name your guard by replacing the **New guard** text inside the event. - - #### Using the **quick actions** menu - - 1. Right-click the event to bring up the **quick actions** menu. - 2. Choose **Add guard** from the options in the **quick actions** menu to replace your event with a guarded transition. - 3. Name your guard by replacing the **New guard** text inside the event. - - #### Using the **Transition details** panel - - 1. Open the **Transition details** panel from the right tool menu. - 2. Use the **Guard** text input to name your guard and replace your event with a guarded transition. - - Use the **+ Transition** button to create more guards on the same transition. - - [Read more about guards in our docs](https://xstate.js.org/docs/guides/guards.html#guards-condition-functions)`,"Entry and exit actions":` - While the statechart is running, it can execute other effects called actions. - -An action can be fired upon entry or exit of a state. Actions are \u201Cfire-and-forget effects\u201D; once the machine has fired the action, it moves on and forgets the action. You can also fire actions on transitions. - -You can fire multiple entry and exit actions on a state. Top-level final states cannot have exit actions, since the machine is stopped and no further transitions can occur. - -![Entry and exit actions video player](entry-and-exit-actions/entry-and-exit-actions-2022-10-24-small.png) - -[View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=222e2d7a-0ed6-4f2c-843a-e6646d717000). - -In our video player, we have entry and exit actions on the Playing state. We use the entry action of playVideo to fire an effect playing the video on entry to the Playing state. We use the exit action of pauseVideo to fire an effect pausing the video when the Playing state is exited. - -[Watch the \u2018Entry actions and exit actions\u2019 tutorial video (2m 19s)](https://www.youtube.com/watch?v=5DAkwzNQ5a0). - -### How to add an entry action to a state - -1. Select the state you want to have an entry action. -2. Open the **State details** panel from the right tool menu. -3. Use the **+** icon alongside the **Entry actions** to add a new action. -4. Use the **Custom** tab under **Entry actions** to input the **type** for the entry action. -5. Use the **Assign** tab under **Entry actions** to assign **key** and **assignment** pairs to the entry action. -6. Save the entry action using the **Save** button. - -### How to add an exit action to a state - -1. Select the state you want to have an exit action. -2. Open the **State details** panel from the right tool menu. -3. Use the **+** icon alongside the **Exit actions** to add a new action. -4. Use the **Custom** tab under **Exit actions** to input the **type** for the exit action. -5. Use the **Assign** tab under **Exit actions** to assign **key** and **assignment** pairs to the exit action. -6. Save the entry action using the **Save** button. - -[Read more about entry and exit actions in our docs](https://xstate.js.org/docs/guides/actions.html#actions)`,"Eventless (always) transitions":`**Eventless transitions** are transitions without events. These transitions are *always* taken after any transition in their state is enabled. No event is necessary to trigger the transition. - - Eventless transitions are labeled \u201Calways\u201D and often referred to as \u201Calways\u201D transitions. - - ### How to make an event into an eventless transition - - First, select the event you want to replace with an eventless transition. Then\u2026 - - #### Using the **quick actions** menu - - 1. Right-click the state to bring up the **quick actions** menu. - 2. Choose **Always** from the **Event type** options. - - #### Using the **Transition details** panel - - 1. Open the **Transition details** panel from the right tool menu. - 2. Choose **Always** from the **Event type** dropdown menu. - - [Read more about eventless transitions in our docs](https://xstate.js.org/docs/guides/transitions.html#eventless-always-transitions)`,"Delayed (after) transitions":`**Delayed transitions** are transitions that only happen after a specified interval of time. If another event happens before the end of the timer, the transition doesn\u2019t complete. Delayed transitions are handy if you need to build timeouts and intervals into your application logic. - - Delayed transitions are labeled \u201Cafter\u201D and often referred to as \u201Cafter\u201D transitions. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](delayed-transitions/delayed-transition-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=5671366b-05cf-43f5-a09a-b88373ea27c1). - - In a video player, we might want the video to be *Closed* out of fullscreen mode a few seconds after the video has *Stopped*, instead of closing the fullscreen mode suddenly as soon as the video is stopped. The eventless transition above transitions from the *Stopped* state to the *Closed* state after 5 seconds. - - [Watch the \u2018Delayed (after) transitions\u2019 tutorial video (1m 17s)](https://www.youtube.com/watch?v=5RE_eazRhrw). - - ### How to make an event into a delayed transition - - First, select the event you want to replace with a delayed transition. Then\u2026 - - #### Using the **quick actions** menu - - 1. Right-click the event to bring up the **quick actions** menu. - 2. Choose **After** from the **Event type** options. - 3. Use the **Transition details** panel to change the delay time. - - #### Using the **Transition details** panel - - 1. Open the **Transition details** panel from the right tool menu. - 2. Choose **After** from the **Event type** dropdown menu. - 3. Specify the delay time in milliseconds using the **Delay** text input. - - [Read more about delayed transitions in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#delayed-transitions)`,"State done event":`A **state done event** transitions from a parent state when one of its child states reaches its final state. State done events are labeled \u201ConDone.\u201D - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s an onDone event from the parent Opened state back to the Closed state.](state-done-events/state-done-event-2022-10-24-small.png) - - In the video player above, when the video player reaches the *Stopped* state, the *Opened* state transitions through the *onDone* state done event to the *Closed* state. - - [Watch the \u2018What are state done events?\u2019 video (1m 16s)](https://www.youtube.com/watch?v=3laC3gWBLnM). - - ### How to add a state done event to a parent state - - 1. Check the final child state has its state type set to **Final**. If the parent state doesn\u2019t contain a final child state, the state done event type will not be available for transitions from the parent state. - 2. Select the parent state. - 3. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. - 4. Select the newly-created event. Then\u2026 - - #### Using the **quick actions** menu - - 1. Right-click the state to bring up the **quick actions** menu. - 2. Choose **State done event** from the **Event type** options. - - #### Using the **Transition details** panel - - 1. Open the **Transition details** panel from the right tool menu. - 2. Choose **State done event** from the **Event type** dropdown menu. - - [Read more about state done events in our docs](https://xstate.js.org/docs/guides/states.html#state-methods-and-properties)`,"Self transitions":`A **self-transition** starts and ends in the same state. - - Self-transitions can be used to restart a state. - - ### How to make an event into a self-transition - - #### Using the **quick actions** menu - - 1. Right-click the event to bring up the **quick actions** menu. - 2. Choose **Make self transition** from the **quick actions** menu. - - #### Dragging the transition arrow - - 1. Select the event. - 2. Grab the circular handle at the arrow end of the transition and drag the handle to connect it back to the source state. - - [Read more about self-transitions in our docs](https://xstate.js.org/docs/guides/transitions.html#self-transitions)`,"Invoked actors":`When you run a statechart, it becomes an actor: a running process that can receive messages, send messages and change its behavior based on the messages it receives, which can cause effects outside of the actor. - - An invoked actor is an actor that can execute its own actions and communicate with the machine. These invoked actors are started in a state and stopped when the state is exited. - - Invoked actors are are labeled on their invoking state with \u201CInvoke /\u201D followed by the actor\u2019s source name and ID. - - You can invoke multiple actors on a single state. Top-level final states cannot have invoked actors. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](invoked-actors/invoked-actors-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=66f77051-089e-4b0a-9fa9-42e1f7598135). - - In the video player above, the *startVideo* actor is invoked when the video player is in the *Opened* state. - - [Watch the \u2018What are invoked actors?\u2019 video (1m 58s)](https://www.youtube.com/watch?v=TRMS8NYKWnA). - - ### How to invoke actors on a state - - 1. Select the state you want to invoke an actor. - 2. Open the **State details** panel from the right tool menu. - 3. Use the **+** icon alongside the **Invoked actors** to add a new action. - 4. Add the source for the actor using the **src** text input. - 5. Add the ID for the actor using the **ID** text input. - 6. Save the invoked actor using the **Save** button. - - [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,"Invoke done events":`An **invoke done event** transitions from a state once its invocation has been completed. An invoke done event is labeled \u201Cdone:\u201D followed by the invocation\u2019s ID. - - ### How to create invoke done events - - 1. Select the state with an invoked actor where you want to add an invoke done event. - 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. - 3. The newly-created event will automatically be created as an invoke done event. - - You can also change an existing event into an invoked done event using the **quick actions** menu: - - 1. Select the existing event you wish to change into an invoke done event. - 2. Right-click the state to bring up the **quick actions** menu. - 3. Choose **Invocation done event** from the **Event type** options. - - [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,"Invoke error events":`An **invoke error event** transitions from a state when an error occurs in its invocation. An invoke error event is labeled \u201Cerror:\u201D followed by the invocation\u2019s ID. - - ### How to create invoke error events - - 1. Select the state with an invoked actor where you want to add an invoke error event. - 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. - 3. The newly-created event will automatically be created as an invoke done event. - 4. When an invoke done event already exists from that state, creating another event will automatically create that event as an invoke error event. - - You can also change an existing event into an invoked error event using the **quick actions** menu: - - 1. Select the existing event you wish to change into an invoke error event. - 2. Right-click the state to bring up the **quick actions** menu. - 3. Choose **Invocation error event** from the **Event type** options. - - [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,Descriptions:`You can add descriptions to state and event nodes to describe their purpose and share related notes with your team. Descriptions support markdown formatting, including links and images. - - The machine object will include your descriptions in the state or event's \`description\` when you export your statecharts to JSON. - - ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](descriptions/descriptions-2022-10-24-small.png) - - [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=574ede8a-a328-40fe-a4f9-c80fffb2c30a). - - In the video player above, the text \u201CThe video player should be in full-screen mode\u201D is a description of the *Opened* event. - - [Watch the \u2018Using descriptions\u2019 video (1m 34s)](https://www.youtube.com/watch?v=qflVEMsCrEE). - - ### How to add a description to a state - - 1. Select the state. - 2. Open the **State details** panel from the right tool menu. - 3. Write your state\u2019s description in the **Description** text area. - - ### How to add a description to an event - - 1. Select the event. - 2. Open the **Transition details** panel from the right tool menu. - 3. Write your event\u2019s description in the **Description** text area. - - [Find out more about descriptions from our office hours](https://www.youtube.com/watch?v=pLU4IOiWW0U&t=142s)`},tur=Qt(H1.div,{shouldForwardProp:n=>vD(n)||n==="children"}),nur=({isOpen:n,onClose:r,openKeyboardShortcutsModal:c})=>{const{getColorModeValue:u}=ei(),[d,p]=U.exports.useState();return V(tur,{layout:!0,transition:{type:"tween",duration:"0.2",delay:"0.1",ease:n?"easeOut":"easeIn"},style:{position:n?"relative":"absolute",left:n?0:"100%"},h:"full",w:"22.5rem",children:We(In,{h:"full",bg:u("white","gray.900"),borderRightWidth:"1px",borderLeftWidth:"1px",borderColor:u("gray.100","gray.700"),display:"grid",gridTemplateRows:"auto 1fr auto",children:[We(In,{as:"header",paddingInline:"3",paddingBlock:"1",borderBottomColor:u("gray.100","gray.700"),borderBottomWidth:"1px",alignItems:"center",display:"flex",justifyContent:"space-between",children:[V(Bi,{as:"h1",color:u("","white"),fontWeight:"600",fontSize:"sm",sx:{"&":{fontVariationSettings:'"wght" 600'}},children:"Help"}),V(uW,{onClick:r})]}),V(In,{overflowY:"auto",children:We(In,{display:"flex",flexDirection:"column",gap:"4",flex:"1",overflowY:"auto",paddingBlock:"2",fontSize:"sm",sx:{"& h1, & h2, & h3, & strong":{fontVariationSettings:"'wght' 600"},"& a":{color:"blue.300",_hover:{textDecoration:"underline"}},"& li":{marginLeft:"4"}},children:[V(vUt,{paddingInline:"5",children:"Stately Studio tutorials"}),V(In,{paddingInline:"5",color:u("","gray.400"),children:V(dPt,{children:"The Stately Studio supports everything you need to build state machines and statecharts visually. We hope you find the following tutorials help you learn more about the statecharts concepts and using the Stately Studio. If you have further questions or want to discuss modeling with other statecharts fans, [join our Discord community](https://discord.gg/xstate) or [chat with us live in our next office hours](https://youtube.com/c/statelyai)."})}),V(jle,{onChange:m=>{p(m)},index:d,allowMultiple:!0,paddingInline:"0",children:Object.entries(eur).map(([m,x],E)=>We(CMe,{borderBottom:"none",borderColor:u("gray.100","gray.700"),children:[V(MS,{as:"h3",children:We(kMe,{bg:u("white","gray.800"),_hover:{bg:u("gray.50","gray.700")},fontWeight:"600",paddingInline:"3",sx:{"&":{fontVariationSettings:'"wght" 600'}},children:[V(In,{flex:"1",textAlign:"left",children:m}),V(lNt,{})]})}),V(fNt,{paddingInline:"5",pb:4,children:V(dPt,{children:x})})]},E))})]})}),V(In,{as:"footer",paddingInline:"3",paddingBlock:"2",justifyContent:"flex-start",borderTopWidth:"1px",borderTopColor:u("gray.100","gray.700"),fontSize:"sm",children:We(Ule,{children:[V(kae,{children:V(Vc,{paddingInline:"0",variant:"light",onClick:c,width:"full",justifyContent:"flex-start",fontSize:"sm",children:We(nl,{alignItems:"center",children:[V(czn,{}),V(Bi,{as:"span",children:"Keyboard Shortcuts"})]})})}),V(kae,{children:V(fq,{href:"https://github.com/statelyai/studio-issues/issues/new",target:"_blank",height:"40px",display:"flex",children:We(nl,{alignItems:"center",children:[V(xzn,{}),V(Bi,{as:"span",children:"Report an issue"})]})})}),V(kae,{children:V(fq,{href:"https://statelyai.canny.io/editor",target:"_blank",height:"40px",display:"flex",children:We(nl,{alignItems:"center",children:[V(A$t,{}),V(Bi,{as:"span",children:"Give feedback"})]})})})]})})]})})},rur=()=>{const n=Qc(),{getColorModeValue:r}=ei(),{canUndo:c,canRedo:u}=va(({undoStack:d})=>({canUndo:d.canUndo(),canRedo:d.canRedo()}),Go);return We(_w,{isAttached:!0,children:[V(Vc,{variant:"gray",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),onClick:()=>{n.send({type:"undo"})},pl:"2",leftIcon:V(yzn,{height:"5",width:"5"}),textStyle:"semibold",fontSize:"sm",isDisabled:!c,children:"Undo"}),V(Vc,{variant:"gray",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},onClick:()=>{n.send({type:"redo"})},px:"2",title:"Redo",textStyle:"semibold",shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),isDisabled:!u,children:V(zce,{height:"5",width:"5"})})]})};function iur(n){U.exports.useEffect(()=>{const r=c=>{c.target===document.activeElement&&c.target.tabIndex!==-1||n(c.key)};return Il.bind(window,{type:"keydown",listener:r})})}const hPt=2,yUt=ut.createContext(null),our=({topElement:n,userMode:r})=>{const c=Qc(),u=U.exports.useContext(r1),d=Al(u,I=>{if(I.matches("editing"))return"editing";if(I.matches("simulating"))return"simulating";throw new Error("Unknown canvas mode.")}),{getColorModeValue:p}=ei(),[m]=Nw(YGn,{services:{listenToGraphAutolayoutStatus:()=>I=>c.subscribe(N=>{if(N.autolayoutStatus==="autolayout-performed"&&(I({type:"autolayout performed"}),r==="screenshot")){const j=document.querySelector('[data-node-id="screenshot-root-id"]');j&&j.setAttribute("data-node-id","screenshot-root-ready")}}).unsubscribe},guards:{isAutolayoutNeeded:()=>c.getSnapshot().autolayoutStatus==="autolayout-needed"}}),x=vfe(),E=bN(I=>I.context.viewBox),k=B9e(),T=B9e(),P=B9e();return V(In,{isolation:"isolate",display:"flex",height:"100%",overflow:"hidden",children:We(yUt.Provider,{value:P,children:[V(OYn,{topElement:n}),We(GGn,{padding:hPt,zIndex:-1,minHeight:0,flexGrow:1,children:[V(Hcr,{layoutInitialized:!!m.done}),V("div",{"data-portalid":"selection-popover"})]}),V(nl,{position:"absolute",right:2,bottom:2,padding:hPt,width:"full",justifyContent:"flex-end",pointerEvents:"none",children:We(nl,{spacing:5,pointerEvents:"auto",children:[!RVn(E).containsRect(c.snapshot.root.currentRects.family)&&V(Vc,{onClick:()=>{x.send({type:"fit_to_content"})},children:"Back to content"}),d==="editing"&&pHn("SHOW_AUTOLAYOUT_BUTTON")&&V(Vc,{variant:"gray",bg:p("gray.50","gray.800"),_hover:{bg:p("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:p("gray.100","gray.700"),fontSize:"sm",textStyle:"semibold",onClick:()=>{c.send({type:"autolayout"})},"aria-label":"Layout",children:"Autolayout"}),We(nl,{spacing:0,children:[d==="editing"&&V(rur,{}),d==="simulating"&&V(Vc,{variant:"gray",textStyle:"semibold",bg:p("gray.50","gray.800"),_hover:{bg:p("gray.100","gray.700")},pl:"3",leftIcon:V(vzn,{color:p("gray.800","gray.200")}),onClick:()=>u.send({type:"SIMULATION.RESET"}),children:"Reset"})]}),V(UGn,{}),!mr.enabled&&r!=="screenshot"&&V(Vc,{fontSize:"2xl",rounded:"full",as:Vc,color:p("white","white"),bg:p("primary.500","primary.500"),_hover:{bg:p("primary.600","primary.600")},_active:{bg:p("primary.600","primary.600")},padding:"0",onClick:()=>{k.onToggle()},children:V(HDe,{shadow:"sm"})})]})}),V(gsr,{},k.isOpen.toString()+P.isOpen.toString()),!mr.enabled&&r!=="screenshot"&&We(Si,{children:[V(nur,{isOpen:k.isOpen,onClose:k.onClose,openKeyboardShortcutsModal:T.onOpen}),V(EYn,{onClose:T.onClose,isOpen:T.isOpen}),V(SYn,{onClose:P.onClose,isOpen:P.isOpen})]})]})})};function sur({selectedMachine:n,canvasOpts:r,children:c,requiresAutolayout:u=!1,onDefinitionRelatedChange:d,onNodeSelected:p,userMode:m,projectName:x,ownerName:E}){const k=z$t(PFt),{definition:T,name:P,id:I}=n;U.exports.useEffect(()=>{var B,X,ne,Z;switch(m){case"web":(B=so())==null||B.track("Opening Editor From Web");break;case"vscode":(X=so())==null||X.track("Opening Editor From VS Code");break;case"web-playground":(ne=so())==null||ne.track("Opening Editor From Web Playground");break;case"screenshot":(Z=so())==null||Z.track("Creating Screenshot");break}},[m]);const O=U.exports.useRef(null);Ble(()=>(document.body.style.overscrollBehavior="none",()=>{document.body.style.overscrollBehavior=""}),[]);const N=U.exports.useMemo(()=>KGn(T,P,u,()=>{var B;return(B=j.current)!=null?B:JDe},m,I),[T]),j=U.exports.useRef(Oar(N)),L=vW(()=>_Hn({graphActor:N,ref:O,canvasOpts:r,initialViewBox:j.current?new DD(j.current):void 0})),$=Al(L,B=>B.children.canvasInteractions);U.exports.useEffect(()=>$.subscribe(B=>{j.current=B.context.viewBox}).unsubscribe,[$]),U.exports.useEffect(()=>{L.send({type:"GRAPH_ACTOR_UPDATED",actor:N})},[N,L]),iur(B=>{(B==="Delete"||B==="Backspace")&&L.send("KEY.DELETE")});const F=ut.useRef(null);return U.exports.useEffect(()=>N.subscribe(X=>{X.effects.forEach(ne=>{switch(ne.type){case"reportChange":{d==null||d(X,I);break}case"node.selected":{p==null||p(ne.nodeId);break}case"fitToContent":{$.send({type:"fit_to_content"});break}case"node.focus":{F.current=k.focus("node",ne.nodeId);break}case"edge.focus":{if(ne.field==="guard"){F.current=k.focus("edge_guard",ne.edgeId);break}F.current=k.focus("edge_label",ne.edgeId);break}}})}).unsubscribe,[k,N,d,$,p,I]),U.exports.useEffect(()=>{if(F.current){const B=F.current;F.current=null,B()}}),V(kW.Provider,{value:{userMode:m,ownerName:E,projectName:x,selectedMachine:n},children:V(r1.Provider,{value:L,children:V(DFt.Provider,{value:N,children:V(mN.Provider,{value:O,children:V(AGn,{value:k,children:c})})})})})}const aur=()=>{const n=U.exports.useContext(r1),r=Al(n,u=>u.context.leftPanel),{getColorModeValue:c}=ei();return V(Ev,{onClick:()=>{var u;n.send({type:"leftPanel.toggle"}),(u=so())==null||u.track("Toggle left panel")},rounded:"none",bg:r?c("gray.100","gray.800"):c("transparent","transparent"),_hover:{bg:r?c("gray.200","gray.700"):c("gray.50","gray.800")},"aria-label":"Toggle sidebar",title:"Toggle sidebar",size:"lg",borderRight:"1px solid",borderColor:c("gray.200","gray.700"),color:c("gray.800","gray.50"),h:"full",children:r?V(hzn,{}):V(pzn,{})})},pPt=({name:n,onClick:r,active:c})=>{const{getColorModeValue:u}=ei();return We(Vc,{h:"full",rounded:"none",variant:"light",onClick:r,color:c?u("gray.800","white"):u("gray.500","gray.300"),children:[V(Bi,{px:1,textStyle:c?"bold":void 0,children:n}),V(In,{as:"span",display:"block",position:"absolute",bottom:"0",left:"2",right:"2",h:1,borderRadius:"md",bg:c?u("primary.500","white"):"transparent",justifySelf:"flex-end"})]})},cur=({viewOnly:n=!0,small:r})=>{const c=U.exports.useContext(r1),[u]=oFn(c);return We(_w,{spacing:0,h:"full",justifyContent:"center",size:r?"sm":"md",children:[V(pPt,{name:n?"View":"Edit",onClick:()=>c.send({type:"mode.edit"}),active:u.matches("editing")}),V(pPt,{name:"Simulate",onClick:()=>c.send({type:"mode.simulate"}),active:u.matches("simulating")})]})},uur=()=>{const{getColorModeValue:n}=ei();return V(Bc,{position:"absolute",zIndex:2,top:"3",w:"100vw",h:"10",justifyContent:"center",pointerEvents:"none",children:We(nl,{background:n("white","gray.800"),border:"1px solid",borderColor:n("gray.100","whiteAlpha.200"),rounded:"md",spacing:"0",pointerEvents:"auto",children:[V(aur,{}),V(In,{px:"2",h:"full",children:V(cur,{small:!0,viewOnly:!1})})]})})},lur={query:Object.fromEntries(new URLSearchParams(window.location.search)),push:()=>{throw new Error("`router.push` used in VS Code extension is a mistake")},replace:()=>{throw new Error("`router.replace` used in VS Code extension is a mistake")},get pathname(){throw new Error("reading `router.pathname` in VS Code extension is likely a mistake")},get asPath(){throw new Error("reading `router.asPath` in VS Code extension is likely a mistake")},isReady:!0},fur=lur;function dur(){const[n]=U.exports.useState(PHn),[r,c]=U.exports.useState(),[u,d]=U.exports.useState(()=>{const{config:x,layout:E,implementations:k}=mr.params;return K9t(x!=null?x:{},E,k)});U.exports.useEffect(()=>Il.bind(window,{type:"message",listener:x=>{try{if(x.data.type==="DISPLAY_ERROR"){const E=x.data;c(E.error)}if(x.data.type==="UPDATE_CONFIG"){c(void 0);const E=x.data,k=E.config,T=GDe.parse(E.layoutString),P=K9t(k,T,E.implementations);d(P)}}catch(E){console.error(E),c(ZVn(E)?E.message:"Unknown error")}}}),[]);const p=z$t(()=>{const{themeKind:x}=mr.params;return typeof x!="string"||!["dark","light"].includes(x)?i7e:{...i7e,config:{...i7e.config,initialColorMode:x}}}),m={definition:u.digraph,id:"vscode-extension",name:u.digraph.rootNode.data.key,status:"Snapshot",projectId:"vscode-extension",forkParentId:null,createdAt:new Date,updatedAt:new Date,hasParallelStatesFeature:!1,hasFinalStatesFeature:!1,hasHistoryStatesFeature:!1,hasInvokeFeature:!1,hasEntryActionsFeature:!1,hasExitActionsFeature:!1,hasGuardsFeature:!1,numberOfStates:3,lastEditedById:"vscode-extension"};return We(z$n,{theme:p,children:[V(Qq,{styles:[{"@font-face":{fontFamily:"Inter",fontWeight:"100 1000",fontDisplay:"swap",fontStyle:"normal",fontNamedInstance:"Regular",src:"url('Inter-roman.var.woff2') format('woff2')"}},{"@font-face":{fontFamily:"Inter",fontWeight:"100 1000",fontDisplay:"swap",fontStyle:"italic",fontNamedInstance:"Italic",src:"url('Inter-italic.var.woff2') format('woff2')"}}]}),V(B$t.Provider,{value:fur,children:V(sur,{onNodeSelected:mr.selectNode,requiresAutolayout:u.requiresAutolayout,canvasOpts:{leftPanelDefaultOpen:n},userMode:"vscode",selectedMachine:m,children:We(In,{width:"full",height:"100vh",children:[V(In,{pos:"absolute",zIndex:100,w:"full",my:"2",pointerEvents:r?"auto":"none",children:V(aNt,{in:r!==void 0,children:We(TMe,{status:"error",variant:"solid",children:[V(AMe,{}),r]})})}),V(uur,{}),V(our,{})]})})})]})}__t(document.getElementById("root")).render(V(dur,{})); diff --git a/apps/extension/client/bundled-editor/assets/index.93e42c6d.js b/apps/extension/client/bundled-editor/assets/index.93e42c6d.js new file mode 100644 index 00000000..01d1150c --- /dev/null +++ b/apps/extension/client/bundled-editor/assets/index.93e42c6d.js @@ -0,0 +1,1037 @@ +var h2n=Object.defineProperty;var p2n=(n,r,c)=>r in n?h2n(n,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[r]=c;var Yu=(n,r,c)=>(p2n(n,typeof r!="symbol"?r+"":r,c),c);function g2n(n,r){for(var c=0;cu[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function c(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerpolicy&&(p.referrerPolicy=d.referrerpolicy),d.crossorigin==="use-credentials"?p.credentials="include":d.crossorigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function u(d){if(d.ep)return;d.ep=!0;const p=c(d);fetch(d.href,p)}})();var KE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fue(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var PS={exports:{}},Mb={},U={exports:{}},aa={};/** + * @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 qq=Symbol.for("react.element"),b2n=Symbol.for("react.portal"),m2n=Symbol.for("react.fragment"),v2n=Symbol.for("react.strict_mode"),y2n=Symbol.for("react.profiler"),w2n=Symbol.for("react.provider"),x2n=Symbol.for("react.context"),S2n=Symbol.for("react.forward_ref"),E2n=Symbol.for("react.suspense"),k2n=Symbol.for("react.memo"),C2n=Symbol.for("react.lazy"),hkt=Symbol.iterator;function I2n(n){return n===null||typeof n!="object"?null:(n=hkt&&n[hkt]||n["@@iterator"],typeof n=="function"?n:null)}var wPt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xPt=Object.assign,SPt={};function KD(n,r,c){this.props=n,this.context=r,this.refs=SPt,this.updater=c||wPt}KD.prototype.isReactComponent={};KD.prototype.setState=function(n,r){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,r,"setState")};KD.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function EPt(){}EPt.prototype=KD.prototype;function zOe(n,r,c){this.props=n,this.context=r,this.refs=SPt,this.updater=c||wPt}var UOe=zOe.prototype=new EPt;UOe.constructor=zOe;xPt(UOe,KD.prototype);UOe.isPureReactComponent=!0;var pkt=Array.isArray,kPt=Object.prototype.hasOwnProperty,HOe={current:null},CPt={key:!0,ref:!0,__self:!0,__source:!0};function IPt(n,r,c){var u,d={},p=null,m=null;if(r!=null)for(u in r.ref!==void 0&&(m=r.ref),r.key!==void 0&&(p=""+r.key),r)kPt.call(r,u)&&!CPt.hasOwnProperty(u)&&(d[u]=r[u]);var x=arguments.length-2;if(x===1)d.children=c;else if(1>>1,xe=Ve[be];if(0>>1;bed(An,De))Wnd(ir,An)?(Ve[be]=ir,Ve[Wn]=De,be=Wn):(Ve[be]=An,Ve[an]=De,be=an);else if(Wnd(ir,De))Ve[be]=ir,Ve[Wn]=De,be=Wn;else break e}}return ye}function d(Ve,ye){var De=Ve.sortIndex-ye.sortIndex;return De!==0?De:Ve.id-ye.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var m=Date,x=m.now();n.unstable_now=function(){return m.now()-x}}var E=[],k=[],T=1,P=null,I=3,O=!1,N=!1,j=!1,$=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(Ve){for(var ye=c(k);ye!==null;){if(ye.callback===null)u(k);else if(ye.startTime<=Ve)u(k),ye.sortIndex=ye.expirationTime,r(E,ye);else break;ye=c(k)}}function X(Ve){if(j=!1,F(Ve),!N)if(c(E)!==null)N=!0,jt(te);else{var ye=c(k);ye!==null&&Me(X,ye.startTime-Ve)}}function te(Ve,ye){N=!1,j&&(j=!1,L(ce),ce=-1),O=!0;var De=I;try{for(F(ye),P=c(E);P!==null&&(!(P.expirationTime>ye)||Ve&&!ve());){var be=P.callback;if(typeof be=="function"){P.callback=null,I=P.priorityLevel;var xe=be(P.expirationTime<=ye);ye=n.unstable_now(),typeof xe=="function"?P.callback=xe:P===c(E)&&u(E),F(ye)}else u(E);P=c(E)}if(P!==null)var Jt=!0;else{var an=c(k);an!==null&&Me(X,an.startTime-ye),Jt=!1}return Jt}finally{P=null,I=De,O=!1}}var Z=!1,H=null,ce=-1,pe=5,fe=-1;function ve(){return!(n.unstable_now()-feVe||125be?(Ve.sortIndex=De,r(k,Ve),c(E)===null&&Ve===c(k)&&(j?(L(ce),ce=-1):j=!0,Me(X,De-be))):(Ve.sortIndex=xe,r(E,Ve),N||O||(N=!0,jt(te))),Ve},n.unstable_shouldYield=ve,n.unstable_wrapCallback=function(Ve){var ye=I;return function(){var De=I;I=ye;try{return Ve.apply(this,arguments)}finally{I=De}}}})(APt);(function(n){n.exports=APt})(TPt);/** + * @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 PPt=U.exports,Ab=TPt.exports;function gr(n){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+n,c=1;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bTe=Object.prototype.hasOwnProperty,_2n=/^[: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]*$/,bkt={},mkt={};function M2n(n){return bTe.call(mkt,n)?!0:bTe.call(bkt,n)?!1:_2n.test(n)?mkt[n]=!0:(bkt[n]=!0,!1)}function D2n(n,r,c,u){if(c!==null&&c.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return u?!1:c!==null?!c.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function N2n(n,r,c,u){if(r===null||typeof r>"u"||D2n(n,r,c,u))return!0;if(u)return!1;if(c!==null)switch(c.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function zp(n,r,c,u,d,p,m){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=c,this.propertyName=n,this.type=r,this.sanitizeURL=p,this.removeEmptyString=m}var n1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){n1[n]=new zp(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var r=n[0];n1[r]=new zp(r,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){n1[n]=new zp(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){n1[n]=new zp(n,2,!1,n,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(n){n1[n]=new zp(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){n1[n]=new zp(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){n1[n]=new zp(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){n1[n]=new zp(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){n1[n]=new zp(n,5,!1,n.toLowerCase(),null,!1,!1)});var WOe=/[\-:]([a-z])/g;function GOe(n){return n[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(n){var r=n.replace(WOe,GOe);n1[r]=new zp(r,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var r=n.replace(WOe,GOe);n1[r]=new zp(r,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var r=n.replace(WOe,GOe);n1[r]=new zp(r,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){n1[n]=new zp(n,1,!1,n.toLowerCase(),null,!1,!1)});n1.xlinkHref=new zp("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){n1[n]=new zp(n,1,!1,n.toLowerCase(),null,!0,!0)});function XOe(n,r,c,u){var d=n1.hasOwnProperty(r)?n1[r]:null;(d!==null?d.type!==0:u||!(2x||d[m]!==p[x]){var E=` +`+d[m].replace(" at new "," at ");return n.displayName&&E.includes("")&&(E=E.replace("",n.displayName)),E}while(1<=m&&0<=x);break}}}finally{UIe=!1,Error.prepareStackTrace=c}return(n=n?n.displayName||n.name:"")?SU(n):""}function j2n(n){switch(n.tag){case 5:return SU(n.type);case 16:return SU("Lazy");case 13:return SU("Suspense");case 19:return SU("SuspenseList");case 0:case 2:case 15:return n=HIe(n.type,!1),n;case 11:return n=HIe(n.type.render,!1),n;case 1:return n=HIe(n.type,!0),n;default:return""}}function wTe(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case wM:return"Fragment";case yM:return"Portal";case mTe:return"Profiler";case KOe:return"StrictMode";case vTe:return"Suspense";case yTe:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case MPt:return(n.displayName||"Context")+".Consumer";case _Pt:return(n._context.displayName||"Context")+".Provider";case YOe:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case QOe:return r=n.displayName||null,r!==null?r:wTe(n.type)||"Memo";case FE:r=n._payload,n=n._init;try{return wTe(n(r))}catch{}}return null}function R2n(n){var r=n.type;switch(n.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=r.render,n=n.displayName||n.name||"",r.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wTe(r);case 8:return r===KOe?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function gk(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function NPt(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $2n(n){var r=NPt(n)?"checked":"value",c=Object.getOwnPropertyDescriptor(n.constructor.prototype,r),u=""+n[r];if(!n.hasOwnProperty(r)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var d=c.get,p=c.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(m){u=""+m,p.call(this,m)}}),Object.defineProperty(n,r,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(m){u=""+m},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function _oe(n){n._valueTracker||(n._valueTracker=$2n(n))}function jPt(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var c=r.getValue(),u="";return n&&(u=NPt(n)?n.checked?"true":"false":n.value),n=u,n!==c?(r.setValue(n),!0):!1}function zae(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function xTe(n,r){var c=r.checked;return Tl({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c!=null?c:n._wrapperState.initialChecked})}function ykt(n,r){var c=r.defaultValue==null?"":r.defaultValue,u=r.checked!=null?r.checked:r.defaultChecked;c=gk(r.value!=null?r.value:c),n._wrapperState={initialChecked:u,initialValue:c,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function RPt(n,r){r=r.checked,r!=null&&XOe(n,"checked",r,!1)}function STe(n,r){RPt(n,r);var c=gk(r.value),u=r.type;if(c!=null)u==="number"?(c===0&&n.value===""||n.value!=c)&&(n.value=""+c):n.value!==""+c&&(n.value=""+c);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}r.hasOwnProperty("value")?ETe(n,r.type,c):r.hasOwnProperty("defaultValue")&&ETe(n,r.type,gk(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(n.defaultChecked=!!r.defaultChecked)}function wkt(n,r,c){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var u=r.type;if(!(u!=="submit"&&u!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+n._wrapperState.initialValue,c||r===n.value||(n.value=r),n.defaultValue=r}c=n.name,c!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,c!==""&&(n.name=c)}function ETe(n,r,c){(r!=="number"||zae(n.ownerDocument)!==n)&&(c==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+c&&(n.defaultValue=""+c))}var EU=Array.isArray;function FM(n,r,c,u){if(n=n.options,r){r={};for(var d=0;d"+r.valueOf().toString()+"",r=Moe.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;r.firstChild;)n.appendChild(r.firstChild)}});function DH(n,r){if(r){var c=n.firstChild;if(c&&c===n.lastChild&&c.nodeType===3){c.nodeValue=r;return}}n.textContent=r}var qU={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},L2n=["Webkit","ms","Moz","O"];Object.keys(qU).forEach(function(n){L2n.forEach(function(r){r=r+n.charAt(0).toUpperCase()+n.substring(1),qU[r]=qU[n]})});function BPt(n,r,c){return r==null||typeof r=="boolean"||r===""?"":c||typeof r!="number"||r===0||qU.hasOwnProperty(n)&&qU[n]?(""+r).trim():r+"px"}function VPt(n,r){n=n.style;for(var c in r)if(r.hasOwnProperty(c)){var u=c.indexOf("--")===0,d=BPt(c,r[c],u);c==="float"&&(c="cssFloat"),u?n.setProperty(c,d):n[c]=d}}var F2n=Tl({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 ITe(n,r){if(r){if(F2n[n]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(gr(137,n));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(gr(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(gr(61))}if(r.style!=null&&typeof r.style!="object")throw Error(gr(62))}}function TTe(n,r){if(n.indexOf("-")===-1)return typeof r.is=="string";switch(n){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 ATe=null;function ZOe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var PTe=null,BM=null,VM=null;function Ekt(n){if(n=Xq(n)){if(typeof PTe!="function")throw Error(gr(280));var r=n.stateNode;r&&(r=Hue(r),PTe(n.stateNode,n.type,r))}}function zPt(n){BM?VM?VM.push(n):VM=[n]:BM=n}function UPt(){if(BM){var n=BM,r=VM;if(VM=BM=null,Ekt(n),r)for(n=0;n>>=0,n===0?32:31-(Y2n(n)/Q2n|0)|0}var Doe=64,Noe=4194304;function kU(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Wae(n,r){var c=n.pendingLanes;if(c===0)return 0;var u=0,d=n.suspendedLanes,p=n.pingedLanes,m=c&268435455;if(m!==0){var x=m&~d;x!==0?u=kU(x):(p&=m,p!==0&&(u=kU(p)))}else m=c&~d,m!==0?u=kU(m):p!==0&&(u=kU(p));if(u===0)return 0;if(r!==0&&r!==u&&(r&d)===0&&(d=u&-u,p=r&-r,d>=p||d===16&&(p&4194240)!==0))return r;if((u&4)!==0&&(u|=c&16),r=n.entangledLanes,r!==0)for(n=n.entanglements,r&=u;0c;c++)r.push(n);return r}function Wq(n,r,c){n.pendingLanes|=r,r!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,r=31-kw(r),n[r]=c}function txn(n,r){var c=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0=GU),Mkt=String.fromCharCode(32),Dkt=!1;function uOt(n,r){switch(n){case"keyup":return Pxn.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lOt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var xM=!1;function _xn(n,r){switch(n){case"compositionend":return lOt(r);case"keypress":return r.which!==32?null:(Dkt=!0,Mkt);case"textInput":return n=r.data,n===Mkt&&Dkt?null:n;default:return null}}function Mxn(n,r){if(xM)return n==="compositionend"||!s_e&&uOt(n,r)?(n=aOt(),iae=r_e=YE=null,xM=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:c,offset:r-n};n=u}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=$kt(c)}}function pOt(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?pOt(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function gOt(){for(var n=window,r=zae();r instanceof n.HTMLIFrameElement;){try{var c=typeof r.contentWindow.location.href=="string"}catch{c=!1}if(c)n=r.contentWindow;else break;r=zae(n.document)}return r}function a_e(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}function Vxn(n){var r=gOt(),c=n.focusedElem,u=n.selectionRange;if(r!==c&&c&&c.ownerDocument&&pOt(c.ownerDocument.documentElement,c)){if(u!==null&&a_e(c)){if(r=u.start,n=u.end,n===void 0&&(n=r),"selectionStart"in c)c.selectionStart=r,c.selectionEnd=Math.min(n,c.value.length);else if(n=(r=c.ownerDocument||document)&&r.defaultView||window,n.getSelection){n=n.getSelection();var d=c.textContent.length,p=Math.min(u.start,d);u=u.end===void 0?p:Math.min(u.end,d),!n.extend&&p>u&&(d=u,u=p,p=d),d=Lkt(c,p);var m=Lkt(c,u);d&&m&&(n.rangeCount!==1||n.anchorNode!==d.node||n.anchorOffset!==d.offset||n.focusNode!==m.node||n.focusOffset!==m.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),n.removeAllRanges(),p>u?(n.addRange(r),n.extend(m.node,m.offset)):(r.setEnd(m.node,m.offset),n.addRange(r)))}}for(r=[],n=c;n=n.parentNode;)n.nodeType===1&&r.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,SM=null,jTe=null,KU=null,RTe=!1;function Fkt(n,r,c){var u=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;RTe||SM==null||SM!==zae(u)||(u=SM,"selectionStart"in u&&a_e(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),KU&&FH(KU,u)||(KU=u,u=Kae(jTe,"onSelect"),0CM||(n.current=zTe[CM],zTe[CM]=null,CM--)}function pu(n,r){CM++,zTe[CM]=n.current,n.current=r}var bk={},B1=Nk(bk),J0=Nk(!1),C7=bk;function lD(n,r){var c=n.type.contextTypes;if(!c)return bk;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===r)return u.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in c)d[p]=r[p];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=r,n.__reactInternalMemoizedMaskedChildContext=d),d}function eg(n){return n=n.childContextTypes,n!=null}function Qae(){Mu(J0),Mu(B1)}function Wkt(n,r,c){if(B1.current!==bk)throw Error(gr(168));pu(B1,r),pu(J0,c)}function kOt(n,r,c){var u=n.stateNode;if(r=r.childContextTypes,typeof u.getChildContext!="function")return c;u=u.getChildContext();for(var d in u)if(!(d in r))throw Error(gr(108,R2n(n)||"Unknown",d));return Tl({},c,u)}function Zae(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||bk,C7=B1.current,pu(B1,n),pu(J0,J0.current),!0}function Gkt(n,r,c){var u=n.stateNode;if(!u)throw Error(gr(169));c?(n=kOt(n,r,C7),u.__reactInternalMemoizedMergedChildContext=n,Mu(J0),Mu(B1),pu(B1,n)):Mu(J0),pu(J0,c)}var iS=null,que=!1,i9e=!1;function COt(n){iS===null?iS=[n]:iS.push(n)}function Jxn(n){que=!0,COt(n)}function jk(){if(!i9e&&iS!==null){i9e=!0;var n=0,r=Sc;try{var c=iS;for(Sc=1;n>=m,d-=m,uS=1<<32-kw(r)+d|c<ce?(pe=H,H=null):pe=H.sibling;var fe=I(L,H,F[ce],X);if(fe===null){H===null&&(H=pe);break}n&&H&&fe.alternate===null&&r(L,H),B=p(fe,B,ce),Z===null?te=fe:Z.sibling=fe,Z=fe,H=pe}if(ce===F.length)return c(L,H),tl&&U9(L,ce),te;if(H===null){for(;cece?(pe=H,H=null):pe=H.sibling;var ve=I(L,H,fe.value,X);if(ve===null){H===null&&(H=pe);break}n&&H&&ve.alternate===null&&r(L,H),B=p(ve,B,ce),Z===null?te=ve:Z.sibling=ve,Z=ve,H=pe}if(fe.done)return c(L,H),tl&&U9(L,ce),te;if(H===null){for(;!fe.done;ce++,fe=F.next())fe=P(L,fe.value,X),fe!==null&&(B=p(fe,B,ce),Z===null?te=fe:Z.sibling=fe,Z=fe);return tl&&U9(L,ce),te}for(H=u(L,H);!fe.done;ce++,fe=F.next())fe=O(H,L,ce,fe.value,X),fe!==null&&(n&&fe.alternate!==null&&H.delete(fe.key===null?ce:fe.key),B=p(fe,B,ce),Z===null?te=fe:Z.sibling=fe,Z=fe);return n&&H.forEach(function(Ge){return r(L,Ge)}),tl&&U9(L,ce),te}function $(L,B,F,X){if(typeof F=="object"&&F!==null&&F.type===wM&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case Ooe:e:{for(var te=F.key,Z=B;Z!==null;){if(Z.key===te){if(te=F.type,te===wM){if(Z.tag===7){c(L,Z.sibling),B=d(Z,F.props.children),B.return=L,L=B;break e}}else if(Z.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===FE&&eCt(te)===Z.type){c(L,Z.sibling),B=d(Z,F.props),B.ref=Jz(L,Z,F),B.return=L,L=B;break e}c(L,Z);break}else r(L,Z);Z=Z.sibling}F.type===wM?(B=g7(F.props.children,L.mode,X,F.key),B.return=L,L=B):(X=dae(F.type,F.key,F.props,null,L.mode,X),X.ref=Jz(L,B,F),X.return=L,L=X)}return m(L);case yM:e:{for(Z=F.key;B!==null;){if(B.key===Z)if(B.tag===4&&B.stateNode.containerInfo===F.containerInfo&&B.stateNode.implementation===F.implementation){c(L,B.sibling),B=d(B,F.children||[]),B.return=L,L=B;break e}else{c(L,B);break}else r(L,B);B=B.sibling}B=d9e(F,L.mode,X),B.return=L,L=B}return m(L);case FE:return Z=F._init,$(L,B,Z(F._payload),X)}if(EU(F))return N(L,B,F,X);if(Xz(F))return j(L,B,F,X);Voe(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,B!==null&&B.tag===6?(c(L,B.sibling),B=d(B,F),B.return=L,L=B):(c(L,B),B=f9e(F,L.mode,X),B.return=L,L=B),m(L)):c(L,B)}return $}var dD=DOt(!0),NOt=DOt(!1),Kq={},zx=Nk(Kq),UH=Nk(Kq),HH=Nk(Kq);function n7(n){if(n===Kq)throw Error(gr(174));return n}function b_e(n,r){switch(pu(HH,r),pu(UH,n),pu(zx,Kq),n=r.nodeType,n){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:CTe(null,"");break;default:n=n===8?r.parentNode:r,r=n.namespaceURI||null,n=n.tagName,r=CTe(r,n)}Mu(zx),pu(zx,r)}function hD(){Mu(zx),Mu(UH),Mu(HH)}function jOt(n){n7(HH.current);var r=n7(zx.current),c=CTe(r,n.type);r!==c&&(pu(UH,n),pu(zx,c))}function m_e(n){UH.current===n&&(Mu(zx),Mu(UH))}var El=Nk(0);function ice(n){for(var r=n;r!==null;){if(r.tag===13){var c=r.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var o9e=[];function v_e(){for(var n=0;nc?c:4,n(!0);var u=s9e.transition;s9e.transition={};try{n(!1),r()}finally{Sc=c,s9e.transition=u}}function QOt(){return Sv().memoizedState}function r3n(n,r,c){var u=dk(n);if(c={lane:u,action:c,hasEagerState:!1,eagerState:null,next:null},ZOt(n))JOt(r,c);else if(c=POt(n,r,c,u),c!==null){var d=Lp();Cw(c,n,u,d),e_t(c,r,u)}}function i3n(n,r,c){var u=dk(n),d={lane:u,action:c,hasEagerState:!1,eagerState:null,next:null};if(ZOt(n))JOt(r,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var m=r.lastRenderedState,x=p(m,c);if(d.hasEagerState=!0,d.eagerState=x,Ow(x,m)){var E=r.interleaved;E===null?(d.next=d,p_e(r)):(d.next=E.next,E.next=d),r.interleaved=d;return}}catch{}finally{}c=POt(n,r,d,u),c!==null&&(d=Lp(),Cw(c,n,u,d),e_t(c,r,u))}}function ZOt(n){var r=n.alternate;return n===Cl||r!==null&&r===Cl}function JOt(n,r){YU=oce=!0;var c=n.pending;c===null?r.next=r:(r.next=c.next,c.next=r),n.pending=r}function e_t(n,r,c){if((c&4194240)!==0){var u=r.lanes;u&=n.pendingLanes,c|=u,r.lanes=c,e_e(n,c)}}var sce={readContext:xv,useCallback:D1,useContext:D1,useEffect:D1,useImperativeHandle:D1,useInsertionEffect:D1,useLayoutEffect:D1,useMemo:D1,useReducer:D1,useRef:D1,useState:D1,useDebugValue:D1,useDeferredValue:D1,useTransition:D1,useMutableSource:D1,useSyncExternalStore:D1,useId:D1,unstable_isNewReconciler:!1},o3n={readContext:xv,useCallback:function(n,r){return kx().memoizedState=[n,r===void 0?null:r],n},useContext:xv,useEffect:nCt,useImperativeHandle:function(n,r,c){return c=c!=null?c.concat([n]):null,cae(4194308,4,WOt.bind(null,r,n),c)},useLayoutEffect:function(n,r){return cae(4194308,4,n,r)},useInsertionEffect:function(n,r){return cae(4,2,n,r)},useMemo:function(n,r){var c=kx();return r=r===void 0?null:r,n=n(),c.memoizedState=[n,r],n},useReducer:function(n,r,c){var u=kx();return r=c!==void 0?c(r):r,u.memoizedState=u.baseState=r,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:r},u.queue=n,n=n.dispatch=r3n.bind(null,Cl,n),[u.memoizedState,n]},useRef:function(n){var r=kx();return n={current:n},r.memoizedState=n},useState:tCt,useDebugValue:E_e,useDeferredValue:function(n){return kx().memoizedState=n},useTransition:function(){var n=tCt(!1),r=n[0];return n=n3n.bind(null,n[1]),kx().memoizedState=n,[r,n]},useMutableSource:function(){},useSyncExternalStore:function(n,r,c){var u=Cl,d=kx();if(tl){if(c===void 0)throw Error(gr(407));c=c()}else{if(c=r(),vh===null)throw Error(gr(349));(T7&30)!==0||LOt(u,r,c)}d.memoizedState=c;var p={value:c,getSnapshot:r};return d.queue=p,nCt(BOt.bind(null,u,p,n),[n]),u.flags|=2048,GH(9,FOt.bind(null,u,p,c,r),void 0,null),c},useId:function(){var n=kx(),r=vh.identifierPrefix;if(tl){var c=lS,u=uS;c=(u&~(1<<32-kw(u)-1)).toString(32)+c,r=":"+r+"R"+c,c=qH++,0<\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=m.createElement(c,{is:u.is}):(n=m.createElement(c),c==="select"&&(m=n,u.multiple?m.multiple=!0:u.size&&(m.size=u.size))):n=m.createElementNS(n,c),n[Dx]=r,n[zH]=u,u_t(n,r,!1,!1),r.stateNode=n;e:{switch(m=TTe(c,u),c){case"dialog":Cu("cancel",n),Cu("close",n),d=u;break;case"iframe":case"object":case"embed":Cu("load",n),d=u;break;case"video":case"audio":for(d=0;dgD&&(r.flags|=128,u=!0,eU(p,!1),r.lanes=4194304)}else{if(!u)if(n=ice(m),n!==null){if(r.flags|=128,u=!0,c=n.updateQueue,c!==null&&(r.updateQueue=c,r.flags|=4),eU(p,!0),p.tail===null&&p.tailMode==="hidden"&&!m.alternate&&!tl)return N1(r),null}else 2*Tf()-p.renderingStartTime>gD&&c!==1073741824&&(r.flags|=128,u=!0,eU(p,!1),r.lanes=4194304);p.isBackwards?(m.sibling=r.child,r.child=m):(c=p.last,c!==null?c.sibling=m:r.child=m,p.last=m)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Tf(),r.sibling=null,c=El.current,pu(El,u?c&1|2:c&1),r):(N1(r),null);case 22:case 23:return P_e(),u=r.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(r.flags|=8192),u&&(r.mode&1)!==0?(yb&1073741824)!==0&&(N1(r),r.subtreeFlags&6&&(r.flags|=8192)):N1(r),null;case 24:return null;case 25:return null}throw Error(gr(156,r.tag))}function h3n(n,r){switch(u_e(r),r.tag){case 1:return eg(r.type)&&Qae(),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return hD(),Mu(J0),Mu(B1),v_e(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 5:return m_e(r),null;case 13:if(Mu(El),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(gr(340));fD()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return Mu(El),null;case 4:return hD(),null;case 10:return h_e(r.type._context),null;case 22:case 23:return P_e(),null;case 24:return null;default:return null}}var Uoe=!1,L1=!1,p3n=typeof WeakSet=="function"?WeakSet:Set,oi=null;function PM(n,r){var c=n.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(u){ef(n,r,u)}else c.current=null}function eAe(n,r,c){try{c()}catch(u){ef(n,r,u)}}var fCt=!1;function g3n(n,r){if($Te=Gae,n=gOt(),a_e(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var u=c.getSelection&&c.getSelection();if(u&&u.rangeCount!==0){c=u.anchorNode;var d=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{c.nodeType,p.nodeType}catch{c=null;break e}var m=0,x=-1,E=-1,k=0,T=0,P=n,I=null;t:for(;;){for(var O;P!==c||d!==0&&P.nodeType!==3||(x=m+d),P!==p||u!==0&&P.nodeType!==3||(E=m+u),P.nodeType===3&&(m+=P.nodeValue.length),(O=P.firstChild)!==null;)I=P,P=O;for(;;){if(P===n)break t;if(I===c&&++k===d&&(x=m),I===p&&++T===u&&(E=m),(O=P.nextSibling)!==null)break;P=I,I=P.parentNode}P=O}c=x===-1||E===-1?null:{start:x,end:E}}else c=null}c=c||{start:0,end:0}}else c=null;for(LTe={focusedElem:n,selectionRange:c},Gae=!1,oi=r;oi!==null;)if(r=oi,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,oi=n;else for(;oi!==null;){r=oi;try{var N=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(N!==null){var j=N.memoizedProps,$=N.memoizedState,L=r.stateNode,B=L.getSnapshotBeforeUpdate(r.elementType===r.type?j:bw(r.type,j),$);L.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(gr(163))}}catch(X){ef(r,r.return,X)}if(n=r.sibling,n!==null){n.return=r.return,oi=n;break}oi=r.return}return N=fCt,fCt=!1,N}function QU(n,r,c){var u=r.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&n)===n){var p=d.destroy;d.destroy=void 0,p!==void 0&&eAe(r,c,p)}d=d.next}while(d!==u)}}function Xue(n,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var c=r=r.next;do{if((c.tag&n)===n){var u=c.create;c.destroy=u()}c=c.next}while(c!==r)}}function tAe(n){var r=n.ref;if(r!==null){var c=n.stateNode;switch(n.tag){case 5:n=c;break;default:n=c}typeof r=="function"?r(n):r.current=n}}function d_t(n){var r=n.alternate;r!==null&&(n.alternate=null,d_t(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&(delete r[Dx],delete r[zH],delete r[VTe],delete r[Qxn],delete r[Zxn])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function h_t(n){return n.tag===5||n.tag===3||n.tag===4}function dCt(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||h_t(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function nAe(n,r,c){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?c.nodeType===8?c.parentNode.insertBefore(n,r):c.insertBefore(n,r):(c.nodeType===8?(r=c.parentNode,r.insertBefore(n,c)):(r=c,r.appendChild(n)),c=c._reactRootContainer,c!=null||r.onclick!==null||(r.onclick=Yae));else if(u!==4&&(n=n.child,n!==null))for(nAe(n,r,c),n=n.sibling;n!==null;)nAe(n,r,c),n=n.sibling}function rAe(n,r,c){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?c.insertBefore(n,r):c.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(rAe(n,r,c),n=n.sibling;n!==null;)rAe(n,r,c),n=n.sibling}var Kh=null,vw=!1;function PE(n,r,c){for(c=c.child;c!==null;)p_t(n,r,c),c=c.sibling}function p_t(n,r,c){if(Vx&&typeof Vx.onCommitFiberUnmount=="function")try{Vx.onCommitFiberUnmount(Bue,c)}catch{}switch(c.tag){case 5:L1||PM(c,r);case 6:var u=Kh,d=vw;Kh=null,PE(n,r,c),Kh=u,vw=d,Kh!==null&&(vw?(n=Kh,c=c.stateNode,n.nodeType===8?n.parentNode.removeChild(c):n.removeChild(c)):Kh.removeChild(c.stateNode));break;case 18:Kh!==null&&(vw?(n=Kh,c=c.stateNode,n.nodeType===8?r9e(n.parentNode,c):n.nodeType===1&&r9e(n,c),$H(n)):r9e(Kh,c.stateNode));break;case 4:u=Kh,d=vw,Kh=c.stateNode.containerInfo,vw=!0,PE(n,r,c),Kh=u,vw=d;break;case 0:case 11:case 14:case 15:if(!L1&&(u=c.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var p=d,m=p.destroy;p=p.tag,m!==void 0&&((p&2)!==0||(p&4)!==0)&&eAe(c,r,m),d=d.next}while(d!==u)}PE(n,r,c);break;case 1:if(!L1&&(PM(c,r),u=c.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=c.memoizedProps,u.state=c.memoizedState,u.componentWillUnmount()}catch(x){ef(c,r,x)}PE(n,r,c);break;case 21:PE(n,r,c);break;case 22:c.mode&1?(L1=(u=L1)||c.memoizedState!==null,PE(n,r,c),L1=u):PE(n,r,c);break;default:PE(n,r,c)}}function hCt(n){var r=n.updateQueue;if(r!==null){n.updateQueue=null;var c=n.stateNode;c===null&&(c=n.stateNode=new p3n),r.forEach(function(u){var d=k3n.bind(null,n,u);c.has(u)||(c.add(u),u.then(d,d))})}}function uw(n,r){var c=r.deletions;if(c!==null)for(var u=0;ud&&(d=m),u&=~p}if(u=d,u=Tf()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*m3n(u/1960))-u,10n?16:n,QE===null)var u=!1;else{if(n=QE,QE=null,uce=0,(Ca&6)!==0)throw Error(gr(331));var d=Ca;for(Ca|=4,oi=n.current;oi!==null;){var p=oi,m=p.child;if((oi.flags&16)!==0){var x=p.deletions;if(x!==null){for(var E=0;ETf()-T_e?p7(n,0):I_e|=c),tg(n,r)}function S_t(n,r){r===0&&((n.mode&1)===0?r=1:(r=Noe,Noe<<=1,(Noe&130023424)===0&&(Noe=4194304)));var c=Lp();n=yS(n,r),n!==null&&(Wq(n,r,c),tg(n,c))}function E3n(n){var r=n.memoizedState,c=0;r!==null&&(c=r.retryLane),S_t(n,c)}function k3n(n,r){var c=0;switch(n.tag){case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(c=d.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(gr(314))}u!==null&&u.delete(r),S_t(n,c)}var E_t;E_t=function(n,r,c){if(n!==null)if(n.memoizedProps!==r.pendingProps||J0.current)K0=!0;else{if((n.lanes&c)===0&&(r.flags&128)===0)return K0=!1,f3n(n,r,c);K0=(n.flags&131072)!==0}else K0=!1,tl&&(r.flags&1048576)!==0&&IOt(r,ece,r.index);switch(r.lanes=0,r.tag){case 2:var u=r.type;uae(n,r),n=r.pendingProps;var d=lD(r,B1.current);UM(r,c),d=w_e(null,r,u,n,d,c);var p=x_e();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,eg(u)?(p=!0,Zae(r)):p=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,g_e(r),d.updater=Wue,r.stateNode=d,d._reactInternals=r,GTe(r,u,n,c),r=YTe(null,r,u,!0,p,c)):(r.tag=0,tl&&p&&c_e(r),Rp(null,r,d,c),r=r.child),r;case 16:u=r.elementType;e:{switch(uae(n,r),n=r.pendingProps,d=u._init,u=d(u._payload),r.type=u,d=r.tag=I3n(u),n=bw(u,n),d){case 0:r=KTe(null,r,u,n,c);break e;case 1:r=cCt(null,r,u,n,c);break e;case 11:r=sCt(null,r,u,n,c);break e;case 14:r=aCt(null,r,u,bw(u.type,n),c);break e}throw Error(gr(306,u,""))}return r;case 0:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),KTe(n,r,u,d,c);case 1:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),cCt(n,r,u,d,c);case 3:e:{if(s_t(r),n===null)throw Error(gr(387));u=r.pendingProps,p=r.memoizedState,d=p.element,OOt(n,r),rce(r,u,null,c);var m=r.memoizedState;if(u=m.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){d=pD(Error(gr(423)),r),r=uCt(n,r,u,c,d);break e}else if(u!==d){d=pD(Error(gr(424)),r),r=uCt(n,r,u,c,d);break e}else for(Eb=uk(r.stateNode.containerInfo.firstChild),Cb=r,tl=!0,yw=null,c=NOt(r,null,u,c),r.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(fD(),u===d){r=wS(n,r,c);break e}Rp(n,r,u,c)}r=r.child}return r;case 5:return jOt(r),n===null&&HTe(r),u=r.type,d=r.pendingProps,p=n!==null?n.memoizedProps:null,m=d.children,FTe(u,d)?m=null:p!==null&&FTe(u,p)&&(r.flags|=32),o_t(n,r),Rp(n,r,m,c),r.child;case 6:return n===null&&HTe(r),null;case 13:return a_t(n,r,c);case 4:return b_e(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=dD(r,null,u,c):Rp(n,r,u,c),r.child;case 11:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),sCt(n,r,u,d,c);case 7:return Rp(n,r,r.pendingProps,c),r.child;case 8:return Rp(n,r,r.pendingProps.children,c),r.child;case 12:return Rp(n,r,r.pendingProps.children,c),r.child;case 10:e:{if(u=r.type._context,d=r.pendingProps,p=r.memoizedProps,m=d.value,pu(tce,u._currentValue),u._currentValue=m,p!==null)if(Ow(p.value,m)){if(p.children===d.children&&!J0.current){r=wS(n,r,c);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var x=p.dependencies;if(x!==null){m=p.child;for(var E=x.firstContext;E!==null;){if(E.context===u){if(p.tag===1){E=gS(-1,c&-c),E.tag=2;var k=p.updateQueue;if(k!==null){k=k.shared;var T=k.pending;T===null?E.next=E:(E.next=T.next,T.next=E),k.pending=E}}p.lanes|=c,E=p.alternate,E!==null&&(E.lanes|=c),qTe(p.return,c,r),x.lanes|=c;break}E=E.next}}else if(p.tag===10)m=p.type===r.type?null:p.child;else if(p.tag===18){if(m=p.return,m===null)throw Error(gr(341));m.lanes|=c,x=m.alternate,x!==null&&(x.lanes|=c),qTe(m,c,r),m=p.sibling}else m=p.child;if(m!==null)m.return=p;else for(m=p;m!==null;){if(m===r){m=null;break}if(p=m.sibling,p!==null){p.return=m.return,m=p;break}m=m.return}p=m}Rp(n,r,d.children,c),r=r.child}return r;case 9:return d=r.type,u=r.pendingProps.children,UM(r,c),d=xv(d),u=u(d),r.flags|=1,Rp(n,r,u,c),r.child;case 14:return u=r.type,d=bw(u,r.pendingProps),d=bw(u.type,d),aCt(n,r,u,d,c);case 15:return r_t(n,r,r.type,r.pendingProps,c);case 17:return u=r.type,d=r.pendingProps,d=r.elementType===u?d:bw(u,d),uae(n,r),r.tag=1,eg(u)?(n=!0,Zae(r)):n=!1,UM(r,c),MOt(r,u,d),GTe(r,u,d,c),YTe(null,r,u,!0,n,c);case 19:return c_t(n,r,c);case 22:return i_t(n,r,c)}throw Error(gr(156,r.tag))};function k_t(n,r){return YPt(n,r)}function C3n(n,r,c,u){this.tag=n,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gv(n,r,c,u){return new C3n(n,r,c,u)}function __e(n){return n=n.prototype,!(!n||!n.isReactComponent)}function I3n(n){if(typeof n=="function")return __e(n)?1:0;if(n!=null){if(n=n.$$typeof,n===YOe)return 11;if(n===QOe)return 14}return 2}function hk(n,r){var c=n.alternate;return c===null?(c=gv(n.tag,r,n.key,n.mode),c.elementType=n.elementType,c.type=n.type,c.stateNode=n.stateNode,c.alternate=n,n.alternate=c):(c.pendingProps=r,c.type=n.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=n.flags&14680064,c.childLanes=n.childLanes,c.lanes=n.lanes,c.child=n.child,c.memoizedProps=n.memoizedProps,c.memoizedState=n.memoizedState,c.updateQueue=n.updateQueue,r=n.dependencies,c.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},c.sibling=n.sibling,c.index=n.index,c.ref=n.ref,c}function dae(n,r,c,u,d,p){var m=2;if(u=n,typeof n=="function")__e(n)&&(m=1);else if(typeof n=="string")m=5;else e:switch(n){case wM:return g7(c.children,d,p,r);case KOe:m=8,d|=8;break;case mTe:return n=gv(12,c,r,d|2),n.elementType=mTe,n.lanes=p,n;case vTe:return n=gv(13,c,r,d),n.elementType=vTe,n.lanes=p,n;case yTe:return n=gv(19,c,r,d),n.elementType=yTe,n.lanes=p,n;case DPt:return Yue(c,d,p,r);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _Pt:m=10;break e;case MPt:m=9;break e;case YOe:m=11;break e;case QOe:m=14;break e;case FE:m=16,u=null;break e}throw Error(gr(130,n==null?n:typeof n,""))}return r=gv(m,c,r,d),r.elementType=n,r.type=u,r.lanes=p,r}function g7(n,r,c,u){return n=gv(7,n,u,r),n.lanes=c,n}function Yue(n,r,c,u){return n=gv(22,n,u,r),n.elementType=DPt,n.lanes=c,n.stateNode={isHidden:!1},n}function f9e(n,r,c){return n=gv(6,n,null,r),n.lanes=c,n}function d9e(n,r,c){return r=gv(4,n.children!==null?n.children:[],n.key,r),r.lanes=c,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}function T3n(n,r,c,u,d){this.tag=r,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=WIe(0),this.expirationTimes=WIe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=WIe(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function M_e(n,r,c,u,d,p,m,x,E){return n=new T3n(n,r,c,x,E),r===1?(r=1,p===!0&&(r|=8)):r=0,p=gv(3,null,null,r),n.current=p,p.stateNode=n,p.memoizedState={element:u,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},g_e(p),n}function A3n(n,r,c){var u=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}r(),n.exports=Mb})(PS);const A_t=Fue(PS.exports);var P_t,xCt=PS.exports;P_t=xCt.createRoot,xCt.hydrateRoot;var Iw=Boolean(globalThis==null?void 0:globalThis.document)?U.exports.useLayoutEffect:U.exports.useEffect,tle={exports:{}},nle={};/** + * @license React + * react-jsx-runtime.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 D3n=U.exports,N3n=Symbol.for("react.element"),j3n=Symbol.for("react.fragment"),R3n=Object.prototype.hasOwnProperty,$3n=D3n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L3n={key:!0,ref:!0,__self:!0,__source:!0};function O_t(n,r,c){var u,d={},p=null,m=null;c!==void 0&&(p=""+c),r.key!==void 0&&(p=""+r.key),r.ref!==void 0&&(m=r.ref);for(u in r)R3n.call(r,u)&&!L3n.hasOwnProperty(u)&&(d[u]=r[u]);if(n&&n.defaultProps)for(u in r=n.defaultProps,r)d[u]===void 0&&(d[u]=r[u]);return{$$typeof:N3n,type:n,key:p,ref:m,props:d,_owner:$3n.current}}nle.Fragment=j3n;nle.jsx=O_t;nle.jsxs=O_t;(function(n){n.exports=nle})(tle);const Si=tle.exports.Fragment,z=tle.exports.jsx,We=tle.exports.jsxs;var R_e=U.exports.createContext({});R_e.displayName="ColorModeContext";function ZD(){const n=U.exports.useContext(R_e);if(n===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return n}function O7(n,r){const{colorMode:c}=ZD();return c==="dark"?r:n}var Woe={light:"chakra-ui-light",dark:"chakra-ui-dark"};function F3n(n={}){const{preventTransition:r=!0}=n,c={setDataset:u=>{const d=r?c.preventTransition():void 0;document.documentElement.dataset.theme=u,document.documentElement.style.colorScheme=u,d==null||d()},setClassName(u){document.body.classList.add(u?Woe.dark:Woe.light),document.body.classList.remove(u?Woe.light:Woe.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(u){var p;return((p=c.query().matches)!=null?p:u==="dark")?"dark":"light"},addListener(u){const d=c.query(),p=m=>{u(m.matches?"dark":"light")};return typeof d.addListener=="function"?d.addListener(p):d.addEventListener("change",p),()=>{typeof d.removeListener=="function"?d.removeListener(p):d.removeEventListener("change",p)}},preventTransition(){const u=document.createElement("style");return u.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(u),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(u)})})}}};return c}var B3n="chakra-ui-color-mode";function V3n(n){return{ssr:!1,type:"localStorage",get(r){if(!(globalThis!=null&&globalThis.document))return r;let c;try{c=localStorage.getItem(n)||r}catch{}return c||r},set(r){try{localStorage.setItem(n,r)}catch{}}}}var z3n=V3n(B3n),SCt=()=>{};function ECt(n,r){return n.type==="cookie"&&n.ssr?n.get(r):r}function __t(n){const{value:r,children:c,options:{useSystemColorMode:u,initialColorMode:d,disableTransitionOnChange:p}={},colorModeManager:m=z3n}=n,x=d==="dark"?"dark":"light",[E,k]=U.exports.useState(()=>ECt(m,x)),[T,P]=U.exports.useState(()=>ECt(m)),{getSystemTheme:I,setClassName:O,setDataset:N,addListener:j}=U.exports.useMemo(()=>F3n({preventTransition:p}),[p]),$=d==="system"&&!E?T:E,L=U.exports.useCallback(X=>{const te=X==="system"?I():X;k(te),O(te==="dark"),N(te),m.set(te)},[m,I,O,N]);Iw(()=>{d==="system"&&P(I())},[]),U.exports.useEffect(()=>{const X=m.get();if(X){L(X);return}if(d==="system"){L("system");return}L(x)},[m,x,d,L]);const B=U.exports.useCallback(()=>{L($==="dark"?"light":"dark")},[$,L]);U.exports.useEffect(()=>{if(!!u)return j(L)},[u,j,L]);const F=U.exports.useMemo(()=>({colorMode:r!=null?r:$,toggleColorMode:r?SCt:B,setColorMode:r?SCt:L,forced:r!==void 0}),[$,B,L,r]);return z(R_e.Provider,{value:F,children:c})}__t.displayName="ColorModeProvider";var cAe={exports:{}};(function(n,r){var c=200,u="__lodash_hash_undefined__",d=800,p=16,m=9007199254740991,x="[object Arguments]",E="[object Array]",k="[object AsyncFunction]",T="[object Boolean]",P="[object Date]",I="[object Error]",O="[object Function]",N="[object GeneratorFunction]",j="[object Map]",$="[object Number]",L="[object Null]",B="[object Object]",F="[object Proxy]",X="[object RegExp]",te="[object Set]",Z="[object String]",H="[object Undefined]",ce="[object WeakMap]",pe="[object ArrayBuffer]",fe="[object DataView]",ve="[object Float32Array]",Ge="[object Float64Array]",qe="[object Int8Array]",Je="[object Int16Array]",et="[object Int32Array]",jt="[object Uint8Array]",Me="[object Uint8ClampedArray]",Ve="[object Uint16Array]",ye="[object Uint32Array]",De=/[\\^$.*+?()[\]{}|]/g,be=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,Jt={};Jt[ve]=Jt[Ge]=Jt[qe]=Jt[Je]=Jt[et]=Jt[jt]=Jt[Me]=Jt[Ve]=Jt[ye]=!0,Jt[x]=Jt[E]=Jt[pe]=Jt[T]=Jt[fe]=Jt[P]=Jt[I]=Jt[O]=Jt[j]=Jt[$]=Jt[B]=Jt[X]=Jt[te]=Jt[Z]=Jt[ce]=!1;var an=typeof KE=="object"&&KE&&KE.Object===Object&&KE,An=typeof self=="object"&&self&&self.Object===Object&&self,Wn=an||An||Function("return this")(),ir=r&&!r.nodeType&&r,Jn=ir&&!0&&n&&!n.nodeType&&n,Gr=Jn&&Jn.exports===ir,Ze=Gr&&an.process,ut=function(){try{var ze=Jn&&Jn.require&&Jn.require("util").types;return ze||Ze&&Ze.binding&&Ze.binding("util")}catch{}}(),on=ut&&ut.isTypedArray;function Ne(ze,ht,Kt){switch(Kt.length){case 0:return ze.call(ht);case 1:return ze.call(ht,Kt[0]);case 2:return ze.call(ht,Kt[0],Kt[1]);case 3:return ze.call(ht,Kt[0],Kt[1],Kt[2])}return ze.apply(ht,Kt)}function at(ze,ht){for(var Kt=-1,Qr=Array(ze);++Kt-1}function UW(ze,ht){var Kt=this.__data__,Qr=Xk(Kt,ze);return Qr<0?(++this.size,Kt.push([ze,ht])):Kt[Qr][1]=ht,this}Rb.prototype.clear=FW,Rb.prototype.delete=BW,Rb.prototype.get=VW,Rb.prototype.has=zW,Rb.prototype.set=UW;function u3(ze){var ht=-1,Kt=ze==null?0:ze.length;for(this.clear();++ht1?Kt[Ns-1]:void 0,Wc=Ns>2?Kt[2]:void 0;for(Ya=ze.length>3&&typeof Ya=="function"?(Ns--,Ya):void 0,Wc&&fG(Kt[0],Kt[1],Wc)&&(Ya=Ns<3?void 0:Ya,Ns=1),ht=Object(ht);++Qr-1&&ze%1==0&&ze0){if(++ht>=d)return arguments[0]}else ht=0;return ze.apply(void 0,arguments)}}function yG(ze){if(ze!=null){try{return cr.call(ze)}catch{}try{return ze+""}catch{}}return""}function Zk(ze,ht){return ze===ht||ze!==ze&&ht!==ht}var Jk=kN(function(){return arguments}())?kN:function(ze){return LS(ze)&&Ur.call(ze,"callee")&&!Hr.call(ze,"callee")},pT=Array.isArray;function gT(ze){return ze!=null&&_N(ze.length)&&!bT(ze)}function wG(ze){return LS(ze)&&gT(ze)}var ON=Bi||CG;function bT(ze){if(!$w(ze))return!1;var ht=Kk(ze);return ht==O||ht==N||ht==k||ht==F}function _N(ze){return typeof ze=="number"&&ze>-1&&ze%1==0&&ze<=m}function $w(ze){var ht=typeof ze;return ze!=null&&(ht=="object"||ht=="function")}function LS(ze){return ze!=null&&typeof ze=="object"}function xG(ze){if(!LS(ze)||Kk(ze)!=B)return!1;var ht=Nt(ze);if(ht===null)return!0;var Kt=Ur.call(ht,"constructor")&&ht.constructor;return typeof Kt=="function"&&Kt instanceof Kt&&cr.call(Kt)==Uo}var MN=on?ae(on):JW;function SG(ze){return sG(ze,DN(ze))}function DN(ze){return gT(ze)?fT(ze,!0):eG(ze)}var EG=aG(function(ze,ht,Kt,Qr){CN(ze,ht,Kt,Qr)});function kG(ze){return function(){return ze}}function NN(ze){return ze}function CG(){return!1}n.exports=EG})(cAe,cAe.exports);const bv=cAe.exports;function Tw(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}function r7(n,...r){return U3n(n)?n(...r):n}var U3n=n=>typeof n=="function",H3n=n=>/!(important)?$/.test(n),kCt=n=>typeof n=="string"?n.replace(/!(important)?$/,"").trim():n,uAe=(n,r)=>c=>{const u=String(r),d=H3n(u),p=kCt(u),m=n?`${n}.${p}`:p;let x=Tw(c.__cssMap)&&m in c.__cssMap?c.__cssMap[m].varRef:r;return x=kCt(x),d?`${x} !important`:x};function KH(n){const{scale:r,transform:c,compose:u}=n;return(p,m)=>{var k;const x=uAe(r,p)(m);let E=(k=c==null?void 0:c(x,m))!=null?k:x;return u&&(E=u(E,m)),E}}var Goe=(...n)=>r=>n.reduce((c,u)=>u(c),r);function lw(n,r){return c=>{const u={property:c,scale:n};return u.transform=KH({scale:n,transform:r}),u}}var q3n=({rtl:n,ltr:r})=>c=>c.direction==="rtl"?n:r;function W3n(n){const{property:r,scale:c,transform:u}=n;return{scale:c,property:q3n(r),transform:c?KH({scale:c,compose:u}):u}}var M_t=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function G3n(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...M_t].join(" ")}function X3n(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...M_t].join(" ")}var K3n={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Y3n={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Q3n(n){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":n,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Z3n={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},D_t="& > :not(style) ~ :not(style)",J3n={[D_t]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},e4n={[D_t]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},lAe={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},t4n=new Set(Object.values(lAe)),N_t=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),n4n=n=>n.trim();function r4n(n,r){var P;var c;if(n==null||N_t.has(n))return n;const u=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:d,values:p}=(P=(c=u.exec(n))==null?void 0:c.groups)!=null?P:{};if(!d||!p)return n;const m=d.includes("-gradient")?d:`${d}-gradient`,[x,...E]=p.split(",").map(n4n).filter(Boolean);if((E==null?void 0:E.length)===0)return n;const k=x in lAe?lAe[x]:x;E.unshift(k);const T=E.map(I=>{if(t4n.has(I))return I;const O=I.indexOf(" "),[N,j]=O!==-1?[I.substr(0,O),I.substr(O+1)]:[I],$=j_t(j)?j:j&&j.split(" "),L=`colors.${N}`,B=L in r.__cssMap?r.__cssMap[L].varRef:N;return $?[B,...Array.isArray($)?$:[$]].join(" "):B});return`${m}(${T.join(", ")})`}var j_t=n=>typeof n=="string"&&n.includes("(")&&n.includes(")"),i4n=(n,r)=>r4n(n,r!=null?r:{});function o4n(n){return/^var\(--.+\)$/.test(n)}var s4n=n=>{const r=parseFloat(n.toString()),c=n.toString().replace(String(r),"");return{unitless:!c,value:r,unit:c}},vx=n=>r=>`${n}(${r})`,ka={filter(n){return n!=="auto"?n:K3n},backdropFilter(n){return n!=="auto"?n:Y3n},ring(n){return Q3n(ka.px(n))},bgClip(n){return n==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:n}},transform(n){return n==="auto"?G3n():n==="auto-gpu"?X3n():n},vh(n){return n==="$100vh"?"var(--chakra-vh)":n},px(n){if(n==null)return n;const{unitless:r}=s4n(n);return r||typeof n=="number"?`${n}px`:n},fraction(n){return typeof n!="number"||n>1?n:`${n*100}%`},float(n,r){const c={left:"right",right:"left"};return r.direction==="rtl"?c[n]:n},degree(n){if(o4n(n)||n==null)return n;const r=typeof n=="string"&&!n.endsWith("deg");return typeof n=="number"||r?`${n}deg`:n},gradient:i4n,blur:vx("blur"),opacity:vx("opacity"),brightness:vx("brightness"),contrast:vx("contrast"),dropShadow:vx("drop-shadow"),grayscale:vx("grayscale"),hueRotate:vx("hue-rotate"),invert:vx("invert"),saturate:vx("saturate"),sepia:vx("sepia"),bgImage(n){return n==null||j_t(n)||N_t.has(n)?n:`url(${n})`},outline(n){const r=String(n)==="0"||String(n)==="none";return n!==null&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:n}},flexDirection(n){var d;const{space:r,divide:c}=(d=Z3n[n])!=null?d:{},u={flexDirection:n};return r&&(u[r]=1),c&&(u[c]=1),u}},Ct={borderWidths:lw("borderWidths"),borderStyles:lw("borderStyles"),colors:lw("colors"),borders:lw("borders"),radii:lw("radii",ka.px),space:lw("space",Goe(ka.vh,ka.px)),spaceT:lw("space",Goe(ka.vh,ka.px)),degreeT(n){return{property:n,transform:ka.degree}},prop(n,r,c){return{property:n,scale:r,...r&&{transform:KH({scale:r,transform:c})}}},propT(n,r){return{property:n,transform:r}},sizes:lw("sizes",Goe(ka.vh,ka.px)),sizesT:lw("sizes",Goe(ka.vh,ka.fraction)),shadows:lw("shadows"),logical:W3n,blur:lw("blur",ka.blur)},hae={background:Ct.colors("background"),backgroundColor:Ct.colors("backgroundColor"),backgroundImage:Ct.propT("backgroundImage",ka.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ka.bgClip},bgSize:Ct.prop("backgroundSize"),bgPosition:Ct.prop("backgroundPosition"),bg:Ct.colors("background"),bgColor:Ct.colors("backgroundColor"),bgPos:Ct.prop("backgroundPosition"),bgRepeat:Ct.prop("backgroundRepeat"),bgAttachment:Ct.prop("backgroundAttachment"),bgGradient:Ct.propT("backgroundImage",ka.gradient),bgClip:{transform:ka.bgClip}};Object.assign(hae,{bgImage:hae.backgroundImage,bgImg:hae.backgroundImage});var Wa={border:Ct.borders("border"),borderWidth:Ct.borderWidths("borderWidth"),borderStyle:Ct.borderStyles("borderStyle"),borderColor:Ct.colors("borderColor"),borderRadius:Ct.radii("borderRadius"),borderTop:Ct.borders("borderTop"),borderBlockStart:Ct.borders("borderBlockStart"),borderTopLeftRadius:Ct.radii("borderTopLeftRadius"),borderStartStartRadius:Ct.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Ct.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Ct.radii("borderTopRightRadius"),borderStartEndRadius:Ct.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Ct.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Ct.borders("borderRight"),borderInlineEnd:Ct.borders("borderInlineEnd"),borderBottom:Ct.borders("borderBottom"),borderBlockEnd:Ct.borders("borderBlockEnd"),borderBottomLeftRadius:Ct.radii("borderBottomLeftRadius"),borderBottomRightRadius:Ct.radii("borderBottomRightRadius"),borderLeft:Ct.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Ct.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Ct.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Ct.borders(["borderLeft","borderRight"]),borderInline:Ct.borders("borderInline"),borderY:Ct.borders(["borderTop","borderBottom"]),borderBlock:Ct.borders("borderBlock"),borderTopWidth:Ct.borderWidths("borderTopWidth"),borderBlockStartWidth:Ct.borderWidths("borderBlockStartWidth"),borderTopColor:Ct.colors("borderTopColor"),borderBlockStartColor:Ct.colors("borderBlockStartColor"),borderTopStyle:Ct.borderStyles("borderTopStyle"),borderBlockStartStyle:Ct.borderStyles("borderBlockStartStyle"),borderBottomWidth:Ct.borderWidths("borderBottomWidth"),borderBlockEndWidth:Ct.borderWidths("borderBlockEndWidth"),borderBottomColor:Ct.colors("borderBottomColor"),borderBlockEndColor:Ct.colors("borderBlockEndColor"),borderBottomStyle:Ct.borderStyles("borderBottomStyle"),borderBlockEndStyle:Ct.borderStyles("borderBlockEndStyle"),borderLeftWidth:Ct.borderWidths("borderLeftWidth"),borderInlineStartWidth:Ct.borderWidths("borderInlineStartWidth"),borderLeftColor:Ct.colors("borderLeftColor"),borderInlineStartColor:Ct.colors("borderInlineStartColor"),borderLeftStyle:Ct.borderStyles("borderLeftStyle"),borderInlineStartStyle:Ct.borderStyles("borderInlineStartStyle"),borderRightWidth:Ct.borderWidths("borderRightWidth"),borderInlineEndWidth:Ct.borderWidths("borderInlineEndWidth"),borderRightColor:Ct.colors("borderRightColor"),borderInlineEndColor:Ct.colors("borderInlineEndColor"),borderRightStyle:Ct.borderStyles("borderRightStyle"),borderInlineEndStyle:Ct.borderStyles("borderInlineEndStyle"),borderTopRadius:Ct.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Ct.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Ct.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Ct.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Wa,{rounded:Wa.borderRadius,roundedTop:Wa.borderTopRadius,roundedTopLeft:Wa.borderTopLeftRadius,roundedTopRight:Wa.borderTopRightRadius,roundedTopStart:Wa.borderStartStartRadius,roundedTopEnd:Wa.borderStartEndRadius,roundedBottom:Wa.borderBottomRadius,roundedBottomLeft:Wa.borderBottomLeftRadius,roundedBottomRight:Wa.borderBottomRightRadius,roundedBottomStart:Wa.borderEndStartRadius,roundedBottomEnd:Wa.borderEndEndRadius,roundedLeft:Wa.borderLeftRadius,roundedRight:Wa.borderRightRadius,roundedStart:Wa.borderInlineStartRadius,roundedEnd:Wa.borderInlineEndRadius,borderStart:Wa.borderInlineStart,borderEnd:Wa.borderInlineEnd,borderTopStartRadius:Wa.borderStartStartRadius,borderTopEndRadius:Wa.borderStartEndRadius,borderBottomStartRadius:Wa.borderEndStartRadius,borderBottomEndRadius:Wa.borderEndEndRadius,borderStartRadius:Wa.borderInlineStartRadius,borderEndRadius:Wa.borderInlineEndRadius,borderStartWidth:Wa.borderInlineStartWidth,borderEndWidth:Wa.borderInlineEndWidth,borderStartColor:Wa.borderInlineStartColor,borderEndColor:Wa.borderInlineEndColor,borderStartStyle:Wa.borderInlineStartStyle,borderEndStyle:Wa.borderInlineEndStyle});var a4n={color:Ct.colors("color"),textColor:Ct.colors("color"),fill:Ct.colors("fill"),stroke:Ct.colors("stroke")},fAe={boxShadow:Ct.shadows("boxShadow"),mixBlendMode:!0,blendMode:Ct.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Ct.prop("backgroundBlendMode"),opacity:!0};Object.assign(fAe,{shadow:fAe.boxShadow});var c4n={filter:{transform:ka.filter},blur:Ct.blur("--chakra-blur"),brightness:Ct.propT("--chakra-brightness",ka.brightness),contrast:Ct.propT("--chakra-contrast",ka.contrast),hueRotate:Ct.degreeT("--chakra-hue-rotate"),invert:Ct.propT("--chakra-invert",ka.invert),saturate:Ct.propT("--chakra-saturate",ka.saturate),dropShadow:Ct.propT("--chakra-drop-shadow",ka.dropShadow),backdropFilter:{transform:ka.backdropFilter},backdropBlur:Ct.blur("--chakra-backdrop-blur"),backdropBrightness:Ct.propT("--chakra-backdrop-brightness",ka.brightness),backdropContrast:Ct.propT("--chakra-backdrop-contrast",ka.contrast),backdropHueRotate:Ct.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Ct.propT("--chakra-backdrop-invert",ka.invert),backdropSaturate:Ct.propT("--chakra-backdrop-saturate",ka.saturate)},dce={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ka.flexDirection},experimental_spaceX:{static:J3n,transform:KH({scale:"space",transform:n=>n!==null?{"--chakra-space-x":n}:null})},experimental_spaceY:{static:e4n,transform:KH({scale:"space",transform:n=>n!=null?{"--chakra-space-y":n}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Ct.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Ct.space("gap"),rowGap:Ct.space("rowGap"),columnGap:Ct.space("columnGap")};Object.assign(dce,{flexDir:dce.flexDirection});var R_t={gridGap:Ct.space("gridGap"),gridColumnGap:Ct.space("gridColumnGap"),gridRowGap:Ct.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},u4n={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ka.outline},outlineOffset:!0,outlineColor:Ct.colors("outlineColor")},sv={width:Ct.sizesT("width"),inlineSize:Ct.sizesT("inlineSize"),height:Ct.sizes("height"),blockSize:Ct.sizes("blockSize"),boxSize:Ct.sizes(["width","height"]),minWidth:Ct.sizes("minWidth"),minInlineSize:Ct.sizes("minInlineSize"),minHeight:Ct.sizes("minHeight"),minBlockSize:Ct.sizes("minBlockSize"),maxWidth:Ct.sizes("maxWidth"),maxInlineSize:Ct.sizes("maxInlineSize"),maxHeight:Ct.sizes("maxHeight"),maxBlockSize:Ct.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Ct.propT("float",ka.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(sv,{w:sv.width,h:sv.height,minW:sv.minWidth,maxW:sv.maxWidth,minH:sv.minHeight,maxH:sv.maxHeight,overscroll:sv.overscrollBehavior,overscrollX:sv.overscrollBehaviorX,overscrollY:sv.overscrollBehaviorY});var l4n={listStyleType:!0,listStylePosition:!0,listStylePos:Ct.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Ct.prop("listStyleImage")};function f4n(n,r,c,u){const d=typeof r=="string"?r.split("."):[r];for(u=0;u{const r=new WeakMap;return(u,d,p,m)=>{if(typeof u>"u")return n(u,d,p);r.has(u)||r.set(u,new Map);const x=r.get(u);if(x.has(d))return x.get(d);const E=n(u,d,p,m);return x.set(d,E),E}},h4n=d4n(f4n),p4n={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},g4n={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},h9e=(n,r,c)=>{const u={},d=h4n(n,r,{});for(const p in d)p in c&&c[p]!=null||(u[p]=d[p]);return u},b4n={srOnly:{transform(n){return n===!0?p4n:n==="focusable"?g4n:{}}},layerStyle:{processResult:!0,transform:(n,r,c)=>h9e(r,`layerStyles.${n}`,c)},textStyle:{processResult:!0,transform:(n,r,c)=>h9e(r,`textStyles.${n}`,c)},apply:{processResult:!0,transform:(n,r,c)=>h9e(r,n,c)}},eH={position:!0,pos:Ct.prop("position"),zIndex:Ct.prop("zIndex","zIndices"),inset:Ct.spaceT("inset"),insetX:Ct.spaceT(["left","right"]),insetInline:Ct.spaceT("insetInline"),insetY:Ct.spaceT(["top","bottom"]),insetBlock:Ct.spaceT("insetBlock"),top:Ct.spaceT("top"),insetBlockStart:Ct.spaceT("insetBlockStart"),bottom:Ct.spaceT("bottom"),insetBlockEnd:Ct.spaceT("insetBlockEnd"),left:Ct.spaceT("left"),insetInlineStart:Ct.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Ct.spaceT("right"),insetInlineEnd:Ct.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(eH,{insetStart:eH.insetInlineStart,insetEnd:eH.insetInlineEnd});var m4n={ring:{transform:ka.ring},ringColor:Ct.colors("--chakra-ring-color"),ringOffset:Ct.prop("--chakra-ring-offset-width"),ringOffsetColor:Ct.colors("--chakra-ring-offset-color"),ringInset:Ct.prop("--chakra-ring-inset")},Iu={margin:Ct.spaceT("margin"),marginTop:Ct.spaceT("marginTop"),marginBlockStart:Ct.spaceT("marginBlockStart"),marginRight:Ct.spaceT("marginRight"),marginInlineEnd:Ct.spaceT("marginInlineEnd"),marginBottom:Ct.spaceT("marginBottom"),marginBlockEnd:Ct.spaceT("marginBlockEnd"),marginLeft:Ct.spaceT("marginLeft"),marginInlineStart:Ct.spaceT("marginInlineStart"),marginX:Ct.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Ct.spaceT("marginInline"),marginY:Ct.spaceT(["marginTop","marginBottom"]),marginBlock:Ct.spaceT("marginBlock"),padding:Ct.space("padding"),paddingTop:Ct.space("paddingTop"),paddingBlockStart:Ct.space("paddingBlockStart"),paddingRight:Ct.space("paddingRight"),paddingBottom:Ct.space("paddingBottom"),paddingBlockEnd:Ct.space("paddingBlockEnd"),paddingLeft:Ct.space("paddingLeft"),paddingInlineStart:Ct.space("paddingInlineStart"),paddingInlineEnd:Ct.space("paddingInlineEnd"),paddingX:Ct.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Ct.space("paddingInline"),paddingY:Ct.space(["paddingTop","paddingBottom"]),paddingBlock:Ct.space("paddingBlock")};Object.assign(Iu,{m:Iu.margin,mt:Iu.marginTop,mr:Iu.marginRight,me:Iu.marginInlineEnd,marginEnd:Iu.marginInlineEnd,mb:Iu.marginBottom,ml:Iu.marginLeft,ms:Iu.marginInlineStart,marginStart:Iu.marginInlineStart,mx:Iu.marginX,my:Iu.marginY,p:Iu.padding,pt:Iu.paddingTop,py:Iu.paddingY,px:Iu.paddingX,pb:Iu.paddingBottom,pl:Iu.paddingLeft,ps:Iu.paddingInlineStart,paddingStart:Iu.paddingInlineStart,pr:Iu.paddingRight,pe:Iu.paddingInlineEnd,paddingEnd:Iu.paddingInlineEnd});var v4n={textDecorationColor:Ct.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Ct.shadows("textShadow")},y4n={clipPath:!0,transform:Ct.propT("transform",ka.transform),transformOrigin:!0,translateX:Ct.spaceT("--chakra-translate-x"),translateY:Ct.spaceT("--chakra-translate-y"),skewX:Ct.degreeT("--chakra-skew-x"),skewY:Ct.degreeT("--chakra-skew-y"),scaleX:Ct.prop("--chakra-scale-x"),scaleY:Ct.prop("--chakra-scale-y"),scale:Ct.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Ct.degreeT("--chakra-rotate")},w4n={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Ct.prop("transitionDuration","transition.duration"),transitionProperty:Ct.prop("transitionProperty","transition.property"),transitionTimingFunction:Ct.prop("transitionTimingFunction","transition.easing")},x4n={fontFamily:Ct.prop("fontFamily","fonts"),fontSize:Ct.prop("fontSize","fontSizes",ka.px),fontWeight:Ct.prop("fontWeight","fontWeights"),lineHeight:Ct.prop("lineHeight","lineHeights"),letterSpacing:Ct.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},S4n={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Ct.spaceT("scrollMargin"),scrollMarginTop:Ct.spaceT("scrollMarginTop"),scrollMarginBottom:Ct.spaceT("scrollMarginBottom"),scrollMarginLeft:Ct.spaceT("scrollMarginLeft"),scrollMarginRight:Ct.spaceT("scrollMarginRight"),scrollMarginX:Ct.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Ct.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Ct.spaceT("scrollPadding"),scrollPaddingTop:Ct.spaceT("scrollPaddingTop"),scrollPaddingBottom:Ct.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Ct.spaceT("scrollPaddingLeft"),scrollPaddingRight:Ct.spaceT("scrollPaddingRight"),scrollPaddingX:Ct.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Ct.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function $_t(n){return Tw(n)&&n.reference?n.reference:String(n)}var rle=(n,...r)=>r.map($_t).join(` ${n} `).replace(/calc/g,""),CCt=(...n)=>`calc(${rle("+",...n)})`,ICt=(...n)=>`calc(${rle("-",...n)})`,dAe=(...n)=>`calc(${rle("*",...n)})`,TCt=(...n)=>`calc(${rle("/",...n)})`,ACt=n=>{const r=$_t(n);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:dAe(r,-1)},X9=Object.assign(n=>({add:(...r)=>X9(CCt(n,...r)),subtract:(...r)=>X9(ICt(n,...r)),multiply:(...r)=>X9(dAe(n,...r)),divide:(...r)=>X9(TCt(n,...r)),negate:()=>X9(ACt(n)),toString:()=>n.toString()}),{add:CCt,subtract:ICt,multiply:dAe,divide:TCt,negate:ACt});function E4n(n,r="-"){return n.replace(/\s+/g,r)}function k4n(n){const r=E4n(n.toString());return I4n(C4n(r))}function C4n(n){return n.includes("\\.")?n:!Number.isInteger(parseFloat(n.toString()))?n.replace(".","\\."):n}function I4n(n){return n.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function T4n(n,r=""){return[r,n].filter(Boolean).join("-")}function A4n(n,r){return`var(${n}${r?`, ${r}`:""})`}function P4n(n,r=""){return k4n(`--${T4n(n,r)}`)}function Ld(n,r,c){const u=P4n(n,c);return{variable:u,reference:A4n(u,r)}}function O4n(n){const r=n==null?0:n.length;return r?n[r-1]:void 0}function _4n(n){const r=parseFloat(n.toString()),c=n.toString().replace(String(r),"");return{unitless:!c,value:r,unit:c}}function hAe(n){if(n==null)return n;const{unitless:r}=_4n(n);return r||typeof n=="number"?`${n}px`:n}var L_t=(n,r)=>parseInt(n[1],10)>parseInt(r[1],10)?1:-1,$_e=n=>Object.fromEntries(Object.entries(n).sort(L_t));function PCt(n){const r=$_e(n);return Object.assign(Object.values(r),r)}function M4n(n){const r=Object.keys($_e(n));return new Set(r)}function OCt(n){var c;if(!n)return n;n=(c=hAe(n))!=null?c:n;const r=n.endsWith("px")?-1:-.0625;return typeof n=="number"?`${n+r}`:n.replace(/(\d+\.?\d*)/u,u=>`${parseFloat(u)+r}`)}function IU(n,r){const c=["@media screen"];return n&&c.push("and",`(min-width: ${hAe(n)})`),r&&c.push("and",`(max-width: ${hAe(r)})`),c.join(" ")}function D4n(n){var p;if(!n)return null;n.base=(p=n.base)!=null?p:"0px";const r=PCt(n),c=Object.entries(n).sort(L_t).map(([m,x],E,k)=>{var P;let[,T]=(P=k[E+1])!=null?P:[];return T=parseFloat(T)>0?OCt(T):void 0,{_minW:OCt(x),breakpoint:m,minW:x,maxW:T,maxWQuery:IU(null,T),minWQuery:IU(x),minMaxQuery:IU(x,T)}}),u=M4n(n),d=Array.from(u.values());return{keys:u,normalized:r,isResponsive(m){const x=Object.keys(m);return x.length>0&&x.every(E=>u.has(E))},asObject:$_e(n),asArray:PCt(n),details:c,media:[null,...r.map(m=>IU(m)).slice(1)],toArrayValue(m){if(!Tw(m))throw new Error("toArrayValue: value must be an object");const x=d.map(E=>{var k;return(k=m[E])!=null?k:null});for(;O4n(x)===null;)x.pop();return x},toObjectValue(m){if(!Array.isArray(m))throw new Error("toObjectValue: value must be an array");return m.reduce((x,E,k)=>{const T=d[k];return T!=null&&E!=null&&(x[T]=E),x},{})}}}var Wh={hover:(n,r)=>`${n}:hover ${r}, ${n}[data-hover] ${r}`,focus:(n,r)=>`${n}:focus ${r}, ${n}[data-focus] ${r}`,focusVisible:(n,r)=>`${n}:focus-visible ${r}`,focusWithin:(n,r)=>`${n}:focus-within ${r}`,active:(n,r)=>`${n}:active ${r}, ${n}[data-active] ${r}`,disabled:(n,r)=>`${n}:disabled ${r}, ${n}[data-disabled] ${r}`,invalid:(n,r)=>`${n}:invalid ${r}, ${n}[data-invalid] ${r}`,checked:(n,r)=>`${n}:checked ${r}, ${n}[data-checked] ${r}`,indeterminate:(n,r)=>`${n}:indeterminate ${r}, ${n}[aria-checked=mixed] ${r}, ${n}[data-indeterminate] ${r}`,readOnly:(n,r)=>`${n}:read-only ${r}, ${n}[readonly] ${r}, ${n}[data-read-only] ${r}`,expanded:(n,r)=>`${n}:read-only ${r}, ${n}[aria-expanded=true] ${r}, ${n}[data-expanded] ${r}`,placeholderShown:(n,r)=>`${n}:placeholder-shown ${r}`},OE=n=>F_t(r=>n(r,"&"),"[role=group]","[data-group]",".group"),Y4=n=>F_t(r=>n(r,"~ &"),"[data-peer]",".peer"),F_t=(n,...r)=>r.map(n).join(", "),ile={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:OE(Wh.hover),_peerHover:Y4(Wh.hover),_groupFocus:OE(Wh.focus),_peerFocus:Y4(Wh.focus),_groupFocusVisible:OE(Wh.focusVisible),_peerFocusVisible:Y4(Wh.focusVisible),_groupActive:OE(Wh.active),_peerActive:Y4(Wh.active),_groupDisabled:OE(Wh.disabled),_peerDisabled:Y4(Wh.disabled),_groupInvalid:OE(Wh.invalid),_peerInvalid:Y4(Wh.invalid),_groupChecked:OE(Wh.checked),_peerChecked:Y4(Wh.checked),_groupFocusWithin:OE(Wh.focusWithin),_peerFocusWithin:Y4(Wh.focusWithin),_peerPlaceholderShown:Y4(Wh.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},N4n=Object.keys(ile);function _Ct(n,r){return Ld(String(n).replace(/\./g,"-"),void 0,r)}function j4n(n,r){let c={};const u={};for(const[d,p]of Object.entries(n)){const{isSemantic:m,value:x}=p,{variable:E,reference:k}=_Ct(d,r==null?void 0:r.cssVarPrefix);if(!m){if(d.startsWith("space")){const I=d.split("."),[O,...N]=I,j=`${O}.-${N.join(".")}`,$=X9.negate(x),L=X9.negate(k);u[j]={value:$,var:E,varRef:L}}c[E]=x,u[d]={value:x,var:E,varRef:k};continue}const T=I=>{const N=[String(d).split(".")[0],I].join(".");if(!n[N])return I;const{reference:$}=_Ct(N,r==null?void 0:r.cssVarPrefix);return $},P=Tw(x)?x:{default:x};c=bv(c,Object.entries(P).reduce((I,[O,N])=>{var B;var j;const $=T(N);if(O==="default")return I[E]=$,I;const L=(B=(j=ile)==null?void 0:j[O])!=null?B:O;return I[L]={[E]:$},I},{})),u[d]={value:k,var:E,varRef:k}}return{cssVars:c,cssMap:u}}function R4n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function $4n(n,r){const c={};for(const u of r)u in n&&(c[u]=n[u]);return c}var L4n=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function F4n(n){return $4n(n,L4n)}function B4n(n){return n.semanticTokens}function V4n(n){const{__cssMap:r,__cssVars:c,__breakpoints:u,...d}=n;return d}function z4n({tokens:n,semanticTokens:r}){var d,p;const c=Object.entries((d=pAe(n))!=null?d:{}).map(([m,x])=>[m,{isSemantic:!1,value:x}]),u=Object.entries((p=pAe(r,1))!=null?p:{}).map(([m,x])=>[m,{isSemantic:!0,value:x}]);return Object.fromEntries([...c,...u])}function pAe(n,r=1/0){return!Tw(n)&&!Array.isArray(n)||!r?n:Object.entries(n).reduce((c,[u,d])=>(Tw(d)||Array.isArray(d)?Object.entries(pAe(d,r-1)).forEach(([p,m])=>{c[`${u}.${p}`]=m}):c[u]=d,c),{})}function U4n(n){var r;const c=V4n(n),u=F4n(c),d=B4n(c),p=z4n({tokens:u,semanticTokens:d}),m=(r=c.config)==null?void 0:r.cssVarPrefix,{cssMap:x,cssVars:E}=j4n(p,{cssVarPrefix:m});return Object.assign(c,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...E},__cssMap:x,__breakpoints:D4n(c.breakpoints)}),c}var L_e=bv({},hae,Wa,a4n,dce,sv,c4n,m4n,u4n,R_t,b4n,eH,fAe,Iu,S4n,x4n,v4n,y4n,l4n,w4n),H4n=Object.assign({},Iu,sv,dce,R_t,eH),q4n=Object.keys(H4n),W4n=[...Object.keys(L_e),...N4n],G4n={...L_e,...ile},X4n=n=>n in G4n,K4n=n=>r=>{if(!r.__breakpoints)return n;const{isResponsive:c,toArrayValue:u,media:d}=r.__breakpoints,p={};for(const m in n){let x=r7(n[m],r);if(x==null)continue;if(x=Tw(x)&&c(x)?u(x):x,!Array.isArray(x)){p[m]=x;continue}const E=x.slice(0,d.length).length;for(let k=0;kn.startsWith("--")&&typeof r=="string"&&!Q4n(r),J4n=(n,r)=>{var m,x;if(r==null)return r;const c=E=>{var k,T;return(T=(k=n.__cssMap)==null?void 0:k[E])==null?void 0:T.varRef},u=E=>{var k;return(k=c(E))!=null?k:E},[d,p]=Y4n(r);return r=(x=(m=c(d))!=null?m:u(p))!=null?x:u(r),r};function eSn(n){const{configs:r={},pseudos:c={},theme:u}=n,d=(p,m=!1)=>{var P,I;var x;const E=r7(p,u),k=K4n(E)(u);let T={};for(let O in k){const N=k[O];let j=r7(N,u);O in c&&(O=c[O]),Z4n(O,j)&&(j=J4n(u,j));let $=r[O];if($===!0&&($={property:O}),Tw(j)){T[O]=(P=T[O])!=null?P:{},T[O]=bv({},T[O],d(j,!0));continue}let L=(I=(x=$==null?void 0:$.transform)==null?void 0:x.call($,j,u,E))!=null?I:j;L=$!=null&&$.processResult?d(L,!0):L;const B=r7($==null?void 0:$.property,u);if(!m&&($==null?void 0:$.static)){const F=r7($.static,u);T=bv({},T,F)}if(B&&Array.isArray(B)){for(const F of B)T[F]=L;continue}if(B){B==="&"&&Tw(L)?T=bv({},T,L):T[B]=L;continue}if(Tw(L)){T=bv({},T,L);continue}T[O]=L}return T};return d}var B_t=n=>r=>eSn({theme:r,pseudos:ile,configs:L_e})(n);function rl(n){return{definePartsStyle(r){return r},defineMultiStyleConfig(r){return{parts:n,...r}}}}function tSn(n,r){if(Array.isArray(n))return n;if(Tw(n))return r(n);if(n!=null)return[n]}function nSn(n,r){for(let c=r+1;c{bv(k,{[F]:I?B[F]:{[L]:B[F]}})});continue}if(!O){I?bv(k,B):k[L]=B;continue}k[L]=B}}return k}}function iSn(n){return r=>{var m;const{variant:c,size:u,theme:d}=r,p=rSn(d);return bv({},r7((m=n.baseStyle)!=null?m:{},r),p(n,"sizes",u,r),p(n,"variants",c,r))}}function oSn(n,r,c){var p;var u,d;return(p=(d=(u=n.__cssMap)==null?void 0:u[`${r}.${c}`])==null?void 0:d.varRef)!=null?p:c}function Ba(n){return R4n(n,["styleConfig","size","variant","colorScheme"])}function sSn(n){if(n.sheet)return n.sheet;for(var r=0;r0?Zh(JD,--ig):0,bD--,Jf===10&&(bD=1,sle--),Jf}function Ib(){return Jf=ig2||QH(Jf)>3?"":" "}function vSn(n,r){for(;--r&&Ib()&&!(Jf<48||Jf>102||Jf>57&&Jf<65||Jf>70&&Jf<97););return Yq(n,pae()+(r<6&&Ux()==32&&Ib()==32))}function bAe(n){for(;Ib();)switch(Jf){case n:return ig;case 34:case 39:n!==34&&n!==39&&bAe(Jf);break;case 40:n===41&&bAe(n);break;case 92:Ib();break}return ig}function ySn(n,r){for(;Ib()&&n+Jf!==47+10;)if(n+Jf===42+42&&Ux()===47)break;return"/*"+Yq(r,ig-1)+"*"+ole(n===47?n:Ib())}function wSn(n){for(;!QH(Ux());)Ib();return Yq(n,ig)}function xSn(n){return W_t(bae("",null,null,null,[""],n=q_t(n),0,[0],n))}function bae(n,r,c,u,d,p,m,x,E){for(var k=0,T=0,P=m,I=0,O=0,N=0,j=1,$=1,L=1,B=0,F="",X=d,te=p,Z=u,H=F;$;)switch(N=B,B=Ib()){case 40:if(N!=108&&Zh(H,P-1)==58){gAe(H+=oc(gae(B),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:H+=gae(B);break;case 9:case 10:case 13:case 32:H+=mSn(N);break;case 92:H+=vSn(pae()-1,7);continue;case 47:switch(Ux()){case 42:case 47:Xoe(SSn(ySn(Ib(),pae()),r,c),E);break;default:H+="/"}break;case 123*j:x[k++]=Ox(H)*L;case 125*j:case 59:case 0:switch(B){case 0:case 125:$=0;case 59+T:O>0&&Ox(H)-P&&Xoe(O>32?DCt(H+";",u,c,P-1):DCt(oc(H," ","")+";",u,c,P-2),E);break;case 59:H+=";";default:if(Xoe(Z=MCt(H,r,c,k,T,d,x,F,X=[],te=[],P),p),B===123)if(T===0)bae(H,r,Z,Z,X,p,P,x,te);else switch(I===99&&Zh(H,3)===110?100:I){case 100:case 109:case 115:bae(n,Z,Z,u&&Xoe(MCt(n,Z,Z,0,0,d,x,F,d,X=[],P),te),d,te,P,x,u?X:te);break;default:bae(H,Z,Z,Z,[""],te,0,x,te)}}k=T=O=0,j=L=1,F=H="",P=m;break;case 58:P=1+Ox(H),O=N;default:if(j<1){if(B==123)--j;else if(B==125&&j++==0&&bSn()==125)continue}switch(H+=ole(B),B*j){case 38:L=T>0?1:(H+="\f",-1);break;case 44:x[k++]=(Ox(H)-1)*L,L=1;break;case 64:Ux()===45&&(H+=gae(Ib())),I=Ux(),T=P=Ox(F=H+=wSn(pae())),B++;break;case 45:N===45&&Ox(H)==2&&(j=0)}}return p}function MCt(n,r,c,u,d,p,m,x,E,k,T){for(var P=d-1,I=d===0?p:[""],O=V_e(I),N=0,j=0,$=0;N0?I[L]+" "+B:oc(B,/&\f/g,I[L])))&&(E[$++]=F);return ale(n,r,c,d===0?F_e:x,E,k,T)}function SSn(n,r,c){return ale(n,r,c,V_t,ole(gSn()),YH(n,2,-2),0)}function DCt(n,r,c,u){return ale(n,r,c,B_e,YH(n,0,u),YH(n,u+1,-1),u)}function qM(n,r){for(var c="",u=V_e(n),d=0;d6)switch(Zh(n,r+1)){case 109:if(Zh(n,r+4)!==45)break;case 102:return oc(n,/(.+:)(.+)-([^]+)/,"$1"+Ga+"$2-$3$1"+hce+(Zh(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~gAe(n,"stretch")?G_t(oc(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Zh(n,r+1)!==115)break;case 6444:switch(Zh(n,Ox(n)-3-(~gAe(n,"!important")&&10))){case 107:return oc(n,":",":"+Ga)+n;case 101:return oc(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ga+(Zh(n,14)===45?"inline-":"")+"box$3$1"+Ga+"$2$3$1"+R1+"$2box$3")+n}break;case 5936:switch(Zh(n,r+11)){case 114:return Ga+n+R1+oc(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ga+n+R1+oc(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ga+n+R1+oc(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ga+n+R1+n+n}return n}var _Sn=function(r,c,u,d){if(r.length>-1&&!r.return)switch(r.type){case B_e:r.return=G_t(r.value,r.length);break;case z_t:return qM([nU(r,{value:oc(r.value,"@","@"+Ga)})],d);case F_e:if(r.length)return pSn(r.props,function(p){switch(hSn(p,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qM([nU(r,{props:[oc(p,/:(read-\w+)/,":"+hce+"$1")]})],d);case"::placeholder":return qM([nU(r,{props:[oc(p,/:(plac\w+)/,":"+Ga+"input-$1")]}),nU(r,{props:[oc(p,/:(plac\w+)/,":"+hce+"$1")]}),nU(r,{props:[oc(p,/:(plac\w+)/,R1+"input-$1")]})],d)}return""})}},MSn=[_Sn],DSn=function(r){var c=r.key;if(c==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(j){var $=j.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(j),j.setAttribute("data-s",""))})}var d=r.stylisPlugins||MSn,p={},m,x=[];m=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+c+' "]'),function(j){for(var $=j.getAttribute("data-emotion").split(" "),L=1;L<$.length;L++)p[$[L]]=!0;x.push(j)});var E,k=[PSn,OSn];{var T,P=[ESn,CSn(function(j){T.insert(j)})],I=kSn(k.concat(d,P)),O=function($){return qM(xSn($),I)};E=function($,L,B,F){T=B,O($?$+"{"+L.styles+"}":L.styles),F&&(N.inserted[L.name]=!0)}}var N={key:c,sheet:new cSn({key:c,container:m,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:p,registered:{},insert:E};return N.sheet.hydrate(x),N};function mAe(){return mAe=Object.assign?Object.assign.bind():function(n){for(var r=1;r=4;++u,d-=4)c=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,r=(c&65535)*1540483477+((c>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var USn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function HSn(n){var r=Object.create(null);return function(c){return r[c]===void 0&&(r[c]=n(c)),r[c]}}var qSn=/[A-Z]|^ms/g,WSn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,J_t=function(r){return r.charCodeAt(1)===45},RCt=function(r){return r!=null&&typeof r!="boolean"},p9e=HSn(function(n){return J_t(n)?n:n.replace(qSn,"-$&").toLowerCase()}),$Ct=function(r,c){switch(r){case"animation":case"animationName":if(typeof c=="string")return c.replace(WSn,function(u,d,p){return _x={name:d,styles:p,next:_x},d})}return USn[r]!==1&&!J_t(r)&&typeof c=="number"&&c!==0?c+"px":c};function ZH(n,r,c){if(c==null)return"";if(c.__emotion_styles!==void 0)return c;switch(typeof c){case"boolean":return"";case"object":{if(c.anim===1)return _x={name:c.name,styles:c.styles,next:_x},c.name;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)_x={name:u.name,styles:u.styles,next:_x},u=u.next;var d=c.styles+";";return d}return GSn(n,r,c)}case"function":{if(n!==void 0){var p=_x,m=c(n);return _x=p,ZH(n,r,m)}break}}if(r==null)return c;var x=r[c];return x!==void 0?x:c}function GSn(n,r,c){var u="";if(Array.isArray(c))for(var d=0;d{r.includes(u)||(c[u]=n[u])}),c}function a5n(n,r,c,u){const d=typeof r=="string"?r.split("."):[r];for(u=0;u{const r=new WeakMap;return(u,d,p,m)=>{if(typeof u>"u")return n(u,d,p);r.has(u)||r.set(u,new Map);const x=r.get(u);if(x.has(d))return x.get(d);const E=n(u,d,p,m);return x.set(d,E),E}},rMt=c5n(a5n);function iMt(n,r){const c={};return Object.keys(n).forEach(u=>{const d=n[u];r(d,u,n)&&(c[u]=d)}),c}var oMt=n=>iMt(n,r=>r!=null);function u5n(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var l5n=u5n(),mae=n=>n?"":void 0,sMt=(...n)=>n.filter(Boolean).join(" ");function aMt(n,...r){return o5n(n)?n(...r):n}function f5n(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}Object.freeze(["base","sm","md","lg","xl","2xl"]);function d5n(n={}){const{strict:r=!0,errorMessage:c="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:u}=n,d=U.exports.createContext(void 0);d.displayName=u;function p(){var m;const x=U.exports.useContext(d);if(!x&&r){const E=new Error(c);throw E.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,E,p),E}return x}return[d.Provider,p,d]}function oa(){return oa=Object.assign||function(n){for(var r=1;r=4;++u,d-=4)c=n.charCodeAt(u)&255|(n.charCodeAt(++u)&255)<<8|(n.charCodeAt(++u)&255)<<16|(n.charCodeAt(++u)&255)<<24,c=(c&65535)*1540483477+((c>>>16)*59797<<16),c^=c>>>24,r=(c&65535)*1540483477+((c>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(n.charCodeAt(u+2)&255)<<16;case 2:r^=(n.charCodeAt(u+1)&255)<<8;case 1:r^=n.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var y5n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w5n=/[A-Z]|^ms/g,x5n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uMt=function(r){return r.charCodeAt(1)===45},BCt=function(r){return r!=null&&typeof r!="boolean"},g9e=cMt(function(n){return uMt(n)?n:n.replace(w5n,"-$&").toLowerCase()}),VCt=function(r,c){switch(r){case"animation":case"animationName":if(typeof c=="string")return c.replace(x5n,function(u,d,p){return Mx={name:d,styles:p,next:Mx},d})}return y5n[r]!==1&&!uMt(r)&&typeof c=="number"&&c!==0?c+"px":c};function JH(n,r,c){if(c==null)return"";if(c.__emotion_styles!==void 0)return c;switch(typeof c){case"boolean":return"";case"object":{if(c.anim===1)return Mx={name:c.name,styles:c.styles,next:Mx},c.name;if(c.styles!==void 0){var u=c.next;if(u!==void 0)for(;u!==void 0;)Mx={name:u.name,styles:u.styles,next:Mx},u=u.next;var d=c.styles+";";return d}return S5n(n,r,c)}case"function":{if(n!==void 0){var p=Mx,m=c(n);return Mx=p,JH(n,r,m)}break}}if(r==null)return c;var x=r[c];return x!==void 0?x:c}function S5n(n,r,c){var u="";if(Array.isArray(c))for(var d=0;d96?k5n:C5n},HCt=function(r,c,u){var d;if(c){var p=c.shouldForwardProp;d=r.__emotion_forwardProp&&p?function(m){return r.__emotion_forwardProp(m)&&p(m)}:p}return typeof d!="function"&&u&&(d=r.__emotion_forwardProp),d},I5n=function n(r,c){var u=r.__emotion_real===r,d=u&&r.__emotion_base||r,p,m;c!==void 0&&(p=c.label,m=c.target);var x=HCt(r,c,u),E=x||UCt(d),k=!E("as");return function(){var T=arguments,P=u&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(p!==void 0&&P.push("label:"+p+";"),T[0]==null||T[0].raw===void 0)P.push.apply(P,T);else{P.push(T[0][0]);for(var I=T.length,O=1;O[P,I.selector]))}function x(){return Object.fromEntries(Object.entries(r).map(([P,I])=>[P,I.className]))}function E(T){const O=`chakra-${(["container","root"].includes(T!=null?T:"")?[n]:[n,T]).filter(Boolean).join("__")}`;return{className:O,selector:`.${O}`,toString:()=>T}}return{parts:d,toPart:E,extend:p,selectors:m,classnames:x,get keys(){return Object.keys(r)},__type:{}}}var A5n=uc("accordion").parts("root","container","button","panel").extend("icon"),P5n=uc("alert").parts("title","description","container").extend("icon","spinner"),O5n=uc("avatar").parts("label","badge","container").extend("excessLabel","group"),_5n=uc("breadcrumb").parts("link","item","container").extend("separator");uc("button").parts();var M5n=uc("checkbox").parts("control","icon","container").extend("label");uc("progress").parts("track","filledTrack").extend("label");var D5n=uc("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),N5n=uc("editable").parts("preview","input","textarea"),j5n=uc("form").parts("container","requiredIndicator","helperText"),R5n=uc("formError").parts("text","icon"),$5n=uc("input").parts("addon","field","element"),L5n=uc("list").parts("container","item","icon"),F5n=uc("menu").parts("button","list","item").extend("groupTitle","command","divider"),B5n=uc("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),V5n=uc("numberinput").parts("root","field","stepperGroup","stepper");uc("pininput").parts("field");var z5n=uc("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),U5n=uc("progress").parts("label","filledTrack","track"),H5n=uc("radio").parts("container","control","label"),q5n=uc("select").parts("field","icon"),W5n=uc("slider").parts("container","track","thumb","filledTrack","mark"),G5n=uc("stat").parts("container","label","helpText","number","icon"),X5n=uc("switch").parts("container","track","thumb"),K5n=uc("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Y5n=uc("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Q5n=uc("tag").parts("container","label","closeButton");function t1(n,r){Z5n(n)&&(n="100%");var c=J5n(n);return n=r===360?n:Math.min(r,Math.max(0,parseFloat(n))),c&&(n=parseInt(String(n*r),10)/100),Math.abs(n-r)<1e-6?1:(r===360?n=(n<0?n%r+r:n%r)/parseFloat(String(r)):n=n%r/parseFloat(String(r)),n)}function Koe(n){return Math.min(1,Math.max(0,n))}function Z5n(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function J5n(n){return typeof n=="string"&&n.indexOf("%")!==-1}function lMt(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Yoe(n){return n<=1?Number(n)*100+"%":n}function i7(n){return n.length===1?"0"+n:String(n)}function e6n(n,r,c){return{r:t1(n,255)*255,g:t1(r,255)*255,b:t1(c,255)*255}}function qCt(n,r,c){n=t1(n,255),r=t1(r,255),c=t1(c,255);var u=Math.max(n,r,c),d=Math.min(n,r,c),p=0,m=0,x=(u+d)/2;if(u===d)m=0,p=0;else{var E=u-d;switch(m=x>.5?E/(2-u-d):E/(u+d),u){case n:p=(r-c)/E+(r1&&(c-=1),c<1/6?n+(r-n)*(6*c):c<1/2?r:c<2/3?n+(r-n)*(2/3-c)*6:n}function t6n(n,r,c){var u,d,p;if(n=t1(n,360),r=t1(r,100),c=t1(c,100),r===0)d=c,p=c,u=c;else{var m=c<.5?c*(1+r):c+r-c*r,x=2*c-m;u=b9e(x,m,n+1/3),d=b9e(x,m,n),p=b9e(x,m,n-1/3)}return{r:u*255,g:d*255,b:p*255}}function WCt(n,r,c){n=t1(n,255),r=t1(r,255),c=t1(c,255);var u=Math.max(n,r,c),d=Math.min(n,r,c),p=0,m=u,x=u-d,E=u===0?0:x/u;if(u===d)p=0;else{switch(u){case n:p=(r-c)/x+(r>16,g:(n&65280)>>8,b:n&255}}var wAe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function s6n(n){var r={r:0,g:0,b:0},c=1,u=null,d=null,p=null,m=!1,x=!1;return typeof n=="string"&&(n=u6n(n)),typeof n=="object"&&(Q4(n.r)&&Q4(n.g)&&Q4(n.b)?(r=e6n(n.r,n.g,n.b),m=!0,x=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Q4(n.h)&&Q4(n.s)&&Q4(n.v)?(u=Yoe(n.s),d=Yoe(n.v),r=n6n(n.h,u,d),m=!0,x="hsv"):Q4(n.h)&&Q4(n.s)&&Q4(n.l)&&(u=Yoe(n.s),p=Yoe(n.l),r=t6n(n.h,u,p),m=!0,x="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(c=n.a)),c=lMt(c),{ok:m,format:n.format||x,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:c}}var a6n="[-\\+]?\\d+%?",c6n="[-\\+]?\\d*\\.\\d+%?",ZE="(?:"+c6n+")|(?:"+a6n+")",m9e="[\\s|\\(]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")\\s*\\)?",v9e="[\\s|\\(]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")[,|\\s]+("+ZE+")\\s*\\)?",gw={CSS_UNIT:new RegExp(ZE),rgb:new RegExp("rgb"+m9e),rgba:new RegExp("rgba"+v9e),hsl:new RegExp("hsl"+m9e),hsla:new RegExp("hsla"+v9e),hsv:new RegExp("hsv"+m9e),hsva:new RegExp("hsva"+v9e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function u6n(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var r=!1;if(wAe[n])n=wAe[n],r=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c=gw.rgb.exec(n);return c?{r:c[1],g:c[2],b:c[3]}:(c=gw.rgba.exec(n),c?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=gw.hsl.exec(n),c?{h:c[1],s:c[2],l:c[3]}:(c=gw.hsla.exec(n),c?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=gw.hsv.exec(n),c?{h:c[1],s:c[2],v:c[3]}:(c=gw.hsva.exec(n),c?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=gw.hex8.exec(n),c?{r:bb(c[1]),g:bb(c[2]),b:bb(c[3]),a:XCt(c[4]),format:r?"name":"hex8"}:(c=gw.hex6.exec(n),c?{r:bb(c[1]),g:bb(c[2]),b:bb(c[3]),format:r?"name":"hex"}:(c=gw.hex4.exec(n),c?{r:bb(c[1]+c[1]),g:bb(c[2]+c[2]),b:bb(c[3]+c[3]),a:XCt(c[4]+c[4]),format:r?"name":"hex8"}:(c=gw.hex3.exec(n),c?{r:bb(c[1]+c[1]),g:bb(c[2]+c[2]),b:bb(c[3]+c[3]),format:r?"name":"hex"}:!1)))))))))}function Q4(n){return Boolean(gw.CSS_UNIT.exec(String(n)))}var Y7=function(){function n(r,c){r===void 0&&(r=""),c===void 0&&(c={});var u;if(r instanceof n)return r;typeof r=="number"&&(r=o6n(r)),this.originalInput=r;var d=s6n(r);this.originalInput=r,this.r=d.r,this.g=d.g,this.b=d.b,this.a=d.a,this.roundA=Math.round(100*this.a)/100,this.format=(u=c.format)!==null&&u!==void 0?u:d.format,this.gradientType=c.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=d.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},n.prototype.getLuminance=function(){var r=this.toRgb(),c,u,d,p=r.r/255,m=r.g/255,x=r.b/255;return p<=.03928?c=p/12.92:c=Math.pow((p+.055)/1.055,2.4),m<=.03928?u=m/12.92:u=Math.pow((m+.055)/1.055,2.4),x<=.03928?d=x/12.92:d=Math.pow((x+.055)/1.055,2.4),.2126*c+.7152*u+.0722*d},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(r){return this.a=lMt(r),this.roundA=Math.round(100*this.a)/100,this},n.prototype.toHsv=function(){var r=WCt(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},n.prototype.toHsvString=function(){var r=WCt(this.r,this.g,this.b),c=Math.round(r.h*360),u=Math.round(r.s*100),d=Math.round(r.v*100);return this.a===1?"hsv("+c+", "+u+"%, "+d+"%)":"hsva("+c+", "+u+"%, "+d+"%, "+this.roundA+")"},n.prototype.toHsl=function(){var r=qCt(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},n.prototype.toHslString=function(){var r=qCt(this.r,this.g,this.b),c=Math.round(r.h*360),u=Math.round(r.s*100),d=Math.round(r.l*100);return this.a===1?"hsl("+c+", "+u+"%, "+d+"%)":"hsla("+c+", "+u+"%, "+d+"%, "+this.roundA+")"},n.prototype.toHex=function(r){return r===void 0&&(r=!1),GCt(this.r,this.g,this.b,r)},n.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},n.prototype.toHex8=function(r){return r===void 0&&(r=!1),r6n(this.r,this.g,this.b,this.a,r)},n.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var r=Math.round(this.r),c=Math.round(this.g),u=Math.round(this.b);return this.a===1?"rgb("+r+", "+c+", "+u+")":"rgba("+r+", "+c+", "+u+", "+this.roundA+")"},n.prototype.toPercentageRgb=function(){var r=function(c){return Math.round(t1(c,255)*100)+"%"};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var r=function(c){return Math.round(t1(c,255)*100)};return this.a===1?"rgb("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%)":"rgba("+r(this.r)+"%, "+r(this.g)+"%, "+r(this.b)+"%, "+this.roundA+")"},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+GCt(this.r,this.g,this.b,!1),c=0,u=Object.entries(wAe);c=0,p=!c&&d&&(r.startsWith("hex")||r==="name");return p?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(u=this.toRgbString()),r==="prgb"&&(u=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(u=this.toHexString()),r==="hex3"&&(u=this.toHexString(!0)),r==="hex4"&&(u=this.toHex8String(!0)),r==="hex8"&&(u=this.toHex8String()),r==="name"&&(u=this.toName()),r==="hsl"&&(u=this.toHslString()),r==="hsv"&&(u=this.toHsvString()),u||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.l+=r/100,c.l=Koe(c.l),new n(c)},n.prototype.brighten=function(r){r===void 0&&(r=10);var c=this.toRgb();return c.r=Math.max(0,Math.min(255,c.r-Math.round(255*-(r/100)))),c.g=Math.max(0,Math.min(255,c.g-Math.round(255*-(r/100)))),c.b=Math.max(0,Math.min(255,c.b-Math.round(255*-(r/100)))),new n(c)},n.prototype.darken=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.l-=r/100,c.l=Koe(c.l),new n(c)},n.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},n.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},n.prototype.desaturate=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.s-=r/100,c.s=Koe(c.s),new n(c)},n.prototype.saturate=function(r){r===void 0&&(r=10);var c=this.toHsl();return c.s+=r/100,c.s=Koe(c.s),new n(c)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(r){var c=this.toHsl(),u=(c.h+r)%360;return c.h=u<0?360+u:u,new n(c)},n.prototype.mix=function(r,c){c===void 0&&(c=50);var u=this.toRgb(),d=new n(r).toRgb(),p=c/100,m={r:(d.r-u.r)*p+u.r,g:(d.g-u.g)*p+u.g,b:(d.b-u.b)*p+u.b,a:(d.a-u.a)*p+u.a};return new n(m)},n.prototype.analogous=function(r,c){r===void 0&&(r=6),c===void 0&&(c=30);var u=this.toHsl(),d=360/c,p=[this];for(u.h=(u.h-(d*r>>1)+720)%360;--r;)u.h=(u.h+d)%360,p.push(new n(u));return p},n.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new n(r)},n.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var c=this.toHsv(),u=c.h,d=c.s,p=c.v,m=[],x=1/r;r--;)m.push(new n({h:u,s:d,v:p})),p=(p+x)%1;return m},n.prototype.splitcomplement=function(){var r=this.toHsl(),c=r.h;return[this,new n({h:(c+72)%360,s:r.s,l:r.l}),new n({h:(c+216)%360,s:r.s,l:r.l})]},n.prototype.onBackground=function(r){var c=this.toRgb(),u=new n(r).toRgb();return new n({r:u.r+(c.r-u.r)*c.a,g:u.g+(c.g-u.g)*c.a,b:u.b+(c.b-u.b)*c.a})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(r){for(var c=this.toHsl(),u=c.h,d=[this],p=360/r,m=1;mc.length;)n.count=null,n.seed&&(n.seed+=1),c.push(fMt(n));return n.count=r,c}var u=l6n(n.hue,n.seed),d=f6n(u,n),p=d6n(u,d,n),m={h:u,s:d,v:p};return n.alpha!==void 0&&(m.a=n.alpha),new Y7(m)}function l6n(n,r){var c=p6n(n),u=pce(c,r);return u<0&&(u=360+u),u}function f6n(n,r){if(r.hue==="monochrome")return 0;if(r.luminosity==="random")return pce([0,100],r.seed);var c=dMt(n).saturationRange,u=c[0],d=c[1];switch(r.luminosity){case"bright":u=55;break;case"dark":u=d-10;break;case"light":d=55;break}return pce([u,d],r.seed)}function d6n(n,r,c){var u=h6n(n,r),d=100;switch(c.luminosity){case"dark":d=u+20;break;case"light":u=(d+u)/2;break;case"random":u=0,d=100;break}return pce([u,d],c.seed)}function h6n(n,r){for(var c=dMt(n).lowerBounds,u=0;u=d&&r<=m){var E=(x-p)/(m-d),k=p-E*d;return E*r+k}}return 0}function p6n(n){var r=parseInt(n,10);if(!Number.isNaN(r)&&r<360&&r>0)return[r,r];if(typeof n=="string"){var c=pMt.find(function(m){return m.name===n});if(c){var u=hMt(c);if(u.hueRange)return u.hueRange}var d=new Y7(n);if(d.isValid){var p=d.toHsv().h;return[p,p]}}return[0,360]}function dMt(n){n>=334&&n<=360&&(n-=360);for(var r=0,c=pMt;r=d.hueRange[0]&&n<=d.hueRange[1])return d}throw Error("Color not found")}function pce(n,r){if(r===void 0)return Math.floor(n[0]+Math.random()*(n[1]+1-n[0]));var c=n[1]||1,u=n[0]||0;r=(r*9301+49297)%233280;var d=r/233280;return Math.floor(u+d*(c-u))}function hMt(n){var r=n.lowerBounds[0][0],c=n.lowerBounds[n.lowerBounds.length-1][0],u=n.lowerBounds[n.lowerBounds.length-1][1],d=n.lowerBounds[0][1];return{name:n.name,hueRange:n.hueRange,lowerBounds:n.lowerBounds,saturationRange:[r,c],brightnessRange:[u,d]}}var pMt=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function g6n(n,r,c,u,d){for(r=r.split?r.split("."):r,u=0;uObject.keys(n).length===0,Nd=(n,r,c)=>{const u=g6n(n,`colors.${r}`,r),{isValid:d}=new Y7(u);return d?u:c},m6n=n=>r=>{const c=Nd(r,n);return new Y7(c).isDark()?"dark":"light"},v6n=n=>r=>m6n(n)(r)==="dark",mD=(n,r)=>c=>{const u=Nd(c,n);return new Y7(u).setAlpha(r).toRgbString()},y6n=(n,r)=>c=>{const u=Nd(c,n);return new Y7(u).darken(r).toHexString()},w6n=(n,r)=>c=>new Y7(Nd(c,n)).lighten(r).toHexString();function KCt(n="1rem",r="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${r} 25%, + transparent 25%, + transparent 50%, + ${r} 50%, + ${r} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${n} ${n}`}}function x6n(n){const r=fMt().toHexString();return!n||b6n(n)?r:n.string&&n.colors?E6n(n.string,n.colors):n.string&&!n.colors?S6n(n.string):n.colors&&!n.string?k6n(n.colors):r}function S6n(n){let r=0;if(n.length===0)return r.toString();for(let u=0;u>u*8&255).toString(16)}`.substr(-2);return c}function E6n(n,r){let c=0;if(n.length===0)return r[0];for(let u=0;uc.colorMode==="dark"?r:n}function K_e(n){const{orientation:r,vertical:c,horizontal:u}=n;return r?r==="vertical"?c:u:{}}function C6n(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}function gMt(n){return C6n(n)&&n.reference?n.reference:String(n)}var wle=(n,...r)=>r.map(gMt).join(` ${n} `).replace(/calc/g,""),YCt=(...n)=>`calc(${wle("+",...n)})`,QCt=(...n)=>`calc(${wle("-",...n)})`,xAe=(...n)=>`calc(${wle("*",...n)})`,ZCt=(...n)=>`calc(${wle("/",...n)})`,JCt=n=>{const r=gMt(n);return r!=null&&!Number.isNaN(parseFloat(r))?String(r).startsWith("-")?String(r).slice(1):`-${r}`:xAe(r,-1)},oS=Object.assign(n=>({add:(...r)=>oS(YCt(n,...r)),subtract:(...r)=>oS(QCt(n,...r)),multiply:(...r)=>oS(xAe(n,...r)),divide:(...r)=>oS(ZCt(n,...r)),negate:()=>oS(JCt(n)),toString:()=>n.toString()}),{add:YCt,subtract:QCt,multiply:xAe,divide:ZCt,negate:JCt});function I6n(n){return!Number.isInteger(parseFloat(n.toString()))}function T6n(n,r="-"){return n.replace(/\s+/g,r)}function bMt(n){const r=T6n(n.toString());return r.includes("\\.")?n:I6n(n)?r.replace(".","\\."):n}function A6n(n,r=""){return[r,bMt(n)].filter(Boolean).join("-")}function P6n(n,r){return`var(${bMt(n)}${r?`, ${r}`:""})`}function O6n(n,r=""){return`--${A6n(n,r)}`}function z1(n,r){const c=O6n(n,r==null?void 0:r.prefix);return{variable:c,reference:P6n(c,_6n(r==null?void 0:r.fallback))}}function _6n(n){return typeof n=="string"?n:n==null?void 0:n.reference}var{definePartsStyle:M6n,defineMultiStyleConfig:D6n}=rl(A5n.keys),N6n={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},j6n={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},R6n={pt:"2",px:"4",pb:"5"},$6n={fontSize:"1.25em"},L6n=M6n({container:N6n,button:j6n,panel:R6n,icon:$6n}),F6n=D6n({baseStyle:L6n}),{definePartsStyle:Jq,defineMultiStyleConfig:B6n}=rl(P5n.keys),Tb=Ld("alert-fg"),xS=Ld("alert-bg"),V6n=Jq({container:{bg:xS.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Tb.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Tb.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Y_e(n){const{theme:r,colorScheme:c}=n,u=mD(`${c}.200`,.16)(r);return{light:`colors.${c}.100`,dark:u}}var z6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark}}}}),U6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Tb.reference}}}),H6n=Jq(n=>{const{colorScheme:r}=n,c=Y_e(n);return{container:{[Tb.variable]:`colors.${r}.500`,[xS.variable]:c.light,_dark:{[Tb.variable]:`colors.${r}.200`,[xS.variable]:c.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Tb.reference}}}),q6n=Jq(n=>{const{colorScheme:r}=n;return{container:{[Tb.variable]:"colors.white",[xS.variable]:`colors.${r}.500`,_dark:{[Tb.variable]:"colors.gray.900",[xS.variable]:`colors.${r}.200`},color:Tb.reference}}}),W6n={subtle:z6n,"left-accent":U6n,"top-accent":H6n,solid:q6n},G6n=B6n({baseStyle:V6n,variants:W6n,defaultProps:{variant:"subtle",colorScheme:"blue"}}),mMt={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},X6n={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},K6n={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Y6n={...mMt,...X6n,container:K6n},vMt=Y6n,Q6n=n=>typeof n=="function";function yh(n,...r){return Q6n(n)?n(...r):n}var{definePartsStyle:yMt,defineMultiStyleConfig:Z6n}=rl(O5n.keys),WM=Ld("avatar-border-color"),y9e=Ld("avatar-bg"),J6n={borderRadius:"full",border:"0.2em solid",[WM.variable]:"white",_dark:{[WM.variable]:"colors.gray.800"},borderColor:WM.reference},eEn={[y9e.variable]:"colors.gray.200",_dark:{[y9e.variable]:"colors.whiteAlpha.400"},bgColor:y9e.reference},e8t=Ld("avatar-background"),tEn=n=>{const{name:r,theme:c}=n,u=r?x6n({string:r}):"colors.gray.400",d=v6n(u)(c);let p="white";return d||(p="gray.800"),{bg:e8t.reference,"&:not([data-loaded])":{[e8t.variable]:u},color:p,[WM.variable]:"colors.white",_dark:{[WM.variable]:"colors.gray.800"},borderColor:WM.reference,verticalAlign:"top"}},nEn=yMt(n=>({badge:yh(J6n,n),excessLabel:yh(eEn,n),container:yh(tEn,n)}));function _E(n){const r=n!=="100%"?vMt[n]:void 0;return yMt({container:{width:n,height:n,fontSize:`calc(${r!=null?r:n} / 2.5)`},excessLabel:{width:n,height:n},label:{fontSize:`calc(${r!=null?r:n} / 2.5)`,lineHeight:n!=="100%"?r!=null?r:n:void 0}})}var rEn={"2xs":_E(4),xs:_E(6),sm:_E(8),md:_E(12),lg:_E(16),xl:_E(24),"2xl":_E(32),full:_E("100%")},iEn=Z6n({baseStyle:nEn,sizes:rEn,defaultProps:{size:"md"}}),oEn={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},GM=Ld("badge-bg"),Fx=Ld("badge-color"),sEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.500`,.6)(c);return{[GM.variable]:`colors.${r}.500`,[Fx.variable]:"colors.white",_dark:{[GM.variable]:u,[Fx.variable]:"colors.whiteAlpha.800"},bg:GM.reference,color:Fx.reference}},aEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.200`,.16)(c);return{[GM.variable]:`colors.${r}.100`,[Fx.variable]:`colors.${r}.800`,_dark:{[GM.variable]:u,[Fx.variable]:`colors.${r}.200`},bg:GM.reference,color:Fx.reference}},cEn=n=>{const{colorScheme:r,theme:c}=n,u=mD(`${r}.200`,.8)(c);return{[Fx.variable]:`colors.${r}.500`,_dark:{[Fx.variable]:u},color:Fx.reference,boxShadow:`inset 0 0 0px 1px ${Fx.reference}`}},uEn={solid:sEn,subtle:aEn,outline:cEn},tH={baseStyle:oEn,variants:uEn,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:lEn,definePartsStyle:fEn}=rl(_5n.keys),dEn={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},hEn=fEn({link:dEn}),pEn=lEn({baseStyle:hEn}),gEn={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},wMt=n=>{const{colorScheme:r,theme:c}=n;if(r==="gray")return{color:_r("inherit","whiteAlpha.900")(n),_hover:{bg:_r("gray.100","whiteAlpha.200")(n)},_active:{bg:_r("gray.200","whiteAlpha.300")(n)}};const u=mD(`${r}.200`,.12)(c),d=mD(`${r}.200`,.24)(c);return{color:_r(`${r}.600`,`${r}.200`)(n),bg:"transparent",_hover:{bg:_r(`${r}.50`,u)(n)},_active:{bg:_r(`${r}.100`,d)(n)}}},bEn=n=>{const{colorScheme:r}=n,c=_r("gray.200","whiteAlpha.300")(n);return{border:"1px solid",borderColor:r==="gray"?c:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...yh(wMt,n)}},mEn={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},vEn=n=>{var x;const{colorScheme:r}=n;if(r==="gray"){const E=_r("gray.100","whiteAlpha.200")(n);return{bg:E,_hover:{bg:_r("gray.200","whiteAlpha.300")(n),_disabled:{bg:E}},_active:{bg:_r("gray.300","whiteAlpha.400")(n)}}}const{bg:c=`${r}.500`,color:u="white",hoverBg:d=`${r}.600`,activeBg:p=`${r}.700`}=(x=mEn[r])!=null?x:{},m=_r(c,`${r}.200`)(n);return{bg:m,color:_r(u,"gray.800")(n),_hover:{bg:_r(d,`${r}.300`)(n),_disabled:{bg:m}},_active:{bg:_r(p,`${r}.400`)(n)}}},yEn=n=>{const{colorScheme:r}=n;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:_r(`${r}.500`,`${r}.200`)(n),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:_r(`${r}.700`,`${r}.500`)(n)}}},wEn={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},xEn={ghost:wMt,outline:bEn,solid:vEn,link:yEn,unstyled:wEn},SEn={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},EEn={baseStyle:gEn,variants:xEn,sizes:SEn,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:vae,defineMultiStyleConfig:kEn}=rl(M5n.keys),nH=Ld("checkbox-size"),CEn=n=>{const{colorScheme:r}=n;return{w:nH.reference,h:nH.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:_r(`${r}.500`,`${r}.200`)(n),borderColor:_r(`${r}.500`,`${r}.200`)(n),color:_r("white","gray.900")(n),_hover:{bg:_r(`${r}.600`,`${r}.300`)(n),borderColor:_r(`${r}.600`,`${r}.300`)(n)},_disabled:{borderColor:_r("gray.200","transparent")(n),bg:_r("gray.200","whiteAlpha.300")(n),color:_r("gray.500","whiteAlpha.500")(n)}},_indeterminate:{bg:_r(`${r}.500`,`${r}.200`)(n),borderColor:_r(`${r}.500`,`${r}.200`)(n),color:_r("white","gray.900")(n)},_disabled:{bg:_r("gray.100","whiteAlpha.100")(n),borderColor:_r("gray.100","transparent")(n)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:_r("red.500","red.300")(n)}}},IEn={_disabled:{cursor:"not-allowed"}},TEn={userSelect:"none",_disabled:{opacity:.4}},AEn={transitionProperty:"transform",transitionDuration:"normal"},PEn=vae(n=>({icon:AEn,container:IEn,control:yh(CEn,n),label:TEn})),OEn={sm:vae({control:{[nH.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:vae({control:{[nH.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:vae({control:{[nH.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},gce=kEn({baseStyle:PEn,sizes:OEn,defaultProps:{size:"md",colorScheme:"blue"}}),rH=z1("close-button-size"),rU=z1("close-button-bg"),_En={w:[rH.reference],h:[rH.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[rU.variable]:"colors.blackAlpha.100",_dark:{[rU.variable]:"colors.whiteAlpha.100"}},_active:{[rU.variable]:"colors.blackAlpha.200",_dark:{[rU.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:rU.reference},MEn={lg:{[rH.variable]:"sizes.10",fontSize:"md"},md:{[rH.variable]:"sizes.8",fontSize:"xs"},sm:{[rH.variable]:"sizes.6",fontSize:"2xs"}},DEn={baseStyle:_En,sizes:MEn,defaultProps:{size:"md"}},{variants:NEn,defaultProps:jEn}=tH,REn={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},$En={baseStyle:REn,variants:NEn,defaultProps:jEn},LEn={w:"100%",mx:"auto",maxW:"prose",px:"4"},FEn={baseStyle:LEn},BEn={opacity:.6,borderColor:"inherit"},VEn={borderStyle:"solid"},zEn={borderStyle:"dashed"},UEn={solid:VEn,dashed:zEn},HEn={baseStyle:BEn,variants:UEn,defaultProps:{variant:"solid"}},{definePartsStyle:SAe,defineMultiStyleConfig:qEn}=rl(D5n.keys),w9e=Ld("drawer-bg"),x9e=Ld("drawer-box-shadow");function z_(n){return SAe(n==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:n}})}var WEn={bg:"blackAlpha.600",zIndex:"overlay"},GEn={display:"flex",zIndex:"modal",justifyContent:"center"},XEn=n=>{const{isFullHeight:r}=n;return{...r&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[w9e.variable]:"colors.white",[x9e.variable]:"shadows.lg",_dark:{[w9e.variable]:"colors.gray.700",[x9e.variable]:"shadows.dark-lg"},bg:w9e.reference,boxShadow:x9e.reference}},KEn={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YEn={position:"absolute",top:"2",insetEnd:"3"},QEn={px:"6",py:"2",flex:"1",overflow:"auto"},ZEn={px:"6",py:"4"},JEn=SAe(n=>({overlay:WEn,dialogContainer:GEn,dialog:yh(XEn,n),header:KEn,closeButton:YEn,body:QEn,footer:ZEn})),ekn={xs:z_("xs"),sm:z_("md"),md:z_("lg"),lg:z_("2xl"),xl:z_("4xl"),full:z_("full")},tkn=qEn({baseStyle:JEn,sizes:ekn,defaultProps:{size:"xs"}}),{definePartsStyle:nkn,defineMultiStyleConfig:rkn}=rl(N5n.keys),ikn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},okn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},skn={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},akn=nkn({preview:ikn,input:okn,textarea:skn}),ckn=rkn({baseStyle:akn}),{definePartsStyle:ukn,defineMultiStyleConfig:lkn}=rl(j5n.keys),XM=Ld("form-control-color"),fkn={marginStart:"1",[XM.variable]:"colors.red.500",_dark:{[XM.variable]:"colors.red.300"},color:XM.reference},dkn={mt:"2",[XM.variable]:"colors.gray.600",_dark:{[XM.variable]:"colors.whiteAlpha.600"},color:XM.reference,lineHeight:"normal",fontSize:"sm"},hkn=ukn({container:{width:"100%",position:"relative"},requiredIndicator:fkn,helperText:dkn}),pkn=lkn({baseStyle:hkn}),{definePartsStyle:gkn,defineMultiStyleConfig:bkn}=rl(R5n.keys),KM=Ld("form-error-color"),mkn={[KM.variable]:"colors.red.500",_dark:{[KM.variable]:"colors.red.300"},color:KM.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},vkn={marginEnd:"0.5em",[KM.variable]:"colors.red.500",_dark:{[KM.variable]:"colors.red.300"},color:KM.reference},ykn=gkn({text:mkn,icon:vkn}),wkn=bkn({baseStyle:ykn}),xkn={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Skn={baseStyle:xkn},Ekn={fontFamily:"heading",fontWeight:"bold"},kkn={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Ckn={baseStyle:Ekn,sizes:kkn,defaultProps:{size:"xl"}},{definePartsStyle:fS,defineMultiStyleConfig:Ikn}=rl($5n.keys),Tkn=fS({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ME={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},Akn={lg:fS({field:ME.lg,addon:ME.lg}),md:fS({field:ME.md,addon:ME.md}),sm:fS({field:ME.sm,addon:ME.sm}),xs:fS({field:ME.xs,addon:ME.xs})};function Q_e(n){const{focusBorderColor:r,errorBorderColor:c}=n;return{focusBorderColor:r||_r("blue.500","blue.300")(n),errorBorderColor:c||_r("red.500","red.300")(n)}}var Pkn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:_r("gray.300","whiteAlpha.400")(n)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u),boxShadow:`0 0 0 1px ${Nd(r,u)}`},_focusVisible:{zIndex:1,borderColor:Nd(r,c),boxShadow:`0 0 0 1px ${Nd(r,c)}`}},addon:{border:"1px solid",borderColor:_r("inherit","whiteAlpha.50")(n),bg:_r("gray.100","whiteAlpha.300")(n)}}}),Okn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{border:"2px solid",borderColor:"transparent",bg:_r("gray.100","whiteAlpha.50")(n),_hover:{bg:_r("gray.200","whiteAlpha.100")(n)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u)},_focusVisible:{bg:"transparent",borderColor:Nd(r,c)}},addon:{border:"2px solid",borderColor:"transparent",bg:_r("gray.100","whiteAlpha.50")(n)}}}),_kn=fS(n=>{const{theme:r}=n,{focusBorderColor:c,errorBorderColor:u}=Q_e(n);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Nd(r,u),boxShadow:`0px 1px 0px 0px ${Nd(r,u)}`},_focusVisible:{borderColor:Nd(r,c),boxShadow:`0px 1px 0px 0px ${Nd(r,c)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Mkn=fS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Dkn={outline:Pkn,filled:Okn,flushed:_kn,unstyled:Mkn},Xa=Ikn({baseStyle:Tkn,sizes:Akn,variants:Dkn,defaultProps:{size:"md",variant:"outline"}}),Nkn=n=>({bg:_r("gray.100","whiteAlpha")(n),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),jkn={baseStyle:Nkn},Rkn={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},$kn={baseStyle:Rkn},{defineMultiStyleConfig:Lkn,definePartsStyle:Fkn}=rl(L5n.keys),Bkn={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Vkn=Fkn({icon:Bkn}),zkn=Lkn({baseStyle:Vkn}),{defineMultiStyleConfig:Ukn,definePartsStyle:Hkn}=rl(F5n.keys),qkn=n=>({bg:_r("#fff","gray.700")(n),boxShadow:_r("sm","dark-lg")(n),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Wkn=n=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:_r("gray.100","whiteAlpha.100")(n)},_active:{bg:_r("gray.200","whiteAlpha.200")(n)},_expanded:{bg:_r("gray.100","whiteAlpha.100")(n)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Gkn={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Xkn={opacity:.6},Kkn={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Ykn={transitionProperty:"common",transitionDuration:"normal"},Qkn=Hkn(n=>({button:Ykn,list:yh(qkn,n),item:yh(Wkn,n),groupTitle:Gkn,command:Xkn,divider:Kkn})),Zkn=Ukn({baseStyle:Qkn}),{defineMultiStyleConfig:Jkn,definePartsStyle:EAe}=rl(B5n.keys),eCn={bg:"blackAlpha.600",zIndex:"modal"},tCn=n=>{const{isCentered:r,scrollBehavior:c}=n;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:r?"center":"flex-start",overflow:c==="inside"?"hidden":"auto"}},nCn=n=>{const{scrollBehavior:r}=n;return{borderRadius:"md",bg:_r("white","gray.700")(n),color:"inherit",my:"16",zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:_r("lg","dark-lg")(n)}},rCn={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},iCn={position:"absolute",top:"2",insetEnd:"3"},oCn=n=>{const{scrollBehavior:r}=n;return{px:"6",py:"2",flex:"1",overflow:r==="inside"?"auto":void 0}},sCn={px:"6",py:"4"},aCn=EAe(n=>({overlay:eCn,dialogContainer:yh(tCn,n),dialog:yh(nCn,n),header:rCn,closeButton:iCn,body:yh(oCn,n),footer:sCn}));function fw(n){return EAe(n==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:n}})}var cCn={xs:fw("xs"),sm:fw("sm"),md:fw("md"),lg:fw("lg"),xl:fw("xl"),"2xl":fw("2xl"),"3xl":fw("3xl"),"4xl":fw("4xl"),"5xl":fw("5xl"),"6xl":fw("6xl"),full:fw("full")},uCn=Jkn({baseStyle:aCn,sizes:cCn,defaultProps:{size:"md"}}),lCn={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},xMt=lCn,{defineMultiStyleConfig:fCn,definePartsStyle:SMt}=rl(V5n.keys),Z_e=z1("number-input-stepper-width"),EMt=z1("number-input-input-padding"),dCn=oS(Z_e).add("0.5rem").toString(),hCn={[Z_e.variable]:"sizes.6",[EMt.variable]:dCn},pCn=n=>{var c;var r;return(c=(r=yh(Xa.baseStyle,n))==null?void 0:r.field)!=null?c:{}},gCn={width:[Z_e.reference]},bCn=n=>({borderStart:"1px solid",borderStartColor:_r("inherit","whiteAlpha.300")(n),color:_r("inherit","whiteAlpha.800")(n),_active:{bg:_r("gray.200","whiteAlpha.300")(n)},_disabled:{opacity:.4,cursor:"not-allowed"}}),mCn=SMt(n=>{var r,c;return{root:hCn,field:(r=yh(pCn,n))!=null?r:{},stepperGroup:gCn,stepper:(c=yh(bCn,n))!=null?c:{}}});function Qoe(n){var x;var r,c;const u=(r=Xa.sizes)==null?void 0:r[n],d={lg:"md",md:"md",sm:"sm",xs:"sm"},p=(x=(c=u.field)==null?void 0:c.fontSize)!=null?x:"md",m=xMt.fontSizes[p];return SMt({field:{...u.field,paddingInlineEnd:EMt.reference,verticalAlign:"top"},stepper:{fontSize:oS(m).multiply(.75).toString(),_first:{borderTopEndRadius:d[n]},_last:{borderBottomEndRadius:d[n],mt:"-1px",borderTopWidth:1}}})}var vCn={xs:Qoe("xs"),sm:Qoe("sm"),md:Qoe("md"),lg:Qoe("lg")},yCn=fCn({baseStyle:mCn,sizes:vCn,variants:Xa.variants,defaultProps:Xa.defaultProps}),t8t,wCn={...(t8t=Xa.baseStyle)==null?void 0:t8t.field,textAlign:"center"},xCn={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},n8t,hPt,SCn={outline:n=>{var u;var r,c;return(u=(c=yh((r=Xa.variants)==null?void 0:r.outline,n))==null?void 0:c.field)!=null?u:{}},flushed:n=>{var u;var r,c;return(u=(c=yh((r=Xa.variants)==null?void 0:r.flushed,n))==null?void 0:c.field)!=null?u:{}},filled:n=>{var u;var r,c;return(u=(c=yh((r=Xa.variants)==null?void 0:r.filled,n))==null?void 0:c.field)!=null?u:{}},unstyled:(hPt=(n8t=Xa.variants)==null?void 0:n8t.unstyled.field)!=null?hPt:{}},ECn={baseStyle:wCn,sizes:xCn,variants:SCn,defaultProps:Xa.defaultProps},{defineMultiStyleConfig:kCn,definePartsStyle:CCn}=rl(z5n.keys),Zoe=z1("popper-bg"),ICn=z1("popper-arrow-bg"),r8t=z1("popper-arrow-shadow-color"),TCn={zIndex:10},ACn={[Zoe.variable]:"colors.white",bg:Zoe.reference,[ICn.variable]:Zoe.reference,[r8t.variable]:"colors.gray.200",_dark:{[Zoe.variable]:"colors.gray.700",[r8t.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},PCn={px:3,py:2,borderBottomWidth:"1px"},OCn={px:3,py:2},_Cn={px:3,py:2,borderTopWidth:"1px"},MCn={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},DCn=CCn({popper:TCn,content:ACn,header:PCn,body:OCn,footer:_Cn,closeButton:MCn}),NCn=kCn({baseStyle:DCn}),{defineMultiStyleConfig:jCn,definePartsStyle:TU}=rl(U5n.keys),RCn=n=>{const{colorScheme:r,theme:c,isIndeterminate:u,hasStripe:d}=n,p=_r(KCt(),KCt("1rem","rgba(0,0,0,0.1)"))(n),m=_r(`${r}.500`,`${r}.200`)(n),x=`linear-gradient( + to right, + transparent 0%, + ${Nd(c,m)} 50%, + transparent 100% + )`;return{...!u&&d&&p,...u?{bgImage:x}:{bgColor:m}}},$Cn={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},LCn=n=>({bg:_r("gray.100","whiteAlpha.300")(n)}),FCn=n=>({transitionProperty:"common",transitionDuration:"slow",...RCn(n)}),BCn=TU(n=>({label:$Cn,filledTrack:FCn(n),track:LCn(n)})),VCn={xs:TU({track:{h:"1"}}),sm:TU({track:{h:"2"}}),md:TU({track:{h:"3"}}),lg:TU({track:{h:"4"}})},zCn=jCn({sizes:VCn,baseStyle:BCn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:UCn,definePartsStyle:yae}=rl(H5n.keys),HCn=n=>{var r;const c=(r=yh(gce.baseStyle,n))==null?void 0:r.control;return{...c,borderRadius:"full",_checked:{...c==null?void 0:c._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},qCn=yae(n=>{var r,c,u,d;return{label:(c=(r=gce).baseStyle)==null?void 0:c.call(r,n).label,container:(d=(u=gce).baseStyle)==null?void 0:d.call(u,n).container,control:HCn(n)}}),WCn={md:yae({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:yae({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:yae({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},GCn=UCn({baseStyle:qCn,sizes:WCn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:XCn,definePartsStyle:KCn}=rl(q5n.keys),YCn=n=>{var r;return{...(r=Xa.baseStyle)==null?void 0:r.field,bg:_r("white","gray.700")(n),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:_r("white","gray.700")(n)}}},QCn={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ZCn=KCn(n=>({field:YCn(n),icon:QCn})),Joe={paddingInlineEnd:"8"},i8t,o8t,s8t,a8t,c8t,u8t,l8t,f8t,JCn={lg:{...(i8t=Xa.sizes)==null?void 0:i8t.lg,field:{...(o8t=Xa.sizes)==null?void 0:o8t.lg.field,...Joe}},md:{...(s8t=Xa.sizes)==null?void 0:s8t.md,field:{...(a8t=Xa.sizes)==null?void 0:a8t.md.field,...Joe}},sm:{...(c8t=Xa.sizes)==null?void 0:c8t.sm,field:{...(u8t=Xa.sizes)==null?void 0:u8t.sm.field,...Joe}},xs:{...(l8t=Xa.sizes)==null?void 0:l8t.xs,field:{...(f8t=Xa.sizes)==null?void 0:f8t.xs.field,...Joe},icon:{insetEnd:"1"}}},e8n=XCn({baseStyle:ZCn,sizes:JCn,variants:Xa.variants,defaultProps:Xa.defaultProps}),t8n=Ld("skeleton-start-color"),n8n=Ld("skeleton-end-color"),r8n=n=>{const r=_r("gray.100","gray.800")(n),c=_r("gray.400","gray.600")(n),{startColor:u=r,endColor:d=c,theme:p}=n,m=Nd(p,u),x=Nd(p,d);return{[t8n.variable]:m,[n8n.variable]:x,opacity:.7,borderRadius:"2px",borderColor:m,background:x}},i8n={baseStyle:r8n},S9e=Ld("skip-link-bg"),o8n={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[S9e.variable]:"colors.white",_dark:{[S9e.variable]:"colors.gray.700"},bg:S9e.reference}},s8n={baseStyle:o8n},{defineMultiStyleConfig:a8n,definePartsStyle:xle}=rl(W5n.keys),eq=Ld("slider-thumb-size"),tq=Ld("slider-track-size"),qE=Ld("slider-bg"),c8n=n=>{const{orientation:r}=n;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...K_e({orientation:r,vertical:{h:"100%"},horizontal:{w:"100%"}})}},u8n=n=>({...K_e({orientation:n.orientation,horizontal:{h:tq.reference},vertical:{w:tq.reference}}),overflow:"hidden",borderRadius:"sm",[qE.variable]:"colors.gray.200",_dark:{[qE.variable]:"colors.whiteAlpha.200"},_disabled:{[qE.variable]:"colors.gray.300",_dark:{[qE.variable]:"colors.whiteAlpha.300"}},bg:qE.reference}),l8n=n=>{const{orientation:r}=n;return{...K_e({orientation:r,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:eq.reference,h:eq.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},f8n=n=>{const{colorScheme:r}=n;return{width:"inherit",height:"inherit",[qE.variable]:`colors.${r}.500`,_dark:{[qE.variable]:`colors.${r}.200`},bg:qE.reference}},d8n=xle(n=>({container:c8n(n),track:u8n(n),thumb:l8n(n),filledTrack:f8n(n)})),h8n=xle({container:{[eq.variable]:"sizes.4",[tq.variable]:"sizes.1"}}),p8n=xle({container:{[eq.variable]:"sizes.3.5",[tq.variable]:"sizes.1"}}),g8n=xle({container:{[eq.variable]:"sizes.2.5",[tq.variable]:"sizes.0.5"}}),b8n={lg:h8n,md:p8n,sm:g8n},m8n=a8n({baseStyle:d8n,sizes:b8n,defaultProps:{size:"md",colorScheme:"blue"}}),K9=z1("spinner-size"),v8n={width:[K9.reference],height:[K9.reference]},y8n={xs:{[K9.variable]:"sizes.3"},sm:{[K9.variable]:"sizes.4"},md:{[K9.variable]:"sizes.6"},lg:{[K9.variable]:"sizes.8"},xl:{[K9.variable]:"sizes.12"}},w8n={baseStyle:v8n,sizes:y8n,defaultProps:{size:"md"}},{defineMultiStyleConfig:x8n,definePartsStyle:kMt}=rl(G5n.keys),S8n={fontWeight:"medium"},E8n={opacity:.8,marginBottom:"2"},k8n={verticalAlign:"baseline",fontWeight:"semibold"},C8n={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},I8n=kMt({container:{},label:S8n,helpText:E8n,number:k8n,icon:C8n}),T8n={md:kMt({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},A8n=x8n({baseStyle:I8n,sizes:T8n,defaultProps:{size:"md"}}),{defineMultiStyleConfig:P8n,definePartsStyle:wae}=rl(X5n.keys),iH=z1("switch-track-width"),b7=z1("switch-track-height"),E9e=z1("switch-track-diff"),O8n=oS.subtract(iH,b7),kAe=z1("switch-thumb-x"),iU=z1("switch-bg"),_8n=n=>{const{colorScheme:r}=n;return{borderRadius:"full",p:"0.5",width:[iH.reference],height:[b7.reference],transitionProperty:"common",transitionDuration:"fast",[iU.variable]:"colors.gray.300",_dark:{[iU.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[iU.variable]:`colors.${r}.500`,_dark:{[iU.variable]:`colors.${r}.200`}},bg:iU.reference}},M8n={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[b7.reference],height:[b7.reference],_checked:{transform:`translateX(${kAe.reference})`}},D8n=wae(n=>({container:{[E9e.variable]:O8n,[kAe.variable]:E9e.reference,_rtl:{[kAe.variable]:oS(E9e).negate().toString()}},track:_8n(n),thumb:M8n})),N8n={sm:wae({container:{[iH.variable]:"1.375rem",[b7.variable]:"sizes.3"}}),md:wae({container:{[iH.variable]:"1.875rem",[b7.variable]:"sizes.4"}}),lg:wae({container:{[iH.variable]:"2.875rem",[b7.variable]:"sizes.6"}})},j8n=P8n({baseStyle:D8n,sizes:N8n,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:R8n,definePartsStyle:YM}=rl(K5n.keys),$8n=YM({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),bce={"&[data-is-numeric=true]":{textAlign:"end"}},L8n=YM(n=>{const{colorScheme:r}=n;return{th:{color:_r("gray.600","gray.400")(n),borderBottom:"1px",borderColor:_r(`${r}.100`,`${r}.700`)(n),...bce},td:{borderBottom:"1px",borderColor:_r(`${r}.100`,`${r}.700`)(n),...bce},caption:{color:_r("gray.600","gray.100")(n)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),F8n=YM(n=>{const{colorScheme:r}=n;return{th:{color:_r("gray.600","gray.400")(n),borderBottom:"1px",borderColor:_r(`${r}.100`,`${r}.700`)(n),...bce},td:{borderBottom:"1px",borderColor:_r(`${r}.100`,`${r}.700`)(n),...bce},caption:{color:_r("gray.600","gray.100")(n)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:_r(`${r}.100`,`${r}.700`)(n)},td:{background:_r(`${r}.100`,`${r}.700`)(n)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),B8n={simple:L8n,striped:F8n,unstyled:{}},V8n={sm:YM({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:YM({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:YM({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},z8n=R8n({baseStyle:$8n,variants:B8n,sizes:V8n,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:U8n,definePartsStyle:Hx}=rl(Y5n.keys),H8n=n=>{const{orientation:r}=n;return{display:r==="vertical"?"flex":"block"}},q8n=n=>{const{isFitted:r}=n;return{flex:r?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},W8n=n=>{const{align:r="start",orientation:c}=n;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[r],flexDirection:c==="vertical"?"column":"row"}},G8n={p:4},X8n=Hx(n=>({root:H8n(n),tab:q8n(n),tablist:W8n(n),tabpanel:G8n})),K8n={sm:Hx({tab:{py:1,px:4,fontSize:"sm"}}),md:Hx({tab:{fontSize:"md",py:2,px:4}}),lg:Hx({tab:{fontSize:"lg",py:3,px:4}})},Y8n=Hx(n=>{const{colorScheme:r,orientation:c}=n,u=c==="vertical",d=c==="vertical"?"borderStart":"borderBottom",p=u?"marginStart":"marginBottom";return{tablist:{[d]:"2px solid",borderColor:"inherit"},tab:{[d]:"2px solid",borderColor:"transparent",[p]:"-2px",_selected:{color:_r(`${r}.600`,`${r}.300`)(n),borderColor:"currentColor"},_active:{bg:_r("gray.200","whiteAlpha.300")(n)},_disabled:{_active:{bg:"none"}}}}}),Q8n=Hx(n=>{const{colorScheme:r}=n;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:_r(`${r}.600`,`${r}.300`)(n),borderColor:"inherit",borderBottomColor:_r("white","gray.800")(n)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Z8n=Hx(n=>{const{colorScheme:r}=n;return{tab:{border:"1px solid",borderColor:"inherit",bg:_r("gray.50","whiteAlpha.50")(n),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:_r("#fff","gray.800")(n),color:_r(`${r}.600`,`${r}.300`)(n),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),J8n=Hx(n=>{const{colorScheme:r,theme:c}=n;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Nd(c,`${r}.700`),bg:Nd(c,`${r}.100`)}}}}),eIn=Hx(n=>{const{colorScheme:r}=n;return{tab:{borderRadius:"full",fontWeight:"semibold",color:_r("gray.600","inherit")(n),_selected:{color:_r("#fff","gray.800")(n),bg:_r(`${r}.600`,`${r}.300`)(n)}}}}),tIn=Hx({}),nIn={line:Y8n,enclosed:Q8n,"enclosed-colored":Z8n,"soft-rounded":J8n,"solid-rounded":eIn,unstyled:tIn},rIn=U8n({baseStyle:X8n,sizes:K8n,variants:nIn,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:iIn,definePartsStyle:m7}=rl(Q5n.keys),oIn={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},sIn={lineHeight:1.2,overflow:"visible"},aIn={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},cIn=m7({container:oIn,label:sIn,closeButton:aIn}),uIn={sm:m7({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:m7({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:m7({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},lIn={subtle:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.subtle(n)}}),solid:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.solid(n)}}),outline:m7(n=>{var r;return{container:(r=tH.variants)==null?void 0:r.outline(n)}})},fIn=iIn({variants:lIn,baseStyle:cIn,sizes:uIn,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),d8t,dIn={...(d8t=Xa.baseStyle)==null?void 0:d8t.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},h8t,pPt,hIn={outline:n=>{var c;var r;return(c=(r=Xa.variants)==null?void 0:r.outline(n).field)!=null?c:{}},flushed:n=>{var c;var r;return(c=(r=Xa.variants)==null?void 0:r.flushed(n).field)!=null?c:{}},filled:n=>{var c;var r;return(c=(r=Xa.variants)==null?void 0:r.filled(n).field)!=null?c:{}},unstyled:(pPt=(h8t=Xa.variants)==null?void 0:h8t.unstyled.field)!=null?pPt:{}},p8t,g8t,b8t,m8t,gPt,bPt,mPt,vPt,pIn={xs:(gPt=(p8t=Xa.sizes)==null?void 0:p8t.xs.field)!=null?gPt:{},sm:(bPt=(g8t=Xa.sizes)==null?void 0:g8t.sm.field)!=null?bPt:{},md:(mPt=(b8t=Xa.sizes)==null?void 0:b8t.md.field)!=null?mPt:{},lg:(vPt=(m8t=Xa.sizes)==null?void 0:m8t.lg.field)!=null?vPt:{}},gIn={baseStyle:dIn,sizes:pIn,variants:hIn,defaultProps:{size:"md",variant:"outline"}},ese=z1("tooltip-bg"),k9e=z1("tooltip-fg"),bIn=z1("popper-arrow-bg"),mIn={bg:ese.reference,color:k9e.reference,[ese.variable]:"colors.gray.700",[k9e.variable]:"colors.whiteAlpha.900",_dark:{[ese.variable]:"colors.gray.300",[k9e.variable]:"colors.gray.900"},[bIn.variable]:ese.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},vIn={baseStyle:mIn},yIn={Accordion:F6n,Alert:G6n,Avatar:iEn,Badge:tH,Breadcrumb:pEn,Button:EEn,Checkbox:gce,CloseButton:DEn,Code:$En,Container:FEn,Divider:HEn,Drawer:tkn,Editable:ckn,Form:pkn,FormError:wkn,FormLabel:Skn,Heading:Ckn,Input:Xa,Kbd:jkn,Link:$kn,List:zkn,Menu:Zkn,Modal:uCn,NumberInput:yCn,PinInput:ECn,Popover:NCn,Progress:zCn,Radio:GCn,Select:e8n,Skeleton:i8n,SkipLink:s8n,Slider:m8n,Spinner:w8n,Stat:A8n,Switch:j8n,Table:z8n,Tabs:rIn,Tag:fIn,Textarea:gIn,Tooltip:vIn},wIn={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},xIn=wIn,SIn={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},EIn=SIn,kIn={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},CIn=kIn,IIn={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},TIn=IIn,AIn={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},PIn=AIn,OIn={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},_In={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},MIn={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},DIn={property:OIn,easing:_In,duration:MIn},NIn=DIn,jIn={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},RIn=jIn,$In={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},LIn=$In,FIn={breakpoints:EIn,zIndices:RIn,radii:TIn,blur:LIn,colors:CIn,...xMt,sizes:vMt,shadows:PIn,space:mMt,borders:xIn,transition:NIn},BIn={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},VIn={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}};function zIn(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}var UIn=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function HIn(n){return zIn(n)?UIn.every(r=>Object.prototype.hasOwnProperty.call(n,r)):!1}var qIn="ltr",WIn={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},CMt={semanticTokens:BIn,direction:qIn,...FIn,components:yIn,styles:VIn,config:WIn};function AU(n){return typeof n=="function"}function GIn(...n){return r=>n.reduce((c,u)=>u(c),r)}function XIn(...n){let r=[...n],c=n[n.length-1];return HIn(c)&&r.length>1?r=r.slice(0,r.length-1):c=CMt,GIn(...r.map(u=>d=>AU(u)?u(d):KIn(d,u)))(c)}function KIn(...n){return bv({},...n,IMt)}function IMt(n,r,c,u){if((AU(n)||AU(r))&&Object.prototype.hasOwnProperty.call(u,c))return(...d)=>{const p=AU(n)?n(...d):n,m=AU(r)?r(...d):r;return bv({},p,m,IMt)}}var YIn=typeof Element<"u",QIn=typeof Map=="function",ZIn=typeof Set=="function",JIn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xae(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var c,u,d;if(Array.isArray(n)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(!xae(n[u],r[u]))return!1;return!0}var p;if(QIn&&n instanceof Map&&r instanceof Map){if(n.size!==r.size)return!1;for(p=n.entries();!(u=p.next()).done;)if(!r.has(u.value[0]))return!1;for(p=n.entries();!(u=p.next()).done;)if(!xae(u.value[1],r.get(u.value[0])))return!1;return!0}if(ZIn&&n instanceof Set&&r instanceof Set){if(n.size!==r.size)return!1;for(p=n.entries();!(u=p.next()).done;)if(!r.has(u.value[0]))return!1;return!0}if(JIn&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(r)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(n[u]!==r[u])return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(d=Object.keys(n),c=d.length,c!==Object.keys(r).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,d[u]))return!1;if(YIn&&n instanceof Element)return!1;for(u=c;u--!==0;)if(!((d[u]==="_owner"||d[u]==="__v"||d[u]==="__o")&&n.$$typeof)&&!xae(n[d[u]],r[d[u]]))return!1;return!0}return n!==n&&r!==r}var e9n=function(r,c){try{return xae(r,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}};function Q7(){const n=U.exports.useContext(_7);if(!n)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return n}function t9n(){const n=ZD(),r=Q7();return{...n,theme:r}}function n9n(n,r,c){var d,p;if(r==null)return r;const u=m=>{var x,E;return(E=(x=n.__breakpoints)==null?void 0:x.asArray)==null?void 0:E[m]};return(p=(d=u(r))!=null?d:u(c))!=null?p:c}function r9n(n,r,c){var d,p;if(r==null)return r;const u=m=>{var x,E;return(E=(x=n.__cssMap)==null?void 0:x[m])==null?void 0:E.value};return(p=(d=u(r))!=null?d:u(c))!=null?p:c}function i9n(n,r,c){const u=Array.isArray(r)?r:[r],d=Array.isArray(c)?c:[c];return p=>{const m=d.filter(Boolean),x=u.map((E,k)=>{var P,I;if(n==="breakpoints")return n9n(p,E,(P=m[k])!=null?P:E);const T=`${n}.${E}`;return r9n(p,T,(I=m[k])!=null?I:E)});return Array.isArray(r)?x:x[0]}}function o9n(n){const{cssVarsRoot:r,theme:c,children:u}=n,d=U.exports.useMemo(()=>U4n(c),[c]);return We(QSn,{theme:d,children:[z(s9n,{root:r}),u]})}function s9n({root:n=":host, :root"}){const r=[n,"[data-theme]"].join(",");return z(Qq,{styles:c=>({[r]:c.__cssVars})})}var[a9n,Sle]=d5n({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function c9n(){const{colorMode:n}=ZD();return z(Qq,{styles:r=>{const c=rMt(r,"styles.global"),u=aMt(c,{theme:r,colorMode:n});return u?B_t(u)(r):void 0}})}var u9n=new Set([...W4n,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),l9n=new Set(["htmlWidth","htmlHeight","htmlSize"]);function f9n(n){return l9n.has(n)||!u9n.has(n)}var d9n=({baseStyle:n})=>r=>{const{theme:c,css:u,__css:d,sx:p,...m}=r,x=iMt(m,(P,I)=>X4n(I)),E=aMt(n,r),k=Object.assign({},d,E,oMt(x),p),T=B_t(k)(r.theme);return u?[T,u]:T};function C9e(n,r){const{baseStyle:c,...u}=r!=null?r:{};u.shouldForwardProp||(u.shouldForwardProp=f9n);const d=d9n({baseStyle:c}),p=yAe(n,u)(d);return lt.forwardRef(function(E,k){const{colorMode:T,forced:P}=ZD();return lt.createElement(p,{ref:k,"data-theme":P?T:void 0,...E})})}function kn(n){return U.exports.forwardRef(n)}function TMt(n,r={}){var T;const{styleConfig:c,...u}=r,{theme:d,colorMode:p}=t9n(),m=n?rMt(d,`components.${n}`):void 0,x=c||m,E=bv({theme:d,colorMode:p},(T=x==null?void 0:x.defaultProps)!=null?T:{},oMt(s5n(u,["children"]))),k=U.exports.useRef({});if(x){const I=iSn(x)(E);e9n(k.current,I)||(k.current=I)}return k.current}function U1(n,r={}){return TMt(n,r)}function il(n,r={}){return TMt(n,r)}function h9n(){const n=new Map;return new Proxy(C9e,{apply(r,c,u){return C9e(...u)},get(r,c){return n.has(c)||n.set(c,C9e(c)),n.get(c)}})}var Qt=h9n();function p9n(n,r){return`${n} returned \`undefined\`. Seems you forgot to wrap component within ${r}`}function kc(n={}){const{name:r,strict:c=!0,hookName:u="useContext",providerName:d="Provider",errorMessage:p}=n,m=U.exports.createContext(void 0);m.displayName=r;function x(){var E;const k=U.exports.useContext(m);if(!k&&c){const T=new Error(p!=null?p:p9n(u,d));throw T.name="ContextError",(E=Error.captureStackTrace)==null||E.call(Error,T,x),T}return k}return[m.Provider,x,m]}function g9n(n,r){if(n!=null){if(typeof n=="function"){n(r);return}try{n.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${n}'`)}}}function _u(...n){return r=>{n.forEach(c=>{g9n(c,r)})}}function b9n(...n){return U.exports.useMemo(()=>_u(...n),n)}function v8t(n){return n.sort((r,c)=>{const u=r.compareDocumentPosition(c);if(u&Node.DOCUMENT_POSITION_FOLLOWING||u&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(u&Node.DOCUMENT_POSITION_PRECEDING||u&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(u&Node.DOCUMENT_POSITION_DISCONNECTED||u&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var m9n=n=>typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE;function y8t(n,r,c){let u=n+1;return c&&u>=r&&(u=0),u}function w8t(n,r,c){let u=n-1;return c&&u<0&&(u=r),u}var CAe=typeof window<"u"?U.exports.useLayoutEffect:U.exports.useEffect,mce=n=>n,v9n=class{constructor(){Yu(this,"descendants",new Map);Yu(this,"register",n=>{if(n!=null)return m9n(n)?this.registerNode(n):r=>{this.registerNode(r,n)}});Yu(this,"unregister",n=>{this.descendants.delete(n);const r=v8t(Array.from(this.descendants.keys()));this.assignIndex(r)});Yu(this,"destroy",()=>{this.descendants.clear()});Yu(this,"assignIndex",n=>{this.descendants.forEach(r=>{const c=n.indexOf(r.node);r.index=c,r.node.dataset.index=r.index.toString()})});Yu(this,"count",()=>this.descendants.size);Yu(this,"enabledCount",()=>this.enabledValues().length);Yu(this,"values",()=>Array.from(this.descendants.values()).sort((r,c)=>r.index-c.index));Yu(this,"enabledValues",()=>this.values().filter(n=>!n.disabled));Yu(this,"item",n=>{if(this.count()!==0)return this.values()[n]});Yu(this,"enabledItem",n=>{if(this.enabledCount()!==0)return this.enabledValues()[n]});Yu(this,"first",()=>this.item(0));Yu(this,"firstEnabled",()=>this.enabledItem(0));Yu(this,"last",()=>this.item(this.descendants.size-1));Yu(this,"lastEnabled",()=>{const n=this.enabledValues().length-1;return this.enabledItem(n)});Yu(this,"indexOf",n=>{var c;var r;return n&&(c=(r=this.descendants.get(n))==null?void 0:r.index)!=null?c:-1});Yu(this,"enabledIndexOf",n=>n==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(n)));Yu(this,"next",(n,r=!0)=>{const c=y8t(n,this.count(),r);return this.item(c)});Yu(this,"nextEnabled",(n,r=!0)=>{const c=this.item(n);if(!c)return;const u=this.enabledIndexOf(c.node),d=y8t(u,this.enabledCount(),r);return this.enabledItem(d)});Yu(this,"prev",(n,r=!0)=>{const c=w8t(n,this.count()-1,r);return this.item(c)});Yu(this,"prevEnabled",(n,r=!0)=>{const c=this.item(n);if(!c)return;const u=this.enabledIndexOf(c.node),d=w8t(u,this.enabledCount()-1,r);return this.enabledItem(d)});Yu(this,"registerNode",(n,r)=>{if(!n||this.descendants.has(n))return;const c=Array.from(this.descendants.keys()).concat(n),u=v8t(c);r!=null&&r.disabled&&(r.disabled=!!r.disabled);const d={node:n,index:-1,...r};this.descendants.set(n,d),this.assignIndex(u)})}};function y9n(){const n=U.exports.useRef(new v9n);return CAe(()=>()=>n.current.destroy()),n.current}var[w9n,AMt]=kc({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function x9n(n){const r=AMt(),[c,u]=U.exports.useState(-1),d=U.exports.useRef(null);CAe(()=>()=>{!d.current||r.unregister(d.current)},[]),CAe(()=>{if(!d.current)return;const m=Number(d.current.dataset.index);c!=m&&!Number.isNaN(m)&&u(m)});const p=mce(n?r.register(n):r.register);return{descendants:r,index:c,enabledIndex:r.enabledIndexOf(d.current),register:_u(p,d)}}function J_e(){return[mce(w9n),()=>mce(AMt()),()=>y9n(),d=>x9n(d)]}var Pf=(...n)=>n.filter(Boolean).join(" "),x8t={path:We("g",{stroke:"currentColor",strokeWidth:"1.5",children:[z("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),z("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),z("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},To=kn((n,r)=>{const{as:c,viewBox:u,color:d="currentColor",focusable:p=!1,children:m,className:x,__css:E,...k}=n,T=Pf("chakra-icon",x),P={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d,...E},I={ref:r,focusable:p,className:T,__css:P},O=u!=null?u:x8t.viewBox;if(c&&typeof c!="string")return lt.createElement(Qt.svg,{as:c,...I,...k});const N=m!=null?m:x8t.path;return lt.createElement(Qt.svg,{verticalAlign:"middle",viewBox:O,...I,...k},N)});To.displayName="Icon";var S9n=To;function Ei(n){const{viewBox:r="0 0 24 24",d:c,displayName:u,defaultProps:d={}}=n,p=U.exports.Children.toArray(n.path),m=kn((x,E)=>z(To,{ref:E,viewBox:r,...d,...x,children:p.length?p:z("path",{fill:"currentColor",d:c})}));return m.displayName=u,m}function mh(n,r=[]){const c=U.exports.useRef(n);return U.exports.useEffect(()=>{c.current=n}),U.exports.useCallback((...u)=>{var d;return(d=c.current)==null?void 0:d.call(c,...u)},r)}function PMt(n){const{value:r,defaultValue:c,onChange:u,shouldUpdate:d=(I,O)=>I!==O}=n,p=mh(u),m=mh(d),[x,E]=U.exports.useState(c),k=r!==void 0,T=k?r:x,P=mh(I=>{const N=typeof I=="function"?I(T):I;!m(T,N)||(k||E(N),p(N))},[k,p,T,m]);return[T,P]}const eMe=U.exports.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"}),Ele=U.exports.createContext({});function E9n(){return U.exports.useContext(Ele).visualElement}const eN=U.exports.createContext(null),Z7=typeof document<"u",vce=Z7?U.exports.useLayoutEffect:U.exports.useEffect,OMt=U.exports.createContext({strict:!1});function k9n(n,r,c,u){const d=E9n(),p=U.exports.useContext(OMt),m=U.exports.useContext(eN),x=U.exports.useContext(eMe).reducedMotion,E=U.exports.useRef(void 0);u=u||p.renderer,!E.current&&u&&(E.current=u(n,{visualState:r,parent:d,props:c,presenceId:m?m.id:void 0,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:x}));const k=E.current;return vce(()=>{k&&k.syncRender()}),U.exports.useEffect(()=>{k&&k.animationState&&k.animationState.animateChanges()}),vce(()=>()=>k&&k.notifyUnmount(),[]),k}function _M(n){return typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function C9n(n,r,c){return U.exports.useCallback(u=>{u&&n.mount&&n.mount(u),r&&(u?r.mount(u):r.unmount()),c&&(typeof c=="function"?c(u):_M(c)&&(c.current=u))},[r])}function nq(n){return typeof n=="string"||Array.isArray(n)}function kle(n){return typeof n=="object"&&typeof n.start=="function"}const I9n=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Cle(n){return kle(n.animate)||I9n.some(r=>nq(n[r]))}function _Mt(n){return Boolean(Cle(n)||n.variants)}function T9n(n,r){if(Cle(n)){const{initial:c,animate:u}=n;return{initial:c===!1||nq(c)?c:void 0,animate:nq(u)?u:void 0}}return n.inherit!==!1?r:{}}function A9n(n){const{initial:r,animate:c}=T9n(n,U.exports.useContext(Ele));return U.exports.useMemo(()=>({initial:r,animate:c}),[S8t(r),S8t(c)])}function S8t(n){return Array.isArray(n)?n.join(" "):n}const Z4=n=>({isEnabled:r=>n.some(c=>!!r[c])}),rq={measureLayout:Z4(["layout","layoutId","drag"]),animation:Z4(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Z4(["exit"]),drag:Z4(["drag","dragControls"]),focus:Z4(["whileFocus"]),hover:Z4(["whileHover","onHoverStart","onHoverEnd"]),tap:Z4(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Z4(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Z4(["whileInView","onViewportEnter","onViewportLeave"])};function P9n(n){for(const r in n)r==="projectionNodeConstructor"?rq.projectionNodeConstructor=n[r]:rq[r].Component=n[r]}function Ile(n){const r=U.exports.useRef(null);return r.current===null&&(r.current=n()),r.current}const oH={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let O9n=1;function _9n(){return Ile(()=>{if(oH.hasEverUpdated)return O9n++})}const tMe=U.exports.createContext({});class M9n extends lt.Component{getSnapshotBeforeUpdate(){const{visualElement:r,props:c}=this.props;return r&&r.setProps(c),null}componentDidUpdate(){}render(){return this.props.children}}const MMt=U.exports.createContext({});function D9n({preloadedFeatures:n,createVisualElement:r,projectionNodeConstructor:c,useRender:u,useVisualState:d,Component:p}){n&&P9n(n);function m(x,E){const k={...U.exports.useContext(eMe),...x,layoutId:N9n(x)},{isStatic:T}=k;let P=null;const I=A9n(x),O=T?void 0:_9n(),N=d(x,T);if(!T&&Z7){I.visualElement=k9n(p,N,k,r);const j=U.exports.useContext(OMt).strict,$=U.exports.useContext(MMt);I.visualElement&&(P=I.visualElement.loadFeatures(x,j,n,O,c||rq.projectionNodeConstructor,$))}return We(M9n,{visualElement:I.visualElement,props:k,children:[P,z(Ele.Provider,{value:I,children:u(p,x,O,C9n(N,I.visualElement,E),N,T,I.visualElement)})]})}return U.exports.forwardRef(m)}function N9n({layoutId:n}){const r=U.exports.useContext(tMe).id;return r&&n!==void 0?r+"-"+n:n}function j9n(n){function r(u,d={}){return D9n(n(u,d))}if(typeof Proxy>"u")return r;const c=new Map;return new Proxy(r,{get:(u,d)=>(c.has(d)||c.set(d,r(d)),c.get(d))})}const R9n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nMe(n){return typeof n!="string"||n.includes("-")?!1:!!(R9n.indexOf(n)>-1||/[A-Z]/.test(n))}const yce={};function $9n(n){Object.assign(yce,n)}const wce=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","skew","skewX","skewY"],eW=new Set(wce);function DMt(n,{layout:r,layoutId:c}){return eW.has(n)||n.startsWith("origin")||(r||c!==void 0)&&(!!yce[n]||n==="opacity")}const Yx=n=>n===void 0?!1:!!n.getVelocity,L9n={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F9n=(n,r)=>wce.indexOf(n)-wce.indexOf(r);function B9n({transform:n,transformKeys:r},{enableHardwareAcceleration:c=!0,allowTransformNone:u=!0},d,p){let m="";r.sort(F9n);for(const x of r)m+=`${L9n[x]||x}(${n[x]}) `;return c&&!n.z&&(m+="translateZ(0)"),m=m.trim(),p?m=p(n,d?"":m):u&&d&&(m="none"),m}function NMt(n){return n.startsWith("--")}const V9n=(n,r)=>r&&typeof n=="number"?r.transform(n):n,jMt=(n,r)=>c=>Math.max(Math.min(c,r),n),sH=n=>n%1?Number(n.toFixed(5)):n,iq=/(-)?([\d]*\.?[\d])+/g,IAe=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,z9n=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tW(n){return typeof n=="string"}const J7={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},aH=Object.assign(Object.assign({},J7),{transform:jMt(0,1)}),tse=Object.assign(Object.assign({},J7),{default:1}),nW=n=>({test:r=>tW(r)&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),jE=nW("deg"),qx=nW("%"),ho=nW("px"),U9n=nW("vh"),H9n=nW("vw"),E8t=Object.assign(Object.assign({},qx),{parse:n=>qx.parse(n)/100,transform:n=>qx.transform(n*100)}),rMe=(n,r)=>c=>Boolean(tW(c)&&z9n.test(c)&&c.startsWith(n)||r&&Object.prototype.hasOwnProperty.call(c,r)),RMt=(n,r,c)=>u=>{if(!tW(u))return u;const[d,p,m,x]=u.match(iq);return{[n]:parseFloat(d),[r]:parseFloat(p),[c]:parseFloat(m),alpha:x!==void 0?parseFloat(x):1}},o7={test:rMe("hsl","hue"),parse:RMt("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:c,alpha:u=1})=>"hsla("+Math.round(n)+", "+qx.transform(sH(r))+", "+qx.transform(sH(c))+", "+sH(aH.transform(u))+")"},q9n=jMt(0,255),I9e=Object.assign(Object.assign({},J7),{transform:n=>Math.round(q9n(n))}),JE={test:rMe("rgb","red"),parse:RMt("red","green","blue"),transform:({red:n,green:r,blue:c,alpha:u=1})=>"rgba("+I9e.transform(n)+", "+I9e.transform(r)+", "+I9e.transform(c)+", "+sH(aH.transform(u))+")"};function W9n(n){let r="",c="",u="",d="";return n.length>5?(r=n.substr(1,2),c=n.substr(3,2),u=n.substr(5,2),d=n.substr(7,2)):(r=n.substr(1,1),c=n.substr(2,1),u=n.substr(3,1),d=n.substr(4,1),r+=r,c+=c,u+=u,d+=d),{red:parseInt(r,16),green:parseInt(c,16),blue:parseInt(u,16),alpha:d?parseInt(d,16)/255:1}}const TAe={test:rMe("#"),parse:W9n,transform:JE.transform},jp={test:n=>JE.test(n)||TAe.test(n)||o7.test(n),parse:n=>JE.test(n)?JE.parse(n):o7.test(n)?o7.parse(n):TAe.parse(n),transform:n=>tW(n)?n:n.hasOwnProperty("red")?JE.transform(n):o7.transform(n)},$Mt="${c}",LMt="${n}";function G9n(n){var r,c,u,d;return isNaN(n)&&tW(n)&&((c=(r=n.match(iq))===null||r===void 0?void 0:r.length)!==null&&c!==void 0?c:0)+((d=(u=n.match(IAe))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0)>0}function FMt(n){typeof n=="number"&&(n=`${n}`);const r=[];let c=0;const u=n.match(IAe);u&&(c=u.length,n=n.replace(IAe,$Mt),r.push(...u.map(jp.parse)));const d=n.match(iq);return d&&(n=n.replace(iq,LMt),r.push(...d.map(J7.parse))),{values:r,numColors:c,tokenised:n}}function BMt(n){return FMt(n).values}function VMt(n){const{values:r,numColors:c,tokenised:u}=FMt(n),d=r.length;return p=>{let m=u;for(let x=0;xtypeof n=="number"?0:n;function K9n(n){const r=BMt(n);return VMt(n)(r.map(X9n))}const SS={test:G9n,parse:BMt,createTransformer:VMt,getAnimatableNone:K9n},Y9n=new Set(["brightness","contrast","saturate","opacity"]);function Q9n(n){let[r,c]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[u]=c.match(iq)||[];if(!u)return n;const d=c.replace(u,"");let p=Y9n.has(r)?1:0;return u!==c&&(p*=100),r+"("+p+d+")"}const Z9n=/([a-z-]*)\(.*?\)/g,AAe=Object.assign(Object.assign({},SS),{getAnimatableNone:n=>{const r=n.match(Z9n);return r?r.map(Q9n).join(" "):n}}),k8t={...J7,transform:Math.round},zMt={borderWidth:ho,borderTopWidth:ho,borderRightWidth:ho,borderBottomWidth:ho,borderLeftWidth:ho,borderRadius:ho,radius:ho,borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomRightRadius:ho,borderBottomLeftRadius:ho,width:ho,maxWidth:ho,height:ho,maxHeight:ho,size:ho,top:ho,right:ho,bottom:ho,left:ho,padding:ho,paddingTop:ho,paddingRight:ho,paddingBottom:ho,paddingLeft:ho,margin:ho,marginTop:ho,marginRight:ho,marginBottom:ho,marginLeft:ho,rotate:jE,rotateX:jE,rotateY:jE,rotateZ:jE,scale:tse,scaleX:tse,scaleY:tse,scaleZ:tse,skew:jE,skewX:jE,skewY:jE,distance:ho,translateX:ho,translateY:ho,translateZ:ho,x:ho,y:ho,z:ho,perspective:ho,transformPerspective:ho,opacity:aH,originX:E8t,originY:E8t,originZ:ho,zIndex:k8t,fillOpacity:aH,strokeOpacity:aH,numOctaves:k8t};function iMe(n,r,c,u){const{style:d,vars:p,transform:m,transformKeys:x,transformOrigin:E}=n;x.length=0;let k=!1,T=!1,P=!0;for(const I in r){const O=r[I];if(NMt(I)){p[I]=O;continue}const N=zMt[I],j=V9n(O,N);if(eW.has(I)){if(k=!0,m[I]=j,x.push(I),!P)continue;O!==(N.default||0)&&(P=!1)}else I.startsWith("origin")?(T=!0,E[I]=j):d[I]=j}if(k||u?d.transform=B9n(n,c,P,u):!r.transform&&d.transform&&(d.transform="none"),T){const{originX:I="50%",originY:O="50%",originZ:N=0}=E;d.transformOrigin=`${I} ${O} ${N}`}}const oMe=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function UMt(n,r,c){for(const u in r)!Yx(r[u])&&!DMt(u,c)&&(n[u]=r[u])}function J9n({transformTemplate:n},r,c){return U.exports.useMemo(()=>{const u=oMe();return iMe(u,r,{enableHardwareAcceleration:!c},n),Object.assign({},u.vars,u.style)},[r])}function e7n(n,r,c){const u=n.style||{},d={};return UMt(d,u,n),Object.assign(d,J9n(n,r,c)),n.transformValues?n.transformValues(d):d}function t7n(n,r,c){const u={},d=e7n(n,r,c);return n.drag&&n.dragListener!==!1&&(u.draggable=!1,d.userSelect=d.WebkitUserSelect=d.WebkitTouchCallout="none",d.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),u.style=d,u}const n7n=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],r7n=["whileTap","onTap","onTapStart","onTapCancel"],i7n=["onPan","onPanStart","onPanSessionStart","onPanEnd"],o7n=["whileInView","onViewportEnter","onViewportLeave","viewport"],s7n=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...o7n,...r7n,...n7n,...i7n]);function vD(n){return s7n.has(n)}let HMt=n=>!vD(n);function a7n(n){!n||(HMt=r=>r.startsWith("on")?!vD(r):n(r))}try{a7n(require("@emotion/is-prop-valid").default)}catch{}function c7n(n,r,c){const u={};for(const d in n)(HMt(d)||c===!0&&vD(d)||!r&&!vD(d)||n.draggable&&d.startsWith("onDrag"))&&(u[d]=n[d]);return u}function C8t(n,r,c){return typeof n=="string"?n:ho.transform(r+c*n)}function u7n(n,r,c){const u=C8t(r,n.x,n.width),d=C8t(c,n.y,n.height);return`${u} ${d}`}const l7n={offset:"stroke-dashoffset",array:"stroke-dasharray"},f7n={offset:"strokeDashoffset",array:"strokeDasharray"};function d7n(n,r,c=1,u=0,d=!0){n.pathLength=1;const p=d?l7n:f7n;n[p.offset]=ho.transform(-u);const m=ho.transform(r),x=ho.transform(c);n[p.array]=`${m} ${x}`}function sMe(n,{attrX:r,attrY:c,originX:u,originY:d,pathLength:p,pathSpacing:m=1,pathOffset:x=0,...E},k,T){iMe(n,E,k,T),n.attrs=n.style,n.style={};const{attrs:P,style:I,dimensions:O}=n;P.transform&&(O&&(I.transform=P.transform),delete P.transform),O&&(u!==void 0||d!==void 0||I.transform)&&(I.transformOrigin=u7n(O,u!==void 0?u:.5,d!==void 0?d:.5)),r!==void 0&&(P.x=r),c!==void 0&&(P.y=c),p!==void 0&&d7n(P,p,m,x,!1)}const qMt=()=>({...oMe(),attrs:{}});function h7n(n,r){const c=U.exports.useMemo(()=>{const u=qMt();return sMe(u,r,{enableHardwareAcceleration:!1},n.transformTemplate),{...u.attrs,style:{...u.style}}},[r]);if(n.style){const u={};UMt(u,n.style,n),c.style={...u,...c.style}}return c}function p7n(n=!1){return(c,u,d,p,{latestValues:m},x)=>{const k=(nMe(c)?h7n:t7n)(u,m,x),P={...c7n(u,typeof c=="string",n),...k,ref:p};return d&&(P["data-projection-id"]=d),U.exports.createElement(c,P)}}const WMt=n=>n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function GMt(n,{style:r,vars:c},u,d){Object.assign(n.style,r,d&&d.getProjectionStyles(u));for(const p in c)n.style.setProperty(p,c[p])}const XMt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function KMt(n,r,c,u){GMt(n,r,void 0,u);for(const d in r.attrs)n.setAttribute(XMt.has(d)?d:WMt(d),r.attrs[d])}function aMe(n){const{style:r}=n,c={};for(const u in r)(Yx(r[u])||DMt(u,n))&&(c[u]=r[u]);return c}function YMt(n){const r=aMe(n);for(const c in n)if(Yx(n[c])){const u=c==="x"||c==="y"?"attr"+c.toUpperCase():c;r[u]=n[c]}return r}function QMt(n,r,c,u={},d={}){return typeof r=="function"&&(r=r(c!==void 0?c:n.custom,u,d)),typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"&&(r=r(c!==void 0?c:n.custom,u,d)),r}const oq=n=>Array.isArray(n),g7n=n=>Boolean(n&&typeof n=="object"&&n.mix&&n.toValue),ZMt=n=>oq(n)?n[n.length-1]||0:n;function Sae(n){const r=Yx(n)?n.get():n;return g7n(r)?r.toValue():r}function b7n({scrapeMotionValuesFromProps:n,createRenderState:r,onMount:c},u,d,p){const m={latestValues:m7n(u,d,p,n),renderState:r()};return c&&(m.mount=x=>c(u,x,m)),m}const JMt=n=>(r,c)=>{const u=U.exports.useContext(Ele),d=U.exports.useContext(eN),p=()=>b7n(n,r,u,d);return c?p():Ile(p)};function m7n(n,r,c,u){const d={},p=u(n);for(const I in p)d[I]=Sae(p[I]);let{initial:m,animate:x}=n;const E=Cle(n),k=_Mt(n);r&&k&&!E&&n.inherit!==!1&&(m===void 0&&(m=r.initial),x===void 0&&(x=r.animate));let T=c?c.initial===!1:!1;T=T||m===!1;const P=T?x:m;return P&&typeof P!="boolean"&&!kle(P)&&(Array.isArray(P)?P:[P]).forEach(O=>{const N=QMt(n,O);if(!N)return;const{transitionEnd:j,transition:$,...L}=N;for(const B in L){let F=L[B];if(Array.isArray(F)){const X=T?F.length-1:0;F=F[X]}F!==null&&(d[B]=F)}for(const B in j)d[B]=j[B]}),d}const v7n={useVisualState:JMt({scrapeMotionValuesFromProps:YMt,createRenderState:qMt,onMount:(n,r,{renderState:c,latestValues:u})=>{try{c.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{c.dimensions={x:0,y:0,width:0,height:0}}sMe(c,u,{enableHardwareAcceleration:!1},n.transformTemplate),KMt(r,c)}})},y7n={useVisualState:JMt({scrapeMotionValuesFromProps:aMe,createRenderState:oMe})};function w7n(n,{forwardMotionProps:r=!1},c,u,d){return{...nMe(n)?v7n:y7n,preloadedFeatures:c,useRender:p7n(r),createVisualElement:u,projectionNodeConstructor:d,Component:n}}var hu;(function(n){n.Animate="animate",n.Hover="whileHover",n.Tap="whileTap",n.Drag="whileDrag",n.Focus="whileFocus",n.InView="whileInView",n.Exit="exit"})(hu||(hu={}));function Tle(n,r,c,u={passive:!0}){return n.addEventListener(r,c,u),()=>n.removeEventListener(r,c)}function PAe(n,r,c,u){U.exports.useEffect(()=>{const d=n.current;if(c&&d)return Tle(d,r,c,u)},[n,r,c,u])}function x7n({whileFocus:n,visualElement:r}){const{animationState:c}=r,u=()=>{c&&c.setActive(hu.Focus,!0)},d=()=>{c&&c.setActive(hu.Focus,!1)};PAe(r,"focus",n?u:void 0),PAe(r,"blur",n?d:void 0)}function eDt(n){return typeof PointerEvent<"u"&&n instanceof PointerEvent?n.pointerType==="mouse":n instanceof MouseEvent}function tDt(n){return!!n.touches}function S7n(n){return r=>{const c=r instanceof MouseEvent;(!c||c&&r.button===0)&&n(r)}}const E7n={pageX:0,pageY:0};function k7n(n,r="page"){const u=n.touches[0]||n.changedTouches[0]||E7n;return{x:u[r+"X"],y:u[r+"Y"]}}function C7n(n,r="page"){return{x:n[r+"X"],y:n[r+"Y"]}}function cMe(n,r="page"){return{point:tDt(n)?k7n(n,r):C7n(n,r)}}const nDt=(n,r=!1)=>{const c=u=>n(u,cMe(u));return r?S7n(c):c},I7n=()=>Z7&&window.onpointerdown===null,T7n=()=>Z7&&window.ontouchstart===null,A7n=()=>Z7&&window.onmousedown===null,P7n={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},O7n={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rDt(n){return I7n()?n:T7n()?O7n[n]:A7n()?P7n[n]:n}function QM(n,r,c,u){return Tle(n,rDt(r),nDt(c,r==="pointerdown"),u)}function xce(n,r,c,u){return PAe(n,rDt(r),c&&nDt(c,r==="pointerdown"),u)}function iDt(n){let r=null;return()=>{const c=()=>{r=null};return r===null?(r=n,c):!1}}const I8t=iDt("dragHorizontal"),T8t=iDt("dragVertical");function oDt(n){let r=!1;if(n==="y")r=T8t();else if(n==="x")r=I8t();else{const c=I8t(),u=T8t();c&&u?r=()=>{c(),u()}:(c&&c(),u&&u())}return r}function sDt(){const n=oDt(!0);return n?(n(),!1):!0}function A8t(n,r,c){return(u,d)=>{!eDt(u)||sDt()||(n.animationState&&n.animationState.setActive(hu.Hover,r),c&&c(u,d))}}function _7n({onHoverStart:n,onHoverEnd:r,whileHover:c,visualElement:u}){xce(u,"pointerenter",n||c?A8t(u,!0,n):void 0,{passive:!n}),xce(u,"pointerleave",r||c?A8t(u,!1,r):void 0,{passive:!r})}const aDt=(n,r)=>r?n===r?!0:aDt(n,r.parentElement):!1;function uMe(n){return U.exports.useEffect(()=>()=>n(),[])}function cDt(n,r){var c={};for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&r.indexOf(u)<0&&(c[u]=n[u]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(n);dMath.min(Math.max(c,n),r),T9e=.001,D7n=.01,P8t=10,N7n=.05,j7n=1;function R7n({duration:n=800,bounce:r=.25,velocity:c=0,mass:u=1}){let d,p;M7n(n<=P8t*1e3);let m=1-r;m=Ece(N7n,j7n,m),n=Ece(D7n,P8t,n/1e3),m<1?(d=k=>{const T=k*m,P=T*n,I=T-c,O=OAe(k,m),N=Math.exp(-P);return T9e-I/O*N},p=k=>{const P=k*m*n,I=P*c+c,O=Math.pow(m,2)*Math.pow(k,2)*n,N=Math.exp(-P),j=OAe(Math.pow(k,2),m);return(-d(k)+T9e>0?-1:1)*((I-O)*N)/j}):(d=k=>{const T=Math.exp(-k*n),P=(k-c)*n+1;return-T9e+T*P},p=k=>{const T=Math.exp(-k*n),P=(c-k)*(n*n);return T*P});const x=5/n,E=L7n(d,p,x);if(n=n*1e3,isNaN(E))return{stiffness:100,damping:10,duration:n};{const k=Math.pow(E,2)*u;return{stiffness:k,damping:m*2*Math.sqrt(u*k),duration:n}}}const $7n=12;function L7n(n,r,c){let u=c;for(let d=1;d<$7n;d++)u=u-n(u)/r(u);return u}function OAe(n,r){return n*Math.sqrt(1-r*r)}const F7n=["duration","bounce"],B7n=["stiffness","damping","mass"];function O8t(n,r){return r.some(c=>n[c]!==void 0)}function V7n(n){let r=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},n);if(!O8t(n,B7n)&&O8t(n,F7n)){const c=R7n(n);r=Object.assign(Object.assign(Object.assign({},r),c),{velocity:0,mass:1}),r.isResolvedFromDuration=!0}return r}function lMe(n){var{from:r=0,to:c=1,restSpeed:u=2,restDelta:d}=n,p=cDt(n,["from","to","restSpeed","restDelta"]);const m={done:!1,value:r};let{stiffness:x,damping:E,mass:k,velocity:T,duration:P,isResolvedFromDuration:I}=V7n(p),O=_8t,N=_8t;function j(){const $=T?-(T/1e3):0,L=c-r,B=E/(2*Math.sqrt(x*k)),F=Math.sqrt(x/k)/1e3;if(d===void 0&&(d=Math.min(Math.abs(c-r)/100,.4)),B<1){const X=OAe(F,B);O=te=>{const Z=Math.exp(-B*F*te);return c-Z*(($+B*F*L)/X*Math.sin(X*te)+L*Math.cos(X*te))},N=te=>{const Z=Math.exp(-B*F*te);return B*F*Z*(Math.sin(X*te)*($+B*F*L)/X+L*Math.cos(X*te))-Z*(Math.cos(X*te)*($+B*F*L)-X*L*Math.sin(X*te))}}else if(B===1)O=X=>c-Math.exp(-F*X)*(L+($+F*L)*X);else{const X=F*Math.sqrt(B*B-1);O=te=>{const Z=Math.exp(-B*F*te),H=Math.min(X*te,300);return c-Z*(($+B*F*L)*Math.sinh(H)+X*L*Math.cosh(H))/X}}}return j(),{next:$=>{const L=O($);if(I)m.done=$>=P;else{const B=N($)*1e3,F=Math.abs(B)<=u,X=Math.abs(c-L)<=d;m.done=F&&X}return m.value=m.done?c:L,m},flipTarget:()=>{T=-T,[r,c]=[c,r],j()}}}lMe.needsInterpolation=(n,r)=>typeof n=="string"||typeof r=="string";const _8t=n=>0,sq=(n,r,c)=>{const u=r-n;return u===0?1:(c-n)/u},rf=(n,r,c)=>-c*n+c*r+n;function A9e(n,r,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?n+(r-n)*6*c:c<1/2?r:c<2/3?n+(r-n)*(2/3-c)*6:n}function M8t({hue:n,saturation:r,lightness:c,alpha:u}){n/=360,r/=100,c/=100;let d=0,p=0,m=0;if(!r)d=p=m=c;else{const x=c<.5?c*(1+r):c+r-c*r,E=2*c-x;d=A9e(E,x,n+1/3),p=A9e(E,x,n),m=A9e(E,x,n-1/3)}return{red:Math.round(d*255),green:Math.round(p*255),blue:Math.round(m*255),alpha:u}}const z7n=(n,r,c)=>{const u=n*n,d=r*r;return Math.sqrt(Math.max(0,c*(d-u)+u))},U7n=[TAe,JE,o7],D8t=n=>U7n.find(r=>r.test(n)),uDt=(n,r)=>{let c=D8t(n),u=D8t(r),d=c.parse(n),p=u.parse(r);c===o7&&(d=M8t(d),c=JE),u===o7&&(p=M8t(p),u=JE);const m=Object.assign({},d);return x=>{for(const E in m)E!=="alpha"&&(m[E]=z7n(d[E],p[E],x));return m.alpha=rf(d.alpha,p.alpha,x),c.transform(m)}},_Ae=n=>typeof n=="number",H7n=(n,r)=>c=>r(n(c)),Ale=(...n)=>n.reduce(H7n);function lDt(n,r){return _Ae(n)?c=>rf(n,r,c):jp.test(n)?uDt(n,r):dDt(n,r)}const fDt=(n,r)=>{const c=[...n],u=c.length,d=n.map((p,m)=>lDt(p,r[m]));return p=>{for(let m=0;m{const c=Object.assign(Object.assign({},n),r),u={};for(const d in c)n[d]!==void 0&&r[d]!==void 0&&(u[d]=lDt(n[d],r[d]));return d=>{for(const p in u)c[p]=u[p](d);return c}};function N8t(n){const r=SS.parse(n),c=r.length;let u=0,d=0,p=0;for(let m=0;m{const c=SS.createTransformer(r),u=N8t(n),d=N8t(r);return u.numHSL===d.numHSL&&u.numRGB===d.numRGB&&u.numNumbers>=d.numNumbers?Ale(fDt(u.parsed,d.parsed),c):m=>`${m>0?r:n}`},W7n=(n,r)=>c=>rf(n,r,c);function G7n(n){if(typeof n=="number")return W7n;if(typeof n=="string")return jp.test(n)?uDt:dDt;if(Array.isArray(n))return fDt;if(typeof n=="object")return q7n}function X7n(n,r,c){const u=[],d=c||G7n(n[0]),p=n.length-1;for(let m=0;mc(sq(n,r,u))}function Y7n(n,r){const c=n.length,u=c-1;return d=>{let p=0,m=!1;if(d<=n[0]?m=!0:d>=n[u]&&(p=u-1,m=!0),!m){let E=1;for(;Ed||E===u);E++);p=E-1}const x=sq(n[p],n[p+1],d);return r[p](x)}}function hDt(n,r,{clamp:c=!0,ease:u,mixer:d}={}){const p=n.length;Sce(p===r.length),Sce(!u||!Array.isArray(u)||u.length===p-1),n[0]>n[p-1]&&(n=[].concat(n),r=[].concat(r),n.reverse(),r.reverse());const m=X7n(r,u,d),x=p===2?K7n(n,m):Y7n(n,m);return c?E=>x(Ece(n[0],n[p-1],E)):x}const Ple=n=>r=>1-n(1-r),fMe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,Q7n=n=>r=>Math.pow(r,n),pDt=n=>r=>r*r*((n+1)*r-n),Z7n=n=>{const r=pDt(n);return c=>(c*=2)<1?.5*r(c):.5*(2-Math.pow(2,-10*(c-1)))},gDt=1.525,J7n=4/11,eTn=8/11,tTn=9/10,dMe=n=>n,hMe=Q7n(2),nTn=Ple(hMe),bDt=fMe(hMe),mDt=n=>1-Math.sin(Math.acos(n)),pMe=Ple(mDt),rTn=fMe(pMe),gMe=pDt(gDt),iTn=Ple(gMe),oTn=fMe(gMe),sTn=Z7n(gDt),aTn=4356/361,cTn=35442/1805,uTn=16061/1805,kce=n=>{if(n===1||n===0)return n;const r=n*n;return nn<.5?.5*(1-kce(1-n*2)):.5*kce(n*2-1)+.5;function dTn(n,r){return n.map(()=>r||bDt).splice(0,n.length-1)}function hTn(n){const r=n.length;return n.map((c,u)=>u!==0?u/(r-1):0)}function pTn(n,r){return n.map(c=>c*r)}function Eae({from:n=0,to:r=1,ease:c,offset:u,duration:d=300}){const p={done:!1,value:n},m=Array.isArray(r)?r:[n,r],x=pTn(u&&u.length===m.length?u:hTn(m),d);function E(){return hDt(x,m,{ease:Array.isArray(c)?c:dTn(m,c)})}let k=E();return{next:T=>(p.value=k(T),p.done=T>=d,p),flipTarget:()=>{m.reverse(),k=E()}}}function gTn({velocity:n=0,from:r=0,power:c=.8,timeConstant:u=350,restDelta:d=.5,modifyTarget:p}){const m={done:!1,value:r};let x=c*n;const E=r+x,k=p===void 0?E:p(E);return k!==E&&(x=k-r),{next:T=>{const P=-x*Math.exp(-T/u);return m.done=!(P>d||P<-d),m.value=m.done?k:k+P,m},flipTarget:()=>{}}}const j8t={keyframes:Eae,spring:lMe,decay:gTn};function bTn(n){if(Array.isArray(n.to))return Eae;if(j8t[n.type])return j8t[n.type];const r=new Set(Object.keys(n));return r.has("ease")||r.has("duration")&&!r.has("dampingRatio")?Eae:r.has("dampingRatio")||r.has("stiffness")||r.has("mass")||r.has("damping")||r.has("restSpeed")||r.has("restDelta")?lMe:Eae}const vDt=1/60*1e3,mTn=typeof performance<"u"?()=>performance.now():()=>Date.now(),yDt=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(mTn()),vDt);function vTn(n){let r=[],c=[],u=0,d=!1,p=!1;const m=new WeakSet,x={schedule:(E,k=!1,T=!1)=>{const P=T&&d,I=P?r:c;return k&&m.add(E),I.indexOf(E)===-1&&(I.push(E),P&&d&&(u=r.length)),E},cancel:E=>{const k=c.indexOf(E);k!==-1&&c.splice(k,1),m.delete(E)},process:E=>{if(d){p=!0;return}if(d=!0,[r,c]=[c,r],c.length=0,u=r.length,u)for(let k=0;k(n[r]=vTn(()=>aq=!0),n),{}),wTn=rW.reduce((n,r)=>{const c=Ole[r];return n[r]=(u,d=!1,p=!1)=>(aq||ETn(),c.schedule(u,d,p)),n},{}),xTn=rW.reduce((n,r)=>(n[r]=Ole[r].cancel,n),{});rW.reduce((n,r)=>(n[r]=()=>Ole[r].process(ZM),n),{});const STn=n=>Ole[n].process(ZM),wDt=n=>{aq=!1,ZM.delta=MAe?vDt:Math.max(Math.min(n-ZM.timestamp,yTn),1),ZM.timestamp=n,DAe=!0,rW.forEach(STn),DAe=!1,aq&&(MAe=!1,yDt(wDt))},ETn=()=>{aq=!0,MAe=!0,DAe||yDt(wDt)},kTn=()=>ZM;function xDt(n,r,c=0){return n-r-c}function CTn(n,r,c=0,u=!0){return u?xDt(r+-n,r,c):r-(n-r)+c}function ITn(n,r,c,u){return u?n>=r+c:n<=-c}const TTn=n=>{const r=({delta:c})=>n(c);return{start:()=>wTn.update(r,!0),stop:()=>xTn.update(r)}};function SDt(n){var r,c,{from:u,autoplay:d=!0,driver:p=TTn,elapsed:m=0,repeat:x=0,repeatType:E="loop",repeatDelay:k=0,onPlay:T,onStop:P,onComplete:I,onRepeat:O,onUpdate:N}=n,j=cDt(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:$}=j,L,B=0,F=j.duration,X,te=!1,Z=!0,H;const ce=bTn(j);!((c=(r=ce).needsInterpolation)===null||c===void 0)&&c.call(r,u,$)&&(H=hDt([0,100],[u,$],{clamp:!1}),u=0,$=100);const pe=ce(Object.assign(Object.assign({},j),{from:u,to:$}));function fe(){B++,E==="reverse"?(Z=B%2===0,m=CTn(m,F,k,Z)):(m=xDt(m,F,k),E==="mirror"&&pe.flipTarget()),te=!1,O&&O()}function ve(){L.stop(),I&&I()}function Ge(Je){if(Z||(Je=-Je),m+=Je,!te){const et=pe.next(Math.max(0,m));X=et.value,H&&(X=H(X)),te=Z?et.done:m<=0}N==null||N(X),te&&(B===0&&(F!=null||(F=m)),B{P==null||P(),L.stop()}}}function EDt(n,r){return r?n*(1e3/r):0}function ATn({from:n=0,velocity:r=0,min:c,max:u,power:d=.8,timeConstant:p=750,bounceStiffness:m=500,bounceDamping:x=10,restDelta:E=1,modifyTarget:k,driver:T,onUpdate:P,onComplete:I,onStop:O}){let N;function j(F){return c!==void 0&&Fu}function $(F){return c===void 0?u:u===void 0||Math.abs(c-F){var te;P==null||P(X),(te=F.onUpdate)===null||te===void 0||te.call(F,X)},onComplete:I,onStop:O}))}function B(F){L(Object.assign({type:"spring",stiffness:m,damping:x,restDelta:E},F))}if(j(n))B({from:n,velocity:r,to:$(n)});else{let F=d*r+n;typeof k<"u"&&(F=k(F));const X=$(F),te=X===c?-1:1;let Z,H;const ce=pe=>{Z=H,H=pe,r=EDt(pe-Z,kTn().delta),(te===1&&pe>X||te===-1&&peN==null?void 0:N.stop()}}const NAe=n=>n.hasOwnProperty("x")&&n.hasOwnProperty("y"),R8t=n=>NAe(n)&&n.hasOwnProperty("z"),nse=(n,r)=>Math.abs(n-r);function kDt(n,r){if(_Ae(n)&&_Ae(r))return nse(n,r);if(NAe(n)&&NAe(r)){const c=nse(n.x,r.x),u=nse(n.y,r.y),d=R8t(n)&&R8t(r)?nse(n.z,r.z):0;return Math.sqrt(Math.pow(c,2)+Math.pow(u,2)+Math.pow(d,2))}}const CDt=(n,r)=>1-3*r+3*n,IDt=(n,r)=>3*r-6*n,TDt=n=>3*n,Cce=(n,r,c)=>((CDt(r,c)*n+IDt(r,c))*n+TDt(r))*n,ADt=(n,r,c)=>3*CDt(r,c)*n*n+2*IDt(r,c)*n+TDt(r),PTn=1e-7,OTn=10;function _Tn(n,r,c,u,d){let p,m,x=0;do m=r+(c-r)/2,p=Cce(m,u,d)-n,p>0?c=m:r=m;while(Math.abs(p)>PTn&&++x=DTn?NTn(m,P,n,c):I===0?P:_Tn(m,x,x+rse,n,c)}return m=>m===0||m===1?m:Cce(p(m),r,u)}function RTn({onTap:n,onTapStart:r,onTapCancel:c,whileTap:u,visualElement:d}){const p=n||r||c||u,m=U.exports.useRef(!1),x=U.exports.useRef(null),E={passive:!(r||n||c||O)};function k(){x.current&&x.current(),x.current=null}function T(){return k(),m.current=!1,d.animationState&&d.animationState.setActive(hu.Tap,!1),!sDt()}function P(N,j){!T()||(aDt(d.getInstance(),N.target)?n&&n(N,j):c&&c(N,j))}function I(N,j){!T()||c&&c(N,j)}function O(N,j){k(),!m.current&&(m.current=!0,x.current=Ale(QM(window,"pointerup",P,E),QM(window,"pointercancel",I,E)),d.animationState&&d.animationState.setActive(hu.Tap,!0),r&&r(N,j))}xce(d,"pointerdown",p?O:void 0,E),uMe(k)}const $Tn="production",PDt=typeof process>"u"||{}===void 0?$Tn:"production",$8t=new Set;function ODt(n,r,c){n||$8t.has(r)||(console.warn(r),c&&console.warn(c),$8t.add(r))}const jAe=new WeakMap,P9e=new WeakMap,LTn=n=>{const r=jAe.get(n.target);r&&r(n)},FTn=n=>{n.forEach(LTn)};function BTn({root:n,...r}){const c=n||document;P9e.has(c)||P9e.set(c,{});const u=P9e.get(c),d=JSON.stringify(r);return u[d]||(u[d]=new IntersectionObserver(FTn,{root:n,...r})),u[d]}function VTn(n,r,c){const u=BTn(r);return jAe.set(n,c),u.observe(n),()=>{jAe.delete(n),u.unobserve(n)}}function zTn({visualElement:n,whileInView:r,onViewportEnter:c,onViewportLeave:u,viewport:d={}}){const p=U.exports.useRef({hasEnteredView:!1,isInView:!1});let m=Boolean(r||c||u);d.once&&p.current.hasEnteredView&&(m=!1),(typeof IntersectionObserver>"u"?qTn:HTn)(m,p.current,n,d)}const UTn={some:0,all:1};function HTn(n,r,c,{root:u,margin:d,amount:p="some",once:m}){U.exports.useEffect(()=>{if(!n)return;const x={root:u==null?void 0:u.current,rootMargin:d,threshold:typeof p=="number"?p:UTn[p]},E=k=>{const{isIntersecting:T}=k;if(r.isInView===T||(r.isInView=T,m&&!T&&r.hasEnteredView))return;T&&(r.hasEnteredView=!0),c.animationState&&c.animationState.setActive(hu.InView,T);const P=c.getProps(),I=T?P.onViewportEnter:P.onViewportLeave;I&&I(k)};return VTn(c.getInstance(),x,E)},[n,u,d,p])}function qTn(n,r,c,{fallback:u=!0}){U.exports.useEffect(()=>{!n||!u||(PDt!=="production"&&ODt(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{r.hasEnteredView=!0;const{onViewportEnter:d}=c.getProps();d&&d(null),c.animationState&&c.animationState.setActive(hu.InView,!0)}))},[n])}const ek=n=>r=>(n(r),null),WTn={inView:ek(zTn),tap:ek(RTn),focus:ek(x7n),hover:ek(_7n)};function bMe(){const n=U.exports.useContext(eN);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:c,register:u}=n,d=U.exports.useId();return U.exports.useEffect(()=>u(d),[]),!r&&c?[!1,()=>c&&c(d)]:[!0]}function GTn(){return XTn(U.exports.useContext(eN))}function XTn(n){return n===null?!0:n.isPresent}function _Dt(n,r){if(!Array.isArray(r))return!1;const c=r.length;if(c!==n.length)return!1;for(let u=0;un*1e3,KTn={linear:dMe,easeIn:hMe,easeInOut:bDt,easeOut:nTn,circIn:mDt,circInOut:rTn,circOut:pMe,backIn:gMe,backInOut:oTn,backOut:iTn,anticipate:sTn,bounceIn:lTn,bounceInOut:fTn,bounceOut:kce},L8t=n=>{if(Array.isArray(n)){Sce(n.length===4);const[r,c,u,d]=n;return jTn(r,c,u,d)}else if(typeof n=="string")return KTn[n];return n},YTn=n=>Array.isArray(n)&&typeof n[0]!="number",F8t=(n,r)=>n==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&SS.test(r)&&!r.startsWith("url(")),$9=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ise=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),O9e=()=>({type:"keyframes",ease:"linear",duration:.3}),QTn=n=>({type:"keyframes",duration:.8,values:n}),B8t={x:$9,y:$9,z:$9,rotate:$9,rotateX:$9,rotateY:$9,rotateZ:$9,scaleX:ise,scaleY:ise,scale:ise,opacity:O9e,backgroundColor:O9e,color:O9e,default:ise},ZTn=(n,r)=>{let c;return oq(r)?c=QTn:c=B8t[n]||B8t.default,{to:r,...c(r)}},JTn={...zMt,color:jp,backgroundColor:jp,outlineColor:jp,fill:jp,stroke:jp,borderColor:jp,borderTopColor:jp,borderRightColor:jp,borderBottomColor:jp,borderLeftColor:jp,filter:AAe,WebkitFilter:AAe},mMe=n=>JTn[n];function vMe(n,r){var c;let u=mMe(n);return u!==AAe&&(u=SS),(c=u.getAnimatableNone)===null||c===void 0?void 0:c.call(u,r)}const eAn={current:!1};function tAn({when:n,delay:r,delayChildren:c,staggerChildren:u,staggerDirection:d,repeat:p,repeatType:m,repeatDelay:x,from:E,...k}){return!!Object.keys(k).length}function nAn({ease:n,times:r,yoyo:c,flip:u,loop:d,...p}){const m={...p};return r&&(m.offset=r),p.duration&&(m.duration=Ice(p.duration)),p.repeatDelay&&(m.repeatDelay=Ice(p.repeatDelay)),n&&(m.ease=YTn(n)?n.map(L8t):L8t(n)),p.type==="tween"&&(m.type="keyframes"),(c||d||u)&&(c?m.repeatType="reverse":d?m.repeatType="loop":u&&(m.repeatType="mirror"),m.repeat=d||c||u||p.repeat),p.type!=="spring"&&(m.type="keyframes"),m}function rAn(n,r){var c,u;return(u=(c=(yMe(n,r)||{}).delay)!==null&&c!==void 0?c:n.delay)!==null&&u!==void 0?u:0}function iAn(n){return Array.isArray(n.to)&&n.to[0]===null&&(n.to=[...n.to],n.to[0]=n.from),n}function oAn(n,r,c){return Array.isArray(r.to)&&n.duration===void 0&&(n.duration=.8),iAn(r),tAn(n)||(n={...n,...ZTn(c,r.to)}),{...r,...nAn(n)}}function sAn(n,r,c,u,d){const p=yMe(u,n)||{};let m=p.from!==void 0?p.from:r.get();const x=F8t(n,c);m==="none"&&x&&typeof c=="string"?m=vMe(n,c):V8t(m)&&typeof c=="string"?m=z8t(c):!Array.isArray(c)&&V8t(c)&&typeof m=="string"&&(c=z8t(m));const E=F8t(n,m);function k(){const P={from:m,to:c,velocity:r.getVelocity(),onComplete:d,onUpdate:I=>r.set(I)};return p.type==="inertia"||p.type==="decay"?ATn({...P,...p}):SDt({...oAn(p,P,n),onUpdate:I=>{P.onUpdate(I),p.onUpdate&&p.onUpdate(I)},onComplete:()=>{P.onComplete(),p.onComplete&&p.onComplete()}})}function T(){const P=ZMt(c);return r.set(P),d(),p.onUpdate&&p.onUpdate(P),p.onComplete&&p.onComplete(),{stop:()=>{}}}return!E||!x||p.type===!1?T:k}function V8t(n){return n===0||typeof n=="string"&&parseFloat(n)===0&&n.indexOf(" ")===-1}function z8t(n){return typeof n=="number"?0:vMe("",n)}function yMe(n,r){return n[r]||n.default||n}function wMe(n,r,c,u={}){return eAn.current&&(u={type:!1}),r.start(d=>{let p,m;const x=sAn(n,r,c,u,d),E=rAn(u,n),k=()=>m=x();return E?p=window.setTimeout(k,Ice(E)):k(),()=>{clearTimeout(p),m&&m.stop()}})}const aAn=n=>/^\-?\d*\.?\d+$/.test(n),cAn=n=>/^0[^.\s]+$/.test(n),MDt=1/60*1e3,uAn=typeof performance<"u"?()=>performance.now():()=>Date.now(),DDt=typeof window<"u"?n=>window.requestAnimationFrame(n):n=>setTimeout(()=>n(uAn()),MDt);function lAn(n){let r=[],c=[],u=0,d=!1,p=!1;const m=new WeakSet,x={schedule:(E,k=!1,T=!1)=>{const P=T&&d,I=P?r:c;return k&&m.add(E),I.indexOf(E)===-1&&(I.push(E),P&&d&&(u=r.length)),E},cancel:E=>{const k=c.indexOf(E);k!==-1&&c.splice(k,1),m.delete(E)},process:E=>{if(d){p=!0;return}if(d=!0,[r,c]=[c,r],c.length=0,u=r.length,u)for(let k=0;k(n[r]=lAn(()=>cq=!0),n),{}),Wx=iW.reduce((n,r)=>{const c=_le[r];return n[r]=(u,d=!1,p=!1)=>(cq||hAn(),c.schedule(u,d,p)),n},{}),uq=iW.reduce((n,r)=>(n[r]=_le[r].cancel,n),{}),_9e=iW.reduce((n,r)=>(n[r]=()=>_le[r].process(JM),n),{}),dAn=n=>_le[n].process(JM),NDt=n=>{cq=!1,JM.delta=RAe?MDt:Math.max(Math.min(n-JM.timestamp,fAn),1),JM.timestamp=n,$Ae=!0,iW.forEach(dAn),$Ae=!1,cq&&(RAe=!1,DDt(NDt))},hAn=()=>{cq=!0,RAe=!0,$Ae||DDt(NDt)},LAe=()=>JM;function xMe(n,r){n.indexOf(r)===-1&&n.push(r)}function SMe(n,r){const c=n.indexOf(r);c>-1&&n.splice(c,1)}class cH{constructor(){this.subscriptions=[]}add(r){return xMe(this.subscriptions,r),()=>SMe(this.subscriptions,r)}notify(r,c,u){const d=this.subscriptions.length;if(!!d)if(d===1)this.subscriptions[0](r,c,u);else for(let p=0;p!isNaN(parseFloat(n));class gAn{constructor(r){this.version="7.2.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new cH,this.velocityUpdateSubscribers=new cH,this.renderSubscribers=new cH,this.canTrackVelocity=!1,this.updateAndNotify=(c,u=!0)=>{this.prev=this.current,this.current=c;const{delta:d,timestamp:p}=LAe();this.lastUpdated!==p&&(this.timeDelta=d,this.lastUpdated=p,Wx.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),u&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Wx.postRender(this.velocityCheck),this.velocityCheck=({timestamp:c})=>{c!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=r,this.canTrackVelocity=pAn(this.current)}onChange(r){return this.updateSubscribers.add(r)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(r){return r(this.get()),this.renderSubscribers.add(r)}attach(r){this.passiveEffect=r}set(r,c=!0){!c||!this.passiveEffect?this.updateAndNotify(r,c):this.passiveEffect(r,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?EDt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(r){return this.stop(),new Promise(c=>{this.hasAnimated=!0,this.stopAnimation=r(c)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function yD(n){return new gAn(n)}const jDt=n=>r=>r.test(n),bAn={test:n=>n==="auto",parse:n=>n},RDt=[J7,ho,qx,jE,H9n,U9n,bAn],oU=n=>RDt.find(jDt(n)),mAn=[...RDt,jp,SS],vAn=n=>mAn.find(jDt(n));function yAn(n){const r={};return n.forEachValue((c,u)=>r[u]=c.get()),r}function wAn(n){const r={};return n.forEachValue((c,u)=>r[u]=c.getVelocity()),r}function Mle(n,r,c){const u=n.getProps();return QMt(u,r,c!==void 0?c:u.custom,yAn(n),wAn(n))}function xAn(n,r,c){n.hasValue(r)?n.getValue(r).set(c):n.addValue(r,yD(c))}function SAn(n,r){const c=Mle(n,r);let{transitionEnd:u={},transition:d={},...p}=c?n.makeTargetAnimatable(c,!1):{};p={...p,...u};for(const m in p){const x=ZMt(p[m]);xAn(n,m,x)}}function EAn(n,r,c){var u,d;const p=Object.keys(r).filter(x=>!n.hasValue(x)),m=p.length;if(!!m)for(let x=0;xFAe(n,p,c));u=Promise.all(d)}else if(typeof r=="string")u=FAe(n,r,c);else{const d=typeof r=="function"?Mle(n,r,c.custom):r;u=$Dt(n,d,c)}return u.then(()=>n.notifyAnimationComplete(r))}function FAe(n,r,c={}){var u;const d=Mle(n,r,c.custom);let{transition:p=n.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(p=c.transitionOverride);const m=d?()=>$Dt(n,d,c):()=>Promise.resolve(),x=!((u=n.variantChildren)===null||u===void 0)&&u.size?(k=0)=>{const{delayChildren:T=0,staggerChildren:P,staggerDirection:I}=p;return TAn(n,r,T+k,P,I,c)}:()=>Promise.resolve(),{when:E}=p;if(E){const[k,T]=E==="beforeChildren"?[m,x]:[x,m];return k().then(T)}else return Promise.all([m(),x(c.delay)])}function $Dt(n,r,{delay:c=0,transitionOverride:u,type:d}={}){var p;let{transition:m=n.getDefaultTransition(),transitionEnd:x,...E}=n.makeTargetAnimatable(r);const k=n.getValue("willChange");u&&(m=u);const T=[],P=d&&((p=n.animationState)===null||p===void 0?void 0:p.getState()[d]);for(const I in E){const O=n.getValue(I),N=E[I];if(!O||N===void 0||P&&PAn(P,I))continue;let j={delay:c,...m};n.shouldReduceMotion&&eW.has(I)&&(j={...j,type:!1,delay:0});let $=wMe(I,O,N,j);Tce(k)&&(k.add(I),$=$.then(()=>k.remove(I))),T.push($)}return Promise.all(T).then(()=>{x&&SAn(n,x)})}function TAn(n,r,c=0,u=0,d=1,p){const m=[],x=(n.variantChildren.size-1)*u,E=d===1?(k=0)=>k*u:(k=0)=>x-k*u;return Array.from(n.variantChildren).sort(AAn).forEach((k,T)=>{m.push(FAe(k,r,{...p,delay:c+E(T)}).then(()=>k.notifyAnimationComplete(r)))}),Promise.all(m)}function AAn(n,r){return n.sortNodePosition(r)}function PAn({protectedKeys:n,needsAnimating:r},c){const u=n.hasOwnProperty(c)&&r[c]!==!0;return r[c]=!1,u}const EMe=[hu.Animate,hu.InView,hu.Focus,hu.Hover,hu.Tap,hu.Drag,hu.Exit],OAn=[...EMe].reverse(),_An=EMe.length;function MAn(n){return r=>Promise.all(r.map(({animation:c,options:u})=>IAn(n,c,u)))}function DAn(n){let r=MAn(n);const c=jAn();let u=!0;const d=(E,k)=>{const T=Mle(n,k);if(T){const{transition:P,transitionEnd:I,...O}=T;E={...E,...O,...I}}return E};function p(E){r=E(n)}function m(E,k){var T;const P=n.getProps(),I=n.getVariantContext(!0)||{},O=[],N=new Set;let j={},$=1/0;for(let B=0;B<_An;B++){const F=OAn[B],X=c[F],te=(T=P[F])!==null&&T!==void 0?T:I[F],Z=nq(te),H=F===k?X.isActive:null;H===!1&&($=B);let ce=te===I[F]&&te!==P[F]&&Z;if(ce&&u&&n.manuallyAnimateOnMount&&(ce=!1),X.protectedKeys={...j},!X.isActive&&H===null||!te&&!X.prevProp||kle(te)||typeof te=="boolean")continue;const pe=NAn(X.prevProp,te);let fe=pe||F===k&&X.isActive&&!ce&&Z||B>$&&Z;const ve=Array.isArray(te)?te:[te];let Ge=ve.reduce(d,{});H===!1&&(Ge={});const{prevResolvedValues:qe={}}=X,Je={...qe,...Ge},et=jt=>{fe=!0,N.delete(jt),X.needsAnimating[jt]=!0};for(const jt in Je){const Me=Ge[jt],Ve=qe[jt];j.hasOwnProperty(jt)||(Me!==Ve?oq(Me)&&oq(Ve)?!_Dt(Me,Ve)||pe?et(jt):X.protectedKeys[jt]=!0:Me!==void 0?et(jt):N.add(jt):Me!==void 0&&N.has(jt)?et(jt):X.protectedKeys[jt]=!0)}X.prevProp=te,X.prevResolvedValues=Ge,X.isActive&&(j={...j,...Ge}),u&&n.blockInitialAnimation&&(fe=!1),fe&&!ce&&O.push(...ve.map(jt=>({animation:jt,options:{type:F,...E}})))}if(N.size){const B={};N.forEach(F=>{const X=n.getBaseTarget(F);X!==void 0&&(B[F]=X)}),O.push({animation:B})}let L=Boolean(O.length);return u&&P.initial===!1&&!n.manuallyAnimateOnMount&&(L=!1),u=!1,L?r(O):Promise.resolve()}function x(E,k,T){var P;if(c[E].isActive===k)return Promise.resolve();(P=n.variantChildren)===null||P===void 0||P.forEach(O=>{var N;return(N=O.animationState)===null||N===void 0?void 0:N.setActive(E,k)}),c[E].isActive=k;const I=m(T,E);for(const O in c)c[O].protectedKeys={};return I}return{animateChanges:m,setActive:x,setAnimateFunction:p,getState:()=>c}}function NAn(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!_Dt(r,n):!1}function L9(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jAn(){return{[hu.Animate]:L9(!0),[hu.InView]:L9(),[hu.Hover]:L9(),[hu.Tap]:L9(),[hu.Drag]:L9(),[hu.Focus]:L9(),[hu.Exit]:L9()}}const RAn={animation:ek(({visualElement:n,animate:r})=>{n.animationState||(n.animationState=DAn(n)),kle(r)&&U.exports.useEffect(()=>r.subscribe(n),[r])}),exit:ek(n=>{const{custom:r,visualElement:c}=n,[u,d]=bMe(),p=U.exports.useContext(eN);U.exports.useEffect(()=>{c.isPresent=u;const m=c.animationState&&c.animationState.setActive(hu.Exit,!u,{custom:p&&p.custom||r});m&&!u&&m.then(d)},[u])})};class LDt{constructor(r,c,{transformPagePoint:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=D9e(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,P=kDt(k.offset,{x:0,y:0})>=3;if(!T&&!P)return;const{point:I}=k,{timestamp:O}=LAe();this.history.push({...I,timestamp:O});const{onStart:N,onMove:j}=this.handlers;T||(N&&N(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,k)},this.handlePointerMove=(k,T)=>{if(this.lastMoveEvent=k,this.lastMoveEventInfo=M9e(T,this.transformPagePoint),eDt(k)&&k.buttons===0){this.handlePointerUp(k,T);return}Wx.update(this.updatePoint,!0)},this.handlePointerUp=(k,T)=>{this.end();const{onEnd:P,onSessionEnd:I}=this.handlers,O=D9e(M9e(T,this.transformPagePoint),this.history);this.startEvent&&P&&P(k,O),I&&I(k,O)},tDt(r)&&r.touches.length>1)return;this.handlers=c,this.transformPagePoint=u;const d=cMe(r),p=M9e(d,this.transformPagePoint),{point:m}=p,{timestamp:x}=LAe();this.history=[{...m,timestamp:x}];const{onSessionStart:E}=c;E&&E(r,D9e(p,this.history)),this.removeListeners=Ale(QM(window,"pointermove",this.handlePointerMove),QM(window,"pointerup",this.handlePointerUp),QM(window,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),uq.update(this.updatePoint)}}function M9e(n,r){return r?{point:r(n.point)}:n}function U8t(n,r){return{x:n.x-r.x,y:n.y-r.y}}function D9e({point:n},r){return{point:n,delta:U8t(n,FDt(r)),offset:U8t(n,$An(r)),velocity:LAn(r,.1)}}function $An(n){return n[0]}function FDt(n){return n[n.length-1]}function LAn(n,r){if(n.length<2)return{x:0,y:0};let c=n.length-1,u=null;const d=FDt(n);for(;c>=0&&(u=n[c],!(d.timestamp-u.timestamp>Ice(r)));)c--;if(!u)return{x:0,y:0};const p=(d.timestamp-u.timestamp)/1e3;if(p===0)return{x:0,y:0};const m={x:(d.x-u.x)/p,y:(d.y-u.y)/p};return m.x===1/0&&(m.x=0),m.y===1/0&&(m.y=0),m}function ES(n){return n.max-n.min}function H8t(n,r=0,c=.01){return kDt(n,r)c&&(n=u?rf(c,n,u.max):Math.min(n,c)),n}function X8t(n,r,c){return{min:r!==void 0?n.min+r:void 0,max:c!==void 0?n.max+c-(n.max-n.min):void 0}}function VAn(n,{top:r,left:c,bottom:u,right:d}){return{x:X8t(n.x,c,d),y:X8t(n.y,r,u)}}function K8t(n,r){let c=r.min-n.min,u=r.max-n.max;return r.max-r.minu?c=sq(r.min,r.max-u,n.min):u>d&&(c=sq(n.min,n.max-d,r.min)),Ece(0,1,c)}function HAn(n,r){const c={};return r.min!==void 0&&(c.min=r.min-n.min),r.max!==void 0&&(c.max=r.max-n.min),c}const BAe=.35;function qAn(n=BAe){return n===!1?n=0:n===!0&&(n=BAe),{x:Y8t(n,"left","right"),y:Y8t(n,"top","bottom")}}function Y8t(n,r,c){return{min:Q8t(n,r),max:Q8t(n,c)}}function Q8t(n,r){var c;return typeof n=="number"?n:(c=n[r])!==null&&c!==void 0?c:0}const Z8t=()=>({translate:0,scale:1,origin:0,originPoint:0}),fH=()=>({x:Z8t(),y:Z8t()}),J8t=()=>({min:0,max:0}),$1=()=>({x:J8t(),y:J8t()});function Cx(n){return[n("x"),n("y")]}function BDt({top:n,left:r,right:c,bottom:u}){return{x:{min:r,max:c},y:{min:n,max:u}}}function WAn({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function GAn(n,r){if(!r)return n;const c=r({x:n.left,y:n.top}),u=r({x:n.right,y:n.bottom});return{top:c.y,left:c.x,bottom:u.y,right:u.x}}function N9e(n){return n===void 0||n===1}function VDt({scale:n,scaleX:r,scaleY:c}){return!N9e(n)||!N9e(r)||!N9e(c)}function RE(n){return VDt(n)||eIt(n.x)||eIt(n.y)||n.z||n.rotate||n.rotateX||n.rotateY}function eIt(n){return n&&n!=="0%"}function Ace(n,r,c){const u=n-c,d=r*u;return c+d}function tIt(n,r,c,u,d){return d!==void 0&&(n=Ace(n,d,u)),Ace(n,c,u)+r}function VAe(n,r=0,c=1,u,d){n.min=tIt(n.min,r,c,u,d),n.max=tIt(n.max,r,c,u,d)}function zDt(n,{x:r,y:c}){VAe(n.x,r.translate,r.scale,r.originPoint),VAe(n.y,c.translate,c.scale,c.originPoint)}function XAn(n,r,c,u=!1){var d,p;const m=c.length;if(!m)return;r.x=r.y=1;let x,E;for(let k=0;k{this.stopAnimation(),c&&this.snapToCursor(cMe(x,"page").point)},d=(x,E)=>{var k;const{drag:T,dragPropagation:P,onDragStart:I}=this.getProps();T&&!P&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oDt(T),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cx(O=>{var N,j;let $=this.getAxisMotionValue(O).get()||0;if(qx.test($)){const L=(j=(N=this.visualElement.projection)===null||N===void 0?void 0:N.layout)===null||j===void 0?void 0:j.actual[O];L&&($=ES(L)*(parseFloat($)/100))}this.originPoint[O]=$}),I==null||I(x,E),(k=this.visualElement.animationState)===null||k===void 0||k.setActive(hu.Drag,!0))},p=(x,E)=>{const{dragPropagation:k,dragDirectionLock:T,onDirectionLock:P,onDrag:I}=this.getProps();if(!k&&!this.openGlobalLock)return;const{offset:O}=E;if(T&&this.currentDirection===null){this.currentDirection=ePn(O),this.currentDirection!==null&&(P==null||P(this.currentDirection));return}this.updateAxis("x",E.point,O),this.updateAxis("y",E.point,O),this.visualElement.syncRender(),I==null||I(x,E)},m=(x,E)=>this.stop(x,E);this.panSession=new LDt(r,{onSessionStart:u,onStart:d,onMove:p,onSessionEnd:m},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(r,c){const u=this.isDragging;if(this.cancel(),!u)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p==null||p(r,c)}cancel(){var r,c;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(r=this.panSession)===null||r===void 0||r.end(),this.panSession=void 0;const{dragPropagation:u}=this.getProps();!u&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(c=this.visualElement.animationState)===null||c===void 0||c.setActive(hu.Drag,!1)}updateAxis(r,c,u){const{drag:d}=this.getProps();if(!u||!ose(r,d,this.currentDirection))return;const p=this.getAxisMotionValue(r);let m=this.originPoint[r]+u[r];this.constraints&&this.constraints[r]&&(m=BAn(m,this.constraints[r],this.elastic[r])),p.set(m)}resolveConstraints(){const{dragConstraints:r,dragElastic:c}=this.getProps(),{layout:u}=this.visualElement.projection||{},d=this.constraints;r&&_M(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&u?this.constraints=VAn(u.actual,r):this.constraints=!1,this.elastic=qAn(c),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&Cx(p=>{this.getAxisMotionValue(p)&&(this.constraints[p]=HAn(u.actual[p],this.constraints[p]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:c}=this.getProps();if(!r||!_M(r))return!1;const u=r.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const p=QAn(u,d.root,this.visualElement.getTransformPagePoint());let m=zAn(d.layout.actual,p);if(c){const x=c(WAn(m));this.hasMutatedConstraints=!!x,x&&(m=BDt(x))}return m}startAnimation(r){const{drag:c,dragMomentum:u,dragElastic:d,dragTransition:p,dragSnapToOrigin:m,onDragTransitionEnd:x}=this.getProps(),E=this.constraints||{},k=Cx(T=>{var P;if(!ose(T,c,this.currentDirection))return;let I=(P=E==null?void 0:E[T])!==null&&P!==void 0?P:{};m&&(I={min:0,max:0});const O=d?200:1e6,N=d?40:1e7,j={type:"inertia",velocity:u?r[T]:0,bounceStiffness:O,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...p,...I};return this.startAxisValueAnimation(T,j)});return Promise.all(k).then(x)}startAxisValueAnimation(r,c){const u=this.getAxisMotionValue(r);return wMe(r,u,0,c)}stopAnimation(){Cx(r=>this.getAxisMotionValue(r).stop())}getAxisMotionValue(r){var c,u;const d="_drag"+r.toUpperCase(),p=this.visualElement.getProps()[d];return p||this.visualElement.getValue(r,(u=(c=this.visualElement.getProps().initial)===null||c===void 0?void 0:c[r])!==null&&u!==void 0?u:0)}snapToCursor(r){Cx(c=>{const{drag:u}=this.getProps();if(!ose(c,u,this.currentDirection))return;const{projection:d}=this.visualElement,p=this.getAxisMotionValue(c);if(d&&d.layout){const{min:m,max:x}=d.layout.actual[c];p.set(r[c]-rf(m,x,.5))}})}scalePositionWithinConstraints(){var r;const{drag:c,dragConstraints:u}=this.getProps(),{projection:d}=this.visualElement;if(!_M(u)||!d||!this.constraints)return;this.stopAnimation();const p={x:0,y:0};Cx(x=>{const E=this.getAxisMotionValue(x);if(E){const k=E.get();p[x]=UAn({min:k,max:k},this.constraints[x])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=m?m({},""):"none",(r=d.root)===null||r===void 0||r.updateScroll(),d.updateLayout(),this.resolveConstraints(),Cx(x=>{if(!ose(x,c,null))return;const E=this.getAxisMotionValue(x),{min:k,max:T}=this.constraints[x];E.set(rf(k,T,p[x]))})}addListeners(){var r;ZAn.set(this.visualElement,this);const c=this.visualElement.getInstance(),u=QM(c,"pointerdown",k=>{const{drag:T,dragListener:P=!0}=this.getProps();T&&P&&this.start(k)}),d=()=>{const{dragConstraints:k}=this.getProps();_M(k)&&(this.constraints=this.resolveRefConstraints())},{projection:p}=this.visualElement,m=p.addEventListener("measure",d);p&&!p.layout&&((r=p.root)===null||r===void 0||r.updateScroll(),p.updateLayout()),d();const x=Tle(window,"resize",()=>this.scalePositionWithinConstraints()),E=p.addEventListener("didUpdate",({delta:k,hasLayoutChanged:T})=>{this.isDragging&&T&&(Cx(P=>{const I=this.getAxisMotionValue(P);!I||(this.originPoint[P]+=k[P].translate,I.set(I.get()+k[P].translate))}),this.visualElement.syncRender())});return()=>{x(),u(),m(),E==null||E()}}getProps(){const r=this.visualElement.getProps(),{drag:c=!1,dragDirectionLock:u=!1,dragPropagation:d=!1,dragConstraints:p=!1,dragElastic:m=BAe,dragMomentum:x=!0}=r;return{...r,drag:c,dragDirectionLock:u,dragPropagation:d,dragConstraints:p,dragElastic:m,dragMomentum:x}}}function ose(n,r,c){return(r===!0||r===n)&&(c===null||c===n)}function ePn(n,r=10){let c=null;return Math.abs(n.y)>r?c="y":Math.abs(n.x)>r&&(c="x"),c}function tPn(n){const{dragControls:r,visualElement:c}=n,u=Ile(()=>new JAn(c));U.exports.useEffect(()=>r&&r.subscribe(u),[u,r]),U.exports.useEffect(()=>u.addListeners(),[u])}function nPn({onPan:n,onPanStart:r,onPanEnd:c,onPanSessionStart:u,visualElement:d}){const p=n||r||c||u,m=U.exports.useRef(null),{transformPagePoint:x}=U.exports.useContext(eMe),E={onSessionStart:u,onStart:r,onMove:n,onEnd:(T,P)=>{m.current=null,c&&c(T,P)}};U.exports.useEffect(()=>{m.current!==null&&m.current.updateHandlers(E)});function k(T){m.current=new LDt(T,E,{transformPagePoint:x})}xce(d,"pointerdown",p&&k),uMe(()=>m.current&&m.current.end())}const rPn={pan:ek(nPn),drag:ek(tPn)},zAe={current:null},HDt={current:!1};function iPn(){if(HDt.current=!0,!!Z7)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>zAe.current=n.matches;n.addListener(r),r()}else zAe.current=!1}const sse=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function oPn(){const n=sse.map(()=>new cH),r={},c={clearAllListeners:()=>n.forEach(u=>u.clear()),updatePropListeners:u=>{sse.forEach(d=>{var p;const m="on"+d,x=u[m];(p=r[d])===null||p===void 0||p.call(r),x&&(r[d]=c[m](x))})}};return n.forEach((u,d)=>{c["on"+sse[d]]=p=>u.add(p),c["notify"+sse[d]]=(...p)=>u.notify(...p)}),c}function sPn(n,r,c){const{willChange:u}=r;for(const d in r){const p=r[d],m=c[d];if(Yx(p))n.addValue(d,p),Tce(u)&&u.add(d);else if(Yx(m))n.addValue(d,yD(p)),Tce(u)&&u.remove(d);else if(m!==p)if(n.hasValue(d)){const x=n.getValue(d);!x.hasAnimated&&x.set(p)}else{const x=n.getStaticValue(d);n.addValue(d,yD(x!==void 0?x:p))}}for(const d in c)r[d]===void 0&&n.removeValue(d);return r}const qDt=Object.keys(rq),aPn=qDt.length,WDt=({treeType:n="",build:r,getBaseTarget:c,makeTargetAnimatable:u,measureViewportBox:d,render:p,readValueFromInstance:m,removeValueFromRenderState:x,sortNodePosition:E,scrapeMotionValuesFromProps:k})=>({parent:T,props:P,presenceId:I,blockInitialAnimation:O,visualState:N,reducedMotionConfig:j},$={})=>{let L=!1;const{latestValues:B,renderState:F}=N;let X;const te=oPn(),Z=new Map,H=new Map;let ce={};const pe={...B};let fe;function ve(){!X||!L||(Ge(),p(X,F,P.style,ye.projection))}function Ge(){r(ye,F,B,$,P)}function qe(){te.notifyUpdate(B)}function Je(De,be){const xe=be.onChange(an=>{B[De]=an,P.onUpdate&&Wx.update(qe,!1,!0)}),Jt=be.onRenderRequest(ye.scheduleRender);H.set(De,()=>{xe(),Jt()})}const{willChange:et,...jt}=k(P);for(const De in jt){const be=jt[De];B[De]!==void 0&&Yx(be)&&(be.set(B[De],!1),Tce(et)&&et.add(De))}const Me=Cle(P),Ve=_Mt(P),ye={treeType:n,current:null,depth:T?T.depth+1:0,parent:T,children:new Set,presenceId:I,shouldReduceMotion:null,variantChildren:Ve?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(T==null?void 0:T.isMounted()),blockInitialAnimation:O,isMounted:()=>Boolean(X),mount(De){L=!0,X=ye.current=De,ye.projection&&ye.projection.mount(De),Ve&&T&&!Me&&(fe=T==null?void 0:T.addVariantChild(ye)),Z.forEach((be,xe)=>Je(xe,be)),HDt.current||iPn(),ye.shouldReduceMotion=j==="never"?!1:j==="always"?!0:zAe.current,T==null||T.children.add(ye),ye.setProps(P)},unmount(){var De;(De=ye.projection)===null||De===void 0||De.unmount(),uq.update(qe),uq.render(ve),H.forEach(be=>be()),fe==null||fe(),T==null||T.children.delete(ye),te.clearAllListeners(),X=void 0,L=!1},loadFeatures(De,be,xe,Jt,an,An){const Wn=[];for(let ir=0;irye.scheduleRender(),animationType:typeof Jn=="string"?Jn:"both",initialPromotionConfig:An,layoutScroll:ut})}return Wn},addVariantChild(De){var be;const xe=ye.getClosestVariantNode();if(xe)return(be=xe.variantChildren)===null||be===void 0||be.add(De),()=>xe.variantChildren.delete(De)},sortNodePosition(De){return!E||n!==De.treeType?0:E(ye.getInstance(),De.getInstance())},getClosestVariantNode:()=>Ve?ye:T==null?void 0:T.getClosestVariantNode(),getLayoutId:()=>P.layoutId,getInstance:()=>X,getStaticValue:De=>B[De],setStaticValue:(De,be)=>B[De]=be,getLatestValues:()=>B,setVisibility(De){ye.isVisible!==De&&(ye.isVisible=De,ye.scheduleRender())},makeTargetAnimatable(De,be=!0){return u(ye,De,P,be)},measureViewportBox(){return d(X,P)},addValue(De,be){ye.hasValue(De)&&ye.removeValue(De),Z.set(De,be),B[De]=be.get(),Je(De,be)},removeValue(De){var be;Z.delete(De),(be=H.get(De))===null||be===void 0||be(),H.delete(De),delete B[De],x(De,F)},hasValue:De=>Z.has(De),getValue(De,be){let xe=Z.get(De);return xe===void 0&&be!==void 0&&(xe=yD(be),ye.addValue(De,xe)),xe},forEachValue:De=>Z.forEach(De),readValue:De=>B[De]!==void 0?B[De]:m(X,De,$),setBaseTarget(De,be){pe[De]=be},getBaseTarget(De){if(c){const be=c(P,De);if(be!==void 0&&!Yx(be))return be}return pe[De]},...te,build(){return Ge(),F},scheduleRender(){Wx.render(ve,!1,!0)},syncRender:ve,setProps(De){(De.transformTemplate||P.transformTemplate)&&ye.scheduleRender(),P=De,te.updatePropListeners(De),ce=sPn(ye,k(P),ce)},getProps:()=>P,getVariant:De=>{var be;return(be=P.variants)===null||be===void 0?void 0:be[De]},getDefaultTransition:()=>P.transition,getTransformPagePoint:()=>P.transformPagePoint,getVariantContext(De=!1){if(De)return T==null?void 0:T.getVariantContext();if(!Me){const xe=(T==null?void 0:T.getVariantContext())||{};return P.initial!==void 0&&(xe.initial=P.initial),xe}const be={};for(let xe=0;xe{const p=d.get();if(!UAe(p))return;const m=HAe(p,u);m&&d.set(m)});for(const d in r){const p=r[d];if(!UAe(p))continue;const m=HAe(p,u);!m||(r[d]=m,c&&c[d]===void 0&&(c[d]=p))}return{target:r,transitionEnd:c}}const fPn=new Set(["width","height","top","left","right","bottom","x","y"]),KDt=n=>fPn.has(n),dPn=n=>Object.keys(n).some(KDt),YDt=(n,r)=>{n.set(r,!1),n.set(r)},rIt=n=>n===J7||n===ho;var iIt;(function(n){n.width="width",n.height="height",n.left="left",n.right="right",n.top="top",n.bottom="bottom"})(iIt||(iIt={}));const oIt=(n,r)=>parseFloat(n.split(", ")[r]),sIt=(n,r)=>(c,{transform:u})=>{if(u==="none"||!u)return 0;const d=u.match(/^matrix3d\((.+)\)$/);if(d)return oIt(d[1],r);{const p=u.match(/^matrix\((.+)\)$/);return p?oIt(p[1],n):0}},hPn=new Set(["x","y","z"]),pPn=wce.filter(n=>!hPn.has(n));function gPn(n){const r=[];return pPn.forEach(c=>{const u=n.getValue(c);u!==void 0&&(r.push([c,u.get()]),u.set(c.startsWith("scale")?1:0))}),r.length&&n.syncRender(),r}const aIt={width:({x:n},{paddingLeft:r="0",paddingRight:c="0"})=>n.max-n.min-parseFloat(r)-parseFloat(c),height:({y:n},{paddingTop:r="0",paddingBottom:c="0"})=>n.max-n.min-parseFloat(r)-parseFloat(c),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:sIt(4,13),y:sIt(5,14)},bPn=(n,r,c)=>{const u=r.measureViewportBox(),d=r.getInstance(),p=getComputedStyle(d),{display:m}=p,x={};m==="none"&&r.setStaticValue("display",n.display||"block"),c.forEach(k=>{x[k]=aIt[k](u,p)}),r.syncRender();const E=r.measureViewportBox();return c.forEach(k=>{const T=r.getValue(k);YDt(T,x[k]),n[k]=aIt[k](E,p)}),n},mPn=(n,r,c={},u={})=>{r={...r},u={...u};const d=Object.keys(r).filter(KDt);let p=[],m=!1;const x=[];if(d.forEach(E=>{const k=n.getValue(E);if(!n.hasValue(E))return;let T=c[E],P=oU(T);const I=r[E];let O;if(oq(I)){const N=I.length,j=I[0]===null?1:0;T=I[j],P=oU(T);for(let $=j;$=0?window.pageYOffset:null,k=bPn(r,n,x);return p.length&&p.forEach(([T,P])=>{n.getValue(T).set(P)}),n.syncRender(),Z7&&E!==null&&window.scrollTo({top:E}),{target:k,transitionEnd:u}}else return{target:r,transitionEnd:u}};function vPn(n,r,c,u){return dPn(r)?mPn(n,r,c,u):{target:r,transitionEnd:u}}const yPn=(n,r,c,u)=>{const d=lPn(n,r,u);return r=d.target,u=d.transitionEnd,vPn(n,r,c,u)};function wPn(n){return window.getComputedStyle(n)}const QDt={treeType:"dom",readValueFromInstance(n,r){if(eW.has(r)){const c=mMe(r);return c&&c.default||0}else{const c=wPn(n),u=(NMt(r)?c.getPropertyValue(r):c[r])||0;return typeof u=="string"?u.trim():u}},sortNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1},getBaseTarget(n,r){var c;return(c=n.style)===null||c===void 0?void 0:c[r]},measureViewportBox(n,{transformPagePoint:r}){return UDt(n,r)},resetTransform(n,r,c){const{transformTemplate:u}=c;r.style.transform=u?u({},""):"none",n.scheduleRender()},restoreTransform(n,r){n.style.transform=r.style.transform},removeValueFromRenderState(n,{vars:r,style:c}){delete r[n],delete c[n]},makeTargetAnimatable(n,{transition:r,transitionEnd:c,...u},{transformValues:d},p=!0){let m=CAn(u,r||{},n);if(d&&(c&&(c=d(c)),u&&(u=d(u)),m&&(m=d(m))),p){EAn(n,u,m);const x=yPn(n,u,m,c);c=x.transitionEnd,u=x.target}return{transition:r,transitionEnd:c,...u}},scrapeMotionValuesFromProps:aMe,build(n,r,c,u,d){n.isVisible!==void 0&&(r.style.visibility=n.isVisible?"visible":"hidden"),iMe(r,c,u,d.transformTemplate)},render:GMt},xPn=WDt(QDt),SPn=WDt({...QDt,getBaseTarget(n,r){return n[r]},readValueFromInstance(n,r){var c;return eW.has(r)?((c=mMe(r))===null||c===void 0?void 0:c.default)||0:(r=XMt.has(r)?r:WMt(r),n.getAttribute(r))},scrapeMotionValuesFromProps:YMt,build(n,r,c,u,d){sMe(r,c,u,d.transformTemplate)},render:KMt}),EPn=(n,r)=>nMe(n)?SPn(r,{enableHardwareAcceleration:!1}):xPn(r,{enableHardwareAcceleration:!0});function cIt(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const sU={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(ho.test(n))n=parseFloat(n);else return n;const c=cIt(n,r.target.x),u=cIt(n,r.target.y);return`${c}% ${u}%`}},uIt="_$css",kPn={correct:(n,{treeScale:r,projectionDelta:c})=>{const u=n,d=n.includes("var("),p=[];d&&(n=n.replace(XDt,O=>(p.push(O),uIt)));const m=SS.parse(n);if(m.length>5)return u;const x=SS.createTransformer(n),E=typeof m[0]!="number"?1:0,k=c.x.scale*r.x,T=c.y.scale*r.y;m[0+E]/=k,m[1+E]/=T;const P=rf(k,T,.5);typeof m[2+E]=="number"&&(m[2+E]/=P),typeof m[3+E]=="number"&&(m[3+E]/=P);let I=x(m);if(d){let O=0;I=I.replace(uIt,()=>{const N=p[O];return O++,N})}return I}};class CPn extends lt.Component{componentDidMount(){const{visualElement:r,layoutGroup:c,switchLayoutGroup:u,layoutId:d}=this.props,{projection:p}=r;$9n(TPn),p&&(c.group&&c.group.add(p),u&&u.register&&d&&u.register(p),p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,onExitComplete:()=>this.safeToRemove()})),oH.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:c,visualElement:u,drag:d,isPresent:p}=this.props,m=u.projection;return m&&(m.isPresent=p,d||r.layoutDependency!==c||c===void 0?m.willUpdate():this.safeToRemove(),r.isPresent!==p&&(p?m.promote():m.relegate()||Wx.postRender(()=>{var x;!((x=m.getStack())===null||x===void 0)&&x.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:r,layoutGroup:c,switchLayoutGroup:u}=this.props,{projection:d}=r;d&&(d.scheduleCheckAfterUnmount(),c!=null&&c.group&&c.group.remove(d),u!=null&&u.deregister&&u.deregister(d))}safeToRemove(){const{safeToRemove:r}=this.props;r==null||r()}render(){return null}}function IPn(n){const[r,c]=bMe(),u=U.exports.useContext(tMe);return z(CPn,{...n,layoutGroup:u,switchLayoutGroup:U.exports.useContext(MMt),isPresent:r,safeToRemove:c})}const TPn={borderRadius:{...sU,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sU,borderTopRightRadius:sU,borderBottomLeftRadius:sU,borderBottomRightRadius:sU,boxShadow:kPn},APn={measureLayout:IPn};function PPn(n,r,c={}){const u=Yx(n)?n:yD(n);return wMe("",u,r,c),{stop:()=>u.stop(),isAnimating:()=>u.isAnimating()}}const ZDt=["TopLeft","TopRight","BottomLeft","BottomRight"],OPn=ZDt.length,lIt=n=>typeof n=="string"?parseFloat(n):n,fIt=n=>typeof n=="number"||ho.test(n);function _Pn(n,r,c,u,d,p){var m,x,E,k;d?(n.opacity=rf(0,(m=c.opacity)!==null&&m!==void 0?m:1,MPn(u)),n.opacityExit=rf((x=r.opacity)!==null&&x!==void 0?x:1,0,DPn(u))):p&&(n.opacity=rf((E=r.opacity)!==null&&E!==void 0?E:1,(k=c.opacity)!==null&&k!==void 0?k:1,u));for(let T=0;Tur?1:c(sq(n,r,u))}function hIt(n,r){n.min=r.min,n.max=r.max}function dw(n,r){hIt(n.x,r.x),hIt(n.y,r.y)}function pIt(n,r,c,u,d){return n-=r,n=Ace(n,1/c,u),d!==void 0&&(n=Ace(n,1/d,u)),n}function NPn(n,r=0,c=1,u=.5,d,p=n,m=n){if(qx.test(r)&&(r=parseFloat(r),r=rf(m.min,m.max,r/100)-m.min),typeof r!="number")return;let x=rf(p.min,p.max,u);n===p&&(x-=r),n.min=pIt(n.min,r,c,x,d),n.max=pIt(n.max,r,c,x,d)}function gIt(n,r,[c,u,d],p,m){NPn(n,r[c],r[u],r[d],r.scale,p,m)}const jPn=["x","scaleX","originX"],RPn=["y","scaleY","originY"];function bIt(n,r,c,u){gIt(n.x,r,jPn,c==null?void 0:c.x,u==null?void 0:u.x),gIt(n.y,r,RPn,c==null?void 0:c.y,u==null?void 0:u.y)}function mIt(n){return n.translate===0&&n.scale===1}function eNt(n){return mIt(n.x)&&mIt(n.y)}function tNt(n,r){return n.x.min===r.x.min&&n.x.max===r.x.max&&n.y.min===r.y.min&&n.y.max===r.y.max}class $Pn{constructor(){this.members=[]}add(r){xMe(this.members,r),r.scheduleRender()}remove(r){if(SMe(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const c=this.members[this.members.length-1];c&&this.promote(c)}}relegate(r){const c=this.members.findIndex(d=>r===d);if(c===0)return!1;let u;for(let d=c;d>=0;d--){const p=this.members[d];if(p.isPresent!==!1){u=p;break}}return u?(this.promote(u),!0):!1}promote(r,c){var u;const d=this.lead;if(r!==d&&(this.prevLead=d,this.lead=r,r.show(),d)){d.instance&&d.scheduleRender(),r.scheduleRender(),r.resumeFrom=d,c&&(r.resumeFrom.preserveOpacity=!0),d.snapshot&&(r.snapshot=d.snapshot,r.snapshot.latestValues=d.animationValues||d.latestValues,r.snapshot.isShared=!0),!((u=r.root)===null||u===void 0)&&u.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:p}=r.options;p===!1&&d.hide()}}exitAnimationComplete(){this.members.forEach(r=>{var c,u,d,p,m;(u=(c=r.options).onExitComplete)===null||u===void 0||u.call(c),(m=(d=r.resumingFrom)===null||d===void 0?void 0:(p=d.options).onExitComplete)===null||m===void 0||m.call(p)})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const LPn="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function vIt(n,r,c){const u=n.x.translate/r.x,d=n.y.translate/r.y;let p=`translate3d(${u}px, ${d}px, 0) `;if(p+=`scale(${1/r.x}, ${1/r.y}) `,c){const{rotate:E,rotateX:k,rotateY:T}=c;E&&(p+=`rotate(${E}deg) `),k&&(p+=`rotateX(${k}deg) `),T&&(p+=`rotateY(${T}deg) `)}const m=n.x.scale*r.x,x=n.y.scale*r.y;return p+=`scale(${m}, ${x})`,p===LPn?"none":p}const FPn=(n,r)=>n.depth-r.depth;class BPn{constructor(){this.children=[],this.isDirty=!1}add(r){xMe(this.children,r),this.isDirty=!0}remove(r){SMe(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(FPn),this.isDirty=!1,this.children.forEach(r)}}const yIt=["","X","Y","Z"],wIt=1e3;function nNt({attachResizeListener:n,defaultParent:r,measureScroll:c,checkIsScrollRoot:u,resetTransform:d}){return class{constructor(m,x={},E=r==null?void 0:r()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(WPn),this.nodes.forEach(GPn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=m,this.latestValues=x,this.root=E?E.root||E:this,this.path=E?[...E.path,E]:[],this.parent=E,this.depth=E?E.depth+1:0,m&&this.root.registerPotentialNode(m,this);for(let k=0;kthis.root.updateBlockedByResize=!1;n(m,()=>{this.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(O,250),oH.hasAnimatedSinceResize&&(oH.hasAnimatedSinceResize=!1,this.nodes.forEach(qPn))})}k&&this.root.registerSharedNode(k,this),this.options.animate!==!1&&P&&(k||T)&&this.addEventListener("didUpdate",({delta:I,hasLayoutChanged:O,hasRelativeTargetChanged:N,layout:j})=>{var $,L,B,F,X;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const te=(L=($=this.options.transition)!==null&&$!==void 0?$:P.getDefaultTransition())!==null&&L!==void 0?L:ZPn,{onLayoutAnimationStart:Z,onLayoutAnimationComplete:H}=P.getProps(),ce=!this.targetLayout||!tNt(this.targetLayout,j)||N,pe=!O&&N;if(((B=this.resumeFrom)===null||B===void 0?void 0:B.instance)||pe||O&&(ce||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(I,pe);const fe={...yMe(te,"layout"),onPlay:Z,onComplete:H};P.shouldReduceMotion&&(fe.delay=0,fe.type=!1),this.startAnimation(fe)}else!O&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((X=(F=this.options).onExitComplete)===null||X===void 0||X.call(F));this.targetLayout=j})}unmount(){var m,x;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(m=this.getStack())===null||m===void 0||m.remove(this),(x=this.parent)===null||x===void 0||x.children.delete(this),this.instance=void 0,uq.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var m;return this.isAnimationBlocked||((m=this.parent)===null||m===void 0?void 0:m.isTreeAnimationBlocked())||!1}startUpdate(){var m;this.isUpdateBlocked()||(this.isUpdating=!0,(m=this.nodes)===null||m===void 0||m.forEach(XPn))}willUpdate(m=!0){var x,E,k;if(this.root.isUpdateBlocked()){(E=(x=this.options).onExitComplete)===null||E===void 0||E.call(x);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let O=0;O{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const m=this.measure(),x=this.removeTransform(this.removeElementScroll(m));CIt(x),this.snapshot={measured:m,layout:x,latestValues:{}}}updateLayout(){var m;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let k=0;k{var B;const F=L/1e3;SIt(I.x,m.x,F),SIt(I.y,m.y,F),this.setTargetDelta(I),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((B=this.relativeParent)===null||B===void 0?void 0:B.layout)&&(lH(O,this.layout.actual,this.relativeParent.layout.actual),YPn(this.relativeTarget,this.relativeTargetOrigin,O,F)),N&&(this.animationValues=P,_Pn(P,T,this.latestValues,F,$,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(0)}startAnimation(m){var x,E;this.notifyListeners("animationStart"),(x=this.currentAnimation)===null||x===void 0||x.stop(),this.resumingFrom&&((E=this.resumingFrom.currentAnimation)===null||E===void 0||E.stop()),this.pendingAnimation&&(uq.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Wx.update(()=>{oH.hasAnimatedSinceResize=!0,this.currentAnimation=PPn(0,wIt,{...m,onUpdate:k=>{var T;this.mixTargetDelta(k),(T=m.onUpdate)===null||T===void 0||T.call(m,k)},onComplete:()=>{var k;(k=m.onComplete)===null||k===void 0||k.call(m),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var m;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(m=this.getStack())===null||m===void 0||m.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var m;this.currentAnimation&&((m=this.mixTargetDelta)===null||m===void 0||m.call(this,wIt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const{targetWithTransforms:m,target:x,layout:E,latestValues:k}=this.getLead();!m||!x||!E||(dw(m,x),MM(m,k),uH(this.projectionDeltaWithTransform,this.layoutCorrected,m,k))}registerSharedNode(m,x){var E,k,T;this.sharedNodes.has(m)||this.sharedNodes.set(m,new $Pn),this.sharedNodes.get(m).add(x),x.promote({transition:(E=x.options.initialPromotionConfig)===null||E===void 0?void 0:E.transition,preserveFollowOpacity:(T=(k=x.options.initialPromotionConfig)===null||k===void 0?void 0:k.shouldPreserveFollowOpacity)===null||T===void 0?void 0:T.call(k,x)})}isLead(){const m=this.getStack();return m?m.lead===this:!0}getLead(){var m;const{layoutId:x}=this.options;return x?((m=this.getStack())===null||m===void 0?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:x}=this.options;return x?(m=this.getStack())===null||m===void 0?void 0:m.prevLead:void 0}getStack(){const{layoutId:m}=this.options;if(m)return this.root.sharedNodes.get(m)}promote({needsReset:m,transition:x,preserveFollowOpacity:E}={}){const k=this.getStack();k&&k.promote(this,E),m&&(this.projectionDelta=void 0,this.needsReset=!0),x&&this.setOptions({transition:x})}relegate(){const m=this.getStack();return m?m.relegate(this):!1}resetRotation(){const{visualElement:m}=this.options;if(!m)return;let x=!1;const E={};for(let k=0;k{var x;return(x=m.currentAnimation)===null||x===void 0?void 0:x.stop()}),this.root.nodes.forEach(xIt),this.root.sharedNodes.clear()}}}function VPn(n){n.updateLayout()}function zPn(n){var r,c,u;const d=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&d&&n.hasListeners("didUpdate")){const{actual:p,measured:m}=n.layout;n.options.animationType==="size"?Cx(P=>{const I=d.isShared?d.measured[P]:d.layout[P],O=ES(I);I.min=p[P].min,I.max=I.min+O}):n.options.animationType==="position"&&Cx(P=>{const I=d.isShared?d.measured[P]:d.layout[P],O=ES(p[P]);I.max=I.min+O});const x=fH();uH(x,p,d.layout);const E=fH();d.isShared?uH(E,n.applyTransform(m,!0),d.measured):uH(E,p,d.layout);const k=!eNt(x);let T=!1;if(!n.resumeFrom&&(n.relativeParent=n.getClosestProjectingParent(),n.relativeParent&&!n.relativeParent.resumeFrom)){const{snapshot:P,layout:I}=n.relativeParent;if(P&&I){const O=$1();lH(O,d.layout,P.layout);const N=$1();lH(N,p,I.actual),tNt(O,N)||(T=!0)}}n.notifyListeners("didUpdate",{layout:p,snapshot:d,delta:E,layoutDelta:x,hasLayoutChanged:k,hasRelativeTargetChanged:T})}else n.isLead()&&((u=(c=n.options).onExitComplete)===null||u===void 0||u.call(c));n.options.transition=void 0}function UPn(n){n.clearSnapshot()}function xIt(n){n.clearMeasurements()}function HPn(n){const{visualElement:r}=n.options;r!=null&&r.getProps().onBeforeLayoutMeasure&&r.notifyBeforeLayoutMeasure(),n.resetTransform()}function qPn(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0}function WPn(n){n.resolveTargetDelta()}function GPn(n){n.calcProjection()}function XPn(n){n.resetRotation()}function KPn(n){n.removeLeadSnapshot()}function SIt(n,r,c){n.translate=rf(r.translate,0,c),n.scale=rf(r.scale,1,c),n.origin=r.origin,n.originPoint=r.originPoint}function EIt(n,r,c,u){n.min=rf(r.min,c.min,u),n.max=rf(r.max,c.max,u)}function YPn(n,r,c,u){EIt(n.x,r.x,c.x,u),EIt(n.y,r.y,c.y,u)}function QPn(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const ZPn={duration:.45,ease:[.4,0,.1,1]};function JPn(n,r){let c=n.root;for(let p=n.path.length-1;p>=0;p--)if(Boolean(n.path[p].instance)){c=n.path[p];break}const d=(c&&c!==n.root?c.instance:document).querySelector(`[data-projection-id="${r}"]`);d&&n.mount(d,!0)}function kIt(n){n.min=Math.round(n.min),n.max=Math.round(n.max)}function CIt(n){kIt(n.x),kIt(n.y)}const eOn=nNt({attachResizeListener:(n,r)=>Tle(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),j9e={current:void 0},tOn=nNt({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!j9e.current){const n=new eOn(0,{});n.mount(window),n.setOptions({layoutScroll:!0}),j9e.current=n}return j9e.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>Boolean(window.getComputedStyle(n).position==="fixed")}),nOn={...RAn,...WTn,...rPn,...APn},H1=j9n((n,r)=>w7n(n,r,nOn,EPn,tOn));function rNt(){const n=U.exports.useRef(!1);return vce(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function rOn(){const n=rNt(),[r,c]=U.exports.useState(0),u=U.exports.useCallback(()=>{n.current&&c(r+1)},[r]);return[U.exports.useCallback(()=>Wx.postRender(u),[u]),r]}class iOn extends U.exports.Component{getSnapshotBeforeUpdate(r){const c=this.props.childRef.current;if(c&&r.isPresent&&!this.props.isPresent){const u=this.props.sizeRef.current;u.height=c.offsetHeight||0,u.width=c.offsetWidth||0,u.top=c.offsetTop,u.left=c.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function oOn({children:n,isPresent:r}){const c=U.exports.useId(),u=U.exports.useRef(null),d=U.exports.useRef({width:0,height:0,top:0,left:0});return U.exports.useInsertionEffect(()=>{const{width:p,height:m,top:x,left:E}=d.current;if(r||!u.current||!p||!m)return;u.current.dataset.motionPopId=c;const k=document.createElement("style");return document.head.appendChild(k),k.sheet&&k.sheet.insertRule(` + [data-motion-pop-id="${c}"] { + position: absolute !important; + width: ${p}px !important; + height: ${m}px !important; + top: ${x}px !important; + left: ${E}px !important; + } + `),()=>{document.head.removeChild(k)}},[r]),z(iOn,{isPresent:r,childRef:u,sizeRef:d,children:U.exports.cloneElement(n,{ref:u})})}const R9e=({children:n,initial:r,isPresent:c,onExitComplete:u,custom:d,presenceAffectsLayout:p,mode:m})=>{const x=Ile(sOn),E=U.exports.useId(),k=U.exports.useMemo(()=>({id:E,initial:r,isPresent:c,custom:d,onExitComplete:T=>{x.set(T,!0);for(const P of x.values())if(!P)return;u&&u()},register:T=>(x.set(T,!1),()=>x.delete(T))}),p?void 0:[c]);return U.exports.useMemo(()=>{x.forEach((T,P)=>x.set(P,!1))},[c]),U.exports.useEffect(()=>{!c&&!x.size&&u&&u()},[c]),m==="popLayout"&&(n=z(oOn,{isPresent:c,children:n})),z(eN.Provider,{value:k,children:n})};function sOn(){return new Map}const pM=n=>n.key||"";function aOn(n,r){n.forEach(c=>{const u=pM(c);r.set(u,c)})}function cOn(n){const r=[];return U.exports.Children.forEach(n,c=>{U.exports.isValidElement(c)&&r.push(c)}),r}const _S=({children:n,custom:r,initial:c=!0,onExitComplete:u,exitBeforeEnter:d,presenceAffectsLayout:p=!0,mode:m="sync"})=>{d&&(m="wait",ODt(!1,"Replace exitBeforeEnter with mode='wait'"));let[x]=rOn();const E=U.exports.useContext(tMe).forceRender;E&&(x=E);const k=rNt(),T=cOn(n);let P=T;const I=new Set,O=U.exports.useRef(P),N=U.exports.useRef(new Map).current,j=U.exports.useRef(!0);if(vce(()=>{j.current=!1,aOn(T,N),O.current=P}),uMe(()=>{j.current=!0,N.clear(),I.clear()}),j.current)return z(Si,{children:P.map(F=>z(R9e,{isPresent:!0,initial:c?void 0:!1,presenceAffectsLayout:p,mode:m,children:F},pM(F)))});P=[...P];const $=O.current.map(pM),L=T.map(pM),B=$.length;for(let F=0;F{if(L.indexOf(F)!==-1)return;const X=N.get(F);if(!X)return;const te=$.indexOf(F),Z=()=>{N.delete(F),I.delete(F);const H=O.current.findIndex(ce=>ce.key===F);if(O.current.splice(H,1),!I.size){if(O.current=T,k.current===!1)return;x(),u&&u()}};P.splice(te,0,z(R9e,{isPresent:!1,onExitComplete:Z,custom:r,presenceAffectsLayout:p,mode:m,children:X},pM(X)))}),P=P.map(F=>{const X=F.key;return I.has(X)?F:z(R9e,{isPresent:!0,presenceAffectsLayout:p,mode:m,children:F},pM(F))}),PDt!=="production"&&m==="wait"&&P.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),z(Si,{children:I.size?P:P.map(F=>U.exports.cloneElement(F))})};var oW=(...n)=>n.filter(Boolean).join(" ");function uOn(){return!1}var lOn=n=>{const{condition:r,message:c}=n;r&&uOn()&&console.warn(c)},s7={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},aU={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function qAe(n){var c;switch((c=n==null?void 0:n.direction)!=null?c:"right"){case"right":return aU.slideRight;case"left":return aU.slideLeft;case"bottom":return aU.slideDown;case"top":return aU.slideUp;default:return aU.slideRight}}var v7={enter:{duration:.2,ease:s7.easeOut},exit:{duration:.1,ease:s7.easeIn}},Aw={enter:(n,r)=>({...n,delay:typeof r=="number"?r:r==null?void 0:r.enter}),exit:(n,r)=>({...n,delay:typeof r=="number"?r:r==null?void 0:r.exit})},fOn=n=>n!=null&&parseInt(n.toString(),10)>0,IIt={exit:{height:{duration:.2,ease:s7.ease},opacity:{duration:.3,ease:s7.ease}},enter:{height:{duration:.3,ease:s7.ease},opacity:{duration:.4,ease:s7.ease}}},dOn={exit:({animateOpacity:n,startingHeight:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{...n&&{opacity:fOn(r)?1:0},height:r,transitionEnd:u==null?void 0:u.exit,transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(IIt.exit,d)}},enter:({animateOpacity:n,endingHeight:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{...n&&{opacity:1},height:r,transitionEnd:u==null?void 0:u.enter,transition:(p=c==null?void 0:c.enter)!=null?p:Aw.enter(IIt.enter,d)}}},lq=U.exports.forwardRef((n,r)=>{const{in:c,unmountOnExit:u,animateOpacity:d=!0,startingHeight:p=0,endingHeight:m="auto",style:x,className:E,transition:k,transitionEnd:T,...P}=n,[I,O]=U.exports.useState(!1);U.exports.useEffect(()=>{const B=setTimeout(()=>{O(!0)});return()=>clearTimeout(B)},[]),lOn({condition:Boolean(p>0&&u),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const N=parseFloat(p.toString())>0,j={startingHeight:p,endingHeight:m,animateOpacity:d,transition:I?k:{enter:{duration:0}},transitionEnd:{enter:T==null?void 0:T.enter,exit:u?T==null?void 0:T.exit:{...T==null?void 0:T.exit,display:N?"block":"none"}}},$=u?c:!0,L=c||u?"enter":"exit";return z(_S,{initial:!1,custom:j,children:$&<.createElement(H1.div,{ref:r,...P,className:oW("chakra-collapse",E),style:{overflow:"hidden",display:"block",...x},custom:j,variants:dOn,initial:u?"exit":!1,animate:L,exit:"exit"})})});lq.displayName="Collapse";var hOn={enter:({transition:n,transitionEnd:r,delay:c}={})=>{var u;return{opacity:1,transition:(u=n==null?void 0:n.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:r==null?void 0:r.enter}},exit:({transition:n,transitionEnd:r,delay:c}={})=>{var u;return{opacity:0,transition:(u=n==null?void 0:n.exit)!=null?u:Aw.exit(v7.exit,c),transitionEnd:r==null?void 0:r.exit}}},iNt={initial:"exit",animate:"enter",exit:"exit",variants:hOn},oNt=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,className:p,transition:m,transitionEnd:x,delay:E,...k}=r,T=d||u?"enter":"exit",P=u?d&&u:!0,I={transition:m,transitionEnd:x,delay:E};return z(_S,{custom:I,children:P&<.createElement(H1.div,{ref:c,className:oW("chakra-fade",p),custom:I,...iNt,animate:T,...k})})});oNt.displayName="Fade";var pOn={exit:({reverse:n,initialScale:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{opacity:0,...n?{scale:r,transitionEnd:u==null?void 0:u.exit}:{transitionEnd:{scale:r,...u==null?void 0:u.exit}},transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(v7.exit,d)}},enter:({transitionEnd:n,transition:r,delay:c})=>{var u;return{opacity:1,scale:1,transition:(u=r==null?void 0:r.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:n==null?void 0:n.enter}}},sNt={initial:"exit",animate:"enter",exit:"exit",variants:pOn},gOn=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,reverse:p=!0,initialScale:m=.95,className:x,transition:E,transitionEnd:k,delay:T,...P}=r,I=u?d&&u:!0,O=d||u?"enter":"exit",N={initialScale:m,reverse:p,transition:E,transitionEnd:k,delay:T};return z(_S,{custom:N,children:I&<.createElement(H1.div,{ref:c,className:oW("chakra-offset-slide",x),...sNt,animate:O,custom:N,...P})})});gOn.displayName="ScaleFade";var TIt={exit:{duration:.15,ease:s7.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},bOn={exit:({direction:n,transition:r,transitionEnd:c,delay:u})=>{var p;const{exit:d}=qAe({direction:n});return{...d,transition:(p=r==null?void 0:r.exit)!=null?p:Aw.exit(TIt.exit,u),transitionEnd:c==null?void 0:c.exit}},enter:({direction:n,transitionEnd:r,transition:c,delay:u})=>{var p;const{enter:d}=qAe({direction:n});return{...d,transition:(p=c==null?void 0:c.enter)!=null?p:Aw.enter(TIt.enter,u),transitionEnd:r==null?void 0:r.enter}}},aNt=U.exports.forwardRef(function(r,c){const{direction:u="right",style:d,unmountOnExit:p,in:m,className:x,transition:E,transitionEnd:k,delay:T,motionProps:P,...I}=r,O=qAe({direction:u}),N=Object.assign({position:"fixed"},O.position,d),j=p?m&&p:!0,$=m||p?"enter":"exit",L={transitionEnd:k,transition:E,direction:u,delay:T};return z(_S,{custom:L,children:j&<.createElement(H1.div,{...I,ref:c,initial:"exit",className:oW("chakra-slide",x),animate:$,exit:"exit",custom:L,variants:bOn,style:N,...P})})});aNt.displayName="Slide";var mOn={initial:({offsetX:n,offsetY:r,transition:c,transitionEnd:u,delay:d})=>{var p;return{opacity:0,x:n,y:r,transition:(p=c==null?void 0:c.exit)!=null?p:Aw.exit(v7.exit,d),transitionEnd:u==null?void 0:u.exit}},enter:({transition:n,transitionEnd:r,delay:c})=>{var u;return{opacity:1,x:0,y:0,transition:(u=n==null?void 0:n.enter)!=null?u:Aw.enter(v7.enter,c),transitionEnd:r==null?void 0:r.enter}},exit:({offsetY:n,offsetX:r,transition:c,transitionEnd:u,reverse:d,delay:p})=>{var x;const m={x:r,y:n};return{opacity:0,transition:(x=c==null?void 0:c.exit)!=null?x:Aw.exit(v7.exit,p),...d?{...m,transitionEnd:u==null?void 0:u.exit}:{transitionEnd:{...m,...u==null?void 0:u.exit}}}}},WAe={initial:"initial",animate:"enter",exit:"exit",variants:mOn},vOn=U.exports.forwardRef(function(r,c){const{unmountOnExit:u,in:d,reverse:p=!0,className:m,offsetX:x=0,offsetY:E=8,transition:k,transitionEnd:T,delay:P,...I}=r,O=u?d&&u:!0,N=d||u?"enter":"exit",j={offsetX:x,offsetY:E,reverse:p,transition:k,transitionEnd:T,delay:P};return z(_S,{custom:j,children:O&<.createElement(H1.div,{ref:c,className:oW("chakra-offset-slide",m),custom:j,...WAe,animate:N,...I})})});vOn.displayName="SlideFade";var sW=(...n)=>n.filter(Boolean).join(" ");function yOn(){return!1}var Dle=n=>{const{condition:r,message:c}=n;r&&yOn()&&console.warn(c)};function $9e(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[wOn,aW]=kc({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[xOn,Nle]=kc({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[SOn,hur,EOn,kOn]=J_e(),kMe=kn(function(r,c){const{getButtonProps:u}=Nle(),d=u(r,c),p=aW(),m={display:"flex",alignItems:"center",width:"100%",outline:0,...p.button};return lt.createElement(Qt.button,{...d,className:sW("chakra-accordion__button",r.className),__css:m})});kMe.displayName="AccordionButton";function COn(n){const{onChange:r,defaultIndex:c,index:u,allowMultiple:d,allowToggle:p,...m}=n;AOn(n),POn(n);const x=EOn(),[E,k]=U.exports.useState(-1);U.exports.useEffect(()=>()=>{k(-1)},[]);const[T,P]=PMt({value:u,defaultValue(){return d?c!=null?c:[]:c!=null?c:-1},onChange:r});return{index:T,setIndex:P,htmlProps:m,getAccordionItemProps:O=>{let N=!1;return O!==null&&(N=Array.isArray(T)?T.includes(O):T===O),{isOpen:N,onChange:$=>{if(O!==null)if(d&&Array.isArray(T)){const L=$?T.concat(O):T.filter(B=>B!==O);P(L)}else $?P(O):p&&P(-1)}}},focusedIndex:E,setFocusedIndex:k,descendants:x}}var[IOn,jle]=kc({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function TOn(n){const{isDisabled:r,isFocusable:c,id:u,...d}=n,{getAccordionItemProps:p,setFocusedIndex:m}=jle(),x=U.exports.useRef(null),E=U.exports.useId(),k=u!=null?u:E,T=`accordion-button-${k}`,P=`accordion-panel-${k}`;OOn(n);const{register:I,index:O,descendants:N}=kOn({disabled:r&&!c}),{isOpen:j,onChange:$}=p(O===-1?null:O);_On({isOpen:j,isDisabled:r});const L=()=>{$==null||$(!0)},B=()=>{$==null||$(!1)},F=U.exports.useCallback(()=>{$==null||$(!j),m(O)},[O,m,j,$]),X=U.exports.useCallback(ce=>{const fe={ArrowDown:()=>{const ve=N.nextEnabled(O);ve==null||ve.node.focus()},ArrowUp:()=>{const ve=N.prevEnabled(O);ve==null||ve.node.focus()},Home:()=>{const ve=N.firstEnabled();ve==null||ve.node.focus()},End:()=>{const ve=N.lastEnabled();ve==null||ve.node.focus()}}[ce.key];fe&&(ce.preventDefault(),fe(ce))},[N,O]),te=U.exports.useCallback(()=>{m(O)},[m,O]),Z=U.exports.useCallback(function(pe={},fe=null){return{...pe,type:"button",ref:_u(I,x,fe),id:T,disabled:!!r,"aria-expanded":!!j,"aria-controls":P,onClick:$9e(pe.onClick,F),onFocus:$9e(pe.onFocus,te),onKeyDown:$9e(pe.onKeyDown,X)}},[T,r,j,F,te,X,P,I]),H=U.exports.useCallback(function(pe={},fe=null){return{...pe,ref:fe,role:"region",id:P,"aria-labelledby":T,hidden:!j}},[T,j,P]);return{isOpen:j,isDisabled:r,isFocusable:c,onOpen:L,onClose:B,getButtonProps:Z,getPanelProps:H,htmlProps:d}}function AOn(n){const r=n.index||n.defaultIndex,c=r!=null&&!Array.isArray(r)&&n.allowMultiple;Dle({condition:!!c,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof r},`})}function POn(n){Dle({condition:!!(n.allowMultiple&&n.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function OOn(n){Dle({condition:!!(n.isFocusable&&!n.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. + `})}function _On(n){Dle({condition:n.isOpen&&!!n.isDisabled,message:"Cannot open a disabled accordion item"})}function cNt(n){const{isOpen:r,isDisabled:c}=Nle(),{reduceMotion:u}=jle(),d=sW("chakra-accordion__icon",n.className),p=aW(),m={opacity:c?.4:1,transform:r?"rotate(-180deg)":void 0,transition:u?void 0:"transform 0.2s",transformOrigin:"center",...p.icon};return z(To,{viewBox:"0 0 24 24","aria-hidden":!0,className:d,__css:m,...n,children:z("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}cNt.displayName="AccordionIcon";var CMe=kn(function(r,c){const{children:u,className:d}=r,{htmlProps:p,...m}=TOn(r),E={...aW().container,overflowAnchor:"none"},k=U.exports.useMemo(()=>m,[m]);return lt.createElement(xOn,{value:k},lt.createElement(Qt.div,{ref:c,...p,className:sW("chakra-accordion__item",d),__css:E},typeof u=="function"?u({isExpanded:!!m.isOpen,isDisabled:!!m.isDisabled}):u))});CMe.displayName="AccordionItem";var uNt=kn(function(r,c){const{className:u,motionProps:d,...p}=r,{reduceMotion:m}=jle(),{getPanelProps:x,isOpen:E}=Nle(),k=x(p,c),T=sW("chakra-accordion__panel",u),P=aW();m||delete k.hidden;const I=lt.createElement(Qt.div,{...k,__css:P.panel,className:T});return m?I:z(lq,{in:E,...d,children:I})});uNt.displayName="AccordionPanel";var Rle=kn(function({children:r,reduceMotion:c,...u},d){const p=il("Accordion",u),m=Ba(u),{htmlProps:x,descendants:E,...k}=COn(m),T=U.exports.useMemo(()=>({...k,reduceMotion:!!c}),[k,c]);return lt.createElement(SOn,{value:E},lt.createElement(IOn,{value:T},lt.createElement(wOn,{value:p},lt.createElement(Qt.div,{ref:d,...x,className:sW("chakra-accordion",u.className),__css:p.root},r))))});Rle.displayName="Accordion";function MOn(){const{isOpen:n,isDisabled:r,onClose:c,onOpen:u}=Nle();return{isOpen:n,onClose:c,isDisabled:r,onOpen:u}}var DOn=(...n)=>n.filter(Boolean).join(" "),NOn=Zq({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),cW=kn((n,r)=>{const c=U1("Spinner",n),{label:u="Loading...",thickness:d="2px",speed:p="0.45s",emptyColor:m="transparent",className:x,...E}=Ba(n),k=DOn("chakra-spinner",x),T={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:d,borderBottomColor:m,borderLeftColor:m,animation:`${NOn} ${p} linear infinite`,...c};return lt.createElement(Qt.div,{ref:r,__css:T,className:k,...E},u&<.createElement(Qt.span,{srOnly:!0},u))});cW.displayName="Spinner";var $le=(...n)=>n.filter(Boolean).join(" ");function jOn(n){return z(To,{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function ROn(n){return z(To,{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function AIt(n){return z(To,{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[$On,LOn]=kc({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[FOn,IMe]=kc({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),lNt={info:{icon:ROn,colorScheme:"blue"},warning:{icon:AIt,colorScheme:"orange"},success:{icon:jOn,colorScheme:"green"},error:{icon:AIt,colorScheme:"red"},loading:{icon:cW,colorScheme:"blue"}};function BOn(n){return lNt[n].colorScheme}function VOn(n){return lNt[n].icon}var TMe=kn(function(r,c){var k;const{status:u="info",addRole:d=!0,...p}=Ba(r),m=(k=r.colorScheme)!=null?k:BOn(u),x=il("Alert",{...r,colorScheme:m}),E={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...x.container};return lt.createElement($On,{value:{status:u}},lt.createElement(FOn,{value:x},lt.createElement(Qt.div,{role:d?"alert":void 0,ref:c,...p,className:$le("chakra-alert",r.className),__css:E})))});TMe.displayName="Alert";var fNt=kn(function(r,c){const u=IMe(),d={display:"inline",...u.description};return lt.createElement(Qt.div,{ref:c,...r,className:$le("chakra-alert__desc",r.className),__css:d})});fNt.displayName="AlertDescription";function AMe(n){const{status:r}=LOn(),c=VOn(r),u=IMe(),d=r==="loading"?u.spinner:u.icon;return lt.createElement(Qt.span,{display:"inherit",...n,className:$le("chakra-alert__icon",n.className),__css:d},n.children||z(c,{h:"100%",w:"100%"}))}AMe.displayName="AlertIcon";var dNt=kn(function(r,c){const u=IMe();return lt.createElement(Qt.div,{ref:c,...r,className:$le("chakra-alert__title",r.className),__css:u.title})});dNt.displayName="AlertTitle";function zOn(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function UOn(n){const{loading:r,src:c,srcSet:u,onLoad:d,onError:p,crossOrigin:m,sizes:x,ignoreFallback:E}=n,[k,T]=U.exports.useState("pending");U.exports.useEffect(()=>{T(c?"loading":"pending")},[c]);const P=U.exports.useRef(),I=U.exports.useCallback(()=>{if(!c)return;O();const N=new Image;N.src=c,m&&(N.crossOrigin=m),u&&(N.srcset=u),x&&(N.sizes=x),r&&(N.loading=r),N.onload=j=>{O(),T("loaded"),d==null||d(j)},N.onerror=j=>{O(),T("failed"),p==null||p(j)},P.current=N},[c,m,u,x,d,p,r]),O=()=>{P.current&&(P.current.onload=null,P.current.onerror=null,P.current=null)};return Iw(()=>{if(!E)return k==="loading"&&I(),()=>{O()}},[k,I,E]),E?"loaded":k}var HOn=(n,r)=>n!=="loaded"&&r==="beforeLoadOrError"||n==="failed"&&r==="onError",Pce=kn(function(r,c){const{htmlWidth:u,htmlHeight:d,alt:p,...m}=r;return z("img",{width:u,height:d,ref:c,alt:p,...m})});Pce.displayName="NativeImage";var hNt=kn(function(r,c){const{fallbackSrc:u,fallback:d,src:p,srcSet:m,align:x,fit:E,loading:k,ignoreFallback:T,crossOrigin:P,fallbackStrategy:I="beforeLoadOrError",referrerPolicy:O,...N}=r,j=u!==void 0||d!==void 0,$=k!=null||T||!j,L=UOn({...r,ignoreFallback:$}),B=HOn(L,I),F={ref:c,objectFit:E,objectPosition:x,...$?N:zOn(N,["onError","onLoad"])};return B?d||lt.createElement(Qt.img,{as:Pce,className:"chakra-image__placeholder",src:u,...F}):lt.createElement(Qt.img,{as:Pce,src:p,srcSet:m,crossOrigin:P,loading:k,referrerPolicy:O,className:"chakra-image",...F})});hNt.displayName="Image";kn((n,r)=>lt.createElement(Qt.img,{ref:r,as:Pce,className:"chakra-image",...n}));function tN(n){return U.exports.Children.toArray(n).filter(r=>U.exports.isValidElement(r))}var PMe=(...n)=>n.filter(Boolean).join(" "),[qOn,OMe]=kc({name:"BreadcrumbStylesContext",errorMessage:`useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),WOn=kn(function(r,c){const u=il("Breadcrumb",r),d=Ba(r),{children:p,spacing:m="0.5rem",separator:x="/",className:E,listProps:k,...T}=d,P=tN(p),I=P.length,O=P.map((j,$)=>U.exports.cloneElement(j,{separator:x,spacing:m,isLastChild:I===$+1})),N=PMe("chakra-breadcrumb",E);return lt.createElement(Qt.nav,{ref:c,"aria-label":"breadcrumb",className:N,__css:u.container,...T},lt.createElement(qOn,{value:u},lt.createElement(Qt.ol,{className:"chakra-breadcrumb__list",...k,__css:{display:"flex",alignItems:"center",...u.list}},O)))});WOn.displayName="Breadcrumb";var GAe=kn(function(r,c){const{spacing:u,...d}=r,p=OMe(),m={mx:u,...p.separator};return lt.createElement(Qt.span,{ref:c,role:"presentation",...d,__css:m})});GAe.displayName="BreadcrumbSeparator";var _Me=kn(function(r,c){const{isCurrentPage:u,as:d,className:p,href:m,...x}=r,E=OMe(),k={ref:c,as:d,className:PMe("chakra-breadcrumb__link",p),...x};return u?lt.createElement(Qt.span,{"aria-current":"page",__css:E.link,...k}):lt.createElement(Qt.a,{__css:E.link,href:m,...k})});_Me.displayName="BreadcrumbLink";var GOn=kn(function(r,c){const{isCurrentPage:u,separator:d,isLastChild:p,spacing:m,children:x,className:E,...k}=r,P=tN(x).map(j=>j.type===_Me?U.exports.cloneElement(j,{isCurrentPage:u}):j.type===GAe?U.exports.cloneElement(j,{spacing:m,children:j.props.children||d}):j),I=OMe(),O={display:"inline-flex",alignItems:"center",...I.item},N=PMe("chakra-breadcrumb__list-item",E);return lt.createElement(Qt.li,{ref:c,className:N,...k,__css:O},P,!p&&z(GAe,{spacing:m,children:d}))});GOn.displayName="BreadcrumbItem";var Lle=(...n)=>n.filter(Boolean).join(" "),PIt=n=>n?"":void 0,[XOn,KOn]=kc({strict:!1,name:"ButtonGroupContext"});function XAe(n){const{children:r,className:c,...u}=n,d=U.exports.isValidElement(r)?U.exports.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,p=Lle("chakra-button__icon",c);return lt.createElement(Qt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...u,className:p},d)}XAe.displayName="ButtonIcon";function KAe(n){const{label:r,placement:c,spacing:u="0.5rem",children:d=z(cW,{color:"currentColor",width:"1em",height:"1em"}),className:p,__css:m,...x}=n,E=Lle("chakra-button__spinner",p),k=c==="start"?"marginEnd":"marginStart",T=U.exports.useMemo(()=>({display:"flex",alignItems:"center",position:r?"relative":"absolute",[k]:r?u:0,fontSize:"1em",lineHeight:"normal",...m}),[m,r,k,u]);return lt.createElement(Qt.div,{className:E,...x,__css:T},d)}KAe.displayName="ButtonSpinner";function YOn(n){const[r,c]=U.exports.useState(!n);return{ref:U.exports.useCallback(p=>{!p||c(p.tagName==="BUTTON")},[]),type:r?"button":void 0}}var Y0=kn((n,r)=>{const c=KOn(),u=U1("Button",{...c,...n}),{isDisabled:d=c==null?void 0:c.isDisabled,isLoading:p,isActive:m,children:x,leftIcon:E,rightIcon:k,loadingText:T,iconSpacing:P="0.5rem",type:I,spinner:O,spinnerPlacement:N="start",className:j,as:$,...L}=Ba(n),B=U.exports.useMemo(()=>{const Z={...u==null?void 0:u._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...u,...!!c&&{_focus:Z}}},[u,c]),{ref:F,type:X}=YOn($),te={rightIcon:k,leftIcon:E,iconSpacing:P,children:x};return lt.createElement(Qt.button,{disabled:d||p,ref:b9n(r,F),as:$,type:I!=null?I:X,"data-active":PIt(m),"data-loading":PIt(p),__css:B,className:Lle("chakra-button",j),...L},p&&N==="start"&&z(KAe,{className:"chakra-button__spinner--start",label:T,placement:"start",spacing:P,children:O}),p?T||lt.createElement(Qt.span,{opacity:0},z(OIt,{...te})):z(OIt,{...te}),p&&N==="end"&&z(KAe,{className:"chakra-button__spinner--end",label:T,placement:"end",spacing:P,children:O}))});Y0.displayName="Button";function OIt(n){const{leftIcon:r,rightIcon:c,children:u,iconSpacing:d}=n;return We(Si,{children:[r&&z(XAe,{marginEnd:d,children:r}),u,c&&z(XAe,{marginStart:d,children:c})]})}var _w=kn(function(r,c){const{size:u,colorScheme:d,variant:p,className:m,spacing:x="0.5rem",isAttached:E,isDisabled:k,...T}=r,P=Lle("chakra-button__group",m),I=U.exports.useMemo(()=>({size:u,colorScheme:d,variant:p,isDisabled:k}),[u,d,p,k]);let O={display:"inline-flex"};return E?O={...O,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:O={...O,"& > *:not(style) ~ *:not(style)":{marginStart:x}},lt.createElement(XOn,{value:I},lt.createElement(Qt.div,{ref:c,role:"group",__css:O,className:P,"data-attached":E?"":void 0,...T}))});_w.displayName="ButtonGroup";var Ev=kn((n,r)=>{const{icon:c,children:u,isRound:d,"aria-label":p,...m}=n,x=c||u,E=U.exports.isValidElement(x)?U.exports.cloneElement(x,{"aria-hidden":!0,focusable:!1}):null;return z(Y0,{padding:"0",borderRadius:d?"full":void 0,ref:r,"aria-label":p,...m,children:E})});Ev.displayName="IconButton";var nN=(...n)=>n.filter(Boolean).join(" "),ase=n=>n?"":void 0,L9e=n=>n?!0:void 0;function _It(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[QOn,pNt]=kc({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ZOn,rN]=kc({strict:!1,name:"FormControlContext"});function JOn(n){const{id:r,isRequired:c,isInvalid:u,isDisabled:d,isReadOnly:p,...m}=n,x=U.exports.useId(),E=r||`field-${x}`,k=`${E}-label`,T=`${E}-feedback`,P=`${E}-helptext`,[I,O]=U.exports.useState(!1),[N,j]=U.exports.useState(!1),[$,L]=U.exports.useState(!1),B=U.exports.useCallback((H={},ce=null)=>({id:P,...H,ref:_u(ce,pe=>{!pe||j(!0)})}),[P]),F=U.exports.useCallback((H={},ce=null)=>{var pe,fe;return{...H,ref:ce,"data-focus":ase($),"data-disabled":ase(d),"data-invalid":ase(u),"data-readonly":ase(p),id:(pe=H.id)!=null?pe:k,htmlFor:(fe=H.htmlFor)!=null?fe:E}},[E,d,$,u,p,k]),X=U.exports.useCallback((H={},ce=null)=>({id:T,...H,ref:_u(ce,pe=>{!pe||O(!0)}),"aria-live":"polite"}),[T]),te=U.exports.useCallback((H={},ce=null)=>({...H,...m,ref:ce,role:"group"}),[m]),Z=U.exports.useCallback((H={},ce=null)=>({...H,ref:ce,role:"presentation","aria-hidden":!0,children:H.children||"*"}),[]);return{isRequired:!!c,isInvalid:!!u,isReadOnly:!!p,isDisabled:!!d,isFocused:!!$,onFocus:()=>L(!0),onBlur:()=>L(!1),hasFeedbackText:I,setHasFeedbackText:O,hasHelpText:N,setHasHelpText:j,id:E,labelId:k,feedbackId:T,helpTextId:P,htmlProps:m,getHelpTextProps:B,getErrorMessageProps:X,getRootProps:te,getLabelProps:F,getRequiredIndicatorProps:Z}}var MMe=kn(function(r,c){const u=il("Form",r),d=Ba(r),{getRootProps:p,htmlProps:m,...x}=JOn(d),E=nN("chakra-form-control",r.className);return lt.createElement(ZOn,{value:x},lt.createElement(QOn,{value:u},lt.createElement(Qt.div,{...p({},c),className:E,__css:u.container})))});MMe.displayName="FormControl";var gNt=kn(function(r,c){const u=rN(),d=pNt(),p=nN("chakra-form__helper-text",r.className);return lt.createElement(Qt.div,{...u==null?void 0:u.getHelpTextProps(r,c),__css:d.helperText,className:p})});gNt.displayName="FormHelperText";function Fle(n){const{isDisabled:r,isInvalid:c,isReadOnly:u,isRequired:d,...p}=DMe(n);return{...p,disabled:r,readOnly:u,required:d,"aria-invalid":L9e(c),"aria-required":L9e(d),"aria-readonly":L9e(u)}}function DMe(n){var N,j,$;const r=rN(),{id:c,disabled:u,readOnly:d,required:p,isRequired:m,isInvalid:x,isReadOnly:E,isDisabled:k,onFocus:T,onBlur:P,...I}=n,O=n["aria-describedby"]?[n["aria-describedby"]]:[];return(r==null?void 0:r.hasFeedbackText)&&(r==null?void 0:r.isInvalid)&&O.push(r.feedbackId),r!=null&&r.hasHelpText&&O.push(r.helpTextId),{...I,"aria-describedby":O.join(" ")||void 0,id:c!=null?c:r==null?void 0:r.id,isDisabled:(N=u!=null?u:k)!=null?N:r==null?void 0:r.isDisabled,isReadOnly:(j=d!=null?d:E)!=null?j:r==null?void 0:r.isReadOnly,isRequired:($=p!=null?p:m)!=null?$:r==null?void 0:r.isRequired,isInvalid:x!=null?x:r==null?void 0:r.isInvalid,onFocus:_It(r==null?void 0:r.onFocus,T),onBlur:_It(r==null?void 0:r.onBlur,P)}}var[e_n,t_n]=kc({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),bNt=kn((n,r)=>{const c=il("FormError",n),u=Ba(n),d=rN();return d!=null&&d.isInvalid?lt.createElement(e_n,{value:c},lt.createElement(Qt.div,{...d==null?void 0:d.getErrorMessageProps(u,r),className:nN("chakra-form__error-message",n.className),__css:{display:"flex",alignItems:"center",...c.text}})):null});bNt.displayName="FormErrorMessage";var n_n=kn((n,r)=>{const c=t_n(),u=rN();if(!(u!=null&&u.isInvalid))return null;const d=nN("chakra-form__error-icon",n.className);return z(To,{ref:r,"aria-hidden":!0,...n,__css:c.icon,className:d,children:z("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});n_n.displayName="FormErrorIcon";var iN=kn(function(r,c){var I;const u=U1("FormLabel",r),d=Ba(r),{className:p,children:m,requiredIndicator:x=z(mNt,{}),optionalIndicator:E=null,...k}=d,T=rN(),P=(I=T==null?void 0:T.getLabelProps(k,c))!=null?I:{ref:c,...k};return lt.createElement(Qt.label,{...P,className:nN("chakra-form__label",d.className),__css:{display:"block",textAlign:"start",...u}},m,T!=null&&T.isRequired?x:E)});iN.displayName="FormLabel";var mNt=kn(function(r,c){const u=rN(),d=pNt();if(!(u!=null&&u.isRequired))return null;const p=nN("chakra-form__required-indicator",r.className);return lt.createElement(Qt.span,{...u==null?void 0:u.getRequiredIndicatorProps(r,c),__css:d.requiredIndicator,className:p})});mNt.displayName="RequiredIndicator";function mk(n,r){const c=U.exports.useRef(!1),u=U.exports.useRef(!1);U.exports.useEffect(()=>{if(c.current&&u.current)return n();u.current=!0},r),U.exports.useEffect(()=>(c.current=!0,()=>{c.current=!1}),[])}var NMe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},r_n=Qt("span",{baseStyle:NMe});r_n.displayName="VisuallyHidden";var i_n=Qt("input",{baseStyle:NMe});i_n.displayName="VisuallyHiddenInput";var MIt=!1,Ble=null,wD=!1,YAe=new Set,o_n=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function s_n(n){return!(n.metaKey||!o_n&&n.altKey||n.ctrlKey)}function jMe(n,r){YAe.forEach(c=>c(n,r))}function DIt(n){wD=!0,s_n(n)&&(Ble="keyboard",jMe("keyboard",n))}function U_(n){Ble="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(wD=!0,jMe("pointer",n))}function a_n(n){n.target===window||n.target===document||(wD||(Ble="keyboard",jMe("keyboard",n)),wD=!1)}function c_n(){wD=!1}function NIt(){return Ble!=="pointer"}function u_n(){if(typeof window>"u"||MIt)return;const{focus:n}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...c){wD=!0,n.apply(this,c)},document.addEventListener("keydown",DIt,!0),document.addEventListener("keyup",DIt,!0),window.addEventListener("focus",a_n,!0),window.addEventListener("blur",c_n,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",U_,!0),document.addEventListener("pointermove",U_,!0),document.addEventListener("pointerup",U_,!0)):(document.addEventListener("mousedown",U_,!0),document.addEventListener("mousemove",U_,!0),document.addEventListener("mouseup",U_,!0)),MIt=!0}function l_n(n){u_n(),n(NIt());const r=()=>n(NIt());return YAe.add(r),()=>{YAe.delete(r)}}var[pur,f_n]=kc({name:"CheckboxGroupContext",strict:!1}),d_n=(...n)=>n.filter(Boolean).join(" "),Np=n=>n?"":void 0;function iv(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function h_n(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}function p_n(n){return lt.createElement(Qt.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...n},z("polyline",{points:"1.5 6 4.5 9 10.5 1"}))}function g_n(n){return lt.createElement(Qt.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...n},z("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))}function b_n(n){const{isIndeterminate:r,isChecked:c,...u}=n,d=r?g_n:p_n;return c||r?lt.createElement(Qt.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},z(d,{...u})):null}function m_n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function vNt(n={}){const r=DMe(n),{isDisabled:c,isReadOnly:u,isRequired:d,isInvalid:p,id:m,onBlur:x,onFocus:E,"aria-describedby":k}=r,{defaultChecked:T,isChecked:P,isFocusable:I,onChange:O,isIndeterminate:N,name:j,value:$,tabIndex:L=void 0,"aria-label":B,"aria-labelledby":F,"aria-invalid":X,...te}=n,Z=m_n(te,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),H=mh(O),ce=mh(x),pe=mh(E),[fe,ve]=U.exports.useState(!1),[Ge,qe]=U.exports.useState(!1),[Je,et]=U.exports.useState(!1),[jt,Me]=U.exports.useState(!1);U.exports.useEffect(()=>l_n(ve),[]);const Ve=U.exports.useRef(null),[ye,De]=U.exports.useState(!0),[be,xe]=U.exports.useState(!!T),Jt=P!==void 0,an=Jt?P:be,An=U.exports.useCallback(at=>{if(u||c){at.preventDefault();return}Jt||xe(an?at.target.checked:N?!0:at.target.checked),H==null||H(at)},[u,c,an,Jt,N,H]);Iw(()=>{Ve.current&&(Ve.current.indeterminate=Boolean(N))},[N]),mk(()=>{c&&qe(!1)},[c,qe]),Iw(()=>{const at=Ve.current;!(at!=null&&at.form)||(at.form.onreset=()=>{xe(!!T)})},[]);const Wn=c&&!I,ir=U.exports.useCallback(at=>{at.key===" "&&Me(!0)},[Me]),Jn=U.exports.useCallback(at=>{at.key===" "&&Me(!1)},[Me]);Iw(()=>{if(!Ve.current)return;Ve.current.checked!==an&&xe(Ve.current.checked)},[Ve.current]);const Gr=U.exports.useCallback((at={},ae=null)=>{const Ee=Ie=>{Ge&&Ie.preventDefault(),Me(!0)};return{...at,ref:ae,"data-active":Np(jt),"data-hover":Np(Je),"data-checked":Np(an),"data-focus":Np(Ge),"data-focus-visible":Np(Ge&&fe),"data-indeterminate":Np(N),"data-disabled":Np(c),"data-invalid":Np(p),"data-readonly":Np(u),"aria-hidden":!0,onMouseDown:iv(at.onMouseDown,Ee),onMouseUp:iv(at.onMouseUp,()=>Me(!1)),onMouseEnter:iv(at.onMouseEnter,()=>et(!0)),onMouseLeave:iv(at.onMouseLeave,()=>et(!1))}},[jt,an,c,Ge,fe,Je,N,p,u]),Ze=U.exports.useCallback((at={},ae=null)=>({...Z,...at,ref:_u(ae,Ee=>{!Ee||De(Ee.tagName==="LABEL")}),onClick:iv(at.onClick,()=>{var Ee;ye||((Ee=Ve.current)==null||Ee.click(),requestAnimationFrame(()=>{var Ie;(Ie=Ve.current)==null||Ie.focus()}))}),"data-disabled":Np(c),"data-checked":Np(an),"data-invalid":Np(p)}),[Z,c,an,p,ye]),ut=U.exports.useCallback((at={},ae=null)=>({...at,ref:_u(Ve,ae),type:"checkbox",name:j,value:$,id:m,tabIndex:L,onChange:iv(at.onChange,An),onBlur:iv(at.onBlur,ce,()=>qe(!1)),onFocus:iv(at.onFocus,pe,()=>qe(!0)),onKeyDown:iv(at.onKeyDown,ir),onKeyUp:iv(at.onKeyUp,Jn),required:d,checked:an,disabled:Wn,readOnly:u,"aria-label":B,"aria-labelledby":F,"aria-invalid":X?Boolean(X):p,"aria-describedby":k,"aria-disabled":c,style:NMe}),[j,$,m,An,ce,pe,ir,Jn,d,an,Wn,u,B,F,X,p,k,c,L]),on=U.exports.useCallback((at={},ae=null)=>({...at,ref:ae,onMouseDown:iv(at.onMouseDown,jIt),onTouchStart:iv(at.onTouchStart,jIt),"data-disabled":Np(c),"data-checked":Np(an),"data-invalid":Np(p)}),[an,c,p]);return{state:{isInvalid:p,isFocused:Ge,isChecked:an,isActive:jt,isHovered:Je,isIndeterminate:N,isDisabled:c,isReadOnly:u,isRequired:d},getRootProps:Ze,getCheckboxProps:Gr,getInputProps:ut,getLabelProps:on,htmlProps:Z}}function jIt(n){n.preventDefault(),n.stopPropagation()}var v_n={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},y_n={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},w_n=Zq({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),x_n=Zq({from:{opacity:0},to:{opacity:1}}),S_n=Zq({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),E_n=kn(function(r,c){const u=f_n(),d={...u,...r},p=il("Checkbox",d),m=Ba(r),{spacing:x="0.5rem",className:E,children:k,iconColor:T,iconSize:P,icon:I=z(b_n,{}),isChecked:O,isDisabled:N=u==null?void 0:u.isDisabled,onChange:j,inputProps:$,...L}=m;let B=O;(u==null?void 0:u.value)&&m.value&&(B=u.value.includes(m.value));let F=j;(u==null?void 0:u.onChange)&&m.value&&(F=h_n(u.onChange,j));const{state:X,getInputProps:te,getCheckboxProps:Z,getLabelProps:H,getRootProps:ce}=vNt({...L,isDisabled:N,isChecked:B,onChange:F}),pe=U.exports.useMemo(()=>({animation:X.isIndeterminate?`${x_n} 20ms linear, ${S_n} 200ms linear`:`${w_n} 200ms linear`,fontSize:P,color:T,...p.icon}),[T,P,,X.isIndeterminate,p.icon]),fe=U.exports.cloneElement(I,{__css:pe,isIndeterminate:X.isIndeterminate,isChecked:X.isChecked});return lt.createElement(Qt.label,{__css:{...y_n,...p.container},className:d_n("chakra-checkbox",E),...ce()},z("input",{className:"chakra-checkbox__input",...te($,c)}),lt.createElement(Qt.span,{__css:{...v_n,...p.control},className:"chakra-checkbox__control",...Z()},fe),k&<.createElement(Qt.span,{className:"chakra-checkbox__label",...H(),__css:{marginStart:x,...p.label}},k))});E_n.displayName="Checkbox";function k_n(n){return z(To,{focusable:"false","aria-hidden":!0,...n,children:z("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var uW=kn(function(r,c){const u=U1("CloseButton",r),{children:d,isDisabled:p,__css:m,...x}=Ba(r),E={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return lt.createElement(Qt.button,{type:"button","aria-label":"Close",ref:c,disabled:p,__css:{...E,...u,...m},...x},d||z(k_n,{width:"1em",height:"1em"}))});uW.displayName="CloseButton";function C_n(n){const r=parseFloat(n);return typeof r!="number"||Number.isNaN(r)?0:r}function yNt(n,r){let c=C_n(n);const u=10**(r!=null?r:10);return c=Math.round(c*u)/u,r?c.toFixed(r):c.toString()}function RIt(n){if(!Number.isFinite(n))return 0;let r=1,c=0;for(;Math.round(n*r)/r!==n;)r*=10,c+=1;return c}function I_n(n,r,c){return n==null?n:(c{var fe;return u==null?"":(fe=F9e(u,p,c))!=null?fe:""}),I=typeof d<"u",O=I?d:T,N=wNt($E(O),p),j=c!=null?c:N,$=U.exports.useCallback(fe=>{fe!==O&&(I||P(fe.toString()),k==null||k(fe.toString(),$E(fe)))},[k,I,O]),L=U.exports.useCallback(fe=>{let ve=fe;return E&&(ve=I_n(ve,m,x)),yNt(ve,j)},[j,E,x,m]),B=U.exports.useCallback((fe=p)=>{let ve;O===""?ve=$E(fe):ve=$E(O)+fe,ve=L(ve),$(ve)},[L,p,$,O]),F=U.exports.useCallback((fe=p)=>{let ve;O===""?ve=$E(-fe):ve=$E(O)-fe,ve=L(ve),$(ve)},[L,p,$,O]),X=U.exports.useCallback(()=>{var ve;let fe;u==null?fe="":fe=(ve=F9e(u,p,c))!=null?ve:m,$(fe)},[u,c,p,$,m]),te=U.exports.useCallback(fe=>{var Ge;const ve=(Ge=F9e(fe,p,j))!=null?Ge:m;$(ve)},[j,p,$,m]),Z=$E(O);return{isOutOfRange:Z>x||Zz(Qq,{styles:xNt}),P_n=()=>z(Qq,{styles:` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + font-feature-settings: 'kern'; + } + + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + + main { + display: block; + } + + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + b, + strong { + font-weight: bold; + } + + small { + font-size: 80%; + } + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sub { + bottom: -0.25em; + } + + sup { + top: -0.5em; + } + + img { + border-style: none; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + button, + input { + overflow: visible; + } + + button, + select { + text-transform: none; + } + + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + + fieldset { + padding: 0.35em 0.75em 0.625em; + } + + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + progress { + vertical-align: baseline; + } + + textarea { + overflow: auto; + } + + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + input[type="number"] { + -moz-appearance: textfield; + } + + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + details { + display: block; + } + + summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + + button { + background: transparent; + padding: 0; + } + + fieldset { + margin: 0; + padding: 0; + } + + ol, + ul { + margin: 0; + padding: 0; + } + + textarea { + resize: vertical; + } + + button, + [role="button"] { + cursor: pointer; + } + + button::-moz-focus-inner { + border: 0 !important; + } + + table { + border-collapse: collapse; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + + img, + video { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) { + outline: none; + box-shadow: none; + } + + select::-ms-expand { + display: none; + } + + ${xNt} + `});function y7(n,r,c,u){const d=mh(c);return U.exports.useEffect(()=>{const p=typeof n=="function"?n():n!=null?n:document;if(!(!c||!p))return p.addEventListener(r,d,u),()=>{p.removeEventListener(r,d,u)}},[r,n,u,d,c]),()=>{const p=typeof n=="function"?n():n!=null?n:document;p==null||p.removeEventListener(r,d,u)}}function O_n(n){return"current"in n}var SNt=()=>typeof window<"u";function __n(){var r;const n=navigator.userAgentData;return(r=n==null?void 0:n.platform)!=null?r:navigator.platform}var M_n=n=>SNt()&&n.test(navigator.vendor),D_n=n=>SNt()&&n.test(__n()),N_n=()=>D_n(/mac|iphone|ipad|ipod/i),j_n=()=>N_n()&&M_n(/apple/i);function R_n(n){const{ref:r,elements:c,enabled:u}=n,d=()=>{var m;var p;return(m=(p=r.current)==null?void 0:p.ownerDocument)!=null?m:document};y7(d,"pointerdown",p=>{if(!j_n()||!u)return;const m=p.target,E=(c!=null?c:[r]).some(k=>{const T=O_n(k)?k.current:k;return(T==null?void 0:T.contains(m))||T===m});d().activeElement!==m&&E&&(p.preventDefault(),m.focus())})}var $_n=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var r=document.activeElement,c=[],u=0;u"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=$It[r.format]||$It.default;window.clipboardData.setData(P,n)}else T.clipboardData.clearData(),T.clipboardData.setData(r.format,n);r.onCopy&&(T.preventDefault(),r.onCopy(T.clipboardData))}),document.body.appendChild(x),p.selectNodeContents(x),m.addRange(p);var k=document.execCommand("copy");if(!k)throw new Error("copy command was unsuccessful");E=!0}catch(T){c&&console.error("unable to copy using execCommand: ",T),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(r.format||"text",n),r.onCopy&&r.onCopy(window.clipboardData),E=!0}catch(P){c&&console.error("unable to copy using clipboardData: ",P),c&&console.error("falling back to prompt"),u=B_n("message"in r?r.message:F_n),window.prompt(u,n)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),x&&document.body.removeChild(x),d()}return E}var z_n=V_n,lW=l5n?U.exports.useLayoutEffect:U.exports.useEffect;function LIt(n,r=[]){const c=U.exports.useRef(n);return lW(()=>{c.current=n}),U.exports.useCallback((...u)=>{var d;return(d=c.current)==null?void 0:d.call(c,...u)},r)}function U_n(n,r){const c=n!==void 0;return[c,c&&typeof n<"u"?n:r]}function H_n(n,r){const c=U.exports.useId();return U.exports.useMemo(()=>n||[r,c].filter(Boolean).join("-"),[n,r,c])}function B9e(n={}){const{onClose:r,onOpen:c,isOpen:u,id:d}=n,p=LIt(c),m=LIt(r),[x,E]=U.exports.useState(n.defaultIsOpen||!1),[k,T]=U_n(u,x),P=H_n(d,"disclosure"),I=U.exports.useCallback(()=>{k||E(!1),m==null||m()},[k,m]),O=U.exports.useCallback(()=>{k||E(!0),p==null||p()},[k,p]),N=U.exports.useCallback(()=>{(T?I:O)()},[T,O,I]);return{isOpen:!!T,onOpen:O,onClose:I,onToggle:N,isControlled:k,getButtonProps:(j={})=>({...j,"aria-expanded":T,"aria-controls":P,onClick:f5n(j.onClick,N)}),getDisclosureProps:(j={})=>({...j,hidden:!T,id:P})}}function q_n(n,r){if(n!=null){if(typeof n=="function"){n(r);return}try{n.current=r}catch{throw new Error(`Cannot assign value '${r}' to ref '${n}'`)}}}function RMe(...n){return U.exports.useMemo(()=>n.every(r=>r==null)?null:r=>{n.forEach(c=>{c&&q_n(c,r)})},n)}function $Me(n){const r=Object.assign({},n);for(let c in r)r[c]===void 0&&delete r[c];return r}var Vle=kn(function(r,c){const{htmlSize:u,...d}=r,p=il("Input",d),m=Ba(d),x=Fle(m),E=Pf("chakra-input",r.className);return lt.createElement(Qt.input,{size:u,...x,__css:p.field,ref:c,className:E})});Vle.displayName="Input";Vle.id="Input";var[W_n,ENt]=kc({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),G_n=kn(function(r,c){const u=il("Input",r),{children:d,className:p,...m}=Ba(r),x=Pf("chakra-input__group",p),E={},k=tN(d),T=u.field;k.forEach(I=>{var O,N;!u||(T&&I.type.id==="InputLeftElement"&&(E.paddingStart=(O=T.height)!=null?O:T.h),T&&I.type.id==="InputRightElement"&&(E.paddingEnd=(N=T.height)!=null?N:T.h),I.type.id==="InputRightAddon"&&(E.borderEndRadius=0),I.type.id==="InputLeftAddon"&&(E.borderStartRadius=0))});const P=k.map(I=>{var O,N;const j=$Me({size:((O=I.props)==null?void 0:O.size)||r.size,variant:((N=I.props)==null?void 0:N.variant)||r.variant});return I.type.id!=="Input"?U.exports.cloneElement(I,j):U.exports.cloneElement(I,Object.assign(j,E,I.props))});return lt.createElement(Qt.div,{className:x,ref:c,__css:{width:"100%",display:"flex",position:"relative"},...m},z(W_n,{value:u,children:P}))});G_n.displayName="InputGroup";var X_n={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},K_n=Qt("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),LMe=kn(function(r,c){var x;const{placement:u="left",...d}=r,p=(x=X_n[u])!=null?x:{},m=ENt();return z(K_n,{ref:c,...d,__css:{...m.addon,...p}})});LMe.displayName="InputAddon";var kNt=kn(function(r,c){return z(LMe,{ref:c,placement:"left",...r,className:Pf("chakra-input__left-addon",r.className)})});kNt.displayName="InputLeftAddon";kNt.id="InputLeftAddon";var CNt=kn(function(r,c){return z(LMe,{ref:c,placement:"right",...r,className:Pf("chakra-input__right-addon",r.className)})});CNt.displayName="InputRightAddon";CNt.id="InputRightAddon";var Y_n=Qt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),zle=kn(function(r,c){var k,T;const{placement:u="left",...d}=r,p=ENt(),m=p.field,E={[u==="left"?"insetStart":"insetEnd"]:"0",width:(k=m==null?void 0:m.height)!=null?k:m==null?void 0:m.h,height:(T=m==null?void 0:m.height)!=null?T:m==null?void 0:m.h,fontSize:m==null?void 0:m.fontSize,...p.element};return z(Y_n,{ref:c,__css:E,...d})});zle.id="InputElement";zle.displayName="InputElement";var INt=kn(function(r,c){const{className:u,...d}=r,p=Pf("chakra-input__left-element",u);return z(zle,{ref:c,placement:"left",className:p,...d})});INt.id="InputLeftElement";INt.displayName="InputLeftElement";var TNt=kn(function(r,c){const{className:u,...d}=r,p=Pf("chakra-input__right-element",u);return z(zle,{ref:c,placement:"right",className:p,...d})});TNt.id="InputRightElement";TNt.displayName="InputRightElement";function Q_n(n){const r=typeof n;return n!=null&&(r==="object"||r==="function")&&!Array.isArray(n)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function vk(n,r){return Array.isArray(n)?n.map(c=>c===null?null:r(c)):Q_n(n)?Object.keys(n).reduce((c,u)=>(c[u]=r(n[u]),c),{}):n!=null?r(n):null}var Z_n=kn(function(n,r){const{ratio:c=4/3,children:u,className:d,...p}=n,m=U.exports.Children.only(u),x=Pf("chakra-aspect-ratio",d);return lt.createElement(Qt.div,{ref:r,position:"relative",className:x,_before:{height:0,content:'""',display:"block",paddingBottom:vk(c,E=>`${1/E*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...p},m)});Z_n.displayName="AspectRatio";var ANt=kn(function(r,c){const u=U1("Badge",r),{className:d,...p}=Ba(r);return lt.createElement(Qt.span,{ref:c,className:Pf("chakra-badge",r.className),...p,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...u}})});ANt.displayName="Badge";var Tn=Qt("div");Tn.displayName="Box";var PNt=kn(function(r,c){const{size:u,centerContent:d=!0,...p}=r;return z(Tn,{ref:c,boxSize:u,__css:{...d?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...p})});PNt.displayName="Square";var J_n=kn(function(r,c){const{size:u,...d}=r;return z(PNt,{size:u,ref:c,borderRadius:"9999px",...d})});J_n.displayName="Circle";var eMn=Qt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});eMn.displayName="Center";var tMn={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};kn(function(r,c){const{axis:u="both",...d}=r;return lt.createElement(Qt.div,{ref:c,__css:tMn[u],...d,position:"absolute"})});var FMe=kn(function(r,c){const u=U1("Code",r),{className:d,...p}=Ba(r);return lt.createElement(Qt.code,{ref:c,className:Pf("chakra-code",r.className),...p,__css:{display:"inline-block",...u}})});FMe.displayName="Code";var nMn=kn(function(r,c){const{className:u,centerContent:d,...p}=Ba(r),m=U1("Container",r);return lt.createElement(Qt.div,{ref:c,className:Pf("chakra-container",u),...p,__css:{...m,...d&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});nMn.displayName="Container";var mv=kn(function(r,c){const{borderLeftWidth:u,borderBottomWidth:d,borderTopWidth:p,borderRightWidth:m,borderWidth:x,borderStyle:E,borderColor:k,...T}=U1("Divider",r),{className:P,orientation:I="horizontal",__css:O,...N}=Ba(r),j={vertical:{borderLeftWidth:u||m||x||"1px",height:"100%"},horizontal:{borderBottomWidth:d||p||x||"1px",width:"100%"}};return lt.createElement(Qt.hr,{ref:c,"aria-orientation":I,...N,__css:{...T,border:"0",borderColor:k,borderStyle:E,...j[I],...O},className:Pf("chakra-divider",P)})});mv.displayName="Divider";var Vc=kn(function(r,c){const{direction:u,align:d,justify:p,wrap:m,basis:x,grow:E,shrink:k,...T}=r,P={display:"flex",flexDirection:u,alignItems:d,justifyContent:p,flexWrap:m,flexBasis:x,flexGrow:E,flexShrink:k};return lt.createElement(Qt.div,{ref:c,__css:P,...T})});Vc.displayName="Flex";var ONt=kn(function(r,c){const{templateAreas:u,gap:d,rowGap:p,columnGap:m,column:x,row:E,autoFlow:k,autoRows:T,templateRows:P,autoColumns:I,templateColumns:O,...N}=r,j={display:"grid",gridTemplateAreas:u,gridGap:d,gridRowGap:p,gridColumnGap:m,gridAutoColumns:I,gridColumn:x,gridRow:E,gridAutoFlow:k,gridAutoRows:T,gridTemplateRows:P,gridTemplateColumns:O};return lt.createElement(Qt.div,{ref:c,__css:j,...N})});ONt.displayName="Grid";function FIt(n){return vk(n,r=>r==="auto"?"auto":`span ${r}/span ${r}`)}var rMn=kn(function(r,c){const{area:u,colSpan:d,colStart:p,colEnd:m,rowEnd:x,rowSpan:E,rowStart:k,...T}=r,P=$Me({gridArea:u,gridColumn:FIt(d),gridRow:FIt(E),gridColumnStart:p,gridColumnEnd:m,gridRowStart:k,gridRowEnd:x});return lt.createElement(Qt.div,{ref:c,__css:P,...T})});rMn.displayName="GridItem";var MS=kn(function(r,c){const u=U1("Heading",r),{className:d,...p}=Ba(r);return lt.createElement(Qt.h2,{ref:c,className:Pf("chakra-heading",r.className),...p,__css:u})});MS.displayName="Heading";kn(function(r,c){const u=U1("Mark",r),d=Ba(r);return z(Tn,{ref:c,...d,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...u}})});var hh=kn(function(r,c){const u=U1("Kbd",r),{className:d,...p}=Ba(r);return lt.createElement(Qt.kbd,{ref:c,className:Pf("chakra-kbd",d),...p,__css:{fontFamily:"mono",...u}})});hh.displayName="Kbd";var fq=kn(function(r,c){const u=U1("Link",r),{className:d,isExternal:p,...m}=Ba(r);return lt.createElement(Qt.a,{target:p?"_blank":void 0,rel:p?"noopener":void 0,ref:c,className:Pf("chakra-link",d),...m,__css:u})});fq.displayName="Link";kn(function(r,c){const{isExternal:u,target:d,rel:p,className:m,...x}=r;return lt.createElement(Qt.a,{...x,ref:c,className:Pf("chakra-linkbox__overlay",m),rel:u?"noopener noreferrer":p,target:u?"_blank":d,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});kn(function(r,c){const{className:u,...d}=r;return lt.createElement(Qt.div,{ref:c,position:"relative",...d,className:Pf("chakra-linkbox",u),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[iMn,_Nt]=kc({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ule=kn(function(r,c){const u=il("List",r),{children:d,styleType:p="none",stylePosition:m,spacing:x,...E}=Ba(r),k=tN(d),P=x?{["& > *:not(style) ~ *:not(style)"]:{mt:x}}:{};return lt.createElement(iMn,{value:u},lt.createElement(Qt.ul,{ref:c,listStyleType:p,listStylePosition:m,role:"list",__css:{...u.container,...P},...E},k))});Ule.displayName="List";var MNt=kn((n,r)=>{const{as:c,...u}=n;return z(Ule,{ref:r,as:"ol",styleType:"decimal",marginStart:"1em",...u})});MNt.displayName="OrderedList";var DNt=kn(function(r,c){const{as:u,...d}=r;return z(Ule,{ref:c,as:"ul",styleType:"initial",marginStart:"1em",...d})});DNt.displayName="UnorderedList";var Cae=kn(function(r,c){const u=_Nt();return lt.createElement(Qt.li,{ref:c,...r,__css:u.item})});Cae.displayName="ListItem";var oMn=kn(function(r,c){const u=_Nt();return z(To,{ref:c,role:"presentation",...r,__css:u.icon})});oMn.displayName="ListIcon";var sMn=kn(function(r,c){const{columns:u,spacingX:d,spacingY:p,spacing:m,minChildWidth:x,...E}=r,k=Q7(),T=x?cMn(x,k):uMn(u);return z(ONt,{ref:c,gap:m,columnGap:d,rowGap:p,templateColumns:T,...E})});sMn.displayName="SimpleGrid";function aMn(n){return typeof n=="number"?`${n}px`:n}function cMn(n,r){return vk(n,c=>{const u=i9n("sizes",c,aMn(c))(r);return c===null?null:`repeat(auto-fit, minmax(${u}, 1fr))`})}function uMn(n){return vk(n,r=>r===null?null:`repeat(${r}, minmax(0, 1fr))`)}var lMn=Qt("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});lMn.displayName="Spacer";var QAe="& > *:not(style) ~ *:not(style)";function fMn(n){const{spacing:r,direction:c}=n,u={column:{marginTop:r,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:r},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:r,marginStart:0},"row-reverse":{marginTop:0,marginEnd:r,marginBottom:0,marginStart:0}};return{flexDirection:c,[QAe]:vk(c,d=>u[d])}}function dMn(n){const{spacing:r,direction:c}=n,u={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":vk(c,d=>u[d])}}var NNt=n=>lt.createElement(Qt.div,{className:"chakra-stack__item",...n,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...n.__css}});NNt.displayName="StackItem";var V1=kn((n,r)=>{const{isInline:c,direction:u,align:d,justify:p,spacing:m="0.5rem",wrap:x,children:E,divider:k,className:T,shouldWrapChildren:P,...I}=n,O=c?"row":u!=null?u:"column",N=U.exports.useMemo(()=>fMn({direction:O,spacing:m}),[O,m]),j=U.exports.useMemo(()=>dMn({spacing:m,direction:O}),[m,O]),$=!!k,L=!P&&!$,B=U.exports.useMemo(()=>{const X=tN(E);return L?X:X.map((te,Z)=>{const H=typeof te.key<"u"?te.key:Z,ce=Z+1===X.length,fe=P?z(NNt,{children:te},H):te;if(!$)return fe;const ve=U.exports.cloneElement(k,{__css:j}),Ge=ce?null:ve;return We(U.exports.Fragment,{children:[fe,Ge]},H)})},[k,j,$,L,P,E]),F=Pf("chakra-stack",T);return lt.createElement(Qt.div,{ref:r,display:"flex",alignItems:d,justifyContent:p,flexDirection:N.flexDirection,flexWrap:x,className:F,__css:$?{}:{[QAe]:N[QAe]},...I},B)});V1.displayName="Stack";var nl=kn((n,r)=>z(V1,{align:"center",...n,direction:"row",ref:r}));nl.displayName="HStack";var jNt=n=>lt.createElement(Qt.div,{className:"chakra-stack__divider",...n,__css:{...n.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});jNt.displayName="StackDivider";var yk=kn((n,r)=>z(V1,{align:"center",...n,direction:"column",ref:r}));yk.displayName="VStack";var Fi=kn(function(r,c){const u=U1("Text",r),{className:d,align:p,decoration:m,casing:x,...E}=Ba(r),k=$Me({textAlign:r.align,textDecoration:r.decoration,textTransform:r.casing});return lt.createElement(Qt.p,{ref:c,className:Pf("chakra-text",r.className),...k,...E,__css:u})});Fi.displayName="Text";function BIt(n){return typeof n=="number"?`${n}px`:n}var hMn=kn(function(r,c){const{spacing:u="0.5rem",spacingX:d,spacingY:p,children:m,justify:x,direction:E,align:k,className:T,shouldWrapChildren:P,...I}=r,O=U.exports.useMemo(()=>{const{spacingX:j=u,spacingY:$=u}={spacingX:d,spacingY:p};return{"--chakra-wrap-x-spacing":L=>vk(j,B=>BIt(uAe("space",B)(L))),"--chakra-wrap-y-spacing":L=>vk($,B=>BIt(uAe("space",B)(L))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:x,alignItems:k,flexDirection:E,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[u,d,p,x,k,E]),N=U.exports.useMemo(()=>P?U.exports.Children.map(m,(j,$)=>z(RNt,{children:j},$)):m,[m,P]);return lt.createElement(Qt.div,{ref:c,className:Pf("chakra-wrap",T),overflow:"hidden",...I},lt.createElement(Qt.ul,{className:"chakra-wrap__list",__css:O},N))});hMn.displayName="Wrap";var RNt=kn(function(r,c){const{className:u,...d}=r;return lt.createElement(Qt.li,{ref:c,__css:{display:"flex",alignItems:"flex-start"},className:Pf("chakra-wrap__listitem",u),...d})});RNt.displayName="WrapItem";var pMn={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},$Nt=pMn,H_=()=>{},gMn={document:$Nt,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:H_,removeEventListener:H_,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:H_,removeListener:H_}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)},setTimeout:()=>0,clearTimeout:H_,setInterval:()=>0,clearInterval:H_},bMn=gMn,mMn={window:bMn,document:$Nt},LNt=typeof window<"u"?{window,document}:mMn,BMe=U.exports.createContext(LNt);BMe.displayName="EnvironmentContext";function vMn(){return U.exports.useContext(BMe)}function FNt(n){const{children:r,environment:c}=n,[u,d]=U.exports.useState(null),[p,m]=U.exports.useState(!1);U.exports.useEffect(()=>m(!0),[]);const x=U.exports.useMemo(()=>{if(c)return c;const E=u==null?void 0:u.ownerDocument,k=u==null?void 0:u.ownerDocument.defaultView;return E?{document:E,window:k}:LNt},[u,c]);return We(BMe.Provider,{value:x,children:[r,!c&&p&&z("span",{id:"__chakra_env",hidden:!0,ref:E=>{U.exports.startTransition(()=>{E&&d(E)})}})]})}FNt.displayName="EnvironmentProvider";function yMn(n,r={}){const{ssr:c=!0,fallback:u}=r,d=vMn(),p=Array.isArray(n)?n:[n];let m=Array.isArray(u)?u:[u];m=m.filter(k=>k!=null);const[x,E]=U.exports.useState(()=>p.map((k,T)=>({media:k,matches:c?!!m[T]:d.window.matchMedia(k).matches})));return U.exports.useEffect(()=>{E(p.map(P=>({media:P,matches:d.window.matchMedia(P).matches})));const k=p.map(P=>d.window.matchMedia(P)),T=P=>{E(I=>I.slice().map(O=>O.media===P.media?{...O,matches:P.matches}:O))};return k.forEach(P=>{typeof P.addListener=="function"?P.addListener(T):P.addEventListener("change",T)}),()=>{k.forEach(P=>{typeof P.removeListener=="function"?P.removeListener(T):P.removeEventListener("change",T)})}},[d.window]),x.map(k=>k.matches)}var wMn=n=>n?"":void 0;function xMn(){const n=U.exports.useRef(new Map),r=n.current,c=U.exports.useCallback((d,p,m,x)=>{n.current.set(m,{type:p,el:d,options:x}),d.addEventListener(p,m,x)},[]),u=U.exports.useCallback((d,p,m,x)=>{d.removeEventListener(p,m,x),n.current.delete(m)},[]);return U.exports.useEffect(()=>()=>{r.forEach((d,p)=>{u(d.el,d.type,p,d.options)})},[u,r]),{add:c,remove:u}}function V9e(n){const r=n.target,{tagName:c,isContentEditable:u}=r;return c!=="INPUT"&&c!=="TEXTAREA"&&u!==!0}function BNt(n={}){const{ref:r,isDisabled:c,isFocusable:u,clickOnEnter:d=!0,clickOnSpace:p=!0,onMouseDown:m,onMouseUp:x,onClick:E,onKeyDown:k,onKeyUp:T,tabIndex:P,onMouseOver:I,onMouseLeave:O,...N}=n,[j,$]=U.exports.useState(!0),[L,B]=U.exports.useState(!1),F=xMn(),X=Me=>{!Me||Me.tagName!=="BUTTON"&&$(!1)},te=j?P:P||0,Z=c&&!u,H=U.exports.useCallback(Me=>{if(c){Me.stopPropagation(),Me.preventDefault();return}Me.currentTarget.focus(),E==null||E(Me)},[c,E]),ce=U.exports.useCallback(Me=>{L&&V9e(Me)&&(Me.preventDefault(),Me.stopPropagation(),B(!1),F.remove(document,"keyup",ce,!1))},[L,F]),pe=U.exports.useCallback(Me=>{if(k==null||k(Me),c||Me.defaultPrevented||Me.metaKey||!V9e(Me.nativeEvent)||j)return;const Ve=d&&Me.key==="Enter";p&&Me.key===" "&&(Me.preventDefault(),B(!0)),Ve&&(Me.preventDefault(),Me.currentTarget.click()),F.add(document,"keyup",ce,!1)},[c,j,k,d,p,F,ce]),fe=U.exports.useCallback(Me=>{if(T==null||T(Me),c||Me.defaultPrevented||Me.metaKey||!V9e(Me.nativeEvent)||j)return;p&&Me.key===" "&&(Me.preventDefault(),B(!1),Me.currentTarget.click())},[p,j,c,T]),ve=U.exports.useCallback(Me=>{Me.button===0&&(B(!1),F.remove(document,"mouseup",ve,!1))},[F]),Ge=U.exports.useCallback(Me=>{if(Me.button!==0)return;if(c){Me.stopPropagation(),Me.preventDefault();return}j||B(!0),Me.currentTarget.focus({preventScroll:!0}),F.add(document,"mouseup",ve,!1),m==null||m(Me)},[c,j,m,F,ve]),qe=U.exports.useCallback(Me=>{Me.button===0&&(j||B(!1),x==null||x(Me))},[x,j]),Je=U.exports.useCallback(Me=>{if(c){Me.preventDefault();return}I==null||I(Me)},[c,I]),et=U.exports.useCallback(Me=>{L&&(Me.preventDefault(),B(!1)),O==null||O(Me)},[L,O]),jt=_u(r,X);return j?{...N,ref:jt,type:"button","aria-disabled":Z?void 0:c,disabled:Z,onClick:H,onMouseDown:m,onMouseUp:x,onKeyUp:T,onKeyDown:k,onMouseOver:I,onMouseLeave:O}:{...N,ref:jt,role:"button","data-active":wMn(L),"aria-disabled":c?"true":void 0,tabIndex:Z?void 0:te,onClick:H,onMouseDown:Ge,onMouseUp:qe,onKeyUp:fe,onKeyDown:pe,onMouseOver:Je,onMouseLeave:et}}function VNt(n){return n!=null&&typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE}function zNt(n){var c;if(!VNt(n))return!1;const r=(c=n.ownerDocument.defaultView)!=null?c:window;return n instanceof r.HTMLElement}function SMn(n){var c;var r;return(c=(r=UNt(n))==null?void 0:r.defaultView)!=null?c:window}function UNt(n){return VNt(n)?n.ownerDocument:document}function EMn(n){return UNt(n).activeElement}var HNt=n=>n.hasAttribute("tabindex"),kMn=n=>HNt(n)&&n.tabIndex===-1;function CMn(n){return Boolean(n.getAttribute("disabled"))===!0||Boolean(n.getAttribute("aria-disabled"))===!0}function qNt(n){return n.parentElement&&qNt(n.parentElement)?!0:n.hidden}function IMn(n){const r=n.getAttribute("contenteditable");return r!=="false"&&r!=null}function WNt(n){if(!zNt(n)||qNt(n)||CMn(n))return!1;const{localName:r}=n;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;const u={a:()=>n.hasAttribute("href"),audio:()=>n.hasAttribute("controls"),video:()=>n.hasAttribute("controls")};return r in u?u[r]():IMn(n)?!0:HNt(n)}function TMn(n){return n?zNt(n)&&WNt(n)&&!kMn(n):!1}var AMn=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],PMn=AMn.join(),OMn=n=>n.offsetWidth>0&&n.offsetHeight>0;function GNt(n){const r=Array.from(n.querySelectorAll(PMn));return r.unshift(n),r.filter(c=>WNt(c)&&OMn(c))}function _Mn(n){const r=n.current;if(!r)return!1;const c=EMn(r);return!c||r.contains(c)?!1:!!TMn(c)}function XNt(n,r){const{shouldFocus:c,visible:u,focusRef:d}=r,p=c&&!u;mk(()=>{if(!p||_Mn(n))return;const m=(d==null?void 0:d.current)||n.current;m&&requestAnimationFrame(()=>{m.focus()})},[p,n,d])}var MMn={preventScroll:!0,shouldFocus:!1};function DMn(n,r=MMn){const{focusRef:c,preventScroll:u,shouldFocus:d,visible:p}=r,m=NMn(n)?n.current:n,x=d&&p,E=U.exports.useRef(x),k=U.exports.useRef(p);Iw(()=>{!k.current&&p&&(E.current=x),k.current=p},[p,x]);const T=U.exports.useCallback(()=>{if(!(!p||!m||!E.current)&&(E.current=!1,!m.contains(document.activeElement)))if(c!=null&&c.current)requestAnimationFrame(()=>{var P;(P=c.current)==null||P.focus({preventScroll:u})});else{const P=GNt(m);P.length>0&&requestAnimationFrame(()=>{P[0].focus({preventScroll:u})})}},[p,u,m,c]);mk(()=>{T()},[T]),y7(m,"transitionend",T)}function NMn(n){return"current"in n}var ng="top",kv="bottom",Cv="right",rg="left",VMe="auto",fW=[ng,kv,Cv,rg],xD="start",dq="end",jMn="clippingParents",KNt="viewport",cU="popper",RMn="reference",VIt=fW.reduce(function(n,r){return n.concat([r+"-"+xD,r+"-"+dq])},[]),YNt=[].concat(fW,[VMe]).reduce(function(n,r){return n.concat([r,r+"-"+xD,r+"-"+dq])},[]),$Mn="beforeRead",LMn="read",FMn="afterRead",BMn="beforeMain",VMn="main",zMn="afterMain",UMn="beforeWrite",HMn="write",qMn="afterWrite",WMn=[$Mn,LMn,FMn,BMn,VMn,zMn,UMn,HMn,qMn];function Qx(n){return n?(n.nodeName||"").toLowerCase():null}function Dw(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function SD(n){var r=Dw(n).Element;return n instanceof r||n instanceof Element}function yv(n){var r=Dw(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function QNt(n){if(typeof ShadowRoot>"u")return!1;var r=Dw(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function GMn(n){var r=n.state;Object.keys(r.elements).forEach(function(c){var u=r.styles[c]||{},d=r.attributes[c]||{},p=r.elements[c];!yv(p)||!Qx(p)||(Object.assign(p.style,u),Object.keys(d).forEach(function(m){var x=d[m];x===!1?p.removeAttribute(m):p.setAttribute(m,x===!0?"":x)}))})}function XMn(n){var r=n.state,c={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,c.popper),r.styles=c,r.elements.arrow&&Object.assign(r.elements.arrow.style,c.arrow),function(){Object.keys(r.elements).forEach(function(u){var d=r.elements[u],p=r.attributes[u]||{},m=Object.keys(r.styles.hasOwnProperty(u)?r.styles[u]:c[u]),x=m.reduce(function(E,k){return E[k]="",E},{});!yv(d)||!Qx(d)||(Object.assign(d.style,x),Object.keys(p).forEach(function(E){d.removeAttribute(E)}))})}}const KMn={name:"applyStyles",enabled:!0,phase:"write",fn:GMn,effect:XMn,requires:["computeStyles"]};function Gx(n){return n.split("-")[0]}var w7=Math.max,Oce=Math.min,ED=Math.round;function kD(n,r){r===void 0&&(r=!1);var c=n.getBoundingClientRect(),u=1,d=1;if(yv(n)&&r){var p=n.offsetHeight,m=n.offsetWidth;m>0&&(u=ED(c.width)/m||1),p>0&&(d=ED(c.height)/p||1)}return{width:c.width/u,height:c.height/d,top:c.top/d,right:c.right/u,bottom:c.bottom/d,left:c.left/u,x:c.left/u,y:c.top/d}}function zMe(n){var r=kD(n),c=n.offsetWidth,u=n.offsetHeight;return Math.abs(r.width-c)<=1&&(c=r.width),Math.abs(r.height-u)<=1&&(u=r.height),{x:n.offsetLeft,y:n.offsetTop,width:c,height:u}}function ZNt(n,r){var c=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(c&&QNt(c)){var u=r;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function kS(n){return Dw(n).getComputedStyle(n)}function YMn(n){return["table","td","th"].indexOf(Qx(n))>=0}function Rk(n){return((SD(n)?n.ownerDocument:n.document)||window.document).documentElement}function Hle(n){return Qx(n)==="html"?n:n.assignedSlot||n.parentNode||(QNt(n)?n.host:null)||Rk(n)}function zIt(n){return!yv(n)||kS(n).position==="fixed"?null:n.offsetParent}function QMn(n){var r=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,c=navigator.userAgent.indexOf("Trident")!==-1;if(c&&yv(n)){var u=kS(n);if(u.position==="fixed")return null}for(var d=Hle(n);yv(d)&&["html","body"].indexOf(Qx(d))<0;){var p=kS(d);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||r&&p.willChange==="filter"||r&&p.filter&&p.filter!=="none")return d;d=d.parentNode}return null}function dW(n){for(var r=Dw(n),c=zIt(n);c&&YMn(c)&&kS(c).position==="static";)c=zIt(c);return c&&(Qx(c)==="html"||Qx(c)==="body"&&kS(c).position==="static")?r:c||QMn(n)||r}function UMe(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function dH(n,r,c){return w7(n,Oce(r,c))}function ZMn(n,r,c){var u=dH(n,r,c);return u>c?c:u}function JNt(){return{top:0,right:0,bottom:0,left:0}}function ejt(n){return Object.assign({},JNt(),n)}function tjt(n,r){return r.reduce(function(c,u){return c[u]=n,c},{})}var JMn=function(r,c){return r=typeof r=="function"?r(Object.assign({},c.rects,{placement:c.placement})):r,ejt(typeof r!="number"?r:tjt(r,fW))};function eDn(n){var r,c=n.state,u=n.name,d=n.options,p=c.elements.arrow,m=c.modifiersData.popperOffsets,x=Gx(c.placement),E=UMe(x),k=[rg,Cv].indexOf(x)>=0,T=k?"height":"width";if(!(!p||!m)){var P=JMn(d.padding,c),I=zMe(p),O=E==="y"?ng:rg,N=E==="y"?kv:Cv,j=c.rects.reference[T]+c.rects.reference[E]-m[E]-c.rects.popper[T],$=m[E]-c.rects.reference[E],L=dW(p),B=L?E==="y"?L.clientHeight||0:L.clientWidth||0:0,F=j/2-$/2,X=P[O],te=B-I[T]-P[N],Z=B/2-I[T]/2+F,H=dH(X,Z,te),ce=E;c.modifiersData[u]=(r={},r[ce]=H,r.centerOffset=H-Z,r)}}function tDn(n){var r=n.state,c=n.options,u=c.element,d=u===void 0?"[data-popper-arrow]":u;d!=null&&(typeof d=="string"&&(d=r.elements.popper.querySelector(d),!d)||!ZNt(r.elements.popper,d)||(r.elements.arrow=d))}const nDn={name:"arrow",enabled:!0,phase:"main",fn:eDn,effect:tDn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function CD(n){return n.split("-")[1]}var rDn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iDn(n){var r=n.x,c=n.y,u=window,d=u.devicePixelRatio||1;return{x:ED(r*d)/d||0,y:ED(c*d)/d||0}}function UIt(n){var r,c=n.popper,u=n.popperRect,d=n.placement,p=n.variation,m=n.offsets,x=n.position,E=n.gpuAcceleration,k=n.adaptive,T=n.roundOffsets,P=n.isFixed,I=m.x,O=I===void 0?0:I,N=m.y,j=N===void 0?0:N,$=typeof T=="function"?T({x:O,y:j}):{x:O,y:j};O=$.x,j=$.y;var L=m.hasOwnProperty("x"),B=m.hasOwnProperty("y"),F=rg,X=ng,te=window;if(k){var Z=dW(c),H="clientHeight",ce="clientWidth";if(Z===Dw(c)&&(Z=Rk(c),kS(Z).position!=="static"&&x==="absolute"&&(H="scrollHeight",ce="scrollWidth")),Z=Z,d===ng||(d===rg||d===Cv)&&p===dq){X=kv;var pe=P&&te.visualViewport?te.visualViewport.height:Z[H];j-=pe-u.height,j*=E?1:-1}if(d===rg||(d===ng||d===kv)&&p===dq){F=Cv;var fe=P&&te.visualViewport?te.visualViewport.width:Z[ce];O-=fe-u.width,O*=E?1:-1}}var ve=Object.assign({position:x},k&&rDn),Ge=T===!0?iDn({x:O,y:j}):{x:O,y:j};if(O=Ge.x,j=Ge.y,E){var qe;return Object.assign({},ve,(qe={},qe[X]=B?"0":"",qe[F]=L?"0":"",qe.transform=(te.devicePixelRatio||1)<=1?"translate("+O+"px, "+j+"px)":"translate3d("+O+"px, "+j+"px, 0)",qe))}return Object.assign({},ve,(r={},r[X]=B?j+"px":"",r[F]=L?O+"px":"",r.transform="",r))}function oDn(n){var r=n.state,c=n.options,u=c.gpuAcceleration,d=u===void 0?!0:u,p=c.adaptive,m=p===void 0?!0:p,x=c.roundOffsets,E=x===void 0?!0:x,k={placement:Gx(r.placement),variation:CD(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:d,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,UIt(Object.assign({},k,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:m,roundOffsets:E})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,UIt(Object.assign({},k,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:E})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const sDn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oDn,data:{}};var cse={passive:!0};function aDn(n){var r=n.state,c=n.instance,u=n.options,d=u.scroll,p=d===void 0?!0:d,m=u.resize,x=m===void 0?!0:m,E=Dw(r.elements.popper),k=[].concat(r.scrollParents.reference,r.scrollParents.popper);return p&&k.forEach(function(T){T.addEventListener("scroll",c.update,cse)}),x&&E.addEventListener("resize",c.update,cse),function(){p&&k.forEach(function(T){T.removeEventListener("scroll",c.update,cse)}),x&&E.removeEventListener("resize",c.update,cse)}}const cDn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aDn,data:{}};var uDn={left:"right",right:"left",bottom:"top",top:"bottom"};function Iae(n){return n.replace(/left|right|bottom|top/g,function(r){return uDn[r]})}var lDn={start:"end",end:"start"};function HIt(n){return n.replace(/start|end/g,function(r){return lDn[r]})}function HMe(n){var r=Dw(n),c=r.pageXOffset,u=r.pageYOffset;return{scrollLeft:c,scrollTop:u}}function qMe(n){return kD(Rk(n)).left+HMe(n).scrollLeft}function fDn(n){var r=Dw(n),c=Rk(n),u=r.visualViewport,d=c.clientWidth,p=c.clientHeight,m=0,x=0;return u&&(d=u.width,p=u.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=u.offsetLeft,x=u.offsetTop)),{width:d,height:p,x:m+qMe(n),y:x}}function dDn(n){var r,c=Rk(n),u=HMe(n),d=(r=n.ownerDocument)==null?void 0:r.body,p=w7(c.scrollWidth,c.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),m=w7(c.scrollHeight,c.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),x=-u.scrollLeft+qMe(n),E=-u.scrollTop;return kS(d||c).direction==="rtl"&&(x+=w7(c.clientWidth,d?d.clientWidth:0)-p),{width:p,height:m,x,y:E}}function WMe(n){var r=kS(n),c=r.overflow,u=r.overflowX,d=r.overflowY;return/auto|scroll|overlay|hidden/.test(c+d+u)}function njt(n){return["html","body","#document"].indexOf(Qx(n))>=0?n.ownerDocument.body:yv(n)&&WMe(n)?n:njt(Hle(n))}function hH(n,r){var c;r===void 0&&(r=[]);var u=njt(n),d=u===((c=n.ownerDocument)==null?void 0:c.body),p=Dw(u),m=d?[p].concat(p.visualViewport||[],WMe(u)?u:[]):u,x=r.concat(m);return d?x:x.concat(hH(Hle(m)))}function ZAe(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function hDn(n){var r=kD(n);return r.top=r.top+n.clientTop,r.left=r.left+n.clientLeft,r.bottom=r.top+n.clientHeight,r.right=r.left+n.clientWidth,r.width=n.clientWidth,r.height=n.clientHeight,r.x=r.left,r.y=r.top,r}function qIt(n,r){return r===KNt?ZAe(fDn(n)):SD(r)?hDn(r):ZAe(dDn(Rk(n)))}function pDn(n){var r=hH(Hle(n)),c=["absolute","fixed"].indexOf(kS(n).position)>=0,u=c&&yv(n)?dW(n):n;return SD(u)?r.filter(function(d){return SD(d)&&ZNt(d,u)&&Qx(d)!=="body"}):[]}function gDn(n,r,c){var u=r==="clippingParents"?pDn(n):[].concat(r),d=[].concat(u,[c]),p=d[0],m=d.reduce(function(x,E){var k=qIt(n,E);return x.top=w7(k.top,x.top),x.right=Oce(k.right,x.right),x.bottom=Oce(k.bottom,x.bottom),x.left=w7(k.left,x.left),x},qIt(n,p));return m.width=m.right-m.left,m.height=m.bottom-m.top,m.x=m.left,m.y=m.top,m}function rjt(n){var r=n.reference,c=n.element,u=n.placement,d=u?Gx(u):null,p=u?CD(u):null,m=r.x+r.width/2-c.width/2,x=r.y+r.height/2-c.height/2,E;switch(d){case ng:E={x:m,y:r.y-c.height};break;case kv:E={x:m,y:r.y+r.height};break;case Cv:E={x:r.x+r.width,y:x};break;case rg:E={x:r.x-c.width,y:x};break;default:E={x:r.x,y:r.y}}var k=d?UMe(d):null;if(k!=null){var T=k==="y"?"height":"width";switch(p){case xD:E[k]=E[k]-(r[T]/2-c[T]/2);break;case dq:E[k]=E[k]+(r[T]/2-c[T]/2);break}}return E}function hq(n,r){r===void 0&&(r={});var c=r,u=c.placement,d=u===void 0?n.placement:u,p=c.boundary,m=p===void 0?jMn:p,x=c.rootBoundary,E=x===void 0?KNt:x,k=c.elementContext,T=k===void 0?cU:k,P=c.altBoundary,I=P===void 0?!1:P,O=c.padding,N=O===void 0?0:O,j=ejt(typeof N!="number"?N:tjt(N,fW)),$=T===cU?RMn:cU,L=n.rects.popper,B=n.elements[I?$:T],F=gDn(SD(B)?B:B.contextElement||Rk(n.elements.popper),m,E),X=kD(n.elements.reference),te=rjt({reference:X,element:L,strategy:"absolute",placement:d}),Z=ZAe(Object.assign({},L,te)),H=T===cU?Z:X,ce={top:F.top-H.top+j.top,bottom:H.bottom-F.bottom+j.bottom,left:F.left-H.left+j.left,right:H.right-F.right+j.right},pe=n.modifiersData.offset;if(T===cU&&pe){var fe=pe[d];Object.keys(ce).forEach(function(ve){var Ge=[Cv,kv].indexOf(ve)>=0?1:-1,qe=[ng,kv].indexOf(ve)>=0?"y":"x";ce[ve]+=fe[qe]*Ge})}return ce}function bDn(n,r){r===void 0&&(r={});var c=r,u=c.placement,d=c.boundary,p=c.rootBoundary,m=c.padding,x=c.flipVariations,E=c.allowedAutoPlacements,k=E===void 0?YNt:E,T=CD(u),P=T?x?VIt:VIt.filter(function(N){return CD(N)===T}):fW,I=P.filter(function(N){return k.indexOf(N)>=0});I.length===0&&(I=P);var O=I.reduce(function(N,j){return N[j]=hq(n,{placement:j,boundary:d,rootBoundary:p,padding:m})[Gx(j)],N},{});return Object.keys(O).sort(function(N,j){return O[N]-O[j]})}function mDn(n){if(Gx(n)===VMe)return[];var r=Iae(n);return[HIt(n),r,HIt(r)]}function vDn(n){var r=n.state,c=n.options,u=n.name;if(!r.modifiersData[u]._skip){for(var d=c.mainAxis,p=d===void 0?!0:d,m=c.altAxis,x=m===void 0?!0:m,E=c.fallbackPlacements,k=c.padding,T=c.boundary,P=c.rootBoundary,I=c.altBoundary,O=c.flipVariations,N=O===void 0?!0:O,j=c.allowedAutoPlacements,$=r.options.placement,L=Gx($),B=L===$,F=E||(B||!N?[Iae($)]:mDn($)),X=[$].concat(F).reduce(function(an,An){return an.concat(Gx(An)===VMe?bDn(r,{placement:An,boundary:T,rootBoundary:P,padding:k,flipVariations:N,allowedAutoPlacements:j}):An)},[]),te=r.rects.reference,Z=r.rects.popper,H=new Map,ce=!0,pe=X[0],fe=0;fe=0,et=Je?"width":"height",jt=hq(r,{placement:ve,boundary:T,rootBoundary:P,altBoundary:I,padding:k}),Me=Je?qe?Cv:rg:qe?kv:ng;te[et]>Z[et]&&(Me=Iae(Me));var Ve=Iae(Me),ye=[];if(p&&ye.push(jt[Ge]<=0),x&&ye.push(jt[Me]<=0,jt[Ve]<=0),ye.every(function(an){return an})){pe=ve,ce=!1;break}H.set(ve,ye)}if(ce)for(var De=N?3:1,be=function(An){var Wn=X.find(function(ir){var Jn=H.get(ir);if(Jn)return Jn.slice(0,An).every(function(Gr){return Gr})});if(Wn)return pe=Wn,"break"},xe=De;xe>0;xe--){var Jt=be(xe);if(Jt==="break")break}r.placement!==pe&&(r.modifiersData[u]._skip=!0,r.placement=pe,r.reset=!0)}}const yDn={name:"flip",enabled:!0,phase:"main",fn:vDn,requiresIfExists:["offset"],data:{_skip:!1}};function WIt(n,r,c){return c===void 0&&(c={x:0,y:0}),{top:n.top-r.height-c.y,right:n.right-r.width+c.x,bottom:n.bottom-r.height+c.y,left:n.left-r.width-c.x}}function GIt(n){return[ng,Cv,kv,rg].some(function(r){return n[r]>=0})}function wDn(n){var r=n.state,c=n.name,u=r.rects.reference,d=r.rects.popper,p=r.modifiersData.preventOverflow,m=hq(r,{elementContext:"reference"}),x=hq(r,{altBoundary:!0}),E=WIt(m,u),k=WIt(x,d,p),T=GIt(E),P=GIt(k);r.modifiersData[c]={referenceClippingOffsets:E,popperEscapeOffsets:k,isReferenceHidden:T,hasPopperEscaped:P},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":P})}const xDn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wDn};function SDn(n,r,c){var u=Gx(n),d=[rg,ng].indexOf(u)>=0?-1:1,p=typeof c=="function"?c(Object.assign({},r,{placement:n})):c,m=p[0],x=p[1];return m=m||0,x=(x||0)*d,[rg,Cv].indexOf(u)>=0?{x,y:m}:{x:m,y:x}}function EDn(n){var r=n.state,c=n.options,u=n.name,d=c.offset,p=d===void 0?[0,0]:d,m=YNt.reduce(function(T,P){return T[P]=SDn(P,r.rects,p),T},{}),x=m[r.placement],E=x.x,k=x.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=E,r.modifiersData.popperOffsets.y+=k),r.modifiersData[u]=m}const kDn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EDn};function CDn(n){var r=n.state,c=n.name;r.modifiersData[c]=rjt({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const IDn={name:"popperOffsets",enabled:!0,phase:"read",fn:CDn,data:{}};function TDn(n){return n==="x"?"y":"x"}function ADn(n){var r=n.state,c=n.options,u=n.name,d=c.mainAxis,p=d===void 0?!0:d,m=c.altAxis,x=m===void 0?!1:m,E=c.boundary,k=c.rootBoundary,T=c.altBoundary,P=c.padding,I=c.tether,O=I===void 0?!0:I,N=c.tetherOffset,j=N===void 0?0:N,$=hq(r,{boundary:E,rootBoundary:k,padding:P,altBoundary:T}),L=Gx(r.placement),B=CD(r.placement),F=!B,X=UMe(L),te=TDn(X),Z=r.modifiersData.popperOffsets,H=r.rects.reference,ce=r.rects.popper,pe=typeof j=="function"?j(Object.assign({},r.rects,{placement:r.placement})):j,fe=typeof pe=="number"?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),ve=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ge={x:0,y:0};if(!!Z){if(p){var qe,Je=X==="y"?ng:rg,et=X==="y"?kv:Cv,jt=X==="y"?"height":"width",Me=Z[X],Ve=Me+$[Je],ye=Me-$[et],De=O?-ce[jt]/2:0,be=B===xD?H[jt]:ce[jt],xe=B===xD?-ce[jt]:-H[jt],Jt=r.elements.arrow,an=O&&Jt?zMe(Jt):{width:0,height:0},An=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:JNt(),Wn=An[Je],ir=An[et],Jn=dH(0,H[jt],an[jt]),Gr=F?H[jt]/2-De-Jn-Wn-fe.mainAxis:be-Jn-Wn-fe.mainAxis,Ze=F?-H[jt]/2+De+Jn+ir+fe.mainAxis:xe+Jn+ir+fe.mainAxis,ut=r.elements.arrow&&dW(r.elements.arrow),on=ut?X==="y"?ut.clientTop||0:ut.clientLeft||0:0,Ne=(qe=ve==null?void 0:ve[X])!=null?qe:0,at=Me+Gr-Ne-on,ae=Me+Ze-Ne,Ee=dH(O?Oce(Ve,at):Ve,Me,O?w7(ye,ae):ye);Z[X]=Ee,Ge[X]=Ee-Me}if(x){var Ie,tt=X==="x"?ng:rg,en=X==="x"?kv:Cv,gn=Z[te],In=te==="y"?"height":"width",cr=gn+$[tt],Ur=gn-$[en],eo=[ng,rg].indexOf(L)!==-1,Tr=(Ie=ve==null?void 0:ve[te])!=null?Ie:0,Uo=eo?cr:gn-H[In]-ce[In]-Tr+fe.altAxis,Se=eo?gn+H[In]+ce[In]-Tr-fe.altAxis:Ur,K=O&&eo?ZMn(Uo,gn,Se):dH(O?Uo:cr,gn,O?Se:Ur);Z[te]=K,Ge[te]=K-gn}r.modifiersData[u]=Ge}}const PDn={name:"preventOverflow",enabled:!0,phase:"main",fn:ADn,requiresIfExists:["offset"]};function ODn(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function _Dn(n){return n===Dw(n)||!yv(n)?HMe(n):ODn(n)}function MDn(n){var r=n.getBoundingClientRect(),c=ED(r.width)/n.offsetWidth||1,u=ED(r.height)/n.offsetHeight||1;return c!==1||u!==1}function DDn(n,r,c){c===void 0&&(c=!1);var u=yv(r),d=yv(r)&&MDn(r),p=Rk(r),m=kD(n,d),x={scrollLeft:0,scrollTop:0},E={x:0,y:0};return(u||!u&&!c)&&((Qx(r)!=="body"||WMe(p))&&(x=_Dn(r)),yv(r)?(E=kD(r,!0),E.x+=r.clientLeft,E.y+=r.clientTop):p&&(E.x=qMe(p))),{x:m.left+x.scrollLeft-E.x,y:m.top+x.scrollTop-E.y,width:m.width,height:m.height}}function NDn(n){var r=new Map,c=new Set,u=[];n.forEach(function(p){r.set(p.name,p)});function d(p){c.add(p.name);var m=[].concat(p.requires||[],p.requiresIfExists||[]);m.forEach(function(x){if(!c.has(x)){var E=r.get(x);E&&d(E)}}),u.push(p)}return n.forEach(function(p){c.has(p.name)||d(p)}),u}function jDn(n){var r=NDn(n);return WMn.reduce(function(c,u){return c.concat(r.filter(function(d){return d.phase===u}))},[])}function RDn(n){var r;return function(){return r||(r=new Promise(function(c){Promise.resolve().then(function(){r=void 0,c(n())})})),r}}function $Dn(n){var r=n.reduce(function(c,u){var d=c[u.name];return c[u.name]=d?Object.assign({},d,u,{options:Object.assign({},d.options,u.options),data:Object.assign({},d.data,u.data)}):u,c},{});return Object.keys(r).map(function(c){return r[c]})}var XIt={placement:"bottom",modifiers:[],strategy:"absolute"};function KIt(){for(var n=arguments.length,r=new Array(n),c=0;c({var:n,varRef:r?`var(${n}, ${r})`:`var(${n})`}),ed={arrowShadowColor:q_("--popper-arrow-shadow-color"),arrowSize:q_("--popper-arrow-size","8px"),arrowSizeHalf:q_("--popper-arrow-size-half"),arrowBg:q_("--popper-arrow-bg"),transformOrigin:q_("--popper-transform-origin"),arrowOffset:q_("--popper-arrow-offset")};function VDn(n){if(n.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(n.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var zDn={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},UDn=n=>zDn[n],YIt={scroll:!0,resize:!0};function HDn(n){let r;return typeof n=="object"?r={enabled:!0,options:{...YIt,...n}}:r={enabled:n,options:YIt},r}var qDn={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},effect:({state:n})=>()=>{const r=n.elements.reference;n.elements.popper.style.width=`${r.offsetWidth}px`}},WDn={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:n})=>{QIt(n)},effect:({state:n})=>()=>{QIt(n)}},QIt=n=>{n.elements.popper.style.setProperty(ed.transformOrigin.var,UDn(n.placement))},GDn={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:n})=>{XDn(n)}},XDn=n=>{var r;if(!n.placement)return;const c=KDn(n.placement);if(((r=n.elements)==null?void 0:r.arrow)&&c){Object.assign(n.elements.arrow.style,{[c.property]:c.value,width:ed.arrowSize.varRef,height:ed.arrowSize.varRef,zIndex:-1});const u={[ed.arrowSizeHalf.var]:`calc(${ed.arrowSize.varRef} / 2)`,[ed.arrowOffset.var]:`calc(${ed.arrowSizeHalf.varRef} * -1)`};for(const d in u)n.elements.arrow.style.setProperty(d,u[d])}},KDn=n=>{if(n.startsWith("top"))return{property:"bottom",value:ed.arrowOffset.varRef};if(n.startsWith("bottom"))return{property:"top",value:ed.arrowOffset.varRef};if(n.startsWith("left"))return{property:"right",value:ed.arrowOffset.varRef};if(n.startsWith("right"))return{property:"left",value:ed.arrowOffset.varRef}},YDn={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:n})=>{ZIt(n)},effect:({state:n})=>()=>{ZIt(n)}},ZIt=n=>{if(!n.elements.arrow)return;const r=n.elements.arrow.querySelector("[data-popper-arrow-inner]");!r||Object.assign(r.style,{transform:"rotate(45deg)",background:ed.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:VDn(n.placement)})},QDn={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ZDn={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function JDn(n,r="ltr"){var d;var c;const u=((c=QDn[n])==null?void 0:c[r])||n;return r==="ltr"?u:(d=ZDn[n])!=null?d:u}function GMe(n={}){const{enabled:r=!0,modifiers:c,placement:u="bottom",strategy:d="absolute",arrowPadding:p=8,eventListeners:m=!0,offset:x,gutter:E=8,flip:k=!0,boundary:T="clippingParents",preventOverflow:P=!0,matchWidth:I,direction:O="ltr"}=n,N=U.exports.useRef(null),j=U.exports.useRef(null),$=U.exports.useRef(null),L=JDn(u,O),B=U.exports.useRef(()=>{}),F=U.exports.useCallback(()=>{var fe;!r||!N.current||!j.current||((fe=B.current)==null||fe.call(B),$.current=BDn(N.current,j.current,{placement:L,modifiers:[YDn,GDn,WDn,{...qDn,enabled:!!I},{name:"eventListeners",...HDn(m)},{name:"arrow",options:{padding:p}},{name:"offset",options:{offset:x!=null?x:[0,E]}},{name:"flip",enabled:!!k,options:{padding:8}},{name:"preventOverflow",enabled:!!P,options:{boundary:T}},...c!=null?c:[]],strategy:d}),$.current.forceUpdate(),B.current=$.current.destroy)},[L,r,c,I,m,p,x,E,k,P,T,d]);U.exports.useEffect(()=>()=>{var fe;!N.current&&!j.current&&((fe=$.current)==null||fe.destroy(),$.current=null)},[]);const X=U.exports.useCallback(fe=>{N.current=fe,F()},[F]),te=U.exports.useCallback((fe={},ve=null)=>({...fe,ref:_u(X,ve)}),[X]),Z=U.exports.useCallback(fe=>{j.current=fe,F()},[F]),H=U.exports.useCallback((fe={},ve=null)=>({...fe,ref:_u(Z,ve),style:{...fe.style,position:d,minWidth:I?void 0:"max-content",inset:"0 auto auto 0"}}),[d,Z,I]),ce=U.exports.useCallback((fe={},ve=null)=>{const{size:Ge,shadowColor:qe,bg:Je,style:et,...jt}=fe;return{...jt,ref:ve,"data-popper-arrow":"",style:eNn(fe)}},[]),pe=U.exports.useCallback((fe={},ve=null)=>({...fe,ref:ve,"data-popper-arrow-inner":""}),[]);return{update(){var fe;(fe=$.current)==null||fe.update()},forceUpdate(){var fe;(fe=$.current)==null||fe.forceUpdate()},transformOrigin:ed.transformOrigin.varRef,referenceRef:X,popperRef:Z,getPopperProps:H,getArrowProps:ce,getArrowInnerProps:pe,getReferenceProps:te}}function eNn(n){const{size:r,shadowColor:c,bg:u,style:d}=n,p={...d,position:"absolute"};return r&&(p["--popper-arrow-size"]=r),c&&(p["--popper-arrow-shadow-color"]=c),u&&(p["--popper-arrow-bg"]=u),p}function XMe(n={}){const{onClose:r,onOpen:c,isOpen:u,id:d}=n,p=mh(c),m=mh(r),[x,E]=U.exports.useState(n.defaultIsOpen||!1),k=u!==void 0?u:x,T=u!==void 0,P=U.exports.useId(),I=d!=null?d:`disclosure-${P}`,O=U.exports.useCallback(()=>{T||E(!1),m==null||m()},[T,m]),N=U.exports.useCallback(()=>{T||E(!0),p==null||p()},[T,p]),j=U.exports.useCallback(()=>{k?O():N()},[k,N,O]);function $(B={}){return{...B,"aria-expanded":k,"aria-controls":I,onClick(F){var X;(X=B.onClick)==null||X.call(B,F),j()}}}function L(B={}){return{...B,hidden:!k,id:I}}return{isOpen:k,onOpen:N,onClose:O,onToggle:j,isControlled:T,getButtonProps:$,getDisclosureProps:L}}function tNn(n){const{ref:r,handler:c,enabled:u=!0}=n,d=mh(c),m=U.exports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;U.exports.useEffect(()=>{if(!u)return;const x=P=>{z9e(P,r)&&(m.isPointerDown=!0)},E=P=>{if(m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.isPointerDown&&c&&z9e(P,r)&&(m.isPointerDown=!1,d(P))},k=P=>{m.ignoreEmulatedMouseEvents=!0,c&&m.isPointerDown&&z9e(P,r)&&(m.isPointerDown=!1,d(P))},T=ijt(r.current);return T.addEventListener("mousedown",x,!0),T.addEventListener("mouseup",E,!0),T.addEventListener("touchstart",x,!0),T.addEventListener("touchend",k,!0),()=>{T.removeEventListener("mousedown",x,!0),T.removeEventListener("mouseup",E,!0),T.removeEventListener("touchstart",x,!0),T.removeEventListener("touchend",k,!0)}},[c,r,d,m,u])}function z9e(n,r){var c;const u=n.target;return n.button>0||u&&!ijt(u).contains(u)?!1:!((c=r.current)!=null&&c.contains(u))}function ijt(n){var r;return(r=n==null?void 0:n.ownerDocument)!=null?r:document}function ojt(n){const{isOpen:r,ref:c}=n,[u,d]=U.exports.useState(r),[p,m]=U.exports.useState(!1);return U.exports.useEffect(()=>{p||(d(r),m(!0))},[r,p,u]),y7(()=>c.current,"animationend",()=>{d(r)}),{present:!(r?!1:!u),onComplete(){var E;const k=SMn(c.current),T=new k.CustomEvent("animationend",{bubbles:!0});(E=c.current)==null||E.dispatchEvent(T)}}}function KMe(n){const{wasSelected:r,enabled:c,isSelected:u,mode:d="unmount"}=n;return!!(!c||u||d==="keepMounted"&&r)}var M7=(...n)=>n.filter(Boolean).join(" ");function nNn(n,...r){return rNn(n)?n(...r):n}var rNn=n=>typeof n=="function",iNn=n=>n?"":void 0;function JAe(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function oNn(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}function sNn(n){const{key:r}=n;return r.length===1||r.length>1&&/[^a-zA-Z0-9]/.test(r)}function aNn(n={}){const{timeout:r=300,preventDefault:c=()=>!0}=n,[u,d]=U.exports.useState([]),p=U.exports.useRef(),m=()=>{p.current&&(clearTimeout(p.current),p.current=null)},x=()=>{m(),p.current=setTimeout(()=>{d([]),p.current=null},r)};U.exports.useEffect(()=>m,[]);function E(k){return T=>{if(T.key==="Backspace"){const P=[...u];P.pop(),d(P);return}if(sNn(T)){const P=u.concat(T.key);c(T)&&(T.preventDefault(),T.stopPropagation()),d(P),k(P.join("")),x()}}}return E}function cNn(n,r,c,u){if(r==null)return u;if(!u)return n.find(m=>c(m).toLowerCase().startsWith(r.toLowerCase()));const d=n.filter(p=>c(p).toLowerCase().startsWith(r.toLowerCase()));if(d.length>0){let p;return d.includes(u)?(p=d.indexOf(u)+1,p===d.length&&(p=0),d[p]):(p=n.indexOf(d[0]),n[p])}return u}var[uNn,lNn,fNn,dNn]=J_e(),[hNn,hW]=kc({strict:!1,name:"MenuContext"});function pNn(n,...r){const c=U.exports.useId(),u=n||c;return U.exports.useMemo(()=>r.map(d=>`${d}-${u}`),[u,r])}function sjt(n){var r;return(r=n==null?void 0:n.ownerDocument)!=null?r:document}function JIt(n){return sjt(n).activeElement===n}function gNn(n={}){const{id:r,closeOnSelect:c=!0,closeOnBlur:u=!0,autoSelect:d=!0,isLazy:p,isOpen:m,defaultIsOpen:x,onClose:E,onOpen:k,placement:T="bottom-start",lazyBehavior:P="unmount",direction:I,computePositionOnMount:O=!1,...N}=n,j=U.exports.useRef(null),$=U.exports.useRef(null),L=fNn(),B=U.exports.useCallback(()=>{requestAnimationFrame(()=>{var be;(be=j.current)==null||be.focus({preventScroll:!1})})},[]),F=U.exports.useCallback(()=>{const be=setTimeout(()=>{const xe=L.firstEnabled();xe&&Ge(xe.index)});Me.current.add(be)},[L]),X=U.exports.useCallback(()=>{const be=setTimeout(()=>{const xe=L.lastEnabled();xe&&Ge(xe.index)});Me.current.add(be)},[L]),te=U.exports.useCallback(()=>{k==null||k(),d?F():B()},[d,F,B,k]),{isOpen:Z,onOpen:H,onClose:ce,onToggle:pe}=XMe({isOpen:m,defaultIsOpen:x,onClose:E,onOpen:te});tNn({enabled:Z&&u,ref:j,handler:be=>{var xe;(xe=$.current)!=null&&xe.contains(be.target)||ce()}});const fe=GMe({...N,enabled:Z||O,placement:T,direction:I}),[ve,Ge]=U.exports.useState(-1);mk(()=>{Z||Ge(-1)},[Z]),XNt(j,{focusRef:$,visible:Z,shouldFocus:!0});const qe=ojt({isOpen:Z,ref:j}),[Je,et]=pNn(r,"menu-button","menu-list"),jt=U.exports.useCallback(()=>{H(),B()},[H,B]),Me=U.exports.useRef(new Set([]));SNn(()=>{Me.current.forEach(be=>clearTimeout(be)),Me.current.clear()});const Ve=U.exports.useCallback(()=>{H(),F()},[F,H]),ye=U.exports.useCallback(()=>{H(),X()},[H,X]),De=U.exports.useCallback(()=>{var be,xe;const Jt=sjt(j.current),an=(be=j.current)==null?void 0:be.contains(Jt.activeElement);if(!(Z&&!an))return;const Wn=(xe=L.item(ve))==null?void 0:xe.node;Wn==null||Wn.focus()},[Z,ve,L]);return{openAndFocusMenu:jt,openAndFocusFirstItem:Ve,openAndFocusLastItem:ye,onTransitionEnd:De,unstable__animationState:qe,descendants:L,popper:fe,buttonId:Je,menuId:et,forceUpdate:fe.forceUpdate,orientation:"vertical",isOpen:Z,onToggle:pe,onOpen:H,onClose:ce,menuRef:j,buttonRef:$,focusedIndex:ve,closeOnSelect:c,closeOnBlur:u,autoSelect:d,setFocusedIndex:Ge,isLazy:p,lazyBehavior:P}}function bNn(n={},r=null){const c=hW(),{onToggle:u,popper:d,openAndFocusFirstItem:p,openAndFocusLastItem:m}=c,x=U.exports.useCallback(E=>{const k=E.key,P={Enter:p,ArrowDown:p,ArrowUp:m}[k];P&&(E.preventDefault(),E.stopPropagation(),P(E))},[p,m]);return{...n,ref:_u(c.buttonRef,r,d.referenceRef),id:c.buttonId,"data-active":iNn(c.isOpen),"aria-expanded":c.isOpen,"aria-haspopup":"menu","aria-controls":c.menuId,onClick:JAe(n.onClick,u),onKeyDown:JAe(n.onKeyDown,x)}}function ePe(n){var r;return wNn(n)&&!!((r=n==null?void 0:n.getAttribute("role"))!=null&&r.startsWith("menuitem"))}function mNn(n={},r=null){const c=hW();if(!c)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:u,setFocusedIndex:d,menuRef:p,isOpen:m,onClose:x,menuId:E,isLazy:k,lazyBehavior:T,unstable__animationState:P}=c,I=lNn(),O=aNn({preventDefault:L=>L.key!==" "&&ePe(L.target)}),N=U.exports.useCallback(L=>{const B=L.key,X={Tab:Z=>Z.preventDefault(),Escape:x,ArrowDown:()=>{const Z=I.nextEnabled(u);Z&&d(Z.index)},ArrowUp:()=>{const Z=I.prevEnabled(u);Z&&d(Z.index)}}[B];if(X){L.preventDefault(),X(L);return}const te=O(Z=>{const H=cNn(I.values(),Z,ce=>{var fe;var pe;return(fe=(pe=ce==null?void 0:ce.node)==null?void 0:pe.textContent)!=null?fe:""},I.item(u));if(H){const ce=I.indexOf(H.node);d(ce)}});ePe(L.target)&&te(L)},[I,u,O,x,d]),j=U.exports.useRef(!1);m&&(j.current=!0);const $=KMe({wasSelected:j.current,enabled:k,mode:T,isSelected:P.present});return{...n,ref:_u(p,r),children:$?n.children:null,tabIndex:-1,role:"menu",id:E,style:{...n.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:JAe(n.onKeyDown,N)}}function vNn(n={}){const{popper:r,isOpen:c}=hW();return r.getPopperProps({...n,style:{visibility:c?"visible":"hidden",...n.style}})}function ajt(n={},r=null){const{onMouseEnter:c,onMouseMove:u,onMouseLeave:d,onClick:p,isDisabled:m,isFocusable:x,closeOnSelect:E,type:k,...T}=n,P=hW(),{setFocusedIndex:I,focusedIndex:O,closeOnSelect:N,onClose:j,menuRef:$,isOpen:L,menuId:B}=P,F=U.exports.useRef(null),X=`${B}-menuitem-${U.exports.useId()}`,{index:te,register:Z}=dNn({disabled:m&&!x}),H=U.exports.useCallback(Je=>{c==null||c(Je),!m&&I(te)},[I,te,m,c]),ce=U.exports.useCallback(Je=>{u==null||u(Je),F.current&&!JIt(F.current)&&H(Je)},[H,u]),pe=U.exports.useCallback(Je=>{d==null||d(Je),!m&&I(-1)},[I,m,d]),fe=U.exports.useCallback(Je=>{p==null||p(Je),!!ePe(Je.currentTarget)&&(E!=null?E:N)&&j()},[j,p,N,E]),ve=te===O,Ge=m&&!x;mk(()=>{!L||(ve&&!Ge&&F.current?requestAnimationFrame(()=>{var Je;(Je=F.current)==null||Je.focus()}):$.current&&!JIt($.current)&&$.current.focus())},[ve,Ge,$,L]);const qe=BNt({onClick:fe,onMouseEnter:H,onMouseMove:ce,onMouseLeave:pe,ref:_u(Z,F,r),isDisabled:m,isFocusable:x});return{...T,...qe,type:k!=null?k:qe.type,id:X,role:"menuitem",tabIndex:ve?0:-1}}function yNn(n={},r=null){const{type:c="radio",isChecked:u,...d}=n;return{...ajt(d,r),role:`menuitem${c}`,"aria-checked":u}}function wNn(n){var c;if(!xNn(n))return!1;const r=(c=n.ownerDocument.defaultView)!=null?c:window;return n instanceof r.HTMLElement}function xNn(n){return n!=null&&typeof n=="object"&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE}function SNn(n,r=[]){return U.exports.useEffect(()=>()=>n(),r)}var[ENn,pW]=kc({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),cjt=n=>{const{children:r}=n,c=il("Menu",n),u=Ba(n),{direction:d}=Q7(),{descendants:p,...m}=gNn({...u,direction:d}),x=U.exports.useMemo(()=>m,[m]),{isOpen:E,onClose:k,forceUpdate:T}=x;return z(uNn,{value:p,children:z(hNn,{value:x,children:z(ENn,{value:c,children:nNn(r,{isOpen:E,onClose:k,forceUpdate:T})})})})};cjt.displayName="Menu";var kNn=kn((n,r)=>{const c=pW();return lt.createElement(Qt.button,{ref:r,...n,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...c.button}})}),ujt=kn((n,r)=>{const{children:c,as:u,...d}=n,p=bNn(d,r),m=u||kNn;return lt.createElement(m,{...p,className:M7("chakra-menu__menu-button",n.className)},lt.createElement(Qt.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},n.children))});ujt.displayName="MenuButton";var ljt=kn((n,r)=>{const c=pW();return lt.createElement(Qt.span,{ref:r,...n,__css:c.command,className:"chakra-menu__command"})});ljt.displayName="MenuCommand";var CNn=kn((n,r)=>{const{title:c,children:u,className:d,...p}=n,m=M7("chakra-menu__group__title",d),x=pW();return We("div",{ref:r,className:"chakra-menu__group",role:"group",children:[c&<.createElement(Qt.p,{className:m,...p,__css:x.groupTitle},c),u]})});CNn.displayName="MenuGroup";var qle=n=>{const{className:r,children:c,...u}=n,d=U.exports.Children.only(c),p=U.exports.isValidElement(d)?U.exports.cloneElement(d,{focusable:"false","aria-hidden":!0,className:M7("chakra-menu__icon",d.props.className)}):null,m=M7("chakra-menu__icon-wrapper",r);return lt.createElement(Qt.span,{className:m,...u,__css:{flexShrink:0}},p)};qle.displayName="MenuIcon";var fjt=kn((n,r)=>{const{type:c,...u}=n,d=pW(),p=u.as||c?c!=null?c:void 0:"button",m=U.exports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...d.item}),[d.item]);return lt.createElement(Qt.button,{ref:r,type:p,...u,__css:m})}),INn=n=>z("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...n,children:z("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),djt=kn((n,r)=>{const{icon:c,iconSpacing:u="0.75rem",...d}=n,p=yNn(d,r);return We(fjt,{...p,className:M7("chakra-menu__menuitem-option",d.className),children:[c!==null&&z(qle,{fontSize:"0.8em",marginEnd:u,opacity:n.isChecked?1:0,children:c||z(INn,{})}),z("span",{style:{flex:1},children:p.children})]})});djt.id="MenuItemOption";djt.displayName="MenuItemOption";var hjt=kn((n,r)=>{const{icon:c,iconSpacing:u="0.75rem",command:d,commandSpacing:p="0.75rem",children:m,...x}=n,E=ajt(x,r),T=c||d?z("span",{style:{pointerEvents:"none",flex:1},children:m}):m;return We(fjt,{...E,className:M7("chakra-menu__menuitem",E.className),children:[c&&z(qle,{fontSize:"0.8em",marginEnd:u,children:c}),T,d&&z(ljt,{marginStart:p,children:d})]})});hjt.displayName="MenuItem";var TNn={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},ANn=Qt(H1.div),pjt=kn(function(r,c){var O;var u;const{rootProps:d,motionProps:p,...m}=r,{isOpen:x,onTransitionEnd:E,unstable__animationState:k}=hW(),T=mNn(m,c),P=vNn(d),I=pW();return lt.createElement(Qt.div,{...P,__css:{zIndex:(O=r.zIndex)!=null?O:(u=I.list)==null?void 0:u.zIndex}},z(ANn,{variants:TNn,initial:!1,animate:x?"enter":"exit",__css:{outline:0,...I.list},...p,className:M7("chakra-menu__menu-list",T.className),...T,onUpdate:E,onAnimationComplete:oNn(k.onComplete,T.onAnimationComplete)}))});pjt.displayName="MenuList";var[PNn,ONn]=kc({strict:!1,name:"PortalManagerContext"});function gjt(n){const{children:r,zIndex:c}=n;return z(PNn,{value:{zIndex:c},children:r})}gjt.displayName="PortalManager";var[bjt,_Nn]=kc({strict:!1,name:"PortalContext"}),YMe="chakra-portal",MNn=".chakra-portal",DNn=n=>z("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:n.zIndex,top:0,left:0,right:0},children:n.children}),NNn=n=>{const{appendToParentPortal:r,children:c}=n,[u,d]=U.exports.useState(null),p=U.exports.useRef(null),[,m]=U.exports.useState({});U.exports.useEffect(()=>m({}),[]);const x=_Nn(),E=ONn();Iw(()=>{if(!u)return;const T=u.ownerDocument,P=r&&x!=null?x:T.body;if(!P)return;p.current=T.createElement("div"),p.current.className=YMe,P.appendChild(p.current),m({});const I=p.current;return()=>{P.contains(I)&&P.removeChild(I)}},[u]);const k=E!=null&&E.zIndex?z(DNn,{zIndex:E==null?void 0:E.zIndex,children:c}):c;return p.current?PS.exports.createPortal(z(bjt,{value:p.current,children:k}),p.current):z("span",{ref:T=>{T&&d(T)}})},jNn=n=>{const{children:r,containerRef:c,appendToParentPortal:u}=n,d=c.current,p=d!=null?d:typeof window<"u"?document.body:void 0,m=U.exports.useMemo(()=>{const E=d==null?void 0:d.ownerDocument.createElement("div");return E&&(E.className=YMe),E},[d]),[,x]=U.exports.useState({});return Iw(()=>x({}),[]),Iw(()=>{if(!(!m||!p))return p.appendChild(m),()=>{p.removeChild(m)}},[m,p]),p&&m?PS.exports.createPortal(z(bjt,{value:u?m:null,children:r}),m):null};function s3(n){const{containerRef:r,...c}=n;return r?z(jNn,{containerRef:r,...c}):z(NNn,{...c})}s3.defaultProps={appendToParentPortal:!0};s3.className=YMe;s3.selector=MNn;s3.displayName="Portal";var RNn=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},W_=new WeakMap,use=new WeakMap,lse={},U9e=0,mjt=function(n,r,c){r===void 0&&(r=RNn(n)),c===void 0&&(c="data-aria-hidden");var u=Array.isArray(n)?n:[n];lse[c]||(lse[c]=new WeakMap);var d=lse[c],p=[],m=new Set,x=function(k){!k||m.has(k)||(m.add(k),x(k.parentNode))};u.forEach(x);var E=function(k){!k||u.indexOf(k)>=0||Array.prototype.forEach.call(k.children,function(T){if(m.has(T))E(T);else{var P=T.getAttribute("aria-hidden"),I=P!==null&&P!=="false",O=(W_.get(T)||0)+1,N=(d.get(T)||0)+1;W_.set(T,O),d.set(T,N),p.push(T),O===1&&I&&use.set(T,!0),N===1&&T.setAttribute(c,"true"),I||T.setAttribute("aria-hidden","true")}})};return E(r),m.clear(),U9e++,function(){p.forEach(function(k){var T=W_.get(k)-1,P=d.get(k)-1;W_.set(k,T),d.set(k,P),T||(use.has(k)||k.removeAttribute("aria-hidden"),use.delete(k)),P||k.removeAttribute(c)}),U9e--,U9e||(W_=new WeakMap,W_=new WeakMap,use=new WeakMap,lse={})}};function $Nn(n,r){if(n==null)return{};var c={},u=Object.keys(n),d,p;for(p=0;p=0)&&(c[d]=n[d]);return c}var Nn={exports:{}},LNn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FNn=LNn,BNn=FNn;function vjt(){}function yjt(){}yjt.resetWarningCache=vjt;var VNn=function(){function n(u,d,p,m,x,E){if(E!==BNn){var k=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 k.name="Invariant Violation",k}}n.isRequired=n;function r(){return n}var c={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:yjt,resetWarningCache:vjt};return c.PropTypes=c,c};Nn.exports=VNn();var tPe="data-focus-lock",wjt="data-focus-lock-disabled",zNn="data-no-focus-lock",UNn="data-autofocus-inside",HNn="data-no-autofocus";function qNn(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function WNn(n,r){var c=U.exports.useState(function(){return{value:n,callback:r,facade:{get current(){return c.value},set current(u){var d=c.value;d!==u&&(c.value=u,c.callback(u,d))}}}})[0];return c.callback=r,c.facade}function QMe(n,r){return WNn(r||null,function(c){return n.forEach(function(u){return qNn(u,c)})})}var H9e={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var F1=function(){return F1=Object.assign||function(r){for(var c,u=1,d=arguments.length;u=0}).sort(sjn)},ajn=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],rDe=ajn.join(","),cjn="".concat(rDe,", [data-focus-guard]"),$jt=function(n,r){var c;return a3(((c=n.shadowRoot)===null||c===void 0?void 0:c.children)||n.children).reduce(function(u,d){return u.concat(d.matches(r?cjn:rDe)?[d]:[],$jt(d))},[])},iDe=function(n,r){return n.reduce(function(c,u){return c.concat($jt(u,r),u.parentNode?a3(u.parentNode.querySelectorAll(rDe)).filter(function(d){return d===u}):[])},[])},ujn=function(n){var r=n.querySelectorAll("[".concat(UNn,"]"));return a3(r).map(function(c){return iDe([c])}).reduce(function(c,u){return c.concat(u)},[])},oDe=function(n,r){return a3(n).filter(function(c){return _jt(r,c)}).filter(function(c){return rjn(c)})},e9t=function(n,r){return r===void 0&&(r=new Map),a3(n).filter(function(c){return Mjt(r,c)})},iPe=function(n,r,c){return Rjt(oDe(iDe(n,c),r),!0,c)},t9t=function(n,r){return Rjt(oDe(iDe(n),r),!1)},ljn=function(n,r){return oDe(ujn(n),r)},pq=function(n,r){return(n.shadowRoot?pq(n.shadowRoot,r):Object.getPrototypeOf(n).contains.call(n,r))||a3(n.children).some(function(c){return pq(c,r)})},fjn=function(n){for(var r=new Set,c=n.length,u=0;u0&&r.add(d),(p&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(u)}return n.filter(function(m,x){return!r.has(x)})},Ljt=function(n){return n.parentNode?Ljt(n.parentNode):n},sDe=function(n){var r=rPe(n);return r.filter(Boolean).reduce(function(c,u){var d=u.getAttribute(tPe);return c.push.apply(c,d?fjn(a3(Ljt(u).querySelectorAll("[".concat(tPe,'="').concat(d,'"]:not([').concat(wjt,'="disabled"])')))):[u]),c},[])},Fjt=function(n){return n.activeElement?n.activeElement.shadowRoot?Fjt(n.activeElement.shadowRoot):n.activeElement:void 0},aDe=function(){return document.activeElement?document.activeElement.shadowRoot?Fjt(document.activeElement.shadowRoot):document.activeElement:void 0},djn=function(n){return n===document.activeElement},hjn=function(n){return Boolean(a3(n.querySelectorAll("iframe")).some(function(r){return djn(r)}))},Bjt=function(n){var r=document&&aDe();return!r||r.dataset&&r.dataset.focusGuard?!1:sDe(n).some(function(c){return pq(c,r)||hjn(c)})},pjn=function(){var n=document&&aDe();return n?a3(document.querySelectorAll("[".concat(zNn,"]"))).some(function(r){return pq(r,n)}):!1},gjn=function(n,r){return r.filter(jjt).filter(function(c){return c.name===n.name}).filter(function(c){return c.checked})[0]||n},cDe=function(n,r){return jjt(n)&&n.name?gjn(n,r):n},bjn=function(n){var r=new Set;return n.forEach(function(c){return r.add(cDe(c,n))}),n.filter(function(c){return r.has(c)})},n9t=function(n){return n[0]&&n.length>1?cDe(n[0],n):n[0]},r9t=function(n,r){return n.length>1?n.indexOf(cDe(n[r],n)):r},Vjt="NEW_FOCUS",mjn=function(n,r,c,u){var d=n.length,p=n[0],m=n[d-1],x=nDe(c);if(!(c&&n.indexOf(c)>=0)){var E=c!==void 0?r.indexOf(c):-1,k=u?r.indexOf(u):E,T=u?n.indexOf(u):-1,P=E-k,I=r.indexOf(p),O=r.indexOf(m),N=bjn(r),j=c!==void 0?N.indexOf(c):-1,$=j-(u?N.indexOf(u):E),L=r9t(n,0),B=r9t(n,d-1);if(E===-1||T===-1)return Vjt;if(!P&&T>=0)return T;if(E<=I&&x&&Math.abs(P)>1)return B;if(E>=O&&x&&Math.abs(P)>1)return L;if(P&&Math.abs($)>1)return T;if(E<=I)return B;if(E>O)return L;if(P)return Math.abs(P)>1?T:(d+T+P)%d}},oPe=function(n,r){return r===void 0&&(r=[]),r.push(n),n.parentNode&&oPe(n.parentNode.host||n.parentNode,r),r},q9e=function(n,r){for(var c=oPe(n),u=oPe(r),d=0;d=0)return p}return!1},zjt=function(n,r,c){var u=rPe(n),d=rPe(r),p=u[0],m=!1;return d.filter(Boolean).forEach(function(x){m=q9e(m||x,x)||m,c.filter(Boolean).forEach(function(E){var k=q9e(p,E);k&&(!m||pq(k,m)?m=k:m=q9e(k,m))})}),m},vjn=function(n,r){return n.reduce(function(c,u){return c.concat(ljn(u,r))},[])},yjn=function(n){return function(r){var c;return r.autofocus||!!(!((c=Djt(r))===null||c===void 0)&&c.autofocus)||n.indexOf(r)>=0}},wjn=function(n,r){var c=new Map;return r.forEach(function(u){return c.set(u.node,u)}),n.map(function(u){return c.get(u)}).filter(ojn)},xjn=function(n,r){var c=document&&aDe(),u=sDe(n).filter(_ce),d=zjt(c||n,n,u),p=new Map,m=t9t(u,p),x=iPe(u,p).filter(function(O){var N=O.node;return _ce(N)});if(!(!x[0]&&(x=m,!x[0]))){var E=t9t([d],p).map(function(O){var N=O.node;return N}),k=wjn(E,x),T=k.map(function(O){var N=O.node;return N}),P=mjn(T,E,c,r);if(P===Vjt){var I=e9t(m.map(function(O){var N=O.node;return N})).filter(yjn(vjn(u,p)));return{node:I&&I.length?n9t(I):n9t(e9t(T))}}return P===void 0?P:k[P]}},Sjn=function(n){var r=sDe(n).filter(_ce),c=zjt(n,n,r),u=new Map,d=iPe([c],u,!0),p=iPe(r,u).filter(function(m){var x=m.node;return _ce(x)}).map(function(m){var x=m.node;return x});return d.map(function(m){var x=m.node,E=m.index;return{node:x,index:E,lockItem:p.indexOf(x)>=0,guard:nDe(x)}})},Ejn=function(n,r){"focus"in n&&n.focus(r),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus()},W9e=0,G9e=!1,kjn=function(n,r,c){c===void 0&&(c={});var u=xjn(n,r);if(!G9e&&u){if(W9e>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),G9e=!0,setTimeout(function(){G9e=!1},1);return}W9e++,Ejn(u.node,c.focusOptions),W9e--}};const Ujt=kjn;function Hjt(n){var r=window,c=r.setImmediate;typeof c<"u"?c(n):setTimeout(n,1)}var Cjn=function(){return document&&document.activeElement===document.body},Ijn=function(){return Cjn()||pjn()},eD=null,DM=null,tD=null,gq=!1,Tjn=function(){return!0},Ajn=function(r){return(eD.whiteList||Tjn)(r)},Pjn=function(r,c){tD={observerNode:r,portaledElement:c}},Ojn=function(r){return tD&&tD.portaledElement===r};function i9t(n,r,c,u){var d=null,p=n;do{var m=u[p];if(m.guard)m.node.dataset.focusAutoGuard&&(d=m);else if(m.lockItem){if(p!==n)return;d=null}else break}while((p+=c)!==r);d&&(d.node.tabIndex=0)}var _jn=function(r){return r&&"current"in r?r.current:r},Mjn=function(r){return r?Boolean(gq):gq==="meanwhile"},Djn=function n(r,c,u){return c&&(c.host===r&&(!c.activeElement||u.contains(c.activeElement))||c.parentNode&&n(r,c.parentNode,u))},Njn=function(r,c){return c.some(function(u){return Djn(r,u,u)})},Mce=function(){var r=!1;if(eD){var c=eD,u=c.observed,d=c.persistentFocus,p=c.autoFocus,m=c.shards,x=c.crossFrame,E=c.focusOptions,k=u||tD&&tD.portaledElement,T=document&&document.activeElement;if(k){var P=[k].concat(m.map(_jn).filter(Boolean));if((!T||Ajn(T))&&(d||Mjn(x)||!Ijn()||!DM&&p)&&(k&&!(Bjt(P)||T&&Njn(T,P)||Ojn(T))&&(document&&!DM&&T&&!p?(T.blur&&T.blur(),document.body.focus()):(r=Ujt(P,DM,{focusOptions:E}),tD={})),gq=!1,DM=document&&document.activeElement),document){var I=document&&document.activeElement,O=Sjn(P),N=O.map(function(j){var $=j.node;return $}).indexOf(I);N>-1&&(O.filter(function(j){var $=j.guard,L=j.node;return $&&L.dataset.focusAutoGuard}).forEach(function(j){var $=j.node;return $.removeAttribute("tabIndex")}),i9t(N,O.length,1,O),i9t(N,-1,-1,O))}}}return r},qjt=function(r){Mce()&&r&&(r.stopPropagation(),r.preventDefault())},uDe=function(){return Hjt(Mce)},jjn=function(r){var c=r.target,u=r.currentTarget;u.contains(c)||Pjn(u,c)},Rjn=function(){return null},Wjt=function(){gq="just",setTimeout(function(){gq="meanwhile"},0)},$jn=function(){document.addEventListener("focusin",qjt),document.addEventListener("focusout",uDe),window.addEventListener("blur",Wjt)},Ljn=function(){document.removeEventListener("focusin",qjt),document.removeEventListener("focusout",uDe),window.removeEventListener("blur",Wjt)};function Fjn(n){return n.filter(function(r){var c=r.disabled;return!c})}function Bjn(n){var r=n.slice(-1)[0];r&&!eD&&$jn();var c=eD,u=c&&r&&r.id===c.id;eD=r,c&&!u&&(c.onDeactivation(),n.filter(function(d){var p=d.id;return p===c.id}).length||c.returnFocus(!r)),r?(DM=null,(!u||c.observed!==r.observed)&&r.onActivation(),Mce(),Hjt(Mce)):(Ljn(),DM=null)}Ijt.assignSyncMedium(jjn);Tjt.assignMedium(uDe);GNn.assignMedium(function(n){return n({moveFocusInside:Ujt,focusInside:Bjt})});const Vjn=ZNn(Fjn,Bjn)(Rjn);var Gjt=U.exports.forwardRef(function(r,c){return z(Ajt,{sideCar:Vjn,ref:c,...r})}),Xjt=Ajt.propTypes||{};Xjt.sideCar;$Nn(Xjt,["sideCar"]);Gjt.propTypes={};const zjn=Gjt;var Kjt=n=>{const{initialFocusRef:r,finalFocusRef:c,contentRef:u,restoreFocus:d,children:p,isDisabled:m,autoFocus:x,persistentFocus:E,lockFocusAcrossFrames:k}=n,T=U.exports.useCallback(()=>{r!=null&&r.current?r.current.focus():u!=null&&u.current&&GNt(u.current).length===0&&requestAnimationFrame(()=>{var N;(N=u.current)==null||N.focus()})},[r,u]),P=U.exports.useCallback(()=>{var O;(O=c==null?void 0:c.current)==null||O.focus()},[c]);return z(zjn,{crossFrame:k,persistentFocus:E,autoFocus:x,disabled:m,onActivation:T,onDeactivation:P,returnFocus:d&&!c,children:p})};Kjt.displayName="FocusLock";var pH="right-scroll-bar-position",gH="width-before-scroll-bar",Ujn="with-scroll-bars-hidden",Hjn="--removed-body-scroll-bar-size",Yjt=eDe(),X9e=function(){},Wle=U.exports.forwardRef(function(n,r){var c=U.exports.useRef(null),u=U.exports.useState({onScrollCapture:X9e,onWheelCapture:X9e,onTouchMoveCapture:X9e}),d=u[0],p=u[1],m=n.forwardProps,x=n.children,E=n.className,k=n.removeScrollBar,T=n.enabled,P=n.shards,I=n.sideCar,O=n.noIsolation,N=n.inert,j=n.allowPinchZoom,$=n.as,L=$===void 0?"div":$,B=ZMe(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),F=I,X=QMe([c,r]),te=F1(F1({},B),d);return We(Si,{children:[T&&z(F,{sideCar:Yjt,removeScrollBar:k,shards:P,noIsolation:O,inert:N,setCallbacks:p,allowPinchZoom:!!j,lockRef:c}),m?U.exports.cloneElement(U.exports.Children.only(x),F1(F1({},te),{ref:X})):z(L,{...F1({},te,{className:E,ref:X}),children:x})]})});Wle.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wle.classNames={fullWidth:gH,zeroRight:pH};var qjn=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wjn(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=qjn();return r&&n.setAttribute("nonce",r),n}function Gjn(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function Xjn(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Kjn=function(){var n=0,r=null;return{add:function(c){n==0&&(r=Wjn())&&(Gjn(r,c),Xjn(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Yjn=function(){var n=Kjn();return function(r,c){U.exports.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&c])}},lDe=function(){var n=Yjn(),r=function(c){var u=c.styles,d=c.dynamic;return n(u,d),null};return r},Qjn={left:0,top:0,right:0,gap:0},K9e=function(n){return parseInt(n||"",10)||0},Zjn=function(n){var r=window.getComputedStyle(document.body),c=r[n==="padding"?"paddingLeft":"marginLeft"],u=r[n==="padding"?"paddingTop":"marginTop"],d=r[n==="padding"?"paddingRight":"marginRight"];return[K9e(c),K9e(u),K9e(d)]},Jjn=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Qjn;var r=Zjn(n),c=document.documentElement.clientWidth,u=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,u-c+r[2]-r[0])}},eRn=lDe(),tRn=function(n,r,c,u){var d=n.left,p=n.top,m=n.right,x=n.gap;return c===void 0&&(c="margin"),` + .`.concat(Ujn,` { + overflow: hidden `).concat(u,`; + padding-right: `).concat(x,"px ").concat(u,`; + } + body { + overflow: hidden `).concat(u,`; + overscroll-behavior: contain; + `).concat([r&&"position: relative ".concat(u,";"),c==="margin"&&` + padding-left: `.concat(d,`px; + padding-top: `).concat(p,`px; + padding-right: `).concat(m,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(x,"px ").concat(u,`; + `),c==="padding"&&"padding-right: ".concat(x,"px ").concat(u,";")].filter(Boolean).join(""),` + } + + .`).concat(pH,` { + right: `).concat(x,"px ").concat(u,`; + } + + .`).concat(gH,` { + margin-right: `).concat(x,"px ").concat(u,`; + } + + .`).concat(pH," .").concat(pH,` { + right: 0 `).concat(u,`; + } + + .`).concat(gH," .").concat(gH,` { + margin-right: 0 `).concat(u,`; + } + + body { + `).concat(Hjn,": ").concat(x,`px; + } +`)},Qjt=function(n){var r=n.noRelative,c=n.noImportant,u=n.gapMode,d=u===void 0?"margin":u,p=U.exports.useMemo(function(){return Jjn(d)},[d]);return z(eRn,{styles:tRn(p,!r,d,c?"":"!important")})},sPe=!1;if(typeof window<"u")try{var fse=Object.defineProperty({},"passive",{get:function(){return sPe=!0,!0}});window.addEventListener("test",fse,fse),window.removeEventListener("test",fse,fse)}catch{sPe=!1}var G_=sPe?{passive:!1}:!1,nRn=function(n){return n.tagName==="TEXTAREA"},Zjt=function(n,r){var c=window.getComputedStyle(n);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!nRn(n)&&c[r]==="visible")},rRn=function(n){return Zjt(n,"overflowY")},iRn=function(n){return Zjt(n,"overflowX")},o9t=function(n,r){var c=r;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var u=Jjt(n,c);if(u){var d=eRt(n,c),p=d[1],m=d[2];if(p>m)return!0}c=c.parentNode}while(c&&c!==document.body);return!1},oRn=function(n){var r=n.scrollTop,c=n.scrollHeight,u=n.clientHeight;return[r,c,u]},sRn=function(n){var r=n.scrollLeft,c=n.scrollWidth,u=n.clientWidth;return[r,c,u]},Jjt=function(n,r){return n==="v"?rRn(r):iRn(r)},eRt=function(n,r){return n==="v"?oRn(r):sRn(r)},aRn=function(n,r){return n==="h"&&r==="rtl"?-1:1},cRn=function(n,r,c,u,d){var p=aRn(n,window.getComputedStyle(r).direction),m=p*u,x=c.target,E=r.contains(x),k=!1,T=m>0,P=0,I=0;do{var O=eRt(n,x),N=O[0],j=O[1],$=O[2],L=j-$-p*N;(N||L)&&Jjt(n,x)&&(P+=L,I+=N),x=x.parentNode}while(!E&&x!==document.body||E&&(r.contains(x)||r===x));return(T&&(d&&P===0||!d&&m>P)||!T&&(d&&I===0||!d&&-m>I))&&(k=!0),k},dse=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},s9t=function(n){return[n.deltaX,n.deltaY]},a9t=function(n){return n&&"current"in n?n.current:n},uRn=function(n,r){return n[0]===r[0]&&n[1]===r[1]},lRn=function(n){return` + .block-interactivity-`.concat(n,` {pointer-events: none;} + .allow-interactivity-`).concat(n,` {pointer-events: all;} +`)},fRn=0,X_=[];function dRn(n){var r=U.exports.useRef([]),c=U.exports.useRef([0,0]),u=U.exports.useRef(),d=U.exports.useState(fRn++)[0],p=U.exports.useState(function(){return lDe()})[0],m=U.exports.useRef(n);U.exports.useEffect(function(){m.current=n},[n]),U.exports.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var j=xjt([n.lockRef.current],(n.shards||[]).map(a9t),!0).filter(Boolean);return j.forEach(function($){return $.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),j.forEach(function($){return $.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var x=U.exports.useCallback(function(j,$){if("touches"in j&&j.touches.length===2)return!m.current.allowPinchZoom;var L=dse(j),B=c.current,F="deltaX"in j?j.deltaX:B[0]-L[0],X="deltaY"in j?j.deltaY:B[1]-L[1],te,Z=j.target,H=Math.abs(F)>Math.abs(X)?"h":"v";if("touches"in j&&H==="h"&&Z.type==="range")return!1;var ce=o9t(H,Z);if(!ce)return!0;if(ce?te=H:(te=H==="v"?"h":"v",ce=o9t(H,Z)),!ce)return!1;if(!u.current&&"changedTouches"in j&&(F||X)&&(u.current=te),!te)return!0;var pe=u.current||te;return cRn(pe,$,j,pe==="h"?F:X,!0)},[]),E=U.exports.useCallback(function(j){var $=j;if(!(!X_.length||X_[X_.length-1]!==p)){var L="deltaY"in $?s9t($):dse($),B=r.current.filter(function(te){return te.name===$.type&&te.target===$.target&&uRn(te.delta,L)})[0];if(B&&B.should){$.cancelable&&$.preventDefault();return}if(!B){var F=(m.current.shards||[]).map(a9t).filter(Boolean).filter(function(te){return te.contains($.target)}),X=F.length>0?x($,F[0]):!m.current.noIsolation;X&&$.cancelable&&$.preventDefault()}}},[]),k=U.exports.useCallback(function(j,$,L,B){var F={name:j,delta:$,target:L,should:B};r.current.push(F),setTimeout(function(){r.current=r.current.filter(function(X){return X!==F})},1)},[]),T=U.exports.useCallback(function(j){c.current=dse(j),u.current=void 0},[]),P=U.exports.useCallback(function(j){k(j.type,s9t(j),j.target,x(j,n.lockRef.current))},[]),I=U.exports.useCallback(function(j){k(j.type,dse(j),j.target,x(j,n.lockRef.current))},[]);U.exports.useEffect(function(){return X_.push(p),n.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:I}),document.addEventListener("wheel",E,G_),document.addEventListener("touchmove",E,G_),document.addEventListener("touchstart",T,G_),function(){X_=X_.filter(function(j){return j!==p}),document.removeEventListener("wheel",E,G_),document.removeEventListener("touchmove",E,G_),document.removeEventListener("touchstart",T,G_)}},[]);var O=n.removeScrollBar,N=n.inert;return We(Si,{children:[N?z(p,{styles:lRn(d)}):null,O?z(Qjt,{gapMode:"margin"}):null]})}const hRn=Cjt(Yjt,dRn);var tRt=U.exports.forwardRef(function(n,r){return z(Wle,{...F1({},n,{ref:r,sideCar:hRn})})});tRt.classNames=Wle.classNames;const pRn=tRt;var eT=(...n)=>n.filter(Boolean).join(" ");function PU(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var gRn=class{constructor(){Yu(this,"modals");this.modals=[]}add(n){this.modals.push(n)}remove(n){this.modals=this.modals.filter(r=>r!==n)}isTopModal(n){return this.modals[this.modals.length-1]===n}},aPe=new gRn;function bRn(n,r){U.exports.useEffect(()=>(r&&aPe.add(n),()=>{aPe.remove(n)}),[r,n])}function mRn(n){const{isOpen:r,onClose:c,id:u,closeOnOverlayClick:d=!0,closeOnEsc:p=!0,useInert:m=!0,onOverlayClick:x,onEsc:E}=n,k=U.exports.useRef(null),T=U.exports.useRef(null),[P,I,O]=yRn(u,"chakra-modal","chakra-modal--header","chakra-modal--body");vRn(k,r&&m),bRn(k,r);const N=U.exports.useRef(null),j=U.exports.useCallback(ce=>{N.current=ce.target},[]),$=U.exports.useCallback(ce=>{ce.key==="Escape"&&(ce.stopPropagation(),p&&(c==null||c()),E==null||E())},[p,c,E]),[L,B]=U.exports.useState(!1),[F,X]=U.exports.useState(!1),te=U.exports.useCallback((ce={},pe=null)=>({role:"dialog",...ce,ref:_u(pe,k),id:P,tabIndex:-1,"aria-modal":!0,"aria-labelledby":L?I:void 0,"aria-describedby":F?O:void 0,onClick:PU(ce.onClick,fe=>fe.stopPropagation())}),[O,F,P,I,L]),Z=U.exports.useCallback(ce=>{ce.stopPropagation(),N.current===ce.target&&(!aPe.isTopModal(k)||(d&&(c==null||c()),x==null||x()))},[c,d,x]),H=U.exports.useCallback((ce={},pe=null)=>({...ce,ref:_u(pe,T),onClick:PU(ce.onClick,Z),onKeyDown:PU(ce.onKeyDown,$),onMouseDown:PU(ce.onMouseDown,j)}),[$,j,Z]);return{isOpen:r,onClose:c,headerId:I,bodyId:O,setBodyMounted:X,setHeaderMounted:B,dialogRef:k,overlayRef:T,getDialogProps:te,getDialogContainerProps:H}}function vRn(n,r){const c=n.current;U.exports.useEffect(()=>{if(!(!n.current||!r))return mjt(n.current)},[r,n,c])}function yRn(n,...r){const c=U.exports.useId(),u=n||c;return U.exports.useMemo(()=>r.map(d=>`${d}-${u}`),[u,r])}var[wRn,tT]=kc({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[xRn,wk]=kc({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),fDe=n=>{const{portalProps:r,children:c,autoFocus:u,trapFocus:d,initialFocusRef:p,finalFocusRef:m,returnFocusOnClose:x,blockScrollOnMount:E,allowPinchZoom:k,preserveScrollBarGap:T,motionPreset:P,lockFocusAcrossFrames:I,onCloseComplete:O}=n,N=il("Modal",n),$={...mRn(n),autoFocus:u,trapFocus:d,initialFocusRef:p,finalFocusRef:m,returnFocusOnClose:x,blockScrollOnMount:E,allowPinchZoom:k,preserveScrollBarGap:T,motionPreset:P,lockFocusAcrossFrames:I};return z(xRn,{value:$,children:z(wRn,{value:N,children:z(_S,{onExitComplete:O,children:$.isOpen&&z(s3,{...r,children:c})})})})};fDe.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};fDe.displayName="Modal";var nRt=kn((n,r)=>{const{className:c,...u}=n,{bodyId:d,setBodyMounted:p}=wk();U.exports.useEffect(()=>(p(!0),()=>p(!1)),[p]);const m=eT("chakra-modal__body",c),x=tT();return lt.createElement(Qt.div,{ref:r,className:m,id:d,...u,__css:x.body})});nRt.displayName="ModalBody";var rRt=kn((n,r)=>{const{onClick:c,className:u,...d}=n,{onClose:p}=wk(),m=eT("chakra-modal__close-btn",u),x=tT();return z(uW,{ref:r,__css:x.closeButton,className:m,onClick:PU(c,E=>{E.stopPropagation(),p()}),...d})});rRt.displayName="ModalCloseButton";function iRt(n){const{autoFocus:r,trapFocus:c,dialogRef:u,initialFocusRef:d,blockScrollOnMount:p,allowPinchZoom:m,finalFocusRef:x,returnFocusOnClose:E,preserveScrollBarGap:k,lockFocusAcrossFrames:T}=wk(),[P,I]=bMe();return U.exports.useEffect(()=>{!P&&I&&setTimeout(I)},[P,I]),z(Kjt,{autoFocus:r,isDisabled:!c,initialFocusRef:d,finalFocusRef:x,restoreFocus:E,contentRef:u,lockFocusAcrossFrames:T,children:z(pRn,{removeScrollBar:!k,allowPinchZoom:m,enabled:p,forwardProps:!0,children:n.children})})}var SRn={slideInBottom:{...WAe,custom:{offsetY:16,reverse:!0}},slideInRight:{...WAe,custom:{offsetX:16,reverse:!0}},scale:{...sNt,custom:{initialScale:.95,reverse:!0}},none:{}},ERn=Qt(H1.section),kRn=n=>SRn[n||"none"],oRt=U.exports.forwardRef((n,r)=>{const{preset:c,motionProps:u=kRn(c),...d}=n;return z(ERn,{ref:r,...u,...d})});oRt.displayName="ModalTransition";var dDe=kn((n,r)=>{const{className:c,children:u,containerProps:d,motionProps:p,...m}=n,{getDialogProps:x,getDialogContainerProps:E}=wk(),k=x(m,r),T=E(d),P=eT("chakra-modal__content",c),I=tT(),O={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...I.dialog},N={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...I.dialogContainer},{motionPreset:j}=wk();return lt.createElement(iRt,null,lt.createElement(Qt.div,{...T,className:"chakra-modal__content-container",tabIndex:-1,__css:N},z(oRt,{preset:j,motionProps:p,className:P,...k,__css:O,children:u})))});dDe.displayName="ModalContent";var CRn=kn((n,r)=>{const{className:c,...u}=n,d=eT("chakra-modal__footer",c),p=tT(),m={display:"flex",alignItems:"center",justifyContent:"flex-end",...p.footer};return lt.createElement(Qt.footer,{ref:r,...u,__css:m,className:d})});CRn.displayName="ModalFooter";var sRt=kn((n,r)=>{const{className:c,...u}=n,{headerId:d,setHeaderMounted:p}=wk();U.exports.useEffect(()=>(p(!0),()=>p(!1)),[p]);const m=eT("chakra-modal__header",c),x=tT(),E={flex:0,...x.header};return lt.createElement(Qt.header,{ref:r,className:m,id:d,...u,__css:E})});sRt.displayName="ModalHeader";var IRn=Qt(H1.div),aRt=kn((n,r)=>{const{className:c,transition:u,motionProps:d,...p}=n,m=eT("chakra-modal__overlay",c),x=tT(),E={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...x.overlay},{motionPreset:k}=wk();return z(IRn,{...d||(k==="none"?{}:iNt),__css:E,ref:r,className:m,...p})});aRt.displayName="ModalOverlay";kn((n,r)=>z(dDe,{ref:r,role:"alertdialog",...n}));var[gur,TRn]=kc(),ARn=Qt(aNt),PRn=kn((n,r)=>{const{className:c,children:u,motionProps:d,containerProps:p,...m}=n,{getDialogProps:x,getDialogContainerProps:E,isOpen:k}=wk(),T=x(m,r),P=E(p),I=eT("chakra-modal__content",c),O=tT(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...O.dialog},j={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...O.dialogContainer},{placement:$}=TRn();return lt.createElement(iRt,null,lt.createElement(Qt.div,{...P,className:"chakra-modal__content-container",__css:j},z(ARn,{motionProps:d,direction:$,in:k,className:I,...T,__css:N,children:u})))});PRn.displayName="DrawerContent";function ORn(n,r){const c=mh(n);U.exports.useEffect(()=>{let u=null;const d=()=>c();return r!==null&&(u=window.setInterval(d,r)),()=>{u&&window.clearInterval(u)}},[r,c])}var cRt=(...n)=>n.filter(Boolean).join(" "),Y9e=n=>n?!0:void 0;function yx(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var _Rn=n=>z(To,{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),MRn=n=>z(To,{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function c9t(n,r,c,u){U.exports.useEffect(()=>{var x;if(!n.current||!u)return;const d=(x=n.current.ownerDocument.defaultView)!=null?x:window,p=Array.isArray(r)?r:[r],m=new d.MutationObserver(E=>{for(const k of E)k.type==="attributes"&&k.attributeName&&p.includes(k.attributeName)&&c(k)});return m.observe(n.current,{attributes:!0,attributeFilter:p}),()=>m.disconnect()})}var DRn=50,u9t=300;function NRn(n,r){const[c,u]=U.exports.useState(!1),[d,p]=U.exports.useState(null),[m,x]=U.exports.useState(!0),E=U.exports.useRef(null),k=()=>clearTimeout(E.current);ORn(()=>{d==="increment"&&n(),d==="decrement"&&r()},c?DRn:null);const T=U.exports.useCallback(()=>{m&&n(),E.current=setTimeout(()=>{x(!1),u(!0),p("increment")},u9t)},[n,m]),P=U.exports.useCallback(()=>{m&&r(),E.current=setTimeout(()=>{x(!1),u(!0),p("decrement")},u9t)},[r,m]),I=U.exports.useCallback(()=>{x(!0),u(!1),k()},[]);return U.exports.useEffect(()=>()=>k(),[]),{up:T,down:P,stop:I,isSpinning:c}}var jRn=/^[Ee0-9+\-.]$/;function RRn(n){return jRn.test(n)}function $Rn(n,r){if(n.key==null)return!0;const c=n.ctrlKey||n.altKey||n.metaKey;return!(n.key.length===1)||c?!0:r(n.key)}function uRt(n={}){const{focusInputOnChange:r=!0,clampValueOnBlur:c=!0,keepWithinRange:u=!0,min:d=Number.MIN_SAFE_INTEGER,max:p=Number.MAX_SAFE_INTEGER,step:m=1,isReadOnly:x,isDisabled:E,isRequired:k,isInvalid:T,pattern:P="[0-9]*(.[0-9]+)?",inputMode:I="decimal",allowMouseWheel:O,id:N,onChange:j,precision:$,name:L,"aria-describedby":B,"aria-label":F,"aria-labelledby":X,onFocus:te,onBlur:Z,onInvalid:H,getAriaValueText:ce,isValidCharacter:pe,format:fe,parse:ve,...Ge}=n,qe=mh(te),Je=mh(Z),et=mh(H),jt=mh(pe!=null?pe:RRn),Me=mh(ce),Ve=T_n(n),{update:ye,increment:De,decrement:be}=Ve,[xe,Jt]=U.exports.useState(!1),an=!(x||E),An=U.exports.useRef(null),Wn=U.exports.useRef(null),ir=U.exports.useRef(null),Jn=U.exports.useRef(null),Gr=U.exports.useCallback(K=>K.split("").filter(jt).join(""),[jt]),Ze=U.exports.useCallback(K=>{var ie;return(ie=ve==null?void 0:ve(K))!=null?ie:K},[ve]),ut=U.exports.useCallback(K=>{var ie;return((ie=fe==null?void 0:fe(K))!=null?ie:K).toString()},[fe]);mk(()=>{(Ve.valueAsNumber>p||Ve.valueAsNumber{if(!An.current)return;if(An.current.value!=Ve.value){const ie=Ze(An.current.value);Ve.setValue(Gr(ie))}},[Ze,Gr]);const on=U.exports.useCallback((K=m)=>{an&&De(K)},[De,an,m]),Ne=U.exports.useCallback((K=m)=>{an&&be(K)},[be,an,m]),at=NRn(on,Ne);c9t(ir,"disabled",at.stop,at.isSpinning),c9t(Jn,"disabled",at.stop,at.isSpinning);const ae=U.exports.useCallback(K=>{if(K.nativeEvent.isComposing)return;const ke=Ze(K.currentTarget.value);ye(Gr(ke)),Wn.current={start:K.currentTarget.selectionStart,end:K.currentTarget.selectionEnd}},[ye,Gr,Ze]),Ee=U.exports.useCallback(K=>{var ke,nt;var ie;qe==null||qe(K),Wn.current&&(K.target.selectionStart=(ke=Wn.current.start)!=null?ke:(ie=K.currentTarget.value)==null?void 0:ie.length,K.currentTarget.selectionEnd=(nt=Wn.current.end)!=null?nt:K.currentTarget.selectionStart)},[qe]),Ie=U.exports.useCallback(K=>{if(K.nativeEvent.isComposing)return;$Rn(K,jt)||K.preventDefault();const ie=tt(K)*m,ke=K.key,Nt={ArrowUp:()=>on(ie),ArrowDown:()=>Ne(ie),Home:()=>ye(d),End:()=>ye(p)}[ke];Nt&&(K.preventDefault(),Nt(K))},[jt,m,on,Ne,ye,d,p]),tt=K=>{let ie=1;return(K.metaKey||K.ctrlKey)&&(ie=.1),K.shiftKey&&(ie=10),ie},en=U.exports.useMemo(()=>{const K=Me==null?void 0:Me(Ve.value);if(K!=null)return K;const ie=Ve.value.toString();return ie||void 0},[Ve.value,Me]),gn=U.exports.useCallback(()=>{let K=Ve.value;if(Ve.value==="")return;/^[eE]/.test(Ve.value.toString())?Ve.setValue(""):(Ve.valueAsNumberp&&(K=p),Ve.cast(K))},[Ve,p,d]),In=U.exports.useCallback(()=>{Jt(!1),c&&gn()},[c,Jt,gn]),cr=U.exports.useCallback(()=>{r&&requestAnimationFrame(()=>{var K;(K=An.current)==null||K.focus()})},[r]),Ur=U.exports.useCallback(K=>{K.preventDefault(),at.up(),cr()},[cr,at]),eo=U.exports.useCallback(K=>{K.preventDefault(),at.down(),cr()},[cr,at]);y7(()=>An.current,"wheel",K=>{var Hr;var ie;const nt=((Hr=(ie=An.current)==null?void 0:ie.ownerDocument)!=null?Hr:document).activeElement===An.current;if(!O||!nt)return;K.preventDefault();const Nt=tt(K)*m,un=Math.sign(K.deltaY);un===-1?on(Nt):un===1&&Ne(Nt)},{passive:!1});const Tr=U.exports.useCallback((K={},ie=null)=>{const ke=E||u&&Ve.isAtMax;return{...K,ref:_u(ie,ir),role:"button",tabIndex:-1,onPointerDown:yx(K.onPointerDown,nt=>{nt.button!==0||ke||Ur(nt)}),onPointerLeave:yx(K.onPointerLeave,at.stop),onPointerUp:yx(K.onPointerUp,at.stop),disabled:ke,"aria-disabled":Y9e(ke)}},[Ve.isAtMax,u,Ur,at.stop,E]),Uo=U.exports.useCallback((K={},ie=null)=>{const ke=E||u&&Ve.isAtMin;return{...K,ref:_u(ie,Jn),role:"button",tabIndex:-1,onPointerDown:yx(K.onPointerDown,nt=>{nt.button!==0||ke||eo(nt)}),onPointerLeave:yx(K.onPointerLeave,at.stop),onPointerUp:yx(K.onPointerUp,at.stop),disabled:ke,"aria-disabled":Y9e(ke)}},[Ve.isAtMin,u,eo,at.stop,E]),Se=U.exports.useCallback((K={},ie=null)=>{var ke,nt,Nt,un;return{name:L,inputMode:I,type:"text",pattern:P,"aria-labelledby":X,"aria-label":F,"aria-describedby":B,id:N,disabled:E,...K,readOnly:(ke=K.readOnly)!=null?ke:x,"aria-readonly":(nt=K.readOnly)!=null?nt:x,"aria-required":(Nt=K.required)!=null?Nt:k,required:(un=K.required)!=null?un:k,ref:_u(An,ie),value:ut(Ve.value),role:"spinbutton","aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":Number.isNaN(Ve.valueAsNumber)?void 0:Ve.valueAsNumber,"aria-invalid":Y9e(T!=null?T:Ve.isOutOfRange),"aria-valuetext":en,autoComplete:"off",autoCorrect:"off",onChange:yx(K.onChange,ae),onKeyDown:yx(K.onKeyDown,Ie),onFocus:yx(K.onFocus,Ee,()=>Jt(!0)),onBlur:yx(K.onBlur,Je,In)}},[L,I,P,X,F,ut,B,N,E,k,x,T,Ve.value,Ve.valueAsNumber,Ve.isOutOfRange,d,p,en,ae,Ie,Ee,Je,In]);return{value:ut(Ve.value),valueAsNumber:Ve.valueAsNumber,isFocused:xe,isDisabled:E,isReadOnly:x,getIncrementButtonProps:Tr,getDecrementButtonProps:Uo,getInputProps:Se,htmlProps:Ge}}var[LRn,Gle]=kc({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[FRn,hDe]=kc({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),lRt=kn(function(r,c){const u=il("NumberInput",r),d=Ba(r),p=DMe(d),{htmlProps:m,...x}=uRt(p),E=U.exports.useMemo(()=>x,[x]);return lt.createElement(FRn,{value:E},lt.createElement(LRn,{value:u},lt.createElement(Qt.div,{...m,ref:c,className:cRt("chakra-numberinput",r.className),__css:{position:"relative",zIndex:0,...u.root}})))});lRt.displayName="NumberInput";var fRt=kn(function(r,c){const u=Gle();return lt.createElement(Qt.div,{"aria-hidden":!0,ref:c,...r,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...u.stepperGroup}})});fRt.displayName="NumberInputStepper";var dRt=kn(function(r,c){const{getInputProps:u}=hDe(),d=u(r,c),p=Gle();return lt.createElement(Qt.input,{...d,className:cRt("chakra-numberinput__field",r.className),__css:{width:"100%",...p.field}})});dRt.displayName="NumberInputField";var hRt=Qt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),pRt=kn(function(r,c){var m;const u=Gle(),{getDecrementButtonProps:d}=hDe(),p=d(r,c);return z(hRt,{...p,__css:u.stepper,children:(m=r.children)!=null?m:z(_Rn,{})})});pRt.displayName="NumberDecrementStepper";var gRt=kn(function(r,c){var m;const{getIncrementButtonProps:u}=hDe(),d=u(r,c),p=Gle();return z(hRt,{...d,__css:p.stepper,children:(m=r.children)!=null?m:z(MRn,{})})});gRt.displayName="NumberIncrementStepper";var gW=(...n)=>n.filter(Boolean).join(" ");function BRn(n,...r){return VRn(n)?n(...r):n}var VRn=n=>typeof n=="function";function wx(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}function zRn(...n){return function(c){n.forEach(u=>{u==null||u(c)})}}var[URn,oN]=kc({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[HRn,bW]=kc({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),K_={click:"click",hover:"hover"};function qRn(n={}){const{closeOnBlur:r=!0,closeOnEsc:c=!0,initialFocusRef:u,id:d,returnFocusOnClose:p=!0,autoFocus:m=!0,arrowSize:x,arrowShadowColor:E,trigger:k=K_.click,openDelay:T=200,closeDelay:P=200,isLazy:I,lazyBehavior:O="unmount",computePositionOnMount:N,...j}=n,{isOpen:$,onClose:L,onOpen:B,onToggle:F}=XMe(n),X=U.exports.useRef(null),te=U.exports.useRef(null),Z=U.exports.useRef(null),H=U.exports.useRef(!1),ce=U.exports.useRef(!1);$&&(ce.current=!0);const[pe,fe]=U.exports.useState(!1),[ve,Ge]=U.exports.useState(!1),qe=U.exports.useId(),Je=d!=null?d:qe,[et,jt,Me,Ve]=["popover-trigger","popover-content","popover-header","popover-body"].map(ae=>`${ae}-${Je}`),{referenceRef:ye,getArrowProps:De,getPopperProps:be,getArrowInnerProps:xe,forceUpdate:Jt}=GMe({...j,enabled:$||!!N}),an=ojt({isOpen:$,ref:Z});R_n({enabled:$,ref:te}),XNt(Z,{focusRef:te,visible:$,shouldFocus:p&&k===K_.click}),DMn(Z,{focusRef:u,visible:$,shouldFocus:m&&k===K_.click});const An=KMe({wasSelected:ce.current,enabled:I,mode:O,isSelected:an.present}),Wn=U.exports.useCallback((ae={},Ee=null)=>{const Ie={...ae,style:{...ae.style,transformOrigin:ed.transformOrigin.varRef,[ed.arrowSize.var]:x?`${x}px`:void 0,[ed.arrowShadowColor.var]:E},ref:_u(Z,Ee),children:An?ae.children:null,id:jt,tabIndex:-1,role:"dialog",onKeyDown:wx(ae.onKeyDown,tt=>{c&&tt.key==="Escape"&&L()}),onBlur:wx(ae.onBlur,tt=>{const en=l9t(tt),gn=Q9e(Z.current,en),In=Q9e(te.current,en);$&&r&&(!gn&&!In)&&L()}),"aria-labelledby":pe?Me:void 0,"aria-describedby":ve?Ve:void 0};return k===K_.hover&&(Ie.role="tooltip",Ie.onMouseEnter=wx(ae.onMouseEnter,()=>{H.current=!0}),Ie.onMouseLeave=wx(ae.onMouseLeave,tt=>{tt.nativeEvent.relatedTarget!==null&&(H.current=!1,setTimeout(()=>L(),P))})),Ie},[An,jt,pe,Me,ve,Ve,k,c,L,$,r,P,E,x]),ir=U.exports.useCallback((ae={},Ee=null)=>be({...ae,style:{visibility:$?"visible":"hidden",...ae.style}},Ee),[$,be]),Jn=U.exports.useCallback((ae,Ee=null)=>({...ae,ref:_u(Ee,X,ye)}),[X,ye]),Gr=U.exports.useRef(),Ze=U.exports.useRef(),ut=U.exports.useCallback(ae=>{X.current==null&&ye(ae)},[ye]),on=U.exports.useCallback((ae={},Ee=null)=>{const Ie={...ae,ref:_u(te,Ee,ut),id:et,"aria-haspopup":"dialog","aria-expanded":$,"aria-controls":jt};return k===K_.click&&(Ie.onClick=wx(ae.onClick,F)),k===K_.hover&&(Ie.onFocus=wx(ae.onFocus,()=>{Gr.current===void 0&&B()}),Ie.onBlur=wx(ae.onBlur,tt=>{const en=l9t(tt),gn=!Q9e(Z.current,en);$&&r&&gn&&L()}),Ie.onKeyDown=wx(ae.onKeyDown,tt=>{tt.key==="Escape"&&L()}),Ie.onMouseEnter=wx(ae.onMouseEnter,()=>{H.current=!0,Gr.current=window.setTimeout(()=>B(),T)}),Ie.onMouseLeave=wx(ae.onMouseLeave,()=>{H.current=!1,Gr.current&&(clearTimeout(Gr.current),Gr.current=void 0),Ze.current=window.setTimeout(()=>{H.current===!1&&L()},P)})),Ie},[et,$,jt,k,ut,F,B,r,L,T,P]);U.exports.useEffect(()=>()=>{Gr.current&&clearTimeout(Gr.current),Ze.current&&clearTimeout(Ze.current)},[]);const Ne=U.exports.useCallback((ae={},Ee=null)=>({...ae,id:Me,ref:_u(Ee,Ie=>{fe(!!Ie)})}),[Me]),at=U.exports.useCallback((ae={},Ee=null)=>({...ae,id:Ve,ref:_u(Ee,Ie=>{Ge(!!Ie)})}),[Ve]);return{forceUpdate:Jt,isOpen:$,onAnimationComplete:an.onComplete,onClose:L,getAnchorProps:Jn,getArrowProps:De,getArrowInnerProps:xe,getPopoverPositionerProps:ir,getPopoverProps:Wn,getTriggerProps:on,getHeaderProps:Ne,getBodyProps:at}}function Q9e(n,r){return n===r||(n==null?void 0:n.contains(r))}function l9t(n){var c;const r=n.currentTarget.ownerDocument.activeElement;return(c=n.relatedTarget)!=null?c:r}function pDe(n){const r=il("Popover",n),{children:c,...u}=Ba(n),d=Q7(),p=qRn({...u,direction:d.direction});return z(URn,{value:p,children:z(HRn,{value:r,children:BRn(c,{isOpen:p.isOpen,onClose:p.onClose,forceUpdate:p.forceUpdate})})})}pDe.displayName="Popover";var gDe=kn(function(r,c){const{getBodyProps:u}=oN(),d=bW();return lt.createElement(Qt.div,{...u(r,c),className:gW("chakra-popover__body",r.className),__css:d.body})});gDe.displayName="PopoverBody";var bDe=kn(function(r,c){const{onClose:u}=oN(),d=bW();return z(uW,{size:"sm",onClick:u,className:gW("chakra-popover__close-btn",r.className),__css:d.closeButton,ref:c,...r})});bDe.displayName="PopoverCloseButton";function WRn(n){if(!!n)return{enter:{...n.enter,visibility:"visible"},exit:{...n.exit,transitionEnd:{visibility:"hidden"}}}}var GRn={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},XRn=Qt(H1.section),bRt=kn(function(r,c){const{variants:u=GRn,...d}=r,{isOpen:p}=oN();return lt.createElement(XRn,{ref:c,variants:WRn(u),initial:!1,animate:p?"enter":"exit",...d})});bRt.displayName="PopoverTransition";var mDe=kn(function(r,c){const{rootProps:u,motionProps:d,...p}=r,{getPopoverProps:m,getPopoverPositionerProps:x,onAnimationComplete:E}=oN(),k=bW(),T={position:"relative",display:"flex",flexDirection:"column",...k.content};return lt.createElement(Qt.div,{...x(u),__css:k.popper,className:"chakra-popover__popper"},z(bRt,{...d,...m(p,c),onAnimationComplete:zRn(E,p.onAnimationComplete),className:gW("chakra-popover__content",r.className),__css:T}))});mDe.displayName="PopoverContent";function mRt(n){const r=bW();return lt.createElement(Qt.footer,{...n,className:gW("chakra-popover__footer",n.className),__css:r.footer})}mRt.displayName="PopoverFooter";var vDe=kn(function(r,c){const{getHeaderProps:u}=oN(),d=bW();return lt.createElement(Qt.header,{...u(r,c),className:gW("chakra-popover__header",r.className),__css:d.header})});vDe.displayName="PopoverHeader";function Dce(n){const r=U.exports.Children.only(n.children),{getTriggerProps:c}=oN();return U.exports.cloneElement(r,c(r.props,r.ref))}Dce.displayName="PopoverTrigger";var KRn=(...n)=>n.filter(Boolean).join(" "),YRn=n=>n?"":void 0;function QRn(n,r){const c={},u={};for(const[d,p]of Object.entries(n))r.includes(d)?c[d]=p:u[d]=p;return[c,u]}var vRt=kn(function(r,c){const{children:u,placeholder:d,className:p,...m}=r;return lt.createElement(Qt.select,{...m,ref:c,className:KRn("chakra-select",p)},d&&z("option",{value:"",children:d}),u)});vRt.displayName="SelectField";var yRt=kn((n,r)=>{var c;const u=il("Select",n),{rootProps:d,placeholder:p,icon:m,color:x,height:E,h:k,minH:T,minHeight:P,iconColor:I,iconSize:O,...N}=Ba(n),[j,$]=QRn(N,q4n),L=Fle($),B={width:"100%",height:"fit-content",position:"relative",color:x},F={paddingEnd:"2rem",...u.field,_focus:{zIndex:"unset",...(c=u.field)==null?void 0:c._focus}};return lt.createElement(Qt.div,{className:"chakra-select__wrapper",__css:B,...j,...d},z(vRt,{ref:r,height:k!=null?k:E,minH:T!=null?T:P,placeholder:p,...L,__css:F,children:n.children}),z(wRt,{"data-disabled":YRn(L.disabled),...(I||x)&&{color:I||x},__css:u.icon,...O&&{fontSize:O},children:m}))});yRt.displayName="Select";var ZRn=n=>z("svg",{viewBox:"0 0 24 24",...n,children:z("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),JRn=Qt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),wRt=n=>{const{children:r=z(ZRn,{}),...c}=n,u=U.exports.cloneElement(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return z(JRn,{...c,className:"chakra-select__icon-wrapper",children:U.exports.isValidElement(r)?u:null})};wRt.displayName="SelectIcon";var e$n=(...n)=>n.filter(Boolean).join(" "),f9t=n=>n?"":void 0,xRt=kn(function(r,c){const u=il("Switch",r),{spacing:d="0.5rem",children:p,...m}=Ba(r),{state:x,getInputProps:E,getCheckboxProps:k,getRootProps:T,getLabelProps:P}=vNt(m),I=U.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...u.container}),[u.container]),O=U.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...u.track}),[u.track]),N=U.exports.useMemo(()=>({userSelect:"none",marginStart:d,...u.label}),[d,u.label]);return lt.createElement(Qt.label,{...T(),className:e$n("chakra-switch",r.className),__css:I},z("input",{className:"chakra-switch__input",...E({},c)}),lt.createElement(Qt.span,{...k(),className:"chakra-switch__track",__css:O},lt.createElement(Qt.span,{__css:u.thumb,className:"chakra-switch__thumb","data-checked":f9t(x.isChecked),"data-hover":f9t(x.isHovered)})),p&<.createElement(Qt.span,{className:"chakra-switch__label",...P(),__css:N},p))});xRt.displayName="Switch";var SRt=(...n)=>n.filter(Boolean).join(" "),[t$n,nT]=kc({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),ERt=kn((n,r)=>{const c=il("Table",n),{className:u,...d}=Ba(n);return lt.createElement(t$n,{value:c},lt.createElement(Qt.table,{ref:r,__css:c.table,className:SRt("chakra-table",u),...d}))});ERt.displayName="Table";kn((n,r)=>{var m;const{overflow:c,overflowX:u,className:d,...p}=n;return lt.createElement(Qt.div,{ref:r,className:SRt("chakra-table__container",d),...p,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(m=c!=null?c:u)!=null?m:"auto",overflowY:"hidden",maxWidth:"100%"}})});var n$n=kn((n,r)=>{const{placement:c="bottom",...u}=n,d=nT();return lt.createElement(Qt.caption,{...u,ref:r,__css:{...d.caption,captionSide:c}})});n$n.displayName="TableCaption";var r$n=kn((n,r)=>{const c=nT();return lt.createElement(Qt.thead,{...n,ref:r,__css:c.thead})}),i$n=kn((n,r)=>{const c=nT();return lt.createElement(Qt.tbody,{...n,ref:r,__css:c.tbody})});kn((n,r)=>{const c=nT();return lt.createElement(Qt.tfoot,{...n,ref:r,__css:c.tfoot})});var d9t=kn(({isNumeric:n,...r},c)=>{const u=nT();return lt.createElement(Qt.th,{...r,ref:c,__css:u.th,"data-is-numeric":n})}),Z9e=kn((n,r)=>{const c=nT();return lt.createElement(Qt.tr,{...n,ref:r,__css:c.tr})}),hse=kn(({isNumeric:n,...r},c)=>{const u=nT();return lt.createElement(Qt.td,{...r,ref:c,__css:u.td,"data-is-numeric":n})}),sN=(...n)=>n.filter(Boolean).join(" ");function cPe(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var[o$n,kRt,s$n,a$n]=J_e();function c$n(n){var B;const{defaultIndex:r,onChange:c,index:u,isManual:d,isLazy:p,lazyBehavior:m="unmount",orientation:x="horizontal",direction:E="ltr",...k}=n,[T,P]=U.exports.useState(r!=null?r:0),[I,O]=PMt({defaultValue:r!=null?r:0,value:u,onChange:c});U.exports.useEffect(()=>{u!=null&&P(u)},[u]);const N=s$n(),j=U.exports.useId();return{id:`tabs-${(B=n.id)!=null?B:j}`,selectedIndex:I,focusedIndex:T,setSelectedIndex:O,setFocusedIndex:P,isManual:d,isLazy:p,lazyBehavior:m,orientation:x,descendants:N,direction:E,htmlProps:k}}var[u$n,mW]=kc({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function l$n(n){const{focusedIndex:r,orientation:c,direction:u}=mW(),d=kRt(),p=U.exports.useCallback(m=>{const x=()=>{var B;const F=d.nextEnabled(r);F&&((B=F.node)==null||B.focus())},E=()=>{var B;const F=d.prevEnabled(r);F&&((B=F.node)==null||B.focus())},k=()=>{var B;const F=d.firstEnabled();F&&((B=F.node)==null||B.focus())},T=()=>{var B;const F=d.lastEnabled();F&&((B=F.node)==null||B.focus())},P=c==="horizontal",I=c==="vertical",O=m.key,N=u==="ltr"?"ArrowLeft":"ArrowRight",j=u==="ltr"?"ArrowRight":"ArrowLeft",L={[N]:()=>P&&E(),[j]:()=>P&&x(),ArrowDown:()=>I&&x(),ArrowUp:()=>I&&E(),Home:k,End:T}[O];L&&(m.preventDefault(),L(m))},[d,r,c,u]);return{...n,role:"tablist","aria-orientation":c,onKeyDown:cPe(n.onKeyDown,p)}}function CRt(n){const{isDisabled:r,isFocusable:c,...u}=n,{setSelectedIndex:d,isManual:p,id:m,setFocusedIndex:x,selectedIndex:E}=mW(),{index:k,register:T}=a$n({disabled:r&&!c}),P=k===E,I=()=>{d(k)},O=()=>{x(k),!p&&!(r&&c)&&d(k)},N=BNt({...u,ref:_u(T,n.ref),isDisabled:r,isFocusable:c,onClick:cPe(n.onClick,I)}),j="button";return{...N,id:IRt(m,k),role:"tab",tabIndex:P?0:-1,type:j,"aria-selected":P,"aria-controls":TRt(m,k),onFocus:r?void 0:cPe(n.onFocus,O)}}var[f$n,d$n]=kc({});function h$n(n){const r=mW(),{id:c,selectedIndex:u}=r,p=tN(n.children).map((m,x)=>U.exports.createElement(f$n,{key:x,value:{isSelected:x===u,id:TRt(c,x),tabId:IRt(c,x),selectedIndex:u}},m));return{...n,children:p}}function p$n(n){const{children:r,...c}=n,{isLazy:u,lazyBehavior:d}=mW(),{isSelected:p,id:m,tabId:x}=d$n(),E=U.exports.useRef(!1);p&&(E.current=!0);const k=KMe({wasSelected:E.current,isSelected:p,enabled:u,mode:d});return{tabIndex:0,...c,children:k?r:null,role:"tabpanel","aria-labelledby":x,hidden:!p,id:m}}function g$n(){const n=mW(),r=kRt(),{selectedIndex:c,orientation:u}=n,d=u==="horizontal",p=u==="vertical",[m,x]=U.exports.useState(()=>{if(d)return{left:0,width:0};if(p)return{top:0,height:0}}),[E,k]=U.exports.useState(!1);return Iw(()=>{if(c==null)return;const T=r.item(c);if(T==null)return;d&&x({left:T.node.offsetLeft,width:T.node.offsetWidth}),p&&x({top:T.node.offsetTop,height:T.node.offsetHeight});const P=requestAnimationFrame(()=>{k(!0)});return()=>{P&&cancelAnimationFrame(P)}},[c,d,p,r]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:E?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...m}}function IRt(n,r){return`${n}--tab-${r}`}function TRt(n,r){return`${n}--tabpanel-${r}`}var[b$n,vW]=kc({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),yDe=kn(function(r,c){const u=il("Tabs",r),{children:d,className:p,...m}=Ba(r),{htmlProps:x,descendants:E,...k}=c$n(m),T=U.exports.useMemo(()=>k,[k]),{isFitted:P,...I}=x;return lt.createElement(o$n,{value:E},lt.createElement(u$n,{value:T},lt.createElement(b$n,{value:u},lt.createElement(Qt.div,{className:sN("chakra-tabs",p),ref:c,...I,__css:u.root},d))))});yDe.displayName="Tabs";var m$n=kn(function(r,c){const u=g$n(),d={...r.style,...u},p=vW();return lt.createElement(Qt.div,{ref:c,...r,className:sN("chakra-tabs__tab-indicator",r.className),style:d,__css:p.indicator})});m$n.displayName="TabIndicator";var wDe=kn(function(r,c){const u=l$n({...r,ref:c}),d=vW(),p={display:"flex",...d.tablist};return lt.createElement(Qt.div,{...u,className:sN("chakra-tabs__tablist",r.className),__css:p})});wDe.displayName="TabList";var xDe=kn(function(r,c){const u=p$n({...r,ref:c}),d=vW();return lt.createElement(Qt.div,{outline:"0",...u,className:sN("chakra-tabs__tab-panel",r.className),__css:d.tabpanel})});xDe.displayName="TabPanel";var SDe=kn(function(r,c){const u=h$n(r),d=vW();return lt.createElement(Qt.div,{...u,width:"100%",ref:c,className:sN("chakra-tabs__tab-panels",r.className),__css:d.tabpanels})});SDe.displayName="TabPanels";var ARt=kn(function(r,c){const u=vW(),d=CRt({...r,ref:c}),p={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...u.tab};return lt.createElement(Qt.button,{...d,className:sN("chakra-tabs__tab",r.className),__css:p})});ARt.displayName="Tab";var v$n=(...n)=>n.filter(Boolean).join(" ");function y$n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}var w$n=["h","minH","height","minHeight"],PRt=kn((n,r)=>{const c=U1("Textarea",n),{className:u,rows:d,...p}=Ba(n),m=Fle(p),x=d?y$n(c,w$n):c;return lt.createElement(Qt.textarea,{ref:r,rows:d,...m,className:v$n("chakra-textarea",u),__css:x})});PRt.displayName="Textarea";function x$n(n,r){const c=mh(n);U.exports.useEffect(()=>{if(r==null)return;let u=null;return u=window.setTimeout(()=>{c()},r),()=>{u&&window.clearTimeout(u)}},[r,c])}function S$n(n,...r){return E$n(n)?n(...r):n}var E$n=n=>typeof n=="function",k$n=(n,r)=>n.find(c=>c.id===r);function h9t(n,r){const c=ORt(n,r),u=c?n[c].findIndex(d=>d.id===r):-1;return{position:c,index:u}}function ORt(n,r){for(const[c,u]of Object.entries(n))if(k$n(u,r))return c}function C$n(n){const r=n.includes("right"),c=n.includes("left");let u="center";return r&&(u="flex-end"),c&&(u="flex-start"),{display:"flex",flexDirection:"column",alignItems:u}}function I$n(n){const c=n==="top"||n==="bottom"?"0 auto":void 0,u=n.includes("top")?"env(safe-area-inset-top, 0px)":void 0,d=n.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,p=n.includes("left")?void 0:"env(safe-area-inset-right, 0px)",m=n.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:c,top:u,bottom:d,right:p,left:m}}var T$n={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},bH=A$n(T$n);function A$n(n){let r=n;const c=new Set,u=d=>{r=d(r),c.forEach(p=>p())};return{getState:()=>r,subscribe:d=>(c.add(d),()=>{u(()=>n),c.delete(d)}),removeToast:(d,p)=>{u(m=>({...m,[p]:m[p].filter(x=>x.id!=d)}))},notify:(d,p)=>{const m=P$n(d,p),{position:x,id:E}=m;return u(k=>{var I,O;const P=x.includes("top")?[m,...(I=k[x])!=null?I:[]]:[...(O=k[x])!=null?O:[],m];return{...k,[x]:P}}),E},update:(d,p)=>{!d||u(m=>{const x={...m},{position:E,index:k}=h9t(x,d);return E&&k!==-1&&(x[E][k]={...x[E][k],...p,message:_$n(p)}),x})},closeAll:({positions:d}={})=>{u(p=>{const m=["bottom","bottom-right","bottom-left","top","top-left","top-right"];return(d!=null?d:m).reduce((E,k)=>(E[k]=p[k].map(T=>({...T,requestClose:!0})),E),{...p})})},close:d=>{u(p=>{const m=ORt(p,d);return m?{...p,[m]:p[m].map(x=>x.id==d?{...x,requestClose:!0}:x)}:p})},isActive:d=>Boolean(h9t(bH.getState(),d).position)}}var p9t=0;function P$n(n,r={}){var d,p;p9t+=1;const c=(d=r.id)!=null?d:p9t,u=(p=r.position)!=null?p:"bottom";return{id:c,message:n,position:u,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>bH.removeToast(String(c),u),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}var O$n=n=>{const{status:r,variant:c="solid",id:u,title:d,isClosable:p,onClose:m,description:x,icon:E}=n,k=u?{root:`toast-${u}`,title:`toast-${u}-title`,description:`toast-${u}-description`}:void 0;return lt.createElement(TMe,{addRole:!1,status:r,variant:c,id:k==null?void 0:k.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},z(AMe,{children:E}),lt.createElement(Qt.div,{flex:"1",maxWidth:"100%"},d&&z(dNt,{id:k==null?void 0:k.title,children:d}),x&&z(fNt,{id:k==null?void 0:k.description,display:"block",children:x})),p&&z(uW,{size:"sm",onClick:m,position:"absolute",insetEnd:1,top:1}))};function _$n(n={}){const{render:r,toastComponent:c=O$n}=n;return d=>typeof r=="function"?r({...d,...n}):z(c,{...d,...n})}var M$n={initial:n=>{const{position:r}=n,c=["top","bottom"].includes(r)?"y":"x";let u=["top-right","bottom-right"].includes(r)?1:-1;return r==="bottom"&&(u=1),{opacity:0,[c]:u*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},_Rt=U.exports.memo(n=>{const{id:r,message:c,onCloseComplete:u,onRequestRemove:d,requestClose:p=!1,position:m="bottom",duration:x=5e3,containerStyle:E,motionVariants:k=M$n,toastSpacing:T="0.5rem"}=n,[P,I]=U.exports.useState(x),O=GTn();mk(()=>{O||u==null||u()},[O]),mk(()=>{I(x)},[x]);const N=()=>I(null),j=()=>I(x),$=()=>{O&&d()};U.exports.useEffect(()=>{O&&p&&d()},[O,p,d]),x$n($,P);const L=U.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:T,...E}),[E,T]),B=U.exports.useMemo(()=>C$n(m),[m]);return lt.createElement(H1.li,{layout:!0,className:"chakra-toast",variants:k,initial:"initial",animate:"animate",exit:"exit",onHoverStart:N,onHoverEnd:j,custom:{position:m},style:B},lt.createElement(Qt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:L},S$n(c,{id:r,onClose:$})))});_Rt.displayName="ToastComponent";var D$n=n=>{const r=U.exports.useSyncExternalStore(bH.subscribe,bH.getState,bH.getState),{children:c,motionVariants:u,component:d=_Rt,portalProps:p}=n,x=Object.keys(r).map(E=>{const k=r[E];return z("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${E}`,style:I$n(E),children:z(_S,{initial:!1,children:k.map(T=>z(d,{motionVariants:u,...T},T.id))})},E)});return We(Si,{children:[c,z(s3,{...p,children:x})]})};function N$n(n,r=[]){const c=Object.assign({},n);for(const u of r)u in c&&delete c[u];return c}function j$n(n,r){const c={};for(const u of r)u in n&&(c[u]=n[u]);return c}var R$n={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function uU(...n){return function(c){n.some(u=>(u==null||u(c),c==null?void 0:c.defaultPrevented))}}var Nce=n=>{var r;return((r=n.current)==null?void 0:r.ownerDocument)||document},uPe=n=>{var r,c;return((c=(r=n.current)==null?void 0:r.ownerDocument)==null?void 0:c.defaultView)||window};function $$n(n={}){const{openDelay:r=0,closeDelay:c=0,closeOnClick:u=!0,closeOnMouseDown:d,closeOnScroll:p,closeOnPointerDown:m=d,closeOnEsc:x=!0,onOpen:E,onClose:k,placement:T,id:P,isOpen:I,defaultIsOpen:O,arrowSize:N=10,arrowShadowColor:j,arrowPadding:$,modifiers:L,isDisabled:B,gutter:F,offset:X,direction:te,...Z}=n,{isOpen:H,onOpen:ce,onClose:pe}=XMe({isOpen:I,defaultIsOpen:O,onOpen:E,onClose:k}),{referenceRef:fe,getPopperProps:ve,getArrowInnerProps:Ge,getArrowProps:qe}=GMe({enabled:H,placement:T,arrowPadding:$,modifiers:L,gutter:F,offset:X,direction:te}),Je=U.exports.useId(),jt=`tooltip-${P!=null?P:Je}`,Me=U.exports.useRef(null),Ve=U.exports.useRef(),ye=U.exports.useRef(),De=U.exports.useCallback(()=>{ye.current&&(clearTimeout(ye.current),ye.current=void 0),pe()},[pe]),be=L$n(Me,De),xe=U.exports.useCallback(()=>{if(!B&&!Ve.current){be();const Ze=uPe(Me);Ve.current=Ze.setTimeout(ce,r)}},[be,B,ce,r]),Jt=U.exports.useCallback(()=>{Ve.current&&(clearTimeout(Ve.current),Ve.current=void 0);const Ze=uPe(Me);ye.current=Ze.setTimeout(De,c)},[c,De]),an=U.exports.useCallback(()=>{H&&u&&Jt()},[u,Jt,H]),An=U.exports.useCallback(()=>{H&&m&&Jt()},[m,Jt,H]),Wn=U.exports.useCallback(Ze=>{H&&Ze.key==="Escape"&&Jt()},[H,Jt]);y7(()=>Nce(Me),"keydown",x?Wn:void 0),y7(()=>Nce(Me),"scroll",()=>{H&&p&&De()}),U.exports.useEffect(()=>()=>{clearTimeout(Ve.current),clearTimeout(ye.current)},[]),y7(()=>Me.current,"pointerleave",Jt);const ir=U.exports.useCallback((Ze={},ut=null)=>({...Ze,ref:_u(Me,ut,fe),onPointerEnter:uU(Ze.onPointerEnter,Ne=>{Ne.pointerType!=="touch"&&xe()}),onClick:uU(Ze.onClick,an),onPointerDown:uU(Ze.onPointerDown,An),onFocus:uU(Ze.onFocus,xe),onBlur:uU(Ze.onBlur,Jt),"aria-describedby":H?jt:void 0}),[xe,Jt,An,H,jt,an,fe]),Jn=U.exports.useCallback((Ze={},ut=null)=>ve({...Ze,style:{...Ze.style,[ed.arrowSize.var]:N?`${N}px`:void 0,[ed.arrowShadowColor.var]:j}},ut),[ve,N,j]),Gr=U.exports.useCallback((Ze={},ut=null)=>{const on={...Ze.style,position:"relative",transformOrigin:ed.transformOrigin.varRef};return{ref:ut,...Z,...Ze,id:jt,role:"tooltip",style:on}},[Z,jt]);return{isOpen:H,show:xe,hide:Jt,getTriggerProps:ir,getTooltipProps:Gr,getTooltipPositionerProps:Jn,getArrowProps:qe,getArrowInnerProps:Ge}}var J9e="chakra-ui:close-tooltip";function L$n(n,r){return U.exports.useEffect(()=>{const c=Nce(n);return c.addEventListener(J9e,r),()=>c.removeEventListener(J9e,r)},[r,n]),()=>{const c=Nce(n),u=uPe(n);c.dispatchEvent(new u.CustomEvent(J9e))}}var F$n=Qt(H1.div),aN=kn((n,r)=>{var pe,fe;const c=U1("Tooltip",n),u=Ba(n),d=Q7(),{children:p,label:m,shouldWrapChildren:x,"aria-label":E,hasArrow:k,bg:T,portalProps:P,background:I,backgroundColor:O,bgColor:N,motionProps:j,...$}=u,L=(fe=(pe=I!=null?I:O)!=null?pe:T)!=null?fe:N;if(L){c.bg=L;const ve=oSn(d,"colors",L);c[ed.arrowBg.var]=ve}const B=$$n({...$,direction:d.direction}),F=typeof p=="string"||x;let X;if(F)X=lt.createElement(Qt.span,{display:"inline-block",tabIndex:0,...B.getTriggerProps()},p);else{const ve=U.exports.Children.only(p);X=U.exports.cloneElement(ve,B.getTriggerProps(ve.props,ve.ref))}const te=!!E,Z=B.getTooltipProps({},r),H=te?N$n(Z,["role","id"]):Z,ce=j$n(Z,["role","id"]);return m?We(Si,{children:[X,z(_S,{children:B.isOpen&<.createElement(s3,{...P},lt.createElement(Qt.div,{...B.getTooltipPositionerProps(),__css:{zIndex:c.zIndex,pointerEvents:"none"}},We(F$n,{variants:R$n,initial:"exit",animate:"enter",exit:"exit",...j,...H,__css:c,children:[m,te&<.createElement(Qt.span,{srOnly:!0,...ce},E),k&<.createElement(Qt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},lt.createElement(Qt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:c.bg}}))]})))})]}):z(Si,{children:p})});aN.displayName="Tooltip";var B$n=n=>{const{children:r,colorModeManager:c,portalZIndex:u,resetCSS:d=!0,theme:p={},environment:m,cssVarsRoot:x}=n,E=z(FNt,{environment:m,children:r});return z(o9n,{theme:p,cssVarsRoot:x,children:We(__t,{colorModeManager:c,options:p.config,children:[d?z(P_n,{}):z(A_n,{}),z(c9n,{}),u?z(gjt,{zIndex:u,children:E}):E]})})};function V$n({children:n,theme:r=CMt,toastOptions:c,...u}){return We(B$n,{theme:r,...u,children:[n,z(D$n,{...c})]})}const LE={gray:{25:"#F7F8FA",50:"#EFEFF1",100:"#E1E2E5",200:"#C6C7CD",300:"#ABACB5",400:"#8F919D",500:"#757785",600:"#5D5F6A",700:"#45464F",800:"#2D2E34",850:"#212226",900:"#151618"},primary:{grid_temp:"#D6E7FF",500:"#056DFF",600:"#1956DD"},danger:{500:"#F44747",600:"#EF0F0F"},highlight:{500:"#FF5E00"},warning:{500:"#FF9044"},redAlpha:{100:"rgba(244, 71, 71, 0.1)"}},MRt={Default:{light:"white",dark:LE.gray[700]},Blue:{light:LE.primary[500],dark:LE.primary[500]},Orange:{light:LE.highlight[500],dark:LE.highlight[500]},Red:{light:LE.danger[500],dark:LE.danger[500]}},z$n=Object.keys(MRt),ei=()=>{const{colorMode:n,setColorMode:r}=ZD(),c=(d,p)=>{switch(n){case"light":return d;case"dark":return p!=null?p:d}},u=(d,p)=>MRt[p!=null?p:d][n];return{getEditorColor:U.exports.useCallback(u,[n]),getColorModeValue:U.exports.useCallback(c,[n]),setColorMode:r,colorMode:n}};var EDe={exports:{}},DRt={},kDe={exports:{}},NRt={};/** + * @license React + * use-sync-external-store-shim.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 ID=U.exports;function U$n(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var H$n=typeof Object.is=="function"?Object.is:U$n,q$n=ID.useState,W$n=ID.useEffect,G$n=ID.useLayoutEffect,X$n=ID.useDebugValue;function K$n(n,r){var c=r(),u=q$n({inst:{value:c,getSnapshot:r}}),d=u[0].inst,p=u[1];return G$n(function(){d.value=c,d.getSnapshot=r,e7e(d)&&p({inst:d})},[n,c,r]),W$n(function(){return e7e(d)&&p({inst:d}),n(function(){e7e(d)&&p({inst:d})})},[n]),X$n(c),c}function e7e(n){var r=n.getSnapshot;n=n.value;try{var c=r();return!H$n(n,c)}catch{return!0}}function Y$n(n,r){return r()}var Q$n=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Y$n:K$n;NRt.useSyncExternalStore=ID.useSyncExternalStore!==void 0?ID.useSyncExternalStore:Q$n;(function(n){n.exports=NRt})(kDe);/** + * @license React + * use-sync-external-store-shim/with-selector.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 Xle=U.exports,Z$n=kDe.exports;function J$n(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var eLn=typeof Object.is=="function"?Object.is:J$n,tLn=Z$n.useSyncExternalStore,nLn=Xle.useRef,rLn=Xle.useEffect,iLn=Xle.useMemo,oLn=Xle.useDebugValue;DRt.useSyncExternalStoreWithSelector=function(n,r,c,u,d){var p=nLn(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=iLn(function(){function E(O){if(!k){if(k=!0,T=O,O=u(O),d!==void 0&&m.hasValue){var N=m.value;if(d(N,O))return P=N}return P=O}if(N=P,eLn(T,O))return N;var j=u(O);return d!==void 0&&d(N,j)?N:(T=O,P=j)}var k=!1,T,P,I=c===void 0?null:c;return[function(){return E(r())},I===null?void 0:function(){return E(I())}]},[r,c,u,d]);var x=tLn(n,p[0],p[1]);return rLn(function(){m.hasValue=!0,m.value=x},[x]),oLn(x),x};(function(n){n.exports=DRt})(EDe);/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var jr=function(){return jr=Object.assign||function(r){for(var c,u=1,d=arguments.length;u=n.length&&(n=void 0),{value:n&&n[u++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ra(n,r){var c=typeof Symbol=="function"&&n[Symbol.iterator];if(!c)return n;var u=c.call(n),d,p=[],m;try{for(;(r===void 0||r-- >0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p}function Bc(n,r,c){if(c||arguments.length===2)for(var u=0,d=r.length,p;u"u"||typeof u=="string"||PD(u)?{target:u,event:n}:jr(jr({},u),{event:n})});return c}function SLn(n){if(!(n===void 0||n===fLn))return mw(n)}function HRt(n,r,c,u,d){var p=n.options.guards,m={state:d,cond:r,_event:u};if(r.type===dPe)return((p==null?void 0:p[r.name])||r.predicate)(c,u.data,m);var x=p==null?void 0:p[r.type];if(!x)throw new Error("Guard '".concat(r.type,"' is not implemented on machine '").concat(n.id,"'."));return x(c,u.data,m)}function qRt(n){return typeof n=="string"?{type:n}:n}function vH(n,r,c){var u=function(){},d=typeof n=="object",p=d?n:null;return{next:((d?n.next:n)||u).bind(p),error:((d?n.error:r)||u).bind(p),complete:((d?n.complete:c)||u).bind(p)}}function gse(n,r){return"".concat(n,":invocation[").concat(r,"]")}var nD=Yh({type:aLn});function pPe(n,r){return r&&r[n]||void 0}function bq(n,r){var c;if(sc(n)||typeof n=="number"){var u=pPe(n,r);zc(u)?c={type:n,exec:u}:u?c=u:c={type:n,exec:void 0}}else if(zc(n))c={type:n.name||n.toString(),exec:n};else{var u=pPe(n.type,r);if(zc(u))c=jr(jr({},n),{exec:u});else if(u){var d=u.type||n.type;c=jr(jr(jr({},u),n),{type:d})}else c=n}return c}var GE=function(n,r){if(!n)return[];var c=cN(n)?n:[n];return c.map(function(u){return bq(u,r)})};function ODe(n){var r=bq(n);return jr(jr({id:sc(n)?n:r.id},r),{type:r.type})}function q9(n){return sc(n)?{type:TD,event:n}:Kle(n,{to:Iv.Internal})}function ELn(n){return{type:TD,_event:Yh(n.event)}}function Kle(n,r){return{to:r?r.to:void 0,type:AD,event:zc(n)?n:PDe(n),delay:r?r.delay:void 0,id:r&&r.id!==void 0?r.id:zc(n)?n.name:BRt(n)}}function kLn(n,r,c,u){var d={_event:c},p=Yh(zc(n.event)?n.event(r,c.data,d):n.event),m;if(sc(n.delay)){var x=u&&u[n.delay];m=zc(x)?x(r,c.data,d):x}else m=zc(n.delay)?n.delay(r,c.data,d):n.delay;var E=zc(n.to)?n.to(r,c.data,d):n.to;return jr(jr({},n),{to:E,_event:p,event:p.data,delay:m})}function CLn(n,r){return Kle(n,jr(jr({},r),{to:Iv.Parent}))}var ILn=function(n,r,c){return jr(jr({},n),{value:sc(n.expr)?n.expr:n.expr(r,c.data,{_event:c})})},TLn=function(n){return{type:jRt,sendId:n}};function ALn(n){var r=ODe(n);return{type:Hc.Start,activity:r,exec:void 0}}function PLn(n){var r=zc(n)?n:ODe(n);return{type:Hc.Stop,activity:r,exec:void 0}}function OLn(n,r,c){var u=zc(n.activity)?n.activity(r,c.data):n.activity,d=typeof u=="string"?{id:u}:u,p={type:Hc.Stop,activity:d};return p}var _Ln=function(n){return{type:TDe,assignment:n}};function MLn(n,r){var c=r?"#".concat(r):"";return"".concat(Hc.After,"(").concat(n,")").concat(c)}function bse(n,r){var c="".concat(Hc.DoneState,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function Aae(n,r){var c="".concat(Hc.DoneInvoke,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function _U(n,r){var c="".concat(Hc.ErrorPlatform,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function w9t(n,r){if(!FRt&&(!n||typeof n=="function")){var c=n;n=function(){for(var u=[],d=0;d0;){var k=d.shift();c=n.transition(c,k,E),u.forEach(function(T){return T.next(c)})}p=!1}},x=$Ln({id:r.id,send:function(k){d.push(k),m()},getSnapshot:function(){return c},subscribe:function(k,T,P){var I=vH(k,T,P);return u.add(I),I.next(c),{unsubscribe:function(){u.delete(I)}}}}),E={parent:r.parent,self:x,id:r.id||"anonymous",observers:u};return c=n.start?n.start(E):c,x}var XLn={sync:!1,autoForward:!1},If;(function(n){n[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped"})(If||(If={}));var KLn=function(){function n(r,c){c===void 0&&(c=n.defaultOptions);var u=this;this.machine=r,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=If.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(T,P){if(cN(T))return u.batch(T),u.state;var I=Yh(PDe(T,P));if(u.status===If.Stopped)return u.state;if(u.status!==If.Running&&!u.options.deferEvents)throw new Error('Event "'.concat(I.name,'" was sent to uninitialized service "').concat(u.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options. +Event: `).concat(JSON.stringify(I.data)));return u.scheduler.schedule(function(){u.forward(I);var O=u._nextState(I);u.update(O,I)}),u._state},this.sendTo=function(T,P,I){var O=u.parent&&(P===Iv.Parent||u.parent.id===P),N=O?u.parent:sc(P)?u.children.get(P)||mse.get(P):xLn(P)?P:void 0;if(!N){if(!O)throw new Error("Unable to send event to child '".concat(P,"' from service '").concat(u.id,"'."));return}if("machine"in N){if(u.status!==If.Stopped||u.parent!==N||u.state.done){var j=jr(jr({},T),{name:T.name===cLn?"".concat(_U(u.id)):T.name,origin:u.sessionId});!I&&u.machine.config.predictableActionArguments?u._outgoingQueue.push([N,j]):N.send(j)}}else!I&&u.machine.config.predictableActionArguments?u._outgoingQueue.push([N,T.data]):N.send(T.data)},this._exec=function(T,P,I,O){O===void 0&&(O=u.machine.options.actions);var N=T.exec||pPe(T.type,O),j=zc(N)?N:N?N.exec:T.exec;if(j)try{return j(P,I.data,u.machine.config.predictableActionArguments?{action:T,_event:I}:{action:T,state:u.state,_event:I})}catch(Ge){throw u.parent&&u.parent.send({type:"xstate.error",data:Ge}),Ge}switch(T.type){case AD:var $=T;if(typeof $.delay=="number"){u.defer($);return}else $.to?u.sendTo($._event,$.to,I===nD):u.send($._event);break;case jRt:u.cancel(T.sendId);break;case lPe:{if(u.status!==If.Running)return;var L=T.activity;if(!u.machine.config.predictableActionArguments&&!u.state.activities[L.id||L.type])break;if(L.type===Hc.Invoke){var B=qRt(L.src),F=u.machine.options.services?u.machine.options.services[B.type]:void 0,X=L.id,te=L.data,Z="autoForward"in L?L.autoForward:!!L.forward;if(!F)return;var H=te?Rce(te,P,I):void 0;if(typeof F=="string")return;var ce=zc(F)?F(P,I.data,{data:H,src:B,meta:L.meta}):F;if(!ce)return;var pe=void 0;PD(ce)&&(ce=H?ce.withContext(H):ce,pe={autoForward:Z}),u.spawn(ce,X,pe)}else u.spawnActivity(L);break}case IDe:{u.stopChild(T.activity.id);break}case RRt:var fe=T.label,ve=T.value;fe?u.logger(fe,ve):u.logger(ve);break}};var d=jr(jr({},n.defaultOptions),c),p=d.clock,m=d.logger,x=d.parent,E=d.id,k=E!==void 0?E:r.id;this.id=k,this.logger=m,this.clock=p,this.parent=x,this.options=d,this.scheduler=new S9t({deferEvents:this.options.deferEvents}),this.sessionId=mse.bookId()}return Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this;return this._initialState?this._initialState:gM(this,function(){return r._initialState=r.machine.initialState,r._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.prototype.execute=function(r,c){var u,d;try{for(var p=pa(r.actions),m=p.next();!m.done;m=p.next()){var x=m.value;this.exec(x,r,c)}}catch(E){u={error:E}}finally{try{m&&!m.done&&(d=p.return)&&d.call(p)}finally{if(u)throw u.error}}},n.prototype.update=function(r,c){var u,d,p,m,x,E,k,T,P=this;if(r._sessionid=this.sessionId,this._state=r,(!this.machine.config.predictableActionArguments||c===nD)&&this.options.execute)this.execute(this.state);else for(var I=void 0;I=this._outgoingQueue.shift();)I[0].send(I[1]);if(this.children.forEach(function(pe){P.state.children[pe.id]=pe}),this.devTools&&this.devTools.send(c.data,r),r.event)try{for(var O=pa(this.eventListeners),N=O.next();!N.done;N=O.next()){var j=N.value;j(r.event)}}catch(pe){u={error:pe}}finally{try{N&&!N.done&&(d=O.return)&&d.call(O)}finally{if(u)throw u.error}}try{for(var $=pa(this.listeners),L=$.next();!L.done;L=$.next()){var j=L.value;j(r,r.event)}}catch(pe){p={error:pe}}finally{try{L&&!L.done&&(m=$.return)&&m.call($)}finally{if(p)throw p.error}}try{for(var B=pa(this.contextListeners),F=B.next();!F.done;F=B.next()){var X=F.value;X(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(pe){x={error:pe}}finally{try{F&&!F.done&&(E=B.return)&&E.call(B)}finally{if(x)throw x.error}}if(this.state.done){var te=r.configuration.find(function(pe){return pe.type==="final"&&pe.parent===P.machine}),Z=te&&te.doneData?Rce(te.doneData,r.context,c):void 0;try{for(var H=pa(this.doneListeners),ce=H.next();!ce.done;ce=H.next()){var j=ce.value;j(Aae(this.id,Z))}}catch(pe){k={error:pe}}finally{try{ce&&!ce.done&&(T=H.return)&&T.call(H)}finally{if(k)throw k.error}}this._stop(),this._stopChildren()}},n.prototype.onTransition=function(r){return this.listeners.add(r),this.status===If.Running&&r(this.state,this.state.event),this},n.prototype.subscribe=function(r,c,u){var d=this,p=vH(r,c,u);this.listeners.add(p.next),this.status!==If.NotStarted&&p.next(this.state);var m=function(){d.doneListeners.delete(m),d.stopListeners.delete(m),p.complete()};return this.status===If.Stopped?p.complete():(this.onDone(m),this.onStop(m)),{unsubscribe:function(){d.listeners.delete(p.next),d.doneListeners.delete(m),d.stopListeners.delete(m)}}},n.prototype.onEvent=function(r){return this.eventListeners.add(r),this},n.prototype.onSend=function(r){return this.sendListeners.add(r),this},n.prototype.onChange=function(r){return this.contextListeners.add(r),this},n.prototype.onStop=function(r){return this.stopListeners.add(r),this},n.prototype.onDone=function(r){return this.doneListeners.add(r),this},n.prototype.off=function(r){return this.listeners.delete(r),this.eventListeners.delete(r),this.sendListeners.delete(r),this.stopListeners.delete(r),this.doneListeners.delete(r),this.contextListeners.delete(r),this},n.prototype.start=function(r){var c=this;if(this.status===If.Running)return this;this.machine._init(),mse.register(this.sessionId,this),this.initialized=!0,this.status=If.Running;var u=r===void 0?this.initialState:gM(this,function(){return VLn(r)?c.machine.resolveState(r):c.machine.resolveState(wb.from(r,c.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){c.update(u,nD)}),this},n.prototype._stopChildren=function(){this.children.forEach(function(r){zc(r.stop)&&r.stop()}),this.children.clear()},n.prototype._stop=function(){var r,c,u,d,p,m,x,E,k,T;try{for(var P=pa(this.listeners),I=P.next();!I.done;I=P.next()){var O=I.value;this.listeners.delete(O)}}catch(H){r={error:H}}finally{try{I&&!I.done&&(c=P.return)&&c.call(P)}finally{if(r)throw r.error}}try{for(var N=pa(this.stopListeners),j=N.next();!j.done;j=N.next()){var O=j.value;O(),this.stopListeners.delete(O)}}catch(H){u={error:H}}finally{try{j&&!j.done&&(d=N.return)&&d.call(N)}finally{if(u)throw u.error}}try{for(var $=pa(this.contextListeners),L=$.next();!L.done;L=$.next()){var O=L.value;this.contextListeners.delete(O)}}catch(H){p={error:H}}finally{try{L&&!L.done&&(m=$.return)&&m.call($)}finally{if(p)throw p.error}}try{for(var B=pa(this.doneListeners),F=B.next();!F.done;F=B.next()){var O=F.value;this.doneListeners.delete(O)}}catch(H){x={error:H}}finally{try{F&&!F.done&&(E=B.return)&&E.call(B)}finally{if(x)throw x.error}}if(!this.initialized)return this;this.initialized=!1,this.status=If.Stopped,this._initialState=void 0;try{for(var X=pa(Object.keys(this.delayedEventsMap)),te=X.next();!te.done;te=X.next()){var Z=te.value;this.clock.clearTimeout(this.delayedEventsMap[Z])}}catch(H){k={error:H}}finally{try{te&&!te.done&&(T=X.return)&&T.call(X)}finally{if(k)throw k.error}}this.scheduler.clear(),this.scheduler=new S9t({deferEvents:this.options.deferEvents})},n.prototype.stop=function(){var r=this,c=this.scheduler;return this._stop(),c.schedule(function(){var u=Yh({type:"xstate.stop"}),d=gM(r,function(){var p=Sl(Bc([],ra(r.state.configuration),!1).sort(function(T,P){return P.order-T.order}).map(function(T){return GE(T.onExit,r.machine.options.actions)})),m=ra($ce(r.machine,r.state,r.state.context,u,[p],r.machine.config.predictableActionArguments?r._exec:void 0,r.machine.config.predictableActionArguments||r.machine.config.preserveActionOrder),2),x=m[0],E=m[1],k=new wb({value:r.state.value,context:E,_event:u,_sessionid:r.sessionId,historyValue:void 0,history:r.state,actions:x.filter(function(T){return T.type!==TD&&(T.type!==AD||!!T.to&&T.to!==Iv.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:r.state.done,tags:r.state.tags,machine:r.machine});return k.changed=!0,k});r.update(d,u),r._stopChildren(),mse.free(r.sessionId)}),this},n.prototype.batch=function(r){var c=this;if(!(this.status===If.NotStarted&&this.options.deferEvents)){if(this.status!==If.Running)throw new Error("".concat(r.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(!!r.length){var u=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var d,p,m=c.state,x=!1,E=[],k=function(O){var N=Yh(O);c.forward(N),m=gM(c,function(){return c.machine.transition(m,N,void 0,u||void 0)}),E.push.apply(E,Bc([],ra(c.machine.config.predictableActionArguments?m.actions:m.actions.map(function(j){return zLn(j,m)})),!1)),x=x||!!m.changed};try{for(var T=pa(r),P=T.next();!P.done;P=T.next()){var I=P.value;k(I)}}catch(O){d={error:O}}finally{try{P&&!P.done&&(p=T.return)&&p.call(T)}finally{if(d)throw d.error}}m.changed=x,m.actions=E,c.update(m,Yh(r[r.length-1]))})}},n.prototype.sender=function(r){return this.send.bind(this,r)},n.prototype._nextState=function(r,c){var u=this;c===void 0&&(c=!!this.machine.config.predictableActionArguments&&this._exec);var d=Yh(r);if(d.name.indexOf(g9t)===0&&!this.state.nextEvents.some(function(m){return m.indexOf(g9t)===0}))throw d.data.data;var p=gM(this,function(){return u.machine.transition(u.state,d,void 0,c||void 0)});return p},n.prototype.nextState=function(r){return this._nextState(r,!1)},n.prototype.forward=function(r){var c,u;try{for(var d=pa(this.forwardTo),p=d.next();!p.done;p=d.next()){var m=p.value,x=this.children.get(m);if(!x)throw new Error("Unable to forward event '".concat(r,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(m,"'."));x.send(r)}}catch(E){c={error:E}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(c)throw c.error}}},n.prototype.defer=function(r){var c=this;this.delayedEventsMap[r.id]=this.clock.setTimeout(function(){r.to?c.sendTo(r._event,r.to,!0):c.send(r._event)},r.delay)},n.prototype.cancel=function(r){this.clock.clearTimeout(this.delayedEventsMap[r]),delete this.delayedEventsMap[r]},n.prototype.exec=function(r,c,u){u===void 0&&(u=this.machine.options.actions),this._exec(r,c.context,c._event,u)},n.prototype.removeChild=function(r){var c;this.children.delete(r),this.forwardTo.delete(r),(c=this.state)===null||c===void 0||delete c.children[r]},n.prototype.stopChild=function(r){var c=this.children.get(r);!c||(this.removeChild(r),zc(c.stop)&&c.stop())},n.prototype.spawn=function(r,c,u){if(this.status!==If.Running)return GRt(r,c);if(v9t(r))return this.spawnPromise(Promise.resolve(r),c);if(zc(r))return this.spawnCallback(r,c);if(RLn(r))return this.spawnActor(r,c);if(wLn(r))return this.spawnObservable(r,c);if(PD(r))return this.spawnMachine(r,jr(jr({},u),{id:c}));if(bLn(r))return this.spawnBehavior(r,c);throw new Error('Unable to spawn entity "'.concat(c,'" of type "').concat(typeof r,'".'))},n.prototype.spawnMachine=function(r,c){var u=this;c===void 0&&(c={});var d=new n(r,jr(jr({},this.options),{parent:this,id:c.id||r.id})),p=jr(jr({},XLn),c);p.sync&&d.onTransition(function(x){u.send($Rt,{state:x,id:d.id})});var m=d;return this.children.set(d.id,m),p.autoForward&&this.forwardTo.add(d.id),d.onDone(function(x){u.removeChild(d.id),u.send(Yh(x,{origin:d.id}))}).start(),m},n.prototype.spawnBehavior=function(r,c){var u=GLn(r,{id:c,parent:this});return this.children.set(c,u),u},n.prototype.spawnPromise=function(r,c){var u,d=this,p=!1,m;r.then(function(E){p||(m=E,d.removeChild(c),d.send(Yh(Aae(c,E),{origin:c})))},function(E){if(!p){d.removeChild(c);var k=_U(c,E);try{d.send(Yh(k,{origin:c}))}catch{d.devTools&&d.devTools.send(k,d.state),d.machine.strict&&d.stop()}}});var x=(u={id:c,send:function(){},subscribe:function(E,k,T){var P=vH(E,k,T),I=!1;return r.then(function(O){I||(P.next(O),!I&&P.complete())},function(O){I||P.error(O)}),{unsubscribe:function(){return I=!0}}},stop:function(){p=!0},toJSON:function(){return{id:c}},getSnapshot:function(){return m}},u[WE]=function(){return this},u);return this.children.set(c,x),x},n.prototype.spawnCallback=function(r,c){var u,d=this,p=!1,m=new Set,x=new Set,E,k=function(I){E=I,x.forEach(function(O){return O(I)}),!p&&d.send(Yh(I,{origin:c}))},T;try{T=r(k,function(I){m.add(I)})}catch(I){this.send(_U(c,I))}if(v9t(T))return this.spawnPromise(T,c);var P=(u={id:c,send:function(I){return m.forEach(function(O){return O(I)})},subscribe:function(I){var O=vH(I);return x.add(O.next),{unsubscribe:function(){x.delete(O.next)}}},stop:function(){p=!0,zc(T)&&T()},toJSON:function(){return{id:c}},getSnapshot:function(){return E}},u[WE]=function(){return this},u);return this.children.set(c,P),P},n.prototype.spawnObservable=function(r,c){var u,d=this,p,m=r.subscribe(function(E){p=E,d.send(Yh(E,{origin:c}))},function(E){d.removeChild(c),d.send(Yh(_U(c,E),{origin:c}))},function(){d.removeChild(c),d.send(Yh(Aae(c),{origin:c}))}),x=(u={id:c,send:function(){},subscribe:function(E,k,T){return r.subscribe(E,k,T)},stop:function(){return m.unsubscribe()},getSnapshot:function(){return p},toJSON:function(){return{id:c}}},u[WE]=function(){return this},u);return this.children.set(c,x),x},n.prototype.spawnActor=function(r,c){return this.children.set(c,r),r},n.prototype.spawnActivity=function(r){var c=this.machine.options&&this.machine.options.activities?this.machine.options.activities[r.type]:void 0;if(!!c){var u=c(this.state.context,r);this.spawnEffect(r.id,u)}},n.prototype.spawnEffect=function(r,c){var u;this.children.set(r,(u={id:r,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:c||void 0,getSnapshot:function(){},toJSON:function(){return{id:r}}},u[WE]=function(){return this},u))},n.prototype.attachDev=function(){var r=_De();if(this.options.devTools&&r){if(r.__REDUX_DEVTOOLS_EXTENSION__){var c=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=r.__REDUX_DEVTOOLS_EXTENSION__.connect(jr(jr({name:this.id,autoPause:!0,stateSanitizer:function(u){return{value:u.value,context:u.context,actions:u.actions}}},c),{features:jr({jump:!1,skip:!1},c?c.features:void 0)}),this.machine),this.devTools.init(this.state)}WLn(this)}},n.prototype.toJSON=function(){return{id:this.id}},n.prototype[WE]=function(){return this},n.prototype.getSnapshot=function(){return this.status===If.NotStarted?this.initialState:this._state},n.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(r,c){return setTimeout(r,c)},clearTimeout:function(r){return clearTimeout(r)}},logger:console.log.bind(console),devTools:!1},n.interpret=MDe,n}();function MDe(n,r){var c=new KLn(n,r);return c}function YLn(n){if(typeof n=="string"){var r={type:n};return r.toString=function(){return n},r}return n}function vse(n){return jr(jr({type:fPe},n),{toJSON:function(){n.onDone,n.onError;var r=CDe(n,["onDone","onError"]);return jr(jr({},r),{type:fPe,src:YLn(n.src)})}})}var yse="",bPe="#",n7e="*",Q_={},Z_=function(n){return n[0]===bPe},QLn=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},ZLn=function(){function n(r,c,u,d){u===void 0&&(u="context"in r?r.context:void 0);var p=this,m;this.config=r,this._context=u,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(QLn(),c),this.parent=d==null?void 0:d.parent,this.key=this.config.key||(d==null?void 0:d.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:LRt),this.id=this.config.id||Bc([this.machine.key],ra(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(m=this.config.schema)!==null&&m!==void 0?m:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?OU(this.config.states,function(k,T){var P,I=new n(k,{},void 0,{parent:p,key:T});return Object.assign(p.idMap,jr((P={},P[I.id]=I,P),I.idMap)),I}):Q_;var x=0;function E(k){var T,P;k.order=x++;try{for(var I=pa(XRt(k)),O=I.next();!O.done;O=I.next()){var N=O.value;E(N)}}catch(j){T={error:j}}finally{try{O&&!O.done&&(P=I.return)&&P.call(I)}finally{if(T)throw T.error}}}E(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(k){var T=k.event;return T===yse}):yse in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=mw(this.config.entry||this.config.onEntry).map(function(k){return bq(k)}),this.onExit=mw(this.config.exit||this.config.onExit).map(function(k){return bq(k)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=mw(this.config.invoke).map(function(k,T){var P,I;if(PD(k)){var O=gse(p.id,T);return p.machine.options.services=jr((P={},P[O]=k,P),p.machine.options.services),vse({src:O,id:O})}else if(sc(k.src)){var O=k.id||gse(p.id,T);return vse(jr(jr({},k),{id:O,src:k.src}))}else if(PD(k.src)||zc(k.src)){var O=k.id||gse(p.id,T);return p.machine.options.services=jr((I={},I[O]=k.src,I),p.machine.options.services),vse(jr(jr({id:O},k),{src:O}))}else{var N=k.src;return vse(jr(jr({id:gse(p.id,T)},k),{src:N}))}}),this.activities=mw(this.config.activities).concat(this.invoke).map(function(k){return ODe(k)}),this.transition=this.transition.bind(this),this.tags=mw(this.config.tags)}return n.prototype._init=function(){this.__cache.transitions||KRt(this).forEach(function(r){return r.on})},n.prototype.withConfig=function(r,c){var u=this.options,d=u.actions,p=u.activities,m=u.guards,x=u.services,E=u.delays;return new n(this.config,{actions:jr(jr({},d),r.actions),activities:jr(jr({},p),r.activities),guards:jr(jr({},m),r.guards),services:jr(jr({},x),r.services),delays:jr(jr({},E),r.delays)},c!=null?c:this.context)},n.prototype.withContext=function(r){return new n(this.config,this.options,r)},Object.defineProperty(n.prototype,"context",{get:function(){return zc(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:OU(this.states,function(r){return r.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return this.definition},Object.defineProperty(n.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var r=this.transitions;return this.__cache.on=r.reduce(function(c,u){return c[u.eventType]=c[u.eventType]||[],c[u.eventType].push(u),c},{})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),n.prototype.getCandidates=function(r){if(this.__cache.candidates[r])return this.__cache.candidates[r];var c=r===yse,u=this.transitions.filter(function(d){var p=d.eventType===r;return c?p:p||d.eventType===n7e});return this.__cache.candidates[r]=u,u},n.prototype.getDelayedTransitions=function(){var r=this,c=this.config.after;if(!c)return[];var u=function(p,m){var x=zc(p)?"".concat(r.id,":delay[").concat(m,"]"):p,E=MLn(x,r.id);return r.onEntry.push(Kle(E,{delay:p})),r.onExit.push(TLn(E)),E},d=cN(c)?c.map(function(p,m){var x=u(p.delay,m);return jr(jr({},p),{event:x})}):Sl(Object.keys(c).map(function(p,m){var x=c[p],E=sc(x)?{target:x}:x,k=isNaN(+p)?p:+p,T=u(k,m);return mw(E).map(function(P){return jr(jr({},P),{event:T,delay:k})})}));return d.map(function(p){var m=p.delay;return jr(jr({},r.formatTransition(p)),{delay:m})})},n.prototype.getStateNodes=function(r){var c,u=this;if(!r)return[];var d=r instanceof wb?r.value:mH(r,this.delimiter);if(sc(d)){var p=this.getStateNode(d).initial;return p!==void 0?this.getStateNodes((c={},c[d]=p,c)):[this,this.states[d]]}var m=Object.keys(d),x=[this];return x.push.apply(x,Bc([],ra(Sl(m.map(function(E){return u.getStateNode(E).getStateNodes(d[E])}))),!1)),x},n.prototype.handles=function(r){var c=BRt(r);return this.events.includes(c)},n.prototype.resolveState=function(r){var c=r instanceof wb?r:wb.create(r),u=Array.from(MU([],this.getStateNodes(c.value)));return new wb(jr(jr({},c),{value:this.resolve(c.value),configuration:u,done:Pae(u,this),tags:x9t(u),machine:this.machine}))},n.prototype.transitionLeafNode=function(r,c,u){var d=this.getStateNode(r),p=d.next(c,u);return!p||!p.transitions.length?this.next(c,u):p},n.prototype.transitionCompoundNode=function(r,c,u){var d=Object.keys(r),p=this.getStateNode(d[0]),m=p._transition(r[d[0]],c,u);return!m||!m.transitions.length?this.next(c,u):m},n.prototype.transitionParallelNode=function(r,c,u){var d,p,m={};try{for(var x=pa(Object.keys(r)),E=x.next();!E.done;E=x.next()){var k=E.value,T=r[k];if(!!T){var P=this.getStateNode(k),I=P._transition(T,c,u);I&&(m[k]=I)}}}catch(B){d={error:B}}finally{try{E&&!E.done&&(p=x.return)&&p.call(x)}finally{if(d)throw d.error}}var O=Object.keys(m).map(function(B){return m[B]}),N=Sl(O.map(function(B){return B.transitions})),j=O.some(function(B){return B.transitions.length>0});if(!j)return this.next(c,u);var $=Sl(O.map(function(B){return B.entrySet})),L=Sl(Object.keys(m).map(function(B){return m[B].configuration}));return{transitions:N,entrySet:$,exitSet:Sl(O.map(function(B){return B.exitSet})),configuration:L,source:c,actions:Sl(Object.keys(m).map(function(B){return m[B].actions}))}},n.prototype._transition=function(r,c,u){return sc(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)},n.prototype.getTransitionData=function(r,c){return this._transition(r.value,r,Yh(c))},n.prototype.next=function(r,c){var u,d,p=this,m=c.name,x=[],E=[],k;try{for(var T=pa(this.getCandidates(m)),P=T.next();!P.done;P=T.next()){var I=P.value,O=I.cond,N=I.in,j=r.context,$=N?sc(N)&&Z_(N)?r.matches(mH(this.getStateNodeById(N).path,this.delimiter)):ADe(mH(N,this.delimiter),hLn(this.path.slice(0,-2))(r.value)):!0,L=!1;try{L=!O||HRt(this.machine,O,j,c,r)}catch(te){throw new Error("Unable to evaluate guard '".concat(O.name||O.type,"' in transition for event '").concat(m,"' in state node '").concat(this.id,`': +`).concat(te.message))}if(L&&$){I.target!==void 0&&(E=I.target),x.push.apply(x,Bc([],ra(I.actions),!1)),k=I;break}}}catch(te){u={error:te}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}if(!!k){if(!E.length)return{transitions:[k],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:x};var B=Sl(E.map(function(te){return p.getRelativeStateNodes(te,r.historyValue)})),F=!!k.internal,X=[];return F||E.forEach(function(te){X.push.apply(X,Bc([],ra(p.getExternalReentryNodes(te)),!1))}),{transitions:[k],entrySet:X,exitSet:F?[]:[this],configuration:B,source:r,actions:x}}},n.prototype.getExternalReentryNodes=function(r){for(var c=[],u=ra(r.order>this.order?[r,this]:[this,r],2),d=u[0],p=u[1];d&&d!==p;)c.push(d),d=d.parent;return d!==p?[]:(c.push(p),c)},n.prototype.getActions=function(r,c,u,d,p,m,x){var E,k,T,P,I=this,O=MU([],m?this.getStateNodes(m.value):[this]);try{for(var N=pa(r),j=N.next();!j.done;j=N.next()){var $=j.value;(!DU(O,$)||DU(u.entrySet,$.parent))&&u.entrySet.push($)}}catch(fe){E={error:fe}}finally{try{j&&!j.done&&(k=N.return)&&k.call(N)}finally{if(E)throw E.error}}try{for(var L=pa(O),B=L.next();!B.done;B=L.next()){var $=B.value;(!DU(r,$)||DU(u.exitSet,$.parent))&&u.exitSet.push($)}}catch(fe){T={error:fe}}finally{try{B&&!B.done&&(P=L.return)&&P.call(L)}finally{if(T)throw T.error}}var F=Sl(u.entrySet.map(function(fe){var ve=[];if(fe.type!=="final")return ve;var Ge=fe.parent;if(!Ge.parent)return ve;ve.push(bse(fe.id,fe.doneData),bse(Ge.id,fe.doneData?Rce(fe.doneData,d,p):void 0));var qe=Ge.parent;return qe.type==="parallel"&&mq(qe).every(function(Je){return Pae(u.configuration,Je)})&&ve.push(bse(qe.id)),ve}));u.exitSet.sort(function(fe,ve){return ve.order-fe.order}),u.entrySet.sort(function(fe,ve){return fe.order-ve.order});var X=new Set(u.entrySet),te=new Set(u.exitSet),Z=Array.from(X).map(function(fe){var ve=fe.onEntry,Ge=fe.activities.map(function(qe){return ALn(qe)});return GE(x?Bc(Bc([],ra(ve),!1),ra(Ge),!1):Bc(Bc([],ra(Ge),!1),ra(ve),!1),I.machine.options.actions)}).concat([F.map(q9)]),H=Array.from(te).map(function(fe){return GE(Bc(Bc([],ra(fe.onExit),!1),ra(fe.activities.map(function(ve){return PLn(ve)})),!1),I.machine.options.actions)}),ce=H.concat([GE(u.actions,this.machine.options.actions)]).concat(Z);if(c){var pe=GE(Sl(Bc([],ra(r),!1).sort(function(fe,ve){return ve.order-fe.order}).map(function(fe){return fe.onExit})),this.machine.options.actions).filter(function(fe){return fe.type!==TD&&(fe.type!==AD||!!fe.to&&fe.to!==Iv.Internal)});return ce.concat([pe])}return ce},n.prototype.transition=function(r,c,u,d){r===void 0&&(r=this.initialState);var p=Yh(c),m;if(r instanceof wb)m=u===void 0?r:this.resolveState(wb.from(r,u));else{var x=sc(r)?this.resolve(jce(this.getResolvedPath(r))):this.resolve(r),E=u!=null?u:this.machine.context;m=this.resolveState(wb.from(x,E))}if(this.strict&&!this.events.includes(p.name)&&!gLn(p.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(p.name,"'"));var k=this._transition(m.value,m,p)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:m,actions:[]},T=MU([],this.getStateNodes(m.value)),P=k.configuration.length?MU(T,k.configuration):T;return k.configuration=Bc([],ra(P),!1),this.resolveTransition(k,m,m.context,d,p)},n.prototype.resolveRaisedTransition=function(r,c,u,d){var p,m=r.actions;return r=this.transition(r,c,void 0,d),r._event=u,r.event=u.data,(p=r.actions).unshift.apply(p,Bc([],ra(m),!1)),r},n.prototype.resolveTransition=function(r,c,u,d,p){var m,x,E,k,T=this;p===void 0&&(p=nD);var P=r.configuration,I=!c||r.transitions.length>0,O=I?r.configuration:c?c.configuration:[],N=Pae(O,this),j=I?LLn(this.machine,P):void 0,$=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,L=this.getActions(new Set(O),N,r,u,p,c,d),B=c?jr({},c.activities):{};try{for(var F=pa(L),X=F.next();!X.done;X=F.next()){var te=X.value;try{for(var Z=(E=void 0,pa(te)),H=Z.next();!H.done;H=Z.next()){var ce=H.value;ce.type===lPe?B[ce.activity.id||ce.activity.type]=ce:ce.type===IDe&&(B[ce.activity.id||ce.activity.type]=!1)}}catch(an){E={error:an}}finally{try{H&&!H.done&&(k=Z.return)&&k.call(Z)}finally{if(E)throw E.error}}}}catch(an){m={error:an}}finally{try{X&&!X.done&&(x=F.return)&&x.call(F)}finally{if(m)throw m.error}}var pe=ra($ce(this,c,u,p,L,d,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),fe=pe[0],ve=pe[1],Ge=ra(mLn(fe,function(an){return an.type===TD||an.type===AD&&an.to===Iv.Internal}),2),qe=Ge[0],Je=Ge[1],et=fe.filter(function(an){var An;return an.type===lPe&&((An=an.activity)===null||An===void 0?void 0:An.type)===fPe}),jt=et.reduce(function(an,An){return an[An.activity.id]=NLn(An.activity,T.machine,ve,p),an},c?jr({},c.children):{}),Me=new wb({value:j||c.value,context:ve,_event:p,_sessionid:c?c._sessionid:null,historyValue:j?$?vLn($,j):void 0:c?c.historyValue:void 0,history:!j||r.source?c:void 0,actions:j?Je:[],activities:j?B:c?c.activities:{},events:[],configuration:O,transitions:r.transitions,children:jt,done:N,tags:x9t(O),machine:this}),Ve=u!==ve;Me.changed=p.name===$Rt||Ve;var ye=Me.history;ye&&delete ye.history;var De=!N&&(this._transient||P.some(function(an){return an._transient}));if(!I&&(!De||p.name===yse))return Me;var be=Me;if(!N)for(De&&(be=this.resolveRaisedTransition(be,{type:sLn},p,d));qe.length;){var xe=qe.shift();be=this.resolveRaisedTransition(be,xe._event,p,d)}var Jt=be.changed||(ye?!!be.actions.length||Ve||typeof ye.value!=typeof be.value||!QRt(be.value,ye.value):void 0);return be.changed=Jt,be.history=ye,be},n.prototype.getStateNode=function(r){if(Z_(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error("Unable to retrieve child state '".concat(r,"' from '").concat(this.id,"'; no child states exist."));var c=this.states[r];if(!c)throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return c},n.prototype.getStateNodeById=function(r){var c=Z_(r)?r.slice(bPe.length):r;if(c===this.id)return this;var u=this.machine.idMap[c];if(!u)throw new Error("Child state node '#".concat(c,"' does not exist on machine '").concat(this.id,"'"));return u},n.prototype.getStateNodeByPath=function(r){if(typeof r=="string"&&Z_(r))try{return this.getStateNodeById(r.slice(1))}catch{}for(var c=hPe(r,this.delimiter).slice(),u=this;c.length;){var d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u},n.prototype.resolve=function(r){var c,u=this;if(!r)return this.initialStateValue||Q_;switch(this.type){case"parallel":return OU(this.initialStateValue,function(p,m){return p?u.getStateNode(m).resolve(r[m]||p):Q_});case"compound":if(sc(r)){var d=this.getStateNode(r);return d.type==="parallel"||d.type==="compound"?(c={},c[r]=d.initialStateValue,c):r}return Object.keys(r).length?OU(r,function(p,m){return p?u.getStateNode(m).resolve(p):Q_}):this.initialStateValue||{};default:return r||Q_}},n.prototype.getResolvedPath=function(r){if(Z_(r)){var c=this.machine.idMap[r.slice(bPe.length)];if(!c)throw new Error("Unable to find state node '".concat(r,"'"));return c.path}return hPe(r,this.delimiter)},Object.defineProperty(n.prototype,"initialStateValue",{get:function(){var r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var c;if(this.type==="parallel")c=m9t(this.states,function(u){return u.initialStateValue||Q_},function(u){return u.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));c=Lce(this.states[this.initial])?this.initial:(r={},r[this.initial]=this.states[this.initial].initialStateValue,r)}else c={};return this.__cache.initialStateValue=c,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),n.prototype.getInitialState=function(r,c){this._init();var u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:Bc([],ra(u),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)},Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this.initialStateValue;if(!r)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"target",{get:function(){var r;if(this.type==="history"){var c=this.config;sc(c.target)?r=Z_(c.target)?jce(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r},enumerable:!1,configurable:!0}),n.prototype.getRelativeStateNodes=function(r,c,u){return u===void 0&&(u=!0),u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]},Object.defineProperty(n.prototype,"initialStateNodes",{get:function(){var r=this;if(Lce(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var c=Tae(this.initialStateValue);return Sl(c.map(function(u){return r.getFromRelativePath(u)}))},enumerable:!1,configurable:!0}),n.prototype.getFromRelativePath=function(r){if(!r.length)return[this];var c=ra(r),u=c[0],d=c.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(u,"' from node with no states"));var p=this.getStateNode(u);if(p.type==="history")return p.resolveHistory();if(!this.states[u])throw new Error("Child state '".concat(u,"' does not exist on '").concat(this.id,"'"));return this.states[u].getFromRelativePath(d)},n.prototype.historyValue=function(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:m9t(this.states,function(c,u){if(!r)return c.historyValue();var d=sc(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},function(c){return!c.history})}},n.prototype.resolveHistory=function(r){var c=this;if(this.type!=="history")return[this];var u=this.parent;if(!r){var d=this.target;return d?Sl(Tae(d).map(function(m){return u.getFromRelativePath(m)})):u.initialStateNodes}var p=pLn(u.path,"states")(r).current;return sc(p)?[u.getStateNode(p)]:Sl(Tae(p).map(function(m){return c.history==="deep"?u.getFromRelativePath(m):[u.states[m[0]]]}))},Object.defineProperty(n.prototype,"stateIds",{get:function(){var r=this,c=Sl(Object.keys(this.states).map(function(u){return r.states[u].stateIds}));return[this.id].concat(c)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"events",{get:function(){var r,c,u,d;if(this.__cache.events)return this.__cache.events;var p=this.states,m=new Set(this.ownEvents);if(p)try{for(var x=pa(Object.keys(p)),E=x.next();!E.done;E=x.next()){var k=E.value,T=p[k];if(T.states)try{for(var P=(u=void 0,pa(T.events)),I=P.next();!I.done;I=P.next()){var O=I.value;m.add("".concat(O))}}catch(N){u={error:N}}finally{try{I&&!I.done&&(d=P.return)&&d.call(P)}finally{if(u)throw u.error}}}}catch(N){r={error:N}}finally{try{E&&!E.done&&(c=x.return)&&c.call(x)}finally{if(r)throw r.error}}return this.__cache.events=Array.from(m)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ownEvents",{get:function(){var r=new Set(this.transitions.filter(function(c){return!(!c.target&&!c.actions.length&&c.internal)}).map(function(c){return c.eventType}));return Array.from(r)},enumerable:!1,configurable:!0}),n.prototype.resolveTarget=function(r){var c=this;if(r!==void 0)return r.map(function(u){if(!sc(u))return u;var d=u[0]===c.delimiter;if(d&&!c.parent)return c.getStateNodeByPath(u.slice(1));var p=d?c.key+u:u;if(c.parent)try{var m=c.parent.getStateNodeByPath(p);return m}catch(x){throw new Error("Invalid transition definition for state node '".concat(c.id,`': +`).concat(x.message))}else return c.getStateNodeByPath(p)})},n.prototype.formatTransition=function(r){var c=this,u=SLn(r.target),d="internal"in r?r.internal:u?u.some(function(E){return sc(E)&&E[0]===c.delimiter}):!0,p=this.machine.options.guards,m=this.resolveTarget(u),x=jr(jr({},r),{actions:GE(mw(r.actions)),cond:URt(r.cond,p),target:m,source:this,internal:d,eventType:r.event,toJSON:function(){return jr(jr({},x),{target:x.target?x.target.map(function(E){return"#".concat(E.id)}):void 0,source:"#".concat(c.id)})}});return x},n.prototype.formatTransitions=function(){var r,c,u=this,d;if(!this.config.on)d=[];else if(Array.isArray(this.config.on))d=this.config.on;else{var p=this.config.on,m=n7e,x=p[m],E=x===void 0?[]:x,k=CDe(p,[typeof m=="symbol"?m:m+""]);d=Sl(Object.keys(k).map(function(B){var F=Y_(B,k[B]);return F}).concat(Y_(n7e,E)))}var T=this.config.always?Y_("",this.config.always):[],P=this.config.onDone?Y_(String(bse(this.id)),this.config.onDone):[],I=Sl(this.invoke.map(function(B){var F=[];return B.onDone&&F.push.apply(F,Bc([],ra(Y_(String(Aae(B.id)),B.onDone)),!1)),B.onError&&F.push.apply(F,Bc([],ra(Y_(String(_U(B.id)),B.onError)),!1)),F})),O=this.after,N=Sl(Bc(Bc(Bc(Bc([],ra(P),!1),ra(I),!1),ra(d),!1),ra(T),!1).map(function(B){return mw(B).map(function(F){return u.formatTransition(F)})}));try{for(var j=pa(O),$=j.next();!$.done;$=j.next()){var L=$.value;N.push(L)}}catch(B){r={error:B}}finally{try{$&&!$.done&&(c=j.return)&&c.call(j)}finally{if(r)throw r.error}}return N},n}(),E9t=!1;function sg(n,r){return!FRt&&!n.predictableActionArguments&&!E9t&&(E9t=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new ZLn(n,r)}var Ji=_Ln,yH=CLn,ZRt=U.exports.useLayoutEffect;function mPe(n){var r=U.exports.useRef();return r.current||(r.current={v:n()}),r.current.v}var Fce=globalThis&&globalThis.__assign||function(){return Fce=Object.assign||function(n){for(var r,c=1,u=arguments.length;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function JRt(n,r){var c=mPe(function(){return typeof n=="function"?n():n}),u=r.context,d=r.guards,p=r.actions,m=r.activities,x=r.services,E=r.delays;r.state;var k=JLn(r,["context","guards","actions","activities","services","delays","state"]),T=mPe(function(){var P={context:u,guards:d,actions:p,activities:m,services:x,delays:E},I=c.withConfig(P,function(){return Fce(Fce({},c.context),u)});return MDe(I,k)});return ZRt(function(){Object.assign(T.machine.options.actions,p),Object.assign(T.machine.options.guards,d),Object.assign(T.machine.options.activities,m),Object.assign(T.machine.options.services,x),Object.assign(T.machine.options.delays,E)},[p,d,m,x,E]),T}function yW(n){for(var r=[],c=1;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function nFn(n){return n}function Nw(n){for(var r=[],c=1;c0||typeof P.changed=="boolean");return!(I.changed||O)},[m]),k=U.exports.useCallback(function(P){var I=m.subscribe(P).unsubscribe;return I},[m]),T=EDe.exports.useSyncExternalStoreWithSelector(k,x,x,nFn,E);return U.exports.useEffect(function(){var P=p.state;return m.start(P?wb.create(P):void 0),function(){m.stop(),m.status=If.NotStarted}},[]),[T,m.send,m]}function e$t(n){return"state"in n}function rFn(n){return"deferred"in n}function iFn(n){return"getSnapshot"in n?n.getSnapshot():e$t(n)?n.state:void 0}function oFn(n,r){r===void 0&&(r=iFn);var c=U.exports.useRef(n),u=U.exports.useRef([]),d=U.exports.useCallback(function(E){var k=n.subscribe(E).unsubscribe;return k},[n]),p=U.exports.useCallback(function(){return r(n)},[n,r]),m=kDe.exports.useSyncExternalStore(d,p,p),x=mPe(function(){return function(){for(var E=[],k=0;k0;){var E=u.current.shift();n.send(E)}},[n]),[m,x]}globalThis&&globalThis.__read;globalThis&&globalThis.__values;function sFn(n){return n.status!==0?n.state:n.machine.initialState}function k9t(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function vPe(n,r){if(k9t(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var c=Object.keys(n),u=Object.keys(r);if(c.length!==u.length)return!1;for(var d=0;d=p.length&&(p=void 0),{value:p&&p[E++],done:!p}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(p,m){var x=typeof Symbol=="function"&&p[Symbol.iterator];if(!x)return p;var E=x.call(p),k,T=[],P;try{for(;(m===void 0||m-- >0)&&!(k=E.next()).done;)T.push(k.value)}catch(I){P={error:I}}finally{try{k&&!k.done&&(x=E.return)&&x.call(E)}finally{if(P)throw P.error}}return T}function d(p,m,x){if(x||arguments.length===2)for(var E=0,k=m.length,T;E"u"||typeof Ee=="string"||be(Ee)?{target:Ee,event:Ne}:r.__assign(r.__assign({},Ee),{event:Ne})});return ae}function ir(Ne){if(!(Ne===void 0||Ne===c.TARGETLESS_KEY))return te(Ne)}function Jn(Ne,at,ae){if(!u.IS_PRODUCTION){var Ee=Ne.stack?" Stacktrace was '".concat(Ne.stack,"'"):"";if(Ne===at)console.error("Missing onError handler for invocation '".concat(ae,"', error was '").concat(Ne,"'.").concat(Ee));else{var Ie=at.stack?" Stacktrace was '".concat(at.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(ae,"'. ")+"Original error: '".concat(Ne,"'. ").concat(Ee," Current error is '").concat(at,"'.").concat(Ie))}}}function Gr(Ne,at,ae,Ee,Ie){var tt=Ne.options.guards,en={state:Ie,cond:at,_event:Ee};if(at.type===c.DEFAULT_GUARD_TYPE)return((tt==null?void 0:tt[at.name])||at.predicate)(ae,Ee.data,en);var gn=tt==null?void 0:tt[at.type];if(!gn)throw new Error("Guard '".concat(at.type,"' is not implemented on machine '").concat(Ne.id,"'."));return gn(ae,Ee.data,en)}function Ze(Ne){return typeof Ne=="string"?{type:Ne}:Ne}function ut(Ne,at,ae){var Ee=function(){},Ie=typeof Ne=="object",tt=Ie?Ne:null;return{next:((Ie?Ne.next:Ne)||Ee).bind(tt),error:((Ie?Ne.error:at)||Ee).bind(tt),complete:((Ie?Ne.complete:ae)||Ee).bind(tt)}}function on(Ne,at){return"".concat(Ne,":invocation[").concat(at,"]")}n.createInvokeId=on,n.evaluateGuard=Gr,n.flatten=F,n.getActionType=E,n.getEventType=x,n.interopSymbols=De,n.isActor=xe,n.isArray=Je,n.isBehavior=pe,n.isBuiltInEvent=H,n.isFunction=et,n.isMachine=be,n.isObservable=Ve,n.isPromiseLike=ce,n.isStateLike=T,n.isString=jt,n.keys=p,n.mapContext=Z,n.mapFilterValues=N,n.mapValues=O,n.matchesState=m,n.nestedPath=$,n.normalizeTarget=ir,n.partition=fe,n.path=j,n.pathToStateValue=I,n.pathsToStateValue=B,n.reportUnhandledExceptionOnInvocation=Jn,n.symbolObservable=ye,n.toArray=te,n.toArrayStrict=X,n.toEventObject=an,n.toGuard=Me,n.toInvokeSource=Ze,n.toObserver=ut,n.toSCXMLEvent=An,n.toStatePath=k,n.toStatePaths=L,n.toStateValue=P,n.toTransitionConfigArray=Wn,n.uniqueId=Jt,n.updateContext=qe,n.updateHistoryStates=ve,n.updateHistoryValue=Ge})(zn);Object.defineProperty(ga,"__esModule",{value:!0});var Ka=DS,jb=Yle,bh=of,La=zn,n$t=rT,FFn=La.toSCXMLEvent({type:bh.init});function yPe(n,r){return r&&r[n]||void 0}function Qle(n,r){var c;if(La.isString(n)||typeof n=="number"){var u=yPe(n,r);La.isFunction(u)?c={type:n,exec:u}:u?c=u:c={type:n,exec:void 0}}else if(La.isFunction(n))c={type:n.name||n.toString(),exec:n};else{var u=yPe(n.type,r);if(La.isFunction(u))c=Ka.__assign(Ka.__assign({},n),{exec:u});else if(u){var d=u.type||n.type;c=Ka.__assign(Ka.__assign(Ka.__assign({},u),n),{type:d})}else c=n}return c}var wPe=function(n,r){if(!n)return[];var c=La.isArray(n)?n:[n];return c.map(function(u){return Qle(u,r)})};function DDe(n){var r=Qle(n);return Ka.__assign(Ka.__assign({id:La.isString(n)?n:r.id},r),{type:r.type})}function BFn(n){return La.isString(n)?{type:bh.raise,event:n}:uN(n,{to:jb.SpecialTargets.Internal})}function r$t(n){return{type:bh.raise,_event:La.toSCXMLEvent(n.event)}}function uN(n,r){return{to:r?r.to:void 0,type:bh.send,event:La.isFunction(n)?n:La.toEventObject(n),delay:r?r.delay:void 0,id:r&&r.id!==void 0?r.id:La.isFunction(n)?n.name:La.getEventType(n)}}function i$t(n,r,c,u){var d={_event:c},p=La.toSCXMLEvent(La.isFunction(n.event)?n.event(r,c.data,d):n.event),m;if(La.isString(n.delay)){var x=u&&u[n.delay];m=La.isFunction(x)?x(r,c.data,d):x}else m=La.isFunction(n.delay)?n.delay(r,c.data,d):n.delay;var E=La.isFunction(n.to)?n.to(r,c.data,d):n.to;return Ka.__assign(Ka.__assign({},n),{to:E,_event:p,event:p.data,delay:m})}function NDe(n,r){return uN(n,Ka.__assign(Ka.__assign({},r),{to:jb.SpecialTargets.Parent}))}function VFn(n,r,c){return uN(r,Ka.__assign(Ka.__assign({},c),{to:n}))}function zFn(){return NDe(bh.update)}function UFn(n,r){return uN(n,Ka.__assign(Ka.__assign({},r),{to:function(c,u,d){var p=d._event;return p.origin}}))}var HFn=function(n,r){return{context:n,event:r}};function qFn(n,r){return n===void 0&&(n=HFn),{type:bh.log,label:r,expr:n}}var o$t=function(n,r,c){return Ka.__assign(Ka.__assign({},n),{value:La.isString(n.expr)?n.expr:n.expr(r,c.data,{_event:c})})},WFn=function(n){return{type:bh.cancel,sendId:n}};function GFn(n){var r=DDe(n);return{type:jb.ActionTypes.Start,activity:r,exec:void 0}}function XFn(n){var r=La.isFunction(n)?n:DDe(n);return{type:jb.ActionTypes.Stop,activity:r,exec:void 0}}function s$t(n,r,c){var u=La.isFunction(n.activity)?n.activity(r,c.data):n.activity,d=typeof u=="string"?{id:u}:u,p={type:jb.ActionTypes.Stop,activity:d};return p}var KFn=function(n){return{type:bh.assign,assignment:n}};function YFn(n){return typeof n=="object"&&"type"in n}function QFn(n,r){var c=r?"#".concat(r):"";return"".concat(jb.ActionTypes.After,"(").concat(n,")").concat(c)}function ZFn(n,r){var c="".concat(jb.ActionTypes.DoneState,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function JFn(n,r){var c="".concat(jb.ActionTypes.DoneInvoke,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function eBn(n,r){var c="".concat(jb.ActionTypes.ErrorPlatform,".").concat(n),u={type:c,data:r};return u.toString=function(){return c},u}function tBn(n){return{type:jb.ActionTypes.Pure,get:n}}function nBn(n,r){if(!n$t.IS_PRODUCTION&&(!n||typeof n=="function")){var c=n;n=function(){for(var u=[],d=0;d0});if(!j)return this.next(c,u);var $=Sr.flatten(O.map(function(B){return B.entrySet})),L=Sr.flatten(Object.keys(m).map(function(B){return m[B].configuration}));return{transitions:N,entrySet:$,exitSet:Sr.flatten(O.map(function(B){return B.exitSet})),configuration:L,source:c,actions:Sr.flatten(Object.keys(m).map(function(B){return m[B].actions}))}},n.prototype._transition=function(r,c,u){return Sr.isString(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)},n.prototype.getTransitionData=function(r,c){return this._transition(r.value,r,Sr.toSCXMLEvent(c))},n.prototype.next=function(r,c){var u,d,p=this,m=c.name,x=[],E=[],k;try{for(var T=Cr.__values(this.getCandidates(m)),P=T.next();!P.done;P=T.next()){var I=P.value,O=I.cond,N=I.in,j=r.context,$=N?Sr.isString(N)&&nM(N)?r.matches(Sr.toStateValue(this.getStateNodeById(N).path,this.delimiter)):Sr.matchesState(Sr.toStateValue(N,this.delimiter),Sr.path(this.path.slice(0,-2))(r.value)):!0,L=!1;try{L=!O||Sr.evaluateGuard(this.machine,O,j,c,r)}catch(te){throw new Error("Unable to evaluate guard '".concat(O.name||O.type,"' in transition for event '").concat(m,"' in state node '").concat(this.id,`': +`).concat(te.message))}if(L&&$){I.target!==void 0&&(E=I.target),x.push.apply(x,Cr.__spreadArray([],Cr.__read(I.actions),!1)),k=I;break}}}catch(te){u={error:te}}finally{try{P&&!P.done&&(d=T.return)&&d.call(T)}finally{if(u)throw u.error}}if(!!k){if(!E.length)return{transitions:[k],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:x};var B=Sr.flatten(E.map(function(te){return p.getRelativeStateNodes(te,r.historyValue)})),F=!!k.internal,X=[];return F||E.forEach(function(te){X.push.apply(X,Cr.__spreadArray([],Cr.__read(p.getExternalReentryNodes(te)),!1))}),{transitions:[k],entrySet:X,exitSet:F?[]:[this],configuration:B,source:r,actions:x}}},n.prototype.getExternalReentryNodes=function(r){for(var c=[],u=Cr.__read(r.order>this.order?[r,this]:[this,r],2),d=u[0],p=u[1];d&&d!==p;)c.push(d),d=d.parent;return d!==p?[]:(c.push(p),c)},n.prototype.getActions=function(r,c,u,d,p,m,x){var E,k,T,P,I=this,O=_d.getConfiguration([],m?this.getStateNodes(m.value):[this]);try{for(var N=Cr.__values(r),j=N.next();!j.done;j=N.next()){var $=j.value;(!_d.has(O,$)||_d.has(u.entrySet,$.parent))&&u.entrySet.push($)}}catch(fe){E={error:fe}}finally{try{j&&!j.done&&(k=N.return)&&k.call(N)}finally{if(E)throw E.error}}try{for(var L=Cr.__values(O),B=L.next();!B.done;B=L.next()){var $=B.value;(!_d.has(r,$)||_d.has(u.exitSet,$.parent))&&u.exitSet.push($)}}catch(fe){T={error:fe}}finally{try{B&&!B.done&&(P=L.return)&&P.call(L)}finally{if(T)throw T.error}}var F=Sr.flatten(u.entrySet.map(function(fe){var ve=[];if(fe.type!=="final")return ve;var Ge=fe.parent;if(!Ge.parent)return ve;ve.push(Jl.done(fe.id,fe.doneData),Jl.done(Ge.id,fe.doneData?Sr.mapContext(fe.doneData,d,p):void 0));var qe=Ge.parent;return qe.type==="parallel"&&_d.getChildren(qe).every(function(Je){return _d.isInFinalState(u.configuration,Je)})&&ve.push(Jl.done(qe.id)),ve}));u.exitSet.sort(function(fe,ve){return ve.order-fe.order}),u.entrySet.sort(function(fe,ve){return fe.order-ve.order});var X=new Set(u.entrySet),te=new Set(u.exitSet),Z=Array.from(X).map(function(fe){var ve=fe.onEntry,Ge=fe.activities.map(function(qe){return Jl.start(qe)});return Jl.toActionObjects(x?Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(ve),!1),Cr.__read(Ge),!1):Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(Ge),!1),Cr.__read(ve),!1),I.machine.options.actions)}).concat([F.map(Jl.raise)]),H=Array.from(te).map(function(fe){return Jl.toActionObjects(Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(fe.onExit),!1),Cr.__read(fe.activities.map(function(ve){return Jl.stop(ve)})),!1),I.machine.options.actions)}),ce=H.concat([Jl.toActionObjects(u.actions,this.machine.options.actions)]).concat(Z);if(c){var pe=Jl.toActionObjects(Sr.flatten(Cr.__spreadArray([],Cr.__read(r),!1).sort(function(fe,ve){return ve.order-fe.order}).map(function(fe){return fe.onExit})),this.machine.options.actions).filter(function(fe){return fe.type!==xx.raise&&(fe.type!==xx.send||!!fe.to&&fe.to!==j9t.SpecialTargets.Internal)});return ce.concat([pe])}return ce},n.prototype.transition=function(r,c,u,d){r===void 0&&(r=this.initialState);var p=Sr.toSCXMLEvent(c),m;if(r instanceof J4.State)m=u===void 0?r:this.resolveState(J4.State.from(r,u));else{var x=Sr.isString(r)?this.resolve(Sr.pathToStateValue(this.getResolvedPath(r))):this.resolve(r),E=u!=null?u:this.machine.context;m=this.resolveState(J4.State.from(x,E))}if(!eM.IS_PRODUCTION&&p.name===dU)throw new Error("An event cannot have the wildcard type ('".concat(dU,"')"));if(this.strict&&!this.events.includes(p.name)&&!Sr.isBuiltInEvent(p.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(p.name,"'"));var k=this._transition(m.value,m,p)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:m,actions:[]},T=_d.getConfiguration([],this.getStateNodes(m.value)),P=k.configuration.length?_d.getConfiguration(T,k.configuration):T;return k.configuration=Cr.__spreadArray([],Cr.__read(P),!1),this.resolveTransition(k,m,m.context,d,p)},n.prototype.resolveRaisedTransition=function(r,c,u,d){var p,m=r.actions;return r=this.transition(r,c,void 0,d),r._event=u,r.event=u.data,(p=r.actions).unshift.apply(p,Cr.__spreadArray([],Cr.__read(m),!1)),r},n.prototype.resolveTransition=function(r,c,u,d,p){var m,x,E,k,T=this;p===void 0&&(p=Jl.initEvent);var P=r.configuration,I=!c||r.transitions.length>0,O=I?r.configuration:c?c.configuration:[],N=_d.isInFinalState(O,this),j=I?_d.getValue(this.machine,P):void 0,$=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,L=this.getActions(new Set(O),N,r,u,p,c,d),B=c?Cr.__assign({},c.activities):{};try{for(var F=Cr.__values(L),X=F.next();!X.done;X=F.next()){var te=X.value;try{for(var Z=(E=void 0,Cr.__values(te)),H=Z.next();!H.done;H=Z.next()){var ce=H.value;ce.type===xx.start?B[ce.activity.id||ce.activity.type]=ce:ce.type===xx.stop&&(B[ce.activity.id||ce.activity.type]=!1)}}catch(an){E={error:an}}finally{try{H&&!H.done&&(k=Z.return)&&k.call(Z)}finally{if(E)throw E.error}}}}catch(an){m={error:an}}finally{try{X&&!X.done&&(x=F.return)&&x.call(F)}finally{if(m)throw m.error}}var pe=Cr.__read(Jl.resolveActions(this,c,u,p,L,d,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),fe=pe[0],ve=pe[1],Ge=Cr.__read(Sr.partition(fe,function(an){return an.type===xx.raise||an.type===xx.send&&an.to===j9t.SpecialTargets.Internal}),2),qe=Ge[0],Je=Ge[1],et=fe.filter(function(an){var An;return an.type===xx.start&&((An=an.activity)===null||An===void 0?void 0:An.type)===xx.invoke}),jt=et.reduce(function(an,An){return an[An.activity.id]=FBn.createInvocableActor(An.activity,T.machine,ve,p),an},c?Cr.__assign({},c.children):{}),Me=new J4.State({value:j||c.value,context:ve,_event:p,_sessionid:c?c._sessionid:null,historyValue:j?$?Sr.updateHistoryValue($,j):void 0:c?c.historyValue:void 0,history:!j||r.source?c:void 0,actions:j?Je:[],activities:j?B:c?c.activities:{},events:[],configuration:O,transitions:r.transitions,children:jt,done:N,tags:_d.getTagsFromConfiguration(O),machine:this}),Ve=u!==ve;Me.changed=p.name===xx.update||Ve;var ye=Me.history;ye&&delete ye.history;var De=!N&&(this._transient||P.some(function(an){return an._transient}));if(!I&&(!De||p.name===bM))return Me;var be=Me;if(!N)for(De&&(be=this.resolveRaisedTransition(be,{type:xx.nullEvent},p,d));qe.length;){var xe=qe.shift();be=this.resolveRaisedTransition(be,xe._event,p,d)}var Jt=be.changed||(ye?!!be.actions.length||Ve||typeof ye.value!=typeof be.value||!J4.stateValuesEqual(be.value,ye.value):void 0);return be.changed=Jt,be.history=ye,be},n.prototype.getStateNode=function(r){if(nM(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error("Unable to retrieve child state '".concat(r,"' from '").concat(this.id,"'; no child states exist."));var c=this.states[r];if(!c)throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return c},n.prototype.getStateNodeById=function(r){var c=nM(r)?r.slice(SPe.length):r;if(c===this.id)return this;var u=this.machine.idMap[c];if(!u)throw new Error("Child state node '#".concat(c,"' does not exist on machine '").concat(this.id,"'"));return u},n.prototype.getStateNodeByPath=function(r){if(typeof r=="string"&&nM(r))try{return this.getStateNodeById(r.slice(1))}catch{}for(var c=Sr.toStatePath(r,this.delimiter).slice(),u=this;c.length;){var d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u},n.prototype.resolve=function(r){var c,u=this;if(!r)return this.initialStateValue||tM;switch(this.type){case"parallel":return Sr.mapValues(this.initialStateValue,function(p,m){return p?u.getStateNode(m).resolve(r[m]||p):tM});case"compound":if(Sr.isString(r)){var d=this.getStateNode(r);return d.type==="parallel"||d.type==="compound"?(c={},c[r]=d.initialStateValue,c):r}return Object.keys(r).length?Sr.mapValues(r,function(p,m){return p?u.getStateNode(m).resolve(p):tM}):this.initialStateValue||{};default:return r||tM}},n.prototype.getResolvedPath=function(r){if(nM(r)){var c=this.machine.idMap[r.slice(SPe.length)];if(!c)throw new Error("Unable to find state node '".concat(r,"'"));return c.path}return Sr.toStatePath(r,this.delimiter)},Object.defineProperty(n.prototype,"initialStateValue",{get:function(){var r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var c;if(this.type==="parallel")c=Sr.mapFilterValues(this.states,function(u){return u.initialStateValue||tM},function(u){return u.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));c=_d.isLeafNode(this.states[this.initial])?this.initial:(r={},r[this.initial]=this.states[this.initial].initialStateValue,r)}else c={};return this.__cache.initialStateValue=c,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),n.prototype.getInitialState=function(r,c){this._init();var u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:Cr.__spreadArray([],Cr.__read(u),!1),exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)},Object.defineProperty(n.prototype,"initialState",{get:function(){var r=this.initialStateValue;if(!r)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"target",{get:function(){var r;if(this.type==="history"){var c=this.config;Sr.isString(c.target)?r=nM(c.target)?Sr.pathToStateValue(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r},enumerable:!1,configurable:!0}),n.prototype.getRelativeStateNodes=function(r,c,u){return u===void 0&&(u=!0),u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]},Object.defineProperty(n.prototype,"initialStateNodes",{get:function(){var r=this;if(_d.isLeafNode(this))return[this];if(this.type==="compound"&&!this.initial)return eM.IS_PRODUCTION||Sr.warn(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var c=Sr.toStatePaths(this.initialStateValue);return Sr.flatten(c.map(function(u){return r.getFromRelativePath(u)}))},enumerable:!1,configurable:!0}),n.prototype.getFromRelativePath=function(r){if(!r.length)return[this];var c=Cr.__read(r),u=c[0],d=c.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(u,"' from node with no states"));var p=this.getStateNode(u);if(p.type==="history")return p.resolveHistory();if(!this.states[u])throw new Error("Child state '".concat(u,"' does not exist on '").concat(this.id,"'"));return this.states[u].getFromRelativePath(d)},n.prototype.historyValue=function(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:Sr.mapFilterValues(this.states,function(c,u){if(!r)return c.historyValue();var d=Sr.isString(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},function(c){return!c.history})}},n.prototype.resolveHistory=function(r){var c=this;if(this.type!=="history")return[this];var u=this.parent;if(!r){var d=this.target;return d?Sr.flatten(Sr.toStatePaths(d).map(function(m){return u.getFromRelativePath(m)})):u.initialStateNodes}var p=Sr.nestedPath(u.path,"states")(r).current;return Sr.isString(p)?[u.getStateNode(p)]:Sr.flatten(Sr.toStatePaths(p).map(function(m){return c.history==="deep"?u.getFromRelativePath(m):[u.states[m[0]]]}))},Object.defineProperty(n.prototype,"stateIds",{get:function(){var r=this,c=Sr.flatten(Object.keys(this.states).map(function(u){return r.states[u].stateIds}));return[this.id].concat(c)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"events",{get:function(){var r,c,u,d;if(this.__cache.events)return this.__cache.events;var p=this.states,m=new Set(this.ownEvents);if(p)try{for(var x=Cr.__values(Object.keys(p)),E=x.next();!E.done;E=x.next()){var k=E.value,T=p[k];if(T.states)try{for(var P=(u=void 0,Cr.__values(T.events)),I=P.next();!I.done;I=P.next()){var O=I.value;m.add("".concat(O))}}catch(N){u={error:N}}finally{try{I&&!I.done&&(d=P.return)&&d.call(P)}finally{if(u)throw u.error}}}}catch(N){r={error:N}}finally{try{E&&!E.done&&(c=x.return)&&c.call(x)}finally{if(r)throw r.error}}return this.__cache.events=Array.from(m)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ownEvents",{get:function(){var r=new Set(this.transitions.filter(function(c){return!(!c.target&&!c.actions.length&&c.internal)}).map(function(c){return c.eventType}));return Array.from(r)},enumerable:!1,configurable:!0}),n.prototype.resolveTarget=function(r){var c=this;if(r!==void 0)return r.map(function(u){if(!Sr.isString(u))return u;var d=u[0]===c.delimiter;if(d&&!c.parent)return c.getStateNodeByPath(u.slice(1));var p=d?c.key+u:u;if(c.parent)try{var m=c.parent.getStateNodeByPath(p);return m}catch(x){throw new Error("Invalid transition definition for state node '".concat(c.id,`': +`).concat(x.message))}else return c.getStateNodeByPath(p)})},n.prototype.formatTransition=function(r){var c=this,u=Sr.normalizeTarget(r.target),d="internal"in r?r.internal:u?u.some(function(E){return Sr.isString(E)&&E[0]===c.delimiter}):!0,p=this.machine.options.guards,m=this.resolveTarget(u),x=Cr.__assign(Cr.__assign({},r),{actions:Jl.toActionObjects(Sr.toArray(r.actions)),cond:Sr.toGuard(r.cond,p),target:m,source:this,internal:d,eventType:r.event,toJSON:function(){return Cr.__assign(Cr.__assign({},x),{target:x.target?x.target.map(function(E){return"#".concat(E.id)}):void 0,source:"#".concat(c.id)})}});return x},n.prototype.formatTransitions=function(){var r,c,u=this,d;if(!this.config.on)d=[];else if(Array.isArray(this.config.on))d=this.config.on;else{var p=this.config.on,m=dU,x=p[m],E=x===void 0?[]:x,k=Cr.__rest(p,[typeof m=="symbol"?m:m+""]);d=Sr.flatten(Object.keys(k).map(function(B){!eM.IS_PRODUCTION&&B===bM&&Sr.warn(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(u.id,'".'));var F=Sr.toTransitionConfigArray(B,k[B]);return eM.IS_PRODUCTION||VBn(u,B,F),F}).concat(Sr.toTransitionConfigArray(dU,E)))}var T=this.config.always?Sr.toTransitionConfigArray("",this.config.always):[],P=this.config.onDone?Sr.toTransitionConfigArray(String(Jl.done(this.id)),this.config.onDone):[];eM.IS_PRODUCTION||Sr.warn(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var I=Sr.flatten(this.invoke.map(function(B){var F=[];return B.onDone&&F.push.apply(F,Cr.__spreadArray([],Cr.__read(Sr.toTransitionConfigArray(String(Jl.doneInvoke(B.id)),B.onDone)),!1)),B.onError&&F.push.apply(F,Cr.__spreadArray([],Cr.__read(Sr.toTransitionConfigArray(String(Jl.error(B.id)),B.onError)),!1)),F})),O=this.after,N=Sr.flatten(Cr.__spreadArray(Cr.__spreadArray(Cr.__spreadArray(Cr.__spreadArray([],Cr.__read(P),!1),Cr.__read(I),!1),Cr.__read(d),!1),Cr.__read(T),!1).map(function(B){return Sr.toArray(B).map(function(F){return u.formatTransition(F)})}));try{for(var j=Cr.__values(O),$=j.next();!$.done;$=j.next()){var L=$.value;N.push(L)}}catch(B){r={error:B}}finally{try{$&&!$.done&&(c=j.return)&&c.call(j)}finally{if(r)throw r.error}}return N},n}();jDe.StateNode=zBn;Object.defineProperty(Zle,"__esModule",{value:!0});var v$t=jDe,UBn=rT,R9t=!1;function HBn(n,r,c){return c===void 0&&(c=n.context),new v$t.StateNode(n,r,c)}function qBn(n,r){return!UBn.IS_PRODUCTION&&!n.predictableActionArguments&&!R9t&&(R9t=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new v$t.StateNode(n,r)}Zle.Machine=HBn;Zle.createMachine=qBn;Object.defineProperty(t$t,"__esModule",{value:!0});var Sx=DS,$9t=ga,WBn=Zle,L9t=zn;function GBn(n,r){var c=r==null?void 0:r.events,u=r==null?void 0:r.actions,d={initialContext:n,assign:$9t.assign,events:c?L9t.mapValues(c,function(p,m){return function(){for(var x=[],E=0;Er,F9t=lN({value:""},{events:{VALUE_CHANGED_FROM_PARENT:n=>({value:n}),CHANGE:n=>({value:n}),FOCUS:()=>({}),BLUR:()=>({}),PICK_FROM_LIST:n=>({value:n}),UP_ARROW:()=>({}),DOWN_ARROW:()=>({})}}),Ese=Ji((n,r)=>({value:r.value})),FDe=F9t.createMachine({initial:"unfocused",context:F9t.initialContext,on:{VALUE_CHANGED_FROM_PARENT:{actions:Ese}},states:{unfocused:{on:{FOCUS:{target:"focused"}}},focused:{on:{BLUR:{target:"unfocused"},CHANGE:{actions:[Ese]}},initial:"closed",states:{closed:{on:{CHANGE:{target:"open",actions:[Ese]},DOWN_ARROW:{target:"open",actions:["focusFirstOptionAfterTimeout"]}}},open:{on:{PICK_FROM_LIST:{target:"closed",actions:[Ese,"focusInput","onChange"]},UP_ARROW:{actions:"focusPrevOption"},DOWN_ARROW:{actions:"focusNextOption"}}}}}}}),XBn=y$t(FDe,n=>n.context.value),KBn=y$t(FDe,n=>n.matches("focused.open")),B9t=n=>Object.values(n).findIndex(r=>document.activeElement===r),xk=U.exports.forwardRef(function(r,c){const u=U.exports.useRef({});lW(()=>()=>{u.current={}});const d=U.exports.useRef(null),p=RMe(d,c),m=yW(FDe,{context:{value:r.defaultValue||r.value},actions:{onChange:I=>{var O;(O=r.onChange)==null||O.call(r,{target:{...d.current,value:I.value}})},focusFirstOptionAfterTimeout:()=>{setTimeout(()=>{var I,O;(O=(I=u.current)==null?void 0:I[0])==null||O.focus()})},focusNextOption:()=>{var O,N,j;const I=B9t(u.current);I===-1?(N=(O=u.current)==null?void 0:O[0])==null||N.focus():(j=u.current[I+1])==null||j.focus()},focusPrevOption:()=>{var O,N,j,$;const I=B9t(u.current);I===-1?(N=(O=u.current)==null?void 0:O[0])==null||N.focus():I===0?(j=d.current)==null||j.focus():($=u.current[I-1])==null||$.focus()},focusInput:()=>{var I;(I=d.current)==null||I.focus()}}}),x=Al(m,XBn),E=Al(m,KBn);U.exports.useEffect(()=>{r.value&&m.send({type:"VALUE_CHANGED_FROM_PARENT",value:r.value})},[r.value]);const k=I=>{I.key==="ArrowDown"?(I.preventDefault(),m.send({type:"DOWN_ARROW"})):I.key==="ArrowUp"&&(I.preventDefault(),m.send({type:"UP_ARROW"}))},T=U.exports.useRef(null),P=U.exports.useMemo(()=>{try{return new RegExp(x,"i")}catch{return new RegExp("")}},[x]);return We(Tn,{ref:T,onBlur:I=>{setTimeout(()=>{var O;(O=T.current)!=null&&O.contains(document.activeElement)||m.send({type:"BLUR"})})},position:"relative",children:[z(Zi.Input,{...r,ref:p,onChange:I=>{var O;m.send({type:"CHANGE",value:I.target.value}),(O=r.onChange)==null||O.call(r,I)},onKeyDown:I=>{var O;k(I),(O=r.onKeyDown)==null||O.call(r,I)},onFocus:I=>{var O;m.send({type:"FOCUS"}),(O=r.onFocus)==null||O.call(r,I)},value:x||""}),z(yk,{hidden:!E,spacing:"0",position:"absolute",top:"100%",left:"0px",w:"full",maxH:"32",overflowY:"auto",shadow:"md",children:r.options.filter(I=>P.test(I)).map((I,O)=>z(YBn,{onClick:N=>{m.send({type:"PICK_FROM_LIST",value:I})},onKeyDown:k,ref:N=>u.current[O]=N,children:I},I))})]})}),YBn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return z(Y0,{...r,ref:c,display:"block",textAlign:"left",variant:"unstyled",w:"full",fontSize:"sm",paddingX:"2",py:"2",padding:"4",height:"auto",bg:u("gray.200","gray.800"),zIndex:"popover",rounded:"none",_focus:{bg:u("gray.100","gray.700")}})});lt.forwardRef(function({isCurrentPage:r,darkTextColor:c=!1,...u},d){const{getColorModeValue:p}=ei();return z(_Me,{...u,ref:d,isCurrentPage:r,textStyle:r?"semibold":"medium",color:r?p(c?"gray.800":"gray.50","gray.50"):p(c?"gray.600":"gray.300","gray.300"),fontSize:"sm",_hover:{...!r&&{color:p(c?"black":"white","white"),textDecoration:"underline"},...u._hover}})});const w$t={primary:{bg:"primary.500",interactionColor:"primary.600",color:"white"},gray:{bg:"gray.100",interactionColor:"gray.200",color:"gray.800"},danger:{bg:"danger.500",interactionColor:"danger.600",color:"white"},light:{bg:"white.500",interactionColor:"white.400",color:"gray.800"}},x$t={primary:{bg:"primary.500",interactionColor:"primary.600",color:"white"},gray:{bg:"gray.600",interactionColor:"gray.700",color:"white"},danger:{bg:"danger.500",interactionColor:"danger.600",color:"white"},light:{bg:"white.500",interactionColor:"white.400",color:"white"}},Uc=lt.forwardRef(({variant:n="primary",...r},c)=>{const{getColorModeValue:u}=ei(),{bg:d,interactionColor:p,color:m}=u(w$t,x$t)[n];return z(Y0,{variant:"solid",ref:c,bg:d,_hover:{bg:p},_active:{bg:p},_focus:{bg:p,outlineColor:p},color:m,...r})});Uc.displayName="StatelyButton";const S$t=n=>{const{getColorModeValue:r}=ei();return z(Ev,{variant:"unstyled",color:r("white","white"),height:"2em",minWidth:"2em",borderRadius:"2",display:"flex",flexDirection:"row",bg:r("transparent","transparent"),_hover:{bg:r("gray.100","gray.700")},_focus:{bg:r("gray.200","gray.800")},_active:{bg:r("gray.200","gray.800")},...n})},wW=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M4 4L14 14",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M14 4L4 14",stroke:"currentColor",strokeMiterlimit:"5"})]}),QBn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M7.75 14.375L16.75 5.375L13.375 2L4.375 11L3.25 15.5L7.75 14.375Z",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M4.375 11L7.75 14.375",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M11.125 4.25L14.5 7.625",stroke:"currentColor",strokeMiterlimit:"5"})]}),BDe=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M9 3V14.9996",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M14.9998 8.99978H3.00022",stroke:"currentColor",strokeMiterlimit:"5"})]}),ZBn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("rect",{x:"1",y:"1",width:"16",height:"16",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("rect",{x:"1",y:"1",width:"16",height:"5",rx:"1",fill:"currentColor"})]}),JBn=n=>{const{getColorModeValue:r}=ei();return We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("mask",{id:"path-2-inside-1",fill:r("white","white"),children:z("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5"})}),z("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"1 1",mask:"url(#path-2-inside-1)"})]})},eVn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M6.5 12.7568H7.45049V10.233H10.5495V12.7568H11.5V6.75684H10.5495V9.13779H7.45049V6.75684H6.5V12.7568Z",fill:"currentColor"})]}),tVn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("rect",{x:"2.5",y:"2.5",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M4.5 12H5.45049V9.47619H8.5495V12H9.5V6H8.5495V8.38095H5.45049V6H4.5V12Z",fill:"currentColor"}),z("path",{d:"M11.35 8.4L11.9 8.75L12.4 7.84L12.9 8.75L13.45 8.4L12.75 7.55L13.8 7.3L13.6 6.75L12.65 7.1L12.7 6H12.1L12.15 7.1L11.2 6.75L11 7.3L12.05 7.55L11.35 8.4Z",fill:"currentColor"})]}),nVn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("rect",{x:"2.5",y:"3.25684",width:"13",height:"13",rx:"0.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("rect",{x:"5",y:"5.75684",width:"8",height:"8",rx:"0.5",fill:"currentColor"})]}),rVn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M10 14.7568L15 9.75684L10 4.75684",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"}),z("path",{d:"M5 9.75684L15 9.75684",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})]}),iVn=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M10 11.7568L13 14.7568L16 11.7568",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"}),z("path",{d:"M4 13.7568L4 6.25684C4 5.9807 4.22386 5.75684 4.5 5.75684L12.5 5.75684C12.7761 5.75684 13 5.98069 13 6.25684L13 14.2568",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})]}),oVn=n=>z(To,{...n,viewBox:"0 0 18 18",fill:"none",children:z("path",{d:"M8.99999 9.75684L11.0502 7.63552C11.594 7.07291 12.3315 6.75684 13.1005 6.75684C13.8695 6.75684 14.607 7.07291 15.1508 7.63552C15.6945 8.19812 16 8.96119 16 9.75684C16 10.5525 15.6945 11.3155 15.1508 11.8782C14.607 12.4408 13.8695 12.7568 13.1005 12.7568C12.3315 12.7568 11.594 12.4408 11.0502 11.8782L8.99999 9.75684ZM8.99999 9.75684L6.94974 11.8782C6.40598 12.4408 5.66848 12.7568 4.89949 12.7568C4.1305 12.7568 3.393 12.4408 2.84924 11.8782C2.30548 11.3155 2 10.5525 2 9.75684C2 8.96119 2.30548 8.19813 2.84924 7.63552C3.393 7.07291 4.1305 6.75684 4.89949 6.75684C5.66848 6.75684 6.40598 7.07291 6.94974 7.63552L8.99999 9.75684Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"5"})}),E$t=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M7 6.75684V4.25684C7 3.98069 7.22386 3.75684 7.5 3.75684H14.5C14.7761 3.75684 15 3.98069 15 4.25684V15.2568C15 15.533 14.7761 15.7568 14.5 15.7568H7.5C7.22386 15.7568 7 15.533 7 15.2568V12.7568",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M9 12.7568L12 9.75684L9 6.75684",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M2 9.75684H12",stroke:"currentColor",strokeMiterlimit:"5"})]}),k$t=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M10 12.7568L10 15.2568C10 15.533 9.77614 15.7568 9.5 15.7568L2.5 15.7568C2.22386 15.7568 2 15.533 2 15.2568L2 4.25684C2 3.98069 2.22386 3.75684 2.5 3.75684L9.5 3.75684C9.77614 3.75684 10 3.98069 10 4.25684L10 6.75684",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M12 6.75684L15 9.75684L12 12.7568",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M5 9.75684L15 9.75684",stroke:"currentColor",strokeMiterlimit:"5"})]}),sVn=n=>We(To,{...n,viewBox:"0 0 24 24",children:[z("path",{d:"M0 0h24v24H0V0z",fill:"none"}),z("path",{d:"M10 8.64L15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z",fill:"currentColor"})]}),C$t=n=>We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M9 15.7568L15 14.7568V3.75684L9 4.75684L3 3.75684V14.7568L9 15.7568Z",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M9 4.75684V15.7568",stroke:"currentColor",strokeMiterlimit:"5"})]}),I$t=()=>We(To,{viewBox:"0 0 15 15",fill:"none",children:[z("path",{d:"M6.83332 12.6666C10.055 12.6666 12.6666 10.055 12.6666 6.83332C12.6666 3.61166 10.055 1 6.83332 1C3.61166 1 1 3.61166 1 6.83332C1 10.055 3.61166 12.6666 6.83332 12.6666Z",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),z("path",{d:"M15 15L11 11",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),z("path",{d:"M3.33325 6.8335H10.3332",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"})]}),T$t=()=>We(To,{viewBox:"0 0 15 15",fill:"none",children:[z("path",{d:"M6.83332 12.6666C10.055 12.6666 12.6666 10.055 12.6666 6.83332C12.6666 3.61166 10.055 1 6.83332 1C3.61166 1 1 3.61166 1 6.83332C1 10.055 3.61166 12.6666 6.83332 12.6666Z",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),z("path",{d:"M15 15L11 11",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),z("path",{d:"M3.33325 6.8335H10.3332",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"}),z("path",{d:"M6.83325 3.3335V10.3335",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"5"})]}),aVn=()=>We(To,{viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M6 3H3V6",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M3 3L7 7",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M15 6V3H12",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M15 3L11 7",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M12 15H15V12",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M15 15L11 11",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M3 12V15H6",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M3 15L7 11",stroke:"currentColor",strokeMiterlimit:"5"})]}),cVn=()=>z(To,{viewBox:"0 0 18 18",children:z("path",{d:"M5 7C4.46957 7 3.96086 6.78929 3.58579 6.41421C3.21071 6.03914 3 5.53043 3 5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3V3C5.53043 3 6.03914 3.21071 6.41421 3.58579C6.78929 3.96086 7 4.46957 7 5V13C7 13.5304 6.78929 14.0391 6.41421 14.4142C6.03914 14.7893 5.53043 15 5 15C4.46957 15 3.96086 14.7893 3.58579 14.4142C3.21071 14.0391 3 13.5304 3 13C3 12.4696 3.21071 11.9609 3.58579 11.5858C3.96086 11.2107 4.46957 11 5 11H13C13.5304 11 14.0391 11.2107 14.4142 11.5858C14.7893 11.9609 15 12.4696 15 13C15 13.5304 14.7893 14.0391 14.4142 14.4142C14.0391 14.7893 13.5304 15 13 15C12.4696 15 11.9609 14.7893 11.5858 14.4142C11.2107 14.0391 11 13.5304 11 13V5C11 4.46957 11.2107 3.96086 11.5858 3.58579C11.9609 3.21071 12.4696 3 13 3C13.5304 3 14.0391 3.21071 14.4142 3.58579C14.7893 3.96086 15 4.46957 15 5C15 5.53043 14.7893 6.03914 14.4142 6.41421C14.0391 6.78929 13.5304 7 13 7H5Z",stroke:"currentColor",strokeMiterlimit:"5"})}),uVn=n=>We(To,{viewBox:"0 0 18 18",fill:"none",...n,children:[z("path",{d:"M15 2H3V16H15V2Z",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M5 9H13",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M5 6H13",stroke:"currentColor",strokeMiterlimit:"5"}),z("path",{d:"M5 12H13",stroke:"currentColor",strokeMiterlimit:"5"})]}),VDe=n=>We(To,{viewBox:"0 0 24 24",...n,children:[z("circle",{cx:"12",cy:"19",r:"2",fill:"currentColor"}),z("path",{d:"M10 3h4v12h-4z",fill:"currentColor"})]}),zDe=n=>z(To,{viewBox:"0 0 24 24",...n,children:z("g",{children:z("path",{d:"M11.07,12.85c0.77-1.39,2.25-2.21,3.11-3.44c0.91-1.29,0.4-3.7-2.18-3.7c-1.69,0-2.52,1.28-2.87,2.34L6.54,6.96 C7.25,4.83,9.18,3,11.99,3c2.35,0,3.96,1.07,4.78,2.41c0.7,1.15,1.11,3.3,0.03,4.9c-1.2,1.77-2.35,2.31-2.97,3.45 c-0.25,0.46-0.35,0.76-0.35,2.24h-2.89C10.58,15.22,10.46,13.95,11.07,12.85z M14,20c0,1.1-0.9,2-2,2s-2-0.9-2-2c0-1.1,0.9-2,2-2 S14,18.9,14,20z",fill:"currentColor"})})}),lVn=()=>z(To,{viewBox:"0 0 18 18",children:z("path",{d:"M13.496 12.48a6.59 6.59 0 0 1-3.311-.915 6.56 6.56 0 0 1-2.396-2.456A6.531 6.531 0 0 1 7.937 2.5 6.577 6.577 0 0 0 3.88 4.935a6.534 6.534 0 0 0 .678 8.777A6.586 6.586 0 0 0 8.94 15.5a6.501 6.501 0 0 0 3.19-.827 6.473 6.473 0 0 0 2.37-2.283 6.846 6.846 0 0 1-1.004.09v0Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"})}),fVn=()=>We(To,{viewBox:"0 0 18 18",children:[z("path",{d:"m16.5 9-2.7 1.985.508 3.323-3.323-.508L9 16.5l-1.985-2.7-3.323.508.508-3.323L1.5 9l2.7-1.985-.508-3.323 3.323.508L9 1.5l1.985 2.7 3.323-.508-.508 3.323L16.5 9Z",stroke:"currentColor",fill:"transparent",strokeMiterlimit:"5"}),z("path",{d:"M9 12a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"})]}),dVn=n=>{var c;const{getColorModeValue:r}=ei();return We(To,{...n,viewBox:"0 0 18 18",fill:"none",children:[z("path",{d:"M9 0L18 9 L9 18 L0 9Z",stroke:"currentColor",fill:"currentColor",strokeMiterlimit:"5"}),n.number!==void 0&&z("text",{x:"50%",y:"50%",dominantBaseline:"central",textAnchor:"middle",strokeWidth:"2",fill:(c=n.fill)!=null?c:r("white","black"),fontWeight:"bold",style:{fontVariationSettings:'"wght" 700',fontSize:"var(--chakra-fontSizes-xs)"},children:n.number})]})},hVn=()=>We(To,{viewBox:"0 0 23 22",children:[z("path",{d:"M18.883 1H3.23537C2.00081 1 1 1.99492 1 3.22222V18.7778C1 20.0051 2.00081 21 3.23537 21H18.883C20.1175 21 21.1183 20.0051 21.1183 18.7778V3.22222C21.1183 1.99492 20.1175 1 18.883 1Z",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),z("rect",{x:"1",y:"1",width:"8",height:"20",fill:"currentColor"})]}),pVn=()=>We(To,{viewBox:"0 0 23 22",children:[z("path",{d:"M18.883 1H3.23537C2.00081 1 1 1.99492 1 3.22222V18.7778C1 20.0051 2.00081 21 3.23537 21H18.883C20.1175 21 21.1183 20.0051 21.1183 18.7778V3.22222C21.1183 1.99492 20.1175 1 18.883 1Z",stroke:"currentColor",fill:"transparent",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M8 1V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),gVn=n=>z(To,{viewBox:"0 0 20 22",...n,children:We("svg",{fill:"none",children:[z("path",{d:"M10 7C14.9706 7 19 5.65685 19 4C19 2.34315 14.9706 1 10 1C5.02944 1 1 2.34315 1 4C1 5.65685 5.02944 7 10 7Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M19 11C19 12.66 15 14 10 14C5 14 1 12.66 1 11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M1 4V18C1 19.66 5 21 10 21C15 21 19 19.66 19 18V4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),bVn=n=>z(To,{viewBox:"0 0 22 22",fill:"none",...n,children:We("svg",{children:[z("path",{d:"M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M11 15V11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M11 7H11.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),mVn=n=>We(To,{viewBox:"0 0 22 14",fill:"none",...n,children:[z("path",{d:"M15 13L21 7L15 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M7 1L1 7L7 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});Ei({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Ei({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Ei({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Ei({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Ei({displayName:"SunIcon",path:We("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[z("circle",{cx:"12",cy:"12",r:"5"}),z("path",{d:"M12 1v2"}),z("path",{d:"M12 21v2"}),z("path",{d:"M4.22 4.22l1.42 1.42"}),z("path",{d:"M18.36 18.36l1.42 1.42"}),z("path",{d:"M1 12h2"}),z("path",{d:"M21 12h2"}),z("path",{d:"M4.22 19.78l1.42-1.42"}),z("path",{d:"M18.36 5.64l1.42-1.42"})]})});var A$t=Ei({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Ei({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:z("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});Ei({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Ei({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Ei({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Ei({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Ei({displayName:"ViewIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),z("circle",{cx:"12",cy:"12",r:"2"})]})});Ei({displayName:"ViewOffIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),z("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"})]})});Ei({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Ei({displayName:"DeleteIcon",path:z("g",{fill:"currentColor",children:z("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});var vVn=Ei({displayName:"RepeatIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),z("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"})]})});Ei({displayName:"RepeatClockIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),z("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"})]})});Ei({displayName:"EditIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[z("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),z("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})});var yVn=Ei({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),zce=Ei({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Ei({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Ei({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Ei({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Ei({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Ei({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Ei({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Ei({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});Ei({displayName:"ExternalLinkIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[z("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),z("path",{d:"M15 3h6v6"}),z("path",{d:"M10 14L21 3"})]})});Ei({displayName:"LinkIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),z("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"})]})});Ei({displayName:"PlusSquareIcon",path:We("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[z("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),z("path",{d:"M12 8v8"}),z("path",{d:"M8 12h8"})]})});Ei({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Ei({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Ei({displayName:"TimeIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),z("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"})]})});Ei({displayName:"ArrowRightIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),z("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"})]})});Ei({displayName:"ArrowLeftIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),z("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"})]})});Ei({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Ei({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Ei({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Ei({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Ei({displayName:"EmailIcon",path:We("g",{fill:"currentColor",children:[z("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),z("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"})]})});Ei({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Ei({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Ei({displayName:"SpinnerIcon",path:We(Si,{children:[z("defs",{children:We("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[z("stop",{stopColor:"currentColor",offset:"0%"}),z("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"})]})}),We("g",{transform:"translate(2)",fill:"none",children:[z("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),z("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),z("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})]})]})});Ei({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Ei({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:z("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});Ei({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});var wVn=Ei({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Ei({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Ei({displayName:"InfoOutlineIcon",path:We("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[z("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),z("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),z("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"})]})});Ei({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Ei({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Ei({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Ei({displayName:"QuestionOutlineIcon",path:We("g",{stroke:"currentColor",strokeWidth:"1.5",children:[z("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),z("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),z("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});Ei({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});var xVn=Ei({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"}),SVn=Ei({viewBox:"0 0 14 14",path:z("g",{fill:"currentColor",children:z("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),EVn=Ei({displayName:"MinusIcon",path:z("g",{fill:"currentColor",children:z("rect",{height:"4",width:"20",x:"2",y:"10"})})});Ei({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Il={},xW={};Object.defineProperty(xW,"__esModule",{value:!0});xW.bind=void 0;function kVn(n,r){var c=r.type,u=r.listener,d=r.options;return n.addEventListener(c,u,d),function(){n.removeEventListener(c,u,d)}}xW.bind=kVn;var tfe={},NM=KE&&KE.__assign||function(){return NM=Object.assign||function(n){for(var r,c=1,u=arguments.length;c"u"))return typeof n=="boolean"?{capture:n}:n}function IVn(n,r){if(r==null)return n;var c=NM(NM({},n),{options:NM(NM({},V9t(r)),V9t(n.options))});return c}function TVn(n,r,c){var u=r.map(function(d){var p=IVn(d,c);return CVn.bind(n,p)});return function(){u.forEach(function(p){return p()})}}tfe.bindAll=TVn;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.bindAll=n.bind=void 0;var r=xW;Object.defineProperty(n,"bind",{enumerable:!0,get:function(){return r.bind}});var c=tfe;Object.defineProperty(n,"bindAll",{enumerable:!0,get:function(){return c.bindAll}})})(Il);const P$t=n=>{switch(n){case"unstyled":return"transparent";default:return"white"}},O$t=n=>{switch(n){case"unstyled":return"transparent";default:return"whiteAlpha.100"}},AVn=U.exports.forwardRef(function({selectOnFocus:r,onFocus:c,onBlur:u,...d},p){const{getColorModeValue:m}=ei(),x=U.exports.useRef(null),E=RMe(p,x);return U.exports.useEffect(()=>{if(!!x.current)return Il.bind(x.current,{type:"blur",listener:k=>{r&&k.target.setSelectionRange(0,0),u==null||u(k)}})},[x,r,u]),z(Vle,{type:"text",ref:E,borderWidth:"1px",borderRadius:"4px",borderColor:m("gray.100","whiteAlpha.50"),bg:m(P$t(d.variant),O$t(d.variant)),_placeholder:{color:m("gray.500","gray.400")},focusBorderColor:m("blue.500","blue.500"),_focus:{background:m("white","transparent"),boxShadow:"none"},_hover:{borderColor:m("gray.300","gray.600")},_invalid:{border:"none",bg:m("redAlpha.100","redAlpha.100")},onFocus:k=>{r&&k.target.setSelectionRange(0,k.target.value.length),c==null||c(k)},...d})}),PVn=({...n})=>{const{getColorModeValue:r}=ei();return We(lRt,{...n,_placeholder:{color:r("gray.500","gray.400")},focusBorderColor:r("blue.500","blue.500"),_focus:{background:"transparent",boxShadow:"none"},_hover:{borderColor:r("gray.300","gray.600")},children:[z(dRt,{bg:r(P$t(n.variant),O$t(n.variant)),borderRadius:"4px",borderColor:r("gray.100","whiteAlpha.50"),_invalid:{border:"none",bg:r("redAlpha.100","redAlpha.100")}}),We(fRt,{children:[z(gRt,{}),z(pRt,{})]})]})},OVn=({variant:n="primary",...r})=>{const{getColorModeValue:c}=ei(),{bg:u,interactionColor:d,color:p}=c(w$t,x$t)[n],{getInputProps:m,getIncrementButtonProps:x,getDecrementButtonProps:E}=uRt(r),k=x(),T=E(),P=m();return We(nl,{maxWidth:"56",children:[z(Ev,{...T,bg:u,_hover:{bg:d},_active:{bg:d},_focus:{bg:d,outlineColor:d,boxShadow:"none"},color:p,"aria-label":"Decrease",icon:z(EVn,{})}),z(Vle,{...P}),z(Ev,{...k,bg:u,_hover:{bg:d},_active:{bg:d},_focus:{bg:d,outlineColor:d},color:p,"aria-label":"Increase",icon:z(A$t,{})})]})},_Vn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return z(PRt,{...r,ref:c,type:"text",borderRadius:"4px",borderWidth:"1px",borderColor:u("gray.100","whiteAlpha.50"),bg:u("white","whiteAlpha.100"),_placeholder:{color:u("gray.500","gray.400")},focusBorderColor:u("blue.500","blue.500"),_focus:{background:"transparent",boxShadow:"none"},_hover:{borderColor:u("gray.300","gray.600")},_invalid:{border:"none",bg:u("redAlpha.100","redAlpha.100")}})}),MVn=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei();return z(yRt,{...r,ref:c,borderRadius:"4px",borderWidth:"1px",borderColor:u("gray.100","whiteAlpha.50"),bg:u("white","whiteAlpha.100"),focusBorderColor:u("blue.500","blue.500"),_focus:{background:"transparent"},_placeholder:{color:u("gray.500","gray.400")},_hover:{borderColor:u("gray.300","gray.600")},_invalid:{border:"none",bg:u("redAlpha.100","redAlpha.100")},cursor:"pointer"})}),DVn=({error:n,hint:r,hideLabel:c,columns:u,labelColumnWidth:d,errorProps:p={},...m})=>{const{getColorModeValue:x}=ei();return We(MMe,{...m,isInvalid:Boolean(n),children:[We(Tn,{display:u?"flex":"block",alignItems:u?"center":void 0,width:"100%",children:[!c&&z(iN,{color:x("gray.600","gray.400"),fontSize:"sm",_invalid:{color:x("danger.500","danger.500")},width:d||"auto",children:m.label}),u?z(Tn,{flex:"1",children:m.children}):m.children]}),n?z(bNt,{...p,color:x("danger.500","danger.500"),fontSize:"xs",children:n}):z(Si,{children:r&&z(gNt,{color:x("gray.600","gray.400"),children:r})})]})},Zi={Input:AVn,NumberInput:PVn,SteppedNumberInput:OVn,Textarea:_Vn,Control:DVn,Select:MVn};U.exports.createContext({clickable:!0});const NVn=()=>{const{toggleColorMode:n}=ZD(),r=O7(lVn,fVn),c=O7("dark","light");return U.exports.useMemo(()=>z(NU.MenuItem,{onClick:n,children:We(nl,{children:[z(r,{}),We("span",{children:["Switch to ",c," mode"]})]})}),[r,c,n])},jVn=n=>{const{children:r,...c}=n;return z(cjt,{isLazy:!0,gutter:4,autoSelect:!1,...c,children:r})},RVn=n=>{const{getColorModeValue:r}=ei();return z(pjt,{rounded:"md",paddingLeft:"0",paddingY:"0.5",shadow:"lg",minWidth:"48",borderColor:r("gray.50","whiteAlpha.50"),bg:r("white","gray.850"),...n,_empty:{display:"none"}})},$Vn=U.exports.forwardRef(function({variant:r="gray",...c},u){const{getColorModeValue:d}=ei();return z(hjt,{size:"sm",cursor:"pointer",bg:d("white","gray.850"),py:"1",sx:{"svg:first-of-type":{color:r==="danger"?d("danger.500","red.300"):d("gray.600","gray.400")}},_hover:{bg:d("gray.50","whiteAlpha.200")},_focus:{bg:d("gray.100","whiteAlpha.300")},...r==="primary"&&{bg:d("primary.600","primary.600"),_hover:{bg:d("primary.500","primary.500")}},...r==="danger"&&{color:d("danger.500","red.300"),_hover:{bg:d("redAlpha.100","redAlpha.100")},_focus:{bg:d("redAlpha.100","redAlpha.100")}},fontSize:"sm",variant:r,ref:u,...c})}),NU={Wrapper:jVn,MenuButton:ujt,MenuList:RVn,MenuItem:$Vn,ColorModeItem:NVn},_$t=({bodyPadding:n="default",variant:r="gray",...c})=>{const{getColorModeValue:u}=ei();return We(fDe,{variant:r,...c,children:[z(aRt,{}),We(dDe,{rounded:"none",bg:u("white","gray.800"),children:[We(sRt,{pt:"3",px:"8",pb:"0",children:[z(Fi,{color:u("gray.600","gray.300"),textTransform:"uppercase",fontSize:"xs",letterSpacing:"wide",marginBottom:"1",...r==="danger"&&{color:u("danger.500","danger.500")},_empty:{display:"none"},children:c.eyebrow}),z(Fi,{fontSize:"2xl",letterSpacing:"tight",children:c.title}),Boolean(c.title)&&c.eyebrow?z(mv,{mt:"2"}):null]}),z(nRt,{...n==="default"&&{px:"8",py:"6"},...n==="none"&&{padding:"0"},children:c.children}),c.hideCloseButton||z(rRt,{minHeight:15,rounded:"none"})]})]})},LVn=n=>z(yDe,{...n}),FVn=n=>{const{getColorModeValue:r}=ei();return z(ARt,{color:r("gray.600","gray.300"),_selected:{color:r("black","white"),borderColor:r("black","white")},py:"4",...n})},F9={Tabs:LVn,Tab:FVn,TabList:wDe,TabPanels:SDe,TabPanel:xDe};var BVn=Object.defineProperty,VVn=Object.defineProperties,zVn=Object.getOwnPropertyDescriptors,Uce=Object.getOwnPropertySymbols,M$t=Object.prototype.hasOwnProperty,D$t=Object.prototype.propertyIsEnumerable,z9t=(n,r,c)=>r in n?BVn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[r]=c,Af=(n,r)=>{for(var c in r||(r={}))M$t.call(r,c)&&z9t(n,c,r[c]);if(Uce)for(var c of Uce(r))D$t.call(r,c)&&z9t(n,c,r[c]);return n},Nx=(n,r)=>VVn(n,zVn(r)),N$t=(n,r)=>{var c={};for(var u in n)M$t.call(n,u)&&r.indexOf(u)<0&&(c[u]=n[u]);if(n!=null&&Uce)for(var u of Uce(n))r.indexOf(u)<0&&D$t.call(n,u)&&(c[u]=n[u]);return c};const j$t=U.exports.createContext({activeStep:0}),UDe=()=>U.exports.useContext(j$t),UVn=({value:n,children:r})=>{const[c,u]=U.exports.useState([]),d=n.state==="error",p=n.state==="loading",m=n.orientation==="vertical",x=n.orientation!=="vertical"&&n.labelOrientation==="vertical";return z(j$t.Provider,{value:Nx(Af({},n),{widths:c,setWidths:u,isError:d,isLoading:p,isVertical:m,isLabelVertical:x}),children:r})},HVn=U.exports.memo(({index:n,isCompletedStep:r,children:c,isLastStep:u,hasLabel:d})=>{const{connector:p,stepIconContainer:m}=Sle(),{isVertical:x,isLabelVertical:E,widths:k}=UDe(),T=()=>x?`calc(${m.width} / 2)`:d?0:2,P=U.exports.useMemo(()=>{const I={ms:T(),my:x?2:0,ps:x?4:0,me:x||E?0:2,height:x?"auto":"2px",alignSelf:x?"stretch":"auto",borderTopWidth:u||x?0:"2px",borderInlineStartWidth:u||!x?0:"2px",minHeight:u||!x?"auto":"1.5rem"};return E?Nx(Af({},I),{position:"absolute",top:`calc(${m.height} / 2 - ${I.height} / 2)`,left:`calc(((${k==null?void 0:k[n]}px + ${m.width}) / 2) + 8px)`,right:`calc((${k==null?void 0:k[n+1]}px - ${m.width}) / -2 + 8px)`}):I},[k,E,x,m.height,m.width]);return z(Qt.div,{__css:Af(Af({},P),p),"data-highlighted":mae(r),children:x&&c})}),qVn=Ei({viewBox:"0 0 14 14",path:z("g",{fill:"currentColor",children:z("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),WVn=Ei({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),U9t=H1(Vc),H9t=H1(WVn),GVn=H1(Qt.span),hU={transition:{duration:.25},exit:{scale:.5,opacity:0},initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1}},XVn=kn((n,r)=>{const{icon:c,iconLabel:u,label:d}=Sle(),{isCompletedStep:p,isCurrentStep:m,isError:x,isLoading:E,isKeepError:k,icon:T,index:P,checkIcon:I}=n,O=Af({fontWeight:"medium",color:_r("gray.900","gray.100")(n),textAlign:"center",fontSize:"md"},d),N=lt.useMemo(()=>T||null,[T]),j=lt.useMemo(()=>I||qVn,[I]);return lt.useMemo(()=>{if(p)return x&&k?z(H9t,Nx(Af({color:"white"},hU),{style:c}),"icon"):z(U9t,Nx(Af({},hU),{children:z(j,{color:"white",style:c})}),"check-icon");if(m){if(x)return z(H9t,Nx(Af({color:"white"},hU),{style:c}),"icon");if(E)return z(cW,{width:c.width,height:c.height})}return N?z(U9t,Nx(Af({},hU),{children:z(N,{style:c})}),"step-icon"):z(GVn,Nx(Af({ref:r,style:u,__css:O},hU),{children:(P||0)+1}),"label")},[p,m,x,E,N,c])}),KVn=({isCurrentStep:n,opacity:r,label:c,description:u})=>{const{labelContainer:d,label:p,description:m}=Sle(),{isLabelVertical:x}=UDe();return!!c||!!u?We(Qt.div,{"aria-current":n?"step":void 0,__css:Af({textAlign:x?"center":"left",alignItems:x?"center":"flex-start"},d),children:[!!c&&z(Qt.span,{__css:Af({mx:x?0:2,mt:x?1:0,opacity:r},p),children:c}),!!u&&z(Qt.span,{__css:Af({mx:x?0:2,mt:x?2:0,opacity:r},m),children:u})]}):null};kn((n,r)=>{const c=n,{children:u,description:d,icon:p,state:m,checkIcon:x,index:E,isCompletedStep:k,isCurrentStep:T,isLastStep:P,isKeepError:I,label:O}=c,N=N$t(c,["children","description","icon","state","checkIcon","index","isCompletedStep","isCurrentStep","isLastStep","isKeepError","label"]),{isVertical:j,isError:$,isLoading:L,isLabelVertical:B,checkIcon:F,onClickStep:X,clickable:te,setWidths:Z,stepCount:H}=UDe(),{step:ce,stepContainer:pe,stepIconContainer:fe}=Sle(),ve=T||k,Ge=ve?1:.8,qe=et=>{te&&X&&X(et)},Je=U.exports.useCallback(et=>{et&&Z&&Z(jt=>jt.length===H?[et.offsetWidth||0]:[...jt,et.offsetWidth||0])},[fe.width,fe.height]);return z(Si,{children:We(Qt.li,Nx(Af({ref:r,onClick:()=>qe(E),"aria-disabled":!ve,__css:Af({opacity:Ge,flexDir:j?"column":"row",alignItems:j||B?"flex-start":"center",flex:P&&!j?"0 0 auto":"1 0 auto",justifyContent:P&&!j?"flex-end":"flex-start",_hover:{cursor:te?"pointer":"default"}},ce)},N),{children:[We(Qt.div,{ref:Je,__css:Af({flexDir:B?"column":"row"},pe),children:[z(Qt.div,{__css:fe,"aria-current":ve&&I||T?"step":void 0,"data-invalid":mae((ve&&I||T)&&($||m==="error")),"data-highlighted":mae(k),"data-clickable":mae(te),children:z(_S,{exitBeforeEnter:!0,children:z(XVn,Nx(Af({},{index:E,isError:$||m==="error",isLoading:L||m==="loading",isCurrentStep:T,isCompletedStep:k,isKeepError:I}),{icon:p,checkIcon:x!=null?x:F}))})}),z(KVn,Af({label:O,description:d},{isCurrentStep:T,opacity:Ge}))]}),z(HVn,{index:E,isLastStep:P,hasLabel:!!O||!!d,isCompletedStep:k||!1,children:z(lq,{style:{width:"100%"},in:T,children:(T||k)&&u})})]}))})});const YVn=kn((n,r)=>{const c=il("Steps",n),u=Af({},c.steps),d=Ba(n),{className:p,activeStep:m,children:x,orientation:E,state:k,responsive:T,checkIcon:P,onClickStep:I,labelOrientation:O}=d,N=N$t(d,["className","activeStep","children","orientation","state","responsive","checkIcon","onClickStep","labelOrientation"]),j=U.exports.Children.toArray(x),$=j.length,L=()=>m<=j.length?U.exports.Children.map(j[m],te=>{if(!!U.exports.isValidElement(te))return U.exports.Children.map(te.props.children,Z=>Z)}):null,B=!!I,[F]=yMn("(max-width: 43em)"),X=F&&T?"vertical":E;return z(a9n,{value:c,children:We(UVn,{value:{activeStep:m,orientation:X,state:k,responsive:T,checkIcon:P,onClickStep:I,labelOrientation:O,clickable:B,colorScheme:n.colorScheme,stepCount:$},children:[z(Qt.ol,Nx(Af({ref:r,__css:Af({justifyContent:$===1?"flex-end":"space-between",flexDir:X==="vertical"?"column":"row"},u),className:sMt("chakra-steps",p)},N),{children:U.exports.Children.map(x,(te,Z)=>{var H;const ce=(H=U.exports.isValidElement(te)&&te.props.isCompletedStep)!=null?H:Z({color:_r("gray.900","gray.100")(n),fontWeight:"medium",textAlign:"center",fontSize:"md"}),JVn=n=>({color:_r("gray.800","gray.200")(n),marginTop:"-2px",textAlign:"center",fontSize:"sm"}),ezn=n=>{const{colorScheme:r}=n,c=_r("gray.200","gray.700")(n),u=_r(`${r}.500`,`${r}.200`)(n);return{flex:1,display:"flex",borderColor:c,transitionProperty:"border-color",transitionDuration:"normal",_highlighted:{borderColor:u}}},tzn=n=>{const{colorScheme:r}=n,c=_r("gray.200","gray.700")(n),u=`${r}.500`;return{display:"flex",borderRadius:"50%",alignItems:"center",justifyContent:"center",bg:c,borderColor:c,transitionProperty:"background, border-color",transitionDuration:"normal",_activeStep:{bg:_r(y6n(c,.5),w6n(c,.5))(n),borderColor:u,_invalid:{bg:"red.500",borderColor:"red.500"}},_highlighted:{bg:u,borderColor:u},"&[data-clickable]:hover":{borderColor:u}}},nzn=n=>({connector:ezn(n),description:JVn(n),icon:ZVn,iconLabel:q9t(n),label:q9t(n),labelContainer:{display:"flex",flexDir:"column",justifyContent:"center"},step:{display:"flex",position:"relative"},stepContainer:{display:"flex",alignItems:"center"},stepIconContainer:tzn(n),steps:{fontFamily:"heading",textAlign:"center",width:"100%",display:"flex",flex:1}}),rzn={sm:{stepIconContainer:{width:"32px",height:"32px",borderWidth:"2px"},icon:{width:"14px",height:"14px"},label:{fontWeight:"medium",textAlign:"center",fontSize:"sm"},description:{fontWeight:"300",textAlign:"center",fontSize:"xs"}},md:{stepIconContainer:{width:"40px",height:"40px",borderWidth:"2px"},icon:{width:"18px",height:"18px"},label:{fontWeight:"medium",textAlign:"center",fontSize:"md"},description:{fontWeight:"300",textAlign:"center",fontSize:"sm"}},lg:{stepIconContainer:{width:"48px",height:"48px",borderWidth:"2px"},icon:{width:"22px",height:"22px"},label:{fontWeight:"bold",textAlign:"center",fontSize:"lg"},description:{fontWeight:"300",textAlign:"center",fontSize:"md"}}},izn={size:"md",colorScheme:"green"},ozn={parts:QVn.keys,baseStyle:nzn,sizes:rzn,defaultProps:izn},szn={initialColorMode:"dark",useSystemColorMode:!1},i7e=XIn({config:szn,fonts:{heading:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'},styles:{global:n=>({"*, *::before, *::after":{position:"relative"},"html, body":{backgroundColor:_r("#FAFBFC","gray.900")(n),color:n.colorMode==="dark"?"gray.50":"gray.800",padding:0,margin:0},strong:{fontWeight:700,fontVariationSettings:'"wght" 700'},".editor-line-error":{backgroundColor:"var(--chakra-colors-red-900)"}})},fontSizes:{"2xs":"0.6875rem",xs:"0.75rem",sm:"0.8125rem",md:"0.9375rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},textStyles:{hairline:{fontWeight:100,fontVariationSettings:'"wght" 100'},thin:{fontWeight:200,fontVariationSettings:'"wght" 200'},light:{fontWeight:300,fontVariationSettings:'"wght" 300'},normal:{fontWeight:400,fontVariationSettings:'"wght" 400'},medium:{fontWeight:500,fontVariationSettings:'"wght" 500'},semibold:{fontWeight:600,fontVariationSettings:'"wght" 600'},bold:{fontWeight:700,fontVariationSettings:'"wght" 700'},extrabold:{fontWeight:800,fontVariationSettings:'"wght" 800'},black:{fontWeight:900,fontVariationSettings:'"wght" 900'}},components:{Switch:{baseStyle:n=>({track:{_checked:{bg:_r("primary.500","primary.500")(n)}}})},Steps:ozn},colors:LE}),ph=n=>(Object.keys(n).forEach(r=>{const c=n[r];Array.isArray(c)&&c.length===0?delete n[r]:Array.isArray(c)&&c.length===1?n[r]=c[0]:(typeof c=="object"&&c&&Object.keys(c).length===0||typeof c=="string"&&c==="")&&delete n[r]}),n);function tk(n){const[r,c]=Object.entries(n.assignment)[0];return`assign({${r}: ${c}})`}function a7(n){return(n==null?void 0:n.type)==="xstate.assign"}const R$t=()=>{var n;return typeof window<"u"?window.location.origin:{}.NEXT_PUBLIC_VERCEL_URL?`https://${{}.NEXT_PUBLIC_VERCEL_URL}`:`http://localhost:${(n={}.PORT)!=null?n:"3000"}`};class $$t{constructor(r){this.getDeepChildren=u=>{const d=[],p=m=>{const x=this.map[m];x&&x.node.nodes.map(E=>{p(E.id),d.push(E.id)})};return p(u),d},this.getRelativeChildTarget=(u,d)=>{if(!this.isChildOrDeepChild(u,d))throw new Error("Target is not a child or deep child of source");return d.slice(u.length)},this.isChildOrDeepChild=(u,d)=>this.getDeepChildren(u).includes(d),this.isRootNode=u=>!this.map[u].parentId,this.isSibling=(u,d)=>{if(this.isSelfTransition(u,d))return!1;const p=this.map[u],m=this.map[d];return!p||!m?!1:p.parentId===m.parentId},this.isSelfTransition=(u,d)=>u===d,this.printXStateTargetAndInternal=(u,d)=>{const p=typeof d.internal<"u"&&!d.internal;if(this.isChildOrDeepChild(u,d.target)){const m=this.getRelativeChildTarget(u,d.target);return p?{target:m,internal:!1}:{target:m}}return this.isSelfTransition(u,d.target)?p?this.isRootNode(d.target)?{target:`#${d.target}`,internal:!1}:{target:this.map[u].node.data.key,internal:!1}:{target:void 0}:this.isSibling(u,d.target)?{target:this.map[d.target].node.data.key}:{target:`#${d.target}`}},this.map={};const c=(u,d)=>{this.map[u.id]={node:u,parentId:d},u.nodes.map(p=>{c(p,u.id)})};c(r.rootNode,void 0)}}function L$t(n,r=JSON.parse){const c=new $$t(n),u={actions:{},guards:{},services:{}};function d(m,x,E=0){const k={};m.nodes.forEach($=>{k[$.data.key]=d($,null,E+1)});const T={},P={};let I,O;m.data.invoke.forEach($=>{$.jsImplementation&&(u.services[$.src]={jsImplementation:$.jsImplementation})}),[...m.data.entry,...m.data.exit].forEach($=>{"jsImplementation"in $&&(u.actions[$.type]={jsImplementation:$.jsImplementation})});const N=m.data.invoke.map($=>({src:$.src,id:$.id}));return n.edges.filter($=>$.source===m.id).forEach($=>{var B,F,X,te;const L={target:`#${$.target}`,cond:(B=$.data.guard)==null?void 0:B.type,actions:$.data.actions.map(Z=>a7(Z)?tk(Z):Z.type),description:$.data.description,meta:$.data.metaEntries?Object.fromEntries($.data.metaEntries):void 0};if(Object.assign(L,c.printXStateTargetAndInternal($.source,{...$.data,target:$.target})),(F=$.data.guard)!=null&&F.jsImplementation&&(u.guards[$.data.guard.type]={jsImplementation:$.data.guard.jsImplementation}),$.data.actions.forEach(Z=>{"jsImplementation"in Z&&(u.actions[Z.type]={jsImplementation:Z.jsImplementation})}),$.data.eventTypeData.type==="named"){const Z=$.data.eventTypeData.eventType;T[Z]||(T[Z]=[]),T[Z].push(ph(L));return}if($.data.eventTypeData.type==="after")P[$.data.eventTypeData.delay]||(P[$.data.eventTypeData.delay]=[]),P[$.data.eventTypeData.delay].push({target:`#${$.target}`,cond:(X=$.data.guard)==null?void 0:X.type,actions:$.data.actions.map(Z=>a7(Z)?tk(Z):Z.type),description:$.data.description,internal:$.data.internal,meta:$.data.metaEntries?Object.fromEntries($.data.metaEntries):void 0});else if("invocationId"in $.data.eventTypeData){const Z=$.data.eventTypeData.invocationId,H=N.findIndex(ce=>ce.id===Z);if(H!==-1){const ce=N[H];$.data.eventTypeData.type==="invocation.done"?(ce.onDone||(ce.onDone=[]),ce.onDone.push(ph(L))):$.data.eventTypeData.type==="invocation.error"&&(ce.onError||(ce.onError=[]),ce.onError.push(ph(L)))}}else $.data.eventTypeData.type==="state.done"?(I=I!=null?I:[],I==null||I.push(ph(L))):$.data.eventTypeData.type==="always"?(O=O!=null?O:[],O==null||O.push(ph(L))):$.data.eventTypeData.type==="wildcard"&&(T["*"]=(te=T["*"])!=null?te:[],T["*"].push(ph(L)))}),ph({...E===0&&{id:m.id,context:x?r(x):{}},description:m.data.description||void 0,meta:m.data.metaEntries?Object.fromEntries(m.data.metaEntries):void 0,entry:m.data.entry.map($=>a7($)?tk($):$.type),exit:m.data.exit.map($=>a7($)?tk($):$.type),invoke:N.map($=>({...$,id:nfe($.id)?$.id:void 0})),after:ph(P),tags:m.data.tags.map($=>$.tag),initial:m.data.initial,states:k,always:O,on:ph(T),history:m.data.type!=="history"?void 0:m.data.history,type:m.data.type,onDone:I})}return{config:d(n.rootNode,n.context),implementationMetadata:u}}const HDe=(n,r,c)=>`${n}#${r}[${c}]`;var Fk={exports:{}};(function(n){var r=function(){var c=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",p={};function m(E,k){if(!p[E]){p[E]={};for(var T=0;T>>8,T[P*2+1]=O%256}return T},decompressFromUint8Array:function(E){if(E==null)return x.decompress(E);for(var k=new Array(E.length/2),T=0,P=k.length;T>1}else{for(I=1,P=0;P>1}B--,B==0&&(B=Math.pow(2,X),X++),delete N[L]}else for(I=O[L],P=0;P>1;B--,B==0&&(B=Math.pow(2,X),X++),O[$]=F++,L=String(j)}if(L!==""){if(Object.prototype.hasOwnProperty.call(N,L)){if(L.charCodeAt(0)<256){for(P=0;P>1}else{for(I=1,P=0;P>1}B--,B==0&&(B=Math.pow(2,X),X++),delete N[L]}else for(I=O[L],P=0;P>1;B--,B==0&&(B=Math.pow(2,X),X++)}for(I=2,P=0;P>1;for(;;)if(Z=Z<<1,H==k-1){te.push(T(Z));break}else H++;return te.join("")},decompress:function(E){return E==null?"":E==""?null:x._decompress(E.length,32768,function(k){return E.charCodeAt(k)})},_decompress:function(E,k,T){var P=[],I=4,O=4,N=3,j="",$=[],L,B,F,X,te,Z,H,ce={val:T(0),position:k,index:1};for(L=0;L<3;L+=1)P[L]=L;for(F=0,te=Math.pow(2,2),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;switch(F){case 0:for(F=0,te=Math.pow(2,8),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;H=c(F);break;case 1:for(F=0,te=Math.pow(2,16),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;H=c(F);break;case 2:return""}for(P[3]=H,B=H,$.push(H);;){if(ce.index>E)return"";for(F=0,te=Math.pow(2,N),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;switch(H=F){case 0:for(F=0,te=Math.pow(2,8),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;P[O++]=c(F),H=O-1,I--;break;case 1:for(F=0,te=Math.pow(2,16),Z=1;Z!=te;)X=ce.val&ce.position,ce.position>>=1,ce.position==0&&(ce.position=k,ce.val=T(ce.index++)),F|=(X>0?1:0)*Z,Z<<=1;P[O++]=c(F),H=O-1,I--;break;case 2:return $.join("")}if(I==0&&(I=Math.pow(2,N),N++),P[H])j=P[H];else if(H===O)j=B+B.charAt(0);else return null;$.push(j),P[O++]=B+j.charAt(0),I--,B=j,I==0&&(I=Math.pow(2,N),N++)}}};return x}();n!=null&&(n.exports=r)})(Fk);const azn=n=>{try{const r=Fk.exports.decompressFromEncodedURIComponent(n);if(typeof r!="string")return;const c=JSON.parse(r);if("nodes"in c&&"edges"in c)return c}catch(r){console.error(r)}},czn=n=>Fk.exports.compressToEncodedURIComponent(JSON.stringify(n)),qDe={parse:azn,stringify:czn},uzn=/^xstate\.after\((.*)\)#.*$/,F$t=n=>{if(n==="")return{type:"always"};if(n==="*")return{type:"wildcard"};try{const[,r]=n.match(uzn);if(typeof r!==void 0)return{type:"after",delay:r}}catch{}return n.startsWith("xstate.after.")?{type:"after",delay:n.substring(13)}:n.startsWith("done.invoke.")?{type:"invocation.done",invocationId:n.substring(12)}:n.startsWith("error.platform.")?{type:"invocation.error",invocationId:n.substring(15)}:n.startsWith("done.state.")?{type:"state.done"}:{type:"named",eventType:n}},o7e=n=>{const r=n.machine.getStateNodeByPath([]),c=n.path;return[r.key,...c].join(".")};function W9t(n,r,c){const u={},d=!r,m=sg(n).getStateNodeByPath([]),x=(T,P,I)=>{var O,N;return{...I,jsImplementation:(N=(O=c==null?void 0:c[P])==null?void 0:O[T])==null?void 0:N.jsImplementation}},E=T=>{var j,$,L,B;const P={};T.transitions.map(F=>{var Z,H,ce,pe,fe;P[F.eventType]===void 0?P[F.eventType]=0:P[F.eventType]++;const X=HDe(F.source.id,F.eventType,P[F.eventType]),te=(Z=r==null?void 0:r.edges[X])==null?void 0:Z.position;u[X]||(u[X]=[]),u[X].push({id:X,data:{eventTypeData:F$t(F.eventType),actions:F.actions.map(ve=>x(ve.type,"actions",ve)),guard:F.cond?x(F.cond.name,"guards",{type:F.cond.name,name:F.cond.name}):void 0,description:(ce=F.description)!=null?ce:(H=F.meta)==null?void 0:H.description,metaEntries:F.meta?Object.entries(F.meta):void 0,internal:F.internal},position:te,source:o7e(F.source),target:o7e((fe=(pe=F.target)==null?void 0:pe[0])!=null?fe:F.source)})});const I=o7e(T),O=(j=r==null?void 0:r.nodes[I])==null?void 0:j.position,N=Object.values(T.states).map(E);return{id:I,position:O,data:{entry:(T.onEntry||[]).filter(G9t).map(F=>x(F.type,"actions",F)),exit:(T.onExit||[]).filter(G9t).map(F=>x(F.type,"actions",F)),description:(L=T.description)!=null?L:($=T.meta)==null?void 0:$.description,invoke:T.invoke.map(F=>{const X=typeof F.src=="string"?F.src:F.src.type;return x(X,"services",{id:F.id,src:X})})||[],key:T.key,tags:((B=T.tags)==null?void 0:B.map(F=>({tag:F})))||[],history:T.history===!1?void 0:T.history,initial:T.initial,type:T.type==="atomic"||T.type==="compound"?void 0:T.type},nodes:N}},k=E(m);return{digraph:{context:"{}",rootNode:k,edges:Object.values(u).flat()},requiresAutolayout:d}}const G9t=n=>{try{if(n.type==="xstate.send"&&n.id.startsWith("xstate.after")||n.type==="xstate.cancel"&&n.sendId.startsWith("xstate.after"))return!1}catch{}return!0};function WDe(){return Math.random().toString(36).slice(2)}const lzn=()=>`:invocation:${WDe()}`,nfe=n=>n?!n.includes(":invocation"):!1;function Hce(n,r,c){switch(n.type){case"named":return n.eventType;case"after":return`xstate.after(${n.delay})#${r}`;case"state.done":return`done.state.${r}`;case"always":return"";case"wildcard":return"*";case"invocation.done":return X9t("done.invoke.",r,n.invocationId,c);case"invocation.error":return X9t("error.platform.",r,n.invocationId,c)}}const X9t=(n,r,c,u)=>{if(nfe(c))return`${n}${c}`;const d=u.findIndex(p=>p.id===c);return`${n}${zn.createInvokeId(r,d)}`},fzn=n=>{try{const r=Fk.exports.decompressFromEncodedURIComponent(n);return typeof r!="string"?void 0:JSON.parse(r)}catch(r){console.error(r)}},dzn=n=>Fk.exports.compressToEncodedURIComponent(JSON.stringify(n)),hzn={parse:fzn,stringify:dzn};var GDe={},XDe={};Object.defineProperty(XDe,"__esModule",{value:!0});XDe.default=pzn;function pzn(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(GDe,"__esModule",{value:!0});var B$t=GDe.RouterContext=void 0,gzn=XDe.default,bzn=gzn(U.exports);const mzn=bzn.default.createContext(null);B$t=GDe.RouterContext=mzn;function V$t(n){var r=U.exports.useRef();return r.current||(r.current={v:n()}),r.current.v}var s7e="__test_storage_support__",K9t="@@test",rfe=function(r){r===void 0&&(r="local");try{var c=r==="session"?window.sessionStorage:window.localStorage;return c.setItem(s7e,K9t),c.getItem(s7e)!==K9t?!1:(c.removeItem(s7e),!0)}catch{return!1}},ife=function(){var r=Object.create(null);return{getItem:function(u){var d=r[u];return typeof d=="string"?d:null},setItem:function(u,d){r[u]=d},removeItem:function(u){delete r[u]},clear:function(){r=Object.create(null)}}};const mM="",EPe="#",pU="*",rM={},iM=n=>n[0]===EPe,vzn=()=>({actions:{},guards:{},services:{},activities:{},delays:{}}),yzn=(n,r,c)=>{const u=c.slice(0,-1).some(p=>!("cond"in p)&&!("in"in p)&&(zn.isString(p.target)||zn.isMachine(p.target))),d=r===mM?"the transient event":`event '${r}'`;zn.warn(!u,`One or more transitions for ${d} on state '${n.id}' are unreachable. Make sure that the default transition is the last one defined.`)};class rD{constructor(r,c,u="context"in r?r.context:void 0,d){var x;this.config=r,this._context=u,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(vzn(),c),this.parent=d==null?void 0:d.parent,this.key=this.config.key||(d==null?void 0:d.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:$Fn),this.id=this.config.id||[this.machine.key,...this.path].join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(x=this.config.schema)!=null?x:{},this.description=this.config.description,J_||zn.warn(!("parallel"in this.config),`The "parallel" property is deprecated and will be removed in version 4.1. ${this.config.parallel?"Replace with `type: 'parallel'`":`Use \`type: '${this.type}'\``} in the config for state node '${this.id}' instead.`),this.initial=this.config.initial,this.states=this.config.states?zn.mapValues(this.config.states,(E,k)=>{const T=new rD(E,{},void 0,{parent:this,key:k});return Object.assign(this.idMap,{[T.id]:T,...T.idMap}),T}):rM;let p=0;function m(E){E.order=p++;for(const k of A9t(E))m(k)}m(this),this.history=this.config.history===!0?"shallow":this.config.history||!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(({event:E})=>E===mM):mM in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=zn.toArray(this.config.entry||this.config.onEntry).map(E=>I9t(E)),this.onExit=zn.toArray(this.config.exit||this.config.onExit).map(E=>I9t(E)),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=zn.toArray(this.config.invoke).map((E,k)=>{if(zn.isMachine(E)){const T=zn.createInvokeId(this.id,k);return this.machine.options.services={[T]:E,...this.machine.options.services},xse({src:T,id:T})}else if(zn.isString(E.src)){const T=E.id||zn.createInvokeId(this.id,k);return xse({...E,id:T,src:E.src})}else if(zn.isMachine(E.src)||zn.isFunction(E.src)){const T=E.id||zn.createInvokeId(this.id,k);return this.machine.options.services={[T]:E.src,...this.machine.options.services},xse({id:T,...E,src:T})}else{const T=E.src;return xse({id:zn.createInvokeId(this.id,k),...E,src:T})}}),this.activities=zn.toArray(this.config.activities).concat(this.invoke).map(E=>mBn(E)),this.transition=this.transition.bind(this),this.tags=zn.toArray(this.config.tags)}_init(){this.__cache.transitions||SBn(this).forEach(r=>r.on)}withConfig(r,c){const{actions:u,activities:d,guards:p,services:m,delays:x}=this.options;return new rD(this.config,{actions:{...u,...r.actions},activities:{...d,...r.activities},guards:{...p,...r.guards},services:{...m,...r.services},delays:{...x,...r.delays}},c!=null?c:this.context)}withContext(r){return new rD(this.config,this.options,r)}get context(){return zn.isFunction(this._context)?this._context():this._context}get definition(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:zn.mapValues(this.states,r=>r.definition),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get on(){if(this.__cache.on)return this.__cache.on;const r=this.transitions;return this.__cache.on=r.reduce((c,u)=>(c[u.eventType]=c[u.eventType]||[],c[u.eventType].push(u),c),{})}get after(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)}get transitions(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)}getCandidates(r){if(this.__cache.candidates[r])return this.__cache.candidates[r];const c=r===mM,u=this.transitions.filter(d=>{const p=d.eventType===r;return c?p:p||d.eventType===pU});return this.__cache.candidates[r]=u,u}getDelayedTransitions(){const r=this.config.after;if(!r)return[];const c=(d,p)=>{const m=zn.isFunction(d)?`${this.id}:delay[${p}]`:d,x=sBn(m,this.id);return this.onEntry.push(hBn(x,{delay:d})),this.onExit.push(aBn(x)),x};return(zn.isArray(r)?r.map((d,p)=>{const m=c(d.delay,p);return{...d,event:m}}):zn.flatten(Object.keys(r).map((d,p)=>{const m=r[d],x=zn.isString(m)?{target:m}:m,E=isNaN(+d)?d:+d,k=c(E,p);return zn.toArray(x).map(T=>({...T,event:k,delay:E}))}))).map(d=>{const{delay:p}=d;return{...this.formatTransition(d),delay:p}})}getStateNodes(r){if(!r)return[];const c=r instanceof DE?r.value:zn.toStateValue(r,this.delimiter);if(zn.isString(c)){const p=this.getStateNode(c).initial;return p!==void 0?this.getStateNodes({[c]:p}):[this,this.states[c]]}const u=Object.keys(c),d=[this];return d.push(...zn.flatten(u.map(p=>this.getStateNode(p).getStateNodes(c[p])))),d}handles(r){const c=zn.getEventType(r);return this.events.includes(c)}resolveState(r){const c=r instanceof DE?r:DE.create(r),u=Array.from(lU([],this.getStateNodes(c.value)));return new DE({...c,value:this.resolve(c.value),configuration:u,done:Oae(u,this),tags:P9t(u),machine:this.machine})}transitionLeafNode(r,c,u){const p=this.getStateNode(r).next(c,u);return!p||!p.transitions.length?this.next(c,u):p}transitionCompoundNode(r,c,u){const d=Object.keys(r),m=this.getStateNode(d[0])._transition(r[d[0]],c,u);return!m||!m.transitions.length?this.next(c,u):m}transitionParallelNode(r,c,u){const d={};for(const T of Object.keys(r)){const P=r[T];if(!P)continue;const O=this.getStateNode(T)._transition(P,c,u);O&&(d[T]=O)}const p=Object.keys(d).map(T=>d[T]),m=zn.flatten(p.map(T=>T.transitions));if(!p.some(T=>T.transitions.length>0))return this.next(c,u);const E=zn.flatten(p.map(T=>T.entrySet)),k=zn.flatten(Object.keys(d).map(T=>d[T].configuration));return{transitions:m,entrySet:E,exitSet:zn.flatten(p.map(T=>T.exitSet)),configuration:k,source:c,actions:zn.flatten(Object.keys(d).map(T=>d[T].actions))}}_transition(r,c,u){return zn.isString(r)?this.transitionLeafNode(r,c,u):Object.keys(r).length===1?this.transitionCompoundNode(r,c,u):this.transitionParallelNode(r,c,u)}getTransitionData(r,c){return this._transition(r.value,r,zn.toSCXMLEvent(c))}next(r,c){const u=c.name,d=[];let p=[],m;for(const T of this.getCandidates(u)){const{cond:P,in:I}=T,O=r.context,N=I?zn.isString(I)&&iM(I)?r.matches(zn.toStateValue(this.getStateNodeById(I).path,this.delimiter)):zn.matchesState(zn.toStateValue(I,this.delimiter),zn.path(this.path.slice(0,-2))(r.value)):!0;let j=!1;try{j=!P||zn.evaluateGuard(this.machine,P,O,c,r)}catch{}if(j&&N){T.target!==void 0&&(p=T.target),d.push(...T.actions),m=T;break}}if(!m)return;if(!p.length)return{transitions:[m],entrySet:[],exitSet:[],configuration:r.value?[this]:[],source:r,actions:d};const x=zn.flatten(p.map(T=>this.getRelativeStateNodes(T,r.historyValue))),E=!!m.internal,k=E?[]:zn.flatten(x.map(T=>this.nodesFromChild(T)));return{transitions:[m],entrySet:k,exitSet:E?[]:[this],configuration:x,source:r,actions:d}}nodesFromChild(r){if(r.escapes(this))return[];const c=[];let u=r;for(;u&&u!==this;)c.push(u),u=u.parent;return c.push(this),c}escapes(r){if(this===r)return!1;let c=this.parent;for(;c;){if(c===r)return!1;c=c.parent}return!0}getActions(r,c,u,d){const p=lU([],d?this.getStateNodes(d.value):[this]),m=r.configuration.length?lU(p,r.configuration):p;for(const I of m)r7e(p,I)||r.entrySet.push(I);for(const I of p)(!r7e(m,I)||r7e(r.exitSet,I.parent))&&r.exitSet.push(I);zn.flatten(r.entrySet.map(I=>{const O=[];if(I.type!=="final")return O;const N=I.parent;if(!N.parent)return O;O.push(wse(I.id,I.doneData),wse(N.id,I.doneData?zn.mapContext(I.doneData,c,u):void 0));const j=N.parent;return j.type==="parallel"&&A9t(j).every($=>Oae(r.configuration,$))&&O.push(wse(j.id)),O})),r.exitSet.sort((I,O)=>O.order-I.order),r.entrySet.sort((I,O)=>I.order-O.order);const x=new Set(r.entrySet),E=new Set(r.exitSet),[k,T]=[zn.flatten(Array.from(x).map(I=>[...I.activities.map(O=>gBn(O)),...I.onEntry])),zn.flatten(Array.from(E).map(I=>[...I.onExit,...I.activities.map(O=>bBn(O))]))];return T9t(T.concat(r.actions).concat(k),this.machine.options.actions)}transition(r=this.initialState,c,u){const d=zn.toSCXMLEvent(c);let p;if(r instanceof DE)p=u===void 0?r:this.resolveState(DE.from(r,u));else{const k=zn.isString(r)?this.resolve(zn.pathToStateValue(this.getResolvedPath(r))):this.resolve(r),T=u!=null?u:this.machine.context;p=this.resolveState(DE.from(k,T))}if(!J_&&d.name===pU)throw new Error(`An event cannot have the wildcard type ('${pU}')`);if(this.strict&&!this.events.includes(d.name)&&!zn.isBuiltInEvent(d.name))throw new Error(`Machine '${this.id}' does not accept event '${d.name}'`);const m=this._transition(p.value,p,d)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:p,actions:[]},x=lU([],this.getStateNodes(p.value)),E=m.configuration.length?lU(x,m.configuration):x;return m.configuration=[...E],this.resolveTransition(m,p,p.context,d)}resolveRaisedTransition(r,c,u){const d=r.actions;return r=this.transition(r,c),r._event=u,r.event=u.data,r.actions.unshift(...d),r}resolveTransition(r,c,u,d=fBn){const{configuration:p}=r,m=!c||r.transitions.length>0,x=m?EBn(this.machine,p):void 0,E=c?c.historyValue?c.historyValue:r.source?this.machine.historyValue(c.value):void 0:void 0,k=this.getActions(r,u,d,c),T=c?{...c.activities}:{};for(const ce of k)ce.type===C9t?T[ce.activity.id||ce.activity.type]=ce:ce.type===_Fn&&(T[ce.activity.id||ce.activity.type]=!1);const[P,I]=[[],u],[O,N]=zn.partition(P,ce=>ce.type===PFn||ce.type===OFn&&ce.to===Iv.Internal),$=P.filter(ce=>{var pe;return ce.type===C9t&&((pe=ce.activity)==null?void 0:pe.type)===AFn}).reduce((ce,pe)=>(ce[pe.activity.id]=RBn(pe.activity,this.machine,I,d),ce),c?{...c.children}:{}),L=m?r.configuration:c?c.configuration:[],B=Oae(L,this),F=new DE({value:x||c.value,context:I,_event:d,_sessionid:c?c._sessionid:null,historyValue:x?E?zn.updateHistoryValue(E,x):void 0:c?c.historyValue:void 0,history:!x||r.source?c:void 0,actions:x?N:[],activities:x?T:c?c.activities:{},events:[],configuration:L,transitions:r.transitions,children:$,done:B,tags:P9t(L),machine:this}),X=u!==I;F.changed=d.name===MFn||X;const{history:te}=F;if(te&&delete te.history,!B&&(this._transient||p.some(ce=>ce._transient)),!m&&d.name===mM)return F;let Z=F;if(!B)for(;O.length;){const ce=O.shift();Z=this.resolveRaisedTransition(Z,ce._event,d)}const H=Z.changed||(te?!!Z.actions.length||X||typeof te.value!=typeof Z.value||!ABn(Z.value,te.value):void 0);return Z.changed=H,Z.history=te,Z}getStateNode(r){if(iM(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error(`Unable to retrieve child state '${r}' from '${this.id}'; no child states exist.`);const c=this.states[r];if(!c)throw new Error(`Child state '${r}' does not exist on '${this.id}'`);return c}getStateNodeById(r){const c=iM(r)?r.slice(EPe.length):r;if(c===this.id)return this;const u=this.machine.idMap[c];if(!u)throw new Error(`Child state node '#${c}' does not exist on machine '${this.id}'`);return u}getStateNodeByPath(r){if(typeof r=="string"&&iM(r))try{return this.getStateNodeById(r.slice(1))}catch{}const c=zn.toStatePath(r,this.delimiter).slice();let u=this;for(;c.length;){const d=c.shift();if(!d.length)break;u=u.getStateNode(d)}return u}resolve(r){if(!r)return this.initialStateValue||rM;switch(this.type){case"parallel":return zn.mapValues(this.initialStateValue,(c,u)=>c?this.getStateNode(u).resolve(r[u]||c):rM);case"compound":if(zn.isString(r)){const c=this.getStateNode(r);return c.type==="parallel"||c.type==="compound"?{[r]:c.initialStateValue}:r}return Object.keys(r).length?zn.mapValues(r,(c,u)=>c?this.getStateNode(u).resolve(c):rM):this.initialStateValue||{};default:return r||rM}}getResolvedPath(r){if(iM(r)){const c=this.machine.idMap[r.slice(EPe.length)];if(!c)throw new Error(`Unable to find state node '${r}'`);return c.path}return zn.toStatePath(r,this.delimiter)}get initialStateValue(){if(this.__cache.initialStateValue)return this.__cache.initialStateValue;let r;if(this.type==="parallel")r=zn.mapFilterValues(this.states,c=>c.initialStateValue||rM,c=>c.type!=="history");else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error(`Initial state '${String(this.initial)}' not found on '${this.key}'`);r=O9t(this.states[this.initial])?this.initial:{[this.initial]:this.states[this.initial].initialStateValue}}else r={};return this.__cache.initialStateValue=r,this.__cache.initialStateValue}getInitialState(r,c){this._init();const u=this.getStateNodes(r);return this.resolveTransition({configuration:u,entrySet:u,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,c!=null?c:this.machine.context,void 0)}get initialState(){const{initialStateValue:r}=this;if(!r)throw new Error(`Cannot retrieve initial state from simple state '${this.id}'.`);return this.getInitialState(r)}get target(){let r;if(this.type==="history"){const c=this.config;zn.isString(c.target)?r=iM(c.target)?zn.pathToStateValue(this.machine.getStateNodeById(c.target).path.slice(this.path.length-1)):c.target:r=c.target}return r}getRelativeStateNodes(r,c,u=!0){return u?r.type==="history"?r.resolveHistory(c):r.initialStateNodes:[r]}get initialStateNodes(){if(O9t(this))return[this];if(this.type==="compound"&&!this.initial)return J_||zn.warn(!1,`Compound state node '${this.id}' has no initial state.`),[this];const r=zn.toStatePaths(this.initialStateValue);return zn.flatten(r.map(c=>this.getFromRelativePath(c)))}getFromRelativePath(r){if(!r.length)return[this];const[c,...u]=r;if(!this.states)throw new Error(`Cannot retrieve subPath '${c}' from node with no states`);const d=this.getStateNode(c);if(d.type==="history")return d.resolveHistory();if(!this.states[c])throw new Error(`Child state '${c}' does not exist on '${this.id}'`);return this.states[c].getFromRelativePath(u)}historyValue(r){if(!!Object.keys(this.states).length)return{current:r||this.initialStateValue,states:zn.mapFilterValues(this.states,(c,u)=>{if(!r)return c.historyValue();const d=zn.isString(r)?void 0:r[u];return c.historyValue(d||c.initialStateValue)},c=>!c.history)}}resolveHistory(r){if(this.type!=="history")return[this];const c=this.parent;if(!r){const d=this.target;return d?zn.flatten(zn.toStatePaths(d).map(p=>c.getFromRelativePath(p))):c.initialStateNodes}const u=zn.nestedPath(c.path,"states")(r).current;return zn.isString(u)?[c.getStateNode(u)]:zn.flatten(zn.toStatePaths(u).map(d=>this.history==="deep"?c.getFromRelativePath(d):[c.states[d[0]]]))}get stateIds(){const r=zn.flatten(Object.keys(this.states).map(c=>this.states[c].stateIds));return[this.id].concat(r)}get events(){if(this.__cache.events)return this.__cache.events;const{states:r}=this,c=new Set(this.ownEvents);if(r)for(const u of Object.keys(r)){const d=r[u];if(d.states)for(const p of d.events)c.add(`${p}`)}return this.__cache.events=Array.from(c)}get ownEvents(){const r=new Set(this.transitions.filter(c=>!(!c.target&&!c.actions.length&&c.internal)).map(c=>c.eventType));return Array.from(r)}resolveTarget(r){if(r!==void 0)return r.map(c=>{if(!zn.isString(c))return c;const u=c[0]===this.delimiter;if(u&&!this.parent)return this.getStateNodeByPath(c.slice(1));const d=u?this.key+c:c;if(this.parent)try{return this.parent.getStateNodeByPath(d)}catch(p){throw new Error(`Invalid transition definition for state node '${this.id}': +${p.message}`)}else return this.getStateNodeByPath(d)})}formatTransition(r){const c=zn.normalizeTarget(r.target),u="internal"in r?r.internal:c?c.some(x=>zn.isString(x)&&x[0]===this.delimiter):!0,{guards:d}=this.machine.options,p=this.resolveTarget(c),m={...r,actions:T9t(zn.toArray(r.actions)),cond:zn.toGuard(r.cond,d),target:p,source:this,internal:u,eventType:r.event,toJSON:()=>({...m,target:m.target?m.target.map(x=>`#${x.id}`):void 0,source:`#${this.id}`})};return m}formatTransitions(){let r;if(!this.config.on)r=[];else if(Array.isArray(this.config.on))r=this.config.on;else{const{[pU]:x=[],...E}=this.config.on;r=zn.flatten(Object.keys(E).map(k=>{!J_&&k===mM&&zn.warn(!1,`Empty string transition configs (e.g., \`{ on: { '': ... }}\`) for transient transitions are deprecated. Specify the transition in the \`{ always: ... }\` property instead. Please check the \`on\` configuration for "#${this.id}".`);const T=zn.toTransitionConfigArray(k,E[k]);return J_||yzn(this,k,T),T}).concat(zn.toTransitionConfigArray(pU,x)))}const c=this.config.always?zn.toTransitionConfigArray("",this.config.always):[],u=this.config.onDone?zn.toTransitionConfigArray(String(wse(this.id)),this.config.onDone):[];J_||zn.warn(!(this.config.onDone&&!this.parent),`Root nodes cannot have an ".onDone" transition. Please check the config of "${this.id}".`);const d=zn.flatten(this.invoke.map(x=>{const E=[];return x.onDone&&E.push(...zn.toTransitionConfigArray(String(uBn(x.id)),x.onDone)),x.onError&&E.push(...zn.toTransitionConfigArray(String(lBn(x.id)),x.onError)),E})),p=this.after,m=zn.flatten([...u,...d,...r,...c].map(x=>zn.toArray(x).map(E=>this.formatTransition(E))));for(const x of p)m.push(x);return m}}class wzn{constructor(r){this.config=r;const c=new rD(r);this.initialState=c.initialState}transition(r,c){var p;const u={guards:{}};return(p=c.guardNamesToEnsurePass)==null||p.map(m=>{u.guards[m]=()=>!0}),new rD(this.config,u).transition(r,c.event)}}function qce(n,r){n.consumed=r!=null?r:!0}function jU(n){return n.consumed}var Bk={},z$t={exports:{}};(function(n){function r(c,u){Object.defineProperties(this,{x:{value:c,writable:!1,enumerable:!0,configurable:!1},y:{value:u,writable:!1,enumerable:!0,configurable:!1}})}r.prototype.clone=function(){return new this.constructor(this.x,this.y)},r.prototype.add=function(c){return new this.constructor(this.x+c.x,this.y+c.y)},r.prototype.subtract=function(c){return new this.constructor(this.x-c.x,this.y-c.y)},r.prototype.multiply=function(c){return new this.constructor(this.x*c,this.y*c)},r.prototype.divide=function(c){return new this.constructor(this.x/c,this.y/c)},r.prototype.equals=function(c){return this.x===c.x&&this.y===c.y},r.prototype.lerp=function(c,u){var d=1-u;return new this.constructor(this.x*d+c.x*u,this.y*d+c.y*u)},r.prototype.distanceFrom=function(c){var u=this.x-c.x,d=this.y-c.y;return Math.sqrt(u*u+d*d)},r.prototype.min=function(c){return new this.constructor(Math.min(this.x,c.x),Math.min(this.y,c.y))},r.prototype.max=function(c){return new this.constructor(Math.max(this.x,c.x),Math.max(this.y,c.y))},r.prototype.transform=function(c){return new this.constructor(c.a*this.x+c.c*this.y+c.e,c.b*this.x+c.d*this.y+c.f)},r.prototype.toString=function(){return"point("+this.x+","+this.y+")"},n.exports=r})(z$t);var U$t={exports:{}};(function(n){function r(c,u){Object.defineProperties(this,{x:{value:c,writable:!1,enumerable:!0,configurable:!1},y:{value:u,writable:!1,enumerable:!0,configurable:!1}})}r.fromPoints=function(c,u){return new r(u.x-c.x,u.y-c.y)},r.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.magnitude=function(){return this.x*this.x+this.y*this.y},r.prototype.dot=function(c){return this.x*c.x+this.y*c.y},r.prototype.cross=function(c){return this.x*c.y-this.y*c.x},r.prototype.determinant=function(c){return this.x*c.y-this.y*c.x},r.prototype.unit=function(){return this.divide(this.length())},r.prototype.add=function(c){return new this.constructor(this.x+c.x,this.y+c.y)},r.prototype.subtract=function(c){return new this.constructor(this.x-c.x,this.y-c.y)},r.prototype.multiply=function(c){return new this.constructor(this.x*c,this.y*c)},r.prototype.divide=function(c){return new this.constructor(this.x/c,this.y/c)},r.prototype.angleBetween=function(c){var u=this.dot(c)/(this.length()*c.length());u=Math.max(-1,Math.min(u,1));var d=Math.acos(u);return this.cross(c)<0?-d:d},r.prototype.perp=function(){return new this.constructor(-this.y,this.x)},r.prototype.perpendicular=function(c){return this.subtract(this.project(c))},r.prototype.project=function(c){var u=this.dot(c)/c.dot(c);return c.multiply(u)},r.prototype.transform=function(c){return new this.constructor(c.a*this.x+c.c*this.y,c.b*this.x+c.d*this.y)},r.prototype.equals=function(c){return this.x===c.x&&this.y===c.y},r.prototype.toString=function(){return"vector("+this.x+","+this.y+")"},n.exports=r})(U$t);var H$t={exports:{}};(function(n){function r(c,u,d,p,m,x){Object.defineProperties(this,{a:{value:c!==void 0?c:1,writable:!1,enumerable:!0,configurable:!1},b:{value:u!==void 0?u:0,writable:!1,enumerable:!0,configurable:!1},c:{value:d!==void 0?d:0,writable:!1,enumerable:!0,configurable:!1},d:{value:p!==void 0?p:1,writable:!1,enumerable:!0,configurable:!1},e:{value:m!==void 0?m:0,writable:!1,enumerable:!0,configurable:!1},f:{value:x!==void 0?x:0,writable:!1,enumerable:!0,configurable:!1}})}r.IDENTITY=new r(1,0,0,1,0,0),r.IDENTITY.isIdentity=function(){return!0},r.prototype.multiply=function(c){return this.isIdentity()?c:c.isIdentity()?this:new this.constructor(this.a*c.a+this.c*c.b,this.b*c.a+this.d*c.b,this.a*c.c+this.c*c.d,this.b*c.c+this.d*c.d,this.a*c.e+this.c*c.f+this.e,this.b*c.e+this.d*c.f+this.f)},r.prototype.inverse=function(){if(this.isIdentity())return this;var c=this.a*this.d-this.b*this.c;if(c===0)throw"Matrix is not invertible";var u=1/c,d=this.f*this.c-this.e*this.d,p=this.e*this.b-this.f*this.a;return new this.constructor(this.d*u,-this.b*u,-this.c*u,this.a*u,d*u,p*u)},r.prototype.translate=function(c,u){return new this.constructor(this.a,this.b,this.c,this.d,this.a*c+this.c*u+this.e,this.b*c+this.d*u+this.f)},r.prototype.scale=function(c){return new this.constructor(this.a*c,this.b*c,this.c*c,this.d*c,this.e,this.f)},r.prototype.scaleAt=function(c,u){var d=u.x-c*u.x,p=u.y-c*u.y;return new this.constructor(this.a*c,this.b*c,this.c*c,this.d*c,this.a*d+this.c*p+this.e,this.b*d+this.d*p+this.f)},r.prototype.scaleNonUniform=function(c,u){return new this.constructor(this.a*c,this.b*c,this.c*u,this.d*u,this.e,this.f)},r.prototype.scaleNonUniformAt=function(c,u,d){var p=d.x-c*d.x,m=d.y-u*d.y;return new this.constructor(this.a*c,this.b*c,this.c*u,this.d*u,this.a*p+this.c*m+this.e,this.b*p+this.d*m+this.f)},r.prototype.rotate=function(c){var u=Math.cos(c),d=Math.sin(c);return new this.constructor(this.a*u+this.c*d,this.b*u+this.d*d,this.a*-d+this.c*u,this.b*-d+this.d*u,this.e,this.f)},r.prototype.rotateAt=function(c,u){var d=Math.cos(c),p=Math.sin(c),m=-u.x+u.x*d-u.y*p,x=-u.y+u.y*d+u.x*p;return new this.constructor(this.a*d+this.c*p,this.b*d+this.d*p,this.a*-p+this.c*d,this.b*-p+this.d*d,this.a*m+this.c*x+this.e,this.b*m+this.d*x+this.f)},r.prototype.rotateFromVector=function(c){var u=c.unit(),d=u.x,p=u.y;return new this.constructor(this.a*d+this.c*p,this.b*d+this.d*p,this.a*-p+this.c*d,this.b*-p+this.d*d,this.e,this.f)},r.prototype.flipX=function(){return new this.constructor(-this.a,-this.b,this.c,this.d,this.e,this.f)},r.prototype.flipY=function(){return new this.constructor(this.a,this.b,-this.c,-this.d,this.e,this.f)},r.prototype.skewX=function(c){var u=Math.tan(c);return new this.constructor(this.a,this.b,this.a*u+this.c,this.b*u+this.d,this.e,this.f)},r.prototype.skewY=function(c){var u=Math.tan(c);return new this.constructor(this.a+this.c*u,this.b+this.d*u,this.c,this.d,this.e,this.f)},r.prototype.isIdentity=function(){return this.a===1&&this.b===0&&this.c===0&&this.d===1&&this.e===0&&this.f===0},r.prototype.isInvertible=function(){return this.a*this.d-this.b*this.c!==0},r.prototype.getScale=function(){return{scaleX:Math.sqrt(this.a*this.a+this.c*this.c),scaleY:Math.sqrt(this.b*this.b+this.d*this.d)}},r.prototype.getDecomposition=function(){var c=(this.a+this.d)*.5,u=(this.a-this.d)*.5,d=(this.b+this.c)*.5,p=(this.b-this.c)*.5,m=Math.sqrt(c*c+p*p),x=Math.sqrt(u*u+d*d),E=m+x,k=m-x,T=Math.atan2(d,u),P=Math.atan2(p,c),I=(P-T)*.5,O=(P+T)*.5;return{translation:new this.constructor(1,0,0,1,this.e,this.f),rotation:this.constructor.IDENTITY.rotate(O),scale:new this.constructor(E,0,0,k,0,0),rotation0:this.constructor.IDENTITY.rotate(I)}},r.prototype.equals=function(c){return this.a===c.a&&this.b===c.b&&this.c===c.c&&this.d===c.d&&this.e===c.e&&this.f===c.f},r.prototype.toString=function(){return"matrix("+[this.a,this.b,this.c,this.d,this.e,this.f].join(",")+")"},n.exports=r})(H$t);Bk.Point2D=z$t.exports;Bk.Vector2D=U$t.exports;Bk.Matrix2D=H$t.exports;var ofe={},KDe={exports:{}};/** + * + * Polynomial.js + * + * copyright 2002, 2013 Kevin Lindsey + * + * contribution {@link http://github.com/Quazistax/kld-polynomial} + * @copyright 2015 Robert Benko (Quazistax) + * @license MIT + */(function(n){r.TOLERANCE=1e-6,r.ACCURACY=15,r.interpolate=function(u,d,p,m,x){if(u.constructor!==Array||d.constructor!==Array)throw new Error("Polynomial.interpolate: xs and ys must be arrays");if(isNaN(p)||isNaN(m)||isNaN(x))throw new Error("Polynomial.interpolate: n, offset, and x must be numbers");for(var E=0,k=0,T=new Array(p),P=new Array(p),I=0,O=Math.abs(x-u[m]),N=0;N=0;d--)this.coefs.push(u[d]);this._variable="t",this._s=0},r.prototype.eval=function(u){if(isNaN(u))throw new Error("Polynomial.eval: parameter must be a number");for(var d=0,p=this.coefs.length-1;p>=0;p--)d=d*u+this.coefs[p];return d},r.prototype.add=function(u){for(var d=new r,p=this.getDegree(),m=u.getDegree(),x=Math.max(p,m),E=0;E<=x;E++){var k=E<=p?this.coefs[E]:0,T=E<=m?u.coefs[E]:0;d.coefs[E]=k+T}return d},r.prototype.multiply=function(u){for(var d=new r,p=0;p<=this.getDegree()+u.getDegree();p++)d.coefs.push(0);for(var p=0;p<=this.getDegree();p++)for(var m=0;m<=u.getDegree();m++)d.coefs[p+m]+=this.coefs[p]*u.coefs[m];return d},r.prototype.divide_scalar=function(u){for(var d=0;d=0&&Math.abs(this.coefs[d])<=u;d--)this.coefs.pop()},r.prototype.bisection=function(u,d){var p=this.eval(u),m=this.eval(d),x;if(Math.abs(p)<=r.TOLERANCE)x=u;else if(Math.abs(m)<=r.TOLERANCE)x=d;else if(p*m<=0)for(var E=Math.log(d-u),k=Math.LN10*r.ACCURACY,T=Math.ceil((E+k)/Math.LN2),P=0;P=0;p--){var m=Math.round(this.coefs[p]*1e3)/1e3;if(m!=0){var x=m<0?" - ":" + ";m=Math.abs(m),p>0&&(m==1?m=this._variable:m+=this._variable),p>1&&(m+="^"+p),d.push(x),u.push(m)}}d[0]=d[0]==" + "?"":"-";for(var E="",p=0;p=m&&(T=r.interpolate(k,E,m,P-m,0),Math.abs(T.dy)<=x*T.y)));P++)E[P]=E[P-1],k[P]=.25*k[P-1];return T.y},r.prototype.getDegree=function(){return this.coefs.length-1},r.prototype.getDerivative=function(){for(var u=new r,d=1;d0){for(m=this.bisection(u,E[0]),m!=null&&p.push(m),i=0;i<=E.length-2;i++)m=this.bisection(E[i],E[i+1]),m!=null&&p.push(m);m=this.bisection(E[E.length-1],d),m!=null&&p.push(m)}else m=this.bisection(u,d),m!=null&&p.push(m)}return p},r.prototype.getLinearRoot=function(){var u=new Array,d=this.coefs[1];return d!=0&&u.push(-this.coefs[0]/d),u},r.prototype.getQuadraticRoots=function(){var u=new Array;if(this.getDegree()==2){var d=this.coefs[2],p=this.coefs[1]/d,m=this.coefs[0]/d,x=p*p-4*m;if(x>0){var E=Math.sqrt(x);u.push(.5*(-p+E)),u.push(.5*(-p-E))}else x==0&&u.push(.5*-p)}return u},r.prototype.getCubicRoots=function(){var u=new Array;if(this.getDegree()==3){var d=this.coefs[3],p=this.coefs[2]/d,m=this.coefs[1]/d,x=this.coefs[0]/d,E=(3*m-p*p)/3,k=(2*p*p*p-9*m*p+27*x)/27,T=p/3,P=k*k/4+E*E*E/27,I=k/2,O=this.zeroErrorEstimate();if(Math.abs(P)<=O&&(P=0),P>0){var N=Math.sqrt(P),j,$;j=-I+N,j>=0?$=Math.pow(j,1/3):$=-Math.pow(-j,1/3),j=-I-N,j>=0?$+=Math.pow(j,1/3):$-=Math.pow(-j,1/3),u.push($-T)}else if(P<0){var L=Math.sqrt(-E/3),B=Math.atan2(Math.sqrt(-P),-I)/3,F=Math.cos(B),X=Math.sin(B),te=Math.sqrt(3);u.push(2*L*F-T),u.push(-L*(F+te*X)-T),u.push(-L*(F-te*X)-T)}else{var j;I>=0?j=-Math.pow(I,1/3):j=Math.pow(-I,1/3),u.push(2*j-T),u.push(-j-T)}}return u};var c=function(u){return typeof u=="number"?u?u<0?-1:1:u===u?u:NaN:NaN};r.prototype.getQuarticRoots=function(){var u=[],d=this.getDegree();if(d==4){var p=new r;p.coefs=this.coefs.slice(),p.divide_scalar(p.coefs[d]);var m=1e-15;Math.abs(p.coefs[0])<10*m*Math.abs(p.coefs[3])&&(p.coefs[0]=0);var x=p.getDerivative(),E=x.getRoots().sort(function(F,X){return F-X}),k=[],T=E.length-1,P,I=this.bounds();maxabsX=Math.max(Math.abs(I.minX),Math.abs(I.maxX));var O=this.zeroErrorEstimate(maxabsX);for(P=0;P<=T;P++)k.push(p.eval(E[P]));for(P=0;P<=T;P++)Math.abs(k[P])-1){for(k[0]!=0?c(k[0])!=c(p.eval(E[0]-N)-k[0])&&(j.push(E[0]-N),$.push([I.minX,E[0]])):(u.push(E[0],E[0]),P++);P0)for(P=0;P"u"){var m=d.bounds();u=Math.max(Math.abs(m.minX),Math.abs(m.maxX))}if(u<.001)return 2*Math.abs(d.eval(p));var x=d.coefs.length-1,E=d.coefs[x];return 10*p*d.coefs.reduce(function(k,T,P){var I=T/E*Math.pow(u,P);return I>k?I:k},0)},r.prototype.bounds_UpperReal_Fujiwara=function(){var u=this.coefs,d=u.length-1,p=u[d];p!=1&&(u=this.coefs.map(function(P){return P/p}));var m=u.map(function(P,I){return I0)};var T=m.reduce(E,{max:0,nearmax:0});return{negX:-2*T.max,posX:2*k.max}},r.prototype.bounds_LowerReal_Fujiwara=function(){var u=new r;u.coefs=this.coefs.slice().reverse();var d=u.bounds_UpperReal_Fujiwara();return d.negX=1/d.negX,d.posX=1/d.posX,d},r.prototype.bounds=function(){var u=this.bounds_UpperReal_Fujiwara(),d={minX:u.negX,maxX:u.posX};return u.negX===0&&u.posX===0||(u.negX===0?d.minX=this.bounds_LowerReal_Fujiwara().posX:u.posX===0&&(d.maxX=this.bounds_LowerReal_Fujiwara().negX),d.minX>d.maxX&&(d.minX=d.maxX=0)),d},r.newton_secant_bisection=function(u,d,p,m,x,E){var k,T=0,P,I=0,O,N,j,$;k=u;var L=14,B=Math.pow(10,-L),F=typeof x=="number"&&typeof E=="number";if(F){if(x>E)throw new Error("newton root finding: min must be greater than max");if(j=d(x),$=d(E),c(j)==c($))throw new Error("newton root finding: y values of bounds must be of opposite sign")}var X=function(){return Math.abs(O)<=B*Math.abs(k)||I==k-O-k},te;for(te=0;teE){if(c(j)==c($))break;var Z=50,H=.25,ce=$-j,pe=E-x;if(ce==0?O=k-(x+pe*.5):Math.abs(ce/Math.min(j,$))>Z?O=k-(x+pe*(.5+(Math.abs(j)1&&(L=Math.sqrt($),c*=L,u*=L);var B=c*c,F=u*u,X=B*j,te=F*N;L=(B*F-X-te)/(X+te),Math.abs(L)jt;)et-=jt;for(;et<0;)et+=jt;return m==!1&&(et-=jt),{center:new Au(ce*E-pe*k+H.x,ce*k+pe*E+H.y),rx:c,ry:u,theta1:Je,deltaTheta:et}}function Ri(n,r){this.init(n,r)}Ri.prototype.init=function(n,r){this.type=n,this.params=r,this.meta={}};Ri.TYPE={};var ac=Ri.TYPE;ac.LINE="Line";ac.RECT="Rectangle";ac.ROUNDRECT="RoundRectangle";ac.CIRCLE="Circle";ac.ELLIPSE="Ellipse";ac.POLYGON="Polygon";ac.POLYLINE="Polyline";ac.PATH="Path";ac.ARC="Arc";ac.BEZIER2="Bezier2";ac.BEZIER3="Bezier3";function Y9t(n){return n.split(" ").map(function(r){return r=r.split(","),new Au(r[0],r[1])})}Ri.newShape=function(n,r){if(n=n.toLowerCase(),n==="line")return Ri.newLine(new Au(r.x1,r.y1),new Au(r.x2,r.y2));if(n==="rect")return r.rx>0||r.ry>0?Ri.newRoundRect(r.x,r.y,r.width,r.height,r.rx,r.ry):Ri.newRect(r.x,r.y,r.width,r.height);if(n==="circle")return Ri.newCircle(new Au(r.cx,r.cy),r.r);if(n==="ellipse")return Ri.newEllipse(new Au(r.cx,r.cy),r.rx,r.ry);if(n==="polygon")return Ri.newPolygon(Y9t(r.points));if(n==="polyline")return Ri.newPolyline(Y9t(r.points));if(n==="path")return Ri.newPath(r.d)};Ri.newArc=function(n,r,c,u,d,p,m){var x=xzn(n,r,c,u,d,p,m);return new Ri(ac.ARC,[x.center,x.rx,x.ry,d*Math.PI/180,x.theta1,x.deltaTheta])};Ri.newBezier2=function(n,r,c){return new Ri(ac.BEZIER2,[n,r,c])};Ri.newBezier3=function(n,r,c,u){return new Ri(ac.BEZIER3,[n,r,c,u])};Ri.newCircle=function(n,r){return new Ri(ac.CIRCLE,[n,r])};Ri.newEllipse=function(n,r,c){return new Ri(ac.ELLIPSE,[n,r,c])};Ri.newLine=function(n,r){return new Ri(ac.LINE,[n,r])};Ri.newPolygon=function(n){return new Ri(ac.POLYGON,[n])};Ri.newPolyline=function(n){return new Ri(ac.POLYLINE,[n])};Ri.newRect=function(n,r,c,u){var d=[];return d.push(new Au(n,r)),d.push(new Au(n+c,r)),d.push(new Au(n+c,r+u)),d.push(new Au(n,r+u)),new Ri(ac.RECT,[d])};var NE=function(n){return n*Math.PI/180};Ri.newRoundRect=function(n,r,c,u,d,p){if(d===0&&p===0)return Ri.newRect(n,r,c,u);d===0&&(d=p),p===0&&(p=d),d>c/2&&(d=c/2),p>u/2&&(d=u/2);var m=[],x=n,E=n+d,k=n+c-d,T=n+c,P=r,I=r+p,O=r+u-p,N=r+u;return m.push(new Ri(ac.ARC,[new Au(E,I),d,p,0,NE(180),NE(90)])),m.push(new Ri(ac.LINE,[new Au(E,P),new Au(k,P)])),m.push(new Ri(ac.ARC,[new Au(k,I),d,p,0,NE(-90),NE(90)])),m.push(new Ri(ac.LINE,[new Au(T,I),new Au(T,O)])),m.push(new Ri(ac.ARC,[new Au(k,O),d,p,0,NE(0),NE(90)])),m.push(new Ri(ac.LINE,[new Au(k,N),new Au(E,N)])),m.push(new Ri(ac.ARC,[new Au(E,O),d,p,0,NE(90),NE(90)])),m.push(new Ri(ac.LINE,[new Au(x,O),new Au(x,I)])),m[m.length-1].meta.closePath=!0,new Ri(ac.ROUNDRECT,[m])};function SH(n,r){arguments.length>0&&this.init(n,r)}SH.prototype.init=function(n,r){this.type=n,this.text=r};SH.prototype.typeis=function(n){return this.type==n};var Sb={};Sb.COMMAND=0;Sb.NUMBER=1;Sb.EOD=2;Sb.PARAMS={A:["rx","ry","x-axis-rotation","large-arc-flag","sweep-flag","x","y"],a:["rx","ry","x-axis-rotation","large-arc-flag","sweep-flag","x","y"],C:["x1","y1","x2","y2","x","y"],c:["x1","y1","x2","y2","x","y"],H:["x"],h:["x"],L:["x","y"],l:["x","y"],M:["x","y"],m:["x","y"],Q:["x1","y1","x","y"],q:["x1","y1","x","y"],S:["x2","y2","x","y"],s:["x2","y2","x","y"],T:["x","y"],t:["x","y"],V:["y"],v:["y"],Z:[],z:[]};function Szn(n){for(var r=new Array;n!="";)if(n.match(/^([ \t\r\n,]+)/))n=n.substr(RegExp.$1.length);else if(n.match(/^([aAcChHlLmMqQsStTvVzZ])/))r[r.length]=new SH(Sb.COMMAND,RegExp.$1),n=n.substr(RegExp.$1.length);else if(n.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))r[r.length]=new SH(Sb.NUMBER,parseFloat(RegExp.$1)),n=n.substr(RegExp.$1.length);else throw new Error("Unrecognized segment command: "+n);return r[r.length]=new SH(Sb.EOD,null),r}Ri.newPath=function(n){for(var r=Szn(n),c=0,u=r[c],d="BOD",p=[];!u.typeis(Sb.EOD);){var m,x=new Array;if(d=="BOD")if(u.text=="M"||u.text=="m")c++,m=Sb.PARAMS[u.text].length,d=u.text;else throw new Error("Path data must begin with a moveto command");else u.typeis(Sb.NUMBER)?m=Sb.PARAMS[d].length:(c++,m=Sb.PARAMS[u.text].length,d=u.text);if(c+m0&&this.init(n,r,c)}Pl.prototype.init=function(n,r,c){this.command=n,this.previous=c,this.points=[];for(var u=0;u0&&this.init("A",n,r)}D7.prototype=new Pl;D7.prototype.constructor=N7;D7.superclass=Pl.prototype;D7.prototype.init=function(n,r,c){var u=new Array,d=r.pop(),p=r.pop();u.push(p,d),D7.superclass.init.call(this,n,u,c),this.rx=parseFloat(r.shift()),this.ry=parseFloat(r.shift()),this.angle=parseFloat(r.shift()),this.arcFlag=parseFloat(r.shift()),this.sweepFlag=parseFloat(r.shift())};D7.prototype.getIntersectionParams=function(){return Ri.newArc(this.previous.getLastPoint(),this.points[0],this.rx,this.ry,this.angle,this.arcFlag,this.sweepFlag)};function N7(n,r){arguments.length>0&&this.init("Q",n,r)}N7.prototype=new Pl;N7.prototype.constructor=N7;N7.superclass=Pl.prototype;N7.prototype.getIntersectionParams=function(){return Ri.newBezier2(this.previous.getLastPoint(),this.points[0],this.points[1])};function j7(n,r){arguments.length>0&&this.init("C",n,r)}j7.prototype=new Pl;j7.prototype.constructor=j7;j7.superclass=Pl.prototype;j7.prototype.getLastControlPoint=function(){return this.points[1]};j7.prototype.getIntersectionParams=function(){return Ri.newBezier3(this.previous.getLastPoint(),this.points[0],this.points[1],this.points[2])};function R7(n,r){arguments.length>0&&this.init("H",n,r)}R7.prototype=new Pl;R7.prototype.constructor=R7;R7.superclass=Pl.prototype;R7.prototype.init=function(n,r,c){var u=c.getLastPoint(),d=new Array;d.push(r.pop(),u.y),R7.superclass.init.call(this,n,d,c)};function $7(n,r){arguments.length>0&&this.init("V",n,r)}$7.prototype=new Pl;$7.prototype.constructor=$7;$7.superclass=Pl.prototype;$7.prototype.init=function(n,r,c){var u=c.getLastPoint(),d=new Array;d.push(u.x,r.pop()),$7.superclass.init.call(this,n,d,c)};function OD(n,r){arguments.length>0&&this.init("L",n,r)}OD.prototype=new Pl;OD.prototype.constructor=OD;OD.superclass=Pl.prototype;OD.prototype.getIntersectionParams=function(){return Ri.newLine(this.previous.getLastPoint(),this.points[0])};function wq(n,r){arguments.length>0&&this.init("M",n,r)}wq.prototype=new Pl;wq.prototype.constructor=wq;wq.superclass=Pl.prototype;function L7(n,r){arguments.length>0&&this.init("T",n,r)}L7.prototype=new Pl;L7.prototype.constructor=L7;L7.superclass=Pl.prototype;L7.prototype.getControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[QqTt]$/)){var c=this.previous.getControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};L7.prototype.getIntersectionParams=function(){return Ri.newBezier2(this.previous.getLastPoint(),this.getControlPoint(),this.points[0])};function Sk(n,r){arguments.length>0&&this.init("S",n,r)}Sk.prototype=new Pl;Sk.prototype.constructor=Sk;Sk.superclass=Pl.prototype;Sk.prototype.getFirstControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[SsCc]$/)){var c=this.previous.getLastControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};Sk.prototype.getLastControlPoint=function(){return this.points[0]};Sk.prototype.getIntersectionParams=function(){return Ri.newBezier3(this.previous.getLastPoint(),this.getFirstControlPoint(),this.points[0],this.points[1])};function $d(n,r,c){arguments.length>0&&this.init(n,r,c)}$d.prototype=new Pl;$d.prototype.constructor=$d;$d.superclass=Pl.prototype;$d.prototype.init=function(n,r,c){this.command=n,this.previous=c,this.points=[];var u;this.previous?u=this.previous.getLastPoint():u=new Au(0,0);for(var d=0;d0&&this.init("z",n,r)}Ek.prototype=new $d;Ek.prototype.constructor=Ek;Ek.superclass=$d.prototype;Ek.prototype.getLastPoint=function(){for(var n=this.previous,r;n;){if(n.command.match(/^[mMzZ]$/)){r=n.getLastPoint();break}n=n.previous}return r};Ek.prototype.getIntersectionParams=function(){return Ri.newLine(this.previous.getLastPoint(),this.getLastPoint())};function F7(n,r){arguments.length>0&&this.init("q",n,r)}F7.prototype=new $d;F7.prototype.constructor=F7;F7.superclass=$d.prototype;F7.prototype.getControlPoint=function(){return this.points[0]};F7.prototype.getIntersectionParams=function(){return Ri.newBezier2(this.previous.getLastPoint(),this.points[0],this.points[1])};function B7(n,r){arguments.length>0&&this.init("c",n,r)}B7.prototype=new $d;B7.prototype.constructor=B7;B7.superclass=$d.prototype;B7.prototype.getLastControlPoint=function(){return this.points[1]};B7.prototype.getIntersectionParams=function(){return Ri.newBezier3(this.previous.getLastPoint(),this.points[0],this.points[1],this.points[2])};function V7(n,r){arguments.length>0&&this.init("l",n,r)}V7.prototype=new $d;V7.prototype.constructor=V7;V7.superclass=$d.prototype;V7.prototype.toString=function(){new Array;var n,r;return this.previous?n=this.previous.getLastPoint():n=new Point(0,0),r=this.points[0].subtract(n),this.previous.constructor!=this.constuctor&&this.previous.constructor!=_D&&(cmd=this.command),cmd+r.toString()};V7.prototype.getIntersectionParams=function(){return Ri.newLine(this.previous.getLastPoint(),this.points[0])};function _D(n,r){arguments.length>0&&this.init("m",n,r)}_D.prototype=new $d;_D.prototype.constructor=_D;_D.superclass=$d.prototype;function z7(n,r){arguments.length>0&&this.init("t",n,r)}z7.prototype=new $d;z7.prototype.constructor=z7;z7.superclass=$d.prototype;z7.prototype.getControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[QqTt]$/)){var c=this.previous.getControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};z7.prototype.getIntersectionParams=function(){return Ri.newBezier2(this.previous.getLastPoint(),this.getControlPoint(),this.points[0])};function kk(n,r){arguments.length>0&&this.init("s",n,r)}kk.prototype=new $d;kk.prototype.constructor=kk;kk.superclass=$d.prototype;kk.prototype.getFirstControlPoint=function(){var n=this.previous.getLastPoint(),r;if(this.previous.command.match(/^[SsCc]$/)){var c=this.previous.getLastControlPoint(),u=c.subtract(n);r=n.subtract(u)}else r=n;return r};kk.prototype.getLastControlPoint=function(){return this.points[0]};kk.prototype.getIntersectionParams=function(){return Ri.newBezier3(this.previous.getLastPoint(),this.getFirstControlPoint(),this.points[0],this.points[1])};var W$t=Ri;function sfe(n){this.init(n)}sfe.prototype.init=function(n){this.status=n,this.points=[]};sfe.prototype.appendPoint=function(n){this.points.push(n)};sfe.prototype.appendPoints=function(n){this.points=this.points.concat(n)};var G$t=sfe,NS={exports:{}},oT=G$t,X$t=Bk,Ck=X$t.Point2D,tf=X$t.Vector2D,Q0=ofe.Polynomial;function YDe(n){var r=1e-15;n.sort(function(u,d){return u-d});for(var c=1;c0&&ve.length>0){var Ge=1e-4;e:for(var qe=0;qe0&&xe.length>0){var Jt=1e-4;e:for(var an=0;an0&&gn.length>0){var In=1e-4;e:for(var cr=0;cr + * @license MIT + */var c7=Bk.Point2D,Q9=Bk.Vector2D,dv=Bk.Matrix2D,K$t=ofe.Polynomial,RU=W$t,Gh=G$t,a7e=NS.exports,Qh=RU.TYPE;function Ezn(n,r){var c=n[0]*r[1]-r[0]*n[1],u=n[0]*r[2]-r[0]*n[2],d=n[0]*r[3]-r[0]*n[3],p=n[0]*r[4]-r[0]*n[4],m=n[0]*r[5]-r[0]*n[5],x=n[1]*r[2]-r[1]*n[2],E=n[1]*r[4]-r[1]*n[4],k=n[1]*r[5]-r[1]*n[5],T=n[2]*r[3]-r[2]*n[3],P=n[3]*r[4]-r[3]*n[4],I=n[3]*r[5]-r[3]*n[5],O=k+P,N=E-T;return new K$t(c*x-u*u,c*N+d*x-2*u*p,c*O+d*N-p*p-2*u*m,c*I+d*O-2*p*m,d*I-m*m)}function kzn(n,r,c,u,d,p,m,x){if(n.points.length===0)return n;if(x&&!x.isIdentity())var E=x.inverse();var k=[],T=new Q9(1,0),P=Math.PI*2,I=m<0,O=Math.abs(m)>Math.PI,N=new dv().scaleNonUniform(1,u/c).rotate(p),j=new dv().scaleNonUniform(1,u/c).rotate(p+m);p=(T.angleBetween(T.transform(N))+P)%P,m=T.transform(N).angleBetween(T.transform(j)),m=(O?P-Math.abs(m):Math.abs(m))*(I?-1:1);for(var $=new dv().rotate(d).multiply(N),L=0,B,F;L=0?(F=(F+2*P)%P,F<=m&&k.push(B)):(F=(F-2*P)%P,F>=m&&k.push(B));return n.points=k,n}function Q9t(n,r){if(!(n.length===0||r.length===0)){var c=function(E,k){return E-1?H[0].distanceFrom(H[1])-1)){H.length==3&&(N=N%2);var ce=N+(N%2?-1:2),pe,fe,ve;pe=H[N].distanceFrom(H[N+1]),fe=H[N].distanceFrom(H[ce]),ve=H[N+1].distanceFrom(H[ce]),pe0){var B=Math.sqrt(j),F=(-O-B)/I,X=(-O+B)/I;X=X>1?X-$:X<0?X+$:X,F=F>1?F-$:F<0?F+$:F,(F<0||11&&X>1?p=new Gh("Outside"):p=new Gh("Inside"):(p=new Gh,0<=F&&F<=1&&p.appendPoint(u.lerp(d,F)),0<=X&&X<=1&&p.appendPoint(u.lerp(d,X)))}else{var te=-O/I;0<=te&&te<=1?(p=new Gh,p.appendPoint(u.lerp(d,te))):p=new Gh("Outside")}return p},intersectLineLine:function(n,r,c,u){var d,p=(u.x-c.x)*(n.y-c.y)-(u.y-c.y)*(n.x-c.x),m=(r.x-n.x)*(n.y-c.y)-(r.y-n.y)*(n.x-c.x),x=(u.y-c.y)*(r.x-n.x)-(u.x-c.x)*(r.y-n.y);if(x!==0){var E=p/x,k=m/x;0<=E&&E<=1&&0<=k&&k<=1?(d=new Gh,d.points.push(new c7(n.x+E*(r.x-n.x),n.y+E*(r.y-n.y)))):d=new Gh}else p===0||m===0?d=new Gh("Coincident"):d=new Gh("Parallel");return d},intersectRayRay:function(n,r,c,u){var d,p=(u.x-c.x)*(n.y-c.y)-(u.y-c.y)*(n.x-c.x),m=(r.x-n.x)*(n.y-c.y)-(r.y-n.y)*(n.x-c.x),x=(u.y-c.y)*(r.x-n.x)-(u.x-c.x)*(r.y-n.y);if(x!==0){var E=p/x;d=new Gh,d.points.push(new c7(n.x+E*(r.x-n.x),n.y+E*(r.y-n.y)))}else p===0||m===0?d=new Gh("Coincident"):d=new Gh("Parallel");return d}},Ik={};Ik[Qh.PATH]=Vk.intersectPathShape;Ik[Qh.POLYLINE]=Vk.intersectLinesShape;Ik[Qh.POLYGON]=Vk.intersectLinesShape;Ik[Qh.RECT]=Vk.intersectLinesShape;Ik[Qh.ROUNDRECT]=Vk.intersectPathShape;Ik[Qh.ARC]=Vk.intersectArcShape;function kse(n,r,c,u){var d=n,p=r,m;if(d!==null&&p!==null){var x;if(x=Ik[d.type])m=x(d,p,c,u);else if(x=Ik[p.type])m=x(p,d,u,c);else{var E,k,T,P,I;d.type===Qh.CIRCLE?(k=[d.params[0],d.params[1],d.params[1]],P=Qh.ELLIPSE):(k=d.params.slice(),P=d.type),p.type===Qh.CIRCLE?(T=[p.params[0],p.params[1],p.params[1]],I=Qh.ELLIPSE):(T=p.params.slice(),I=p.type);var O=1,N,j=c instanceof dv&&u instanceof dv;if(j)if(P===Qh.ELLIPSE&&I===Qh.ELLIPSE){var $,L,B,F=k[0],X=k[1],te=k[2],Z=T[0],H=T[1],ce=T[2];c=c.multiply(dv.IDENTITY.translate(F.x,F.y).scaleNonUniform(X/O,te/O)),F=new c7(0,0),X=te=O,u=u.multiply(dv.IDENTITY.translate(Z.x,Z.y).scaleNonUniform(H,ce)),Z=new c7(0,0),H=ce=1,B=c.inverse().multiply(u).getDecomposition(),$=B.rotation.inverse().multiply(B.translation.inverse()),L=B.scale,H=L.a,ce=L.d,F=F.transform($),N=c.multiply($.inverse()),k[0]=F,k[1]=X,k[2]=te,T[0]=Z,T[1]=H,T[2]=ce}else{var pe=function(Ge,qe,Je){var et=function(jt){qe[jt]=qe[jt].transform(Je)};if(Ge===Qh.LINE)et(0),et(1);else if(Ge===Qh.BEZIER2)et(0),et(1),et(2);else if(Ge===Qh.BEZIER3)et(0),et(1),et(2),et(3);else throw new Error("Unknown shape: "+Ge)};if(I===Qh.ELLIPSE){var fe;fe=T,T=k,k=fe,fe=I,I=P,P=fe,fe=u,u=c,c=fe}if(P===Qh.ELLIPSE){var F=k[0],X=k[1],te=k[2];c=c.multiply(dv.IDENTITY.translate(F.x,F.y).scaleNonUniform(X/O,te/O)),F=new c7(0,0),X=te=O,L=c.inverse().multiply(u),pe(I,T,L),N=c,k[0]=F,k[1]=X,k[2]=te}else pe(P,k,c),pe(I,T,u),N=dv.IDENTITY}if(P1||I<0||I>1)return!1;const O=c+P*(d-c),N=u+P*(p-u);return{x:O,y:N}}function kPe(n,r){const c={point:$U(n,[{x:r.left,y:r.top},{x:r.right,y:r.top}]),side:"top"},u={point:$U(n,[{x:r.right,y:r.top},{x:r.right,y:r.bottom}]),side:"right"},d={point:$U(n,[{x:r.right,y:r.bottom},{x:r.left,y:r.bottom}]),side:"bottom"},p={point:$U(n,[{x:r.left,y:r.bottom},{x:r.left,y:r.top}]),side:"left"};return[c,u,d,p].filter(m=>m.point!==!1)}function EH(n,r){for(const c of Object.values(r))if(kPe(n,c).length)return!0;return!1}function Czn(n,r){const c=n.map(r),u=Math.min(...c);return n[c.findIndex(d=>d===u)]}function u7(n){return n.map(([r,...c])=>[r,...c.map(u=>typeof u=="number"?u:`${u.x},${u.y}`)].join(" ")).join(" ")}function Izn(n,r=10){const c=[],u=[],d=[];for(const p of n){const[m]=p;["L","H","V"].includes(m)||d.length>1&&(c.push([...d]),d.length=0),d.push(p)}d.length>1&&c.push([...d]);for(const p of c){const m=p.map(([,k])=>k),x=Tzn(Azn(m)),E=[p[0]];x.forEach((k,T,P)=>{if(T>=2&&T<=P.length-2&&Pzn(P[T-1],k,P[T+1])){const{p1:I,p2:O,p:N}=Ozn(P[T-1],k,P[T+1],r);E.push(["L",I],["C",I,N,O])}else T>0&&E.push(["L",k])}),u.push(...E)}return u}function Tzn(n){const r=[];return n.forEach((c,u)=>{const[d,p,m]=[c,n[u+1],n[u+2]];if(!m||!p){r.push(d);return}const x={x:d.x+(p.x-d.x)/2,y:d.y+(p.y-d.y)/2};r.push(d,x)}),r}function Azn(n){const r=new Set,c=[];return n.forEach((u,d)=>{const p=n[d-1],m=n[d+1];if((p==null?void 0:p.x)===u.x&&u.x===(m==null?void 0:m.x)||(p==null?void 0:p.y)===u.y&&u.y===(m==null?void 0:m.y))return;const x=`${u.x}|${u.y}`;r.has(x)||c.push(u)}),c}function Pzn(n,r,c){return!(n.x===r.x&&c.x===r.x||n.y===r.y&&c.y===r.y)}const e7t=(n,r)=>({type:"vector",x:r.x-n.x,y:r.y-n.y}),t7t=n=>{let r=n.x*n.x+n.y*n.y;return r=Math.sqrt(r),{type:"vector",x:n.x/r,y:n.y/r}},Ozn=(n,r,c,u=10)=>{const d=e7t(r,n),p=e7t(r,c),m=Math.hypot(d.x,d.y),x=Math.hypot(p.x,p.y);if(m*x===0)return{p1:r,p2:r,p:r};const E=Math.min(u,m-.1,x-.1),k=t7t(d),T=t7t(p),P={x:r.x+k.x*E,y:r.y+k.y*E},I={x:r.x+T.x*E,y:r.y+T.y*E};return{p1:P,p2:I,p:r}},CPe={left:"right",right:"left",top:"bottom",bottom:"top"};function Wce(n){return new Z0(n,n.side)}function sS(n){const r=Math.min(...n.map(p=>p.left)),c=Math.max(...n.map(p=>p.right)),u=Math.min(...n.map(p=>p.top)),d=Math.max(...n.map(p=>p.bottom));return new Du({left:r,right:c,top:u,bottom:d})}const _zn=n=>n.width>0&&n.height>0,Mzn=n=>jzn(n.center,144,49),Dzn=(n,r)=>{const c=[n.center,r.center],u=kPe(c,n)[0],d=kPe(c,r)[0];return!u||!d?Nzn(c[0],c[1]):new Du([u.point,d.point]).center};function Nzn(n,r){return{x:(n.x+r.x)/2,y:(n.y+r.y)/2}}function LU(n,r,c){if(!(n.dy===0&&(n.yr.bottom))&&!(n.dx===0&&(n.xr.right))){if(n.dx>0&&n.xr.right&&c.includes("right"))return{x:r.right,y:n.y,side:"right"};if(n.dy>0&&n.yr.bottom&&c.includes("bottom"))return{x:n.x,y:r.bottom,side:"bottom"}}}class Du{toJSON(){const{top:r,left:c,bottom:u,right:d,width:p,height:m,x,y:E}=this;return{top:r,left:c,bottom:u,right:d,width:p,height:m,x,y:E}}constructor(r){if(Array.isArray(r)){const c=Math.min(r[0].x,r[1].x),u=Math.max(r[0].x,r[1].x)-c,d=Math.min(r[0].y,r[1].y),p=Math.max(r[0].y,r[1].y)-d;this.top=d,this.left=c,this.width=u,this.right=this.left+this.width,this.height=p,this.bottom=this.top+this.height,this.x=this.left,this.y=this.top}else this.top="top"in r?r.top:"y"in r?r.y:r.bottom-r.height,this.left="left"in r?r.left:"x"in r?r.x:r.right-r.width,this.bottom="bottom"in r?r.bottom:this.top+r.height,this.right="right"in r?r.right:this.left+r.width,this.width=this.right-this.left,this.height=this.bottom-this.top,this.x=this.left,this.y=this.top}point(r,c,u){const d={x:0,y:0,...u};switch(r){case"left":d.x=this.left;break;case"right":d.x=this.right;break;case"center":d.x=this.left+this.width/2;break}switch(c){case"top":d.y=this.top;break;case"bottom":d.y=this.bottom;break;case"center":d.y=this.top+this.height/2;break}return d}get center(){return{x:this.left+this.width/2,y:this.top+this.height/2}}centerSide(r,c=0){switch(r){case"left":return new Z0({x:this.left-c,y:this.center.y},"left");case"right":return new Z0({x:this.right+c,y:this.center.y},"right");case"top":return new Z0({x:this.center.x,y:this.top-c},"top");case"bottom":return new Z0({x:this.center.x,y:this.bottom+c},"bottom")}}relativeSide(r,c){switch(r){case"left":case"right":return{side:r,x:this[r],y:this.y+this.height*c};case"top":case"bottom":return{side:r,x:this.x+this.width*c,y:this[r]}}}getRelativeSidePoint(r){const{side:c}=r;switch(c){case"left":case"right":{const u=this.height===0?.5:(r.y-this.y)/this.height;return{side:c,percent:u}}case"top":case"bottom":{const u=this.width===0?.5:(r.x-this.x)/this.width;return{side:c,percent:u}}}}sideSegment(r){switch(r){case"left":return[{x:this.left,y:this.top},{x:this.left,y:this.bottom}];case"right":return[{x:this.right,y:this.top},{x:this.right,y:this.bottom}];case"top":return[{x:this.left,y:this.top},{x:this.right,y:this.top}];case"bottom":return[{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}];default:throw new Error("Invalid side")}}equals(r){return["top","left","bottom","right"].every(c=>r[c]===this[c])}translate(r,c){return new Du({left:this.left+r,top:this.top+c,width:this.width,height:this.height})}moveTo(r){return new Du({left:r.x,top:r.y,width:this.width,height:this.height})}expand(r){const c=typeof r=="number"?r:r.dx,u=typeof r=="number"?r:r.dy;return new Du({left:this.left-c,right:this.right+c,top:this.top-u,bottom:this.bottom+u})}getBox(){return[{x:this.left,y:this.top},{x:this.right,y:this.bottom}]}contains(r,c=0){return r.x>=this.left-c&&r.x<=this.right+c&&r.y>=this.top-c&&r.y<=this.bottom+c}containsRect(r){return r.right>this.left&&r.leftthis.top&&r.topn,CS=n=>n,Z$t=n=>n,l7=n=>n;function Zx({x:n,y:r},c){const u=c.getScreenCTM();return aS(u?{x:(n-u.e)/u.a,y:(r-u.f)/u.d}:{x:0,y:0})}function n7t(n,r){const c=Zx(CS({x:0,y:0}),r),u=Zx(CS(n),r);return Z$t({x:u.x-c.x,y:u.y-c.y})}function jx(n,r){return r?Zx(CS({x:n.clientX,y:n.clientY}),r):{x:n.clientX,y:n.clientY}}function ZDe(n,r){if(!r)return new Du(n);const c=CS({x:n.left,y:n.top}),u=CS({x:n.right,y:n.bottom}),d=Zx(c,r),p=Zx(u,r);return new Du({left:d.x,right:p.x,top:d.y,bottom:p.y})}function J$t(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}const u7e=(n,r)=>n.leftr.left&&n.topr.top,rS=lN({session:null,ref:null,listenerOptions:{}},{events:{PRESS_SESSION_STARTED:({pointerId:n,point:r})=>({pointerId:n,point:r}),PRESS_SESSION_STOPPED:()=>({}),PRESS_POINT_MOVED:({point:n})=>({point:n})}}),r7t=rS.createMachine({preserveActionOrder:!0,initial:"check_session_data",states:{check_session_data:{always:[{cond:n=>!!n.session,target:"active",actions:yH(n=>rS.events.PRESS_SESSION_STARTED(n.session))},"idle"]},idle:{invoke:{id:"pressSessionStartedListener",src:({ref:n,listenerOptions:r})=>c=>{const u=n.current;if(!!u)return Il.bind(u,{type:"pointerdown",listener:d=>{if(jU(d))return;d.button===0&&c(rS.events.PRESS_SESSION_STARTED({pointerId:d.pointerId,point:{x:d.pageX,y:d.pageY}}))},options:r})}},on:{PRESS_SESSION_STARTED:{target:"active",actions:w9t(Iv.Parent)}}},active:{entry:["setSessionData"],exit:["releasePointer","clearSessionData"],invoke:{id:"pressSessionListeners",src:({ref:n,session:r,listenerOptions:c})=>u=>{const d=n.current;return Il.bindAll(d,[{type:"pointermove",listener:p=>{jU(p)||p.pointerId===r.pointerId&&(d.hasPointerCapture(p.pointerId)||d.setPointerCapture(p.pointerId),u(rS.events.PRESS_POINT_MOVED({point:{x:p.pageX,y:p.pageY}})))}},{type:"pointerup",listener:p=>{jU(p)||p.pointerId===r.pointerId&&(u(rS.events.PRESS_POINT_MOVED({point:{x:p.pageX,y:p.pageY}})),u(rS.events.PRESS_SESSION_STOPPED()))}},{type:"pointercancel",listener:p=>{jU(p)||p.pointerId===r.pointerId&&u(rS.events.PRESS_SESSION_STOPPED())}}],c)}},on:{PRESS_POINT_MOVED:{actions:["sendPointDelta","updatePoint"]},PRESS_SESSION_STOPPED:{target:"idle",actions:w9t(Iv.Parent)}}}}},{actions:{releasePointer:({ref:n,session:r})=>n.current.releasePointerCapture(r.pointerId),setSessionData:Ji({session:(n,r)=>"pointerId"in r&&r.point?{pointerId:r.pointerId,point:r.point}:n.session}),clearSessionData:Ji({session:null}),updatePoint:Ji({session:(n,r)=>({...n.session,point:r.point})}),sendPointDelta:yH((n,r)=>({type:"POINTER_MOVED_BY",vector:l7({x:r.point.x-n.session.point.x,y:r.point.y-n.session.point.y})}))}});var zzn=function n(r,c){if(r===c)return!0;if(r&&c&&typeof r=="object"&&typeof c=="object"){if(r.constructor!==c.constructor)return!1;var u,d,p;if(Array.isArray(r)){if(u=r.length,u!=c.length)return!1;for(d=u;d--!==0;)if(!n(r[d],c[d]))return!1;return!0}if(r.constructor===RegExp)return r.source===c.source&&r.flags===c.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===c.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===c.toString();if(p=Object.keys(r),u=p.length,u!==Object.keys(c).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(c,p[d]))return!1;for(d=u;d--!==0;){var m=p[d];if(!n(r[m],c[m]))return!1}return!0}return r!==r&&c!==c};const el=24,Yf=new Du({x:0,y:0,width:el*5,height:el*2}),Ise=new Du({x:0,y:0,width:el*4,height:el*2});function Gce(n){return{x:n.currentRects.children.left+IPe.left,y:n.currentRects.children.bottom+IPe.bottom}}function eLt(){return Math.random().toString(36).slice(2)}const IPe={top:el*2,right:el*2,bottom:el*2,left:el*2};class Ju{constructor(r,c,u){var d,p;this.config=r,this.graph=c,this.parent=u,this.nodes=[],this.delta={dx:0,dy:0},this.uniqueId=eLt(),this.isHighlighted=!1,this.data={...r.data,type:r.data.type?r.data.type:"normal"},this.invocations=r.data.invoke.map(m=>({src:m.src,internalUniqueId:m.id,userIdOverride:nfe(m.id)?m.id:void 0,jsImplementation:m.jsImplementation}))||[],this._position=(d=r.position)!=null?d:u?Gce(u):{x:0,y:0},this.graph=c,this.layoutStatus=u&&!r.position?"needs-layout":"done",this.labelSize=(p=r.size)!=null?p:{height:0,width:0},this.calculateRects(),this.config.nodes.forEach(m=>{this.addNode(m)}),this.calculateRects()}get labelRect(){const{x:r,y:c}=this.position,u=r+this.delta.dx,d=c+this.delta.dy,{width:p,height:m}=this.labelSize;return new Du({left:u,top:d,width:p,height:m})}getSelfRect(r){const{labelRect:c}=this;return new Du({x:c.x,y:c.y,width:Math.max(c.width,r.width),height:c.height})}get depth(){return this.parent?this.parent.depth+1:0}get position(){if(!this.nodes.length)return this._position;const r=this.getChildrenBounds();return{x:r.left,y:r.top-this.labelSize.height}}get edges(){return this.graph.snapshot.getNodeEdges(this)}calculateRects(){const r=Uzn(this);this._rects={label:this.labelRect,self:this.getSelfRect(r),children:this.getChildrenBounds(),family:r}}get currentRects(){return{label:this._rects.label.translate(this.delta.dx,this.delta.dy),self:this._rects.self.translate(this.delta.dx,this.delta.dy),children:this._rects.children.translate(this.delta.dx,this.delta.dy),family:this._rects.family.translate(this.delta.dx,this.delta.dy)}}getIntersectingRect(r){const{x:c,y:u}=r;for(const d of["label","family"]){const p=this.currentRects[d];if(c>=p.left&&c<=p.right&&u>=p.top&&u<=p.bottom)return{rectKey:d,rect:p}}}getChildrenBounds(r){const c=this.getContainedEdges().filter(k=>!(k.source===this&&k.target===this));if(!this.nodes.length&&!c.length)return new Du({left:this._position.x,right:this._position.x,top:this.labelRect.bottom,bottom:this.labelRect.bottom,width:0,height:0});const u={padding:IPe,...r};let d=sS(this.nodes.map(k=>k.currentRects.family));c.length&&(d=sS([d,sS(c.map(k=>k.getBounds()))]));const p=d.top-u.padding.top,m=d.bottom+u.padding.bottom,x=d.left-u.padding.left,E=d.right+u.padding.right;return new Du({top:p,bottom:m,left:x,right:E})}getSerialisableId(){return this.parent?`${this.parent.getSerialisableId()}.${this.data.key}`:this.data.key}addNode(r){const c=new Ju(r,this.graph,this);return this.calculateRects(),this.nodes.push(c),c}getContainedEdges(){return this.graph.snapshot.edges.filter(r=>r.containingNode===this)}getTargetEdges(){return this.graph.snapshot.edges.filter(r=>r.target===this)}getSourceAndTargetEdges(){return this.graph.snapshot.edges.filter(r=>r.getNodeSource()===this||r.target===this)}toJSON(){return{id:this.getSerialisableId(),rect:this.labelRect,data:this.data,nodes:this.nodes,position:this.position,size:this.labelSize}}isAncestorOf(r){let c=r.parent;for(;c;){if(c===this)return!0;c=c.parent}return!1}findBestSiblingPosition(r,c){const u=el*5,d=el*3,p=this._rects.family,m=c instanceof Ju?{width:el*7,height:el*3}:{width:el*4,height:el*2},x=Y$t[r],E=this.parent?this.parent.nodes.concat(this.parent.getContainedEdges()):[];function k(P){return P instanceof Ju?P._rects.family:P.getFamilyRect()}const T=E.filter(P=>P!==c).map(k);if(["top","bottom"].includes(r)){const{axis:P,crossAxis:I}=x,O=T.filter(L=>L.topp.bottom+d*x.y);if(!O.length)return{[I]:this.position.x,[P]:p[r]+d*x[P]};const N=sS(O),j=Math.abs(p.left-N.left)j.leftp.right+u*x.x);if(!P.length)return{y:this.position.y,x:p[r]+u*x.x};const I=sS(P),O=Math.abs(p.top-I.top)Xo(u.data.eventTypeData,r)).sort((u,d)=>u.getEdgeGroupIndex()-d.getEdgeGroupIndex());if(!!c.length)return c}getAppendantSourceFor(r){const c=this.getEdgeGroupFor(r);return c?eUn(c):this}}function _ae(n){const r=[];let c=n.parent;for(;c;)r.push(c),c=c.parent;return r}function tLt(n){return n.nodes.flatMap(r=>[r].concat(tLt(r)))}function Uzn(n){if(!n.nodes.length)return n.labelRect;const r=n.getChildrenBounds();return sS([r,n.labelRect])}function i7t(n,r,c=el){return r.some(u=>u.leftn.left-c&&u.topn.top-c)}function Hzn(n,r){const c=n.currentRects.family,d=(n.parent?n.parent.nodes.concat(n.parent.getContainedEdges()):[]).filter(T=>T!==n).map(qzn),p=el,m=Y$t[r],x=d.filter(T=>{switch(r){case"top":return T.topc.bottom;case"left":return T.leftc.right}}),k={top:aS({x:c.center.x-Yf.width/2,y:c.top-Yf.height-Ise.height*2}),right:aS({x:c.right+Ise.width*2,y:c.center.y-Yf.height/2}),bottom:aS({x:c.center.x-Yf.width/2,y:c.bottom+Ise.height*2}),left:aS({x:c.left-Yf.width-Ise.width*2,y:c.center.y-Yf.height/2})}[r];if(!i7t(c.moveTo(k),x))return k;x.sort((T,P)=>m.axis==="y"?Math.abs(T.center.x-c.center.x)-Math.abs(P.center.x-c.center.x):Math.abs(T.center.y-c.center.y)-Math.abs(P.center.y-c.center.y));for(const T of x){const P=m.axis==="x"?[Yf.moveTo({x:k.x,y:T.y-Yf.height-p}),Yf.moveTo({x:k.x,y:T.y+T.height+p}),Yf.moveTo({x:r==="left"?T.x-p:T.x+T.width+p,y:k.y})]:[Yf.moveTo({x:T.x-Yf.width-p,y:k.y}),Yf.moveTo({x:T.x+T.width+p,y:k.y}),Yf.moveTo({x:k.x,y:r==="top"?T.y-p:T.y+T.height+p})];for(const I of P)if(!i7t(I,x))return I.position}return aS({x:0,y:0})}function qzn(n){return n instanceof Ju?n._rects.family:n.getFamilyRect()}function Wzn(n,r){var d;if(n===r)return(d=n.parent)!=null?d:n;const c=new Set([n]);let u=n.parent;for(;u;)c.add(u),u=u.parent;for(u=r;u;){if(c.has(u))return u;u=u.parent}return n.graph.snapshot.root}const Gzn=n=>n.test(globalThis.navigator.platform),Xzn=()=>Gzn(/^Mac/),xq=n=>Xzn()?n.metaKey:n.ctrlKey,Kzn=n=>n.type==="email"||n.type==="password"||n.type==="search"||n.type==="tel"||n.type==="text"||n.type==="url",Yzn=n=>!!n&&(/svg/i.test(n.tagName)||!!n.ownerSVGElement),fN=n=>n.tagName==="INPUT"&&Kzn(n)||n.tagName==="TEXTAREA"||!Yzn(n)&&n.isContentEditable,nLt=n=>{const r=n.getAttribute("role");if(r)return r.split(" ").filter(Boolean);switch(n.tagName){case"BUTTON":return["button"];case"SELECT":{const c=n.getAttribute("multiple"),u=n.getAttribute("multiple");return c&&u&&parseInt(u)>1?["listbox"]:["combobox"]}case"INPUT":switch(n.type){case"button":case"image":case"reset":case"submit":return["button"];case"checkbox":return["checkbox"];case"email":case"search":case"tel":case"text":case"url":return n.getAttribute("list")?["combobox"]:["textbox"];case"number":return["spinbutton"];case"radio":return["radio"];case"range":return["slider"];default:return[]}case"TEXTAREA":return["textbox"];default:return[]}},Tse=n=>{if(fN(n))return!0;if(n.tagName==="INPUT")return n.type==="range";const r={button:!0,combobox:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,radio:!0,radiogroup:!0,tab:!0,textbox:!0,treeitem:!0,tree:!0};return nLt(n).some(c=>r[c])},TPe=n=>n.tagName==="INPUT"||fN(n)||nLt(n).includes("button");function o7t(n,r){n.splice(n.indexOf(r),1)}function Xo(n,r){return zzn(n,r)}function MD(n,r){return n.join()===r.join()}const s7t=new WeakMap,JDe=n=>{if(n.status!==0)return n.state;const r=s7t.get(n);if(r)return r;const c=n.machine.initialState;return s7t.set(n,c),c},Jh=n=>n.userIdOverride||n.internalUniqueId,rLt=n=>n.button===2,Qzn=n=>typeof n=="object"&&n!==null&&"message"in n&&typeof n.message=="string",Zzn=n=>new Promise(r=>setTimeout(r,n)),iLt=(n,r)=>{let c;return(...u)=>{clearTimeout(c),c=setTimeout(()=>{n(...u)},r)}};function Jzn(n){if(n===0)return"0 ms";n<0&&(n=-n);const r={years:12*4*7*1e3*60*60*24,months:4*7*1e3*60*60*24,weeks:7*1e3*60*60*24,days:1e3*60*60*24,hrs:1e3*60*60,min:1e3*60,sec:1e3,ms:1};let c="ms";for(const d in r)if(n>=r[d]){c=d;break}return`${Math.round((n/r[c]+Number.EPSILON)*100)/100} ${c}`}function Xce(n){const r=typeof n=="number"?n:+n.replace(/_/g,"");return typeof n=="number"||!isNaN(r)?`${Jzn(r)}`:n}function Bx(n){return!!n.jsImplementation}function f7(n){return(n==null?void 0:n.type)==="xstate.assign"&&(n==null?void 0:n.assignment)&&Object.entries(n.assignment).length>0}const oLt=n=>{const r=["after","always","wildcard","named"],c=n.getNodeSource(),u=c.data.type==="parallel";return(c.nodes.some(p=>p.data.type==="final")||u)&&r.push("state.done"),c.invocations.length>0&&r.push("invocation.done","invocation.error"),r},Ix=n=>n instanceof Ju?n:n.getNodeSource();function eUn(n){return n[n.length-1]}function sLt(n){const r=new Map;for(const c of n){const u=c.id.match(/^(.+)\[(\d+)\]$/);if(!u){console.error("Invalid edge id",c.id);continue}const[,d,p]=u;let m=r.get(d);m||(m=[],r.set(d,m)),m.push({edgeConfig:c,index:parseInt(p,10)})}for(const c of r.values())c.sort(({index:u},{index:d})=>u-d);return[...r].map(([,c])=>c.map(({edgeConfig:u})=>u))}const aLt=(n,r)=>r.width/n.width;class DD{constructor(r,c){var x;const{minX:u,minY:d,width:p,height:m}=r;this.minX=u,this.minY=d,this.width=p,this.height=m,this.initial=(x=c!=null?c:r.initial)!=null?x:{minX:u,minY:d,width:p,height:m}}toJSON(){return{minX:this.minX,minY:this.minY,width:this.width,height:this.height,initial:this.initial}}get zoom(){return aLt(this,this.initial)}toString(){return`${this.minX} ${this.minY} ${this.width} ${this.height}`}getCenter(){return APe(this)}getZoomedOutViewBox(){return this.zoomTo(1)}zoomTo(r,c=this.getCenter()){return new DD(tUn(this,{zoom:r,zoomPoint:c},this.initial),this.initial)}move(r){return this.update({minX:this.minX+r.dx,minY:this.minY+r.dy,width:this.width,height:this.height})}zoomToRect(r,c){const u=r,d=u.width/u.height,p=c.width/c.height,m=J$t(u),x=this.zoom,E=this.getCenter(),k=this.move({dx:-(this.getCenter().x-m.x),dy:-(this.getCenter().y-m.y)});let T=(d>p?c.width*x/u.width:c.height*x/u.height)*.9;T=Math.min(T,1);const P=-c.center.x+E.x,I=-c.center.y+E.y;return k.zoomTo(T).move({dx:P,dy:I})}update(r){return new DD(r,this.initial)}}const APe=n=>J$t({x:n.minX,y:n.minY,width:n.width,height:n.height}),tUn=(n,{zoom:r,zoomPoint:c=APe(n)},u)=>{const d=r/aLt(n,u),p=u.width/r,m=u.height/r,x=APe(n),E=Z$t({x:c.x-x.x,y:c.y-x.y});return{minX:n.minX+E.x+(n.width-n.width/d)/2-E.x/d,minY:n.minY+E.y+(n.height-n.height/d)/2-E.y/d,width:p,height:m}},Ase=10,Pse=[.1,.13,.25,.5,.75,1,1.25,1.5,2,4,8,10],mb=lN({ref:{current:null},viewBox:QDe,persistedViewBox:void 0,selectionBox:null,graphActor:{}},{events:{select_all_nodes_and_events:()=>({}),fit_to_content:n=>({nodeId:n}),"viewbox.move":n=>({vector:n}),"zoom.set":(n,r)=>({value:n,origin:r}),"zoom.in":()=>({}),"zoom.out":()=>({}),"selection.start":n=>({point:n}),"selection.move":()=>({}),"selection.end":()=>({}),PRESS_SESSION_STARTED:({pointerId:n,point:r})=>({pointerId:n,point:r}),PRESS_SESSION_STOPPED:()=>({}),POINTER_MOVED_BY:({vector:n})=>({vector:n}),ENABLE_PANNING:(n=null)=>({sessionSeed:n}),DISABLE_PANNING:()=>({}),WHEEL_PRESSED:n=>({pressSession:n}),WHEEL_RELEASED:()=>({}),SPACEBAR_PRESSED:()=>({}),SPACEBAR_RELEASED:()=>({}),ENABLE_PAN_MODE:()=>({}),DISABLE_PAN_MODE:()=>({}),SET_VIEWBOX_SIZE:(n,r)=>({width:n,height:r})}}),Sq=mb.createMachine({id:"canvasInteractionsMachine",preserveActionOrder:!0,context:mb.initialContext,invoke:[{src:iUn},{src:rUn},{src:nUn}],type:"parallel",states:{mode:{initial:"selectable",states:{selectable:{invoke:{id:"selectionTracker",src:n=>r7t.withContext({...rS.initialContext,ref:n.ref})},initial:"idle",states:{idle:{on:{PRESS_SESSION_STARTED:"active"}},active:{entry:[Ji({selectionBox:(n,r)=>{const c=r,u=Zx(CS({x:c.point.x,y:c.point.y}),n.ref.current);return[u,u]}}),yH(n=>({type:"selectionBox.change",selectionBox:n.selectionBox}))],exit:[Ji({selectionBox:null}),yH(()=>({type:"selectionBox.change",selectionBox:null}))],on:{POINTER_MOVED_BY:{actions:[Ji({selectionBox:(n,r)=>{const c=n7t(r.vector,n.ref.current);return[n.selectionBox[0],aS({x:n.selectionBox[1].x+c.x,y:n.selectionBox[1].y+c.y})]}}),yH(n=>({type:"selectionBox.change",selectionBox:n.selectionBox}))]},PRESS_SESSION_STOPPED:{target:"idle"}}}}},pannable:{invoke:{id:"panTracker",src:(n,r)=>r7t.withContext({...rS.initialContext,ref:n.ref,session:r.type==="ENABLE_PANNING"?r.sessionSeed:r.pressSession,listenerOptions:{capture:!0}})},initial:"idle",states:{idle:{tags:"grab",on:{PRESS_SESSION_STARTED:"active"}},active:{tags:"grabbing",initial:"grabbed",on:{PRESS_SESSION_STOPPED:".done"},states:{grabbed:{on:{POINTER_MOVED_BY:{target:"dragging",actions:"moveViewbox"}}},dragging:{on:{POINTER_MOVED_BY:{actions:"moveViewbox"}}},done:{type:"final"}},onDone:"idle"}}}},on:{ENABLE_PANNING:".pannable",DISABLE_PANNING:".selectable"}},panSwitcher:{initial:"lockable",states:{lockable:{initial:"released",states:{released:{invoke:{id:"panTriggerListener",src:n=>r=>{const c=n.ref.current;if(!c)return;const u=Il.bind(c,{type:"pointerdown",listener:p=>{p.button===1&&r(mb.events.WHEEL_PRESSED({pointerId:p.pointerId,point:CS({x:p.pageX,y:p.pageY})}))},options:{capture:!0}}),d=Il.bind(window,{type:"keydown",listener:p=>{const m=p.target;p.code==="Space"&&!TPe(m)&&r(mb.events.SPACEBAR_PRESSED())}});return()=>{u(),d()}}},on:{SPACEBAR_PRESSED:"spacebarPressed",WHEEL_PRESSED:"wheelPressed"}},spacebarPressed:{entry:q9(mb.events.ENABLE_PANNING()),exit:q9(mb.events.DISABLE_PANNING()),on:{SPACEBAR_RELEASED:"released"},invoke:{src:()=>n=>Il.bind(window,{type:"keyup",listener:r=>{r.code==="Space"&&n(mb.events.SPACEBAR_RELEASED())}})}},wheelPressed:{entry:q9((n,r)=>mb.events.ENABLE_PANNING(r.pressSession)),exit:q9(mb.events.DISABLE_PANNING()),on:{PRESS_SESSION_STOPPED:"released"}}},on:{ENABLE_PAN_MODE:"pan"}},pan:{entry:q9(mb.events.ENABLE_PANNING()),exit:q9(mb.events.DISABLE_PANNING()),on:{DISABLE_PAN_MODE:"lockable"}}}}},on:{SET_VIEWBOX_SIZE:{actions:[Ji((n,r)=>{const c=r.width-n.viewBox.width,u=r.height-n.viewBox.height,d=n.viewBox.zoom,p={...n.viewBox.initial,width:r.width,height:r.height};return{viewBox:new DD({minX:n.viewBox.minX-c/2,minY:n.viewBox.minY-u/2,width:r.width,height:r.height,initial:p}).zoomTo(d),initialViewBox:p}}),cBn([{cond:n=>!n.persistedViewBox,actions:wH({type:"fit_to_content"})}])]},fit_to_content:{actions:Ji((n,r)=>{const c=n.ref.current,{nodeId:u}=r,d=u?n.graphActor.snapshot.getNodeByUniqueId(u):n.graphActor.snapshot.root;if(!d)return n;const p=d.currentRects.family,m=c.parentElement,x=ZDe(m.getBoundingClientRect(),c);return{viewBox:n.viewBox.zoomToRect(p,x)}})},select_all_nodes_and_events:{actions:n=>n.graphActor.send({type:"selectAll"})},"viewbox.move":{actions:"moveViewbox"},"zoom.set":{actions:mb.assign({viewBox:(n,r)=>n.viewBox.zoomTo(r.value,aS(r.origin))})},"zoom.in":{cond:n=>!!n.ref.current&&n.viewBox.zoom<10,actions:Ji(n=>{var u;const r=n.viewBox.zoom,c=(u=Pse.find((d,p)=>d>r&&Pse[p-1]<=r))!=null?u:r;return{viewBox:n.viewBox.zoomTo(c)}})},"zoom.out":{cond:n=>!!n.ref.current&&n.viewBox.zoom>.1,actions:Ji(n=>{var u;const r=n.viewBox.zoom,c=(u=Pse.find((d,p)=>d=r))!=null?u:r;return{viewBox:n.viewBox.zoomTo(c)}})}}},{actions:{moveViewbox:Ji({viewBox:(n,r)=>{if(r.type!=="POINTER_MOVED_BY"&&r.type!=="viewbox.move")return n.viewBox;const c=n7t(r.vector,n.ref.current);return n.viewBox.move({dx:-c.x,dy:-c.y})}})}});function nUn(){return n=>Il.bind(window,{type:"keydown",options:{capture:!0},listener:r=>{const c=r.target;if(fN(c))return;const u=d=>{r.preventDefault(),r.stopPropagation(),n(d)};switch(r.key){case"ArrowUp":if(Tse(c))return;u({type:"viewbox.move",vector:Cse.mul(l7({x:0,y:-Ase}),r.shiftKey?5:1)});return;case"ArrowLeft":if(Tse(c))return;u({type:"viewbox.move",vector:Cse.mul(l7({x:-Ase,y:0}),r.shiftKey?5:1)});return;case"ArrowDown":if(Tse(c))return;u({type:"viewbox.move",vector:Cse.mul(l7({x:0,y:Ase}),r.shiftKey?5:1)});return;case"ArrowRight":if(Tse(c))return;u({type:"viewbox.move",vector:Cse.mul(l7({x:Ase,y:0}),r.shiftKey?5:1)});return;case"+":case"=":{if(xq(r)||r.shiftKey)return;u({type:"zoom.in"});return}case"-":if(xq(r)||r.shiftKey)return;u({type:"zoom.out"});return;case"0":case")":if(!r.shiftKey)return;u({type:"zoom.set",value:1,origin:{x:0,y:0}});return;case"1":case"!":if(!r.shiftKey)return;u({type:"fit_to_content"});return}}})}function rUn(n){function r(c){return!fN(c)}return()=>Il.bindAll(document,[{type:"copy",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"selection.copy",clipboardEvent:c}),c.preventDefault())}},{type:"cut",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"selection.cut",clipboardEvent:c}),c.preventDefault())}},{type:"paste",listener:c=>{const u=c.target;!r(u)||(n.graphActor.send({type:"paste",clipboardEvent:c}),c.preventDefault())}}])}function iUn(n){return()=>Il.bind(window,{type:"keydown",listener:r=>{if(r.currentTarget&&!fN(r.target)&&r.target.tagName!=="BUTTON")switch(r.key){case"Escape":n.graphActor.send({type:"interact.cancel"});break;case"Enter":n.graphActor.send({type:"interact.enter"});break}}})}var oUn=U.exports.useLayoutEffect,sUn=function(r){var c=U.exports.useRef(r);return oUn(function(){c.current=r}),c};const eNe=n=>"export default "+n,cLt=n=>n.replace(/^export default (.*)$/m,"$1");function aUn(n){const r=sUn(n);return U.exports.useCallback((...c)=>r.current(...c),[r])}const cUn=n=>{switch(!0){case/^\{.*\}$/m.test(n.trim()):return"object";case/^\[.*\]$/m.test(n.trim()):return"array";case["true","false"].includes(n.trim()):return"boolean";case n.trim()==="null":return"unknown";case(n!==""&&!isNaN(Number(n))):return"number";default:return"string"}};function uUn(n,r){return Object.values(n).reduce((c,u)=>({...c,[u.key]:r?u.expression.replace(/"/g,""):u.expression}),{})}const Eq=n=>n.replace(/^"(.*)"$/,"$1"),uLt=n=>n.replace(/^{\n(.*)}$/s,"$1"),kq=n=>`"${Eq(n)}"`,lUn=n=>n.type==="string"&&n.isLiteral?kq(n.expression):n.expression;function afe(n){return`{${Object.entries(n).map(([,r])=>`${kq(r.key)}: ${lUn(r)}`).join(`, +`)}}`}const fUn=n=>{switch(n){case"string":case"number":case"boolean":case"array":case"object":return n;default:return"unknown"}};function dUn(n,r,c){return{uid:WDe(),key:n,type:c,expression:r,isNull:r==="null",value:null,isLiteral:!0}}function a7t(n,r){return{uid:WDe(),key:n,type:fUn(r.type),value:null,expression:r.text,isNull:r.type==="unknown",isLiteral:r.isLiteral}}function lLt(n){switch(n){case"array":return"[]";case"object":return"{}";case"boolean":return"false";case"number":return"0";case"string":return"";case"unknown":return"null";default:throw Error("Unhandled expression type")}}const hUn=n=>r=>!n||!n[r]?null:n[r],pUn={array:"Arr",object:"Obj",boolean:"Bool",number:"Num",string:"Str",unknown:"?"},gUn=n=>pUn[n];function fLt(n,r){const{[r]:c,...u}=n;return u}function tNe(n,r=JSON.parse){const c=new $$t(n);function u(p,m,x=0){var j;const E={};p.nodes.forEach($=>{E[$.data.key]=u($,null,x+1)});const k={},T={};let P,I;const O=p.data.invoke.map($=>({src:$.src,id:$.id}));return n.edges.filter($=>$.source===p.id).forEach($=>{var B,F,X;const L={target:`#${$.target}`,cond:(B=$.data.guard)==null?void 0:B.type,actions:$.data.actions.map(te=>f7(te)?tk(te):te.type),description:$.data.description,meta:$.data.metaEntries?Object.fromEntries($.data.metaEntries):void 0};if(Object.assign(L,c.printXStateTargetAndInternal($.source,{...$.data,target:$.target})),$.data.eventTypeData.type==="named"){const te=$.data.eventTypeData.eventType;k[te]||(k[te]=[]),k[te].push(ph(L));return}if($.data.eventTypeData.type==="after")T[$.data.eventTypeData.delay]||(T[$.data.eventTypeData.delay]=[]),T[$.data.eventTypeData.delay].push({target:`#${$.target}`,cond:(F=$.data.guard)==null?void 0:F.type,actions:$.data.actions.map(te=>f7(te)?tk(te):te.type),description:$.data.description,meta:$.data.metaEntries?Object.fromEntries($.data.metaEntries):void 0,internal:$.data.internal});else if("invocationId"in $.data.eventTypeData){const te=$.data.eventTypeData.invocationId,Z=O.findIndex(H=>H.id===te);if(Z!==-1){const H=O[Z];$.data.eventTypeData.type==="invocation.done"?(H.onDone||(H.onDone=[]),H.onDone.push(ph(L))):$.data.eventTypeData.type==="invocation.error"&&(H.onError||(H.onError=[]),H.onError.push(ph(L)))}}else $.data.eventTypeData.type==="state.done"?(P=P!=null?P:[],P==null||P.push(ph(L))):$.data.eventTypeData.type==="always"?(I=I!=null?I:[],I==null||I.push(ph(L))):$.data.eventTypeData.type==="wildcard"&&(k["*"]=(X=k["*"])!=null?X:[],k["*"].push(ph(L)))}),ph({...x===0&&{id:p.id,context:m?r(m):{}},description:(j=p.data.description)!=null?j:void 0,meta:p.data.metaEntries?Object.fromEntries(p.data.metaEntries):void 0,entry:p.data.entry.map($=>f7($)?tk($):$.type),exit:p.data.exit.map($=>f7($)?tk($):$.type),invoke:O.map($=>({...$,id:nfe($.id)?$.id:void 0})),after:ph(T),tags:p.data.tags.map($=>$.tag),initial:p.data.initial,states:E,always:I,on:ph(k),history:p.data.type!=="history"?void 0:p.data.history,type:p.data.type,onDone:P})}return{config:u(n.rootNode,n.context)}}function nNe(n){return{id:n.getSerialisableId(),data:{eventTypeData:n.data.eventTypeData,guard:n.data.guard,actions:n.data.actions,description:n.data.description,internal:n.data.internal,metaEntries:n.data.metaEntries},source:n.getNodeSource().getSerialisableId(),target:n.target.getSerialisableId(),position:n.position,size:n.size}}const cfe=n=>({id:n.getSerialisableId(),nodes:n.nodes.map(c=>cfe(c)),position:n.position,data:{...n.data,type:n.data.type==="normal"?void 0:n.data.type,invoke:n.invocations.map(c=>({src:c.src,id:Jh(c),jsImplementation:c.jsImplementation}))},size:n.labelSize}),bUn=n=>n.type==="array"?"any[]":n.type==="object"?"Record":n.type;function mUn(n,r=c=>JSON.stringify(c)){const c=n.edges.map(u=>nNe(u));return{rootNode:cfe(n.root),context:r(n.data.context),edges:c}}function dLt(n){const r=n.edges.map(c=>nNe(c));return{rootNode:cfe(n.root),context:afe(n.data.context),edges:r}}function vUn(n){const r=dLt(n),c=Object.values(n.data.context).map(p=>`${kq(p.key)}: ${bUn(p)}`),u=n.edges.filter(p=>p.data.eventTypeData.type==="named"),d=Array.from(new Set(u.map(p=>kq(p.data.eventTypeData.eventType))));return{...r,schema:{context:c,events:d}}}const dN={toJSON:mUn,toJS:dLt,toTS:vUn};function xw(n){for(var r=arguments.length,c=Array(r>1?r-1:0),u=1;u3?r.i-4:r.i:Array.isArray(n)?1:rNe(n)?2:iNe(n)?3:0}function PPe(n,r){return hN(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function yUn(n,r){return hN(n)===2?n.get(r):n[r]}function hLt(n,r,c){var u=hN(n);u===2?n.set(r,c):u===3?(n.delete(r),n.add(c)):n[r]=c}function wUn(n,r){return n===r?n!==0||1/n==1/r:n!=n&&r!=r}function rNe(n){return kUn&&n instanceof Map}function iNe(n){return CUn&&n instanceof Set}function W9(n){return n.o||n.t}function oNe(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=TUn(n);delete r[Pb];for(var c=uNe(r),u=0;u1&&(n.set=n.add=n.clear=n.delete=xUn),Object.freeze(n),r&&Cq(n,function(c,u){return sNe(u,!0)},!0)),n}function xUn(){xw(2)}function aNe(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function Xx(n){var r=AUn[n];return r||xw(18,n),r}function c7t(){return Iq}function l7e(n,r){r&&(Xx("Patches"),n.u=[],n.s=[],n.v=r)}function Kce(n){OPe(n),n.p.forEach(SUn),n.p=null}function OPe(n){n===Iq&&(Iq=n.l)}function u7t(n){return Iq={p:[],l:Iq,h:n,m:!0,_:0}}function SUn(n){var r=n[Pb];r.i===0||r.i===1?r.j():r.O=!0}function f7e(n,r){r._=r.p.length;var c=r.p[0],u=n!==void 0&&n!==c;return r.h.g||Xx("ES5").S(r,n,u),u?(c[Pb].P&&(Kce(r),xw(4)),U7(n)&&(n=Yce(r,n),r.l||Qce(r,n)),r.u&&Xx("Patches").M(c[Pb].t,n,r.u,r.s)):n=Yce(r,c,[]),Kce(r),r.u&&r.v(r.u,r.s),n!==pLt?n:void 0}function Yce(n,r,c){if(aNe(r))return r;var u=r[Pb];if(!u)return Cq(r,function(p,m){return l7t(n,u,r,p,m,c)},!0),r;if(u.A!==n)return r;if(!u.P)return Qce(n,u.t,!0),u.t;if(!u.I){u.I=!0,u.A._--;var d=u.i===4||u.i===5?u.o=oNe(u.k):u.o;Cq(u.i===3?new Set(d):d,function(p,m){return l7t(n,u,d,p,m,c)}),Qce(n,d,!1),c&&n.u&&Xx("Patches").R(u,c,n.u,n.s)}return u.o}function l7t(n,r,c,u,d,p){if(ND(d)){var m=Yce(n,d,p&&r&&r.i!==3&&!PPe(r.D,u)?p.concat(u):void 0);if(hLt(c,u,m),!ND(m))return;n.m=!1}if(U7(d)&&!aNe(d)){if(!n.h.F&&n._<1)return;Yce(n,d),r&&r.A.l||Qce(n,d)}}function Qce(n,r,c){c===void 0&&(c=!1),n.h.F&&n.m&&sNe(r,c)}function d7e(n,r){var c=n[Pb];return(c?W9(c):n)[r]}function f7t(n,r){if(r in n)for(var c=Object.getPrototypeOf(n);c;){var u=Object.getOwnPropertyDescriptor(c,r);if(u)return u;c=Object.getPrototypeOf(c)}}function _Pe(n){n.P||(n.P=!0,n.l&&_Pe(n.l))}function h7e(n){n.o||(n.o=oNe(n.t))}function MPe(n,r,c){var u=rNe(r)?Xx("MapSet").N(r,c):iNe(r)?Xx("MapSet").T(r,c):n.g?function(d,p){var m=Array.isArray(d),x={i:m?1:0,A:p?p.A:c7t(),P:!1,I:!1,D:{},l:p,t:d,k:null,o:null,j:null,C:!1},E=x,k=DPe;m&&(E=[x],k=FU);var T=Proxy.revocable(E,k),P=T.revoke,I=T.proxy;return x.k=I,x.j=P,I}(r,c):Xx("ES5").J(r,c);return(c?c.A:c7t()).p.push(u),u}function EUn(n){return ND(n)||xw(22,n),function r(c){if(!U7(c))return c;var u,d=c[Pb],p=hN(c);if(d){if(!d.P&&(d.i<4||!Xx("ES5").K(d)))return d.t;d.I=!0,u=d7t(c,p),d.I=!1}else u=d7t(c,p);return Cq(u,function(m,x){d&&yUn(d.t,m)===x||hLt(u,m,r(x))}),p===3?new Set(u):u}(n)}function d7t(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return oNe(n)}var h7t,Iq,cNe=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kUn=typeof Map<"u",CUn=typeof Set<"u",p7t=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",pLt=cNe?Symbol.for("immer-nothing"):((h7t={})["immer-nothing"]=!0,h7t),g7t=cNe?Symbol.for("immer-draftable"):"__$immer_draftable",Pb=cNe?Symbol.for("immer-state"):"__$immer_state",IUn=""+Object.prototype.constructor,uNe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,TUn=Object.getOwnPropertyDescriptors||function(n){var r={};return uNe(n).forEach(function(c){r[c]=Object.getOwnPropertyDescriptor(n,c)}),r},AUn={},DPe={get:function(n,r){if(r===Pb)return n;var c=W9(n);if(!PPe(c,r))return function(d,p,m){var x,E=f7t(p,m);return E?"value"in E?E.value:(x=E.get)===null||x===void 0?void 0:x.call(d.k):void 0}(n,c,r);var u=c[r];return n.I||!U7(u)?u:u===d7e(n.t,r)?(h7e(n),n.o[r]=MPe(n.A.h,u,n)):u},has:function(n,r){return r in W9(n)},ownKeys:function(n){return Reflect.ownKeys(W9(n))},set:function(n,r,c){var u=f7t(W9(n),r);if(u!=null&&u.set)return u.set.call(n.k,c),!0;if(!n.P){var d=d7e(W9(n),r),p=d==null?void 0:d[Pb];if(p&&p.t===c)return n.o[r]=c,n.D[r]=!1,!0;if(wUn(c,d)&&(c!==void 0||PPe(n.t,r)))return!0;h7e(n),_Pe(n)}return n.o[r]===c&&typeof c!="number"&&(c!==void 0||r in n.o)||(n.o[r]=c,n.D[r]=!0,!0)},deleteProperty:function(n,r){return d7e(n.t,r)!==void 0||r in n.t?(n.D[r]=!1,h7e(n),_Pe(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var c=W9(n),u=Reflect.getOwnPropertyDescriptor(c,r);return u&&{writable:!0,configurable:n.i!==1||r!=="length",enumerable:u.enumerable,value:c[r]}},defineProperty:function(){xw(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){xw(12)}},FU={};Cq(DPe,function(n,r){FU[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),FU.deleteProperty=function(n,r){return FU.set.call(this,n,r,void 0)},FU.set=function(n,r,c){return DPe.set.call(this,n[0],r,c,n[0])};var PUn=function(){function n(c){var u=this;this.g=p7t,this.F=!0,this.produce=function(d,p,m){if(typeof d=="function"&&typeof p!="function"){var x=p;p=d;var E=u;return function(j){var $=this;j===void 0&&(j=x);for(var L=arguments.length,B=Array(L>1?L-1:0),F=1;F1?T-1:0),I=1;I=0;d--){var p=u[d];if(p.path.length===0&&p.op==="replace"){c=p.value;break}}d>-1&&(u=u.slice(d+1));var m=Xx("Patches").$;return ND(c)?m(c,u):this.produce(c,function(x){return m(x,u)})},n}(),Ob=new PUn,OUn=Ob.produce;Ob.produceWithPatches.bind(Ob);Ob.setAutoFreeze.bind(Ob);Ob.setUseProxies.bind(Ob);Ob.applyPatches.bind(Ob);Ob.createDraft.bind(Ob);Ob.finishDraft.bind(Ob);const gLt=OUn;var bLt={},lNe={},ufe={};ufe.byteLength=DUn;ufe.toByteArray=jUn;ufe.fromByteArray=LUn;var Rx=[],av=[],_Un=typeof Uint8Array<"u"?Uint8Array:Array,p7e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var oM=0,MUn=p7e.length;oM0)throw new Error("Invalid string. Length must be a multiple of 4");var c=n.indexOf("=");c===-1&&(c=r);var u=c===r?0:4-c%4;return[c,u]}function DUn(n){var r=mLt(n),c=r[0],u=r[1];return(c+u)*3/4-u}function NUn(n,r,c){return(r+c)*3/4-c}function jUn(n){var r,c=mLt(n),u=c[0],d=c[1],p=new _Un(NUn(n,u,d)),m=0,x=d>0?u-4:u,E;for(E=0;E>16&255,p[m++]=r>>8&255,p[m++]=r&255;return d===2&&(r=av[n.charCodeAt(E)]<<2|av[n.charCodeAt(E+1)]>>4,p[m++]=r&255),d===1&&(r=av[n.charCodeAt(E)]<<10|av[n.charCodeAt(E+1)]<<4|av[n.charCodeAt(E+2)]>>2,p[m++]=r>>8&255,p[m++]=r&255),p}function RUn(n){return Rx[n>>18&63]+Rx[n>>12&63]+Rx[n>>6&63]+Rx[n&63]}function $Un(n,r,c){for(var u,d=[],p=r;px?x:m+p));return u===1?(r=n[c-1],d.push(Rx[r>>2]+Rx[r<<4&63]+"==")):u===2&&(r=(n[c-2]<<8)+n[c-1],d.push(Rx[r>>10]+Rx[r>>4&63]+Rx[r<<2&63]+"=")),d.join("")}var fNe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */fNe.read=function(n,r,c,u,d){var p,m,x=d*8-u-1,E=(1<>1,T=-7,P=c?d-1:0,I=c?-1:1,O=n[r+P];for(P+=I,p=O&(1<<-T)-1,O>>=-T,T+=x;T>0;p=p*256+n[r+P],P+=I,T-=8);for(m=p&(1<<-T)-1,p>>=-T,T+=u;T>0;m=m*256+n[r+P],P+=I,T-=8);if(p===0)p=1-k;else{if(p===E)return m?NaN:(O?-1:1)*(1/0);m=m+Math.pow(2,u),p=p-k}return(O?-1:1)*m*Math.pow(2,p-u)};fNe.write=function(n,r,c,u,d,p){var m,x,E,k=p*8-d-1,T=(1<>1,I=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=u?0:p-1,N=u?1:-1,j=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(x=isNaN(r)?1:0,m=T):(m=Math.floor(Math.log(r)/Math.LN2),r*(E=Math.pow(2,-m))<1&&(m--,E*=2),m+P>=1?r+=I/E:r+=I*Math.pow(2,1-P),r*E>=2&&(m++,E/=2),m+P>=T?(x=0,m=T):m+P>=1?(x=(r*E-1)*Math.pow(2,d),m=m+P):(x=r*Math.pow(2,P-1)*Math.pow(2,d),m=0));d>=8;n[c+O]=x&255,O+=N,x/=256,d-=8);for(m=m<0;n[c+O]=m&255,O+=N,m/=256,k-=8);n[c+O-N]|=j*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(n){const r=ufe,c=fNe,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=x,n.SlowBuffer=B,n.INSPECT_MAX_BYTES=50;const d=2147483647;n.kMaxLength=d,x.TYPED_ARRAY_SUPPORT=p(),!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function p(){try{const Se=new Uint8Array(1),K={foo:function(){return 42}};return Object.setPrototypeOf(K,Uint8Array.prototype),Object.setPrototypeOf(Se,K),Se.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(!!x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(!!x.isBuffer(this))return this.byteOffset}});function m(Se){if(Se>d)throw new RangeError('The value "'+Se+'" is invalid for option "size"');const K=new Uint8Array(Se);return Object.setPrototypeOf(K,x.prototype),K}function x(Se,K,ie){if(typeof Se=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return P(Se)}return E(Se,K,ie)}x.poolSize=8192;function E(Se,K,ie){if(typeof Se=="string")return I(Se,K);if(ArrayBuffer.isView(Se))return N(Se);if(Se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se);if(cr(Se,ArrayBuffer)||Se&&cr(Se.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(cr(Se,SharedArrayBuffer)||Se&&cr(Se.buffer,SharedArrayBuffer)))return j(Se,K,ie);if(typeof Se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ke=Se.valueOf&&Se.valueOf();if(ke!=null&&ke!==Se)return x.from(ke,K,ie);const nt=$(Se);if(nt)return nt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Se[Symbol.toPrimitive]=="function")return x.from(Se[Symbol.toPrimitive]("string"),K,ie);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se)}x.from=function(Se,K,ie){return E(Se,K,ie)},Object.setPrototypeOf(x.prototype,Uint8Array.prototype),Object.setPrototypeOf(x,Uint8Array);function k(Se){if(typeof Se!="number")throw new TypeError('"size" argument must be of type number');if(Se<0)throw new RangeError('The value "'+Se+'" is invalid for option "size"')}function T(Se,K,ie){return k(Se),Se<=0?m(Se):K!==void 0?typeof ie=="string"?m(Se).fill(K,ie):m(Se).fill(K):m(Se)}x.alloc=function(Se,K,ie){return T(Se,K,ie)};function P(Se){return k(Se),m(Se<0?0:L(Se)|0)}x.allocUnsafe=function(Se){return P(Se)},x.allocUnsafeSlow=function(Se){return P(Se)};function I(Se,K){if((typeof K!="string"||K==="")&&(K="utf8"),!x.isEncoding(K))throw new TypeError("Unknown encoding: "+K);const ie=F(Se,K)|0;let ke=m(ie);const nt=ke.write(Se,K);return nt!==ie&&(ke=ke.slice(0,nt)),ke}function O(Se){const K=Se.length<0?0:L(Se.length)|0,ie=m(K);for(let ke=0;ke=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return Se|0}function B(Se){return+Se!=Se&&(Se=0),x.alloc(+Se)}x.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==x.prototype},x.compare=function(K,ie){if(cr(K,Uint8Array)&&(K=x.from(K,K.offset,K.byteLength)),cr(ie,Uint8Array)&&(ie=x.from(ie,ie.offset,ie.byteLength)),!x.isBuffer(K)||!x.isBuffer(ie))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ie)return 0;let ke=K.length,nt=ie.length;for(let Nt=0,un=Math.min(ke,nt);Ntnt.length?(x.isBuffer(un)||(un=x.from(un)),un.copy(nt,Nt)):Uint8Array.prototype.set.call(nt,un,Nt);else if(x.isBuffer(un))un.copy(nt,Nt);else throw new TypeError('"list" argument must be an Array of Buffers');Nt+=un.length}return nt};function F(Se,K){if(x.isBuffer(Se))return Se.length;if(ArrayBuffer.isView(Se)||cr(Se,ArrayBuffer))return Se.byteLength;if(typeof Se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Se);const ie=Se.length,ke=arguments.length>2&&arguments[2]===!0;if(!ke&&ie===0)return 0;let nt=!1;for(;;)switch(K){case"ascii":case"latin1":case"binary":return ie;case"utf8":case"utf-8":return Ie(Se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie*2;case"hex":return ie>>>1;case"base64":return gn(Se).length;default:if(nt)return ke?-1:Ie(Se).length;K=(""+K).toLowerCase(),nt=!0}}x.byteLength=F;function X(Se,K,ie){let ke=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((ie===void 0||ie>this.length)&&(ie=this.length),ie<=0)||(ie>>>=0,K>>>=0,ie<=K))return"";for(Se||(Se="utf8");;)switch(Se){case"hex":return ye(this,K,ie);case"utf8":case"utf-8":return Je(this,K,ie);case"ascii":return Me(this,K,ie);case"latin1":case"binary":return Ve(this,K,ie);case"base64":return qe(this,K,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,K,ie);default:if(ke)throw new TypeError("Unknown encoding: "+Se);Se=(Se+"").toLowerCase(),ke=!0}}x.prototype._isBuffer=!0;function te(Se,K,ie){const ke=Se[K];Se[K]=Se[ie],Se[ie]=ke}x.prototype.swap16=function(){const K=this.length;if(K%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ie=0;ieie&&(K+=" ... "),""},u&&(x.prototype[u]=x.prototype.inspect),x.prototype.compare=function(K,ie,ke,nt,Nt){if(cr(K,Uint8Array)&&(K=x.from(K,K.offset,K.byteLength)),!x.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof K);if(ie===void 0&&(ie=0),ke===void 0&&(ke=K?K.length:0),nt===void 0&&(nt=0),Nt===void 0&&(Nt=this.length),ie<0||ke>K.length||nt<0||Nt>this.length)throw new RangeError("out of range index");if(nt>=Nt&&ie>=ke)return 0;if(nt>=Nt)return-1;if(ie>=ke)return 1;if(ie>>>=0,ke>>>=0,nt>>>=0,Nt>>>=0,this===K)return 0;let un=Nt-nt,Hr=ke-ie;const Oo=Math.min(un,Hr),Yo=this.slice(nt,Nt),qs=K.slice(ie,ke);for(let Bi=0;Bi2147483647?ie=2147483647:ie<-2147483648&&(ie=-2147483648),ie=+ie,Ur(ie)&&(ie=nt?0:Se.length-1),ie<0&&(ie=Se.length+ie),ie>=Se.length){if(nt)return-1;ie=Se.length-1}else if(ie<0)if(nt)ie=0;else return-1;if(typeof K=="string"&&(K=x.from(K,ke)),x.isBuffer(K))return K.length===0?-1:H(Se,K,ie,ke,nt);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?nt?Uint8Array.prototype.indexOf.call(Se,K,ie):Uint8Array.prototype.lastIndexOf.call(Se,K,ie):H(Se,[K],ie,ke,nt);throw new TypeError("val must be string, number or Buffer")}function H(Se,K,ie,ke,nt){let Nt=1,un=Se.length,Hr=K.length;if(ke!==void 0&&(ke=String(ke).toLowerCase(),ke==="ucs2"||ke==="ucs-2"||ke==="utf16le"||ke==="utf-16le")){if(Se.length<2||K.length<2)return-1;Nt=2,un/=2,Hr/=2,ie/=2}function Oo(qs,Bi){return Nt===1?qs[Bi]:qs.readUInt16BE(Bi*Nt)}let Yo;if(nt){let qs=-1;for(Yo=ie;Youn&&(ie=un-Hr),Yo=ie;Yo>=0;Yo--){let qs=!0;for(let Bi=0;Bint&&(ke=nt)):ke=nt;const Nt=K.length;ke>Nt/2&&(ke=Nt/2);let un;for(un=0;un>>0,isFinite(ke)?(ke=ke>>>0,nt===void 0&&(nt="utf8")):(nt=ke,ke=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Nt=this.length-ie;if((ke===void 0||ke>Nt)&&(ke=Nt),K.length>0&&(ke<0||ie<0)||ie>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");let un=!1;for(;;)switch(nt){case"hex":return ce(this,K,ie,ke);case"utf8":case"utf-8":return pe(this,K,ie,ke);case"ascii":case"latin1":case"binary":return fe(this,K,ie,ke);case"base64":return ve(this,K,ie,ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,K,ie,ke);default:if(un)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),un=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function qe(Se,K,ie){return K===0&&ie===Se.length?r.fromByteArray(Se):r.fromByteArray(Se.slice(K,ie))}function Je(Se,K,ie){ie=Math.min(Se.length,ie);const ke=[];let nt=K;for(;nt239?4:Nt>223?3:Nt>191?2:1;if(nt+Hr<=ie){let Oo,Yo,qs,Bi;switch(Hr){case 1:Nt<128&&(un=Nt);break;case 2:Oo=Se[nt+1],(Oo&192)===128&&(Bi=(Nt&31)<<6|Oo&63,Bi>127&&(un=Bi));break;case 3:Oo=Se[nt+1],Yo=Se[nt+2],(Oo&192)===128&&(Yo&192)===128&&(Bi=(Nt&15)<<12|(Oo&63)<<6|Yo&63,Bi>2047&&(Bi<55296||Bi>57343)&&(un=Bi));break;case 4:Oo=Se[nt+1],Yo=Se[nt+2],qs=Se[nt+3],(Oo&192)===128&&(Yo&192)===128&&(qs&192)===128&&(Bi=(Nt&15)<<18|(Oo&63)<<12|(Yo&63)<<6|qs&63,Bi>65535&&Bi<1114112&&(un=Bi))}}un===null?(un=65533,Hr=1):un>65535&&(un-=65536,ke.push(un>>>10&1023|55296),un=56320|un&1023),ke.push(un),nt+=Hr}return jt(ke)}const et=4096;function jt(Se){const K=Se.length;if(K<=et)return String.fromCharCode.apply(String,Se);let ie="",ke=0;for(;keke)&&(ie=ke);let nt="";for(let Nt=K;Ntke&&(K=ke),ie<0?(ie+=ke,ie<0&&(ie=0)):ie>ke&&(ie=ke),ieie)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(K,ie,ke){K=K>>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K],Nt=1,un=0;for(;++un>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K+--ie],Nt=1;for(;ie>0&&(Nt*=256);)nt+=this[K+--ie]*Nt;return nt},x.prototype.readUint8=x.prototype.readUInt8=function(K,ie){return K=K>>>0,ie||be(K,1,this.length),this[K]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(K,ie){return K=K>>>0,ie||be(K,2,this.length),this[K]|this[K+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(K,ie){return K=K>>>0,ie||be(K,2,this.length),this[K]<<8|this[K+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+this[K+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]*16777216+(this[K+1]<<16|this[K+2]<<8|this[K+3])},x.prototype.readBigUInt64LE=Tr(function(K){K=K>>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&at(K,this.length-8);const nt=ie+this[++K]*2**8+this[++K]*2**16+this[++K]*2**24,Nt=this[++K]+this[++K]*2**8+this[++K]*2**16+ke*2**24;return BigInt(nt)+(BigInt(Nt)<>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&at(K,this.length-8);const nt=ie*2**24+this[++K]*2**16+this[++K]*2**8+this[++K],Nt=this[++K]*2**24+this[++K]*2**16+this[++K]*2**8+ke;return(BigInt(nt)<>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=this[K],Nt=1,un=0;for(;++un=Nt&&(nt-=Math.pow(2,8*ie)),nt},x.prototype.readIntBE=function(K,ie,ke){K=K>>>0,ie=ie>>>0,ke||be(K,ie,this.length);let nt=ie,Nt=1,un=this[K+--nt];for(;nt>0&&(Nt*=256);)un+=this[K+--nt]*Nt;return Nt*=128,un>=Nt&&(un-=Math.pow(2,8*ie)),un},x.prototype.readInt8=function(K,ie){return K=K>>>0,ie||be(K,1,this.length),this[K]&128?(255-this[K]+1)*-1:this[K]},x.prototype.readInt16LE=function(K,ie){K=K>>>0,ie||be(K,2,this.length);const ke=this[K]|this[K+1]<<8;return ke&32768?ke|4294901760:ke},x.prototype.readInt16BE=function(K,ie){K=K>>>0,ie||be(K,2,this.length);const ke=this[K+1]|this[K]<<8;return ke&32768?ke|4294901760:ke},x.prototype.readInt32LE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},x.prototype.readInt32BE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},x.prototype.readBigInt64LE=Tr(function(K){K=K>>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&at(K,this.length-8);const nt=this[K+4]+this[K+5]*2**8+this[K+6]*2**16+(ke<<24);return(BigInt(nt)<>>0,Ne(K,"offset");const ie=this[K],ke=this[K+7];(ie===void 0||ke===void 0)&&at(K,this.length-8);const nt=(ie<<24)+this[++K]*2**16+this[++K]*2**8+this[++K];return(BigInt(nt)<>>0,ie||be(K,4,this.length),c.read(this,K,!0,23,4)},x.prototype.readFloatBE=function(K,ie){return K=K>>>0,ie||be(K,4,this.length),c.read(this,K,!1,23,4)},x.prototype.readDoubleLE=function(K,ie){return K=K>>>0,ie||be(K,8,this.length),c.read(this,K,!0,52,8)},x.prototype.readDoubleBE=function(K,ie){return K=K>>>0,ie||be(K,8,this.length),c.read(this,K,!1,52,8)};function xe(Se,K,ie,ke,nt,Nt){if(!x.isBuffer(Se))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>nt||KSe.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,ke=ke>>>0,!nt){const Hr=Math.pow(2,8*ke)-1;xe(this,K,ie,ke,Hr,0)}let Nt=1,un=0;for(this[ie]=K&255;++un>>0,ke=ke>>>0,!nt){const Hr=Math.pow(2,8*ke)-1;xe(this,K,ie,ke,Hr,0)}let Nt=ke-1,un=1;for(this[ie+Nt]=K&255;--Nt>=0&&(un*=256);)this[ie+Nt]=K/un&255;return ie+ke},x.prototype.writeUint8=x.prototype.writeUInt8=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,1,255,0),this[ie]=K&255,ie+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,2,65535,0),this[ie]=K&255,this[ie+1]=K>>>8,ie+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,2,65535,0),this[ie]=K>>>8,this[ie+1]=K&255,ie+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,4,4294967295,0),this[ie+3]=K>>>24,this[ie+2]=K>>>16,this[ie+1]=K>>>8,this[ie]=K&255,ie+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,4,4294967295,0),this[ie]=K>>>24,this[ie+1]=K>>>16,this[ie+2]=K>>>8,this[ie+3]=K&255,ie+4};function Jt(Se,K,ie,ke,nt){on(K,ke,nt,Se,ie,7);let Nt=Number(K&BigInt(4294967295));Se[ie++]=Nt,Nt=Nt>>8,Se[ie++]=Nt,Nt=Nt>>8,Se[ie++]=Nt,Nt=Nt>>8,Se[ie++]=Nt;let un=Number(K>>BigInt(32)&BigInt(4294967295));return Se[ie++]=un,un=un>>8,Se[ie++]=un,un=un>>8,Se[ie++]=un,un=un>>8,Se[ie++]=un,ie}function an(Se,K,ie,ke,nt){on(K,ke,nt,Se,ie,7);let Nt=Number(K&BigInt(4294967295));Se[ie+7]=Nt,Nt=Nt>>8,Se[ie+6]=Nt,Nt=Nt>>8,Se[ie+5]=Nt,Nt=Nt>>8,Se[ie+4]=Nt;let un=Number(K>>BigInt(32)&BigInt(4294967295));return Se[ie+3]=un,un=un>>8,Se[ie+2]=un,un=un>>8,Se[ie+1]=un,un=un>>8,Se[ie]=un,ie+8}x.prototype.writeBigUInt64LE=Tr(function(K,ie=0){return Jt(this,K,ie,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=Tr(function(K,ie=0){return an(this,K,ie,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,!nt){const Oo=Math.pow(2,8*ke-1);xe(this,K,ie,ke,Oo-1,-Oo)}let Nt=0,un=1,Hr=0;for(this[ie]=K&255;++Nt>0)-Hr&255;return ie+ke},x.prototype.writeIntBE=function(K,ie,ke,nt){if(K=+K,ie=ie>>>0,!nt){const Oo=Math.pow(2,8*ke-1);xe(this,K,ie,ke,Oo-1,-Oo)}let Nt=ke-1,un=1,Hr=0;for(this[ie+Nt]=K&255;--Nt>=0&&(un*=256);)K<0&&Hr===0&&this[ie+Nt+1]!==0&&(Hr=1),this[ie+Nt]=(K/un>>0)-Hr&255;return ie+ke},x.prototype.writeInt8=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,1,127,-128),K<0&&(K=255+K+1),this[ie]=K&255,ie+1},x.prototype.writeInt16LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,2,32767,-32768),this[ie]=K&255,this[ie+1]=K>>>8,ie+2},x.prototype.writeInt16BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,2,32767,-32768),this[ie]=K>>>8,this[ie+1]=K&255,ie+2},x.prototype.writeInt32LE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,4,2147483647,-2147483648),this[ie]=K&255,this[ie+1]=K>>>8,this[ie+2]=K>>>16,this[ie+3]=K>>>24,ie+4},x.prototype.writeInt32BE=function(K,ie,ke){return K=+K,ie=ie>>>0,ke||xe(this,K,ie,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ie]=K>>>24,this[ie+1]=K>>>16,this[ie+2]=K>>>8,this[ie+3]=K&255,ie+4},x.prototype.writeBigInt64LE=Tr(function(K,ie=0){return Jt(this,K,ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=Tr(function(K,ie=0){return an(this,K,ie,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function An(Se,K,ie,ke,nt,Nt){if(ie+ke>Se.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("Index out of range")}function Wn(Se,K,ie,ke,nt){return K=+K,ie=ie>>>0,nt||An(Se,K,ie,4),c.write(Se,K,ie,ke,23,4),ie+4}x.prototype.writeFloatLE=function(K,ie,ke){return Wn(this,K,ie,!0,ke)},x.prototype.writeFloatBE=function(K,ie,ke){return Wn(this,K,ie,!1,ke)};function ir(Se,K,ie,ke,nt){return K=+K,ie=ie>>>0,nt||An(Se,K,ie,8),c.write(Se,K,ie,ke,52,8),ie+8}x.prototype.writeDoubleLE=function(K,ie,ke){return ir(this,K,ie,!0,ke)},x.prototype.writeDoubleBE=function(K,ie,ke){return ir(this,K,ie,!1,ke)},x.prototype.copy=function(K,ie,ke,nt){if(!x.isBuffer(K))throw new TypeError("argument should be a Buffer");if(ke||(ke=0),!nt&&nt!==0&&(nt=this.length),ie>=K.length&&(ie=K.length),ie||(ie=0),nt>0&&nt=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),K.length-ie>>0,ke=ke===void 0?this.length:ke>>>0,K||(K=0);let Nt;if(typeof K=="number")for(Nt=ie;Nt2**32?nt=Ze(String(ie)):typeof ie=="bigint"&&(nt=String(ie),(ie>BigInt(2)**BigInt(32)||ie<-(BigInt(2)**BigInt(32)))&&(nt=Ze(nt)),nt+="n"),ke+=` It must be ${K}. Received ${nt}`,ke},RangeError);function Ze(Se){let K="",ie=Se.length;const ke=Se[0]==="-"?1:0;for(;ie>=ke+4;ie-=3)K=`_${Se.slice(ie-3,ie)}${K}`;return`${Se.slice(0,ie)}${K}`}function ut(Se,K,ie){Ne(K,"offset"),(Se[K]===void 0||Se[K+ie]===void 0)&&at(K,Se.length-(ie+1))}function on(Se,K,ie,ke,nt,Nt){if(Se>ie||Se3?K===0||K===BigInt(0)?Hr=`>= 0${un} and < 2${un} ** ${(Nt+1)*8}${un}`:Hr=`>= -(2${un} ** ${(Nt+1)*8-1}${un}) and < 2 ** ${(Nt+1)*8-1}${un}`:Hr=`>= ${K}${un} and <= ${ie}${un}`,new Jn.ERR_OUT_OF_RANGE("value",Hr,Se)}ut(ke,nt,Nt)}function Ne(Se,K){if(typeof Se!="number")throw new Jn.ERR_INVALID_ARG_TYPE(K,"number",Se)}function at(Se,K,ie){throw Math.floor(Se)!==Se?(Ne(Se,ie),new Jn.ERR_OUT_OF_RANGE(ie||"offset","an integer",Se)):K<0?new Jn.ERR_BUFFER_OUT_OF_BOUNDS:new Jn.ERR_OUT_OF_RANGE(ie||"offset",`>= ${ie?1:0} and <= ${K}`,Se)}const ae=/[^+/0-9A-Za-z-_]/g;function Ee(Se){if(Se=Se.split("=")[0],Se=Se.trim().replace(ae,""),Se.length<2)return"";for(;Se.length%4!==0;)Se=Se+"=";return Se}function Ie(Se,K){K=K||1/0;let ie;const ke=Se.length;let nt=null;const Nt=[];for(let un=0;un55295&&ie<57344){if(!nt){if(ie>56319){(K-=3)>-1&&Nt.push(239,191,189);continue}else if(un+1===ke){(K-=3)>-1&&Nt.push(239,191,189);continue}nt=ie;continue}if(ie<56320){(K-=3)>-1&&Nt.push(239,191,189),nt=ie;continue}ie=(nt-55296<<10|ie-56320)+65536}else nt&&(K-=3)>-1&&Nt.push(239,191,189);if(nt=null,ie<128){if((K-=1)<0)break;Nt.push(ie)}else if(ie<2048){if((K-=2)<0)break;Nt.push(ie>>6|192,ie&63|128)}else if(ie<65536){if((K-=3)<0)break;Nt.push(ie>>12|224,ie>>6&63|128,ie&63|128)}else if(ie<1114112){if((K-=4)<0)break;Nt.push(ie>>18|240,ie>>12&63|128,ie>>6&63|128,ie&63|128)}else throw new Error("Invalid code point")}return Nt}function tt(Se){const K=[];for(let ie=0;ie>8,nt=ie%256,Nt.push(nt),Nt.push(ke);return Nt}function gn(Se){return r.toByteArray(Ee(Se))}function In(Se,K,ie,ke){let nt;for(nt=0;nt=K.length||nt>=Se.length);++nt)K[nt+ie]=Se[nt];return nt}function cr(Se,K){return Se instanceof K||Se!=null&&Se.constructor!=null&&Se.constructor.name!=null&&Se.constructor.name===K.name}function Ur(Se){return Se!==Se}const eo=function(){const Se="0123456789abcdef",K=new Array(256);for(let ie=0;ie<16;++ie){const ke=ie*16;for(let nt=0;nt<16;++nt)K[ke+nt]=Se[ie]+Se[nt]}return K}();function Tr(Se){return typeof BigInt>"u"?Uo:Se}function Uo(){throw new Error("BigInt not supported")}})(lNe);var vLt={},yLt={},wLt={},FUn=function(r,c){return function(u,d){var p=d*2,m=c*2;u[p]=r[m],u[p+1]=r[m+1]}},dNe=FUn;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(dNe);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){for(var x=m.A,E=m.C,k=0;k<25;k+=5){for(var T=0;T<5;T++)(0,r.default)(x,k+T)(E,T);for(var P=0;P<5;P++){var I=(k+P)*2,O=(P+1)%5*2,N=(P+2)%5*2;x[I]^=~E[O]&E[N],x[I+1]^=~E[O+1]&E[N+1]}}},d=u;n.default=d})(wLt);var xLt={},SLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]),c=r;n.default=c})(SLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(SLt);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){var x=m.A,E=m.roundIndex,k=E*2;x[0]^=r.default[k],x[1]^=r.default[k+1]},d=u;n.default=d})(xLt);var ELt={},kLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1],c=r;n.default=c})(kLt);var CLt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44],c=r;n.default=c})(CLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=d(kLt),c=d(CLt),u=d(dNe);function d(x){return x&&x.__esModule?x:{default:x}}var p=function(E){var k=E.A,T=E.C,P=E.W;(0,u.default)(k,1)(P,0);for(var I=0,O=0,N=0,j=32,$=0;$<24;$++){var L=r.default[$],B=c.default[$];(0,u.default)(k,L)(T,0),I=P[0],O=P[1],j=32-B,N=B<32?0:1,P[N]=I<>>j,P[(N+1)%2]=O<>>j,(0,u.default)(P,0)(k,L),(0,u.default)(T,0)(P,0)}},m=p;n.default=m})(ELt);var ILt={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(dNe);function c(p){return p&&p.__esModule?p:{default:p}}var u=function(m){for(var x=m.A,E=m.C,k=m.D,T=m.W,P=0,I=0,O=0;O<5;O++){var N=O*2,j=(O+5)*2,$=(O+10)*2,L=(O+15)*2,B=(O+20)*2;E[N]=x[N]^x[j]^x[$]^x[L]^x[B],E[N+1]=x[N+1]^x[j+1]^x[$+1]^x[L+1]^x[B+1]}for(var F=0;F<5;F++){(0,r.default)(E,(F+1)%5)(T,0),P=T[0],I=T[1],T[0]=P<<1|I>>>31,T[1]=I<<1|P>>>31,k[F*2]=E[(F+4)%5*2]^T[0],k[F*2+1]=E[(F+4)%5*2+1]^T[1];for(var X=0;X<25;X+=5)x[(X+F)*2]^=k[F*2],x[(X+F)*2+1]^=k[F*2+1]}},d=u;n.default=d})(ILt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=p(wLt),c=p(xLt),u=p(ELt),d=p(ILt);function p(E){return E&&E.__esModule?E:{default:E}}var m=function(){var k=new Uint32Array(10),T=new Uint32Array(10),P=new Uint32Array(2);return function(I){for(var O=0;O<24;O++)(0,d.default)({A:I,C:k,D:T,W:P}),(0,u.default)({A:I,C:k,W:P}),(0,r.default)({A:I,C:k}),(0,c.default)({A:I,roundIndex:O});k.fill(0),T.fill(0),P.fill(0)}},x=m;n.default=x})(yLt);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=lNe,c=u(yLt);function u(E){return E&&E.__esModule?E:{default:E}}var d=function(k,T){for(var P=0;P>>8,T[P+2]=k[I+1]>>>16,T[P+3]=k[I+1]>>>24,T[P+4]=k[I],T[P+5]=k[I]>>>8,T[P+6]=k[I]>>>16,T[P+7]=k[I]>>>24}return T},m=function(k){var T=this,P=k.capacity,I=k.padding,O=(0,c.default)(),N=200,j=P/8,$=N-P/4,L=0,B=new Uint32Array(N/4),F=r.Buffer.allocUnsafe($);return this.absorb=function(X){for(var te=0;te=$&&(d(F,B),O(B),L=0);return T},this.squeeze=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te={buffer:X.buffer||r.Buffer.allocUnsafe(j),padding:X.padding||I,queue:r.Buffer.allocUnsafe(F.length),state:new Uint32Array(B.length)};F.copy(te.queue);for(var Z=0;Z0&&arguments[0]!==void 0?arguments[0]:O;if(!this||this.constructor!==j)return new j(L);if(I&&!I.includes(L))throw new Error("Unsupported hash length");var B=new c.default({capacity:L});return this.update=function(F){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf8";if(r.Buffer.isBuffer(F))return B.absorb(F),$;if(typeof F=="string")return $.update(r.Buffer.from(F,X));throw new TypeError("Not a string or buffer")},this.digest=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"binary",X=typeof F=="string"?{format:F}:F,te=B.squeeze({buffer:X.buffer,padding:X.padding||N});return X.format&&X.format!=="binary"?te.toString(X.format):te},this.reset=function(){return B.reset(),$},this}},p=d({allowedSizes:[224,256,384,512],defaultSize:512,padding:1});n.Keccak=p;var m=d({allowedSizes:[224,256,384,512],defaultSize:512,padding:6});n.SHA3=m;var x=d({allowedSizes:[128,256],defaultSize:256,padding:31});n.SHAKE=x;var E=p;n.SHA3Hash=E,m.SHA3Hash=E;var k=m;n.default=k})(bLt);function Zce(n){const r={edges:{},nodes:{}};for(const[,c]of Array.from(n.nodeMap))r.nodes[c.getSerialisableId()]={position:c.position};for(const[,c]of Array.from(n.edgeMap))r.edges[c.getSerialisableId()]={position:c.position};return Fk.exports.compressToEncodedURIComponent(JSON.stringify(r))}var yPt;const Tq=(yPt=globalThis.acquireVsCodeApi)==null?void 0:yPt.call(globalThis),BUn=typeof parent<"u"&&typeof window<"u"&&window.location.search.includes("runningInStatelyExtension=true"),hNe=Boolean(Tq)||BUn,VUn=n=>{if(Object.keys(n).length===0)return{};try{const r=qDe.parse(n.layout),c=JSON.parse(Fk.exports.decompressFromEncodedURIComponent(n.config)),u=n.themeKind;let d;return n.implementations&&(d=hzn.parse(n.implementations)),{config:c,layout:r,implementations:d,themeKind:u,distinctId:n.distinctId}}catch{return{}}};function zUn(n){return{...n,layout:qDe.parse(n.layoutString)}}const gU=n=>{!hNe||(Tq?Tq.postMessage(n):parent.postMessage(JSON.stringify(n),"*"))};let Ose=[];const NPe=typeof window<"u"&&hNe?Tq?zUn(window.__params):VUn(Object.fromEntries(new URLSearchParams(window.location.search))):{};let b7t=NPe.layout?Fk.exports.compressToEncodedURIComponent(JSON.stringify(NPe.layout)):void 0;const yr={enabled:hNe,params:NPe,putEditInExtensionQueue:n=>{Ose.push(n)},flushEditsToExtension:({reason:n})=>{if(!Ose.length)return;const r=Ose;Ose=[],gU({type:"MACHINE_CHANGED",edits:r,reason:n})},openLink:n=>gU({type:"OPEN_LINK",url:n}),selectNode:n=>{const[,...r]=n.split(".");gU({type:"NODE_SELECTED",path:r})},updateDefinition:n=>{if(Tq)return;const{config:r,implementationMetadata:c}=L$t(dN.toJSON(n)),u=Zce(n);b7t!==u&&(b7t=u,gU({type:"LAYOUT_UPDATED",layoutString:u})),gU({type:"DEFINITION_UPDATED",config:r,layoutString:u,implementations:c})}};let jPe,TLt;const m7t=rfe()?window.localStorage:ife();function UUn(){const c=new Date().getTime().toString(16).slice(1);return"xxxx-xxxx-4xxx-yxxx-xzx".replace(/[xy]/g,d=>{const p=Math.random()*16|0;return(d==="x"?p:p&3|8).toString(16)}).replace(/z/,c)}const HUn=typeof window<"u"&&typeof self.crypto.randomUUID=="function"?()=>self.crypto.randomUUID():UUn,qUn=()=>{const n=m7t.getItem("random.uuid");if(n)return n;const r=HUn();return m7t.setItem("random.uuid",r),r},WUn=()=>jPe&&TLt===!0?jPe.digest("hex"):yr.enabled&&yr.params.distinctId?yr.params.distinctId:qUn();let Mae=[];const ALt=()=>{if(Mae.length===0)return;const n=Mae.map(r=>({event:r.event,properties:{...r.properties,distinct_id:WUn()}}));Mae=[],fetch("/registry/api/analyze",{method:"POST",body:JSON.stringify(n)}).catch(console.log)},GUn=iLt(ALt,1e3),PLt=(n,r,{instantDelivery:c=!1}={})=>{const u=Math.floor(new Date().getTime()/1e3);Mae.push({event:n,properties:{...r,time:u}}),c?ALt():GUn()},XUn=iLt(PLt,1e3),KUn={identify:n=>{jPe=new bLt.SHA3().update(n)},hasGivenConsent:n=>{TLt=n},track:PLt,debouncedTrack:XUn},so=()=>{if(!(!yr.enabled&&(!{}.NEXT_PUBLIC_MIXPANEL_TOKEN||typeof window>"u")))return KUn};function _se(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var OLt={exports:{}};(function(n,r){(function(c){n.exports=c()})(function(){return function(){function c(u,d,p){function m(k,T){if(!d[k]){if(!u[k]){var P=typeof _se=="function"&&_se;if(!T&&P)return P(k,!0);if(x)return x(k,!0);var I=new Error("Cannot find module '"+k+"'");throw I.code="MODULE_NOT_FOUND",I}var O=d[k]={exports:{}};u[k][0].call(O.exports,function(N){var j=u[k][1][N];return m(j||N)},O,O.exports,c,u,d,p)}return d[k].exports}for(var x=typeof _se=="function"&&_se,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},I=P.defaultLayoutOptions,O=I===void 0?{}:I,N=P.algorithms,j=N===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:N,$=P.workerFactory,L=P.workerUrl;if(m(this,k),this.defaultLayoutOptions=O,this.initialized=!1,typeof L>"u"&&typeof $>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var B=$;typeof L<"u"&&typeof $>"u"&&(B=function(te){return new Worker(te)});var F=B(L);if(typeof F.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new E(F),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(X){return T.initialized=!0}).catch(console.err)}return p(k,[{key:"layout",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=I.layoutOptions,N=O===void 0?this.defaultLayoutOptions:O,j=I.logging,$=j===void 0?!1:j,L=I.measureExecutionTime,B=L===void 0?!1:L;return P?this.worker.postMessage({cmd:"layout",graph:P,layoutOptions:N,options:{logging:$,measureExecutionTime:B}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),k}();d.default=x;var E=function(){function k(T){var P=this;if(m(this,k),T===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=T,this.worker.onmessage=function(I){setTimeout(function(){P.receive(P,I)},0)}}return p(k,[{key:"postMessage",value:function(P){var I=this.id||0;this.id=I+1,P.id=I;var O=this;return new Promise(function(N,j){O.resolvers[I]=function($,L){$?(O.convertGwtStyleError($),j($)):N(L)},O.worker.postMessage(P)})}},{key:"receive",value:function(P,I){var O=I.data,N=P.resolvers[O.id];N&&(delete P.resolvers[O.id],O.error?N(O.error):N(null,O.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(P){if(!!P){var I=P.__java$exception;I&&(I.cause&&I.cause.backingJsObject&&(P.cause=I.cause.backingJsObject,this.convertGwtStyleError(P.cause)),delete P.__java$exception)}}}]),k}()},{}],2:[function(c,u,d){(function(p){var m;typeof window<"u"?m=window:typeof p<"u"?m=p:typeof self<"u"&&(m=self);function x(){}function E(){}function k(){}function T(){}function P(){}function I(){}function O(){}function N(){}function j(){}function $(){}function L(){}function B(){}function F(){}function X(){}function te(){}function Z(){}function H(){}function ce(){}function pe(){}function fe(){}function ve(){}function Ge(){}function qe(){}function Je(){}function et(){}function jt(){}function Me(){}function Ve(){}function ye(){}function De(){}function be(){}function xe(){}function Jt(){}function an(){}function An(){}function Wn(){}function ir(){}function Jn(){}function Gr(){}function Ze(){}function ut(){}function on(){}function Ne(){}function at(){}function ae(){}function Ee(){}function Ie(){}function tt(){}function en(){}function gn(){}function In(){}function cr(){}function Ur(){}function eo(){}function Tr(){}function Uo(){}function Se(){}function K(){}function ie(){}function ke(){}function nt(){}function Nt(){}function un(){}function Hr(){}function Oo(){}function Yo(){}function qs(){}function Bi(){}function c3(){}function Hp(){}function SN(){}function $S(){}function DW(){}function Rw(){}function NW(){}function jW(){}function RW(){}function $W(){}function LW(){}function Rb(){}function FW(){}function BW(){}function VW(){}function zW(){}function UW(){}function u3(){}function HW(){}function EN(){}function qW(){}function WW(){}function GW(){}function l3(){}function uT(){}function lT(){}function Gk(){}function XW(){}function KW(){}function fT(){}function dT(){}function YW(){}function Xk(){}function f3(){}function QW(){}function Kk(){}function kN(){}function ZW(){}function JW(){}function eG(){}function CN(){}function tG(){}function nG(){}function IN(){}function rG(){}function iG(){}function TN(){}function oG(){}function sG(){}function aG(){}function cG(){}function Yk(){}function hT(){}function uG(){}function lG(){}function AN(){}function fG(){}function dG(){}function hG(){}function PN(){}function pG(){}function gG(){}function bG(){}function Qk(){}function mG(){}function vG(){}function yG(){}function Zk(){}function Jk(){}function pT(){}function gT(){}function wG(){}function ON(){}function bT(){}function _N(){}function $w(){}function LS(){}function xG(){}function MN(){}function SG(){}function DN(){}function EG(){}function kG(){}function NN(){}function CG(){}function ze(){}function ht(){}function Kt(){}function Qr(){}function Ns(){}function Ya(){}function Wc(){}function As(){}function Gc(){}function W1(){}function i1(){}function FS(){}function mT(){}function vT(){}function jN(){}function nje(){}function rje(){}function ije(){}function oje(){}function sje(){}function aje(){}function cje(){}function uje(){}function lje(){}function fje(){}function dje(){}function hje(){}function pje(){}function gje(){}function bje(){}function mje(){}function vje(){}function yje(){}function wje(){}function xje(){}function Sje(){}function Eje(){}function kje(){}function Cje(){}function Ije(){}function Tje(){}function Aje(){}function Pje(){}function Oje(){}function _je(){}function Mje(){}function Dje(){}function Nje(){}function jje(){}function Rje(){}function $je(){}function Lje(){}function Fje(){}function Bje(){}function Vje(){}function zje(){}function Uje(){}function Hje(){}function qje(){}function Wje(){}function Gje(){}function Xje(){}function Kje(){}function Yje(){}function Qje(){}function Zje(){}function Jje(){}function eRe(){}function tRe(){}function nRe(){}function rRe(){}function iRe(){}function oRe(){}function sRe(){}function aRe(){}function cRe(){}function uRe(){}function lRe(){}function fRe(){}function dRe(){}function hRe(){}function pRe(){}function gRe(){}function bRe(){}function Zfe(){}function mRe(){}function vRe(){}function yRe(){}function wRe(){}function xRe(){}function SRe(){}function ERe(){}function kRe(){}function CRe(){}function IRe(){}function TRe(){}function ARe(){}function PRe(){}function ORe(){}function _Re(){}function MRe(){}function DRe(){}function NRe(){}function jRe(){}function RRe(){}function $Re(){}function LRe(){}function FRe(){}function BRe(){}function VRe(){}function zRe(){}function URe(){}function HRe(){}function qRe(){}function WRe(){}function GRe(){}function XRe(){}function KRe(){}function YRe(){}function QRe(){}function ZRe(){}function JRe(){}function e$e(){}function t$e(){}function n$e(){}function r$e(){}function i$e(){}function o$e(){}function s$e(){}function a$e(){}function c$e(){}function u$e(){}function l$e(){}function f$e(){}function d$e(){}function h$e(){}function p$e(){}function g$e(){}function b$e(){}function m$e(){}function v$e(){}function y$e(){}function w$e(){}function x$e(){}function S$e(){}function E$e(){}function k$e(){}function C$e(){}function I$e(){}function T$e(){}function A$e(){}function P$e(){}function O$e(){}function _$e(){}function M$e(){}function D$e(){}function N$e(){}function j$e(){}function Jfe(){}function R$e(){}function $$e(){}function L$e(){}function F$e(){}function B$e(){}function V$e(){}function z$e(){}function U$e(){}function H$e(){}function q$e(){}function W$e(){}function G$e(){}function X$e(){}function K$e(){}function ede(){}function Y$e(){}function Q$e(){}function Z$e(){}function J$e(){}function eLe(){}function tLe(){}function tde(){}function nde(){}function nLe(){}function rde(){}function ide(){}function rLe(){}function iLe(){}function oLe(){}function sLe(){}function aLe(){}function cLe(){}function uLe(){}function lLe(){}function fLe(){}function dLe(){}function hLe(){}function pLe(){}function gLe(){}function bLe(){}function mLe(){}function vLe(){}function yLe(){}function wLe(){}function xLe(){}function SLe(){}function ode(){}function ELe(){}function kLe(){}function CLe(){}function ILe(){}function TLe(){}function ALe(){}function PLe(){}function OLe(){}function _Le(){}function MLe(){}function DLe(){}function NLe(){}function jLe(){}function RLe(){}function $Le(){}function LLe(){}function FLe(){}function BLe(){}function VLe(){}function zLe(){}function ULe(){}function HLe(){}function qLe(){}function WLe(){}function GLe(){}function XLe(){}function KLe(){}function YLe(){}function QLe(){}function ZLe(){}function JLe(){}function eFe(){}function tFe(){}function nFe(){}function rFe(){}function iFe(){}function oFe(){}function sFe(){}function aFe(){}function cFe(){}function uFe(){}function lFe(){}function fFe(){}function dFe(){}function hFe(){}function pFe(){}function gFe(){}function bFe(){}function mFe(){}function vFe(){}function yFe(){}function wFe(){}function xFe(){}function SFe(){}function EFe(){}function kFe(){}function CFe(){}function IG(){}function TG(){}function AG(){}function IFe(){}function TFe(){}function AFe(){}function PFe(){}function sde(){}function OFe(){}function _Fe(){}function wUt(){}function MFe(){}function DFe(){}function NFe(){}function jFe(){}function RFe(){}function $Fe(){}function LFe(){}function FFe(){}function ag(){}function BFe(){}function d3(){}function ade(){}function VFe(){}function zFe(){}function UFe(){}function HFe(){}function qFe(){}function WFe(){}function GFe(){}function XFe(){}function KFe(){}function YFe(){}function QFe(){}function ZFe(){}function JFe(){}function eBe(){}function tBe(){}function nBe(){}function rBe(){}function iBe(){}function oBe(){}function sBe(){}function pt(){}function aBe(){}function cBe(){}function uBe(){}function lBe(){}function fBe(){}function dBe(){}function hBe(){}function pBe(){}function gBe(){}function bBe(){}function mBe(){}function PG(){}function vBe(){}function yBe(){}function RN(){}function cde(){}function wBe(){}function $N(){}function xBe(){}function LN(){}function SBe(){}function ude(){}function EBe(){}function kBe(){}function FN(){}function CBe(){}function IBe(){}function TBe(){}function ABe(){}function PBe(){}function OBe(){}function _Be(){}function lde(){}function MBe(){}function DBe(){}function BN(){}function fde(){}function OG(){}function NBe(){}function jBe(){}function RBe(){}function $Be(){}function xUt(){}function LBe(){}function FBe(){}function BBe(){}function VBe(){}function zBe(){}function UBe(){}function HBe(){}function qBe(){}function WBe(){}function GBe(){}function BS(){}function _G(){}function XBe(){}function KBe(){}function YBe(){}function QBe(){}function ZBe(){}function JBe(){}function eVe(){}function tVe(){}function nVe(){}function rVe(){}function iVe(){}function oVe(){}function sVe(){}function aVe(){}function cVe(){}function uVe(){}function lVe(){}function fVe(){}function dVe(){}function hVe(){}function pVe(){}function gVe(){}function bVe(){}function mVe(){}function vVe(){}function yVe(){}function wVe(){}function xVe(){}function SVe(){}function EVe(){}function kVe(){}function CVe(){}function IVe(){}function TVe(){}function AVe(){}function PVe(){}function OVe(){}function _Ve(){}function MVe(){}function DVe(){}function NVe(){}function jVe(){}function RVe(){}function $Ve(){}function LVe(){}function FVe(){}function BVe(){}function VVe(){}function zVe(){}function UVe(){}function HVe(){}function qVe(){}function WVe(){}function GVe(){}function XVe(){}function KVe(){}function YVe(){}function QVe(){}function ZVe(){}function JVe(){}function eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function aze(){}function cze(){}function uze(){}function lze(){}function fze(){}function dze(){}function hze(){}function pze(){}function gze(){}function bze(){}function mze(){}function vze(){}function yze(){}function wze(){}function xze(){}function Sze(){}function Eze(){}function kze(){}function Cze(){}function Ize(){}function Tze(){}function Aze(){}function Pze(){}function Oze(){}function _ze(){}function Mze(){}function Dze(){}function Nze(){}function jze(){}function Rze(){}function $ze(){}function Lze(){}function Fze(){}function Bze(){}function dde(){}function Vze(){}function zze(){}function MG(){sC()}function Uze(){ML()}function Hze(){wQ()}function qze(){O8()}function Wze(){oye()}function Gze(){Bf()}function Xze(){mve()}function Kze(){vP()}function Yze(){$T()}function Qze(){RT()}function Zze(){fA()}function Jze(){UKe()}function eUe(){W3()}function tUe(){tot()}function nUe(){q5()}function rUe(){pj()}function iUe(){m0()}function oUe(){Wnt()}function sUe(){Aot()}function aUe(){Zwe()}function cUe(){Ye()}function uUe(){fat()}function lUe(){Art()}function fUe(){dat()}function dUe(){pat()}function hUe(){Xnt()}function pUe(){Wlt()}function gUe(){Rot()}function bUe(){trt()}function mUe(){lct()}function vUe(){HKe()}function yUe(){$ye()}function wUe(){MZ()}function xUe(){Knt()}function SUe(){Y1t()}function EUe(){Fbe()}function kUe(){by()}function CUe(){FL()}function IUe(){eL()}function TUe(){Bye()}function AUe(){oy()}function PUe(){IP()}function OUe(){KZ()}function _Ue(){iZ()}function MUe(){m$()}function hde(){Or()}function DUe(){Wme()}function pde(){iF()}function Of(){PJe()}function gde(){oQ()}function NUe(){Cwe()}function bde(e){Ut(e)}function jUe(e){this.a=e}function VN(e){this.a=e}function RUe(e){this.a=e}function $Ue(e){this.a=e}function mde(e){this.a=e}function vde(e){this.a=e}function DG(e){this.a=e}function LUe(e){this.a=e}function FUe(e){this.a=e}function BUe(e){this.a=e}function VUe(e){this.a=e}function zUe(e){this.a=e}function NG(e){this.a=e}function UUe(e){this.a=e}function jG(e){this.a=e}function HUe(e){this.a=e}function RG(e){this.a=e}function qUe(e){this.a=e}function WUe(e){this.a=e}function GUe(e){this.a=e}function XUe(e){this.a=e}function KUe(e){this.a=e}function YUe(e){this.a=e}function QUe(e){this.a=e}function ZUe(e){this.a=e}function JUe(e){this.a=e}function eHe(e){this.a=e}function tHe(e){this.a=e}function yde(e){this.a=e}function wde(e){this.a=e}function zN(e){this.a=e}function yT(e){this.a=e}function nHe(e){this.c=e}function xde(e){this.b=e}function cg(){this.a=[]}function rHe(e,t){e.a=t}function SUt(e,t){e.a=t}function EUt(e,t){e.b=t}function kUt(e,t){e.b=t}function CUt(e,t){e.b=t}function Sde(e,t){e.j=t}function IUt(e,t){e.g=t}function TUt(e,t){e.i=t}function AUt(e,t){e.c=t}function PUt(e,t){e.d=t}function OUt(e,t){e.d=t}function _Ut(e,t){e.c=t}function MUt(e,t){e.c=t}function ug(e,t){e.k=t}function $G(e,t){e.d=t}function DUt(e,t){e.a=t}function Ede(e,t){e.a=t}function kde(e,t){e.c=t}function NUt(e,t){e.a=t}function jUt(e,t){e.f=t}function RUt(e,t){e.f=t}function iHe(e,t){e.e=t}function Cde(e,t){e.g=t}function $Ut(e,t){e.e=t}function LUt(e,t){e.f=t}function FUt(e,t){e.i=t}function UN(e,t){e.i=t}function BUt(e,t){e.b=t}function Ide(e,t){e.o=t}function VUt(e,t){e.r=t}function zUt(e,t){e.a=t}function UUt(e,t){e.b=t}function HUt(e,t){e.n=t}function qUt(e,t){e.a=t}function WUt(e,t){e.a=t}function GUt(e,t){e.c=t}function XUt(e,t){e.c=t}function KUt(e,t){e.d=t}function YUt(e,t){e.e=t}function QUt(e,t){e.e=t}function ZUt(e,t){e.g=t}function JUt(e,t){e.a=t}function eHt(e,t){e.c=t}function tHt(e,t){e.d=t}function nHt(e,t){e.f=t}function rHt(e,t){e.j=t}function iHt(e,t){e.a=t}function oHt(e,t){e.a=t}function sHt(e,t){e.b=t}function oHe(e){e.b=e.a}function sHe(e){e.c=e.d.d}function eC(e){this.d=e}function lg(e){this.a=e}function VS(e){this.a=e}function wT(e){this.a=e}function aHe(e){this.a=e}function Tde(e){this.a=e}function xT(e){this.a=e}function ST(e){this.a=e}function Ade(e){this.a=e}function o1(e){this.a=e}function _v(e){this.a=e}function ET(e){this.a=e}function Pde(e){this.a=e}function Ode(e){this.a=e}function _de(e){this.a=e}function LG(e){this.a=e}function zS(e){this.b=e}function US(e){this.b=e}function Mde(e){this.b=e}function Q(e){this.c=e}function FG(e){this.c=e}function cHe(e){this.a=e}function Dde(e){this.a=e}function Nde(e){this.a=e}function Lr(e){this.a=e}function uHe(e){this.a=e}function jde(e){this.a=e}function Rde(e){this.a=e}function $de(e){this.a=e}function Lde(e){this.a=e}function Fde(e){this.a=e}function lHe(e){this.a=e}function fHe(e){this.a=e}function tC(e){this.a=e}function dHe(e){this.a=e}function hHe(e){this.a=e}function pHe(e){this.a=e}function gHe(e){this.a=e}function bHe(e){this.a=e}function mHe(e){this.a=e}function vHe(e){this.a=e}function yHe(e){this.a=e}function wHe(e){this.a=e}function xHe(e){this.a=e}function SHe(e){this.a=e}function EHe(e){this.a=e}function kHe(e){this.a=e}function CHe(e){this.a=e}function IHe(e){this.a=e}function THe(e){this.a=e}function AHe(e){this.a=e}function PHe(e){this.a=e}function Bde(e){this.a=e}function HN(e){this.a=e}function OHe(e){this.a=e}function _He(e){this.c=e}function MHe(e){this.a=e}function HS(e){this.a=e}function Vde(e){this.a=e}function DHe(e){this.a=e}function NHe(e){this.a=e}function jHe(e){this.a=e}function RHe(e){this.a=e}function $He(e){this.a=e}function LHe(e){this.a=e}function zde(e){this.a=e}function Ude(e){this.a=e}function Hde(e){this.a=e}function qN(e){this.a=e}function WN(e){this.e=e}function qS(e){this.a=e}function FHe(e){this.a=e}function h3(e){this.a=e}function qde(e){this.a=e}function BHe(e){this.a=e}function VHe(e){this.a=e}function zHe(e){this.a=e}function UHe(e){this.a=e}function HHe(e){this.a=e}function qHe(e){this.a=e}function WHe(e){this.a=e}function GHe(e){this.a=e}function XHe(e){this.a=e}function KHe(e){this.a=e}function YHe(e){this.a=e}function Wde(e){this.a=e}function QHe(e){this.a=e}function ZHe(e){this.a=e}function JHe(e){this.a=e}function eqe(e){this.a=e}function tqe(e){this.a=e}function nqe(e){this.a=e}function rqe(e){this.a=e}function iqe(e){this.a=e}function oqe(e){this.a=e}function sqe(e){this.a=e}function aqe(e){this.a=e}function cqe(e){this.a=e}function uqe(e){this.a=e}function lqe(e){this.a=e}function fqe(e){this.a=e}function dqe(e){this.a=e}function hqe(e){this.a=e}function pqe(e){this.a=e}function gqe(e){this.a=e}function bqe(e){this.a=e}function mqe(e){this.a=e}function vqe(e){this.a=e}function yqe(e){this.a=e}function wqe(e){this.a=e}function xqe(e){this.a=e}function Sqe(e){this.a=e}function Eqe(e){this.a=e}function kqe(e){this.a=e}function Cqe(e){this.a=e}function Iqe(e){this.a=e}function Tqe(e){this.a=e}function Aqe(e){this.a=e}function Pqe(e){this.a=e}function Oqe(e){this.a=e}function _qe(e){this.a=e}function Mqe(e){this.a=e}function Dqe(e){this.a=e}function Nqe(e){this.a=e}function jqe(e){this.c=e}function Rqe(e){this.b=e}function $qe(e){this.a=e}function Lqe(e){this.a=e}function Fqe(e){this.a=e}function Bqe(e){this.a=e}function Vqe(e){this.a=e}function zqe(e){this.a=e}function Uqe(e){this.a=e}function Hqe(e){this.a=e}function qqe(e){this.a=e}function Wqe(e){this.a=e}function Gqe(e){this.a=e}function Xqe(e){this.a=e}function Kqe(e){this.a=e}function Yqe(e){this.a=e}function Qqe(e){this.a=e}function Zqe(e){this.a=e}function Jqe(e){this.a=e}function eWe(e){this.a=e}function tWe(e){this.a=e}function nWe(e){this.a=e}function rWe(e){this.a=e}function iWe(e){this.a=e}function qp(e){this.a=e}function p3(e){this.a=e}function oWe(e){this.a=e}function sWe(e){this.a=e}function aWe(e){this.a=e}function cWe(e){this.a=e}function uWe(e){this.a=e}function lWe(e){this.a=e}function fWe(e){this.a=e}function dWe(e){this.a=e}function hWe(e){this.a=e}function pWe(e){this.a=e}function gWe(e){this.a=e}function bWe(e){this.a=e}function mWe(e){this.a=e}function vWe(e){this.a=e}function yWe(e){this.a=e}function wWe(e){this.a=e}function GN(e){this.a=e}function xWe(e){this.f=e}function SWe(e){this.a=e}function EWe(e){this.a=e}function kWe(e){this.a=e}function CWe(e){this.a=e}function IWe(e){this.a=e}function TWe(e){this.a=e}function AWe(e){this.a=e}function PWe(e){this.a=e}function OWe(e){this.a=e}function _We(e){this.a=e}function MWe(e){this.a=e}function DWe(e){this.a=e}function NWe(e){this.a=e}function jWe(e){this.a=e}function RWe(e){this.a=e}function $We(e){this.a=e}function LWe(e){this.a=e}function FWe(e){this.a=e}function BWe(e){this.a=e}function VWe(e){this.a=e}function zWe(e){this.a=e}function UWe(e){this.a=e}function HWe(e){this.a=e}function qWe(e){this.a=e}function WWe(e){this.a=e}function GWe(e){this.a=e}function XWe(e){this.a=e}function KWe(e){this.a=e}function Gde(e){this.a=e}function Xr(e){this.b=e}function YWe(e){this.a=e}function QWe(e){this.a=e}function ZWe(e){this.a=e}function JWe(e){this.a=e}function eGe(e){this.a=e}function tGe(e){this.a=e}function nGe(e){this.a=e}function rGe(e){this.a=e}function kT(e){this.a=e}function iGe(e){this.a=e}function oGe(e){this.b=e}function Xde(e){this.c=e}function XN(e){this.e=e}function sGe(e){this.a=e}function KN(e){this.a=e}function YN(e){this.a=e}function BG(e){this.a=e}function aGe(e){this.d=e}function cGe(e){this.a=e}function Kde(e){this.a=e}function Yde(e){this.a=e}function $b(e){this.e=e}function CT(){this.a=0}function g3(){$Qe(this)}function Fe(){qX(this)}function Un(){Xc(this)}function VG(){$tt(this)}function uGe(){}function Lb(){this.c=lIe}function aHt(e,t){t.Wb(e)}function lGe(e,t){e.b+=t}function cHt(e,t){Li(t,e)}function uHt(e){return e.a}function lHt(e){return e.a}function fHt(e){return e.a}function dHt(e){return e.a}function hHt(e){return e.a}function ee(e){return e.e}function pHt(){return null}function gHt(){return null}function bHt(){Nhe(),nwn()}function mHt(e){e.b.rf(e.e)}function fGe(e,t){t.$c(e.a)}function nC(e,t){e.a=t-e.a}function rC(e,t){e.b=t-e.b}function IT(e,t){e.e=t,t.b=e}function vHt(e,t,s){e.Od(s,t)}function dGe(e){y5(),dne.be(e)}function Qde(e){qd(),this.a=e}function hGe(e){qd(),this.a=e}function pGe(e){qd(),this.a=e}function Zde(e){Xv(),this.a=e}function gGe(){this.a=this}function QN(){this.Bb|=256}function fg(){gZe.call(this)}function Jde(){gZe.call(this)}function ehe(){fg.call(this)}function zG(){fg.call(this)}function ca(){fg.call(this)}function bGe(){fg.call(this)}function TT(){fg.call(this)}function Ic(){fg.call(this)}function iC(){fg.call(this)}function Rn(){fg.call(this)}function ol(){fg.call(this)}function mGe(){fg.call(this)}function vGe(){fg.call(this)}function b3(e){zL(e.c,e.b)}function yHt(e,t){TL(e.a,t)}function wHt(e,t){PQ(e.a,t)}function WS(e,t){Ar(e.e,t)}function xHt(e,t){ro(e.b,t)}function SHt(e,t){aye(e.c,t)}function ZN(e,t){Re(e.a,t)}function EHt(e,t){e.kd().Nb(t)}function yGe(e,t){e.length=t}function wGe(){this.b=new bQe}function Ro(){this.a=new Un}function xGe(){this.a=new Un}function JN(){this.a=new Fe}function UG(){this.a=new Fe}function the(){this.a=new Fe}function Ol(){this.a=new Yo}function dg(){this.a=new Qit}function nhe(){this.a=new IN}function rhe(){this.a=new jKe}function ihe(){this.a=new Fnt}function ohe(){this.a=new rJe}function SGe(){this.a=new lrt}function EGe(){this.a=new Fe}function kGe(){this.a=new Fe}function CGe(){this.a=new Fe}function IGe(){this.a=new Fe}function TGe(){this.d=new Fe}function AGe(){this.a=new Ro}function PGe(){this.b=new Un}function OGe(){this.a=new Un}function _Ge(){this.a=new iUe}function MGe(){this.b=new Fe}function she(){this.e=new Fe}function ahe(e){this.a=csn(e)}function DGe(){this.d=new Fe}function che(){che=H,new Un}function uhe(){ehe.call(this)}function lhe(){JN.call(this)}function NGe(){oR.call(this)}function oC(){uGe.call(this)}function m3(){uGe.call(this)}function HG(){oC.call(this)}function fhe(){m3.call(this)}function jGe(){Fe.call(this)}function RGe(){ynt.call(this)}function $Ge(){ynt.call(this)}function LGe(){mhe.call(this)}function FGe(){mhe.call(this)}function BGe(){mhe.call(this)}function VGe(){vhe.call(this)}function Tc(){ci.call(this)}function dhe(){xBe.call(this)}function hhe(){xBe.call(this)}function zGe(){nXe.call(this)}function UGe(){nXe.call(this)}function HGe(){Un.call(this)}function qGe(){Un.call(this)}function WGe(){Un.call(this)}function GGe(){Ro.call(this)}function qG(){nat.call(this)}function XGe(){QN.call(this)}function WG(){Y1e.call(this)}function GG(){Y1e.call(this)}function phe(){Un.call(this)}function XG(){Un.call(this)}function KGe(){Un.call(this)}function ghe(){BN.call(this)}function YGe(){BN.call(this)}function QGe(){ghe.call(this)}function ZGe(){dde.call(this)}function bhe(e){xKe.call(this,e)}function kHt(e){bhe.call(this,e)}function CHt(e){xKe.call(this,e)}function sC(){sC=H,ine=new E}function KG(){KG=H,one=new gXe}function YG(){YG=H,sne=new bXe}function mhe(){this.a=new Ro}function JGe(){this.a=new Fe}function eXe(){this.j=new Fe}function vhe(){this.a=new Un}function GS(){this.a=new ci}function yhe(){this.a=new kFe}function tXe(){this.a=new iKe}function nXe(){this.a=new PBe}function ej(){ej=H,une=new YQe}function IHt(e){bhe.call(this,e)}function THt(e){bhe.call(this,e)}function rXe(e){kY.call(this,e)}function iXe(e){kY.call(this,e)}function oXe(e){AJe.call(this,e)}function Fb(e){Nv.call(this,e)}function sXe(e){lX.call(this,e)}function whe(e){lX.call(this,e)}function QG(e){Lfn.call(this,e)}function Ws(e){itt.call(this,e)}function aXe(e){Ws.call(this,e)}function v3(){yT.call(this,{})}function cXe(){cXe=H,kyt=new te}function uXe(){uXe=H,w4e=new x}function xhe(){xhe=H,x4e=new O}function tj(){tj=H,TI=new B}function AHt(e,t){e.e=t,Yht(e,t)}function PHt(e,t){e.a=t,Cdn(e)}function ZG(e,t,s){e.a[t.g]=s}function OHt(e,t,s){Bun(s,e,t)}function _Ht(e,t){iXt(t.i,e.n)}function lXe(e,t){Gin(e).td(t)}function MHt(e,t){return e*e/t}function nj(e){s5(),this.a=e}function JG(e){Rbe(),this.a=e}function fXe(e){OJe(),this.a=e}function aC(e){IK(),this.f=e}function eX(e){IK(),this.f=e}function cC(e){e.b=null,e.c=0}function rj(e){Ws.call(this,e)}function ds(e){Ws.call(this,e)}function dXe(e){Ws.call(this,e)}function tX(e){itt.call(this,e)}function _t(e){return Ut(e),e}function DHt(e){return new zN(e)}function NHt(e){return new Gv(e)}function Ae(e){return Ut(e),e}function AT(e){return Ut(e),e}function hXe(e,t){return e.g-t.g}function jHt(e,t){e.a.ec().Kc(t)}function XS(e){Ws.call(this,e)}function Gt(e){Ws.call(this,e)}function Gs(e){Ws.call(this,e)}function pXe(e){Ws.call(this,e)}function y3(e){Ws.call(this,e)}function G1(e){Ws.call(this,e)}function gu(e){Ut(e),this.a=e}function uC(e){j0e(e,e.length)}function lC(e){return e.b==e.c}function Mv(e){return!!e&&e.b}function RHt(e){return!!e&&e.k}function $Ht(e){return!!e&&e.j}function She(e){return Ut(e),e}function LHt(e){return Ut(e),e}function Ehe(e){return Dg(e),e}function Lw(e){Ws.call(this,e)}function PT(e){Ws.call(this,e)}function Fd(e){Ws.call(this,e)}function nX(e){Ws.call(this,e)}function Ln(e){Ws.call(this,e)}function rX(e){upe.call(this,e,0)}function iX(){gge.call(this,12,3)}function gXe(){jG.call(this,null)}function bXe(){jG.call(this,null)}function mXe(){throw ee(new Rn)}function vXe(){throw ee(new Rn)}function FHt(){throw ee(new Rn)}function BHt(){throw ee(new Rn)}function VHt(){throw ee(new Rn)}function zHt(){throw ee(new Rn)}function oX(){this.a=Fn(Hn(Fo))}function w3(e){qd(),this.a=Hn(e)}function yXe(e){Sbe(e),IT(e.a,e.a)}function wXe(e,t){e.Td(t),t.Sd(e)}function ne(e,t){return $nt(e,t)}function UHt(e,t){return e.a-t.a}function HHt(e,t){return e.a-t.a}function qHt(e,t){return e.a-t.a}function WHt(e,t){return t in e.a}function khe(e){ds.call(this,e)}function Che(e){ds.call(this,e)}function Bd(e){Gt.call(this,e)}function X1(){wT.call(this,"")}function fC(){wT.call(this,"")}function Wp(){wT.call(this,"")}function Dv(){wT.call(this,"")}function KS(e){zS.call(this,e)}function xXe(e){KS.call(this,e)}function Ihe(e){Yj.call(this,e)}function GHt(e,t,s){e.b.mf(t,s)}function XHt(e,t,s){t.td(e.a[s])}function KHt(e,t,s){t.we(e.a[s])}function ij(e,t){return nbe(e,t)}function SXe(e){return e.a?e.b:0}function YHt(e){return e.a?e.b:0}function QHt(e,t){return e.b=t,e}function EXe(e,t){return e.c=t,e}function kXe(e,t){return e.f=t,e}function ZHt(e,t){return e.g=t,e}function The(e,t){return e.a=t,e}function Ahe(e,t){return e.f=t,e}function JHt(e,t){return e.k=t,e}function Phe(e,t){return e.a=t,e}function eqt(e,t){return e.e=t,e}function tqt(e,t){e.b=!0,e.d=t}function nqt(e,t){e.b=new Ss(t)}function Ohe(e,t){return e.e=t,e}function rqt(e,t){return e.f=t,e}function iqt(e,t){return e?0:t-1}function oqt(e,t){m0(),Rs(t,e)}function sqt(e,t){return e?t-1:0}function CXe(e,t){return e?0:t-1}function IXe(e){qtt.call(this,e)}function _he(e){qtt.call(this,e)}function TXe(e){wsn.call(this,e)}function AXe(){F1e.call(this,"")}function PXe(){PXe=H,Nyt=mln()}function oj(){oj=H,y5()}function OXe(){throw ee(new Rn)}function _Xe(){throw ee(new Rn)}function MXe(){throw ee(new Rn)}function DXe(){throw ee(new Rn)}function NXe(){throw ee(new Rn)}function jXe(){this.b=0,this.a=0}function Bb(e,t){return e.b=t,e}function sj(e,t){return e.a=t,e}function dC(e,t){return e.a=t,e}function Vb(e,t){return e.c=t,e}function YS(e,t){return e.c=t,e}function zb(e,t){return e.d=t,e}function Ub(e,t){return e.e=t,e}function Mhe(e,t){return e.f=t,e}function QS(e,t){return e.b=t,e}function Ft(e,t){return e.b=t,e}function bt(e,t){return e.c=t,e}function mt(e,t){return e.d=t,e}function vt(e,t){return e.e=t,e}function aqt(e,t){return e.f=t,e}function yt(e,t){return e.g=t,e}function wt(e,t){return e.a=t,e}function xt(e,t){return e.i=t,e}function St(e,t){return e.j=t,e}function cqt(e,t){return e.j=t,e}function RXe(e,t){return e.k=t,e}function uqt(e,t){return e.b-t.b}function lqt(e,t){return e.g-t.g}function fqt(e,t){return e.s-t.s}function dqt(e,t){return t.Vf(e)}function hqt(e,t,s){aQt(e.a,t,s)}function aj(e){dK.call(this,e)}function Gp(e){fm.call(this,e)}function $Xe(e){JK.call(this,e)}function LXe(e){JK.call(this,e)}function Qo(){this.a=0,this.b=0}function FXe(){throw ee(new Rn)}function BXe(){throw ee(new Rn)}function VXe(){throw ee(new Rn)}function zXe(){throw ee(new Rn)}function UXe(){throw ee(new Rn)}function HXe(){throw ee(new Rn)}function qXe(){throw ee(new Rn)}function WXe(){throw ee(new Rn)}function GXe(){throw ee(new Rn)}function XXe(){throw ee(new Rn)}function pqt(){throw ee(new ca)}function gqt(){throw ee(new ca)}function Hb(){Hb=H,Q6t=vun()}function KXe(){KXe=H,Qi=Bln()}function ZS(){ZS=H,uIe=yun()}function YXe(){YXe=H,jEt=wun()}function Dhe(){Dhe=H,ha=Sdn()}function Nhe(){Nhe=H,V0=j5()}function QXe(e,t){e.b=0,iy(e,t)}function bqt(e,t){e.c=t,e.b=!0}function jhe(e,t){for(;e.sd(t););}function ZXe(e,t){return Yct(e.b,t)}function JXe(e,t){return ba(e,t)>0}function sX(e,t){return ba(e,t)<0}function eKe(e){return e.l|e.m<<22}function _f(e){return e.e&&e.e()}function mqt(e){return e?e.i:null}function aX(e){return e?e.d:null}function vqt(e){return e?e.g:null}function cj(e){return e.b!=e.d.c}function Xp(e){return a1(e),e.o}function hC(e){return i0(e),e.a}function Fw(e,t){return e.a+=t,e}function cX(e,t){return e.a+=t,e}function K1(e,t){return e.a+=t,e}function qb(e,t){return e.a+=t,e}function Rhe(e,t,s){e.splice(t,s)}function Bw(e,t){for(;e.ye(t););}function $he(e,t){return e.d[t.p]}function uj(e){this.a=new x3(e)}function Kp(e){this.a=new MK(e)}function tKe(){this.a=new RP(Ike)}function nKe(){this.b=new RP(hke)}function rKe(){this.b=new RP(Mie)}function iKe(){this.b=new RP(Mie)}function OT(e){this.a=new oKe(e)}function lj(e){this.a=0,this.b=e}function Lhe(e){E0t(),mwn(this,e)}function oKe(e){Ern(this,e,yln())}function _T(e){return!e||Ctt(e)}function sKe(e,t){return i0n(e,t)}function yqt(e,t){$Z(Ce(e.a),t)}function wqt(e,t){$Z(Ce(e.a),t)}function MT(e,t){Qw.call(this,e,t)}function JS(e,t){MT.call(this,e,t)}function Fhe(e,t){this.b=e,this.c=t}function Vw(e,t){this.e=e,this.d=t}function aKe(e,t){this.a=e,this.b=t}function cKe(e,t){this.a=e,this.b=t}function uKe(e,t){this.a=e,this.b=t}function lKe(e,t){this.a=e,this.b=t}function fKe(e,t){this.a=e,this.b=t}function dKe(e,t){this.a=e,this.b=t}function hKe(e,t){this.a=e,this.b=t}function pKe(e,t){this.b=e,this.a=t}function gKe(e,t){this.b=e,this.a=t}function bKe(e,t){this.b=e,this.a=t}function mKe(e,t){this.b=e,this.a=t}function vKe(e,t){this.b=e,this.a=t}function yKe(e,t){this.a=e,this.b=t}function zw(e,t){this.g=e,this.i=t}function er(e,t){this.f=e,this.g=t}function uX(e,t){this.a=e,this.b=t}function wKe(e,t){this.a=e,this.f=t}function xKe(e){B1e(e.dc()),this.c=e}function SKe(e){e.c?b1t(e):m1t(e)}function EKe(){rne==null&&(rne=[])}function fj(e){this.b=h(Hn(e),84)}function kKe(e){this.a=h(Hn(e),84)}function CKe(e){this.a=h(Hn(e),14)}function Nv(e){this.a=h(Hn(e),14)}function lX(e){this.b=h(Hn(e),49)}function IKe(e,t){this.b=e,this.c=t}function xqt(e,t){this.a=e,this.b=t}function TKe(e,t){this.a=e,this.b=t}function fX(e,t){this.a=e,this.b=t}function AKe(e,t){return sd(e.b,t)}function Wb(e,t){return ba(e,t)==0}function Sqt(e,t){return ba(e,t)>=0}function pC(e,t){return ba(e,t)!=0}function PKe(e,t){return e>t&&t0?e:t}function vWt(e,t){return e[e.length]=t}function yWt(e,t){return e[e.length]=t}function wWt(e,t){wd||(e.b=t)}function D1e(e){return e.b&&uJ(e),e.a}function N1e(e){return e.b&&uJ(e),e.c}function xWt(e){gc(ypt(e),new Bde(e))}function $Qe(e){e.a=ge(hn,rt,1,8,5,1)}function qX(e){e.c=ge(hn,rt,1,0,5,1)}function bg(e){yR.call(this,e,e,e,e)}function Ss(e){this.a=e.a,this.b=e.b}function j1e(e){return gYt(e.b.Ic(),e.a)}function SWt(e,t){return M$(HK(e.d),t)}function EWt(e,t){return M$(HK(e.g),t)}function kWt(e,t){return M$(HK(e.j),t)}function CWt(e,t){return r2(t,cd(e))}function IWt(e,t){return r2(t,cd(e))}function TWt(e){return e==null?0:ri(e)}function $o(e,t){Vi.call(this,e.b,t)}function AWt(e,t){_n(wa(e.a),Znt(t))}function PWt(e,t){_n(nu(e.a),Jnt(t))}function OWt(e,t,s){rd(s,s.i+e,s.j+t)}function LQe(e,t,s){ui(e.c[t.g],t.g,s)}function _Wt(e,t,s){h(e.c,67).Sh(t,s)}function WX(e,t,s){return ui(e,t,s),s}function R1e(){R1e=H,che(),S4e=new Un}function jn(){jn=H,new FQe,new Fe}function FQe(){new Un,new Un,new Un}function BQe(){BQe=H,lie=new I8(ooe)}function sl(){sl=H,qh=(XKe(),rEt)}function id(){id=H,m.Math.log(2)}function Wj(e){e.j=ge(j4e,Oe,308,0,0,1)}function VQe(e){this.a=e,t0e.call(this,e)}function GX(e){this.a=e,fj.call(this,e)}function XX(e){this.a=e,fj.call(this,e)}function RC(e){Er(),$b.call(this,e)}function co(e,t){TK(e.c,e.c.length,t)}function js(e){return e.at?1:0}function Za(e,t,s){return{l:e,m:t,h:s}}function Kw(e,t,s){return Yme(t,s,e.c)}function MWt(e,t,s){return Fr(e.g,s,t)}function DWt(e,t,s){return Fr(e.k,s,t)}function NWt(e,t){return $u(),t.n.b+=e}function jWt(e,t,s){return Pvn(e,t,s),s}function UQe(e){dY(e,null),hY(e,null)}function RWt(e){Ao(e,null),uo(e,null)}function $Wt(e,t){e.a!=null&&AYe(t,e.a)}function LWt(e,t){return Fr(e.a,t.a,t)}function Ks(e){return new ot(e.a,e.b)}function L1e(e){return new ot(e.c,e.d)}function FWt(e){return new ot(e.c,e.d)}function HQe(e,t){return jvn(e.a,t,null)}function qQe(e,t){Cn(e),e.Ec(h(t,14))}function BWt(e,t,s){e.c.Tc(t,h(s,133))}function VWt(e,t,s){e.c.ei(t,h(s,133))}function $C(e,t){return Ymn(e.c,e.b,t)}function ue(e,t){return e!=null&&YQ(e,t)}function Gj(e){this.b=e,this.a=new Fe}function WQe(e){this.b=new Xk,this.a=e}function F1e(e){_pe.call(this),this.a=e}function GQe(){xj.call(this,"Range",2)}function XQe(){tA.call(this,null,null)}function KQe(){eR.call(this,null,null)}function YQe(){er.call(this,"INSTANCE",0)}function QQe(){Ave(),this.a=new RP(KSe)}function B1e(e){if(!e)throw ee(new TT)}function V1e(e){if(!e)throw ee(new Ic)}function z1e(e){if(!e)throw ee(new ca)}function ZQe(e){e.a=new An,e.c=new An}function JQe(e){return Rl(e,0,e.length)}function KX(e,t){return Pin(e.Ic(),t)!=-1}function zWt(e,t){return new pZe(e.Ic(),t)}function Xj(e){return e.Ob()?e.Pb():null}function U1e(e,t){return e.a.zc(t)!=null}function YX(e,t,s){return e.a[t.g][s.g]}function UWt(e,t,s,a){ui(e.a[t.g],s.g,a)}function HWt(e,t,s){h(e.Kb(s),163).Nb(t)}function eZe(e,t){e.c&&(f0e(t),Cnt(t))}function qWt(e,t){e.q.setHours(t),H8(e,t)}function tZe(e,t,s){e.a=t^1502,e.b=s^iee}function WWt(e,t,s){return s?t!=0:t!=e-1}function GWt(e,t){return e.e[t.c.p][t.p]}function XWt(e,t){return e.a[t.c.p][t.p]}function od(e,t){return e.a[t.c.p][t.p]}function KWt(e,t){return e.j[t.p]=F1n(t)}function YWt(e,t){return zge(e.f,t.og())}function QWt(e,t){return zge(e.b,t.og())}function ZWt(e,t){return e.a0?t*t/e:t*t*100}function SGt(e,t){return e>0?t/(e*e):t*100}function EGt(e,t,s){return e.a*=t,e.b*=s,e}function Fv(e,t,s){return e.a+=t,e.b+=s,e}function iA(e,t,s){return e.a-=t,e.b-=s,e}function dpe(e,t){return e.a=t.a,e.b=t.b,e}function rR(e){return e.a=-e.a,e.b=-e.b,e}function _Ze(e){e.d=new TZe(e),e.e=new Un}function MZe(){this.a=new Kv,this.b=new Kv}function DZe(e){this.c=e,_c(e,0),Mc(e,0)}function NZe(e){ci.call(this),g8(this,e)}function jZe(){er.call(this,"GROW_TREE",0)}function mu(e,t,s){tu.call(this,e,t,s,2)}function RZe(e,t){yC(),tA.call(this,e,t)}function hpe(e,t){Y1(),eR.call(this,e,t)}function $Ze(e,t){Y1(),eR.call(this,e,t)}function LZe(e,t){Y1(),hpe.call(this,e,t)}function rK(e,t){sl(),vR.call(this,e,t)}function FZe(e,t){sl(),rK.call(this,e,t)}function ppe(e,t){sl(),rK.call(this,e,t)}function BZe(e,t){sl(),ppe.call(this,e,t)}function gpe(e,t){sl(),vR.call(this,e,t)}function VZe(e,t){sl(),vR.call(this,e,t)}function zZe(e,t){sl(),gpe.call(this,e,t)}function kGt(e,t){return e.c.Dc(h(t,133))}function bpe(e,t,s){return aF(FA(e,t),s)}function CGt(e,t,s){return t.Lk(e.e,e.c,s)}function IGt(e,t,s){return t.Mk(e.e,e.c,s)}function iK(e,t){return h0(e.e,h(t,48))}function TGt(e){return e==null?null:Ayn(e)}function AGt(e){return e==null?null:Kfn(e)}function PGt(e){return e==null?null:Bs(e)}function OGt(e){return e==null?null:Bs(e)}function VC(){VC=H,__=new zGe,new UGe}function zC(){zC=H,i9=new Xr("root")}function c5(e,t,s){var a;a=e.Xc(t),a.Rb(s)}function _Gt(e,t,s){m$(),e.Ye(t)&&s.td(e)}function MGt(e,t,s){E8(wa(e.a),t,Znt(s))}function DGt(e,t,s){E8(nu(e.a),t,Jnt(s))}function mpe(e,t,s){d$.call(this,e,t,s,null)}function UZe(e,t,s){d$.call(this,e,t,s,null)}function oA(e,t){this.c=e,Vw.call(this,e,t)}function iR(e,t){this.a=e,oA.call(this,e,t)}function NGt(e,t){this.d=e,sHe(this),this.b=t}function vpe(e,t){RY.call(this,e),this.a=t}function ype(e,t){RY.call(this,e),this.a=t}function wpe(){nat.call(this),this.Bb|=Bo}function a1(e){e.o==null&&m1n(e)}function HZe(e,t){wd||Re(e.a,t)}function qZe(e){return e>8?0:e+1}function It(e){return GC(e==null||Rv(e)),e}function Xe(e){return GC(e==null||$v(e)),e}function Fn(e){return GC(e==null||to(e)),e}function Hd(e,t){return WK(t,y2e),e.f=t,e}function jGt(e,t){return $T(),B5(t.d.i,e)}function RGt(e,t){return W3(),new L1t(t,e)}function $Gt(e,t){return h(lm(e.b,t),149)}function LGt(e,t){return h(lm(e.c,t),227)}function oK(e){return h(st(e.a,e.b),286)}function WZe(e){return new ot(e.c,e.d+e.a)}function GZe(e){return $u(),PQe(h(e,196))}function FGt(e,t,s){return e.ue(t,s)<=0?s:t}function BGt(e,t,s){return e.ue(t,s)<=0?t:s}function XZe(e,t,s){++e.j,e.Ci(t,e.ji(t,s))}function sA(e,t,s){++e.j,e.Fi(),MY(e,t,s)}function VGt(e,t){t.a?s0n(e,t):ZX(e.a,t.b)}function Vi(e,t){Xr.call(this,e),this.a=t}function zGt(e){Gme.call(this,0,0),this.f=e}function xpe(e,t,s){return s=Hu(e,t,3,s),s}function Spe(e,t,s){return s=Hu(e,t,6,s),s}function Epe(e,t,s){return s=Hu(e,t,9,s),s}function KZe(e,t,s){var a;a=e.Xc(t),a.Rb(s)}function YZe(e,t,s){return Nwe(e.c,e.b,t,s)}function kpe(e,t){return(t&Ir)%e.d.length}function QZe(e,t){this.c=e,fm.call(this,t)}function ZZe(e,t){this.a=e,oGe.call(this,t)}function aA(e,t){this.a=e,oGe.call(this,t)}function Cpe(e){this.q=new m.Date(cm(e))}function JZe(e){this.a=(Rf(e,Iy),new Va(e))}function eJe(e){this.a=(Rf(e,Iy),new Va(e))}function Ipe(e){return l0(wQt(Ps(e)?jl(e):e))}function sK(e){return String.fromCharCode(e)}function UGt(e){return e==null?null:e.message}function HGt(e,t,s){return e.apply(t,s)}function Tpe(e,t,s){return M3(e,h(t,22),s)}function tJe(e,t,s){return e.a+=Rl(t,0,s),e}function Ape(e,t){var s;return s=e.e,e.e=t,s}function qGt(e,t){var s;s=e[ree],s.call(e,t)}function WGt(e,t){var s;s=e[ree],s.call(e,t)}function Bv(e,t){e.a.Tc(e.b,t),++e.b,e.c=-1}function GGt(e,t){return Zt(),e==t?0:e?1:-1}function XGt(e,t){return aX(Nut(e.a,t,!0))}function KGt(e,t){return aX(jut(e.a,t,!0))}function lf(e,t){return ij(new Array(t),e)}function YGt(e,t,s){hg(),rHe(e,t.Ce(e.a,s))}function Vv(){Vv=H,CSe=Tt((xu(),hb))}function UC(e){uin.call(this,e,(y$(),vne))}function Ppe(e,t){Xde.call(this,e),this.a=t}function aK(e,t){Xde.call(this,e),this.a=t}function nJe(){oR.call(this),this.a=new Qo}function Ope(){this.d=new Qo,this.e=new Qo}function _pe(){this.n=new Qo,this.o=new Qo}function rJe(){this.b=new Qo,this.c=new Fe}function iJe(){this.a=new Fe,this.b=new Fe}function oJe(){this.a=new IN,this.b=new wGe}function sJe(){this.a=new kGe,this.c=new vG}function oR(){this.n=new m3,this.i=new T3}function aJe(){this.a=new rUe,this.b=new U$e}function cJe(){this.b=new Ro,this.a=new Ro}function uJe(){this.a=new Fe,this.d=new Fe}function lJe(){this.b=new nKe,this.a=new qLe}function fJe(){this.b=new Un,this.a=new Un}function dJe(){dJe=H,nSe=new x,DB=new x}function cA(e){return!e.a&&(e.a=new X),e.a}function Rr(e,t){return e.a+=t.a,e.b+=t.b,e}function no(e,t){return e.a-=t.a,e.b-=t.b,e}function Mpe(e,t,s){return s=Hu(e,t,11,s),s}function QGt(e,t,s){s!=null&&R$(t,aZ(e,s))}function ZGt(e,t,s){s!=null&&$$(t,aZ(e,s))}function Dpe(e,t,s,a){yR.call(this,e,t,s,a)}function O3(e,t,s,a){$e.call(this,e,t,s,a)}function zv(e,t){ds.call(this,vI+e+Qg+t)}function JGt(e,t){var s;return s=t.Ch(e.a),s}function hJe(e,t){return Fr(e.a,t,"")==null}function eXt(e,t){return e.n.a=(Ut(t),t+10)}function tXt(e,t){return e.n.a=(Ut(t),t+10)}function nXt(e,t){return t==e||o6(WL(t),e)}function rXt(e,t){return $T(),!B5(t.d.i,e)}function pJe(e){Xc(e.e),e.d.b=e.d,e.d.a=e.d}function uA(e){e.b?uA(e.b):e.f.c.xc(e.e,e.d)}function iXt(e,t){gg(e.f)?u1n(e,t):Yln(e,t)}function Npe(e,t,s,a){$e.call(this,e,t,s,a)}function gJe(e,t,s,a){Npe.call(this,e,t,s,a)}function bJe(e,t,s,a){OR.call(this,e,t,s,a)}function cK(e,t,s,a){OR.call(this,e,t,s,a)}function jpe(e,t,s,a){OR.call(this,e,t,s,a)}function mJe(e,t,s,a){cK.call(this,e,t,s,a)}function Rpe(e,t,s,a){cK.call(this,e,t,s,a)}function Ht(e,t,s,a){jpe.call(this,e,t,s,a)}function vJe(e,t,s,a){Rpe.call(this,e,t,s,a)}function yJe(e,t,s,a){M0e.call(this,e,t,s,a)}function wJe(e,t,s){this.a=e,upe.call(this,t,s)}function xJe(e,t,s){this.c=t,this.b=s,this.a=e}function oXt(e,t,s){return e.d=h(t.Kb(s),163)}function $pe(e,t,s){return e.lastIndexOf(t,s)}function Lpe(e,t){return e.vj().Ih().Dh(e,t)}function Fpe(e,t){return e.vj().Ih().Fh(e,t)}function SJe(e,t){return Ut(e),Pe(e)===Pe(t)}function kt(e,t){return Ut(e),Pe(e)===Pe(t)}function uK(e,t){return aX(Nut(e.a,t,!1))}function lK(e,t){return aX(jut(e.a,t,!1))}function sXt(e,t){return e.b.sd(new tYe(e,t))}function aXt(e,t){return e.b.sd(new nYe(e,t))}function EJe(e,t){return e.b.sd(new rYe(e,t))}function cXt(e,t){return _e(t,(Ye(),WO),e)}function uXt(e,t,s){return go(e[t.b],e[s.b])}function lXt(e,t){return Qa(e.a.d.p,t.a.d.p)}function fXt(e,t){return Qa(t.a.d.p,e.a.d.p)}function kJe(e){return e.c?Os(e.c.a,e,0):-1}function dXt(e,t){return go(e.c-e.s,t.c-t.s)}function hXt(e){return e<100?null:new Gp(e)}function HC(e){return e==db||e==Hh||e==Ra}function CJe(e){this.a=e,Sh(),bc(Date.now())}function IJe(e){this.c=e,FX.call(this,gF,0)}function Bpe(e,t){this.c=e,LK.call(this,e,t)}function TJe(e,t){mYt.call(this,e,e.length,t)}function Vpe(e,t){if(!e)throw ee(new Gt(t))}function AJe(e){qd(),this.a=(Mt(),new KS(e))}function lA(e){u5(),this.d=e,this.a=new g3}function PJe(){PJe=H,IEt=ge(hn,rt,1,0,5,1)}function OJe(){OJe=H,cEt=ge(hn,rt,1,0,5,1)}function zpe(){zpe=H,TEt=ge(hn,rt,1,0,5,1)}function qd(){qd=H,new Qde((Mt(),Mt(),Wo))}function fK(e,t){var s;return s=t,!!ome(e,s)}function pXt(e,t){wd||t&&(e.d=t)}function _Je(e,t){return ue(t,14)&&S1t(e.c,t)}function gXt(e,t,s){return h(e.c,67).gk(t,s)}function sR(e,t,s){return h(e.c,67).hk(t,s)}function bXt(e,t,s){return CGt(e,h(t,330),s)}function Upe(e,t,s){return IGt(e,h(t,330),s)}function mXt(e,t,s){return gft(e,h(t,330),s)}function MJe(e,t,s){return ufn(e,h(t,330),s)}function qC(e,t){return t==null?null:nL(e.b,t)}function Hpe(e){return $v(e)?(Ut(e),e):e.ke()}function aR(e){return!isNaN(e)&&!isFinite(e)}function dK(e){ZQe(this),Dl(this),Cs(this,e)}function vu(e){qX(this),r0e(this.c,0,e.Nc())}function DJe(e){wu(e.a),Tot(e.c,e.b),e.b=null}function hK(){hK=H,G4e=new Wn,jyt=new ir}function vXt(e){return gd(),tr((sot(),Hyt),e)}function yXt(e){return y$(),tr(($ot(),Lyt),e)}function wXt(e){return xL(),tr((_it(),Yyt),e)}function xXt(e){return C$(),tr((Mit(),Qyt),e)}function SXt(e){return ZL(),tr((Zat(),Zyt),e)}function EXt(e){return jf(),tr((rot(),twt),e)}function kXt(e){return Kc(),tr((iot(),rwt),e)}function CXt(e){return pc(),tr((oot(),owt),e)}function IXt(e){return hF(),tr((pQe(),Awt),e)}function TXt(e){return mm(),tr((Fot(),Owt),e)}function AXt(e){return Z3(),tr((Bot(),Mwt),e)}function cR(e,t){if(!e)throw ee(new Gt(t))}function qpe(e,t){if(!e)throw ee(new dXe(t))}function PXt(e){return _8(),tr((Vot(),jwt),e)}function OXt(e){return hj(),tr((Vrt(),Rwt),e)}function _Xt(e){return I$(),tr((Dit(),Jwt),e)}function MXt(e){return h8(),tr((not(),f2t),e)}function DXt(e){return us(),tr((kst(),g2t),e)}function NXt(e){return U5(),tr((zot(),w2t),e)}function Wpe(e){var t;return t=new TGe,t.b=e,t}function pK(e){var t;return t=new DW,t.e=e,t}function jXt(e,t,s){return hg(),e.a.Od(t,s),t}function NJe(e,t,s){this.d=e,this.b=s,this.a=t}function al(e,t,s){this.a=e,this.b=t,this.c=s}function jJe(e,t,s){this.a=e,this.b=t,this.c=s}function RJe(e,t,s){this.a=e,this.b=t,this.c=s}function Gpe(e,t,s){this.a=e,this.b=t,this.c=s}function $Je(e,t,s){this.a=e,this.b=t,this.c=s}function Xpe(e,t,s){this.a=e,this.b=t,this.c=s}function uR(e,t,s){this.b=e,this.a=t,this.c=s}function LJe(e,t,s){this.b=e,this.a=t,this.c=s}function FJe(e,t,s){this.b=e,this.c=t,this.a=s}function lR(e,t,s){this.e=t,this.b=e,this.d=s}function gK(e){yR.call(this,e.d,e.c,e.a,e.b)}function Kpe(e){yR.call(this,e.d,e.c,e.a,e.b)}function RXt(e){return nn(),tr((Wst(),A2t),e)}function $Xt(e){return R5(),tr((Nit(),D2t),e)}function LXt(e){return ys(),tr((gQe(),N2t),e)}function FXt(e){return Z$(),tr((Uot(),$2t),e)}function BXt(e){return pd(),tr((Hot(),W2t),e)}function VXt(e){return YL(),tr((zat(),ext),e)}function zXt(e){return bm(),tr((kot(),J2t),e)}function UXt(e){return y2(),tr((mst(),X2t),e)}function HXt(e){return j$(),tr((hot(),ixt),e)}function qXt(e){return B3(),tr((hit(),rxt),e)}function WXt(e){return P$(),tr((pot(),oxt),e)}function GXt(e){return HA(),tr((pit(),sxt),e)}function XXt(e){return _g(),tr((got(),cxt),e)}function KXt(e){return e4(),tr((Fst(),txt),e)}function YXt(e){return b$(),tr((vit(),nxt),e)}function QXt(e){return BL(),tr((Rst(),uxt),e)}function ZXt(e){return RA(),tr((yit(),lxt),e)}function JXt(e){return CP(),tr(($st(),fxt),e)}function eKt(e){return a6(),tr((Lst(),dxt),e)}function tKt(e){return Jo(),tr((fct(),hxt),e)}function nKt(e){return L5(),tr((wot(),pxt),e)}function rKt(e){return g1(),tr((yot(),bxt),e)}function iKt(e){return s$(),tr((mit(),mxt),e)}function oKt(e){return gl(),tr((vst(),vxt),e)}function sKt(e){return RL(),tr((zst(),I4t),e)}function aKt(e){return fy(),tr((qot(),T4t),e)}function cKt(e){return M8(),tr((gst(),A4t),e)}function uKt(e){return E2(),tr((Uat(),P4t),e)}function lKt(e){return Mg(),tr((aot(),O4t),e)}function fKt(e){return LA(),tr((bit(),_4t),e)}function dKt(e){return as(),tr((uot(),D4t),e)}function hKt(e){return G$(),tr((cot(),N4t),e)}function pKt(e){return _A(),tr((git(),j4t),e)}function gKt(e){return X5(),tr((lot(),R4t),e)}function bKt(e){return H$(),tr((fot(),$4t),e)}function mKt(e){return Y$(),tr((dot(),L4t),e)}function vKt(e){return gm(),tr((bot(),Y4t),e)}function yKt(e){return u8(),tr((xit(),eSt),e)}function wKt(e){return Wd(),tr((Sit(),aSt),e)}function xKt(e){return ud(),tr((Eit(),uSt),e)}function SKt(e){return Mf(),tr((wit(),kSt),e)}function EKt(e){return sm(),tr((kit(),_St),e)}function kKt(e){return n6(),tr((Jot(),MSt),e)}function CKt(e){return $8(),tr((Bst(),NSt),e)}function IKt(e){return YR(),tr((Cit(),USt),e)}function TKt(e){return B$(),tr((Tit(),KSt),e)}function AKt(e){return n$(),tr((Iit(),HSt),e)}function PKt(e){return lL(),tr((mot(),QSt),e)}function OKt(e){return v$(),tr((Pit(),ZSt),e)}function _Kt(e){return oP(),tr((Sot(),JSt),e)}function MKt(e){return PL(),tr((Zot(),u5t),e)}function DKt(e){return W$(),tr((xot(),l5t),e)}function NKt(e){return fL(),tr((Eot(),f5t),e)}function jKt(e){return h6(),tr((bst(),I5t),e)}function RKt(e){return lP(),tr((vot(),T5t),e)}function $Kt(e){return bj(),tr((Frt(),A5t),e)}function LKt(e){return mj(),tr((Lrt(),O5t),e)}function FKt(e){return MA(),tr((Oit(),_5t),e)}function BKt(e){return TP(),tr((wst(),M5t),e)}function VKt(e){return mC(),tr((Brt(),X5t),e)}function zKt(e){return ZA(),tr((Ait(),K5t),e)}function UKt(e){return Lf(),tr((yst(),t6t),e)}function HKt(e){return dp(),tr((Hat(),r6t),e)}function qKt(e){return Dh(),tr((Ust(),i6t),e)}function WKt(e){return hy(),tr((Hst(),l6t),e)}function GKt(e){return cs(),tr((Est(),T6t),e)}function XKt(e){return hd(),tr((Cot(),A6t),e)}function KKt(e){return cp(),tr((Kot(),P6t),e)}function YKt(e){return LL(),tr((Vst(),O6t),e)}function QKt(e){return m1(),tr((Iot(),M6t),e)}function ZKt(e){return zu(),tr((Yot(),N6t),e)}function JKt(e){return vy(),tr((Yat(),j6t),e)}function eYt(e){return h2(),tr((xst(),R6t),e)}function tYt(e){return lo(),tr((qst(),$6t),e)}function nYt(e){return ou(),tr((Sst(),L6t),e)}function rYt(e){return He(),tr((pst(),F6t),e)}function iYt(e){return xu(),tr((Qot(),H6t),e)}function oYt(e){return su(),tr((Qat(),q6t),e)}function sYt(e){return gL(),tr((est(),W6t),e)}function aYt(e){return l2(),tr((tst(),K6t),e)}function cYt(e,t){return Ut(e),e+(Ut(t),t)}function uYt(e){return l6(),tr((Vat(),aEt),e)}function lYt(e){return!e.e&&(e.e=new Fe),e.e}function fYt(e){return!e.c&&(e.c=new BS),e.c}function ff(){ff=H,z2t=new t$e,U2t=new n$e}function fA(){fA=H,WB=new vje,GB=new yje}function u5(){u5=H,fke=(He(),Xt),YV=rn}function BJe(e,t,s){this.a=e,this.b=t,this.c=s}function Ype(e,t,s){this.a=e,this.b=t,this.c=s}function Qpe(e,t,s){this.a=e,this.b=t,this.c=s}function VJe(e,t,s){this.a=e,this.b=t,this.c=s}function zJe(e,t,s){this.a=e,this.b=t,this.c=s}function Z1(e,t,s){this.e=e,this.a=t,this.c=s}function bK(e,t){this.c=e,this.a=t,this.b=t-e}function UJe(e,t,s){sl(),lge.call(this,e,t,s)}function mK(e,t,s){sl(),X0e.call(this,e,t,s)}function HJe(e,t,s){sl(),mK.call(this,e,t,s)}function Zpe(e,t,s){sl(),mK.call(this,e,t,s)}function qJe(e,t,s){sl(),Zpe.call(this,e,t,s)}function Jpe(e,t,s){sl(),X0e.call(this,e,t,s)}function e0e(e,t,s){sl(),X0e.call(this,e,t,s)}function WJe(e,t,s){sl(),Jpe.call(this,e,t,s)}function GJe(e,t,s){sl(),e0e.call(this,e,t,s)}function dYt(e,t){return Sh(),_n(Ce(e.a),t)}function hYt(e,t){return Sh(),_n(Ce(e.a),t)}function _3(e,t){return Hn(e),Hn(t),new aet(e,t)}function pYt(e,t){return Hn(e),Hn(t),new cet(e,t)}function gYt(e,t){return Hn(e),Hn(t),new vKe(e,t)}function vK(e,t){return Hn(e),Hn(t),new cKe(e,t)}function yK(e){return pn(e.b!=0),fl(e,e.a.a)}function bYt(e){return pn(e.b!=0),fl(e,e.c.b)}function t0e(e){this.d=e,sHe(this),this.b=cQt(e.d)}function XJe(e,t){this.c=e,this.b=t,this.a=!1}function KJe(){this.a=";,;",this.b="",this.c=""}function mYt(e,t,s){Ket.call(this,t,s),this.a=e}function YJe(e,t,s){this.b=e,fQe.call(this,t,s)}function n0e(e,t,s){this.c=e,wj.call(this,t,s)}function r0e(e,t,s){wye(s,0,e,t,s.length,!1)}function Re(e,t){return e.c[e.c.length]=t,!0}function h(e,t){return GC(e==null||YQ(e,t)),e}function dA(e){var t;return t=new Fe,ube(t,e),t}function hA(e){var t;return t=new ci,iQ(t,e),t}function QJe(e){var t;return t=new rhe,iQ(t,e),t}function vYt(e){var t;return t=new Ro,ube(t,e),t}function i0e(e){var t,s;t=e.b,s=e.c,e.b=s,e.c=t}function o0e(e){var t,s;s=e.d,t=e.a,e.d=t,e.a=s}function kh(e,t,s,a,l){e.b=t,e.c=s,e.d=a,e.a=l}function s0e(e,t,s,a,l){e.d=t,e.c=s,e.a=a,e.b=l}function yYt(e,t){t&&(e.b=t,e.a=(i0(t),t.a))}function ZJe(e,t,s,a,l){e.c=t,e.d=s,e.b=a,e.a=l}function fR(e,t){return Jnn(e),e.a*=t,e.b*=t,e}function wYt(e,t){return pj(),Qa(e.d.p,t.d.p)}function xYt(e,t){return Qa(pet(e.d),pet(t.d))}function SYt(e,t){return t==(He(),Xt)?e.c:e.d}function EYt(e){return new ot(e.c+e.b,e.d+e.a)}function JJe(e){return e!=null&&!RQ(e,E9,k9)}function eet(e){return hg(),ge(hn,rt,1,e,5,1)}function kYt(e,t){return(lut(e)<<4|lut(t))&Ii}function Uv(e,t){var s;e.n&&(s=t,Re(e.f,s))}function WC(e,t,s){var a;a=new Gv(s),Nf(e,t,a)}function tet(e,t,s){this.a=e,Ww.call(this,t,s)}function net(e,t,s){this.a=e,Ww.call(this,t,s)}function a0e(e,t,s){i5.call(this,e,t),this.b=s}function pA(e,t,s){C1e.call(this,e,t),this.c=s}function dR(e,t,s){C1e.call(this,e,t),this.c=s}function c0e(e){zpe(),BN.call(this),this.oh(e)}function ret(){k5(),iZt.call(this,(Yp(),Ql))}function iet(){iet=H,yoe=(Mt(),new LG(Xte))}function GC(e){if(!e)throw ee(new XS(null))}function u0e(e){if(e.c.e!=e.a)throw ee(new ol)}function l0e(e){if(e.e.c!=e.b)throw ee(new ol)}function oet(e){return Er(),new Ch(0,e)}function set(e){V0t(),this.a=new iX,qat(this,e)}function wK(e){this.b=e,this.a=Jb(this.b.a).Ed()}function aet(e,t){this.b=e,this.a=t,MG.call(this)}function cet(e,t){this.a=e,this.b=t,MG.call(this)}function uet(){this.b=Ae(Xe(ft((Bf(),jne))))}function hR(){hR=H,new cve((YG(),sne),(KG(),one))}function fet(){fet=H,O4e=ge(Do,Oe,20,256,0,1)}function f0e(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function dr(e,t){return wi(e,t,e.c.b,e.c),!0}function CYt(e,t){var s;return s=e.c,Abe(e,t),s}function d0e(e,t){return t<0?e.g=-1:e.g=t,e}function det(e,t){Ket.call(this,t,1040),this.a=e}function IYt(e,t){return $g(Po($g(e.a).a,t.a))}function t0(e,t){return l0(jye(Ps(e)?jl(e):e,t))}function c1(e,t){return l0(Uft(Ps(e)?jl(e):e,t))}function Hv(e,t){return l0(idn(Ps(e)?jl(e):e,t))}function TYt(e,t){return jR(),ZQ(e,t),new jtt(e,t)}function Zb(e,t){return j8(e,new i5(t.a,t.b))}function AYt(e){return!Zo(e)&&e.c.i.c==e.d.i.c}function gA(e){return e==0||isNaN(e)?e:e<0?-1:1}function PYt(e,t){return e.c=t)throw ee(new uhe)}function oQt(e,t){(t.Bb&fa)!=0&&!e.a.o&&(e.a.o=t)}function sQt(e,t,s){return-Qa(e.f[t.p],e.f[s.p])}function aQt(e,t,s){return ro(e,new E3(t.a,s.a))}function YC(e,t){return pan(FA(e,t))?t.Lh():null}function S0e(e,t,s){return s=Hu(e,h(t,48),7,s),s}function E0e(e,t,s){return s=Hu(e,h(t,48),3,s),s}function Jc(e,t,s){return e.a=-1,cpe(e,t.g+1,s),e}function Vet(e,t,s){this.a=e,Kj.call(this,t,s,22)}function zet(e,t,s){this.a=e,Kj.call(this,t,s,14)}function Uet(e,t,s,a){sl(),xrt.call(this,e,t,s,a)}function Het(e,t,s,a){sl(),xrt.call(this,e,t,s,a)}function k0e(e,t,s,a){this.a=e,d$.call(this,e,t,s,a)}function vg(e){Qp(),this.a=0,this.b=e-1,this.c=1}function qet(e){return Er(),new sY(10,e,0)}function D3(e){var t;return t=e.i,t||(e.i=e.bc())}function C0e(e){var t;return t=e.c,t||(e.c=e.Dd())}function Jb(e){return e.c?e.c:e.c=e.Id()}function _K(e){return e.d?e.d:e.d=e.Jd()}function Wet(e,t){return Hn(t),e.a.Ad(t)&&!e.b.Ad(t)}function Get(e){return e!=null&&NK(e)&&e.dm!==Z}function I0e(e){return!Array.isArray(e)&&e.dm===Z}function cQt(e){return ue(e,14)?h(e,14).Wc():e.Ic()}function T0e(e){return e.Oc(ge(hn,rt,1,e.gc(),5,1))}function uQt(e,t){return GGt((Ut(e),e),(Ut(t),t))}function A0e(e,t){return go((Ut(e),e),(Ut(t),t))}function lQt(e,t){return Za(e.l&t.l,e.m&t.m,e.h&t.h)}function fQt(e,t){return Za(e.l|t.l,e.m|t.m,e.h|t.h)}function dQt(e,t){return Za(e.l^t.l,e.m^t.m,e.h^t.h)}function Xet(e,t){return ba(e,t)<0?-1:ba(e,t)>0?1:0}function P0e(e,t){this.e=e,this.d=(t&64)!=0?t|Yd:t}function Ket(e,t){this.c=0,this.d=e,this.b=t|64|Yd}function IR(e){this.b=new Va(11),this.a=(Jw(),e)}function MK(e){this.b=null,this.a=(Jw(),e||H4e)}function mn(e){this.a=(Net(),byt),this.d=h(Hn(e),49)}function O0e(e){e?gve(e,(Sh(),R4e)):Sh()}function Yet(e){return Dc(),h(e,11).e.c.length!=0}function Qet(e){return Dc(),h(e,11).g.c.length!=0}function TR(e,t){return uP(e,(Ut(t),new lHe(t)))}function AR(e,t){return uP(e,(Ut(t),new fHe(t)))}function _0e(e,t){if(e==null)throw ee(new y3(t))}function hQt(e){if(!e)throw ee(new ca);return e.d}function pQt(e){return e.e?Gge(e.e):null}function Zet(e,t,s){return C2(),$5(e,t)&&$5(e,s)}function gQt(e,t){return W3(),go(t.a.o.a,e.a.o.a)}function QC(e){return ou(),!e.Fc(_1)&&!e.Fc(F0)}function PR(e){return new ot(e.c+e.b/2,e.d+e.a/2)}function Jet(e){this.a=blt(e.a),this.b=new vu(e.b)}function ett(e){this.b=e,A3.call(this,e),mZe(this)}function ttt(e){this.b=e,nA.call(this,e),vZe(this)}function Wi(e,t,s,a,l){$Y.call(this,e,t,s,a,l,-1)}function ZC(e,t,s,a,l){NA.call(this,e,t,s,a,l,-1)}function $e(e,t,s,a){_i.call(this,e,t,s),this.b=a}function ntt(e){JYe.call(this,e,!1),this.a=!1}function OR(e,t,s,a){pA.call(this,e,t,s),this.b=a}function M0e(e,t,s,a){this.b=e,_i.call(this,t,s,a)}function Wv(e,t,s){this.a=e,O3.call(this,t,s,5,6)}function bQt(e,t,s){e.a.Mb(s)&&(e.b=!0,t.td(s))}function D0e(e){e.d||(e.d=e.b.Ic(),e.c=e.b.gc())}function yo(e,t){for(Ut(t);e.Ob();)t.td(e.Pb())}function N0e(e){var t;for(t=e;t.f;)t=t.f;return t}function mQt(e,t,s){return ui(t,0,m0e(t[0],s[0])),t}function f5(e,t){var s;return s=e.a.gc(),Vge(t,s),s-t}function J1(e,t,s,a){var l;l=e.i,l.i=t,l.a=s,l.b=a}function vQt(e,t,s){t.Ze(s,Ae(Xe(qn(e.b,s)))*e.a)}function DK(e,t){return t.fh()?h0(e.b,h(t,48)):t}function yQt(e,t){return kt(e.substr(0,t.length),t)}function sd(e,t){return to(t)?eY(e,t):!!ks(e.f,t)}function yg(e){return new mn(new K1e(e.a.length,e.a))}function wQt(e){return Za(~e.l&cu,~e.m&cu,~e.h&E1)}function NK(e){return typeof e===GP||typeof e===IJ}function Xc(e){e.f=new CQe(e),e.g=new IQe(e),HR(e)}function JC(e){Lv(e.b!=-1),tp(e.c,e.a=e.b),e.b=-1}function rtt(e,t){this.b=e,nHe.call(this,e.b),this.a=t}function Zw(e,t,s){v0(),this.e=e,this.d=t,this.a=s}function itt(e){Wj(this),this.g=e,BR(this),this._d()}function ott(e,t){Xv(),xqt.call(this,e,oL(new gu(t)))}function _R(e,t){return Er(),new K0e(e,t,0)}function jK(e,t){return Er(),new K0e(6,e,t)}function xQt(e,t,s){l5(s,e.a.c.length),Nl(e.a,s,t)}function we(e,t,s,a){jct(t,s,e.length),SQt(e,t,s,a)}function SQt(e,t,s,a){var l;for(l=t;l0?m.Math.log(e/t):-100}function IQt(e){return e==pi?kO:e==Pi?"-INF":""+e}function TQt(e){return e==pi?kO:e==Pi?"-INF":""+e}function $K(e){return new Rt(null,AQt(e,e.length))}function att(e){e.a=null,e.e=null,Xc(e.b),e.d=0,++e.c}function Hn(e){if(e==null)throw ee(new iC);return e}function Gv(e){if(e==null)throw ee(new iC);this.a=e}function F0e(e,t){$b.call(this,1),this.a=e,this.b=t}function LK(e,t){this.d=e,bn.call(this,e),this.e=t}function B0e(e,t,s){this.c=e,this.a=t,Mt(),this.b=s}function em(e){this.d=(Ut(e),e),this.a=0,this.c=gF}function mA(e,t){wi(e.d,t,e.b.b,e.b),++e.a,e.c=null}function vA(e,t){return J$(e.a,t,(Zt(),tb))==null}function AQt(e,t){return znn(t,e.length),new det(e,t)}function PQt(e,t){return go(e.c.c+e.c.b,t.c.c+t.c.b)}function yA(e,t){qQe(e,ue(t,152)?t:h(t,1909).bl())}function tm(e,t){mi(fc(e.Mc(),new x$e),new Sqe(t))}function ctt(e,t){return e.c?ctt(e.c,t):Re(e.b,t),e}function OQt(e,t,s){var a;return a=ty(e,t),xY(e,t,s),a}function V0e(e,t){var s;return s=e.slice(0,t),nbe(s,e)}function utt(e,t,s){var a;for(a=0;a=e.g}function qK(e,t,s){var a;return a=rQ(e,t,s),dwe(e,a)}function zQt(e,t,s){h(t.b,63),gc(t.a,new Ype(e,s,t))}function wtt(e){Ope.call(this),this.a=new Qo,this.c=e}function xtt(e){this.b=new Fe,this.a=new Fe,this.c=e}function W0e(e){this.a=new Fe,this.c=new Fe,this.e=e}function Ml(e){this.c=new Qo,this.a=new Fe,this.b=e}function Stt(e){this.c=e,this.a=new ci,this.b=new ci}function Ett(e){che(),this.b=new Fe,this.a=e,pvn(this,e)}function WK(e,t){if(!e)throw ee(new y3(t));return e}function Ut(e){if(e==null)throw ee(new iC);return e}function UQt(e){if(e.p!=3)throw ee(new Ic);return e.e}function HQt(e){if(e.p!=4)throw ee(new Ic);return e.e}function qQt(e){if(e.p!=4)throw ee(new Ic);return e.j}function WQt(e){if(e.p!=3)throw ee(new Ic);return e.j}function GQt(e){if(e.p!=6)throw ee(new Ic);return e.f}function XQt(e){if(e.p!=6)throw ee(new Ic);return e.k}function KQt(e){return!e.a&&(e.a=new _i(B0,e,4)),e.a}function nm(e){return!e.d&&(e.d=new _i(rs,e,1)),e.d}function N3(e,t){var s;s=e.a.length,ty(e,s),xY(e,s,t)}function ktt(e,t){var s;++e.j,s=e.Qi(),e.Di(e.ji(s,t))}function Ctt(e){return e?e.dc():!e.Ic().Ob()}function YQt(e){return sw?eY(sw,e):!1}function e8(e){return m.Math.sqrt(e.a*e.a+e.b*e.b)}function Th(e,t){return Pe(e)===Pe(t)||e!=null&&Pr(e,t)}function Itt(e,t,s){this.a=e,Cge.call(this,8,t,null,s)}function G0e(e,t,s){this.a=e,Xde.call(this,t),this.b=s}function X0e(e,t,s){XN.call(this,t),this.a=e,this.b=s}function K0e(e,t,s){$b.call(this,e),this.a=t,this.b=s}function Ttt(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function Y0e(e){this.c=e,this.b=e.a.d.a,ope(e.a.e,this)}function Att(e){rge(e.a),e.b=ge(hn,rt,1,e.b.length,5,1)}function t8(e){e.c?e.c.He():(e.d=!0,Dpn(e))}function i0(e){e.c?i0(e.c):(Rg(e),e.d=!0)}function QQt(e){return 0>=e?new Bhe:yrn(e-1)}function hs(e){return!e.a&&!!e.c?e.c.b:e.a}function Ptt(e){var t,s;return t=e.c.i.c,s=e.d.i.c,t==s}function ZQt(e,t){return Qa(t.j.c.length,e.j.c.length)}function rm(e,t){return l5(t,e.a.c.length),st(e.a,t)}function JQt(e,t){e.c<0||e.b.b=0?e.wh(s):xye(e,t)}function tZt(e,t){_n((!e.a&&(e.a=new aA(e,e)),e.a),t)}function Xv(){Xv=H,qd(),ane=new oY((Mt(),Mt(),Wo))}function GK(){GK=H,qd(),y4e=new Ghe((Mt(),Mt(),OB))}function nZt(e,t,s){return X3(),s.kg(e,h(t.ad(),146))}function rZt(e,t){PK(h(t.b,63),e),gc(t.a,new Vde(e))}function iZt(e){this.a=(Ut(Yn),Yn),this.b=e,new phe}function Ott(e,t){this.b=e,LK.call(this,e,t),mZe(this)}function _tt(e,t){this.b=e,Bpe.call(this,e,t),vZe(this)}function Mtt(){eye.call(this,zl,(ZS(),uIe)),fmn(this)}function Dtt(){eye.call(this,Jg,(YXe(),jEt)),nvn(this)}function Ntt(){er.call(this,"DELAUNAY_TRIANGULATION",0)}function DR(e,t,s,a){zw.call(this,e,s),this.a=t,this.f=a}function Q0e(e,t,s,a){zw.call(this,e,t),this.d=s,this.a=a}function jtt(e,t){tGt.call(this,wrn(Hn(e),Hn(t))),this.a=t}function im(e){return e.c==-2&&eHt(e,pfn(e.g,e.b)),e.c}function Z0e(e){return!e.b&&(e.b=new KN(new XG)),e.b}function Rtt(e,t){return hR(),new cve(new wZe(e),new yZe(t))}function Fr(e,t,s){return to(t)?ps(e,t,s):ec(e.f,t,s)}function oZt(e,t,s,a){e.a=Ru(e.a,0,t)+(""+a)+ZT(e.a,s)}function wu(e){Lv(e.c!=-1),e.d.Yc(e.c),e.b=e.c,e.c=-1}function $tt(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function n8(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function g5(e){return!e.a&&(e.a=new xXe(e.c.tc())),e.a}function Ltt(e){return!e.b&&(e.b=new KS(e.c.ec())),e.b}function Ftt(e){return!e.d&&(e.d=new zS(e.c.Ac())),e.d}function b5(e,t){var s;return s=zK("",e),s.n=t,s.i=1,s}function Ah(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function Ia(e,t){return Pe(e)===Pe(t)||e!=null&&Pr(e,t)}function sZt(e,t){return Zt(),h(t.b,20).aa&&++a,a}function ZK(e,t,s){var a,l;return a=Xwe(e),l=t.Fh(s,a),l}function m5(e){return e.e==N6&&QUt(e,wan(e.g,e.b)),e.e}function wA(e){return e.f==N6&&nHt(e,cun(e.g,e.b)),e.f}function Gtt(e){return!e.b&&(e.b=new $e(Hi,e,12,3)),e.b}function v5(e){if(iu(e.d),e.d.d!=e.c)throw ee(new ol)}function Xtt(e){return GC(e==null||NK(e)&&e.dm!==Z),e}function FR(e,t){if(e==null)throw ee(new y3(t));return e}function Ktt(e,t){this.a=e,NGt.call(this,e,h(e.d,14).Xc(t))}function Ytt(e,t,s,a){this.a=e,this.c=t,this.d=s,this.b=a}function Qtt(e,t,s,a){this.a=e,this.c=t,this.d=s,this.b=a}function Ztt(e,t,s,a){this.a=e,this.b=t,this.c=s,this.d=a}function Jtt(e,t,s,a){this.a=e,this.b=t,this.c=s,this.d=a}function wg(e,t,s,a){this.e=e,this.a=t,this.c=s,this.d=a}function ent(e,t,s,a){sl(),Hit.call(this,t,s,a),this.a=e}function tnt(e,t,s,a){sl(),Hit.call(this,t,s,a),this.a=e}function nnt(e,t,s,a){this.b=e,this.c=a,FX.call(this,t,s)}function JK(e){this.f=e,this.c=this.f.e,e.f>0&&ift(this)}function Dl(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function ige(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function BR(e){return e.n&&(e.e!==agt&&e._d(),e.j=null),e}function rnt(e){return pn(e.b=0&&kt(e.substr(s,t.length),t)}function xnt(e,t){return ue(t,146)&&kt(e.b,h(t,146).og())}function XZt(e,t){return e.a?t.Rg().Ic():h(t.Rg(),67).Uh()}function ks(e,t){return Lct(e,t,_Jt(e,t==null?0:e.b.se(t)))}function KZt(){return I$(),re(ne(jSe,1),je,418,0,[Dne,VB])}function YZt(){return xL(),re(ne(oSe,1),je,422,0,[xne,iSe])}function QZt(){return C$(),re(ne(aSe,1),je,421,0,[sSe,Sne])}function ZZt(){return R5(),re(ne(M2t,1),je,504,0,[$O,qne])}function JZt(){return s$(),re(ne(h6e,1),je,414,0,[Cre,d6e])}function eJt(){return HA(),re(ne(Q5e,1),je,413,0,[gV,Y5e])}function tJt(){return B3(),re(ne(q5e,1),je,333,0,[E4,FO])}function nJt(){return b$(),re(ne(H5e,1),je,417,0,[U5e,lre])}function rJt(){return LA(),re(ne(ZEe,1),je,415,0,[rie,iie])}function iJt(){return _A(),re(ne(nke,1),je,374,0,[sie,ZO])}function oJt(){return RA(),re(ne(e6e,1),je,473,0,[J5e,mV])}function sJt(){return Mf(),re(ne(ESt,1),je,513,0,[Qy,D0])}function aJt(){return u8(),re(ne(J4t,1),je,516,0,[ZI,QI])}function cJt(){return Wd(),re(ne(sSt,1),je,509,0,[Ym,wp])}function uJt(){return ud(),re(ne(cSt,1),je,508,0,[ub,Ed])}function lJt(){return sm(),re(ne(OSt,1),je,448,0,[N0,ox])}function fJt(){return YR(),re(ne(Eke,1),je,474,0,[wie,Ske])}function dJt(){return n$(),re(ne(Cke,1),je,419,0,[xie,kke])}function hJt(){return B$(),re(ne(Ike,1),je,487,0,[sz,fE])}function pJt(){return v$(),re(ne(Ake,1),je,420,0,[Tke,Cie])}function gJt(){return MA(),re(ne(sCe,1),je,424,0,[jie,hz])}function bJt(){return ZA(),re(ne(ACe,1),je,423,0,[gz,TCe])}function mJt(e,t){var s;s=h(Ot(t,(zC(),i9)),34),jpt(e,s)}function Snt(e,t){zUt(this,new ot(e.a,e.b)),UUt(this,hA(t))}function sm(){sm=H,N0=new g1e(u4,0),ox=new g1e(l4,1)}function Wd(){Wd=H,Ym=new d1e(l4,0),wp=new d1e(u4,1)}function r8(e,t,s,a){ui(e.c[t.g],s.g,a),ui(e.c[s.g],t.g,a)}function rY(e,t,s,a){ui(e.c[t.g],t.g,s),ui(e.b[t.g],t.g,a)}function o0(e,t,s,a,l,f,v){return new EY(e.e,t,s,a,l,f,v)}function qR(e,t,s,a){return s>=0?e.eh(t,s,a):e.Ng(null,s,a)}function iY(e){return e.b.b==0?e.a._e():yK(e.b)}function vJt(e){if(e.p!=0)throw ee(new Ic);return pC(e.f,0)}function yJt(e){if(e.p!=0)throw ee(new Ic);return pC(e.k,0)}function uge(e){return Pe(e.a)===Pe((oQ(),boe))&&Kmn(e),e.a}function oY(e){this.a=(Mt(),ue(e,53)?new Ihe(e):new Yj(e))}function Ent(e){this.a=h(Hn(e),270),this.b=(Mt(),new epe(e))}function sY(e,t,s){Er(),$b.call(this,e),this.b=t,this.a=s}function lge(e,t,s){sl(),XN.call(this,t),this.a=e,this.b=s}function knt(e,t){oR.call(this),dbe(this),this.a=e,this.c=t}function Kv(){THt.call(this,new x3(ny(12))),B1e(!0),this.a=2}function WR(e,t){return FR(e,"set1"),FR(t,"set2"),new TKe(e,t)}function l1(e,t){if(t==null)throw ee(new iC);return ian(e,t)}function GR(e,t){return oit(t),frn(e,ge(Pn,rr,24,t,15,1),t)}function wJt(e,t){tZe(e,On($i(t0(t,24),yF)),On($i(t,yF)))}function xJt(e){return Po(c1(bc(Su(e,32)),32),bc(Su(e,32)))}function $i(e,t){return l0(lQt(Ps(e)?jl(e):e,Ps(t)?jl(t):t))}function ad(e,t){return l0(fQt(Ps(e)?jl(e):e,Ps(t)?jl(t):t))}function Ta(e,t){return t==null?Xs(ks(e.f,null)):wC(e.g,t)}function SJt(e){return e.b==0?null:(pn(e.b!=0),fl(e,e.a.a))}function ki(e){return Math.max(Math.min(e,Ir),-2147483648)|0}function Cnt(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function i8(e,t){var s,a;return s=t,a=new Jt,d0t(e,s,a),a.d}function EJt(e,t){var s;return s=trn(e.f,t),Rr(rR(s),e.f.d)}function kJt(e,t){var s=fne[e.charCodeAt(0)];return s==null?e:s}function fge(e,t,s){var a;a=e.Tg(t),a>=0?e.nh(a,s):Gye(e,t,s)}function aY(e,t,s,a){var l;l=new nJe,t.a[s.g]=l,M3(e.b,a,l)}function XR(e,t,s){this.c=new Fe,this.e=e,this.f=t,this.b=s}function Int(e,t,s){this.i=new Fe,this.b=e,this.g=t,this.a=s}function Tnt(e){oR.call(this),dbe(this),this.a=e,this.c=!0}function CJt(e,t){return R3(),e==Gi(Nh(t))||e==Gi(g0(t))}function e2(e,t,s){QR(),e&&Fr(hoe,e,t),e&&Fr(P_,e,s)}function Ant(e,t){var s;for(Hn(t),s=e.a;s;s=s.c)t.Od(s.g,s.i)}function SA(e,t){var s;s=e.q.getHours(),e.q.setDate(t),H8(e,s)}function Pnt(e){var t;return t=new uj(ny(e.length)),Jbe(t,e),t}function IJt(e){function t(){}return t.prototype=e||{},new t}function TJt(e,t){return nct(e,t)?(Zst(e),!0):!1}function KR(e){return e.Db>>16!=3?null:h(e.Cb,34)}function cd(e){return e.Db>>16!=9?null:h(e.Cb,34)}function Ont(e){return e.Db>>16!=6?null:h(e.Cb,80)}function AJt(e){if(e.qe())return null;var t=e.n;return kB[t]}function Yv(e,t){if(e<0||e>t)throw ee(new ds(d2e+e+h2e+t))}function cY(e,t){return l0(dQt(Ps(e)?jl(e):e,Ps(t)?jl(t):t))}function uY(e,t){return m.Math.abs(e)=0?e.gh(s):jZ(e,t)}function Nnt(e){return e.Db>>16!=7?null:h(e.Cb,234)}function jnt(e){return e.Db>>16!=7?null:h(e.Cb,160)}function Rnt(e){return e.Db>>16!=3?null:h(e.Cb,147)}function Gi(e){return e.Db>>16!=11?null:h(e.Cb,34)}function Qv(e){return e.Db>>16!=17?null:h(e.Cb,26)}function w5(e){return e.Db>>16!=6?null:h(e.Cb,234)}function $nt(e,t){var s=e.a=e.a||[];return s[t]||(s[t]=e.le(t))}function PJt(e){return!e.a&&(e.a=new $e(bi,e,10,11)),e.a.i>0}function o8(e,t,s,a,l,f){return new p1(e.e,t,e.Xi(),s,a,l,f)}function Lnt(e){this.a=e,this.b=ge(Q4t,Oe,1916,e.e.length,0,2)}function Fnt(){this.a=new s1,this.e=new Ro,this.g=0,this.i=0}function Bnt(e,t){Wj(this),this.f=t,this.g=e,BR(this),this._d()}function hge(e){return z1e(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Vnt(e){return z1e(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function EA(e,t,s){return e.a=Ru(e.a,0,t)+(""+s)+ZT(e.a,t),e}function OJt(e,t,s){return Re(e.a,(jR(),ZQ(t,s),new zw(t,s))),e}function znt(e,t,s){this.a=t,this.c=e,this.b=(Hn(s),new vu(s))}function Unt(e,t){this.a=e,this.c=Ks(this.a),this.b=new UR(t)}function _Jt(e,t){var s;return s=e.a.get(t),s==null?new Array:s}function MJt(e){var t;return Rg(e),t=new Ro,Kr(e,new EHe(t))}function Hnt(e,t,s){this.a=t,this.c=e,this.b=(Hn(s),new vu(s))}function ps(e,t,s){return t==null?ec(e.f,null,s):vm(e.g,t,s)}function pge(e,t){return Ret(e.a,t)?R0e(e,h(t,22).g,null):null}function DJt(e){return kQ(),Zt(),h(e.a,79).d.e!=0}function qnt(){qnt=H,vyt=nr((ej(),re(ne(myt,1),je,532,0,[une])))}function Wnt(){Wnt=H,F4t=Jc(new Xi,(us(),Us),(ys(),nV))}function Gnt(){Gnt=H,B4t=Jc(new Xi,(us(),Us),(ys(),nV))}function Xnt(){Xnt=H,tSt=Mr(new Xi,(us(),Us),(ys(),NI))}function $u(){$u=H,iSt=Mr(new Xi,(us(),Us),(ys(),NI))}function Knt(){Knt=H,oSt=Mr(new Xi,(us(),Us),(ys(),NI))}function fY(){fY=H,lSt=Mr(new Xi,(us(),Us),(ys(),NI))}function QR(){QR=H,hoe=new Un,P_=new Un,Wqt(Dyt,new IBe)}function qt(e,t){if(e<0||e>=t)throw ee(new ds(d2e+e+h2e+t))}function Bn(e,t){if(e<0||e>=t)throw ee(new Che(d2e+e+h2e+t))}function uo(e,t){e.d&&hc(e.d.e,e),e.d=t,e.d&&Re(e.d.e,e)}function Ao(e,t){e.c&&hc(e.c.g,e),e.c=t,e.c&&Re(e.c.g,e)}function gs(e,t){e.c&&hc(e.c.a,e),e.c=t,e.c&&Re(e.c.a,e)}function Rs(e,t){e.i&&hc(e.i.j,e),e.i=t,e.i&&Re(e.i.j,e)}function dY(e,t){e.a&&hc(e.a.k,e),e.a=t,e.a&&Re(e.a.k,e)}function hY(e,t){e.b&&hc(e.b.f,e),e.b=t,e.b&&Re(e.b.f,e)}function Ynt(e,t){zQt(e,e.b,e.c),h(e.b.b,63),t&&h(t.b,63).b}function NJt(e,t){var s;s=e.q.getHours(),e.q.setMonth(t),H8(e,s)}function Qnt(e,t){var s;return s=new Ml(e),t.c[t.c.length]=s,s}function $3(e){this.c=new ci,this.b=e.b,this.d=e.c,this.a=e.a}function pY(e){this.a=m.Math.cos(e),this.b=m.Math.sin(e)}function Sg(e,t,s,a){this.c=e,this.d=a,dY(this,t),hY(this,s)}function gY(e,t){ue(e.Cb,87)&&my(eu(h(e.Cb,87)),4),za(e,t)}function ZR(e,t){ue(e.Cb,179)&&(h(e.Cb,179).tb=null),za(e,t)}function jJt(e,t){Pme(e,t),ue(e.Cb,87)&&my(eu(h(e.Cb,87)),2)}function RJt(e,t){var s,a;s=t.c,a=s!=null,a&&N3(e,new Gv(t.c))}function Znt(e){var t,s;return s=(ZS(),t=new Lb,t),P5(s,e),s}function Jnt(e){var t,s;return s=(ZS(),t=new Lb,t),P5(s,e),s}function ert(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function $Jt(e){var t;t=Psn(h(Ot(e,(oy(),Tie)),377)),t.cg(e)}function trt(){trt=H,qSt=Jc(new Xi,(n6(),e9),($8(),fie))}function LJt(e){if(e.p!=2)throw ee(new Ic);return On(e.f)&Ii}function FJt(e){if(e.p!=2)throw ee(new Ic);return On(e.k)&Ii}function nrt(e){var t;return Rg(e),t=(Jw(),Jw(),q4e),A$(e,t)}function rrt(e,t,s){var a;Jct(t,s,e.c.length),a=s-t,Rhe(e.c,t,a)}function Ph(e,t,s){Jct(t,s,e.gc()),this.c=e,this.a=t,this.b=s-t}function Lt(e,t){this.b=(Ut(e),e),this.a=(t&Ty)==0?t|64|Yd:t}function bY(e,t){if(ro(e.a,t),t.d)throw ee(new Ws(Egt));t.d=e}function gge(e,t){CHt.call(this,new x3(ny(e))),Rf(t,tgt),this.a=t}function BJt(e,t){return Xet(bc(e.q.getTime()),bc(t.q.getTime()))}function Aa(e,t){return Ho(),HY(t)?new gR(t,e):new QT(t,e)}function ld(e){return Ls(re(ne(Ui,1),Oe,8,0,[e.i.n,e.n,e.a]))}function VJt(){return gd(),re(ne(uu,1),je,132,0,[tSe,Wu,Ry])}function zJt(){return jf(),re(ne($y,1),je,230,0,[Zs,Ha,Js])}function UJt(){return Kc(),re(ne(nwt,1),je,455,0,[ch,T0,vf])}function HJt(){return pc(),re(ne(iwt,1),je,456,0,[Uf,A0,yf])}function qJt(){return h8(),re(ne(XSe,1),je,376,0,[$ne,Rne,Lne])}function WJt(){return Mg(),re(ne(QEe,1),je,372,0,[Ky,YEe,nie])}function GJt(){return G$(),re(ne(tke,1),je,373,0,[JEe,oie,eke])}function XJt(){return as(),re(ne(M4t,1),je,446,0,[XI,$c,rc])}function KJt(){return X5(),re(ne(ike,1),je,334,0,[aie,rke,KI])}function YJt(){return H$(),re(ne(ake,1),je,336,0,[ske,cie,oke])}function QJt(){return Y$(),re(ne(cke,1),je,375,0,[uie,uE,Yy])}function ZJt(){return j$(),re(ne(G5e,1),je,335,0,[W5e,pV,fre])}function JJt(){return P$(),re(ne(K5e,1),je,416,0,[dre,X5e,hre])}function een(){return _g(),re(ne(axt,1),je,444,0,[pre,Q6,G2])}function ten(){return gm(),re(ne(K4t,1),je,447,0,[XV,YI,KV])}function nen(){return lL(),re(ne(YSt,1),je,436,0,[kie,Sie,Eie])}function ren(){return fL(),re(ne(Xke,1),je,378,0,[Gke,Oie,Wke])}function ien(){return oP(),re(ne(_ke,1),je,377,0,[az,Pke,Oke])}function oen(){return bm(),re(ne(tre,1),je,358,0,[Vm,O0,Bm])}function sen(){return g1(),re(ne(gxt,1),je,301,0,[VO,K2,k4])}function aen(){return L5(),re(ne(kre,1),je,292,0,[Sre,Ere,BO])}function cen(){return W$(),re(ne(Hke,1),je,293,0,[Pie,Uke,zke])}function uen(){return lP(),re(ne(Mie,1),je,430,0,[lz,fz,dz])}function len(){return m1(),re(ne(N8e,1),je,332,0,[Cz,kp,g9])}function fen(){return hd(),re(ne(S8e,1),je,271,0,[gE,Jy,bE])}function den(e,t){return y1n(e,t,ue(t,97)&&(h(t,17).Bb&Bo)!=0)}function hen(e,t,s){var a;return a=Im(e,t,!1),a.b<=t&&a.a<=s}function irt(e,t,s){var a;a=new jLe,a.b=t,a.a=s,++t.b,Re(e.d,a)}function pen(e,t){var s;return s=(Ut(e),e).g,spe(!!s),Ut(t),s(t)}function L3(e){return e.d==(k5(),Hz)&&tHt(e,Egn(e.g,e.b)),e.d}function gen(e){return e.a==(k5(),Hz)&&JUt(e,j1n(e.g,e.b)),e.a}function JR(e,t){Re(e.a,t),e.b=m.Math.max(e.b,t.d),e.d+=t.r}function ort(e){$Qe(this),yGe(this.a,Kbe(m.Math.max(8,e))<<1)}function Lu(e){Er(),$b.call(this,e),this.c=!1,this.a=!1}function srt(e,t,s){$b.call(this,25),this.b=e,this.a=t,this.c=s}function bge(e,t){var s,a;return a=f5(e,t),s=e.a.Xc(a),new IKe(e,s)}function ben(e,t){var s;s=Ae(Xe(e.a.Xe((Or(),kz)))),j0t(e,t,s)}function men(e,t){e.b=e.b|t.b,e.c=e.c|t.c,e.d=e.d|t.d,e.a=e.a|t.a}function ven(e,t){return p8(),e.c==t.c?go(t.d,e.d):go(e.c,t.c)}function yen(e,t){return p8(),e.c==t.c?go(e.d,t.d):go(e.c,t.c)}function wen(e,t){return p8(),e.c==t.c?go(t.d,e.d):go(t.c,e.c)}function xen(e,t){return p8(),e.c==t.c?go(e.d,t.d):go(t.c,e.c)}function am(e){return Hn(e),ue(e,15)?new vu(h(e,15)):dA(e.Ic())}function mge(e,t){return!!e&&!!e.equals?e.equals(t):Pe(e)===Pe(t)}function e$(e){return new Va((Rf(e,PJ),k$(Po(Po(5,e),e/10|0))))}function vge(e){return e.c==null||e.c.length==0?"n_"+e.b:"n_"+e.c}function t$(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function art(e,t){var s;for(s=e+"";s.length>16!=6?null:h(LZ(e),234)}function yge(e,t){return t==0?!!e.o&&e.o.f!=0:KQ(e,t)}function mY(e,t){if(t.$modCount!=e.$modCount)throw ee(new ol)}function Y(e){return pn(e.a=t)throw ee(new ds(Ndn(e,t)));return e}function Crt(e,t,s){if(e<0||ts)throw ee(new ds(udn(e,t,s)))}function ken(e){if(!("stack"in e))try{throw e}catch{}return e}function cm(e){var t;return Ps(e)?(t=e,t==-0?0:t):Nnn(e)}function yY(e){return pn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function Irt(e,t){var s;return s=1-t,e.a[s]=F$(e.a[s],s),F$(e,t)}function Trt(e,t,s){var a;a=(Hn(e),new vu(e)),Qcn(new znt(a,t,s))}function IA(e,t,s){var a;a=(Hn(e),new vu(e)),Zcn(new Hnt(a,t,s))}function n$(){n$=H,xie=new m1e("DFS",0),kke=new m1e("BFS",1)}function Art(){Art=H,lke=Rtt(Ue(1),Ue(4)),uke=Rtt(Ue(1),Ue(2))}function Prt(e){return EK(e.e.Hd().gc()*e.c.Hd().gc(),16,new BUe(e))}function Cen(e){return!!e.u&&wa(e.u.a).i!=0&&!(!!e.n&&nZ(e.n))}function Ien(e){return!!e.a&&nu(e.a.a).i!=0&&!(!!e.b&&rZ(e.b))}function Ort(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function s8(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function wo(e,t){this.a=e,eC.call(this,e),Yv(t,e.gc()),this.b=t}function _rt(e,t){var s;e.e=new yhe,s=wy(t),co(s,e.c),h1t(e,s,0)}function xo(e,t,s,a){var l;l=new ade,l.a=t,l.b=s,l.c=a,dr(e.a,l)}function it(e,t,s,a){var l;l=new ade,l.a=t,l.b=s,l.c=a,dr(e.b,l)}function Ten(e,t,s){var a;a=Ksn();try{return HGt(e,t,s)}finally{Xen(a)}}function t2(e){return bC(),ue(e.g,10)?h(e.g,10):null}function Mrt(e,t){return ue(t,43)?cZ(e.a,h(t,43)):!1}function Drt(e,t){return ue(t,43)?cZ(e.a,h(t,43)):!1}function Nrt(e,t){return ue(t,43)?cZ(e.a,h(t,43)):!1}function jrt(e){var t;return i0(e),t=new Ge,Bw(e.a,new wHe(t)),t}function TA(e){var t,s,a;return t=new dtt,s=nJ(t,e),Kvn(t),a=s,a}function xge(){var e,t,s;return t=(s=(e=new Lb,e),s),Re(yIe,t),t}function r$(e){var t;return i0(e),t=new an,Bw(e.a,new xHe(t)),t}function i$(e){return e.j.c=ge(hn,rt,1,0,5,1),rge(e.c),uZt(e.a),e}function Aen(e,t,s){e.d&&hc(e.d.e,e),e.d=t,e.d&&qv(e.d.e,s,e)}function Pen(e,t,s){return s.f.c.length>0?L0e(e.a,t,s):L0e(e.b,t,s)}function Oen(e){return $u(),!Zo(e)&&!(!Zo(e)&&e.c.i.c==e.d.i.c)}function Gd(e){return h(Mh(e,ge(Une,Aee,18,e.c.length,0,1)),468)}function AA(e){return h(Mh(e,ge(vp,Kg,10,e.c.length,0,1)),213)}function Rrt(e){return h(Mh(e,ge(P2t,Jgt,11,e.c.length,0,1)),1915)}function _en(e){return EK(e.e.Hd().gc()*e.c.Hd().gc(),273,new FUe(e))}function Sge(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function $rt(e,t,s){this.b=new Dqe(this),this.c=e,this.f=t,this.d=s}function Xi(){eXe.call(this),this.j.c=ge(hn,rt,1,0,5,1),this.a=-1}function Lrt(){Lrt=H,O5t=nr((mj(),re(ne(P5t,1),je,546,0,[Nie])))}function Frt(){Frt=H,A5t=nr((bj(),re(ne(oCe,1),je,476,0,[Die])))}function Brt(){Brt=H,X5t=nr((mC(),re(ne(ICe,1),je,523,0,[i_])))}function Vrt(){Vrt=H,Rwt=nr((hj(),re(ne(ASe,1),je,475,0,[Ane])))}function a8(e,t){own(t,e),i0e(e.d),i0e(h(G(e,(Ye(),$V)),205))}function wY(e,t){swn(t,e),o0e(e.d),o0e(h(G(e,(Ye(),$V)),205))}function um(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=s.fe()),a}function c8(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=s.ie()),a}function x5(e,t){var s,a;return s=ty(e,t),a=null,s&&(a=s.ie()),a}function f1(e,t){var s,a;return s=l1(e,t),a=null,s&&(a=fye(s)),a}function Men(e,t,s){var a;return a=A8(s),tF(e.g,a,t),tF(e.i,t,s),t}function Den(e,t){return e.a<=e.b?(t.ud(e.a++),!0):!1}function zrt(e){if(e.e.g!=e.b)throw ee(new ol);return!!e.c&&e.d>0}function Nen(e){if(e.p!=1)throw ee(new Ic);return On(e.f)<<24>>24}function jen(e){if(e.p!=1)throw ee(new Ic);return On(e.k)<<24>>24}function Ren(e){if(e.p!=7)throw ee(new Ic);return On(e.k)<<16>>16}function $en(e){if(e.p!=7)throw ee(new Ic);return On(e.f)<<16>>16}function S5(e){return ue(e,15)?h(e,15).dc():!e.Ic().Ob()}function d1(e){var t;for(t=0;e.Ob();)e.Pb(),t=Po(t,1);return k$(t)}function Urt(e){var t;t=e.Rg(),this.a=ue(t,67)?h(t,67).Uh():t.Ic()}function Hrt(e){var t;return new Lt((t=e.g,t||(e.g=new mde(e))),17)}function qrt(e,t,s,a){return ue(s,53)?new CZe(e,t,s,a):new k0e(e,t,s,a)}function Len(){return y$(),re(ne(MB,1),je,297,0,[vne,Q4e,Z4e,J4e])}function Fen(){return Z3(),re(ne(_wt,1),je,322,0,[OO,PO,_O,MO])}function Ben(){return _8(),re(ne(Nwt,1),je,390,0,[DO,$B,LB,NO])}function Ven(){return mm(),re(ne(Pwt,1),je,401,0,[AO,TO,Ine,Tne])}function zen(){return Z$(),re(ne(R2t,1),je,357,0,[Jne,aV,cV,LO])}function Uen(){return U5(),re(ne(y2t,1),je,400,0,[Fm,Fy,Ly,U2])}function o$(e){Gve(),tZe(this,On($i(t0(e,24),yF)),On($i(e,yF)))}function Eg(e,t){Ut(t),e.b=e.b-1&e.a.length-1,ui(e.a,e.b,t),zlt(e)}function Ege(e,t){Ut(t),ui(e.a,e.c,t),e.c=e.c+1&e.a.length-1,zlt(e)}function sr(e){return pn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function F3(e){return bC(),ue(e.g,145)?h(e.g,145):null}function Hen(e){var t;return e.j==(He(),Sn)&&(t=oht(e),Pc(t,rn))}function qen(){return pd(),re(ne(q2t,1),je,406,0,[S4,W6,G6,ere])}function Wen(){return fy(),re(ne(Jre,1),je,196,0,[qV,Zre,ix,rx])}function Wrt(e,t){return h(Yb(TR(h(Br(e.k,t),14).Mc(),H2)),112)}function Grt(e,t){return h(Yb(AR(h(Br(e.k,t),14).Mc(),H2)),112)}function Gen(e,t){var s;s=t.a,Ao(s,t.c.d),uo(s,t.d.d),ry(s.a,e.n)}function Xrt(e,t,s,a){var l;return l=a[t.g][s.g],Ae(Xe(G(e.a,l)))}function Krt(e,t){var s;for(s=e.j.c.length;s0&&Sa(e.g,0,t,0,e.i),t}function tit(e,t,s){var a;return a=A8(s),Fr(e.b,a,t),Fr(e.c,t,s),t}function nit(e,t){var s;for(s=t;s;)Fv(e,s.i,s.j),s=Gi(s);return e}function rit(e,t){var s;return s=new Dv,e.xd(s),s.a+="..",t.yd(s),s.a}function Oh(e,t){Ho();var s;return s=h(e,65).Hj(),Vfn(s,t),s.Jk(t)}function utn(e,t,s,a,l){var f;f=O1n(l,s,a),Re(t,Ddn(l,f)),kfn(e,l,t)}function iit(e,t,s){e.i=0,e.e=0,t!=s&&(Cct(e,t,s),kct(e,t,s))}function Tge(e,t){var s;s=e.q.getHours(),e.q.setFullYear(t+w0),H8(e,s)}function Age(e,t){var s;return s=xA(dA(new BY(e,t))),mR(new BY(e,t)),s}function wa(e){return e.n||(eu(e),e.n=new Vet(e,rs,e),Es(e)),e.n}function oit(e){if(e<0)throw ee(new pXe("Negative array size: "+e))}function xY(e,t,s){if(s){var a=s.ee();s=a(s)}else s=void 0;e.a[t]=s}function ltn(e,t,s){if(s){var a=s.ee();e.a[t]=a(s)}else delete e.a[t]}function sit(e,t){q5();var s;return s=e.j.g-t.j.g,s!=0?s:0}function l8(e){return pn(e.a=0&&e.a[s]===t[s];s--);return s<0}function lit(e,t){var s;for(s=0;s"+vge(e.d):"e_"+Kb(e)}function _ge(e,t){return e==(nn(),ji)&&t==ji?4:e==ji||t==ji?8:32}function Fu(e,t){var s;return t.b.Kb(rst(e,t.c.Ee(),(s=new CHe(t),s)))}function wi(e,t,s,a){var l;l=new An,l.c=t,l.b=s,l.a=a,a.b=s.a=l,++e.b}function Cg(){Un.call(this),_Ze(this),this.d.b=this.d,this.d.a=this.d}function Mge(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function fit(e){if(!e.c.Sb())throw ee(new ca);return e.a=!0,e.c.Ub()}function dit(e,t){return Ut(t),e.a!=null?tQt(t.Kb(e.a)):_B}function gtn(e,t){var s,a;a=!1;do s=bct(e,t),a=a|s;while(s);return a}function B3(){B3=H,E4=new o1e("LAYER_SWEEP",0),FO=new o1e(_ee,1)}function hit(){hit=H,rxt=nr((B3(),re(ne(q5e,1),je,333,0,[E4,FO])))}function pit(){pit=H,sxt=nr((HA(),re(ne(Q5e,1),je,413,0,[gV,Y5e])))}function git(){git=H,j4t=nr((_A(),re(ne(nke,1),je,374,0,[sie,ZO])))}function bit(){bit=H,_4t=nr((LA(),re(ne(ZEe,1),je,415,0,[rie,iie])))}function mit(){mit=H,mxt=nr((s$(),re(ne(h6e,1),je,414,0,[Cre,d6e])))}function vit(){vit=H,nxt=nr((b$(),re(ne(H5e,1),je,417,0,[U5e,lre])))}function yit(){yit=H,lxt=nr((RA(),re(ne(e6e,1),je,473,0,[J5e,mV])))}function wit(){wit=H,kSt=nr((Mf(),re(ne(ESt,1),je,513,0,[Qy,D0])))}function xit(){xit=H,eSt=nr((u8(),re(ne(J4t,1),je,516,0,[ZI,QI])))}function Sit(){Sit=H,aSt=nr((Wd(),re(ne(sSt,1),je,509,0,[Ym,wp])))}function Eit(){Eit=H,uSt=nr((ud(),re(ne(cSt,1),je,508,0,[ub,Ed])))}function kit(){kit=H,_St=nr((sm(),re(ne(OSt,1),je,448,0,[N0,ox])))}function Cit(){Cit=H,USt=nr((YR(),re(ne(Eke,1),je,474,0,[wie,Ske])))}function Iit(){Iit=H,HSt=nr((n$(),re(ne(Cke,1),je,419,0,[xie,kke])))}function Tit(){Tit=H,KSt=nr((B$(),re(ne(Ike,1),je,487,0,[sz,fE])))}function Ait(){Ait=H,K5t=nr((ZA(),re(ne(ACe,1),je,423,0,[gz,TCe])))}function Pit(){Pit=H,ZSt=nr((v$(),re(ne(Ake,1),je,420,0,[Tke,Cie])))}function Oit(){Oit=H,_5t=nr((MA(),re(ne(sCe,1),je,424,0,[jie,hz])))}function _it(){_it=H,Yyt=nr((xL(),re(ne(oSe,1),je,422,0,[xne,iSe])))}function Mit(){Mit=H,Qyt=nr((C$(),re(ne(aSe,1),je,421,0,[sSe,Sne])))}function Dit(){Dit=H,Jwt=nr((I$(),re(ne(jSe,1),je,418,0,[Dne,VB])))}function Nit(){Nit=H,D2t=nr((R5(),re(ne(M2t,1),je,504,0,[$O,qne])))}function u$(){u$=H,wd=!0,Byt=!1,Vyt=!1,Uyt=!1,zyt=!1}function PA(e){e.i=0,FT(e.b,null),FT(e.c,null),e.a=null,e.e=null,++e.g}function btn(e,t,s){return h(t==null?ec(e.f,null,s):vm(e.g,t,s),279)}function mtn(){return He(),re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt])}function vtn(e){return oj(),function(){return Ten(e,this,arguments)}}function ytn(){return Date.now?Date.now():new Date().getTime()}function $n(e){if(Qn(e))return e.c=e.a,e.a.Pb();throw ee(new ca)}function IY(e){u$(),!wd&&(this.c=e,this.e=!0,this.a=new Fe)}function jit(e,t){this.c=0,this.b=t,dQe.call(this,e,17493),this.a=this.c}function Nl(e,t,s){var a;return a=(qt(t,e.c.length),e.c[t]),e.c[t]=s,a}function Dge(e,t){var s,a;for(s=t,a=0;s>0;)a+=e.a[s],s-=s&-s;return a}function Rit(e,t){var s;for(s=t;s;)Fv(e,-s.i,-s.j),s=Gi(s);return e}function So(e,t){var s,a;for(Ut(t),a=e.Ic();a.Ob();)s=a.Pb(),t.td(s)}function wtn(e,t){var s;s=new v3,xg(s,"x",t.a),xg(s,"y",t.b),N3(e,s)}function xtn(e,t){var s;s=new v3,xg(s,"x",t.a),xg(s,"y",t.b),N3(e,s)}function $it(e,t){var s;return s=t.ad(),new zw(s,e.e.nc(s,h(t.bd(),15)))}function E5(e,t){return(Rg(e),hC(new Rt(e,new rbe(t,e.a)))).sd(V6)}function Stn(){return us(),re(ne(KSe,1),je,353,0,[uh,P0,Rc,qa,Us])}function Etn(){return y2(),re(ne(G2t,1),je,360,0,[lV,dV,hV,fV,uV])}function ktn(){return gl(),re(ne(I6e,1),je,165,0,[qO,BI,M0,VI,zy])}function Ctn(){return Lf(),re(ne(Ep,1),je,175,0,[cn,Yi,dh,lb,Sp])}function Itn(){return TP(),re(ne(lCe,1),je,313,0,[aCe,Rie,uCe,$ie,cCe])}function Ttn(){return M8(),re(ne(HEe,1),je,312,0,[UEe,eie,tie,WI,GI])}function Atn(){return h6(),re(ne(C5t,1),je,352,0,[sx,N4,s9,o9,a9])}function Ptn(){return cs(),re(ne(d9,1),je,108,0,[A1,qf,xf,T1,P1])}function Otn(){return h2(),re(ne(m9,1),je,248,0,[$0,w_,j8e,b9,R8e])}function _tn(){return ou(),re(ne(Iz,1),je,291,0,[F0,_1,x_,v9,V4])}function Lit(){qX(this),this.b=new ot(pi,pi),this.a=new ot(Pi,Pi)}function Fit(e){this.b=e,bn.call(this,e),this.a=h(zt(this.b.a,4),124)}function Bit(e){this.b=e,P3.call(this,e),this.a=h(zt(this.b.a,4),124)}function df(e,t,s,a,l){qit.call(this,t,a,l),this.c=e,this.b=s}function Nge(e,t,s,a,l){qit.call(this,t,a,l),this.c=e,this.a=s}function jge(e,t,s,a,l){frt.call(this,t,a,l),this.c=e,this.a=s}function Rge(e,t,s,a,l){drt.call(this,t,a,l),this.c=e,this.a=s}function $ge(e){jqt.call(this,e==null?vc:Bs(e),ue(e,78)?h(e,78):null)}function Vit(e){var t;return e.c||(t=e.r,ue(t,87)&&(e.c=h(t,26))),e.c}function Lge(e,t){var s;return s=0,e&&(s+=e.f.a/2),t&&(s+=t.f.a/2),s}function TY(e,t){var s;return s=h(lm(e.d,t),23),s||h(lm(e.e,t),23)}function Mtn(e,t){var s,a;s=h(lon(e.c,t),15),s&&(a=s.gc(),s.$b(),e.d-=a)}function Dtn(e){var t,s,a,l;for(s=e,a=0,l=s.length;a>22&cu,a=e<0?E1:0,Za(t,s,a)}function zit(e,t){var s,a;return s=t.ad(),a=ome(e,s),!!a&&Ia(a.e,t.bd())}function Zo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function V3(e,t){return t==0||e.e==0?e:t>0?$ut(e,t):Qht(e,-t)}function Fge(e,t){return t==0||e.e==0?e:t>0?Qht(e,t):$ut(e,-t)}function Bge(e,t){return ue(t,149)?kt(e.c,h(t,149).c):!1}function Vge(e,t){if(e<0||e>t)throw ee(new ds(mye(e,t,"index")));return e}function eu(e){return e.t||(e.t=new tGe(e),E8(new fXe(e),0,e.t)),e.t}function PY(e){var t;return t=new om,Is(t,e),_e(t,(Ye(),ws),null),t}function Uit(e){var t,s;return t=e.c.i,s=e.d.i,t.k==(nn(),Ai)&&s.k==Ai}function f8(e){var t,s;++e.j,t=e.g,s=e.i,e.g=null,e.i=0,e.$h(s,t),e.Zh()}function OA(e,t){e.li(e.i+1),LC(e,e.i,e.ji(e.i,t)),e.Yh(e.i++,t),e.Zh()}function Hit(e,t,s){XN.call(this,s),this.b=e,this.c=t,this.d=(BQ(),voe)}function qit(e,t,s){this.d=e,this.k=t?1:0,this.f=s?1:0,this.o=-1,this.p=0}function Wit(e,t,s){var a;a=new W1e(e.a),y8(a,e.a.a),ec(a.f,t,s),e.a.a=a}function OY(e,t,s){var a;return a=e.Tg(t),a>=0?e.Wg(a,s,!0):km(e,t,s)}function Br(e,t){var s;return s=h(e.c.vc(t),15),!s&&(s=e.ic(t)),e.nc(t,s)}function Ntn(e,t){var s;s=e.q.getHours()+(t/60|0),e.q.setMinutes(t),H8(e,s)}function zge(e,t){var s,a;return s=(Ut(e),e),a=(Ut(t),t),s==a?0:st.p?-1:0}function Jit(e){var t;return e.a||(t=e.r,ue(t,148)&&(e.a=h(t,148))),e.a}function Ftn(e,t,s){var a;return++e.e,--e.f,a=h(e.d[t].Yc(s),133),a.bd()}function Btn(e,t,s,a){hpt(e,t,s,g6(e,t,a,ue(t,97)&&(h(t,17).Bb&Bo)!=0))}function f$(e,t,s){this.a=e,this.b=t,this.c=s,Re(e.t,this),Re(t.i,this)}function d$(e,t,s,a){this.f=e,this.e=t,this.d=s,this.b=a,this.c=a?a.d:null}function np(e,t){v0(),this.e=e,this.d=1,this.a=re(ne(Pn,1),rr,24,15,[t])}function H3(e,t,s){return CA(t,e.e.Hd().gc()),CA(s,e.c.Hd().gc()),e.a[t][s]}function eot(e,t){return sd(e.a,t)?(U3(e.a,t),!0):!1}function h$(e,t){return Ut(t),e.cs||t=0,"Initial capacity must not be negative")}function not(){not=H,f2t=nr((h8(),re(ne(XSe,1),je,376,0,[$ne,Rne,Lne])))}function rot(){rot=H,twt=nr((jf(),re(ne($y,1),je,230,0,[Zs,Ha,Js])))}function iot(){iot=H,rwt=nr((Kc(),re(ne(nwt,1),je,455,0,[ch,T0,vf])))}function oot(){oot=H,owt=nr((pc(),re(ne(iwt,1),je,456,0,[Uf,A0,yf])))}function sot(){sot=H,Hyt=nr((gd(),re(ne(uu,1),je,132,0,[tSe,Wu,Ry])))}function aot(){aot=H,O4t=nr((Mg(),re(ne(QEe,1),je,372,0,[Ky,YEe,nie])))}function cot(){cot=H,N4t=nr((G$(),re(ne(tke,1),je,373,0,[JEe,oie,eke])))}function uot(){uot=H,D4t=nr((as(),re(ne(M4t,1),je,446,0,[XI,$c,rc])))}function lot(){lot=H,R4t=nr((X5(),re(ne(ike,1),je,334,0,[aie,rke,KI])))}function fot(){fot=H,$4t=nr((H$(),re(ne(ake,1),je,336,0,[ske,cie,oke])))}function dot(){dot=H,L4t=nr((Y$(),re(ne(cke,1),je,375,0,[uie,uE,Yy])))}function hot(){hot=H,ixt=nr((j$(),re(ne(G5e,1),je,335,0,[W5e,pV,fre])))}function pot(){pot=H,oxt=nr((P$(),re(ne(K5e,1),je,416,0,[dre,X5e,hre])))}function got(){got=H,cxt=nr((_g(),re(ne(axt,1),je,444,0,[pre,Q6,G2])))}function bot(){bot=H,Y4t=nr((gm(),re(ne(K4t,1),je,447,0,[XV,YI,KV])))}function mot(){mot=H,QSt=nr((lL(),re(ne(YSt,1),je,436,0,[kie,Sie,Eie])))}function vot(){vot=H,T5t=nr((lP(),re(ne(Mie,1),je,430,0,[lz,fz,dz])))}function yot(){yot=H,bxt=nr((g1(),re(ne(gxt,1),je,301,0,[VO,K2,k4])))}function wot(){wot=H,pxt=nr((L5(),re(ne(kre,1),je,292,0,[Sre,Ere,BO])))}function xot(){xot=H,l5t=nr((W$(),re(ne(Hke,1),je,293,0,[Pie,Uke,zke])))}function Sot(){Sot=H,JSt=nr((oP(),re(ne(_ke,1),je,377,0,[az,Pke,Oke])))}function Eot(){Eot=H,f5t=nr((fL(),re(ne(Xke,1),je,378,0,[Gke,Oie,Wke])))}function kot(){kot=H,J2t=nr((bm(),re(ne(tre,1),je,358,0,[Vm,O0,Bm])))}function Cot(){Cot=H,A6t=nr((hd(),re(ne(S8e,1),je,271,0,[gE,Jy,bE])))}function Iot(){Iot=H,M6t=nr((m1(),re(ne(N8e,1),je,332,0,[Cz,kp,g9])))}function b$(){b$=H,U5e=new i1e("QUADRATIC",0),lre=new i1e("SCANLINE",1)}function qtn(e){return!e.g&&(e.g=new LN),!e.g.b&&(e.g.b=new QWe(e)),e.g.b}function Wtn(e){return!e.g&&(e.g=new LN),!e.g.a&&(e.g.a=new JWe(e)),e.g.a}function DA(e){return!e.g&&(e.g=new LN),!e.g.c&&(e.g.c=new eGe(e)),e.g.c}function Gtn(e){return!e.g&&(e.g=new LN),!e.g.d&&(e.g.d=new ZWe(e)),e.g.d}function Xtn(e,t,s){var a,l;for(l=new V5(t,e),a=0;a=0?e.Wg(s,!0,!0):km(e,t,!0)}function dnn(e,t){return go(Ae(Xe(G(e,(Be(),Hm)))),Ae(Xe(G(t,Hm))))}function Dot(e,t){return QKe(e.e,t)||Lg(e.e,t,new ult(t)),h(lm(e.e,t),112)}function hnn(e){for(;!e.a;)if(!EJe(e.c,new SHe(e)))return!1;return!0}function q3(e){var t;return Hn(e),ue(e,197)?(t=h(e,197),t):new WUe(e)}function pnn(e,t,s){var a;return a=yct(e,t,s),e.b=new V$(a.c.length),owe(e,a)}function tbe(e,t){if(e.g==null||t>=e.i)throw ee(new BX(t,e.i));return e.g[t]}function Not(e,t,s){if(W5(e,s),s!=null&&!e.rj(s))throw ee(new zG);return s}function nbe(e,t){return UA(t)!=10&&re(ru(t),t.cm,t.__elementTypeId$,UA(t),e),e}function rbe(e,t){FX.call(this,t.rd(),t.qd()&-16449),Ut(e),this.a=e,this.c=t}function jot(e,t){if(t.a)throw ee(new Ws(Egt));ro(e.a,t),t.a=e,!e.j&&(e.j=t)}function gnn(e,t){e.a.ue(t.d,e.b)>0&&(Re(e.c,new a0e(t.c,t.d,e.d)),e.b=t.d)}function bnn(e){e.e>0&&e.d>0&&(e.a=e.e*e.d,e.b=e.e/e.d,e.j=KYt(e.e,e.d,e.c))}function mnn(e,t,s){e.a=t,e.c=s,e.b.a.$b(),Dl(e.d),e.e.a.c=ge(hn,rt,1,0,5,1)}function LY(e){e.a=ge(Pn,rr,24,e.b+1,15,1),e.c=ge(Pn,rr,24,e.b,15,1),e.d=0}function vnn(e){m$(),h(e.Xe((Or(),b_)),174).Dc((ou(),x_)),e.Ze(toe,null)}function Rot(){Rot=H,WSt=ly(ly(Ij(new Xi,(n6(),JI)),($8(),ez)),die)}function m$(){m$=H,Z5t=new LFe,e6t=new FFe,J5t=ton((Or(),toe),Z5t,$4,e6t)}function v$(){v$=H,Tke=new y1e("LEAF_NUMBER",0),Cie=new y1e("NODE_SIZE",1)}function y$(){y$=H,vne=new xj("All",0),Q4e=new NQe,Z4e=new GQe,J4e=new jQe}function $ot(){$ot=H,Lyt=nr((y$(),re(ne(MB,1),je,297,0,[vne,Q4e,Z4e,J4e])))}function Kc(){Kc=H,ch=new gX(u4,0),T0=new gX(C6,1),vf=new gX(l4,2)}function Lot(){Lot=H,iF(),TIe=pi,YEt=Pi,AIe=new xT(pi),QEt=new xT(Pi)}function Fot(){Fot=H,Owt=nr((mm(),re(ne(Pwt,1),je,401,0,[AO,TO,Ine,Tne])))}function Bot(){Bot=H,Mwt=nr((Z3(),re(ne(_wt,1),je,322,0,[OO,PO,_O,MO])))}function Vot(){Vot=H,jwt=nr((_8(),re(ne(Nwt,1),je,390,0,[DO,$B,LB,NO])))}function zot(){zot=H,w2t=nr((U5(),re(ne(y2t,1),je,400,0,[Fm,Fy,Ly,U2])))}function Uot(){Uot=H,$2t=nr((Z$(),re(ne(R2t,1),je,357,0,[Jne,aV,cV,LO])))}function Hot(){Hot=H,W2t=nr((pd(),re(ne(q2t,1),je,406,0,[S4,W6,G6,ere])))}function qot(){qot=H,T4t=nr((fy(),re(ne(Jre,1),je,196,0,[qV,Zre,ix,rx])))}function RA(){RA=H,J5e=new a1e(S0,0),mV=new a1e("IMPROVE_STRAIGHTNESS",1)}function Wot(e,t){var s,a;return a=t/e.c.Hd().gc()|0,s=t%e.c.Hd().gc(),H3(e,a,s)}function ynn(e,t){var s,a;return oit(t),s=(a=e.slice(0,t),nbe(a,e)),s.length=t,s}function d8(e,t,s,a){var l;a=(Jw(),a||H4e),l=e.slice(t,s),vye(l,e,t,s,-t,a)}function ll(e,t,s,a,l){return t<0?km(e,s,a):h(s,65).Ij().Kj(e,e.th(),t,a,l)}function wnn(e,t){return u5(),Re(e,new fo(t,Ue(t.e.c.length+t.g.c.length)))}function xnn(e,t){return u5(),Re(e,new fo(t,Ue(t.e.c.length+t.g.c.length)))}function $A(e,t){if(t<0)throw ee(new ds(Wbt+t));return Krt(e,t+1),st(e.j,t)}function ibe(e){var t;if(!eQ(e))throw ee(new ca);return e.e=1,t=e.d,e.d=null,t}function Snn(e){var t,s;if(!e.b)return null;for(s=e.b;t=s.a[0];)s=t;return s}function FY(e){var t;t=e.vi(),t!=null&&e.d!=-1&&h(t,91).Ig(e),e.i&&e.i.Ai()}function Enn(e){return ue(e,172)?""+h(e,172).a:e==null?null:Bs(e)}function knn(e){return ue(e,172)?""+h(e,172).a:e==null?null:Bs(e)}function BY(e,t){var s;this.f=e,this.b=t,s=h(qn(e.b,t),282),this.c=s?s.b:null}function Os(e,t,s){for(;s=0;)++t[0]}function ost(e,t){ISe=new f3,Dwt=t,OI=e,h(OI.b,63),Yge(OI,ISe,null),Wpt(OI)}function Inn(e,t){var s;s=h(G(t,(Ye(),rE)),333),s==(B3(),E4)&&_e(t,rE,e)}function S$(e,t){return Ia(t,st(e.f,0))||Ia(t,st(e.f,1))||Ia(t,st(e.f,2))}function obe(e,t){bC();var s,a;return s=F3(e),a=F3(t),!!s&&!!a&&!dlt(s.k,a.k)}function _h(e,t,s){var a,l;for(a=10,l=0;l=0?IL(e,s,!0,!0):km(e,t,!0)}function BA(e){var t;for(t=e.p+1;t=0?(e.Yc(s),!0):!1}function HY(e){var t;return e.d!=e.r&&(t=$l(e),e.e=!!t&&t.xj()==Ivt,e.d=t),e.e}function ube(e,t){var s;for(Hn(e),Hn(t),s=!1;t.Ob();)s=s|e.Dc(t.Pb());return s}function lm(e,t){var s;return s=h(qn(e.e,t),382),s?(eZe(e,s),s.e):null}function $s(e,t){var s,a;return Rg(e),a=new qge(t,e.a),s=new IJe(a),new Rt(e,s)}function ast(e){var t,s;return t=e/60|0,s=e%60,s==0?""+t:""+t+":"+(""+s)}function k$(e){return ba(e,Ir)>0?Ir:ba(e,ko)<0?ko:On(e)}function Nnn(e){return Tve(e,(A5(),C4e))<0?-oGt(H5(e)):e.l+e.m*c4+e.h*Ug}function ty(e,t){var s=e.a[t],a=(uQ(),hne)[typeof s];return a?a(s):vme(typeof s)}function jnn(e,t){var s,a,l;l=t.c.i,s=h(qn(e.f,l),56),a=s.d.c-s.e.c,jbe(t.a,a,0)}function lbe(e,t){var s;for(++e.d,++e.c[t],s=t+1;se.a[a]&&(a=s);return a}function fst(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&te||e>t)throw ee(new khe("fromIndex: 0, toIndex: "+e+u2e+t))}function Ist(e){this.b=new Fe,this.a=new Fe,this.c=new Fe,this.d=new Fe,this.e=e}function Tst(e){this.g=e,this.f=new Fe,this.a=m.Math.min(this.g.c.c,this.g.d.c)}function Ast(e,t,s){oR.call(this),dbe(this),this.a=e,this.c=s,this.b=t.d,this.f=t.e}function Pst(e,t){var s;if(s=$P(e.Og(),t),!s)throw ee(new Gt(C0+t+Cte));return s}function ms(e){var t,s;s=(t=new WG,t),_n((!e.q&&(e.q=new $e(Yl,e,11,10)),e.q),s)}function Unn(e,t){var s;return s=t>0?t-1:t,RXe(cqt(Xst(d0e(new GS,s),e.n),e.j),e.k)}function Hnn(e,t,s,a){var l;e.j=-1,Oye(e,lye(e,t,s),(Ho(),l=h(t,65).Hj(),l.Jk(a)))}function qnn(e,t){var s,a;return s=h(nL(e.d,t),15),s?(a=t,e.e.nc(a,s)):null}function Ost(e){this.d=e,this.c=e.c.tc().Ic(),this.b=null,this.a=null,this.e=(ej(),une)}function _st(e){return e.a>=-.01&&e.a<=vd&&(e.a=0),e.b>=-.01&&e.b<=vd&&(e.b=0),e}function T$(e){var t;Lv(!!e.c),t=e.c.a,fl(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function A$(e,t){var s;return Rg(e),s=new nnt(e,e.a.rd(),e.a.qd()|4,t),new Rt(e,s)}function Mst(e,t,s,a,l,f){var v;v=PY(a),Ao(v,l),uo(v,f),ur(e.a,a,new uR(v,t,s.f))}function P$(){P$=H,dre=new xX("GREEDY",0),X5e=new xX(bbt,1),hre=new xX(_ee,2)}function jf(){jf=H,Zs=new pX("BEGIN",0),Ha=new pX(C6,1),Js=new pX("END",2)}function A5(){A5=H,E4e=Za(cu,cu,524287),Cyt=Za(0,0,JP),k4e=AY(1),AY(2),C4e=AY(0)}function Wnn(e){var t;return t=Ae(Xe(G(e,(Ye(),I1)))),t<0&&(t=0,_e(e,I1,t)),t}function O$(e,t){var s,a;for(a=e.Ic();a.Ob();)s=h(a.Pb(),69),_e(s,(Be(),P4),t)}function Gnn(e,t,s){var a;a=m.Math.max(0,e.b/2-.5),D8(s,a,1),Re(t,new uYe(s,a))}function Xnn(e,t,s){var a;return a=e.a.e[h(t.a,10).p]-e.a.e[h(s.a,10).p],ki(gA(a))}function r2(e,t){var s;for(s=e;Gi(s);)if(s=Gi(s),s==t)return!0;return!1}function le(e,t){if(e.g==null||t>=e.i)throw ee(new BX(t,e.i));return e.gi(t,e.g[t])}function Knn(e,t){return!!t&&e.b[t.g]==t?(ui(e.b,t.g,null),--e.c,!0):!1}function fl(e,t){var s;return s=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,s}function gc(e,t){var s,a,l,f;for(Ut(t),a=e.c,l=0,f=a.length;l0&&(e.a/=t,e.b/=t),e}function Bu(e){var t;return e.w?e.w:(t=Een(e),!!t&&!t.fh()&&(e.w=t),t)}function Nst(e,t,s){if(W5(e,s),!e.wk()&&s!=null&&!e.rj(s))throw ee(new zG);return s}function P5(e,t){var s,a;a=e.a,s=$on(e,t,null),a!=t&&!e.e&&(s=v6(e,t,s)),s&&s.Ai()}function ern(e){var t;return e==null?null:(t=h(e,190),cfn(t,t.length))}function jst(e,t,s){var a=function(){return e.apply(a,arguments)};return t.apply(a,s),a}function Tg(e){var t;return GC(e==null||Array.isArray(e)&&(t=UA(e),!(t>=14&&t<=16))),e}function dbe(e){e.b=(Kc(),T0),e.f=(pc(),A0),e.d=(Rf(2,Iy),new Va(2)),e.e=new Qo}function _$(e){this.b=(Hn(e),new vu(e)),this.a=new Fe,this.d=new Fe,this.e=new Qo}function dm(e){var t;return mY(e.e,e),pn(e.b),e.c=e.a,t=h(e.a.Pb(),43),e.b=zbe(e),t}function hf(e){if(!(e>=0))throw ee(new Gt("tolerance ("+e+") must be >= 0"));return e}function XY(e,t,s){var a,l,f;return f=t>>5,l=t&31,a=$i(Hv(e.n[s][f],On(c1(l,1))),3),a}function trn(e,t){var s;return s=no(Ks(h(qn(e.g,t),8)),L1e(h(qn(e.f,t),454).b)),s}function M$(e,t){return vqt(v8(e.a,t,On(Eo($h,Ah(On(Eo(t==null?0:ri(t),Lh)),15)))))}function hbe(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)}function pbe(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)}function nrn(e,t){Mn(t,lbt,1),Lme(Cqt(new HN(new KK(e,!1,!1,new Jk)))),wn(t)}function rrn(e,t){return m0(),Qa(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function irn(){return YL(),re(ne(z5e,1),je,269,0,[rre,sre,nre,ure,ore,ire,cre,are])}function orn(){return E2(),re(ne(KEe,1),je,259,0,[WV,YO,QO,WEe,GEe,qEe,XEe,GV])}function srn(){return dp(),re(ne(n6t,1),je,275,0,[OCe,Go,da,dE,ta,xi,j4,kd])}function arn(){return l6(),re(ne(Lz,1),je,237,0,[doe,Rz,$z,jz,foe,Nz,Dz,loe])}function Rst(){Rst=H,uxt=nr((BL(),re(ne(Z5e,1),je,274,0,[bre,gre,vre,mre,yre,bV])))}function $st(){$st=H,fxt=nr((CP(),re(ne(o6e,1),je,272,0,[vV,n6e,i6e,t6e,r6e,wre])))}function Lst(){Lst=H,dxt=nr((a6(),re(ne(f6e,1),je,273,0,[RI,a6e,l6e,u6e,c6e,s6e])))}function Fst(){Fst=H,txt=nr((e4(),re(ne(Y6,1),je,225,0,[K6,jI,X6,By,W2,q2])))}function Bst(){Bst=H,NSt=nr(($8(),re(ne(DSt,1),je,325,0,[ez,die,pie,hie,gie,fie])))}function Vst(){Vst=H,O6t=nr((LL(),re(ne(A8e,1),je,310,0,[soe,C8e,T8e,E8e,I8e,k8e])))}function zst(){zst=H,I4t=nr((RL(),re(ne(zEe,1),je,311,0,[Qre,BEe,Yre,FEe,VEe,HV])))}function Ust(){Ust=H,i6t=nr((Dh(),re(ne(DCe,1),je,247,0,[Uie,o_,s_,vz,bz,mz])))}function Hst(){Hst=H,l6t=nr((hy(),re(ne(Gie,1),je,290,0,[Wie,l_,u_,qie,a_,c_])))}function qst(){qst=H,$6t=nr((lo(),re(ne($8e,1),je,100,0,[L0,Cd,mE,db,Hh,Ra])))}function Wst(){Wst=H,A2t=nr((nn(),re(ne(Hne,1),je,266,0,[ji,Ki,Ai,Na,ku,xd])))}function Gst(){Gst=H,jB=(jf(),re(ne($y,1),je,230,0,[Zs,Ha,Js])).length,kne=jB}function crn(){return vy(),re(ne(ns,1),je,92,0,[Sf,O1,Ef,Cf,Uh,Gl,Xu,kf,Wl])}function hd(){hd=H,gE=new $X(C6,0),Jy=new $X("HEAD",1),bE=new $X("TAIL",2)}function Xst(e,t){return e.n=t,e.n?(e.f=new Fe,e.e=new Fe):(e.f=null,e.e=null),e}function hm(e,t){var s;s=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,3,s,e.f))}function pm(e,t){var s;s=e.g,e.g=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,4,s,e.g))}function _c(e,t){var s;s=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,5,s,e.i))}function Mc(e,t){var s;s=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,6,s,e.j))}function O5(e,t){var s;s=e.j,e.j=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,1,s,e.j))}function D$(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,1,s,e.b))}function _5(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,3,s,e.b))}function M5(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,4,s,e.c))}function D5(e,t){var s;s=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,2,s,e.k))}function N$(e,t){var s;s=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Jv(e,0,s,e.a))}function rp(e,t){var s;s=e.s,e.s=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new SY(e,4,s,e.s))}function iy(e,t){var s;s=e.t,e.t=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new SY(e,5,s,e.t))}function KY(e,t){var s;s=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new SY(e,2,s,e.d))}function N5(e,t){var s;s=e.F,e.F=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,5,s,t))}function qA(e,t){var s;if(s=e.gc(),t<0||t>s)throw ee(new zv(t,s));return new Bpe(e,t)}function b1(e,t){var s,a;return s=t in e.a,s&&(a=l1(e,t).he(),a)?a.a:null}function urn(e,t){var s,a,l;return s=(a=(Hb(),l=new ude,l),t&&Jye(a,t),a),Ebe(s,e),s}function WA(e,t){var s;return s=h(qn((vj(),Fz),e),54),s?s.sj(t):ge(hn,rt,1,t,5,1)}function Xd(e){var t,s,a,l;for(s=e,a=0,l=s.length;a=0),can(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function wbe(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=aP(e.f)),e.c).e}function Jst(e,t){var s;return ue(t,43)?e.c.Kc(t):(s=FQ(e,t),mL(e,t),s)}function ss(e,t,s){return jg(e,t),za(e,s),rp(e,0),iy(e,1),sp(e,!0),ap(e,!0),e}function Rf(e,t){if(e<0)throw ee(new Gt(t+" cannot be negative but was: "+e));return e}function j5(){return Vie||(Vie=new M1t,u2(Vie,re(ne(z2,1),rt,130,0,[new hde]))),Vie}function as(){as=H,XI=new IX(rI,0),$c=new IX("INPUT",1),rc=new IX("OUTPUT",2)}function j$(){j$=H,W5e=new wX("ARD",0),pV=new wX("MSD",1),fre=new wX("MANUAL",2)}function gm(){gm=H,XV=new _X("BARYCENTER",0),YI=new _X(fbt,1),KV=new _X(dbt,2)}function hrn(){return su(),re(ne(F8e,1),je,258,0,[SE,C_,Az,w9,Pz,_z,Oz,aoe,k_])}function prn(){return ZL(),re(ne(ESe,1),je,249,0,[SSe,vSe,ySe,mSe,Ene,xSe,wSe,bSe,gSe])}function eat(){eat=H,Iyt=re(ne(Pn,1),rr,24,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function grn(e,t,s){return ey(e,new bHe(t),new eo,new mHe(s),re(ne(uu,1),je,132,0,[]))}function tat(e,t,s,a){this.mj(),this.a=t,this.b=e,this.c=null,this.c=new yJe(this,t,s,a)}function YY(e,t,s,a,l){this.d=e,this.n=t,this.g=s,this.o=a,this.p=-1,l||(this.o=-2-a-1)}function nat(){Y1e.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=mf}function rat(e){Uhe(),this.g=new Un,this.f=new Un,this.b=new Un,this.c=new Kv,this.i=e}function xbe(){this.f=new Qo,this.d=new fhe,this.c=new Qo,this.a=new Fe,this.b=new Fe}function brn(e,t){Mn(t,"Hierarchical port constraint processing",1),$an(e),kwn(e),wn(t)}function Sbe(e){var t,s;for(s=e.c.Ac().Ic();s.Ob();)t=h(s.Pb(),15),t.$b();e.c.$b(),e.d=0}function iat(e,t){var s,a;for(s=0,a=e.gc();s0?h(st(s.a,a-1),10):null}function b8(e,t){var s;s=e.k,e.k=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,2,s,e.k))}function R$(e,t){var s;s=e.f,e.f=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,8,s,e.f))}function $$(e,t){var s;s=e.i,e.i=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,7,s,e.i))}function Ebe(e,t){var s;s=e.a,e.a=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,8,s,e.a))}function kbe(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,0,s,e.b))}function Cbe(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,1,s,e.c))}function Ibe(e,t){var s;s=e.d,e.d=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,1,s,e.d))}function QY(e,t){var s;s=e.D,e.D=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,2,s,e.D))}function ZY(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,4,s,e.c))}function Tbe(e,t){var s;s=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,0,s,e.b))}function Abe(e,t){var s;s=e.c,e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,1,s,e.c))}function JY(e,t){e.r>0&&e.c0&&e.g!=0&&JY(e.i,t/e.r*e.i.d))}function Pbe(e,t,s,a,l,f){this.c=e,this.e=t,this.d=s,this.i=a,this.f=l,this.g=f,bnn(this)}function vrn(e){var t,s,a,l;for(s=e.a,a=0,l=s.length;at?(t<<=1,t>0?t:Q8):t}function eQ(e){switch(V1e(e.e!=3),e.e){case 2:return!1;case 0:return!0}return $tn(e)}function yrn(e){var t,s;return 0>e?new Bhe:(t=e+1,s=new jit(t,e),new ype(null,s))}function wrn(e,t){Mt();var s;return s=new x3(1),to(e)?ps(s,e,t):ec(s.f,e,t),new FG(s)}function xrn(e,t){var s,a;return s=e.o+e.p,a=t.o+t.p,s>>31;a!=0&&(e[s]=a)}function Rrn(e,t,s){var a,l;return a=h((l=e.f,l||(e.f=new Vw(e,e.c))).vc(t),15),!!a&&a.Fc(s)}function Cat(e,t,s){var a,l;return a=h((l=e.f,l||(e.f=new Vw(e,e.c))).vc(t),15),!!a&&a.Kc(s)}function m8(e,t,s){var a;for(a=e.b[s&e.f];a;a=a.b)if(s==a.a&&Th(t,a.g))return a;return null}function v8(e,t,s){var a;for(a=e.c[s&e.f];a;a=a.d)if(s==a.f&&Th(t,a.i))return a;return null}function Iat(e){var t;return e==0?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+ast(e))}function $rn(e,t){return U5(),e==Fm&&t==Fy||e==Fy&&t==Fm||e==U2&&t==Ly||e==Ly&&t==U2}function Lrn(e,t){return U5(),e==Fm&&t==Ly||e==Fm&&t==U2||e==Fy&&t==U2||e==Fy&&t==Ly}function Frn(e,t){typeof window===GP&&typeof window.$gwt===GP&&(window.$gwt[e]=t)}function Tat(e,t){return id(),hf(vd),m.Math.abs(0-t)<=vd||t==0||isNaN(0)&&isNaN(t)?0:e/t}function dl(e,t,s,a,l,f,v){er.call(this,e,t),this.d=s,this.e=a,this.c=l,this.b=f,this.a=fd(v)}function Aat(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function Brn(e){return e.b.c.i.k==(nn(),Ai)?h(G(e.b.c.i,(Be(),Dr)),11):e.b.c}function Pat(e){return e.b.d.i.k==(nn(),Ai)?h(G(e.b.d.i,(Be(),Dr)),11):e.b.d}function Oat(e){switch(e.g){case 2:return He(),Xt;case 4:return He(),rn;default:return e}}function _at(e){switch(e.g){case 1:return He(),Sn;case 3:return He(),Wt;default:return e}}function Pa(e,t){var s;return e.b?null:(s=Unn(e,e.g),dr(e.a,s),s.i=e,e.d=t,s)}function Vrn(e,t){var s;return s=Kve(e),Cye(new ot(s.c,s.d),new ot(s.b,s.a),e.pf(),t,e.Ef())}function zrn(e){var t,s,a;for(a=0,s=new Q(e.b);s.al&&t.af&&t.b0&&(this.g=this.mi(this.i+(this.i/8|0)+1),e.Oc(this.g))}function bc(e){return eO1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw ee(new ca)}function Wat(e){var t;e.d==null?(++e.e,e.f=0,tut(null)):(++e.e,t=e.d,e.d=null,e.f=0,tut(t))}function ain(e){var t;if(e){if(t=e,t.dc())throw ee(new ca);return t.Xb(t.gc()-1)}return ert(e.Ic())}function jl(e){var t,s,a,l;return l=e,a=0,l<0&&(l+=Ug,a=E1),s=ki(l/c4),t=ki(l-s*c4),Za(t,s,a)}function XA(e){var t,s,a;for(a=0,s=new S3(e.a);s.a=128?!1:e<64?pC($i(c1(1,e),s),0):pC($i(c1(1,e-64),t),0)}function aQ(e,t,s,a){return s==1?(!e.n&&(e.n=new $e(Ds,e,1,7)),_o(e.n,t,a)):rye(e,t,s,a)}function JA(e,t){var s,a;return a=(s=new _G,s),za(a,t),_n((!e.A&&(e.A=new Ac(ic,e,7)),e.A),a),a}function vin(e,t,s){var a,l,f,v;return f=null,v=t,l=um(v,Dte),a=new FYe(e,s),f=(Vun(a.a,a.b,l),l),f}function G3(e,t){var s,a;if(a=0,e<64&&e<=t)for(t=t<64?t:63,s=e;s<=t;s++)a=ad(a,c1(1,s));return a}function Mi(e,t){var s,a;return s=t.Nc(),a=s.length,a==0?!1:(r0e(e.c,e.c.length,s),!0)}function eP(e,t){var s,a;for(Ut(t),a=t.Ic();a.Ob();)if(s=a.Pb(),!e.Fc(s))return!1;return!0}function yin(e,t,s){var a,l;for(l=t.tc().Ic();l.Ob();)a=h(l.Pb(),43),e.wc(a.ad(),a.bd(),s);return e}function ect(e,t){var s,a;for(a=new Q(e.b);a.a>22),l=e.h+t.h+(a>>22),Za(s&cu,a&cu,l&E1)}function sct(e,t){var s,a,l;return s=e.l-t.l,a=e.m-t.m+(s>>22),l=e.h-t.h+(a>>22),Za(s&cu,a&cu,l&E1)}function act(e,t,s){var a;Xc(e.a),gc(s.i,new dWe(e)),a=new Gj(h(qn(e.a,t.b),63)),Kut(e,a,t),s.f=a}function qbe(e,t,s){var a;if(a=e.gc(),t>a)throw ee(new zv(t,a));return e.ci()&&(s=Mnt(e,s)),e.Qh(t,s)}function Wbe(e,t){switch(t){case 0:!e.o&&(e.o=new tu((Da(),Ip),pb,e,0)),e.o.c.$b();return}TZ(e,t)}function cct(e){switch(e.g){case 1:return R0;case 2:return zh;case 3:return v_;default:return y_}}function Tin(e){switch(h(G(e,(Ye(),wc)),165).g){case 2:case 4:return!0;default:return!1}}function Gbe(e){var t,s;return s=(Hb(),t=new RN,t),e&&_n((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),s),s}function Ain(e){var t;return t=new F,t.a=e,t.b=Rin(e),t.c=ge(Qe,Oe,2,2,6,1),t.c[0]=Iat(e),t.c[1]=Iat(e),t}function Pin(e,t){var s,a;for(FR(t,"predicate"),a=0;e.Ob();a++)if(s=e.Pb(),t.Lb(s))return a;return-1}function Xbe(e){Mt();var t,s,a;for(a=0,s=e.Ic();s.Ob();)t=s.Pb(),a=a+(t!=null?ri(t):0),a=a|0;return a}function uct(e){var t,s,a;return s=e.n,a=e.o,t=e.d,new cl(s.a-t.b,s.b-t.d,a.a+(t.b+t.c),a.b+(t.d+t.a))}function Oin(e,t){return!e||!t||e==t?!1:ym(e.b.c,t.b.c+t.b.b)<0&&ym(t.b.c,e.b.c+e.b.b)<0}function nP(e,t,s){switch(s.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function z5(e,t,s,a,l){var f,v;for(v=s;v<=l;v++)for(f=t;f<=a;f++)g2(e,f,v)||JL(e,f,v,!0,!1)}function _in(e){var t,s,a,l;for(s=e.a,a=0,l=s.length;a=0,"Negative initial capacity"),cR(t>=0,"Non-positive load factor"),Xc(this)}function Kbe(e){var t;if(e<0)return ko;if(e==0)return 0;for(t=Q8;(t&e)==0;t>>=1);return t}function H5(e){var t,s,a;return t=~e.l+1&cu,s=~e.m+(t==0?1:0)&cu,a=~e.h+(t==0&&s==0?1:0)&E1,Za(t,s,a)}function hct(e){var t,s;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,s=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||s}function pct(e){var t,s;return s=new l$,Is(s,e),_e(s,(u0(),x4),e),t=new Un,Abn(e,s,t),Zvn(e,s,t),s}function _e(e,t,s){return s==null?(!e.q&&(e.q=new Un),U3(e.q,t)):(!e.q&&(e.q=new Un),Fr(e.q,t,s)),e}function rP(e,t,s){return s==null?(!e.q&&(e.q=new Un),U3(e.q,t)):(!e.q&&(e.q=new Un),Fr(e.q,t,s)),e}function Nin(e,t){for(;e.g==null&&!e.c?dge(e):e.g==null||e.i!=0&&h(e.g[e.i-1],49).Ob();)Yqt(t,HL(e))}function gct(e,t){this.b=e,Ww.call(this,(h(le(Ce((n0(),Bt).o),10),17),t.i),t.g),this.a=(oQ(),boe)}function Ybe(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function Qbe(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function Zbe(e,t,s){this.q=new m.Date,this.q.setFullYear(e+w0,t,s),this.q.setHours(0,0,0,0),H8(this,0)}function bct(e,t){var s,a,l,f;for(s=!1,a=e.a[t].length,f=0;fs&&(s=e[t]);return s}function fQ(e,t,s){var a,l,f,v;return f=null,v=t,l=um(v,"labels"),a=new KYe(e,s),f=(t1n(a.a,a.b,l),l),f}function Lin(e,t,s,a){var l;return l=zye(e,t,s,a),!l&&(l=Uon(e,s,a),!!l&&!A2(e,t,l))?null:l}function Fin(e,t,s,a){var l;return l=Uye(e,t,s,a),!l&&(l=AQ(e,s,a),!!l&&!A2(e,t,l))?null:l}function Bin(e,t,s){return!hC(Kr(new Rt(null,new Lt(e.c,16)),new tC(new OYe(t,s)))).sd((hg(),V6))}function q5(){q5=H,B5e=new sRe,V5e=new aRe,B2t=new cRe,F2t=new uRe,L2t=new lRe,F5e=(Ut(L2t),new fe)}function Mg(){Mg=H,Ky=new CX(S0,0),YEe=new CX("NODES_AND_EDGES",1),nie=new CX("PREFER_EDGES",2)}function wct(e){switch(e.g){case 0:return new OFe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function xct(e){switch(e.g){case 0:return new MFe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function tme(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return zme(e,t)}function Vin(e,t){switch(t.g){case 0:ue(e.b,621)||(e.b=new Bat);break;case 1:ue(e.b,622)||(e.b=new uet)}}function zin(e,t){var s;return s=Po(e,t),sX(cY(e,t),0)|Sqt(cY(e,s),0)?s:Po(gF,cY(Hv(s,63),1))}function Sct(e,t){var s;for(s=0;s1||t>=0&&e.b<3)}function Uin(e,t,s){if(Hn(t),s.Ob())for(I1e(t,gtt(s.Pb()));s.Ob();)I1e(t,e.a),I1e(t,gtt(s.Pb()));return t}function rme(e){Mt();var t,s,a;for(a=1,s=e.Ic();s.Ob();)t=s.Pb(),a=31*a+(t!=null?ri(t):0),a=a|0;return a}function Hin(e,t,s,a,l){var f;return f=jye(e,t),s&&lQ(f),l&&(e=Icn(e,t),a?I0=H5(e):I0=Za(e.l,e.m,e.h)),f}function Ect(e,t,s){var a,l;return ue(t,144)&&!!s?(a=h(t,144),l=s,e.a[a.b][l.b]+e.a[l.b][a.b]):0}function ime(e,t,s){var a;for(a=s-1;a>=0&&e[a]===t[a];a--);return a<0?0:sX($i(e[a],es),$i(t[a],es))?-1:1}function Dg(e){var t,s;for(s=new Q(e.a.b);s.a=e.b.c.length||(cme(e,2*t+1),s=2*t+2,sa?1:0}function Qin(e,t){var s,a;for(a=ar(e,0);a.b!=a.d.c;)s=h(sr(a),231),s.e.length>0&&(t.td(s),s.i&&Bon(s))}function bQ(e,t){var s;return t===e?!0:ue(t,222)?(s=h(t,222),Pr(e.Zb(),s.Zb())):!1}function mQ(e,t,s,a,l){var f,v;for(v=s;v<=l;v++)for(f=t;f<=a;f++)if(g2(e,f,v))return!0;return!1}function vQ(e,t){var s,a;return a=h(zt(e.a,4),124),s=ge(poe,Ute,410,t,0,1),a!=null&&Sa(a,0,s,0,a.length),s}function Act(e,t){var s;return s=new XZ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(s.c=e),s}function Zin(e,t){var s,a;for(a=e.Zb().Ac().Ic();a.Ob();)if(s=h(a.Pb(),15),s.Fc(t))return!0;return!1}function Pct(e,t,s){var a,l,f,v;for(Ut(s),v=!1,f=e.Xc(t),l=s.Ic();l.Ob();)a=l.Pb(),f.Rb(a),v=!0;return v}function Jin(e,t){var s;return e===t?!0:ue(t,84)?(s=h(t,84),sye(Jb(e),s.tc())):!1}function ba(e,t){var s;return Ps(e)&&Ps(t)&&(s=e-t,!isNaN(s))?s:Tve(Ps(e)?jl(e):e,Ps(t)?jl(t):t)}function yQ(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.kl()}}function Oct(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ll()}}function _ct(e){var t;if(t=e.a.c.length,t>0)return l5(t-1,e.a.c.length),tp(e.a,t-1);throw ee(new mGe)}function Mct(e,t,s){var a,l;for(l=s.Ic();l.Ob();)if(a=h(l.Pb(),43),e.re(t,a.bd()))return!0;return!1}function Dct(e,t,s){return e.d[t.p][s.p]||(Zan(e,t,s),e.d[t.p][s.p]=!0,e.d[s.p][t.p]=!0),e.a[t.p][s.p]}function eon(e,t){var s;return!e||e==t||!Lo(t,(Be(),Um))?!1:(s=h(G(t,(Be(),Um)),10),s!=e)}function Nct(e,t){var s;if(t.c.length!=0){for(;tye(e,t);)UL(e,t,!1);s=Q$(t),e.a&&(e.a.gg(s),Nct(e,s))}}function G5(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),QY(e,t==null?null:(Ut(t),t)),e.C&&e.tk(null)}function ton(e,t,s,a){return jR(),new QG(re(ne(eb,1),bF,43,0,[(ZQ(e,t),new zw(e,t)),(ZQ(s,a),new zw(s,a))]))}function l2(){l2=H,U4=new $j("ELK",0),q8e=new $j("JSON",1),H8e=new $j("DOT",2),W8e=new $j("SVG",3)}function gd(){gd=H,tSe=new hX("CONCURRENT",0),Wu=new hX("IDENTITY_FINISH",1),Ry=new hX("UNORDERED",2)}function oP(){oP=H,az=new NX(S0,0),Pke=new NX("RADIAL_COMPACTION",1),Oke=new NX("WEDGE_COMPACTION",2)}function eL(){eL=H,D8e=new bg(15),_6t=new $o((Or(),j0),D8e),p9=L4,P8e=d6t,O8e=hE,M8e=p_,_8e=b6t}function oy(){oy=H,a5t=(Or(),L4),c5t=fb,Iie=(Bye(),e5t),Tie=t5t,Rke=n5t,cz=r5t,uz=i5t,n_=o5t,$ke=s5t}function wQ(){wQ=H,OSe=(hj(),Ane),PSe=new $t(k2e,OSe),$wt=new Xr(C2e),Lwt=new Xr(I2e),Fwt=new Xr(T2e)}function jct(e,t,s){if(e>t)throw ee(new Gt(wF+e+wgt+t));if(e<0||t>s)throw ee(new khe(wF+e+f2e+t+u2e+s))}function non(e,t,s){if(t<0)throw ee(new ds(Wbt+t));t1&&(Mt(),co(t,e.b),lin(e.c,t))}function xQ(e,t,s){var a,l,f;for(a=new ci,f=ar(s,0);f.b!=f.d.c;)l=h(sr(f),8),dr(a,new Ss(l));Pct(e,t,a)}function ron(e){var t,s,a;for(t=0,a=ge(Ui,Oe,8,e.b,0,1),s=ar(e,0);s.b!=s.d.c;)a[t++]=h(sr(s),8);return a}function ume(e){var t;return t=(!e.a&&(e.a=new $e(M1,e,9,5)),e.a),t.i!=0?Nqt(h(le(t,0),666)):null}function ion(e){var t;for(Hn(e),Vpe(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&Qn(e);t++)$n(e);return t}function oon(e,t){var s,a;return s=h(e.d.zc(t),15),s?(a=e.e.hc(),a.Ec(s),e.e.d-=s.gc(),s.$b(),a):null}function lme(e,t){var s,a;if(a=e.c[t],a!=0)for(e.c[t]=0,e.d-=a,s=t+1;sYF?e-s>YF:s-e>YF}function Vct(e){if(!e.a||(e.a.i&8)==0)throw ee(new Gs("Enumeration class expected for layout option "+e.f))}function zct(e){Bnt.call(this,"The given string does not match the expected format for individual spacings.",e)}function Uct(){IHt.call(this,new Qge(ny(16))),Rf(2,tgt),this.b=2,this.a=new Q0e(null,null,0,null),IT(this.a,this.a)}function Hct(e){uXe(),Wj(this),BR(this),this.e=e,Yht(this,e),this.g=e==null?vc:Bs(e),this.a="",this.b=e,this.a=""}function hme(){this.a=new TFe,this.f=new oWe(this),this.b=new sWe(this),this.i=new aWe(this),this.e=new cWe(this)}function X5(){X5=H,aie=new AX("CONSERVATIVE",0),rke=new AX("CONSERVATIVE_SOFT",1),KI=new AX("SLOPPY",2)}function kQ(){kQ=H,Bne=Pnt(re(ne(d9,1),je,108,0,[(cs(),xf),qf])),Vne=Pnt(re(ne(d9,1),je,108,0,[P1,T1]))}function fon(e){var t,s,a,l;for(a=e.b.a,s=a.a.ec().Ic();s.Ob();)t=h(s.Pb(),554),l=new Oht(t,e.e,e.f),Re(e.g,l)}function jg(e,t){var s,a,l;a=e.ik(t,null),l=null,t&&(l=(ZS(),s=new Lb,s),P5(l,e.r)),a=bd(e,l,a),a&&a.Ai()}function qct(e,t){var s;for(s=0;sl&&(fft(t.q,l),a=s!=t.q.c)),a}function Gct(e,t){var s,a,l,f,v,w,S,C;return S=t.i,C=t.j,a=e.f,l=a.i,f=a.j,v=S-l,w=C-f,s=m.Math.sqrt(v*v+w*w),s}function gme(e,t){var s,a;return a=vL(e),a||(s=(pJ(),gdt(t)),a=new aGe(s),_n(a.Qk(),e)),a}function gon(e){var t;return t=new Tst(e),IA(e.a,C2t,new gu(re(ne(RO,1),rt,366,0,[t]))),t.d&&Re(t.f,t.d),t.f}function bon(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw ee(new ca);return t=e.a,e.a+=e.c.c,++e.b,Ue(t)}function Xct(e){var t;if(e.c!=0)return e.c;for(t=0;t=a||ts)throw ee(new ds(wF+e+f2e+t+", size: "+s));if(e>t)throw ee(new Gt(wF+e+wgt+t))}function vme(e){throw uQ(),ee(new aXe("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function aP(e){return v0(),e<0?e!=-1?new sve(-1,-e):bne:e<=10?U4e[ki(e)]:new sve(1,e)}function oL(e){var t;switch(e.gc()){case 0:return ane;case 1:return new kK(Hn(e.Xb(0)));default:return t=e,new oY(t)}}function eut(e){switch(qd(),e.gc()){case 0:return GK(),y4e;case 1:return new w3(e.Ic().Pb());default:return new Ghe(e)}}function ip(e){switch(qd(),e.c){case 0:return GK(),y4e;case 1:return new w3(Adt(new S3(e)));default:return new oXe(e)}}function yme(e,t){switch(t){case 1:!e.n&&(e.n=new $e(Ds,e,1,7)),Cn(e.n);return;case 2:b8(e,null);return}Wbe(e,t)}function Con(e,t){var s,a,l;for(l=1,s=e,a=t>=0?t:-t;a>0;)a%2==0?(s*=s,a=a/2|0):(l*=s,a-=1);return t<0?1/l:l}function wme(e,t){var s,a,l;for(l=1,s=e,a=t>=0?t:-t;a>0;)a%2==0?(s*=s,a=a/2|0):(l*=s,a-=1);return t<0?1/l:l}function Ion(e){var t,s,a;for(a=0,s=new Q(e.a);s.as));)l>=t&&++a;return a}function Oon(e){var t;return t=h(lm(e.c.c,""),227),t||(t=new $3(YS(QS(new d3,""),"Other")),Lg(e.c.c,"",t)),t}function S8(e){var t;return(e.Db&64)!=0?gf(e):(t=new _l(gf(e)),t.a+=" (name: ",is(t,e.zb),t.a+=")",t.a)}function xme(e,t,s){var a,l;return l=e.sb,e.sb=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Wi(e,1,4,l,t),s?s.zi(a):s=a),s}function E8(e,t,s){var a;if(a=e.gc(),t>a)throw ee(new zv(t,a));if(e.ci()&&e.Fc(s))throw ee(new Gt(vO));e.Sh(t,s)}function hl(e,t,s){if(t<0)xye(e,s);else{if(!s.Dj())throw ee(new Gt(C0+s.ne()+gI));h(s,65).Ij().Qj(e,e.th(),t)}}function cP(e,t,s){var a;e.li(e.i+1),a=e.ji(t,s),t!=e.i&&Sa(e.g,t,e.g,t+1,e.i-t),ui(e.g,t,a),++e.i,e.Yh(t,s),e.Zh()}function Sme(e,t,s){var a,l;return l=e.r,e.r=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Wi(e,1,8,l,e.r),s?s.zi(a):s=a),s}function _on(e,t,s){var a,l;return a=new p1(e.e,4,13,(l=t.c,l||(At(),Pd)),null,up(e,t),!1),s?s.zi(a):s=a,s}function Mon(e,t,s){var a,l;return a=new p1(e.e,3,13,null,(l=t.c,l||(At(),Pd)),up(e,t),!1),s?s.zi(a):s=a,s}function op(e,t){var s,a;return s=h(t,664),a=s.qk(),!a&&s.rk(a=ue(t,87)?new oQe(e,h(t,26)):new Srt(e,h(t,148))),a}function Don(e,t){var s,a,l,f;if(t.qi(e.a),f=h(zt(e.a,8),1908),f!=null)for(s=f,a=0,l=s.length;a-129&&e<128?(t=e+128,s=(xet(),N4e)[t],!s&&(s=N4e[t]=new _de(e)),s):new _de(e)}function Ue(e){var t,s;return e>-129&&e<128?(t=e+128,s=(fet(),O4e)[t],!s&&(s=O4e[t]=new Pde(e)),s):new Pde(e)}function Ime(e){var t,s;return t=e.k,t==(nn(),Ai)?(s=h(G(e,(Be(),ea)),61),s==(He(),Wt)||s==Sn):!1}function Fon(e){var t,s,a;for(t=h(G(e,(la(),pke)),14),a=t.Ic();a.Ob();)s=h(a.Pb(),188),dr(s.b.d,s),dr(s.c.b,s)}function Bon(e){var t;e.g&&(t=e.c.Of()?e.f:e.a,rwe(t.a,e.o,!0),rwe(t.a,e.o,!1),_e(e.o,(Ye(),yi),(lo(),db)))}function Von(e){var t;if(!e.a)throw ee(new Gs("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,ont(e,t),snt(e,t)}function zon(e,t){var s;if(s=qn(e.k,t),s==null)throw ee(new Fd("Port did not exist in input."));return $be(t,s),null}function Uon(e,t,s){var a,l,f;return f=(l=f6(e.b,t),l),f&&(a=h(aF(FA(e,f),""),26),a)?zye(e,a,t,s):null}function AQ(e,t,s){var a,l,f;return f=(l=f6(e.b,t),l),f&&(a=h(aF(FA(e,f),""),26),a)?Uye(e,a,t,s):null}function aut(e,t){var s,a;for(a=new bn(e);a.e!=a.i.gc();)if(s=h(yn(a),138),Pe(t)===Pe(s))return!0;return!1}function Hon(e,t,s){var a,l;for(l=ue(t,97)&&(h(t,17).Bb&Bo)!=0?new VX(t,e):new V5(t,e),a=0;a>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function Gon(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,ui(e.a,e.c,null),t)}function Xon(e){var t,s,a;for(a=0,s=e.length,t=0;t=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function go(e,t){return et?1:e==t?e==0?go(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function fut(e){switch(e.g){case 2:return qf;case 1:return xf;case 4:return T1;case 3:return P1;default:return A1}}function Tme(e){switch(e.g){case 1:return Xt;case 2:return Wt;case 3:return rn;case 4:return Sn;default:return Hs}}function fP(e){switch(e.g){case 1:return Sn;case 2:return Xt;case 3:return Wt;case 4:return rn;default:return Hs}}function aL(e){switch(e.g){case 1:return rn;case 2:return Sn;case 3:return Xt;case 4:return Wt;default:return Hs}}function Ame(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new cl(t.d,0,t.a,t.b);default:return null}}function Rg(e){if(e.c)Rg(e.c);else if(e.d)throw ee(new Gs("Stream already terminated, can't be modified or used"))}function Yon(e,t){Mn(t,"Sort end labels",1),mi(Kr($s(new Rt(null,new Lt(e.b,16)),new FS),new mT),new vT),wn(t)}function Y5(e,t){var s;s=(e.Bb&Ty)!=0,t?e.Bb|=Ty:e.Bb&=-4097,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new df(e,1,12,s,t))}function Q5(e,t){var s;s=(e.Bb&mf)!=0,t?e.Bb|=mf:e.Bb&=-1025,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new df(e,1,10,s,t))}function Z5(e,t){var s;s=(e.Bb&jy)!=0,t?e.Bb|=jy:e.Bb&=-2049,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new df(e,1,11,s,t))}function J5(e,t){var s;s=(e.Bb&jc)!=0,t?e.Bb|=jc:e.Bb&=-8193,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new df(e,1,15,s,t))}function PQ(e,t){var s,a,l;e.d==null?(++e.e,--e.f):(l=t.ad(),s=t.Nh(),a=(s&Ir)%e.d.length,Ftn(e,a,kht(e,a,s,l)))}function dP(e,t,s){var a,l;return e._i()?(l=e.aj(),a=RZ(e,t,s),e.Vi(e.Ui(7,Ue(s),a,t,l)),a):RZ(e,t,s)}function Qon(e,t){var s;return s=go(e.b.c,t.b.c),s!=0||(s=go(e.a.a,t.a.a),s!=0)?s:go(e.a.b,t.a.b)}function Zon(e,t){var s,a;for(a=new Q(e.a);a.a=1?qf:T1):s}function rsn(e){switch(h(G(e,(Be(),rb)),301).g){case 1:_e(e,rb,(g1(),k4));break;case 2:_e(e,rb,(g1(),K2))}}function isn(e){switch(h(G(e,(Ye(),yp)),216).g){case 1:return new F$e;case 3:return new H$e;default:return new L$e}}function osn(e,t){var s;if(s=$P(e.Og(),t),ue(s,97))return h(s,17);throw ee(new Gt(C0+t+"' is not a valid reference"))}function ssn(e){var t,s,a;for(s=0,a=e.length;s>10)+tO&Ii,t[1]=(e&1023)+56320&Ii,Rl(t,0,t.length)}function csn(e){var t;return t=gy(e),t>34028234663852886e22?pi:t<-34028234663852886e22?Pi:t}function usn(e){var t,s;for(s=s1n(Bu(Qv(e))).Ic();s.Ob();)if(t=Fn(s.Pb()),U8(e,t))return htn((YKe(),mEt),t);return null}function put(e){var t,s,a,l;for(t=new eJe(e.Hd().gc()),l=0,a=q3(e.Hd().Ic());a.Ob();)s=a.Pb(),OJt(t,s,Ue(l++));return Yfn(t.a)}function lsn(e,t,s,a){var l,f,v;for(l=t+1;lt&&a.ue(e[f-1],e[f])>0;--f)v=e[f],ui(e,f,e[f-1]),ui(e,f-1,v)}function fsn(e,t,s){e.n=mg(W0,[Oe,ZJ],[361,24],14,[s,ki(m.Math.ceil(t/32))],2),e.o=t,e.p=s,e.j=t-1>>1,e.k=s-1>>1}function NQ(){Gve();var e,t,s;s=zwn+++Date.now(),e=ki(m.Math.floor(s*rO))&yF,t=ki(s-e*c2e),this.a=e^1502,this.b=t^iee}function gut(e,t,s,a,l,f){this.e=new Fe,this.f=(as(),XI),Re(this.e,e),this.d=t,this.a=s,this.b=a,this.f=l,this.c=f}function I8(e){var t;this.a=(t=h(e.e&&e.e(),9),new al(t,h(lf(t,t.length),9),0)),this.b=ge(hn,rt,1,this.a.a.length,5,1)}function dsn(e,t){var s,a,l;for(l=new Un,a=t.tc().Ic();a.Ob();)s=h(a.Pb(),43),Fr(l,s.ad(),tin(e,h(s.bd(),14)));return l}function but(e,t){var s;switch(s=h(os(e.b,t),121).n,t.g){case 1:s.d=e.s;break;case 3:s.a=e.s}e.B&&(s.b=e.B.b,s.c=e.B.c)}function hsn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function mut(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function uL(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw ee(new Gt("Node "+t+" not part of edge "+e))}function pl(e,t,s,a){if(t<0)Gye(e,s,a);else{if(!s.Dj())throw ee(new Gt(C0+s.ne()+gI));h(s,65).Ij().Oj(e,e.th(),t,a)}}function vut(e,t){var s,a;for(s=ar(e,0);s.b!=s.d.c;){if(a=AT(Xe(sr(s))),a==t)return;if(a>t){yY(s);break}}mA(s,t)}function psn(e,t){var s,a,l;a=t2(t),l=Ae(Xe(uy(a,(Ye(),wf)))),s=m.Math.max(0,l/2-.5),D8(t,s,1),Re(e,new bYe(t,s))}function jQ(e,t){var s,a,l;for(l=0,a=h(t.Kb(e),19).Ic();a.Ob();)s=h(a.Pb(),18),_t(It(G(s,(Be(),_0))))||++l;return l}function Et(e,t){var s,a,l,f,v;if(s=t.f,Lg(e.c.d,s,t),t.g!=null)for(l=t.g,f=0,v=l.length;f>>0,t.toString(16)):e.toString()}function Dme(e,t,s,a){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return Eme(e,t,s,a)}function bsn(e){return e.k!=(nn(),ji)?!1:E5(new Rt(null,new em(new mn(vn(Di(e).a.Ic(),new j)))),new O$e)}function msn(e){return e.e==null?e:(!e.c&&(e.c=new XZ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function vsn(e){return kQ(),Zt(),!!(mut(h(e.a,79).j,h(e.b,108))||h(e.a,79).d.e!=0&&mut(h(e.a,79).j,h(e.b,108)))}function ysn(e){Vv();var t,s,a,l;for(t=e.o.b,a=h(h(Br(e.r,(He(),Sn)),21),81).Ic();a.Ob();)s=h(a.Pb(),110),l=s.e,l.b+=t}function wsn(e){var t,s,a;for(this.a=new s1,a=new Q(e);a.a=l)return t.c+s;return t.c+t.b.gc()}function Ssn(e,t){var s,a;for(a=e.e.a.ec().Ic();a.Ob();)if(s=h(a.Pb(),265),_fn(t,s.d)||$dn(t,s.d))return!0;return!1}function Esn(e,t,s){var a,l;for(a=$i(s,es),l=0;ba(a,0)!=0&&l0&&(Bn(t-1,e.length),e.charCodeAt(t-1)==58)&&!RQ(e,E9,k9))}function hP(e,t){var s;return Ps(e)&&Ps(t)&&(s=e%t,eO1?ad(c1(t.a[1],32),$i(t.a[0],es)):$i(t.a[0],es),cm(Eo(t.e,s))))}function Isn(e,t,s){var a;a=s,!a&&(a=d0e(new GS,0)),Mn(a,Ygt,2),Slt(e.b,t,Pa(a,1)),Zmn(e,t,Pa(a,1)),Uyn(t,Pa(a,1)),wn(a)}function Tsn(e,t,s,a,l){$u(),bf(cf(af(sf(uf(new Ol,0),l.d.e-e),t),l.d)),bf(cf(af(sf(uf(new Ol,0),s-l.a.e),l.a),a))}function cp(){cp=H,ioe=new Dj(rI,0),m_=new Dj("POLYLINE",1),h9=new Dj("ORTHOGONAL",2),B4=new Dj("SPLINES",3)}function gl(){gl=H,qO=new zT(S0,0),BI=new zT("FIRST",1),M0=new zT(hbt,2),VI=new zT("LAST",3),zy=new zT(pbt,4)}function lL(){lL=H,kie=new MX("OVERLAP_REMOVAL",0),Sie=new MX("COMPACTION",1),Eie=new MX("GRAPH_SIZE_CALCULATION",2)}function fL(){fL=H,Gke=new DX("ASPECT_RATIO_DRIVEN",0),Oie=new DX("MAX_SCALE_DRIVEN",1),Wke=new DX("AREA_DRIVEN",2)}function $Q(){$Q=H,gj(),UV=(Ye(),Km),C4t=fd(re(ne(zie,1),n3e,146,0,[BV,wf,D4,Xm,Xy,qre,cE,Wre,qI,tx,cb,nx]))}function Nme(e){$Q(),this.c=fd(re(ne(s2n,1),rt,810,0,[k4t])),this.b=new Un,this.a=e,Fr(this.b,UV,1),gc(C4t,new mWe(this))}function ym(e,t){return id(),hf(x0),m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t))}function yut(e,t){e.hj();try{e.d.Tc(e.e++,t),e.f=e.d.j,e.g=-1}catch(s){throw s=ni(s),ue(s,73)?ee(new ol):ee(s)}}function K3(e){switch(He(),e.g){case 4:return Wt;case 1:return rn;case 3:return Sn;case 2:return Xt;default:return Hs}}function wut(e){switch(e.g){case 0:return new wFe;case 1:return new EFe;default:throw ee(new Gt(Pee+(e.f!=null?e.f:""+e.g)))}}function Asn(e){switch(e.g){case 0:return new xFe;case 1:return new SFe;default:throw ee(new Gt(lte+(e.f!=null?e.f:""+e.g)))}}function Psn(e){switch(e.g){case 1:return new hFe;case 2:return new MZe;default:throw ee(new Gt(lte+(e.f!=null?e.f:""+e.g)))}}function xut(e){switch(e.g){case 0:return new vhe;case 1:return new VGe;default:throw ee(new Gt(eB+(e.f!=null?e.f:""+e.g)))}}function Osn(e){var t,s;if(e.b)return e.b;for(s=wd?null:e.d;s;){if(t=wd?null:s.b,t)return t;s=wd?null:s.d}return r5(),eSe}function Sut(e,t){var s;return e.d?sd(e.b,t)?h(qn(e.b,t),52):(s=t.Hf(),Fr(e.b,t,s),s):t.Hf()}function jme(e,t){var s;return Pe(e)===Pe(t)?!0:ue(t,90)?(s=h(t,90),e.e==s.e&&e.d==s.d&&ftn(e,s.a)):!1}function _sn(e){var t,s,a,l,f;return f=Xve(e),s=_T(e.c),a=!s,a&&(l=new cg,Nf(f,"knownLayouters",l),t=new XWe(l),So(e.c,t)),f}function Msn(e,t){var s,a,l,f;t&&(l=b1(t,"x"),s=new FWe(e),O5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new VWe(e),D5(a.a,(Ut(f),f)))}function Dsn(e,t){var s,a,l,f;t&&(l=b1(t,"x"),s=new UWe(e),_5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new HWe(e),M5(a.a,(Ut(f),f)))}function Nsn(e,t){var s,a,l;for(Ut(t),s=!1,a=new Q(e);a.a0&&(a+=l,++s);return s>1&&(a+=e.d*(s-1)),a}function $me(e){var t,s,a;for(a=new X1,a.a+="[",t=0,s=e.gc();t>5,t=e&31,a=ge(Pn,rr,24,s+1,15,1),a[s]=1<=0;--a)for(t=s[a],l=0;l3;)l*=10,--f;e=(e+(l>>1))/l|0}return a.i=e,!0}function zsn(e,t,s){var a,l;return a=Ae(e.p[t.i.p])+Ae(e.d[t.i.p])+t.n.b+t.a.b,l=Ae(e.p[s.i.p])+Ae(e.d[s.i.p])+s.n.b+s.a.b,l-a}function Iut(e,t){var s,a;e.a=Po(e.a,1),e.c=m.Math.min(e.c,t),e.b=m.Math.max(e.b,t),e.d+=t,s=t-e.f,a=e.e+s,e.f=a-e.e-s,e.e=a}function FQ(e,t){var s,a,l;return e.f>0?(e.lj(),a=t==null?0:ri(t),l=(a&Ir)%e.d.length,s=kht(e,l,a,t),s!=-1):!1}function pP(e,t){var s,a,l,f;for(f=tc(e.e.Og(),t),s=h(e.g,118),l=0;l0&&(t.lengthe.i&&ui(t,e.i,null),t}function pL(e,t){R1e();var s,a;return s=cA((tj(),tj(),TI)),a=null,t==s&&(a=h(Ta(S4e,e),605)),a||(a=new Ett(e),t==s&&ps(S4e,e,a)),a}function Tut(e){Vv();var t;return t=new Ss(h(e.e.Xe((Or(),p_)),8)),e.A.Fc((su(),SE))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function Ua(e,t,s){var a,l,f;return e._i()?(a=e.i,f=e.aj(),cP(e,a,t),l=e.Ui(3,null,t,a,f),s?s.zi(l):s=l):cP(e,e.i,t),s}function $f(e,t){var s,a,l;return e.f>0&&(e.lj(),a=t==null?0:ri(t),l=(a&Ir)%e.d.length,s=Tye(e,l,a,t),s)?s.bd():null}function Usn(e,t,s){var a,l;return a=new p1(e.e,3,10,null,(l=t.c,ue(l,87)?h(l,26):(At(),Zl)),up(e,t),!1),s?s.zi(a):s=a,s}function Hsn(e,t,s){var a,l;return a=new p1(e.e,4,10,(l=t.c,ue(l,87)?h(l,26):(At(),Zl)),null,up(e,t),!1),s?s.zi(a):s=a,s}function Aut(e,t){var s,a,l;return ue(t,43)?(s=h(t,43),a=s.ad(),l=nL(e.Pc(),a),Th(l,s.bd())&&(l!=null||e.Pc()._b(a))):!1}function Put(e){fy();var t;return(e.q?e.q:(Mt(),Mt(),ah))._b((Ye(),Wm))?t=h(G(e,Wm),196):t=h(G(hs(e),HI),196),t}function uy(e,t){var s,a;return a=null,Lo(e,(Ye(),VV))&&(s=h(G(e,VV),94),s.Ye(t)&&(a=s.Xe(t))),a==null&&(a=G(hs(e),t)),a}function gL(){gL=H,coe=new Rj("SIMPLE",0),B8e=new Rj("GROUP_DEC",1),z8e=new Rj("GROUP_MIXED",2),V8e=new Rj("GROUP_INC",3)}function BQ(){BQ=H,voe=new FBe,fIe=new BBe,dIe=new VBe,hIe=new zBe,pIe=new UBe,gIe=new HBe,bIe=new qBe,mIe=new WBe,vIe=new GBe}function Wme(){Wme=H,L8e=new bg(15),V6t=new $o((Or(),j0),L8e),U6t=new $o(fb,15),z6t=new $o(noe,Ue(0)),B6t=new $o(R4,T6)}function qsn(e,t){var s;return s=h(Fu(e,Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[(gd(),Wu)]))),14),s.Oc(eet(s.gc()))}function gP(e,t){var s,a;for(a=t.length,s=0;s0&&(Bn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function Gsn(e){var t;return e==null?null:new Jp((t=Ma(e,!0),t.length>0&&(Bn(0,t.length),t.charCodeAt(0)==43)?t.substr(1):t))}function bL(e){var t,s,a,l;for(a=0,l=0,s=new Q(e.a);s.a>1,this.k=t-1>>1}function Xsn(e,t){Mn(t,"End label post-processing",1),mi(Kr($s(new Rt(null,new Lt(e.b,16)),new Qr),new Ns),new Ya),wn(t)}function Mut(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!h(e.b,48).Ug())return!0;return e.b=null,!1}else return!0}function Xme(e,t){var s,a;if(ue(t,244)){a=h(t,244);try{return s=e.vd(a),s==0}catch(l){if(l=ni(l),!ue(l,203))throw ee(l)}}return!1}function Ksn(){var e;return CB!=0&&(e=ytn(),e-xyt>2e3&&(xyt=e,IB=m.setTimeout(Iqt,10))),CB++==0?(Lnn((xhe(),x4e)),!0):!1}function Ysn(){return Error.stackTraceLimit>0?(m.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Qsn(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))>0}function Kme(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))<0}function Zsn(e){var t;t=e.a;do t=h($n(new mn(vn(Di(t).a.Ic(),new j))),18).d.i,t.k==(nn(),Ki)&&Re(e.e,t);while(t.k==(nn(),Ki))}function VQ(e){var t;e.c!=0&&(t=h(st(e.a,e.b),286),t.b==1?(++e.b,e.b=0?f=f.a[1]:(l=f,f=f.a[0])}return l}function jut(e,t,s){var a,l,f;for(l=null,f=e.b;f;){if(a=e.a.ue(t,f.d),s&&a==0)return f;a<=0?f=f.a[0]:(l=f,f=f.a[1])}return l}function Rut(e,t,s){var a,l,f,v;for(l=h(qn(e.b,s),177),a=0,v=new Q(t.j);v.a>5,t&=31,l=e.d+s+(t==0?0:1),a=ge(Pn,rr,24,l,15,1),Jln(a,e.a,s,t),f=new Zw(e.e,l,a),s8(f),f}function Jme(e,t,s){var a,l;a=h(Ta(CE,t),117),l=h(Ta(O9,t),117),s?(ps(CE,e,a),ps(O9,e,l)):(ps(O9,e,a),ps(CE,e,l))}function Lut(e){var t,s;return t=h(zt(e.a,4),124),t!=null?(s=ge(poe,Ute,410,t.length,0,1),Sa(t,0,s,0,t.length),s):cEt}function Fut(e){var t,s,a,l,f;if(e==null)return null;for(f=new Fe,s=gQ(e),a=0,l=s.length;at.e?1:e.et.d?e.e:e.d=48&&e<48+m.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function qut(e,t){return id(),id(),hf(x0),(m.Math.abs(e-t)<=x0||e==t||isNaN(e)&&isNaN(t)?0:et?1:Xb(isNaN(e),isNaN(t)))<=0}function eve(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function san(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ee(new Gt("Input edge is not connected to the input port."))}function aan(e){if(yL(O6,e))return Zt(),$6;if(yL(Ste,e))return Zt(),tb;throw ee(new Gt("Expecting true or false"))}function bP(e){return v0(),ba(e,0)<0?ba(e,-1)!=0?new Lve(-1,I5(e)):bne:ba(e,10)<=0?U4e[On(e)]:new Lve(1,e)}function $g(e){var t,s;return ba(e,-129)>0&&ba(e,128)<0?(t=On(e)+128,s=(wet(),_4e)[t],!s&&(s=_4e[t]=new Ode(e)),s):new Ode(e)}function Wut(e,t){var s;return Pe(t)===Pe(e)?!0:!ue(t,21)||(s=h(t,21),s.gc()!=e.gc())?!1:e.Gc(s)}function vL(e){var t,s,a;if(a=e.Ug(),!a)for(t=0,s=e.$g();s;s=s.$g()){if(++t>JJ)return s._g();if(a=s.Ug(),!!a||s==e)break}return a}function can(e,t){var s,a,l,f;return a=e.a.length-1,s=t-e.b&a,f=e.c-t&a,l=e.c-e.b&a,EZe(s=f?(son(e,t),-1):(aon(e,t),1)}function uan(e,t){var s,a;for(s=(Bn(t,e.length),e.charCodeAt(t)),a=t+1;at.e?1:e.ft.f?1:ri(e)-ri(t)}function yL(e,t){return Ut(e),t==null?!1:kt(e,t)?!0:e.length==t.length&&kt(e.toLowerCase(),t.toLowerCase())}function van(e,t){var s,a,l,f;for(a=0,l=t.gc();a0):!1}function kan(e,t,s){var a,l;kZ(e.e,t,s,(He(),Xt)),kZ(e.i,t,s,rn),e.a&&(l=h(G(t,(Be(),Dr)),11),a=h(G(s,Dr),11),vY(e.g,l,a))}function Zut(e,t){var s,a,l;if(Re(BB,e),t.Dc(e),s=h(qn(Mne,e),21),s)for(l=s.Ic();l.Ob();)a=h(l.Pb(),34),Os(BB,a,0)!=-1||Zut(a,t)}function yn(e){var t;try{return t=e.i.Xb(e.e),e.hj(),e.g=e.e++,t}catch(s){throw s=ni(s),ue(s,73)?(e.hj(),ee(new ca)):ee(s)}}function HQ(e){var t;try{return t=e.c.fi(e.e),e.hj(),e.g=e.e++,t}catch(s){throw s=ni(s),ue(s,73)?(e.hj(),ee(new ca)):ee(s)}}function Can(e){var t;if(e==null)return null;if(t=E1n(Ma(e,!0)),t==null)throw ee(new nX("Invalid hexBinary value: '"+e+"'"));return t}function Ian(e,t,s){var a;(Byt?(Osn(e),!0):Vyt||Uyt?(r5(),!0):zyt&&(r5(),!1))&&(a=new CJe(t),a.b=s,Dfn(e,a))}function qQ(e,t){var s;s=!e.w.Fc((xu(),hb))||e.q==(lo(),Ra),e.t.Fc((ou(),_1))?s?$yn(e,t):S0t(e,t):e.t.Fc(F0)&&(s?nyn(e,t):_0t(e,t))}function Jut(e){var t;Pe(Ot(e,(Or(),ax)))===Pe((m1(),Cz))&&(Gi(e)?(t=h(Ot(Gi(e),ax),332),Ts(e,ax,t)):Ts(e,ax,g9))}function elt(e,t,s){return new cl(m.Math.min(e.a,t.a)-s/2,m.Math.min(e.b,t.b)-s/2,m.Math.abs(e.a-t.a)+s,m.Math.abs(e.b-t.b)+s)}function Tan(e,t){var s,a;return s=Qa(e.a.c.p,t.a.c.p),s!=0?s:(a=Qa(e.a.d.i.p,t.a.d.i.p),a!=0?a:Qa(t.a.d.p,e.a.d.p))}function Aan(e,t,s){var a,l,f,v;return f=t.j,v=s.j,f!=v?f.g-v.g:(a=e.f[t.p],l=e.f[s.p],a==0&&l==0?0:a==0?-1:l==0?1:go(a,l))}function tlt(e,t,s){var a,l,f;a=t.c.p,f=t.p,e.b[a][f]=new bnt(e,t),s&&(e.a[a][f]=new jqe(t),l=h(G(t,(Be(),Um)),10),l&&ur(e.d,l,t))}function nlt(e,t,s){var a,l,f;if(!s[t.d])for(s[t.d]=!0,l=new Q(d2(t));l.a=64&&t<128&&(l=ad(l,c1(1,t-64)));return l}function WQ(e,t,s,a){var l;if(l=e.length,t>=l)return l;for(t=t>0?t:0;ta&&ui(t,a,null),t}function rlt(e,t){var s,a;for(a=e.a.length,t.lengtha&&ui(t,a,null),t}function ilt(e){this.d=new Fe,this.e=new Cg,this.c=ge(Pn,rr,24,(He(),re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt])).length,15,1),this.b=e}function olt(e){var t;this.d=new Fe,this.j=new Qo,this.g=new Qo,t=e.g.b,this.f=h(G(hs(t),(Ye(),Gu)),108),this.e=Ae(Xe(EL(t,Xy)))}function rve(e,t,s){var a;switch(a=s[e.g][t],e.g){case 1:case 3:return new ot(0,a);case 2:case 4:return new ot(a,0);default:return null}}function Oan(e){var t;switch(t=e.ti(null),t){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function slt(e,t,s){var a,l,f,v,w,S;return a=null,w=Vwe(j5(),t),f=null,w&&(l=null,S=Fwe(w,s),v=null,S!=null&&(v=e.Ze(w,S)),l=v,f=l),a=f,a}function Lg(e,t,s){var a,l,f;return l=h(qn(e.e,t),382),l?(f=Ape(l,s),eZe(e,l),f):(a=new n0e(e,t,s),Fr(e.e,t,a),Cnt(a),null)}function _an(e,t,s,a){var l,f,v;return l=new p1(e.e,1,13,(v=t.c,v||(At(),Pd)),(f=s.c,f||(At(),Pd)),up(e,t),!1),a?a.zi(l):a=l,a}function ive(e,t,s,a){u6();var l,f;for(l=0,f=0;f=e.b>>1)for(a=e.c,s=e.b;s>t;--s)a=a.b;else for(a=e.a.a,s=0;s=0?e.gh(l):jZ(e,a)):s<0?jZ(e,a):h(a,65).Ij().Nj(e,e.th(),s)}function flt(e){var t,s,a;for(a=(!e.o&&(e.o=new tu((Da(),Ip),pb,e,0)),e.o),s=a.c.Ic();s.e!=s.i.gc();)t=h(s.ij(),43),t.bd();return DA(a)}function O8(){O8=H,DSe=(Or(),g8e),One=GCe,Bwt=R4,MSe=j0,Hwt=(ML(),fSe),Uwt=uSe,qwt=hSe,zwt=cSe,Vwt=(wQ(),PSe),Pne=$wt,_Se=Lwt,FB=Fwt}function SL(e){switch(zhe(),this.c=new Fe,this.d=e,e.g){case 0:case 2:this.a=ege(YSe),this.b=pi;break;case 3:case 1:this.a=YSe,this.b=Pi}}function EL(e,t){var s,a;return a=null,Lo(e,(Or(),F4))&&(s=h(G(e,F4),94),s.Ye(t)&&(a=s.Xe(t))),a==null&&!!hs(e)&&(a=G(hs(e),t)),a}function Ran(e,t){var s;return s=h(G(e,(Ye(),ws)),74),KX(t,I2t)?s?Dl(s):(s=new Tc,_e(e,ws,s)):s&&_e(e,ws,null),s}function $an(e){var t;!HC(h(G(e,(Ye(),yi)),100))||(t=e.b,Hdt((qt(0,t.c.length),h(t.c[0],29))),Hdt(h(st(t,t.c.length-1),29)))}function Lan(e,t){var s,a;if(e.j.length!=t.j.length)return!1;for(s=0,a=e.j.length;s0&&(Re(e.b,new XJe(t.a,s)),a=t.a.length,0a&&(t.a+=JQe(ge(wl,Qd,24,-a,15,1))))}function hlt(e,t){var s,a,l;for(s=e.o,l=h(h(Br(e.r,t),21),81).Ic();l.Ob();)a=h(l.Pb(),110),a.e.a=zcn(a,s.a),a.e.b=s.b*Ae(Xe(a.b.Xe(RB)))}function Fan(e,t){var s,a;return s=h(h(qn(e.g,t.a),46).a,63),a=h(h(qn(e.g,t.b),46).a,63),a0(t.a,t.b)-a0(t.a,L1e(s.b))-a0(t.b,L1e(a.b))}function Ban(e,t){var s,a,l,f;return l=e.k,s=Ae(Xe(G(e,(Be(),Hm)))),f=t.k,a=Ae(Xe(G(t,Hm))),f!=(nn(),Ai)?-1:l!=Ai?1:s==a?0:s=0?e.bh(t,s,a):(e.$g()&&(a=(l=e.Qg(),l>=0?e.Lg(a):e.$g().dh(e,-1-l,null,a))),e.Ng(t,s,a))}function p2(e,t,s){var a,l;if(l=e.gc(),t>=l)throw ee(new zv(t,l));if(e.ci()&&(a=e.Vc(s),a>=0&&a!=t))throw ee(new Gt(vO));return e.hi(t,s)}function zan(e,t,s){var a,l,f,v;return a=e.Vc(t),a!=-1&&(e._i()?(f=e.aj(),v=bR(e,a),l=e.Ui(4,v,null,a,f),s?s.zi(l):s=l):bR(e,a)),s}function _o(e,t,s){var a,l,f,v;return a=e.Vc(t),a!=-1&&(e._i()?(f=e.aj(),v=J3(e,a),l=e.Ui(4,v,null,a,f),s?s.zi(l):s=l):J3(e,a)),s}function ove(e,t){switch(t){case 7:!e.e&&(e.e=new Ht(Hi,e,7,4)),Cn(e.e);return;case 8:!e.d&&(e.d=new Ht(Hi,e,8,5)),Cn(e.d);return}Ume(e,t)}function Ts(e,t,s){return s==null?(!e.o&&(e.o=new tu((Da(),Ip),pb,e,0)),mL(e.o,t)):(!e.o&&(e.o=new tu((Da(),Ip),pb,e,0)),DL(e.o,t,s)),e}function sve(e,t){this.e=e,ts.b)return!0}return!1}function YQ(e,t){return to(e)?!!pyt[t]:e.cm?!!e.cm[t]:$v(e)?!!hyt[t]:Rv(e)?!!dyt[t]:!1}function CL(e){var t;if(yQ(e))return ER(e),e.Gk()&&(t=L8(e.e,e.b,e.c,e.a,e.j),e.j=t),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw ee(new ca)}function Kan(e,t,s,a){var l,f;f=t.Ye((Or(),xz))?h(t.Xe(xz),21):e.j,l=Lon(f),l!=(hF(),Cne)&&(s&&!eve(l)||aye(k1n(e,l,a),t))}function IL(e,t,s,a){var l,f,v;return f=Dt(e.Og(),t),l=t-e.vh(),l<0?(v=e.Tg(f),v>=0?e.Wg(v,s,!0):km(e,f,s)):h(f,65).Ij().Kj(e,e.th(),l,s,a)}function Yan(e,t,s,a){var l,f,v;s.hh(t)&&(Ho(),HY(t)?(l=h(s.Xg(t),152),van(e,l)):(f=(v=t,v?h(a,48).sh(v):null),f&&aHt(s.Xg(t),f)))}function vP(){vP=H,qSe=(Or(),wz),new $o(Xie,(Zt(),!0)),GSe=new bg(10),new $o(j0,GSe),HSe=(mve(),u2t),zSe=a2t,USe=c2t,WSe=l2t,qB=s2t}function Qan(e){switch(e.g){case 1:return mm(),AO;case 3:return mm(),TO;case 2:return mm(),Tne;case 4:return mm(),Ine;default:return null}}function ave(e){switch(typeof e){case CJ:return lp(e);case Jwe:return ki(e);case o4:return Zt(),e?1231:1237;default:return e==null?0:Kb(e)}}function QQ(e){switch(e.g){case 0:return null;case 1:return new vat;case 2:return new yhe;default:throw ee(new Gt(lte+(e.f!=null?e.f:""+e.g)))}}function Zan(e,t,s){if(e.e)switch(e.b){case 1:OZt(e.c,t,s);break;case 0:_Zt(e.c,t,s)}else iit(e.c,t,s);e.a[t.p][s.p]=e.c.i,e.a[s.p][t.p]=e.c.e}function blt(e){var t,s;if(e==null)return null;for(s=ge(vp,Oe,213,e.length,0,2),t=0;t0||e==(KG(),one)||t==(YG(),sne))throw ee(new Gt("Invalid range: "+rit(e,t)))}function ZQ(e,t){if(e==null)throw ee(new y3("null key in entry: null="+t));if(t==null)throw ee(new y3("null value in entry: "+e+"=null"))}function Jan(e,t){var s,a,l,f;return f=e.o,s=e.p,f=0)return l;if(e.Ak()){for(a=0;a0),(t&-t)==t)return ki(t*Su(e,31)*4656612873077393e-25);do s=Su(e,31),a=s%t;while(s-a+(t-1)<0);return ki(a)}function lp(e){dJe();var t,s,a;return s=":"+e,a=DB[s],a!=null?ki((Ut(a),a)):(a=nSe[s],t=a==null?Lpn(e):ki((Ut(a),a)),MZt(),DB[s]=t,t)}function uve(e,t,s){var a,l;for(l=0,a=0;a1&&(f=ecn(e,t)),f}function eZ(e){var t;return!!e.f&&e.f.fh()&&(t=h(e.f,48),e.f=h(h0(e,t),93),e.f!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,9,8,t,e.f))),e.f}function tZ(e){var t;return!!e.i&&e.i.fh()&&(t=h(e.i,48),e.i=h(h0(e,t),93),e.i!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,9,7,t,e.i))),e.i}function qo(e){var t;return!!e.b&&(e.b.Db&64)!=0&&(t=e.b,e.b=h(h0(e,t),17),e.b!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,9,21,t,e.b))),e.b}function TL(e,t){var s,a,l;e.d==null?(++e.e,++e.f):(a=t.Nh(),ppn(e,e.f+1),l=(a&Ir)%e.d.length,s=e.d[l],!s&&(s=e.d[l]=e.pj()),s.Dc(t),++e.f)}function lve(e,t,s){var a;return t.Fj()?!1:t.Uj()!=-2?(a=t.uj(),a==null?s==null:Pr(a,s)):t.Cj()==e.e.Og()&&s==null}function AL(){var e;Rf(16,ogt),e=oat(16),this.b=ge(cne,QP,314,e,0,1),this.c=ge(cne,QP,314,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function y1(e){_pe.call(this),this.k=(nn(),ji),this.j=(Rf(6,Iy),new Va(6)),this.b=(Rf(2,Iy),new Va(2)),this.d=new HG,this.f=new fhe,this.a=e}function acn(e){var t,s;e.c.length<=1||(t=f1t(e,(He(),Sn)),odt(e,h(t.a,20).a,h(t.b,20).a),s=f1t(e,Xt),odt(e,h(s.a,20).a,h(s.b,20).a))}function M8(){M8=H,UEe=new UT("SIMPLE",0),eie=new UT(_ee,1),tie=new UT("LINEAR_SEGMENTS",2),WI=new UT("BRANDES_KOEPF",3),GI=new UT(Pbt,4)}function Elt(e,t,s,a){var l,f,v;for(l=h(Br(a?e.a:e.b,t),21),v=l.Ic();v.Ob();)if(f=h(v.Pb(),34),QL(e,s,f))return!0;return!1}function nZ(e){var t,s;for(s=new bn(e);s.e!=s.i.gc();)if(t=h(yn(s),86),!!t.e||(!t.d&&(t.d=new _i(rs,t,1)),t.d).i!=0)return!0;return!1}function rZ(e){var t,s;for(s=new bn(e);s.e!=s.i.gc();)if(t=h(yn(s),86),!!t.e||(!t.d&&(t.d=new _i(rs,t,1)),t.d).i!=0)return!0;return!1}function ccn(e){var t,s,a;for(t=0,a=new Q(e.c.a);a.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function ucn(e,t){for(var s,a;e.Ob();)if(!t.Ob()||(s=e.Pb(),a=t.Pb(),!(Pe(s)===Pe(a)||s!=null&&Pr(s,a))))return!1;return!t.Ob()}function Clt(e){var t;if(t=ion(e),!Qn(e))throw ee(new ds("position (0) must be less than the number of elements that remained ("+t+")"));return $n(e)}function Ilt(e,t){var s;return s=re(ne(oo,1),ls,24,15,[SQ(e.a[0],t),SQ(e.a[1],t),SQ(e.a[2],t)]),e.d&&(s[0]=m.Math.max(s[0],s[2]),s[2]=s[0]),s}function Tlt(e,t){var s;return s=re(ne(oo,1),ls,24,15,[rL(e.a[0],t),rL(e.a[1],t),rL(e.a[2],t)]),e.d&&(s[0]=m.Math.max(s[0],s[2]),s[2]=s[0]),s}function dve(e,t,s){HC(h(G(t,(Ye(),yi)),100))||(cbe(e,t,fp(t,s)),cbe(e,t,fp(t,(He(),Sn))),cbe(e,t,fp(t,Wt)),Mt(),co(t.j,new Mqe(e)))}function Alt(e){var t,s;for(e.c||evn(e),s=new Tc,t=new Q(e.a),Y(t);t.af&&ui(t,f,null),t}function Ccn(e,t){var s,a;if(a=e.gc(),t==null){for(s=0;s0&&(S+=l),C[A]=v,v+=w*(S+a)}function Mlt(e){var t,s,a;for(a=e.f,e.n=ge(oo,ls,24,a,15,1),e.d=ge(oo,ls,24,a,15,1),t=0;t0&&(l.b+=t),l}function OL(e,t){var s,a,l;for(l=new Qo,a=e.Ic();a.Ob();)s=h(a.Pb(),38),FP(s,0,l.b),l.b+=s.f.b+t,l.a=m.Math.max(l.a,s.f.a);return l.a>0&&(l.a+=t),l}function Fcn(e,t){var s,a;if(t.length==0)return 0;for(s=qK(e.a,t[0],(He(),Xt)),s+=qK(e.a,t[t.length-1],rn),a=0;a>16==6?e.Cb.dh(e,5,Xf,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||e.uh()),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Bcn(e){y5();var t=e.e;if(t&&t.stack){var s=t.stack,a=t+` +`;return s.substring(0,a.length)==a&&(s=s.substring(a.length)),s.split(` +`)}return[]}function Vcn(e){var t;return t=(eat(),Iyt),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function zlt(e){var t,s,a;e.b==e.c&&(a=e.a.length,s=Kbe(m.Math.max(8,a))<<1,e.b!=0?(t=lf(e.a,s),uat(e,t,a),e.a=t,e.b=0):yGe(e.a,s),e.c=a)}function zcn(e,t){var s;return s=e.b,s.Ye((Or(),lu))?s.Ef()==(He(),Xt)?-s.pf().a-Ae(Xe(s.Xe(lu))):t+Ae(Xe(s.Xe(lu))):s.Ef()==(He(),Xt)?-s.pf().a:t}function SP(e){var t;return e.b.c.length!=0&&!!h(st(e.b,0),69).a?h(st(e.b,0),69).a:(t=QK(e),t!=null?t:""+(e.c?Os(e.c.a,e,0):-1))}function _L(e){var t;return e.f.c.length!=0&&!!h(st(e.f,0),69).a?h(st(e.f,0),69).a:(t=QK(e),t!=null?t:""+(e.i?Os(e.i.j,e,0):-1))}function Ucn(e,t){var s,a;if(t<0||t>=e.gc())return null;for(s=t;s=e.i)throw ee(new BX(t,e.i));return++e.j,s=e.g[t],a=e.i-t-1,a>0&&Sa(e.g,t+1,e.g,t,a),ui(e.g,--e.i,null),e.ai(t,s),e.Zh(),s}function pZ(e,t){var s,a;s=e.Xc(t);try{return a=s.Pb(),s.Qb(),a}catch(l){throw l=ni(l),ue(l,114)?ee(new ds("Can't remove element "+t)):ee(l)}}function Gcn(e,t){var s,a,l;return l=e.h-t.h,l<0||(s=e.l-t.l,a=e.m-t.m+(s>>22),l+=a>>22,l<0)?!1:(e.l=s&cu,e.m=a&cu,e.h=l&E1,!0)}function Xcn(e,t,s,a,l,f,v){var w,S;return!(t.Ae()&&(S=e.a.ue(s,a),S<0||!l&&S==0)||t.Be()&&(w=e.a.ue(s,f),w>0||!v&&w==0))}function Kcn(e,t){q5();var s;if(s=e.j.g-t.j.g,s!=0)return 0;switch(e.j.g){case 2:return jQ(t,V5e)-jQ(e,V5e);case 4:return jQ(e,B5e)-jQ(t,B5e)}return 0}function Ycn(e){switch(e.g){case 0:return gre;case 1:return bre;case 2:return mre;case 3:return vre;case 4:return bV;case 5:return yre;default:return null}}function vs(e,t,s){var a,l;return a=(l=new GG,jg(l,t),za(l,s),_n((!e.c&&(e.c=new $e(Qm,e,12,10)),e.c),l),l),rp(a,0),iy(a,1),sp(a,!0),ap(a,!0),a}function Ult(e,t){var s,a;return e.Db>>16==17?e.Cb.dh(e,21,Kl,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||e.uh()),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Qcn(e){var t,s,a,l;for(Mt(),co(e.c,e.a),l=new Q(e.c);l.as.a.c.length))throw ee(new Gt("index must be >= 0 and <= layer node count"));e.c&&hc(e.c.a,e),e.c=s,s&&qv(s.a,t,e)}function Hlt(e,t,s){var a,l,f,v,w,S,C,A;for(C=0,l=e.a[t],f=0,v=l.length;f>16==6?e.Cb.dh(e,6,Hi,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(Da(),Mz)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Sve(e,t){var s,a;return e.Db>>16==7?e.Cb.dh(e,1,I_,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(Da(),X8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Eve(e,t){var s,a;return e.Db>>16==9?e.Cb.dh(e,9,bi,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(Da(),Y8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Ylt(e,t){var s,a;return e.Db>>16==5?e.Cb.dh(e,9,Vz,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(At(),Ap)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Qlt(e,t){var s,a;return e.Db>>16==7?e.Cb.dh(e,6,Xf,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(At(),Op)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function kve(e,t){var s,a;return e.Db>>16==3?e.Cb.dh(e,0,A_,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(At(),Tp)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Cve(e,t){var s,a;return e.Db>>16==3?e.Cb.dh(e,12,bi,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(Da(),G8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Zlt(){this.a=new kBe,this.g=new AL,this.j=new AL,this.b=new Un,this.d=new AL,this.i=new AL,this.k=new Un,this.c=new Un,this.e=new Un,this.f=new Un}function cun(e,t){var s,a;return s=t.Ch(e.a),s?(a=Fn($f((!s.b&&(s.b=new mu((At(),zo),na,s)),s.b),mB)),kt(SO,a)?YC(e,Bu(t.Cj())):a):null}function r6(e,t){var s,a;if(t){if(t==e)return!0;for(s=0,a=h(t,48).$g();!!a&&a!=t;a=a.$g()){if(++s>JJ)return r6(e,a);if(a==e)return!0}}return!1}function uun(e){switch(Jj(),e.q.g){case 5:$dt(e,(He(),Wt)),$dt(e,Sn);break;case 4:Pht(e,(He(),Wt)),Pht(e,Sn);break;default:C0t(e,(He(),Wt)),C0t(e,Sn)}}function lun(e){switch(Jj(),e.q.g){case 5:Qdt(e,(He(),rn)),Qdt(e,Xt);break;case 4:hlt(e,(He(),rn)),hlt(e,Xt);break;default:I0t(e,(He(),rn)),I0t(e,Xt)}}function fun(e){var t,s;t=h(G(e,(Bf(),r2t)),20),t?(s=t.a,s==0?_e(e,(u0(),HB),new NQ):_e(e,(u0(),HB),new o$(s))):_e(e,(u0(),HB),new o$(1))}function dun(e,t){var s;switch(s=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-s.o.a;case 3:return e.n.b-s.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function hun(e,t){switch(e.g){case 0:return t==(gl(),M0)?aV:cV;case 1:return t==(gl(),M0)?aV:LO;case 2:return t==(gl(),M0)?LO:cV;default:return LO}}function $l(e){var t;return(e.Bb&1)==0&&!!e.r&&e.r.fh()&&(t=h(e.r,48),e.r=h(h0(e,t),138),e.r!=t&&(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,9,8,t,e.r))),e.r}function kP(e,t){var s;return Ps(e)&&Ps(t)&&(s=e/t,eO>16==11?e.Cb.dh(e,10,bi,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(Da(),K8e)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function Jlt(e,t){var s,a;return e.Db>>16==10?e.Cb.dh(e,11,Kl,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(At(),Pp)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function eft(e,t){var s,a;return e.Db>>16==10?e.Cb.dh(e,12,Yl,t):(a=qo(h(Dt((s=h(zt(e,16),26),s||(At(),ow)),e.Db>>16),17)),e.Cb.dh(e,a.n,a.f,t))}function xun(e,t){var s,a,l,f,v;if(t)for(l=t.a.length,s=new vg(l),v=(s.b-s.a)*s.c<0?(Qp(),q0):new e0(s);v.Ob();)f=h(v.Pb(),20),a=x5(t,f.a),a&&Eht(e,a)}function Sun(){qhe();var e,t;for(Iwn((n0(),Bt)),vwn(Bt),hZ(Bt),lIe=(At(),Pd),t=new Q(yIe);t.a>19,C=t.h>>19,S!=C?C-S:(l=e.h,w=t.h,l!=w?l-w:(a=e.m,v=t.m,a!=v?a-v:(s=e.l,f=t.l,s-f)))}function ML(){ML=H,pSe=(ZL(),Ene),hSe=new $t(p2e,pSe),dSe=(C$(),Sne),fSe=new $t(g2e,dSe),lSe=(xL(),xne),uSe=new $t(b2e,lSe),cSe=new $t(m2e,(Zt(),!0))}function D8(e,t,s){var a,l;a=t*s,ue(e.g,145)?(l=F3(e),l.f.d?l.f.a||(e.d.a+=a+vd):(e.d.d-=a+vd,e.d.a+=a+vd)):ue(e.g,10)&&(e.d.d-=a,e.d.a+=2*a)}function tft(e,t,s){var a,l,f,v,w;for(l=e[s.g],w=new Q(t.d);w.av&&(w=v/a),l>f&&(S=f/l),Ud(e,m.Math.min(w,S)),e}function Tun(e,t,s){var a,l;return l=e.e,e.e=t,(e.Db&4)!=0&&(e.Db&1)==0&&(a=new Wi(e,1,4,l,t),s?s.zi(a):s=a),l!=t&&(t?s=v6(e,qL(e,t),s):s=v6(e,e.a,s)),s}function rft(){yj.call(this),this.e=-1,this.a=!1,this.p=ko,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=ko}function Aun(e,t){var s,a,l;if(a=e.b.d.d,e.a||(a+=e.b.d.a),l=t.b.d.d,t.a||(l+=t.b.d.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Pun(e,t){var s,a,l;if(a=e.b.b.d,e.a||(a+=e.b.b.a),l=t.b.b.d,t.a||(l+=t.b.b.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Oun(e,t){var s,a,l;if(a=e.b.g.d,e.a||(a+=e.b.g.a),l=t.b.g.d,t.a||(l+=t.b.g.a),s=go(a,l),s==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return s}function Ave(){Ave=H,d2t=Jc(Mr(Mr(Mr(new Xi,(us(),qa),(ys(),I5e)),qa,T5e),Us,A5e),Us,g5e),p2t=Mr(Mr(new Xi,qa,c5e),qa,b5e),h2t=Jc(new Xi,Us,v5e)}function _un(e){var t,s,a,l,f;for(t=h(G(e,(Be(),FI)),84),f=e.n,a=t.Ac().Ic();a.Ob();)s=h(a.Pb(),304),l=s.i,l.c+=f.a,l.d+=f.b,s.c?b1t(s):m1t(s);_e(e,FI,null)}function Mun(e,t,s){var a,l;switch(l=e.b,a=l.d,t.g){case 1:return-a.d-s;case 2:return l.o.a+a.c+s;case 3:return l.o.b+a.a+s;case 4:return-a.b-s;default:return-1}}function Dun(e){var t,s,a,l,f;if(a=0,l=iI,e.b)for(t=0;t<360;t++)s=t*.017453292519943295,vwe(e,e.d,0,0,j2,s),f=e.b.dg(e.d),f0&&(v=(f&Ir)%e.d.length,l=Tye(e,v,f,t),l)?(w=l.cd(s),w):(a=e.oj(f,t,s),e.c.Dc(a),null)}function Mve(e,t){var s,a,l,f;switch(op(e,t).Wk()){case 3:case 2:{for(s=T2(t),l=0,f=s.i;l=0?(s=kP(e,vF),a=hP(e,vF)):(t=Hv(e,1),s=kP(t,5e8),a=hP(t,5e8),a=Po(c1(a,1),$i(e,1))),ad(c1(a,32),$i(s,es))}function sft(e,t){var s,a,l,f;for(f=0,l=h(h(Br(e.r,t),21),81).Ic();l.Ob();)a=h(l.Pb(),110),f=m.Math.max(f,a.e.a+a.b.pf().a);s=h(os(e.b,t),121),s.n.b=0,s.a.a=f}function aft(e,t){var s,a,l,f;for(s=0,f=h(h(Br(e.r,t),21),81).Ic();f.Ob();)l=h(f.Pb(),110),s=m.Math.max(s,l.e.b+l.b.pf().b);a=h(os(e.b,t),121),a.n.d=0,a.a.b=s}function Dve(e,t){if(t==e.c.i)return e.d.i;if(t==e.d.i)return e.c.i;throw ee(new Gt("'node' must either be the source node or target node of the edge."))}function qun(e){var t,s;return s=h(G(e,(Be(),ja)),21),t=UX(vSt),s.Fc((Jo(),X2))&&Vu(t,xSt),s.Fc(LI)&&Vu(t,SSt),s.Fc(Z6)&&Vu(t,ySt),s.Fc(J6)&&Vu(t,wSt),t}function Wun(e,t){var s;Mn(t,"Delaunay triangulation",1),s=new Fe,gc(e.i,new lWe(s)),_t(It(G(e,(F5(),_I)))),e.e?Cs(e.e,B0t(s)):e.e=B0t(s),wn(t)}function cft(e,t){var s,a;if(a=!1,to(t)&&(a=!0,N3(e,new Gv(Fn(t)))),a||ue(t,236)&&(a=!0,N3(e,(s=Hpe(h(t,236)),new zN(s)))),!a)throw ee(new tX(W3e))}function o6(e,t){var s;if(e.ii()&&t!=null){for(s=0;s=0;a--)if(kt(e[a].d,t)||kt(e[a].d,s)){e.length>=a+1&&e.splice(0,a+1);break}return e}function Yun(e){var t,s,a,l;if(l=h(G(e,(Be(),b6e)),38),l){for(a=new Qo,t=hs(e.c.i);t!=l;)s=t.e,t=hs(s),Fv(Rr(Rr(a,s.n),t.c),t.d.b,t.d.d);return a}return O2t}function Qun(e){var t;t=h(G(e,(Be(),tE)),398),mi($s(new Rt(null,new Lt(t.d,16)),new SRe),new aqe(e)),mi(Kr(new Rt(null,new Lt(t.d,16)),new ERe),new cqe(e))}function mZ(e,t){var s,a,l,f;for(l=t?Di(e):_s(e),a=new mn(vn(l.a.Ic(),new j));Qn(a);)if(s=h($n(a),18),f=Dve(s,e),f.k==(nn(),Ki)&&f.c!=e.c)return f;return null}function Zun(e){var t,s,a;for(s=new Q(e.p);s.a0&&(e.b+=2,e.a+=a):(e.b+=1,e.a+=m.Math.min(a,l))}function eln(e){switch(e.g){case 1:return new gFe;case 2:return new bFe;case 3:return new pFe;case 0:return null;default:throw ee(new Gt(lte+(e.f!=null?e.f:""+e.g)))}}function tln(e,t,s,a){var l,f,v;return l=new p1(e.e,1,10,(v=t.c,ue(v,87)?h(v,26):(At(),Zl)),(f=s.c,ue(f,87)?h(f,26):(At(),Zl)),up(e,t),!1),a?a.zi(l):a=l,a}function Nve(e){var t,s;switch(h(G(hs(e),(Ye(),hEe)),414).g){case 0:return t=e.n,s=e.o,new ot(t.a+s.a/2,t.b+s.b/2);case 1:return new Ss(e.n);default:return null}}function CP(){CP=H,vV=new kC(S0,0),n6e=new kC("LEFTUP",1),i6e=new kC("RIGHTUP",2),t6e=new kC("LEFTDOWN",3),r6e=new kC("RIGHTDOWN",4),wre=new kC("BALANCED",5)}function nln(e,t,s){var a,l,f;if(a=go(e.a[t.p],e.a[s.p]),a==0){if(l=h(G(t,(Be(),A4)),14),f=h(G(s,A4),14),l.Fc(s))return-1;if(f.Fc(t))return 1}return a}function jve(e,t,s){switch(t){case 1:!e.n&&(e.n=new $e(Ds,e,1,7)),Cn(e.n),!e.n&&(e.n=new $e(Ds,e,1,7)),di(e.n,h(s,15));return;case 2:b8(e,Fn(s));return}sme(e,t,s)}function Rve(e,t,s){switch(t){case 3:hm(e,Ae(Xe(s)));return;case 4:pm(e,Ae(Xe(s)));return;case 5:_c(e,Ae(Xe(s)));return;case 6:Mc(e,Ae(Xe(s)));return}jve(e,t,s)}function NL(e,t,s){var a,l,f;f=(a=new GG,a),l=bd(f,t,null),l&&l.Ai(),za(f,s),_n((!e.c&&(e.c=new $e(Qm,e,12,10)),e.c),f),rp(f,0),iy(f,1),sp(f,!0),ap(f,!0)}function $ve(e,t){var s,a,l;return s=wC(e.g,t),ue(s,234)?(l=h(s,234),l.Lh()==null,l.Ih()):ue(s,490)?(a=h(s,1910),l=a.b,l):null}function rln(e,t,s,a){var l,f;return Hn(t),Hn(s),f=h(qC(e.d,t),20),Xot(!!f,"Row %s not in %s",t,e.e),l=h(qC(e.b,s),20),Xot(!!l,"Column %s not in %s",s,e.c),oct(e,f.a,l.a,a)}function uft(e,t,s,a,l,f,v){var w,S,C,A,M;if(A=l[f],C=f==v-1,w=C?a:0,M=jlt(w,A),a!=10&&re(ne(e,v-f),t[f],s[f],w,M),!C)for(++f,S=0;S1||w==-1?(f=h(S,14),l.Wb(oan(e,f))):l.Wb(nJ(e,h(S,55)))))}function fln(e,t,s,a,l){var f,v;for(f=0,v=0;v0&&po(e,e.length-1)==33)try{return t=gdt(Ru(e,0,e.length-1)),t.e==null}catch(s){if(s=ni(s),!ue(s,31))throw ee(s)}return!1}function Fve(e){var t;return(e.Db&64)!=0?hL(e):(t=new _l(hL(e)),t.a+=" (abstract: ",K1(t,(e.Bb&256)!=0),t.a+=", interface: ",K1(t,(e.Bb&512)!=0),t.a+=")",t.a)}function gln(e,t,s,a){var l,f,v,w;return bu(e.e)&&(l=t.Xj(),w=t.bd(),f=s.bd(),v=o0(e,1,l,w,f,l.Vj()?g6(e,l,f,ue(l,97)&&(h(l,17).Bb&Bo)!=0):-1,!0),a?a.zi(v):a=v),a}function bln(e){var t;e.c==null&&(t=Pe(e.b)===Pe(w4e)?null:e.b,e.d=t==null?vc:Get(t)?iGt(Xtt(t)):to(t)?n2e:Xp(ru(t)),e.a=e.a+": "+(Get(t)?UGt(Xtt(t)):t+""),e.c="("+e.d+") "+e.a)}function mln(){function e(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===IJ&&Map.prototype.entries&&e()?Map:Tyn()}function vln(e,t){var s,a,l,f;for(f=new wo(e.e,0),s=0;f.bate)return s;l>-1e-6&&++s}return s}function fft(e,t){var s,a,l,f,v;for(v=e.e,l=0,f=0,a=new Q(e.a);a.a0&&Hlt(this,this.c-1,(He(),rn)),this.c0&&e[0].length>0&&(this.c=_t(It(G(hs(e[0][0]),(Be(),y6e))))),this.a=ge(q4t,Oe,1987,e.length,0,2),this.b=ge(W4t,Oe,1988,e.length,0,2),this.d=new Uct}function Pln(e){return e.c.length==0?!1:(qt(0,e.c.length),h(e.c[0],18)).c.i.k==(nn(),Ki)?!0:E5(fc(new Rt(null,new Lt(e,16)),new uLe),new lLe)}function Oln(e,t,s){return Mn(s,"Tree layout",1),i$(e.b),Ih(e.b,(n6(),JV),JV),Ih(e.b,JI,JI),Ih(e.b,e_,e_),Ih(e.b,e9,e9),e.a=cF(e.b,t),Xpn(e,t,Pa(s,1)),wn(s),t}function vft(e,t){var s,a,l,f,v,w,S;for(w=wy(t),f=t.f,S=t.g,v=m.Math.sqrt(f*f+S*S),l=0,a=new Q(w);a.a1;t>>=1)(t&1)!=0&&(a=n2(a,s)),s.d==1?s=n2(s,s):s=new Qut(q1t(s.a,s.d,ge(Pn,rr,24,s.d<<1,15,1)));return a=n2(a,s),a}function Gve(){Gve=H;var e,t,s,a;for(K4e=ge(oo,ls,24,25,15,1),Y4e=ge(oo,ls,24,33,15,1),a=152587890625e-16,t=32;t>=0;t--)Y4e[t]=a,a*=.5;for(s=1,e=24;e>=0;e--)K4e[e]=s,s*=.5}function Gln(e){var t,s;if(_t(It(Ot(e,(Ye(),ex))))){for(s=new mn(vn(hp(e).a.Ic(),new j));Qn(s);)if(t=h($n(s),80),Em(t)&&_t(It(Ot(t,Hy))))return!0}return!1}function Eft(e,t){var s,a,l;ro(e.f,t)&&(t.b=e,a=t.c,Os(e.j,a,0)!=-1||Re(e.j,a),l=t.d,Os(e.j,l,0)!=-1||Re(e.j,l),s=t.a.b,s.c.length!=0&&(!e.i&&(e.i=new olt(e)),iin(e.i,s)))}function Xln(e){var t,s,a,l,f;return s=e.c.d,a=s.j,l=e.d.d,f=l.j,a==f?s.p=0&&kt(e.substr(t,3),"GMT")||t>=0&&kt(e.substr(t,3),"UTC"))&&(s[0]=t+3),xwe(e,s,a)}function Yln(e,t){var s,a,l,f,v;for(f=e.g.a,v=e.g.b,a=new Q(e.d);a.as;f--)e[f]|=t[f-s-1]>>>v,e[f-1]=t[f-s-1]<=e.f)break;f.c[f.c.length]=s}return f}function Kve(e){var t,s,a,l;for(t=null,l=new Q(e.uf());l.a0&&Sa(e.g,t,e.g,t+a,w),v=s.Ic(),e.i+=a,l=0;lf&&yQt(C,ust(s[w],G4e))&&(l=w,f=S);return l>=0&&(a[0]=t+f),l}function rfn(e,t){var s;if(s=kQe(e.b.Ef(),t.b.Ef()),s!=0)return s;switch(e.b.Ef().g){case 1:case 2:return Qa(e.b.qf(),t.b.qf());case 3:case 4:return Qa(t.b.qf(),e.b.qf())}return 0}function ifn(e){var t,s,a;for(a=e.e.c.length,e.a=mg(Pn,[Oe,rr],[47,24],15,[a,a],2),s=new Q(e.c);s.a1||(s=Zr(v9,re(ne(Iz,1),je,291,0,[V4])),XA(WR(s,e))>1))}function afn(e,t){var s;if(!cd(e))throw ee(new Gs(pmt));switch(s=cd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-s.g;case 3:return e.j-s.f;case 4:return-(e.i+e.g)}return 0}function cfn(e,t){var s,a,l,f,v;if(e==null)return null;for(v=ge(wl,Qd,24,2*t,15,1),a=0,l=0;a>4&15,f=e[a]&15,v[l++]=Q8e[s],v[l++]=Q8e[f];return Rl(v,0,v.length)}function ufn(e,t,s){var a,l,f;return a=t.Xj(),f=t.bd(),l=a.Vj()?o0(e,4,a,f,null,g6(e,a,f,ue(a,97)&&(h(a,17).Bb&Bo)!=0),!0):o0(e,a.Fj()?2:1,a,f,a.uj(),-1,!0),s?s.zi(l):s=l,s}function mc(e){var t,s;return e>=Bo?(t=tO+(e-Bo>>10&1023)&Ii,s=56320+(e-Bo&1023)&Ii,String.fromCharCode(t)+(""+String.fromCharCode(s))):String.fromCharCode(e&Ii)}function lfn(e,t){Vv();var s,a,l,f;return l=h(h(Br(e.r,t),21),81),l.gc()>=2?(a=h(l.Ic().Pb(),110),s=e.t.Fc((ou(),v9)),f=e.t.Fc(V4),!a.a&&!s&&(l.gc()==2||f)):!1}function Tft(e,t,s,a,l){var f,v,w;for(f=c1t(e,t,s,a,l),w=!1;!f;)UL(e,l,!0),w=!0,f=c1t(e,t,s,a,l);w&&UL(e,l,!1),v=Q$(l),v.c.length!=0&&(e.d&&e.d.gg(v),Tft(e,l,s,a,v))}function LL(){LL=H,soe=new _C(S0,0),C8e=new _C("DIRECTED",1),T8e=new _C("UNDIRECTED",2),E8e=new _C("ASSOCIATION",3),I8e=new _C("GENERALIZATION",4),k8e=new _C("DEPENDENCY",5)}function Yve(e,t,s,a){var l;if(l=!1,to(a)&&(l=!0,WC(t,s,Fn(a))),l||Rv(a)&&(l=!0,Yve(e,t,s,a)),l||ue(a,236)&&(l=!0,xg(t,s,h(a,236))),!l)throw ee(new tX(W3e))}function ffn(e){var t,s,a;if(e==null)return null;for(t=null,s=0;s0;){if(s=a,a=(a-1)/2|0,e.a.ue(st(e.b,a),t)<=0)return Nl(e.b,s,t),!0;Nl(e.b,s,st(e.b,a))}return Nl(e.b,a,t),!0}function Qve(e,t,s,a){var l,f;if(l=0,s)l=rL(e.a[s.g][t.g],a);else for(f=0;f=w)}function hfn(e,t){var s,a,l;if(s=t.Ch(e.a),s&&(l=$f((!s.b&&(s.b=new mu((At(),zo),na,s)),s.b),Vl),l!=null)){for(a=1;a<(Nc(),xIe).length;++a)if(kt(xIe[a],l))return a}return 0}function pfn(e,t){var s,a,l;if(s=t.Ch(e.a),s&&(l=$f((!s.b&&(s.b=new mu((At(),zo),na,s)),s.b),Vl),l!=null)){for(a=1;a<(Nc(),SIe).length;++a)if(kt(SIe[a],l))return a}return 0}function Aft(e,t){var s,a,l,f;if(Ut(t),f=e.a.gc(),f=l||t<0)throw ee(new ds(Rte+t+Qg+l));if(s>=l||s<0)throw ee(new ds($te+s+Qg+l));return t!=s?a=(f=e.Oi(s),e.Ci(t,f),f):a=e.Ji(s),a}function bfn(e,t,s,a){var l,f;for(f=t,l=f.d==null||e.a.ue(s.d,f.d)>0?1:0;f.a[l]!=s;)f=f.a[l],l=e.a.ue(s.d,f.d)>0?1:0;f.a[l]=a,a.b=s.b,a.a[0]=s.a[0],a.a[1]=s.a[1],s.a[0]=null,s.a[1]=null}function eye(e,t){var s;s=Ta((Yp(),Ql),e),ue(s,490)?ps(Ql,e,new nQe(this,t)):ps(Ql,e,this),CZ(this,t),t==(ZS(),uIe)?(this.wb=h(this,1911),h(t,1913)):this.wb=(n0(),Bt)}function Nh(e){if((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c).i!=1)throw ee(new Gt(jte));return Oa(h(le((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b),0),93))}function Oft(e){if((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c).i!=1)throw ee(new Gt(jte));return YA(h(le((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b),0),93))}function _ft(e){if((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c).i!=1)throw ee(new Gt(jte));return YA(h(le((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c),0),93))}function g0(e){if((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b).i!=1||(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c).i!=1)throw ee(new Gt(jte));return Oa(h(le((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c),0),93))}function Mft(e){var t,s,a;if(a=e,e)for(t=0,s=e.Pg();s;s=s.Pg()){if(++t>JJ)return Mft(s);if(a=s,s==e)throw ee(new Gs("There is a cycle in the containment hierarchy of "+e))}return a}function Dft(){Dft=H,_yt=re(ne(Qe,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),Myt=re(ne(Qe,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function Nft(e){var t,s,a;t=kt(typeof t,aee)?null:new Se,t&&(r5(),s=(a=900,a>=x1?"error":a>=900?"warn":a>=800?"info":"log"),ytt(s,e.a),e.b&&ewe(t,s,e.b,"Exception: ",!0))}function G(e,t){var s,a;return a=(!e.q&&(e.q=new Un),qn(e.q,t)),a!=null?a:(s=t.rg(),ue(s,4)&&(s==null?(!e.q&&(e.q=new Un),U3(e.q,t)):(!e.q&&(e.q=new Un),Fr(e.q,t,s))),s)}function us(){us=H,uh=new BT("P1_CYCLE_BREAKING",0),P0=new BT("P2_LAYERING",1),Rc=new BT("P3_NODE_ORDERING",2),qa=new BT("P4_NODE_PLACEMENT",3),Us=new BT("P5_EDGE_ROUTING",4)}function jft(e,t){var s,a,l,f,v;for(l=t==1?Vne:Bne,a=l.a.ec().Ic();a.Ob();)for(s=h(a.Pb(),108),v=h(Br(e.f.c,s),21).Ic();v.Ob();)f=h(v.Pb(),46),hc(e.b.b,f.b),hc(e.b.a,h(f.b,79).d)}function mfn(e,t){p8();var s;if(e.c==t.c){if(e.b==t.b||$rn(e.b,t.b)){if(s=sWt(e.b)?1:-1,e.a&&!t.a)return s;if(!e.a&&t.a)return-s}return Qa(e.b.g,t.b.g)}else return go(e.c,t.c)}function vfn(e,t){var s;Mn(t,"Hierarchical port position processing",1),s=e.b,s.c.length>0&&K1t((qt(0,s.c.length),h(s.c[0],29)),e),s.c.length>1&&K1t(h(st(s,s.c.length-1),29),e),wn(t)}function Rft(e,t){var s,a,l;if(tye(e,t))return!0;for(a=new Q(t);a.aa&&(Bn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return a>0||t1&&(e.j.b+=e.e)):(e.j.a+=s.a,e.j.b=m.Math.max(e.j.b,s.b),e.d.c.length>1&&(e.j.a+=e.e))}function m0(){m0=H,Y2t=re(ne(Vo,1),ma,61,0,[(He(),Wt),rn,Sn]),K2t=re(ne(Vo,1),ma,61,0,[rn,Sn,Xt]),Q2t=re(ne(Vo,1),ma,61,0,[Sn,Xt,Wt]),Z2t=re(ne(Vo,1),ma,61,0,[Xt,Wt,rn])}function wfn(e,t,s,a){var l,f,v,w,S,C,A;if(v=e.c.d,w=e.d.d,v.j!=w.j)for(A=e.b,l=v.j,S=null;l!=w.j;)S=t==0?aL(l):Tme(l),f=rve(l,A.d[l.g],s),C=rve(S,A.d[S.g],s),dr(a,Rr(f,C)),l=S}function xfn(e,t,s,a){var l,f,v,w,S;return v=qlt(e.a,t,s),w=h(v.a,20).a,f=h(v.b,20).a,a&&(S=h(G(t,(Be(),Yc)),10),l=h(G(s,Yc),10),!!S&&!!l&&(iit(e.b,S,l),w+=e.b.i,f+=e.b.e)),w>f}function Lft(e){var t,s,a,l,f,v,w,S,C;for(this.a=blt(e),this.b=new Fe,s=e,a=0,l=s.length;aoK(e.d).c?(e.i+=e.g.c,VQ(e.d)):oK(e.d).c>oK(e.g).c?(e.e+=e.d.c,VQ(e.g)):(e.i+=Iet(e.g),e.e+=Iet(e.d),VQ(e.g),VQ(e.d))}function kfn(e,t,s){var a,l,f,v;for(f=t.q,v=t.r,new Sg((Mf(),D0),t,f,1),new Sg(D0,f,v,1),l=new Q(s);l.aw&&(S=w/a),l>f&&(C=f/l),v=m.Math.min(S,C),e.a+=v*(t.a-e.a),e.b+=v*(t.b-e.b)}function Pfn(e,t,s,a,l){var f,v;for(v=!1,f=h(st(s.b,0),34);Tpt(e,t,f,a,l)&&(v=!0,aln(s,f),s.b.c.length!=0);)f=h(st(s.b,0),34);return s.b.c.length==0&&mP(s.j,s),v&&bL(t.q),v}function Ofn(e,t){if(e<0||t<0)throw ee(new Gt("k and n must be positive"));if(t>e)throw ee(new Gt("k must be smaller than n"));return t==0||t==e?1:e==0?0:Pve(e)/(Pve(t)*Pve(e-t))}function _fn(e,t){C2();var s,a,l,f;if(t.b<2)return!1;for(f=ar(t,0),s=h(sr(f),8),a=s;f.b!=f.d.c;){if(l=h(sr(f),8),HZ(e,a,l))return!0;a=l}return!!HZ(e,a,s)}function rye(e,t,s,a){var l,f;return s==0?(!e.o&&(e.o=new tu((Da(),Ip),pb,e,0)),sR(e.o,t,a)):(f=h(Dt((l=h(zt(e,16),26),l||e.uh()),s),65),f.Ij().Mj(e,Ja(e),s-dn(e.uh()),t,a))}function CZ(e,t){var s;t!=e.sb?(s=null,e.sb&&(s=h(e.sb,48).dh(e,1,x9,s)),t&&(s=h(t,48).ah(e,1,x9,s)),s=xme(e,t,s),s&&s.Ai()):(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,4,t,t))}function Mfn(e,t){var s,a,l,f;if(t)l=b1(t,"x"),s=new CWe(e),O5(s.a,(Ut(l),l)),f=b1(t,"y"),a=new IWe(e),D5(a.a,(Ut(f),f));else throw ee(new Fd("All edge sections need a start point."))}function gy(e){if(I4e==null&&(I4e=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!I4e.test(e))throw ee(new Bd(Om+e+'"'));return parseFloat(e)}function Dfn(e,t){var s,a,l,f,v,w,S;for(a=Ict(e),f=0,w=a.length;f>22-t,l=e.h<>22-t):t<44?(s=0,a=e.l<>44-t):(s=0,a=0,l=e.l<>4],t[s*2+1]=Wz[f&15];return Rl(t,0,t.length)}function Yfn(e){jR();var t,s,a;switch(a=e.c.length,a){case 0:return gyt;case 1:return t=h(Adt(new Q(e)),43),TYt(t.ad(),t.bd());default:return s=h(Mh(e,ge(eb,bF,43,e.c.length,0,1)),164),new QG(s)}}function Qfn(e){var t,s,a,l,f,v;for(t=new g3,s=new g3,Eg(t,e),Eg(s,e);s.b!=s.c;)for(l=h(d5(s),38),v=new Q(l.a);v.aa&&(e.a=a),e.bl&&(e.b=l),e}function AP(e){var t,s,a;for(a=new Tc,dr(a,new ot(e.j,e.k)),s=new bn((!e.a&&(e.a=new _i(Xl,e,5)),e.a));s.e!=s.i.gc();)t=h(yn(s),463),dr(a,new ot(t.a,t.b));return dr(a,new ot(e.b,e.c)),a}function edn(e,t,s,a,l){var f,v,w,S,C,A;if(l)for(S=l.a.length,f=new vg(S),A=(f.b-f.a)*f.c<0?(Qp(),q0):new e0(f);A.Ob();)C=h(A.Pb(),20),w=x5(l,C.a),v=new Jtt(e,t,s,a),Qgn(v.a,v.b,v.c,v.d,w)}function tdn(e){if(ue(e,149))return Spn(h(e,149));if(ue(e,227))return _sn(h(e,227));if(ue(e,23))return $fn(h(e,23));throw ee(new Gt(G3e+b0(new gu(re(ne(hn,1),rt,1,5,[e])))))}function aye(e,t){var s;Re(e.d,t),s=t.pf(),e.c?(e.e.a=m.Math.max(e.e.a,s.a),e.e.b+=s.b,e.d.c.length>1&&(e.e.b+=e.a)):(e.e.a+=s.a,e.e.b=m.Math.max(e.e.b,s.b),e.d.c.length>1&&(e.e.a+=e.a))}function ndn(e){var t,s,a,l;switch(l=e.i,t=l.b,a=l.j,s=l.g,l.a.g){case 0:s.a=(e.g.b.o.a-a.a)/2;break;case 1:s.a=t.d.n.a+t.d.a.a;break;case 2:s.a=t.d.n.a+t.d.a.a-a.a;break;case 3:s.b=t.d.n.b+t.d.a.b}}function rdn(e,t,s,a,l){var f,v,w;for(f=!0,v=0;v>>l|s[v+a+1]<>>l,++v}return f}function Yft(e,t,s,a){var l;this.b=a,this.e=e==(gm(),YI),l=t[s],this.d=mg(du,[Oe,Bh],[177,24],16,[l.length,l.length],2),this.a=mg(Pn,[Oe,rr],[47,24],15,[l.length,l.length],2),this.c=new qve(t,s)}function cye(e,t,s,a){var l,f,v;if(t.k==(nn(),Ki)){for(f=new mn(vn(_s(t).a.Ic(),new j));Qn(f);)if(l=h($n(f),18),v=l.c.i.k,v==Ki&&e.c.a[l.c.i.c.p]==a&&e.c.a[t.c.p]==s)return!0}return!1}function uye(e){var t,s,a;return s=h(Ot(e,(Or(),hE)),21),s.Fc((xu(),ew))?(a=h(Ot(e,$4),21),t=h(Ot(e,p_),8),a.Fc((su(),SE))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t):new Qo}function idn(e,t){var s,a,l,f;return t&=63,s=e.h&E1,t<22?(f=s>>>t,l=e.m>>t|s<<22-t,a=e.l>>t|e.m<<22-t):t<44?(f=0,l=s>>>t-22,a=e.m>>t-22|e.h<<44-t):(f=0,l=0,a=s>>>t-44),Za(a&cu,l&cu,f&E1)}function odn(e){var t,s,a;for(e.k=new gge((He(),re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt])).length,e.j.c.length),a=new Q(e.j);a.a=s)return c6(e,t,a.p),!0;return!1}function edt(e,t,s){var a,l,f,v,w;for(w=tc(e.e.Og(),t),l=h(e.g,118),a=0,v=0;v=0?e.wh(l):xye(e,a);else throw ee(new Gt(C0+a.ne()+gI));else throw ee(new Gt(Cmt+t+Imt));else hl(e,s,a)}function tdt(e){var t;return(e.Db&64)!=0?IZ(e):(t=new ju(R3e),!e.a||Kn(Kn((t.a+=' "',t),e.a),'"'),Kn(qb(Kn(qb(Kn(qb(Kn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function ndt(e){var t,s,a;if(t=e.c,t==2||t==7||t==1)return Er(),Er(),_9;for(a=Ywe(e),s=null;(t=e.c)!=2&&t!=7&&t!=1;)s||(s=(Er(),Er(),new RC(1)),Vg(s,a),a=s),Vg(s,Ywe(e));return a}function udn(e,t,s){return e<0||e>s?mye(e,s,"start index"):t<0||t>s?mye(t,s,"end index"):z8("end index (%s) must not be less than start index (%s)",re(ne(hn,1),rt,1,5,[Ue(t),Ue(e)]))}function rdt(e,t,s){var a,l,f,v;for(Mn(s,"ELK Force",1),v=pct(t),fun(v),Vin(e,h(G(v,(Bf(),$Se)),418)),f=mpt(e.a,v),l=f.Ic();l.Ob();)a=h(l.Pb(),229),wgn(e.b,a,Pa(s,1/f.gc()));v=M0t(f),A0t(v),wn(s)}function c6(e,t,s){var a,l,f;for(s!=t.c+t.b.gc()&&omn(t.a,ein(t,s-t.c)),f=t.a.c.p,e.a[f]=m.Math.max(e.a[f],t.a.o.a),l=h(G(t.a,(Be(),HO)),14).Ic();l.Ob();)a=h(l.Pb(),69),_e(a,Zne,(Zt(),!0))}function idt(e,t,s){var a,l,f,v,w;for(t.p=-1,w=cy(t,(as(),rc)).Ic();w.Ob();)for(v=h(w.Pb(),11),l=new Q(v.g);l.a0&&idt(e,f,s));t.p=0}function gt(e){var t;this.c=new ci,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=h(_f(Ep),9),new al(t,h(lf(t,t.length),9),0)),this.g=e.f}function fye(e){var t,s;if(s=null,t=!1,ue(e,202)&&(t=!0,s=h(e,202).a),t||ue(e,257)&&(t=!0,s=""+h(e,257).a),t||ue(e,477)&&(t=!0,s=""+h(e,477).a),!t)throw ee(new tX(W3e));return s}function ldn(e){var t,s,a,l;for(t=r0(Kn(new ju("Predicates."),"and"),40),s=!0,l=new eC(e);l.b0?w[v-1]:ge(vp,Kg,10,0,0,1),l=w[v],C=v1&&(t.c[t.c.length]=f))}function pdn(e){var t,s,a,l;for(s=new ci,Cs(s,e.o),a=new lhe;s.b!=0;)t=h(s.b==0?null:(pn(s.b!=0),fl(s,s.a.a)),500),l=N0t(e,t,!0),l&&Re(a.a,t);for(;a.a.c.length!=0;)t=h(_ct(a),500),N0t(e,t,!1)}function dp(){dp=H,OCe=new C3(rI,0),Go=new C3("BOOLEAN",1),da=new C3("INT",2),dE=new C3("STRING",3),ta=new C3("DOUBLE",4),xi=new C3("ENUM",5),j4=new C3("ENUMSET",6),kd=new C3("OBJECT",7)}function R8(e,t){var s,a,l,f,v;a=m.Math.min(e.c,t.c),f=m.Math.min(e.d,t.d),l=m.Math.max(e.c+e.b,t.c+t.b),v=m.Math.max(e.d+e.a,t.d+t.a),l=(l/2|0))for(this.e=a?a.c:null,this.d=l;s++0;)hge(this);this.b=t,this.a=null}function mdn(e,t){var s,a;t.a?Ppn(e,t):(s=h(lK(e.b,t.b),56),!!s&&s==e.a[t.b.f]&&!!s.a&&s.a!=t.b.a&&s.c.Dc(t.b),a=h(uK(e.b,t.b),56),!!a&&e.a[a.f]==t.b&&!!a.a&&a.a!=t.b.a&&t.b.c.Dc(a),ZX(e.b,t.b))}function fdt(e,t){var s,a;if(s=h(os(e.b,t),121),h(h(Br(e.r,t),21),81).dc()){s.n.b=0,s.n.c=0;return}s.n.b=e.B.b,s.n.c=e.B.c,e.w.Fc((xu(),hb))&&y1t(e,t),a=qan(e,t),WZ(e,t)==(h2(),$0)&&(a+=2*e.v),s.a.a=a}function ddt(e,t){var s,a;if(s=h(os(e.b,t),121),h(h(Br(e.r,t),21),81).dc()){s.n.d=0,s.n.a=0;return}s.n.d=e.B.d,s.n.a=e.B.a,e.w.Fc((xu(),hb))&&w1t(e,t),a=Wan(e,t),WZ(e,t)==(h2(),$0)&&(a+=2*e.v),s.a.b=a}function vdn(e,t){var s,a,l,f;for(f=new Fe,a=new Q(t);a.a=0?e.nh(f,s):Gye(e,l,s);else throw ee(new Gt(C0+l.ne()+gI));else throw ee(new Gt(Cmt+t+Imt));else pl(e,a,l,s)}function mdt(e,t,s){var a,l,f,v,w,S;if(w=h(zt(e.a,8),1908),w!=null)for(l=w,f=0,v=l.length;fs.a&&(a.Fc((hy(),a_))?l=(t.a-s.a)/2:a.Fc(c_)&&(l=t.a-s.a)),t.b>s.b&&(a.Fc((hy(),l_))?f=(t.b-s.b)/2:a.Fc(u_)&&(f=t.b-s.b)),Zve(e,l,f)}function wdt(e,t,s,a,l,f,v,w,S,C,A,M,R){ue(e.Cb,87)&&my(eu(h(e.Cb,87)),4),za(e,s),e.f=v,Y5(e,w),Z5(e,S),Q5(e,C),J5(e,A),sp(e,M),e6(e,R),ap(e,!0),rp(e,l),e.jk(f),jg(e,t),a!=null&&(e.i=null,L$(e,a))}function xdt(e){var t,s;if(e.f){for(;e.n>0;){if(t=h(e.k.Xb(e.n-1),71),s=t.Xj(),ue(s,97)&&(h(s,17).Bb&fa)!=0&&(!e.e||s.Bj()!=EE||s.Xi()!=0)&&t.bd()!=null)return!0;--e.n}return!1}else return e.n>0}function Mdn(e,t){var s,a,l;if(l=0,t.length>0)try{l=Uu(t,ko,Ir)}catch(f){throw f=ni(f),ue(f,127)?(a=f,ee(new w$(a))):ee(f)}return s=(!e.a&&(e.a=new BG(e)),e.a),l=0?h(le(s,l),55):null}function vye(e,t,s,a,l,f){var v,w,S,C;if(v=a-s,v<7){lsn(t,s,a,f);return}if(S=s+l,w=a+l,C=S+(w-S>>1),vye(t,e,S,C,-l,f),vye(t,e,C,w,-l,f),f.ue(e[C-1],e[C])<=0){for(;sf.a&&!t&&(l.b=f.a),l.c=-(l.b-f.a)/2,s.g){case 1:l.d=-l.a;break;case 3:l.d=f.b}oJ(a),sJ(a)}function Cdt(e,t,s){var a,l,f;switch(f=e.o,a=h(os(e.p,s),243),l=a.i,l.b=MP(a),l.a=_P(a),l.a=m.Math.max(l.a,f.b),l.a>f.b&&!t&&(l.a=f.b),l.d=-(l.a-f.b)/2,s.g){case 4:l.c=-l.b;break;case 2:l.c=f.a}oJ(a),sJ(a)}function jdn(e,t){var s,a,l,f,v;if(!t.dc()){if(l=h(t.Xb(0),128),t.gc()==1){Ght(e,l,l,1,0,t);return}for(s=1;s0)for(v=e.c.d,w=e.d.d,l=Ud(no(new ot(w.a,w.b),v),1/(a+1)),f=new ot(v.a,v.b),s=new Q(e.a);s.a=0?e.Wg(s,!0,!0):km(e,l,!0),152)),h(a,212).jl(t);else throw ee(new Gt(C0+t.ne()+gI))}function Wdn(e,t,s){var a,l,f,v,w,S;if(s)for(l=s.a.length,a=new vg(l),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),S=aZ(e,t4(ty(s,v.a))),S&&(f=(!t.b&&(t.b=new Ht(Vn,t,4,7)),t.b),_n(f,S))}function Gdn(e,t,s){var a,l,f,v,w,S;if(s)for(l=s.a.length,a=new vg(l),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),S=aZ(e,t4(ty(s,v.a))),S&&(f=(!t.c&&(t.c=new Ht(Vn,t,5,8)),t.c),_n(f,S))}function OP(e,t,s){var a,l;a=t.a&e.f,t.b=e.b[a],e.b[a]=t,l=t.f&e.f,t.d=e.c[l],e.c[l]=t,s?(t.e=s.e,t.e?t.e.c=t:e.a=t,t.c=s.c,t.c?t.c.e=t:e.e=t):(t.e=e.e,t.c=null,e.e?e.e.c=t:e.a=t,e.e=t),++e.i,++e.g}function Xdn(e,t){var s;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(s=h(U3(e.b,t.a),282),s.a=0,++e.c):(s=h(qn(e.b,t.a),282),--s.a,t.e?t.e.c=t.c:s.b=t.c,t.c?t.c.e=t.e:s.c=t.e),--e.d}function Kdn(e){var t,s;return s=-e.a,t=re(ne(wl,1),Qd,24,15,[43,48,48,48,48]),s<0&&(t[0]=45,s=-s),t[1]=t[1]+((s/60|0)/10|0)&Ii,t[2]=t[2]+(s/60|0)%10&Ii,t[3]=t[3]+(s%60/10|0)&Ii,t[4]=t[4]+s%10&Ii,Rl(t,0,t.length)}function Sye(e){var t,s;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),s=ki(m.Math.floor(m.Math.log(e)/.6931471805599453)),(!t||e!=m.Math.pow(2,s))&&++s,s):Fat(bc(e))}function _dt(e,t,s){var a,l;for(a=t.d,l=s.d;a.a-l.a==0&&a.b-l.b==0;)a.a+=Su(e,26)*Z8+Su(e,27)*J8-.5,a.b+=Su(e,26)*Z8+Su(e,27)*J8-.5,l.a+=Su(e,26)*Z8+Su(e,27)*J8-.5,l.b+=Su(e,26)*Z8+Su(e,27)*J8-.5}function NZ(e){var t,s,a,l;for(e.g=new I8(h(Hn(Vo),289)),a=0,s=(He(),Wt),t=0;t2&&w.e.b+w.j.b<=2&&(l=w,a=v),f.a.xc(l,f),l.q=a);return f}function Ddt(e,t){var s,a,l;return a=new y1(e),Is(a,t),_e(a,(Be(),IV),t),_e(a,(Ye(),yi),(lo(),Ra)),_e(a,lh,(Dh(),mz)),ug(a,(nn(),Ai)),s=new xa,Rs(s,a),Li(s,(He(),Xt)),l=new xa,Rs(l,a),Li(l,rn),a}function Ndt(e,t){var s,a,l,f,v;for(e.c[t.p]=!0,Re(e.a,t),v=new Q(t.j);v.a=0&&a0&&(w+=s,++t);t>1&&(w+=e.c*(t-1))}else w=SXe(Sat(RR(Kr($K(e.a),new Hp),new qs)));return w>0?w+e.n.d+e.n.a:0}function MP(e){var t,s,a,l,f,v,w;if(w=0,e.b==0)w=SXe(Sat(RR(Kr($K(e.a),new Bi),new c3)));else{for(v=Tlt(e,!0),t=0,a=v,l=0,f=a.length;l0&&(w+=s,++t);t>1&&(w+=e.c*(t-1))}return w>0?w+e.n.b+e.n.c:0}function ihn(e,t,s){var a,l,f,v,w,S;if(!e||e.c.length==0)return null;for(f=new knt(t,!s),l=new Q(e);l.a0)switch(t.g){case 2:f.n.c=e.s;break;case 4:f.n.b=e.s}}function shn(e,t){var s,a,l;return s=h(G(t,(Bf(),z6)),20).a-h(G(e,z6),20).a,s==0?(a=no(Ks(h(G(e,(u0(),jO)),8)),h(G(e,MI),8)),l=no(Ks(h(G(t,jO),8)),h(G(t,MI),8)),go(a.a*a.b,l.a*l.b)):s}function ahn(e,t){var s,a,l;return s=h(G(t,(by(),oz)),20).a-h(G(e,oz),20).a,s==0?(a=no(Ks(h(G(e,(la(),t_)),8)),h(G(e,t9),8)),l=no(Ks(h(G(t,t_),8)),h(G(t,t9),8)),go(a.a*a.b,l.a*l.b)):s}function Bdt(e){var t,s;return s=new Wp,s.a+="e_",t=hin(e),t!=null&&(s.a+=""+t),!!e.c&&!!e.d&&(Kn((s.a+=" ",s),_L(e.c)),Kn(ua((s.a+="[",s),e.c.i),"]"),Kn((s.a+=Tee,s),_L(e.d)),Kn(ua((s.a+="[",s),e.d.i),"]")),s.a}function Cye(e,t,s,a,l){var f;switch(f=0,l.g){case 1:f=m.Math.max(0,t.b+e.b-(s.b+a));break;case 3:f=m.Math.max(0,-e.b-a);break;case 2:f=m.Math.max(0,-e.a-a);break;case 4:f=m.Math.max(0,t.a+e.a-(s.a+a))}return f}function Iye(e){var t,s;switch(e.b){case-1:return!0;case 0:return s=e.t,s>1||s==-1?(e.b=-1,!0):(t=$l(e),!!t&&(Ho(),t.xj()==Ivt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function chn(e,t){var s,a,l,f,v;for(a=(!t.s&&(t.s=new $e(xc,t,21,17)),t.s),f=null,l=0,v=a.i;l=0?e.Wg(s,!0,!0):km(e,l,!0),152)),h(a,212).gl(t);throw ee(new Gt(C0+t.ne()+Cte))}function lhn(e,t){var s,a,l;if(!t)QY(e,null),N5(e,null);else if((t.i&4)!=0)for(a="[]",s=t.c;;s=s.c){if((s.i&4)==0){l=She((a1(s),s.o+a)),QY(e,l),N5(e,l);break}a+="[]"}else l=She((a1(t),t.o)),QY(e,l),N5(e,l);e.tk(t)}function L8(e,t,s,a,l){var f,v,w,S;return S=iK(e,h(l,55)),Pe(S)!==Pe(l)?(w=h(e.g[s],71),f=Oh(t,S),LC(e,s,xZ(e,s,f)),bu(e.e)&&(v=o0(e,9,f.Xj(),l,S,a,!1),zve(v,new p1(e.e,9,e.c,w,f,a,!1)),FY(v)),S):l}function fhn(e,t,s){var a,l,f,v,w,S;for(a=h(Br(e.c,t),14),l=h(Br(e.c,s),14),f=a.Xc(a.gc()),v=l.Xc(l.gc());f.Sb()&&v.Sb();)if(w=h(f.Ub(),20),S=h(v.Ub(),20),w!=S)return Qa(w.a,S.a);return!f.Ob()&&!v.Ob()?0:f.Ob()?1:-1}function RZ(e,t,s){var a;if(++e.j,t>=e.i)throw ee(new ds(Rte+t+Qg+e.i));if(s>=e.i)throw ee(new ds($te+s+Qg+e.i));return a=e.g[s],t!=s&&(t=e.length)return-1;for(s=(Bn(a,e.length),e.charCodeAt(a));s>=48&&s<=57&&(l=l*10+(s-48),++a,!(a>=e.length));)s=(Bn(a,e.length),e.charCodeAt(a));return a>t[0]?t[0]=a:l=-1,l}function ghn(e){var t,s,a,l,f;return l=h(e.a,20).a,f=h(e.b,20).a,s=l,a=f,t=m.Math.max(m.Math.abs(l),m.Math.abs(f)),l<=0&&l==f?(s=0,a=f-1):l==-t&&f!=t?(s=f,a=l,f>=0&&++s):(s=-f,a=l),new fo(Ue(s),Ue(a))}function bhn(e,t,s,a){var l,f,v,w,S,C;for(l=0;l=0&&C>=0&&S>16),t=a>>16&16,s=16-t,e=e>>t,a=e-256,t=a>>16&8,s+=t,e<<=t,a=e-Ty,t=a>>16&4,s+=t,e<<=t,a=e-Yd,t=a>>16&2,s+=t,e<<=t,a=e>>14,t=a&~(a>>1),s+2-t)}function vhn(e){R3();var t,s,a,l;for(BB=new Fe,Mne=new Un,_ne=new Fe,t=(!e.a&&(e.a=new $e(bi,e,10,11)),e.a),Lyn(t),l=new bn(t);l.e!=l.i.gc();)a=h(yn(l),34),Os(BB,a,0)==-1&&(s=new Fe,Re(_ne,s),Zut(a,s));return _ne}function yhn(e,t,s){var a,l,f,v;e.a=s.b.d,ue(t,349)?(l=k2(h(t,80),!1,!1),f=AP(l),a=new jHe(e),So(f,a),zP(f,l),t.Xe((Or(),cx))!=null&&So(h(t.Xe(cx),74),a)):(v=h(t,464),v.Cg(v.yg()+e.a.a),v.Dg(v.zg()+e.a.b))}function km(e,t,s){var a,l,f;if(f=A2((Nc(),vo),e.Og(),t),f)return Ho(),h(f,65).Jj()||(f=L3(bs(vo,f))),l=(a=e.Tg(f),h(a>=0?e.Wg(a,!0,!0):km(e,f,!0),152)),h(l,212).cl(t,s);throw ee(new Gt(C0+t.ne()+Cte))}function NP(e,t){var s;if(t<0)throw ee(new rj("Negative exponent"));if(t==0)return AB;if(t==1||jme(e,AB)||jme(e,F6))return e;if(!uht(e,0)){for(s=1;!uht(e,s);)++s;return n2($sn(s*t),NP(Fge(e,s),t))}return Wln(e,t)}function whn(e,t,s,a,l){var f,v,w,S;if(Pe(e)===Pe(t)&&a==l){q1t(e,a,s);return}for(w=0;w=0?s:(w=e8(no(new ot(v.c+v.b/2,v.d+v.a/2),new ot(f.c+f.b/2,f.d+f.a/2))),-(spt(f,v)-1)*w)}function Shn(e,t,s){var a;mi(new Rt(null,(!s.a&&(s.a=new $e(ai,s,6,6)),new Lt(s.a,16))),new DYe(e,t)),mi(new Rt(null,(!s.n&&(s.n=new $e(Ds,s,1,7)),new Lt(s.n,16))),new NYe(e,t)),a=h(Ot(s,(Or(),cx)),74),a&&jbe(a,e,t)}function Tye(e,t,s,a){var l,f,v,w,S;if(l=e.d[t],l){if(f=l.g,S=l.i,a!=null){for(w=0;w=s&&(a=t,C=(S.c+S.a)/2,v=C-s,S.c<=C-s&&(l=new bK(S.c,v),qv(e,a++,l)),w=C+s,w<=S.a&&(f=new bK(w,S.a),Yv(a,e.c.length),TC(e.c,a,f)))}function Aye(e){var t;if(!e.c&&e.g==null)e.d=e.ni(e.f),_n(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=h(e.g[e.i-1],49)}return t==e.b&&null.fm>=null.em()?(HL(e),Aye(e)):t.Ob()}function Chn(e,t,s){var a,l,f,v,w;if(w=s,!w&&(w=d0e(new GS,0)),Mn(w,Ygt,1),a0t(e.c,t),v=avn(e.a,t),v.gc()==1)Upt(h(v.Xb(0),38),w);else for(f=1/v.gc(),l=v.Ic();l.Ob();)a=h(l.Pb(),38),Upt(a,Pa(w,f));GHt(e.a,v,t),l0n(t),wn(w)}function Ihn(e,t){var s,a,l,f,v;if(s=h(zt(e.a,4),124),v=s==null?0:s.length,t>=v)throw ee(new zv(t,v));return l=s[t],v==1?a=null:(a=ge(poe,Ute,410,v-1,0,1),Sa(s,0,a,0,t),f=v-t-1,f>0&&Sa(s,t+1,a,t,f)),t6(e,a),mdt(e,t,l),l}function qdt(e,t){var s,a,l;l=e.b,e.b=t,(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,3,l,e.b)),t?t!=e&&(za(e,t.zb),KY(e,t.d),s=(a=t.c,a==null?t.zb:a),ZY(e,s==null||kt(s,t.zb)?null:s)):(za(e,null),KY(e,0),ZY(e,null))}function Wdt(e){var t,s;if(e.f){for(;e.n=0;)a=s[f],v.ml(a.Xj())&&_n(l,a);!$0t(e,l)&&bu(e.e)&&WS(e,t.Vj()?o0(e,6,t,(Mt(),Wo),null,-1,!1):o0(e,t.Fj()?2:1,t,null,null,-1,!1))}function Jdt(e,t){var s,a,l,f;s=h(G(e,(Ye(),Gu)),108),f=h(Ot(t,sE),61),l=h(G(e,yi),100),l!=(lo(),Cd)&&l!=L0?f==(He(),Hs)&&(f=Twe(t,s),f==Hs&&(f=K3(s))):(a=zpt(t),a>0?f=K3(s):f=fP(K3(s))),Ts(t,sE,f)}function _hn(e,t){var s,a,l,f,v;return e.a==(a6(),RI)?!0:(f=t.a.c,s=t.a.c+t.a.b,!(t.j&&(a=t.A,v=a.c.c.a-a.o.a/2,l=f-(a.n.a+a.o.a),l>v)||t.q&&(a=t.C,v=a.c.c.a-a.o.a/2,l=a.n.a-s,l>v)))}function Mhn(e,t){var s;Mn(t,"Partition preprocessing",1),s=h(Fu(Kr($s(Kr(new Rt(null,new Lt(e.a,16)),new nRe),new rRe),new iRe),Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[(gd(),Wu)]))),14),mi(s.Mc(),new oRe),wn(t)}function eht(e){fY();var t,s,a,l,f,v,w;for(s=new Cg,l=new Q(e.e.b);l.a1?e.e*=Ae(e.a):e.f/=Ae(e.a),fon(e),lan(e),G0n(e),_e(e.b,(O8(),FB),e.g)}function iht(e,t,s){var a,l,f,v,w,S;for(a=0,S=s,t||(a=s*(e.c.length-1),S*=-1),f=new Q(e);f.a=0?(t||(t=new fC,a>0&&is(t,e.substr(0,a))),t.a+="\\",p5(t,s&Ii)):t&&p5(t,s&Ii);return t?t.a:e}function LZ(e){var t,s,a,l,f;return f=e.$g(),f&&f.fh()&&(l=h0(e,f),l!=f)?(s=e.Qg(),a=(t=e.Qg(),t>=0?e.Lg(null):e.$g().dh(e,-1-t,null,null)),e.Mg(h(l,48),s),a&&a.Ai(),e.Gg()&&e.Hg()&&s>-1&&Ar(e,new Wi(e,9,s,f,l)),l):f}function uht(e,t){var s,a,l;if(t==0)return(e.a[0]&1)!=0;if(t<0)throw ee(new rj("Negative bit address"));if(l=t>>5,l>=e.d)return e.e<0;if(s=e.a[l],t=1<<(t&31),e.e<0){if(a=Mat(e),l>16)),14).Vc(f),w0&&(!(gg(e.a.c)&&t.n.d)&&!(JT(e.a.c)&&t.n.b)&&(t.g.d+=m.Math.max(0,a/2-.5)),!(gg(e.a.c)&&t.n.a)&&!(JT(e.a.c)&&t.n.c)&&(t.g.a-=a-1))}function hht(e){var t,s,a,l,f;if(l=new Fe,f=tpt(e,l),t=h(G(e,(Be(),Yc)),10),t)for(a=new Q(t.j);a.a>t,f=e.m>>t|s<<22-t,l=e.l>>t|e.m<<22-t):t<44?(v=a?E1:0,f=s>>t-22,l=e.m>>t-22|s<<44-t):(v=a?E1:0,f=a?cu:0,l=s>>t-44),Za(l&cu,f&cu,v&E1)}function FZ(e){var t,s,a,l,f,v;for(this.c=new Fe,this.d=e,a=pi,l=pi,t=Pi,s=Pi,v=ar(e,0);v.b!=v.d.c;)f=h(sr(v),8),a=m.Math.min(a,f.a),l=m.Math.min(l,f.b),t=m.Math.max(t,f.a),s=m.Math.max(s,f.b);this.a=new cl(a,l,t-a,s-l)}function ght(e,t){var s,a,l,f,v,w;for(f=new Q(e.b);f.a0&&ue(t,43)&&(e.a.lj(),C=h(t,43),S=C.ad(),f=S==null?0:ri(S),v=kpe(e.a,f),s=e.a.d[v],s)){for(a=h(s.g,364),A=s.i,w=0;w=2)for(s=l.Ic(),t=Xe(s.Pb());s.Ob();)f=t,t=Xe(s.Pb()),a=m.Math.min(a,(Ut(t),t-(Ut(f),f)));return a}function Qhn(e,t){var s,a,l,f,v;a=new ci,wi(a,t,a.c.b,a.c);do for(s=(pn(a.b!=0),h(fl(a,a.a.a),83)),e.b[s.g]=1,f=ar(s.d,0);f.b!=f.d.c;)l=h(sr(f),188),v=l.c,e.b[v.g]==1?dr(e.a,l):e.b[v.g]==2?e.b[v.g]=1:wi(a,v,a.c.b,a.c);while(a.b!=0)}function Zhn(e,t){var s,a,l;if(Pe(t)===Pe(Hn(e)))return!0;if(!ue(t,14)||(a=h(t,14),l=e.gc(),l!=a.gc()))return!1;if(ue(a,53)){for(s=0;s0&&(l=s),v=new Q(e.f.e);v.a=0;f+=s?1:-1)v=v|t.c.Pf(S,f,s,a&&!_t(It(G(t.j,(Be(),TV))))),v=v|t.q.Xf(S,f,s),v=v|P1t(e,S[f],s,a);return ro(e.c,t),v}function l1n(e,t,s){var a,l,f,v;for(Mn(s,"Processor set coordinates",1),e.a=t.b.b==0?1:t.b.b,f=null,a=ar(t.b,0);!f&&a.b!=a.d.c;)v=h(sr(a),83),_t(It(G(v,(la(),Zy))))&&(f=v,l=v.e,l.a=h(G(v,yie),20).a,l.b=0);Gft(e,Hbe(f),Pa(s,1)),wn(s)}function f1n(e,t,s){var a,l,f;for(Mn(s,"Processor determine the height for each level",1),e.a=t.b.b==0?1:t.b.b,l=null,a=ar(t.b,0);!l&&a.b!=a.d.c;)f=h(sr(a),83),_t(It(G(f,(la(),Zy))))&&(l=f);l&&a1t(e,fd(re(ne(i2n,1),A2e,83,0,[l])),s),wn(s)}function d1n(e,t){var s,a,l,f,v,w,S,C,A,M;C=e,S=c8(C,"individualSpacings"),S&&(a=s0(t,(Or(),F4)),v=!a,v&&(l=new PG,Ts(t,F4,l)),w=h(Ot(t,F4),370),M=S,f=null,M&&(f=(A=tQ(M,ge(Qe,Oe,2,0,6,1)),new fX(M,A))),f&&(s=new XYe(M,w),So(f,s)))}function h1n(e,t){var s,a,l,f,v,w,S,C,A,M,R;return S=null,M=e,A=null,(jmt in M.a||Rmt in M.a||rB in M.a)&&(C=null,R=Gbe(t),v=c8(M,jmt),s=new MWe(R),Msn(s.a,v),w=c8(M,Rmt),a=new zWe(R),Dsn(a.a,w),f=um(M,rB),l=new qWe(R),C=(Sln(l.a,f),f),A=C),S=A,S}function p1n(e){var t,s,a,l;return a=h(e.a,20).a,l=h(e.b,20).a,t=a,s=l,a==0&&l==0?s-=1:a==-1&&l<=0?(t=0,s-=2):a<=0&&l>0?(t-=1,s-=1):a>=0&&l<0?(t+=1,s+=1):a>0&&l>=0?(t-=1,s+=1):(t+=1,s-=1),new fo(Ue(t),Ue(s))}function g1n(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?ri(e.a)-ri(t.a):e.d==(u8(),ZI)&&t.d==QI?-1:e.d==QI&&t.d==ZI?1:0}function xht(e,t){var s,a,l,f,v;return f=t.a,f.c.i==t.b?v=f.d:v=f.c,f.c.i==t.b?a=f.c:a=f.d,l=zsn(e.a,v,a),l>0&&l0):l<0&&-l0):!1}function b1n(e){var t,s,a,l,f,v,w;if(e==null)return null;for(w=e.length,l=(w+1)/2|0,v=ge(Fc,L2,24,l,15,1),w%2!=0&&(v[--l]=uwe((Bn(w-1,e.length),e.charCodeAt(w-1)))),s=0,a=0;s>24;return v}function m1n(e){if(e.pe()){var t=e.c;t.qe()?e.o="["+t.n:t.pe()?e.o="["+t.ne():e.o="[L"+t.ne()+";",e.b=t.me()+"[]",e.k=t.oe()+"[]";return}var s=e.j,a=e.d;a=a.split("/"),e.o=zQ(".",[s,zQ("$",a)]),e.b=zQ(".",[s,zQ(".",a)]),e.k=a[a.length-1]}function v1n(e,t){var s,a,l,f,v;for(v=null,f=new Q(e.e.a);f.a=0;t-=2)for(s=0;s<=t;s+=2)(e.b[s]>e.b[s+2]||e.b[s]===e.b[s+2]&&e.b[s+1]>e.b[s+3])&&(a=e.b[s+2],e.b[s+2]=e.b[s],e.b[s]=a,a=e.b[s+3],e.b[s+3]=e.b[s+1],e.b[s+1]=a);e.c=!0}}function B8(e){var t,s,a,l;if(e.e)throw ee(new Gs((a1(wne),cee+wne.k+uee)));for(e.d==(cs(),A1)&&lF(e,xf),s=new Q(e.a.a);s.a>>0,t.toString(16))),e.fh()?(s.a+=" (eProxyURI: ",ua(s,e.lh()),e.Vg()&&(s.a+=" eClass: ",ua(s,e.Vg())),s.a+=")"):e.Vg()&&(s.a+=" (eClass: ",ua(s,e.Vg()),s.a+=")"),s.a}function Eht(e,t){var s,a,l,f,v,w,S,C,A;if(C=t,A=h(M$(HK(e.i),C),34),!A)throw l=f1(C,ih),w="Unable to find elk node for json object '"+l,S=w+"' Panic!",ee(new Fd(S));f=um(C,"edges"),s=new BYe(e,A),Ufn(s.a,s.b,f),v=um(C,Dte),a=new kWe(e),xun(a.a,v)}function S1n(e,t,s,a){var l,f,v,w,S,C,A,M;for(l=(t-e.d)/e.c.c.length,f=0,e.a+=s,e.d=t,M=new Q(e.c);M.a>24}return s}function k1n(e,t,s){var a,l,f;if(l=h(os(e.i,t),304),!l)if(l=new Ast(e.d,t,s),M3(e.i,t,l),eve(t))UWt(e.a,t.c,t.b,l);else switch(f=gdn(t),a=h(os(e.p,f),243),f.g){case 1:case 3:l.j=!0,ZG(a,t.b,l);break;case 4:case 2:l.k=!0,ZG(a,t.c,l)}return l}function C1n(e,t,s,a){var l,f,v,w,S,C;if(w=new FN,S=tc(e.e.Og(),t),l=h(e.g,118),Ho(),h(t,65).Jj())for(v=0;v=0)return l;for(f=1,w=new Q(t.j);w.a0&&(!(gg(e.a.c)&&t.n.d)&&!(JT(e.a.c)&&t.n.b)&&(t.g.d-=m.Math.max(0,a/2-.5)),!(gg(e.a.c)&&t.n.a)&&!(JT(e.a.c)&&t.n.c)&&(t.g.a+=m.Math.max(0,a-1)))}function Iht(e,t,s){var a,l;if((e.c-e.b&e.a.length-1)==2)t==(He(),Wt)||t==rn?(O$(h(x8(e),14),(zu(),zh)),O$(h(x8(e),14),R0)):(O$(h(x8(e),14),(zu(),R0)),O$(h(x8(e),14),zh));else for(l=new n8(e);l.a!=l.b;)a=h(iL(l),14),O$(a,s)}function Su(e,t){var s,a,l,f,v,w;return f=e.a*iee+e.b*1502,w=e.b*iee+11,s=m.Math.floor(w*rO),f+=s,w-=s*c2e,f%=c2e,e.a=f,e.b=w,t<=24?m.Math.floor(e.a*K4e[t]):(l=e.a*(1<=2147483648&&(a-=eee),a)}function Tht(e,t,s){var a,l,f,v;crt(e,t)>crt(e,s)?(a=Fs(s,(He(),rn)),e.d=a.dc()?0:xK(h(a.Xb(0),11)),v=Fs(t,Xt),e.b=v.dc()?0:xK(h(v.Xb(0),11))):(l=Fs(s,(He(),Xt)),e.d=l.dc()?0:xK(h(l.Xb(0),11)),f=Fs(t,rn),e.b=f.dc()?0:xK(h(f.Xb(0),11)))}function Aht(e){var t,s,a,l,f,v,w;if(e&&(t=e.Ch(zl),t&&(v=Fn($f((!t.b&&(t.b=new mu((At(),zo),na,t)),t.b),"conversionDelegates")),v!=null))){for(w=new Fe,a=xy(v,"\\w+"),l=0,f=a.length;l>>0),s.toString(16)),Ian(xin(),(r5(),"Exception during lenientFormat for "+a),t),"<"+a+" threw "+Xp(t.bm)+">";throw ee(l)}}function Pht(e,t){var s,a,l,f;for(s=e.o.a,f=h(h(Br(e.r,t),21),81).Ic();f.Ob();)l=h(f.Pb(),110),l.e.a=s*Ae(Xe(l.b.Xe(RB))),l.e.b=(a=l.b,a.Ye((Or(),lu))?a.Ef()==(He(),Wt)?-a.pf().b-Ae(Xe(a.Xe(lu))):Ae(Xe(a.Xe(lu))):a.Ef()==(He(),Wt)?-a.pf().b:0)}function P1n(e){var t,s,a,l,f,v,w,S;t=!0,l=null,f=null;e:for(S=new Q(e.a);S.ae.c));v++)l.a>=e.s&&(f<0&&(f=v),w=v);return S=(e.s+e.c)/2,f>=0&&(a=ogn(e,t,f,w),S=Tqt((qt(a,t.c.length),h(t.c[a],327))),khn(t,a,s)),S}function Dn(e,t,s){var a,l,f,v,w,S,C;for(v=(f=new fde,f),Ibe(v,(Ut(t),t)),C=(!v.b&&(v.b=new mu((At(),zo),na,v)),v.b),S=1;S0&&Gmn(this,l)}function Hye(e,t,s,a,l,f){var v,w,S;if(!l[t.b]){for(l[t.b]=!0,v=a,!v&&(v=new l$),Re(v.e,t),S=f[t.b].Ic();S.Ob();)w=h(S.Pb(),281),!(w.d==s||w.c==s)&&(w.c!=t&&Hye(e,w.c,t,v,l,f),w.d!=t&&Hye(e,w.d,t,v,l,f),Re(v.c,w),Mi(v.d,w.b));return v}return null}function _1n(e){var t,s,a,l,f,v,w;for(t=0,l=new Q(e.e);l.a=2}function M1n(e,t){var s,a,l,f;for(Mn(t,"Self-Loop pre-processing",1),a=new Q(e.a);a.a1||(t=Zr(Sf,re(ne(ns,1),je,92,0,[O1,Ef])),XA(WR(t,e))>1)||(a=Zr(Cf,re(ne(ns,1),je,92,0,[Uh,Gl])),XA(WR(a,e))>1))}function j1n(e,t){var s,a,l;return s=t.Ch(e.a),s&&(l=Fn($f((!s.b&&(s.b=new mu((At(),zo),na,s)),s.b),"affiliation")),l!=null)?(a=Qj(l,mc(35)),a==-1?AQ(e,YC(e,Bu(t.Cj())),l):a==0?AQ(e,null,l.substr(1)):AQ(e,l.substr(0,a),l.substr(a+1))):null}function qye(e,t,s){var a,l,f;for(f=new Q(e.t);f.a0&&(a.b.n-=a.c,a.b.n<=0&&a.b.u>0&&dr(t,a.b));for(l=new Q(e.i);l.a0&&(a.a.u-=a.c,a.a.u<=0&&a.a.n>0&&dr(s,a.a))}function HL(e){var t,s,a,l,f;if(e.g==null&&(e.d=e.ni(e.f),_n(e,e.d),e.c))return f=e.f,f;if(t=h(e.g[e.i-1],49),l=t.Pb(),e.e=t,s=e.ni(l),s.Ob())e.d=s,_n(e,s);else for(e.d=null;!t.Ob()&&(ui(e.g,--e.i,null),e.i!=0);)a=h(e.g[e.i-1],49),t=a;return l}function R1n(e,t){var s,a,l,f,v,w;if(a=t,l=a.Xj(),w1(e.e,l)){if(l.ci()&&a$(e,l,a.bd()))return!1}else for(w=tc(e.e.Og(),l),s=h(e.g,118),f=0;f1||s>1)return 2;return t+s==1?2:0}function Mht(e){var t,s,a,l,f,v,w;for(t=0,a=new Q(e.a);a.a=0?e.Wg(a,!0,!0):km(e,f,!0),152)),h(l,212).hl(t,s)}else throw ee(new Gt(C0+t.ne()+gI))}function z1n(e,t,s){var a,l;a=bc(s.q.getTime()),ba(a,0)<0?(l=x1-On(hP(I5(a),x1)),l==x1&&(l=0)):l=On(hP(a,x1)),t==1?(l=m.Math.min((l+50)/100|0,9),r0(e,48+l&Ii)):t==2?(l=m.Math.min((l+5)/10|0,99),_h(e,l,2)):(_h(e,l,3),t>3&&_h(e,0,t-3))}function U1n(e,t){var s,a,l,f,v;if(Mn(t,"Breaking Point Processor",1),tyn(e),_t(It(G(e,(Ye(),$Ee))))){for(l=new Q(e.b);l.a=2*t&&Re(s,new bK(v[a-1]+t,v[a]-t));return s}function G1n(e,t,s){var a,l,f,v,w,S,C,A;if(s)for(f=s.a.length,a=new vg(f),w=(a.b-a.a)*a.c<0?(Qp(),q0):new e0(a);w.Ob();)v=h(w.Pb(),20),l=x5(s,v.a),l&&(i=null,S=ctn(e,(C=(Hb(),A=new hhe,A),t&&Kye(C,t),C),l),b8(S,f1(l,ih)),$L(l,S),yye(l,S),fQ(e,l,S))}function WL(e){var t,s,a,l,f,v;if(!e.j){if(v=new $Be,t=C9,f=t.a.xc(e,t),f==null){for(a=new bn(Es(e));a.e!=a.i.gc();)s=h(yn(a),26),l=WL(s),di(v,l),_n(v,s);t.a.zc(e)!=null}sy(v),e.j=new Ww((h(le(Ce((n0(),Bt).o),11),17),v.i),v.g),eu(e).b&=-33}return e.j}function X1n(e){var t,s,a,l;if(e==null)return null;if(a=Ma(e,!0),l=kO.length,kt(a.substr(a.length-l,l),kO)){if(s=a.length,s==4){if(t=(Bn(0,a.length),a.charCodeAt(0)),t==43)return AIe;if(t==45)return QEt}else if(s==3)return AIe}return new ahe(a)}function K1n(e){var t,s,a;return s=e.l,(s&s-1)!=0||(a=e.m,(a&a-1)!=0)||(t=e.h,(t&t-1)!=0)||t==0&&a==0&&s==0?-1:t==0&&a==0&&s!=0?Obe(s):t==0&&a!=0&&s==0?Obe(a)+22:t!=0&&a==0&&s==0?Obe(t)+44:-1}function Y1n(e,t){var s,a,l,f,v;for(Mn(t,"Edge joining",1),s=_t(It(G(e,(Ye(),Gre)))),l=new Q(e.b);l.a1)for(l=new Q(e.a);l.a0),f.a.Xb(f.c=--f.b),Bv(f,l),pn(f.b>16!=6&&!!t){if(r6(e,t))throw ee(new Gt(bI+tht(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?xve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,6,a)),a=Spe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,6,t,t))}function Xye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=3&&!!t){if(r6(e,t))throw ee(new Gt(bI+Mpt(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Cve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,12,a)),a=xpe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,3,t,t))}function Kye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=9&&!!t){if(r6(e,t))throw ee(new Gt(bI+N1t(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Eve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,9,a)),a=Epe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,9,t,t))}function J1n(e){var t,s,a,l;return Pe(G(e,(Ye(),Uy)))===Pe((m1(),kp))?!e.e&&Pe(G(e,WO))!==Pe((L5(),BO)):(a=h(G(e,Rre),292),l=_t(It(G(e,$re)))||Pe(G(e,rE))===Pe((B3(),FO)),t=h(G(e,eEe),20).a,s=e.a.c.length,!l&&a!=(L5(),BO)&&(t==0||t>s))}function epn(e){var t,s;for(s=0;s0);s++);if(s>0&&s0);t++);return t>0&&sa.b.g&&(f.c[f.c.length]=a);return f}function h6(){h6=H,sx=new qT("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),N4=new qT("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),s9=new qT("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),o9=new qT("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),a9=new qT("WHOLE_DRAWING",4)}function Yye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=11&&!!t){if(r6(e,t))throw ee(new Gt(bI+pwe(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Ive(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=Q3(t,e,10,a)),a=Mpe(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,11,t,t))}function opn(e){var t,s,a,l,f,v,w;for(f=new ci,l=new Q(e.d.a);l.a1)for(t=Qb((s=new dg,++e.b,s),e.d),w=ar(f,0);w.b!=w.d.c;)v=h(sr(w),119),bf(cf(af(uf(sf(new Ol,1),0),t),v))}function spn(e){y2();var t,s;if(e.Fc((He(),Hs)))throw ee(new Gt("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return lV;case 2:return t=e.Fc(rn)&&e.Fc(Xt),s=e.Fc(Wt)&&e.Fc(Sn),t||s?hV:dV;case 3:return fV;case 4:return uV;default:return null}}function apn(e,t,s){var a,l,f,v,w,S;if(l=s,f=l.Xj(),w1(e.e,f)){if(f.ci()){for(a=h(e.g,118),v=0;vf.a?-1:l.aS){for(A=e.d,e.d=ge(J8e,n4e,60,2*S+4,0,1),f=0;f=9223372036854776e3?(A5(),E4e):(l=!1,e<0&&(l=!0,e=-e),a=0,e>=Ug&&(a=ki(e/Ug),e-=a*Ug),s=0,e>=c4&&(s=ki(e/c4),e-=s*c4),t=ki(e),f=Za(t,s,a),l&&lQ(f),f)}function vpn(e,t){var s,a,l,f,v;return l=t.Ch(e.a),l&&(a=(!l.b&&(l.b=new mu((At(),zo),na,l)),l.b),s=Fn($f(a,Co)),s!=null&&(f=s.lastIndexOf("#"),v=f==-1?bpe(e,t.vj(),s):f==0?jA(e,null,s.substr(1)):jA(e,s.substr(0,f),s.substr(f+1)),ue(v,148)))?h(v,148):null}function ypn(e,t){var s,a,l,f,v;return a=t.Ch(e.a),a&&(s=(!a.b&&(a.b=new mu((At(),zo),na,a)),a.b),f=Fn($f(s,Gte)),f!=null&&(l=f.lastIndexOf("#"),v=l==-1?bpe(e,t.vj(),f):l==0?jA(e,null,f.substr(1)):jA(e,f.substr(0,l),f.substr(l+1)),ue(v,148)))?h(v,148):null}function Zye(e){var t,s,a,l,f;for(s=new Q(e.a.a);s.a=-t&&a==t?new fo(Ue(s-1),Ue(a)):new fo(Ue(s),Ue(a-1))}function Bht(){return ys(),re(ne(Jwn,1),je,77,0,[p5e,f5e,DI,Wne,D5e,QB,oV,q6,_5e,S5e,P5e,H6,M5e,y5e,N5e,o5e,Kne,Qne,YB,Yne,R5e,tV,s5e,O5e,$5e,rV,j5e,Gne,b5e,T5e,I5e,sV,u5e,KB,JB,c5e,U6,k5e,w5e,A5e,NI,d5e,l5e,C5e,x5e,Xne,iV,a5e,eV,E5e,ZB,m5e,g5e,nV,XB,v5e,h5e])}function xpn(e,t,s){e.d=0,e.b=0,t.k==(nn(),Na)&&s.k==Na&&h(G(t,(Be(),Dr)),10)==h(G(s,Dr),10)&&(VY(t).j==(He(),Wt)?Tht(e,t,s):Tht(e,s,t)),t.k==Na&&s.k==Ki?VY(t).j==(He(),Wt)?e.d=1:e.b=1:s.k==Na&&t.k==Ki&&(VY(s).j==(He(),Wt)?e.b=1:e.d=1),bcn(e,t,s)}function RP(e){var t;if(eXe.call(this),this.i=new $Fe,this.g=e,this.f=h(e.e&&e.e(),9).length,this.f==0)throw ee(new Gt("There must be at least one phase in the phase enumeration."));this.c=(t=h(_f(this.g),9),new al(t,h(lf(t,t.length),9),0)),this.a=new Xi,this.b=new Un}function Jye(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=7&&!!t){if(r6(e,t))throw ee(new Gt(bI+tdt(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?Sve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=h(t,48).ah(e,1,I_,a)),a=S0e(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,7,t,t))}function Vht(e,t){var s,a;if(t!=e.Cb||e.Db>>16!=3&&!!t){if(r6(e,t))throw ee(new Gt(bI+out(e)));a=null,e.Cb&&(a=(s=e.Db>>16,s>=0?kve(e,a):e.Cb.dh(e,-1-s,null,a))),t&&(a=h(t,48).ah(e,0,A_,a)),a=E0e(e,t,a),a&&a.Ai()}else(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,3,t,t))}function Spn(e){var t,s,a,l,f,v,w,S,C,A,M;return M=Xve(e),t=e.a,S=t!=null,S&&WC(M,"category",e.a),l=_T(new VS(e.d)),v=!l,v&&(C=new cg,Nf(M,"knownOptions",C),s=new WWe(C),So(new VS(e.d),s)),f=_T(e.g),w=!f,w&&(A=new cg,Nf(M,"supportedFeatures",A),a=new GWe(A),So(e.g,a)),M}function Epn(e){var t,s,a,l,f,v,w,S,C;for(a=!1,t=336,s=0,f=new JZe(e.length),w=e,S=0,C=w.length;Ss);return l}function Cpn(e,t,s){var a,l,f,v,w;for(v=k8(e,s),w=ge(vp,Kg,10,t.length,0,1),a=0,f=v.Ic();f.Ob();)l=h(f.Pb(),11),_t(It(G(l,(Be(),zO))))&&(w[a++]=h(G(l,Yc),10));if(ae.d&&(w=e,e=t,t=w),t.d<63?o0n(e,t):(v=(e.d&-2)<<4,C=Fge(e,v),A=Fge(t,v),a=aJ(e,V3(C,v)),l=aJ(t,V3(A,v)),S=qZ(C,A),s=qZ(a,l),f=qZ(aJ(C,a),aJ(l,A)),f=gJ(gJ(f,S),s),f=V3(f,v),S=V3(S,v<<1),gJ(gJ(S,f),s))}function Ipn(e,t){var s,a,l,f,v,w;if(!e.tb){for(f=(!e.rb&&(e.rb=new Wv(e,Kf,e)),e.rb),w=new x3(f.i),l=new bn(f);l.e!=l.i.gc();)a=h(yn(l),138),v=a.ne(),s=h(v==null?ec(w.f,null,a):vm(w.g,v,a),138),s&&(v==null?ec(w.f,null,s):vm(w.g,v,s));e.tb=w}return h(Ta(e.tb,t),138)}function $P(e,t){var s,a,l,f,v;if((e.i==null&&Kd(e),e.i).length,!e.p){for(v=new x3((3*e.g.i/2|0)+1),l=new P3(e.g);l.e!=l.i.gc();)a=h(HQ(l),170),f=a.ne(),s=h(f==null?ec(v.f,null,a):vm(v.g,f,a),170),s&&(f==null?ec(v.f,null,s):vm(v.g,f,s));e.p=v}return h(Ta(e.p,t),170)}function ewe(e,t,s,a,l){var f,v,w,S,C;for(gan(a+nY(s,s.$d()),l),ytt(t,Fsn(s)),f=s.f,f&&ewe(e,t,f,"Caused by: ",!1),w=(s.k==null&&(s.k=ge(lne,Oe,78,0,0,1)),s.k),S=0,C=w.length;S1&&(e.a=!0),iQt(h(s.b,63),Rr(Ks(h(t.b,63).c),Ud(no(Ks(h(s.b,63).a),h(t.b,63).a),l))),Ynt(e,t),Uht(e,s)}function Ppn(e,t){var s,a;if(a=vA(e.b,t.b),!a)throw ee(new Gs("Invalid hitboxes for scanline constraint calculation."));(tct(t.b,h(KGt(e.b,t.b),56))||tct(t.b,h(XGt(e.b,t.b),56)))&&(Sh(),t.b+""),e.a[t.b.f]=h(lK(e.b,t.b),56),s=h(uK(e.b,t.b),56),s&&(e.a[s.f]=t.b)}function Hht(e){var t,s,a,l,f,v,w;for(f=new Q(e.a.a);f.a0&&f>0?v.p=t++:a>0?v.p=s++:f>0?v.p=l++:v.p=s++}Mt(),co(e.j,new Qje)}function _pn(e){var t,s;s=null,t=h(st(e.g,0),18);do{if(s=t.d.i,Lo(s,(Be(),ql)))return h(G(s,ql),11).i;if(s.k!=(nn(),ji)&&Qn(new mn(vn(Di(s).a.Ic(),new j))))t=h($n(new mn(vn(Di(s).a.Ic(),new j))),18);else if(s.k!=ji)return null}while(!!s&&s.k!=(nn(),ji));return s}function Mpn(e,t){var s,a,l,f,v,w,S,C,A;for(w=t.j,v=t.g,S=h(st(w,w.c.length-1),112),A=(qt(0,w.c.length),h(w.c[0],112)),C=fZ(e,v,S,A),f=1;fC&&(S=s,A=l,C=a);t.a=A,t.c=S}function Dpn(e){var t,s,a,l,f;if(f=new Fe,gc(e.b,new IHe(f)),e.b.c=ge(hn,rt,1,0,5,1),f.c.length!=0){for(t=(qt(0,f.c.length),h(f.c[0],78)),s=1,a=f.c.length;sS-e.b&&wS-e.a&&w0?f.a?(w=f.b.pf().a,s>w&&(l=(s-w)/2,f.d.b=l,f.d.c=l)):f.d.c=e.s+s:QC(e.t)&&(a=Kve(f.b),a.c<0&&(f.d.b=-a.c),a.c+a.b>f.b.pf().a&&(f.d.c=a.c+a.b-f.b.pf().a))}function Gpn(e,t){var s,a,l,f;for(Mn(t,"Semi-Interactive Crossing Minimization Processor",1),s=!1,l=new Q(e.b);l.a=0){if(t==s)return new fo(Ue(-t-1),Ue(-t-1));if(t==-s)return new fo(Ue(-t),Ue(s+1))}return m.Math.abs(t)>m.Math.abs(s)?t<0?new fo(Ue(-t),Ue(s)):new fo(Ue(-t),Ue(s+1)):new fo(Ue(t+1),Ue(s))}function Ypn(e){var t,s;s=h(G(e,(Ye(),wc)),165),t=h(G(e,(Be(),rb)),301),s==(gl(),M0)?(_e(e,wc,qO),_e(e,rb,(g1(),K2))):s==zy?(_e(e,wc,qO),_e(e,rb,(g1(),k4))):t==(g1(),K2)?(_e(e,wc,M0),_e(e,rb,VO)):t==k4&&(_e(e,wc,zy),_e(e,rb,VO))}function Qpn(e){var t,s;for(s=new mn(vn(_s(e).a.Ic(),new j));Qn(s);)if(t=h($n(s),18),t.c.i.k!=(nn(),ku))throw ee(new Lw(Oee+SP(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function KL(){KL=H,JO=new LLe,vSt=Mr(new Xi,(us(),Rc),(ys(),YB)),xSt=Jc(Mr(new Xi,Rc,tV),Us,eV),SSt=ly(ly(Ij(Jc(Mr(new Xi,uh,oV),Us,iV),qa),rV),sV),ySt=Jc(Mr(Mr(Mr(new Xi,P0,QB),qa,JB),qa,U6),Us,ZB),wSt=Jc(Mr(Mr(new Xi,qa,U6),qa,KB),Us,XB)}function V8(){V8=H,CSt=Mr(Jc(new Xi,(us(),Us),(ys(),m5e)),Rc,YB),PSt=ly(ly(Ij(Jc(Mr(new Xi,uh,oV),Us,iV),qa),rV),sV),ISt=Jc(Mr(Mr(Mr(new Xi,P0,QB),qa,JB),qa,U6),Us,ZB),ASt=Mr(Mr(new Xi,Rc,tV),Us,eV),TSt=Jc(Mr(Mr(new Xi,qa,U6),qa,KB),Us,XB)}function Zpn(e,t,s,a,l){var f,v;(!Zo(t)&&t.c.i.c==t.d.i.c||!cat(Ls(re(ne(Ui,1),Oe,8,0,[l.i.n,l.n,l.a])),s))&&!Zo(t)&&(t.c==l?c5(t.a,0,new Ss(s)):dr(t.a,new Ss(s)),a&&!e5(e.a,s)&&(v=h(G(t,(Ye(),ws)),74),v||(v=new Tc,_e(t,ws,v)),f=new Ss(s),wi(v,f,v.c.b,v.c),ro(e.a,f)))}function Jpn(e,t,s){var a,l,f,v,w,S,C;if(l=cut(e.Db&254),l==0)e.Eb=s;else{if(l==1)w=ge(hn,rt,1,2,5,1),f=lZ(e,t),f==0?(w[0]=s,w[1]=e.Eb):(w[0]=e.Eb,w[1]=s);else for(w=ge(hn,rt,1,l+1,5,1),v=Tg(e.Eb),a=2,S=0,C=0;a<=128;a<<=1)a==t?w[C++]=s:(e.Db&a)!=0&&(w[C++]=v[S++]);e.Eb=w}e.Db|=t}function e0n(e,t,s){var a,l,f,v,w,S;if(l=s,f=l.Xj(),w1(e.e,f)){if(f.ci()){for(a=h(e.g,118),v=0;v0&&(f=h(st(this.b,0),167),l+=f.o,a+=f.p),l*=2,a*=2,t>1?l=ki(m.Math.ceil(l*t)):a=ki(m.Math.ceil(a/t)),this.a=new Gme(l,a)}function t0n(e,t){var s,a,l,f,v;for(s=Ir,v=new Q(e.a);v.aa?1:0}function Ght(e,t,s,a,l,f){var v,w,S,C,A,M,R,V,q,W,J,oe;for(A=a,t.j&&t.o?(V=h(qn(e.f,t.A),56),W=V.d.c+V.d.b,--A):W=t.a.c+t.a.b,M=l,s.q&&s.o?(V=h(qn(e.f,s.C),56),C=V.d.c,++M):C=s.a.c,J=C-W,S=m.Math.max(2,M-A),w=J/S,q=W+w,R=A;R=0;v+=l?1:-1){for(w=t[v],S=a==(He(),rn)?l?Fs(w,a):Ag(Fs(w,a)):l?Ag(Fs(w,a)):Fs(w,a),f&&(e.c[w.p]=S.gc()),M=S.Ic();M.Ob();)A=h(M.Pb(),11),e.d[A.p]=C++;Mi(s,S)}}function Xht(e,t,s){var a,l,f,v,w,S,C,A;for(f=Ae(Xe(e.b.Ic().Pb())),C=Ae(Xe(ain(t.b))),a=Ud(Ks(e.a),C-s),l=Ud(Ks(t.a),s-f),A=Rr(a,l),Ud(A,1/(C-f)),this.a=A,this.b=new Fe,w=!0,v=e.b.Ic(),v.Pb();v.Ob();)S=Ae(Xe(v.Pb())),w&&S-s>ate&&(this.b.Dc(s),w=!1),this.b.Dc(S);w&&this.b.Dc(s)}function Kht(e,t,s,a){var l,f,v,w,S;if(w=(Ho(),h(t,65).Jj()),w1(e.e,t)){if(t.ci()&&rF(e,t,a,ue(t,97)&&(h(t,17).Bb&Bo)!=0))throw ee(new Gt(vO))}else for(S=tc(e.e.Og(),t),l=h(e.g,118),v=0;v0){for(uC(e.c);Nye(e,h(Y(new Q(e.e.a)),119))>5,t&=31,a>=e.d)return e.e<0?(v0(),bne):(v0(),F6);if(f=e.d-a,l=ge(Pn,rr,24,f+1,15,1),rdn(l,f,e.a,a,t),e.e<0){for(s=0;s0&&e.a[s]<<32-t!=0){for(s=0;s=0?!1:(s=A2((Nc(),vo),l,t),s?(a=s.Uj(),(a>1||a==-1)&&im(bs(vo,s))!=3):!0)):!1}function s0n(e,t){var s,a,l,f,v,w;if(w=vA(e.a,t.b),!w)throw ee(new Gs("Invalid hitboxes for scanline overlap calculation."));for(v=!1,f=(a=new UC(new FC(new ET(e.a.a).a).b),new ST(a));LT(f.a.a);)if(l=(s=nR(f.a),h(s.ad(),63)),Oin(t.b,l))hqt(e.b.a,t.b,l),v=!0;else if(v)break}function a0n(e,t,s,a){var l,f,v,w,S;return w=Oa(h(le((!t.b&&(t.b=new Ht(Vn,t,4,7)),t.b),0),93)),S=Oa(h(le((!t.c&&(t.c=new Ht(Vn,t,5,8)),t.c),0),93)),Gi(w)==Gi(S)||r2(S,w)?null:(v=KR(t),v==s?a:(f=h(qn(e.a,v),10),f&&(l=f.e,l)?l:null))}function c0n(e,t){var s;switch(s=h(G(e,(Ye(),DV)),274),Mn(t,"Label side selection ("+s+")",1),s.g){case 0:ght(e,(zu(),zh));break;case 1:ght(e,(zu(),R0));break;case 2:Cpt(e,(zu(),zh));break;case 3:Cpt(e,(zu(),R0));break;case 4:u1t(e,(zu(),zh));break;case 5:u1t(e,(zu(),R0))}wn(t)}function rwe(e,t,s){var a,l,f,v,w,S;if(a=sqt(s,e.length),v=e[a],v[0].k==(nn(),Ai))for(f=CXe(s,v.length),S=t.j,l=0;l0&&(s[0]+=e.d,v-=s[0]),s[2]>0&&(s[2]+=e.d,v-=s[2]),f=m.Math.max(0,v),s[1]=m.Math.max(s[1],v),Hge(e,Ha,l.c+a.b+s[0]-(s[1]-v)/2,s),t==Ha&&(e.c.b=f,e.c.c=l.c+a.b+(f-v)/2)}function o1t(){this.c=ge(oo,ls,24,(He(),re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt])).length,15,1),this.b=ge(oo,ls,24,re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt]).length,15,1),this.a=ge(oo,ls,24,re(ne(Vo,1),ma,61,0,[Hs,Wt,rn,Sn,Xt]).length,15,1),Khe(this.c,pi),Khe(this.b,Pi),Khe(this.a,Pi)}function _a(e,t,s){var a,l,f,v;if(t<=s?(l=t,f=s):(l=s,f=t),a=0,e.b==null)e.b=ge(Pn,rr,24,2,15,1),e.b[0]=l,e.b[1]=f,e.c=!0;else{if(a=e.b.length,e.b[a-1]+1==l){e.b[a-1]=f;return}v=ge(Pn,rr,24,a+2,15,1),Sa(e.b,0,v,0,a),e.b=v,e.b[a-1]>=l&&(e.c=!1,e.a=!1),e.b[a++]=l,e.b[a]=f,e.c||x2(e)}}function s1t(e,t){var s,a,l,f,v;!Gi(e)||(v=h(G(t,(Ye(),ob)),174),Pe(Ot(e,yi))===Pe((lo(),L0))&&Ts(e,yi,Cd),a=new aC(Gi(e)),f=new JX(Gi(e)?new aC(Gi(e)):null,e),l=p0t(a,f,!1,!0),pf(v,(xu(),ew)),s=h(G(t,iE),8),s.a=m.Math.max(l.a,s.a),s.b=m.Math.max(l.b,s.b))}function g0n(e,t,s){var a,l,f,v,w,S,C;for(C=t.d,e.a=new Va(C.c.length),e.c=new Un,w=new Q(C);w.a=0?e.Wg(C,!1,!0):km(e,s,!1),57));e:for(f=M.Ic();f.Ob();){for(l=h(f.Pb(),55),A=0;A1;)yy(l,l.i-1);return a}function x0n(e,t){var s,a,l,f,v,w,S;for(Mn(t,"Comment post-processing",1),f=new Q(e.b);f.ae.d[v.p]&&(s+=Dge(e.b,f),Eg(e.a,Ue(f)));for(;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function l1t(e,t,s){var a,l,f,v;for(f=(!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i,l=new bn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));l.e!=l.i.gc();)a=h(yn(l),34),(!a.a&&(a.a=new $e(bi,a,10,11)),a.a).i==0||(f+=l1t(e,a,!1));if(s)for(v=Gi(t);v;)f+=(!v.a&&(v.a=new $e(bi,v,10,11)),v.a).i,v=Gi(v);return f}function yy(e,t){var s,a,l,f;return e._i()?(a=null,l=e.aj(),e.dj()&&(a=e.fj(e.ki(t),null)),s=e.Ui(4,f=J3(e,t),null,t,l),e.Yi()&&f!=null&&(a=e.$i(f,a)),a?(a.zi(s),a.Ai()):e.Vi(s),f):(f=J3(e,t),e.Yi()&&f!=null&&(a=e.$i(f,null),a&&a.Ai()),f)}function E0n(e){var t,s,a,l,f,v,w,S,C,A;for(f=e.a,t=new Ro,C=0,a=new Q(e.d);a.aS.d&&(A=S.d+S.a+f));s.c.d=A,t.a.xc(s,t),C=m.Math.max(C,s.c.d+s.c.a)}return C}function Jo(){Jo=H,yV=new jv("COMMENTS",0),yl=new jv("EXTERNAL_PORTS",1),$I=new jv("HYPEREDGES",2),wV=new jv("HYPERNODES",3),eE=new jv("NON_FREE_PORTS",4),X2=new jv("NORTH_SOUTH_PORTS",5),LI=new jv(vbt,6),Z6=new jv("CENTER_LABELS",7),J6=new jv("END_LABELS",8),xV=new jv("PARTITIONS",9)}function wy(e){var t,s,a,l,f;for(l=new Fe,t=new bA((!e.a&&(e.a=new $e(bi,e,10,11)),e.a)),a=new mn(vn(hp(e).a.Ic(),new j));Qn(a);)s=h($n(a),80),ue(le((!s.b&&(s.b=new Ht(Vn,s,4,7)),s.b),0),199)||(f=Oa(h(le((!s.c&&(s.c=new Ht(Vn,s,5,8)),s.c),0),93)),t.a._b(f)||(l.c[l.c.length]=f));return l}function k0n(e,t,s,a,l){return a<0?(a=w2(e,l,re(ne(Qe,1),Oe,2,6,[MJ,DJ,NJ,jJ,s4,RJ,$J,LJ,FJ,BJ,VJ,zJ]),t),a<0&&(a=w2(e,l,re(ne(Qe,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),a<0?!1:(s.k=a,!0)):a>0?(s.k=a-1,!0):!1}function C0n(e,t,s,a,l){return a<0?(a=w2(e,l,re(ne(Qe,1),Oe,2,6,[MJ,DJ,NJ,jJ,s4,RJ,$J,LJ,FJ,BJ,VJ,zJ]),t),a<0&&(a=w2(e,l,re(ne(Qe,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),a<0?!1:(s.k=a,!0)):a>0?(s.k=a-1,!0):!1}function I0n(e,t,s,a,l,f){var v,w,S,C;if(w=32,a<0){if(t[0]>=e.length||(w=po(e,t[0]),w!=43&&w!=45)||(++t[0],a=VL(e,t),a<0))return!1;w==45&&(a=-a)}return w==32&&t[0]-s==2&&l.b==2&&(S=new yj,C=S.q.getFullYear()-w0+w0-80,v=C%100,f.a=a==v,a+=(C/100|0)*100+(a=C&&(S=a);S&&(A=m.Math.max(A,S.a.o.a)),A>R&&(M=C,R=A)}return M}function O0n(e,t){var s,a,l;if(t==null){for(a=(!e.a&&(e.a=new $e(M1,e,9,5)),new bn(e.a));a.e!=a.i.gc();)if(s=h(yn(a),666),l=s.c,(l==null?s.zb:l)==null)return s}else for(a=(!e.a&&(e.a=new $e(M1,e,9,5)),new bn(e.a));a.e!=a.i.gc();)if(s=h(yn(a),666),kt(t,(l=s.c,l==null?s.zb:l)))return s;return null}function v0(){v0=H;var e;for(AB=new np(1,1),mne=new np(1,10),F6=new np(0,0),bne=new np(-1,1),U4e=re(ne(V2,1),Oe,90,0,[F6,AB,new np(1,2),new np(1,3),new np(1,4),new np(1,5),new np(1,6),new np(1,7),new np(1,8),new np(1,9),mne]),PB=ge(V2,Oe,90,32,0,1),e=0;eBbt?co(S,e.b):a<=Bbt&&a>Vbt?co(S,e.d):a<=Vbt&&a>zbt?co(S,e.c):a<=zbt&&co(S,e.a),f=h1t(e,S,f);return l}function _0n(e,t,s,a,l,f){var v,w,S,C;for(w=!hC(Kr(e.Mc(),new tC(new Rje))).sd((hg(),V6)),v=e,f==(cs(),P1)&&(v=ue(v,151)?z3(h(v,151)):ue(v,131)?h(v,131).a:ue(v,53)?new Fb(v):new Nv(v)),C=v.Ic();C.Ob();)S=h(C.Pb(),69),S.n.a=t.a,w?S.n.b=t.b+(a.b-S.o.b)/2:l?S.n.b=t.b:S.n.b=t.b+a.b-S.o.b,t.a+=S.o.a+s}function p1t(e,t,s,a){var l,f,v,w,S,C;for(l=(a.c+a.a)/2,Dl(t.j),dr(t.j,l),Dl(s.e),dr(s.e,l),C=new jXe,w=new Q(e.f);w.a1,w&&(a=new ot(l,s.b),dr(t.a,a)),g8(t.a,re(ne(Ui,1),Oe,8,0,[R,M]))}function v1t(e){Gb(e,new Bg(Ub(Bb(zb(Vb(new ag,nB),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new uBe))),it(e,nB,Gg,L8e),it(e,nB,Py,15),it(e,nB,TF,Ue(0)),it(e,nB,d4,T6)}function swe(){swe=H;var e,t,s,a,l,f;for(P9=ge(Fc,L2,24,255,15,1),Wz=ge(wl,Qd,24,16,15,1),t=0;t<255;t++)P9[t]=-1;for(s=57;s>=48;s--)P9[s]=s-48<<24>>24;for(a=70;a>=65;a--)P9[a]=a-65+10<<24>>24;for(l=102;l>=97;l--)P9[l]=l-97+10<<24>>24;for(f=0;f<10;f++)Wz[f]=48+f&Ii;for(e=10;e<=15;e++)Wz[e]=65+e-10&Ii}function awe(e){var t;if(e.c!=10)throw ee(new Ln(Xn((jn(),sB))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ee(new Ln(Xn((jn(),ml))))}return t}function QL(e,t,s){var a,l,f,v,w,S,C,A;return w=t.i-e.g/2,S=s.i-e.g/2,C=t.j-e.g/2,A=s.j-e.g/2,f=t.g+e.g/2,v=s.g+e.g/2,a=t.f+e.g/2,l=s.f+e.g/2,w>19!=0)return"-"+x1t(H5(e));for(s=e,a="";!(s.l==0&&s.m==0&&s.h==0);){if(l=AY(vF),s=Lwe(s,l,!0),t=""+eKe(I0),!(s.l==0&&s.m==0&&s.h==0))for(f=9-t.length;f>0;f--)t="0"+t;a=t+a}return a}function N0n(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(t[e]!==void 0)return!1;var s=Object.getOwnPropertyNames(t);return!(s.length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function j0n(e){var t,s,a,l,f,v,w;for(t=!1,s=0,l=new Q(e.d.b);l.a=e.a||!Wve(t,s))return-1;if(S5(h(a.Kb(t),19)))return 1;for(l=0,v=h(a.Kb(t),19).Ic();v.Ob();)if(f=h(v.Pb(),18),S=f.c.i==t?f.d.i:f.c.i,w=cwe(e,S,s,a),w==-1||(l=m.Math.max(l,w),l>e.c-1))return-1;return l+1}function S1t(e,t){var s,a,l,f,v,w;if(Pe(t)===Pe(e))return!0;if(!ue(t,14)||(a=h(t,14),w=e.gc(),a.gc()!=w))return!1;if(v=a.Ic(),e.ii()){for(s=0;s0){if(e.lj(),t!=null){for(f=0;f>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw ee(new Bd("Invalid hexadecimal"))}}function $0n(e,t,s){var a,l,f,v;Mn(s,"Orthogonally routing hierarchical port edges",1),e.a=0,a=wmn(t),Ivn(t,a),ivn(e,t,a),Iyn(t),l=h(G(t,(Ye(),yi)),100),f=t.b,y0t((qt(0,f.c.length),h(f.c[0],29)),l,t),y0t(h(st(f,f.c.length-1),29),l,t),v=t.b,Ppt((qt(0,v.c.length),h(v.c[0],29))),Ppt(h(st(v,v.c.length-1),29)),wn(s)}function L0n(e,t,s){var a,l,f,v;for(Mn(s,"Processor order nodes",2),e.a=Ae(Xe(G(t,(by(),xke)))),l=new ci,v=ar(t.b,0);v.b!=v.d.c;)f=h(sr(v),83),_t(It(G(f,(la(),Zy))))&&wi(l,f,l.c.b,l.c);a=(pn(l.b!=0),h(l.a.a.c,83)),Bpt(e,a),!s.b&&JY(s,1),hwe(e,a,0-Ae(Xe(G(a,(la(),rz))))/2,0),!s.b&&JY(s,1),wn(s)}function ZL(){ZL=H,SSe=new Uw("SPIRAL",0),vSe=new Uw("LINE_BY_LINE",1),ySe=new Uw("MANHATTAN",2),mSe=new Uw("JITTER",3),Ene=new Uw("QUADRANTS_LINE_BY_LINE",4),xSe=new Uw("QUADRANTS_MANHATTAN",5),wSe=new Uw("QUADRANTS_JITTER",6),bSe=new Uw("COMBINE_LINE_BY_LINE_MANHATTAN",7),gSe=new Uw("COMBINE_JITTER_MANHATTAN",8)}function k1t(e,t,s,a,l,f){if(this.b=s,this.d=l,e>=t.length)throw ee(new ds("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new lA(a),rQ(this.e,this.c,(He(),Xt)),this.i=new lA(a),rQ(this.i,this.c,rn),this.f=new Oet(this.c),this.a=!f&&l.i&&!l.s&&this.c[0].k==(nn(),Ai),this.a&&fdn(this,e,t.length)}function C1t(e,t,s,a){var l,f,v,w,S,C;for(S=mZ(e,s),C=mZ(t,s),l=!1;!!S&&!!C&&(a||Hcn(S,C,s));)v=mZ(S,s),w=mZ(C,s),BA(t),BA(e),f=S.c,yJ(S,!1),yJ(C,!1),s?(dy(t,C.p,f),t.p=C.p,dy(e,S.p+1,f),e.p=S.p):(dy(e,S.p,f),e.p=S.p,dy(t,C.p+1,f),t.p=C.p),gs(S,null),gs(C,null),S=v,C=w,l=!0;return l}function F0n(e,t,s,a){var l,f,v,w,S;for(l=!1,f=!1,w=new Q(a.j);w.a0&&t=e.o)throw ee(new uhe);w=t>>5,v=t&31,f=c1(1,On(c1(v,1))),l?e.n[s][w]=ad(e.n[s][w],f):e.n[s][w]=$i(e.n[s][w],Ipe(f)),f=c1(f,1),a?e.n[s][w]=ad(e.n[s][w],f):e.n[s][w]=$i(e.n[s][w],Ipe(f))}catch(S){throw S=ni(S),ue(S,318)?ee(new ds(bee+e.o+"*"+e.p+mee+t+Fo+s+vee)):ee(S)}}function A1t(e,t){var s,a,l,f;switch(l=e.b,t){case 1:{e.b|=1,e.b|=4,e.b|=8;break}case 2:{e.b|=2,e.b|=4,e.b|=8;break}case 4:{e.b|=1,e.b|=2,e.b|=4,e.b|=8;break}case 3:{e.b|=16,e.b|=8;break}case 0:{e.b|=32,e.b|=16,e.b|=8,e.b|=1,e.b|=2,e.b|=4;break}}if(e.b!=l&&!!e.c)for(a=new bn(e.c);a.e!=a.i.gc();)f=h(yn(a),467),s=eu(f),my(s,t)}function P1t(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q;for(l=!1,v=t,w=0,S=v.length;w=0)return!1;if(t.p=s.b,Re(s.e,t),l==(nn(),Ki)||l==Na){for(v=new Q(t.j);v.a1||v==-1)&&(f|=16),(l.Bb&fa)!=0&&(f|=64)),(s.Bb&Bo)!=0&&(f|=jy),f|=mf):ue(t,450)?f|=512:(a=t.wj(),!!a&&(a.i&1)!=0&&(f|=256)),(e.Bb&512)!=0&&(f|=128),f}function z8(e,t){var s,a,l,f,v;for(e=e==null?vc:(Ut(e),e),l=0;le.d[w.p]&&(s+=Dge(e.b,f),Eg(e.a,Ue(f)))):++v;for(s+=e.b.d*v;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function Z0n(e,t){var s;return e.f==yoe?(s=im(bs((Nc(),vo),t)),e.e?s==4&&t!=(n4(),W4)&&t!=(n4(),q4)&&t!=(n4(),woe)&&t!=(n4(),xoe):s==2):!!e.d&&(e.d.Fc(t)||e.d.Fc(L3(bs((Nc(),vo),t)))||e.d.Fc(A2((Nc(),vo),e.b,t)))?!0:e.f&&Qye((Nc(),e.f),wA(bs(vo,t)))?(s=im(bs(vo,t)),e.e?s==4:s==2):!1}function hwe(e,t,s,a){var l,f,v;t&&(f=Ae(Xe(G(t,(la(),xp))))+a,v=s+Ae(Xe(G(t,rz)))/2,_e(t,yie,Ue(On(bc(m.Math.round(f))))),_e(t,gke,Ue(On(bc(m.Math.round(v))))),t.d.b==0||hwe(e,h(Xj((l=ar(new qp(t).a.d,0),new p3(l))),83),s+Ae(Xe(G(t,rz)))+e.a,a+Ae(Xe(G(t,lE)))),G(t,vie)!=null&&hwe(e,h(G(t,vie),83),s,a))}function J0n(e,t,s,a){var l,f,v,w,S,C,A,M;return v=h(Ot(s,(Or(),L4)),8),S=v.a,A=v.b+e,l=m.Math.atan2(A,S),l<0&&(l+=j2),l+=t,l>j2&&(l-=j2),w=h(Ot(a,L4),8),C=w.a,M=w.b+e,f=m.Math.atan2(M,C),f<0&&(f+=j2),f+=t,f>j2&&(f-=j2),id(),hf(1e-10),m.Math.abs(l-f)<=1e-10||l==f||isNaN(l)&&isNaN(f)?0:lf?1:Xb(isNaN(l),isNaN(f))}function YZ(e){var t,s,a,l,f,v,w;for(w=new Un,a=new Q(e.a.b);a.a0&&(a=(!e.n&&(e.n=new $e(Ds,e,1,7)),h(le(e.n,0),137)).a,!a||Kn(Kn((t.a+=' "',t),a),'"'))),Kn(qb(Kn(qb(Kn(qb(Kn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function N1t(e){var t,s,a;return(e.Db&64)!=0?IZ(e):(t=new ju(L3e),s=e.k,s?Kn(Kn((t.a+=' "',t),s),'"'):(!e.n&&(e.n=new $e(Ds,e,1,7)),e.n.i>0&&(a=(!e.n&&(e.n=new $e(Ds,e,1,7)),h(le(e.n,0),137)).a,!a||Kn(Kn((t.a+=' "',t),a),'"'))),Kn(qb(Kn(qb(Kn(qb(Kn(qb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function j1t(e){if((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b).i==0)throw ee(new PT("Edges must have a source."));if((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c).i==0)throw ee(new PT("Edges must have a target."));if(!e.b&&(e.b=new Ht(Vn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c.i<=1)))throw ee(new PT("Hyperedges are not supported."))}function ZZ(e,t){var s,a,l,f,v,w,S;if(t==null||t.length==0)return null;if(l=h(Ta(e.a,t),149),!l){for(a=(w=new o1(e.b).a.tc().Ic(),new _v(w));a.a.Ob();)if(s=(f=h(a.a.Pb(),43),h(f.bd(),149)),v=s.c,S=t.length,kt(v.substr(v.length-S,S),t)&&(t.length==v.length||po(v,v.length-t.length-1)==46)){if(l)return null;l=s}l&&ps(e.a,t,l)}return l}function rgn(e,t){var s,a,l,f;return s=new HW,a=h(Fu(fc(new Rt(null,new Lt(e.f,16)),s),ey(new Gr,new Ze,new cr,new Ur,re(ne(uu,1),je,132,0,[(gd(),Ry),Wu]))),21),l=a.gc(),a=h(Fu(fc(new Rt(null,new Lt(t.f,16)),s),ey(new Gr,new Ze,new cr,new Ur,re(ne(uu,1),je,132,0,[Ry,Wu]))),21),f=a.gc(),ll.p?(Li(f,Sn),f.d&&(w=f.o.b,t=f.a.b,f.a.b=w-t)):f.j==Sn&&l.p>e.p&&(Li(f,Wt),f.d&&(w=f.o.b,t=f.a.b,f.a.b=-(w-t)));break}return l}function ogn(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q;if(f=s,sv&&(mP((qt(v,e.c.length),h(e.c[v],180)),a),(qt(v,e.c.length),h(e.c[v],180)).a.c.length==0&&tp(e,v)))),M}function V1t(e){Gb(e,new Bg(Ub(Bb(zb(Vb(new ag,pI),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new cBe))),it(e,pI,Gg,D8e),it(e,pI,KF,ft(p9)),it(e,pI,M3e,ft(P8e)),it(e,pI,WF,ft(O8e)),it(e,pI,XF,ft(M8e)),it(e,pI,D3e,ft(_8e))}function JZ(e,t,s){var a,l,f,v,w,S;if(t)if(s<=-1){if(a=Dt(t.Og(),-1-s),ue(a,97))return h(a,17);for(v=h(t.Xg(a),152),w=0,S=v.gc();w1,w&&(a=new ot(l,s.b),dr(t.a,a)),g8(t.a,re(ne(Ui,1),Oe,8,0,[R,M]))}function hgn(e){var t,s,a,l,f;for(a=e.length,t=new fC,f=0;f0){for(l=S.length;l>0&&S[l-1]=="";)--l;l=40,v&&gbn(e),pmn(e),n0n(e),s=uut(e),a=0;!!s&&a0&&dr(e.e,f)):(e.c[v]-=C+1,e.c[v]<=0&&e.a[v]>0&&dr(e.d,f))))}function _gn(e,t,s){var a,l,f;if(!t.f)throw ee(new Gt("Given leave edge is no tree edge."));if(s.f)throw ee(new Gt("Given enter edge is a tree edge already."));for(t.f=!1,U1e(e.p,t),s.f=!0,ro(e.p,s),a=s.e.e-s.d.e-s.a,DZ(e,s.e,t)||(a=-a),f=new Q(e.e.a);f.a=0&&S0&&(Bn(0,e.length),e.charCodeAt(0)==45||(Bn(0,e.length),e.charCodeAt(0)==43))?1:0,a=v;as)throw ee(new Bd(Om+e+'"'));return w}function X1t(e,t,s,a){var l,f,v,w,S,C,A,M,R,V;if(Znn(e,t,s),f=t[s],V=a?(He(),Xt):(He(),rn),WWt(t.length,s,a)){for(l=t[a?s-1:s+1],Wge(e,l,a?(as(),rc):(as(),$c)),S=f,A=0,R=S.length;As?t:s;C<=M;++C)C==s?w=a++:(f=l[C],A=q.ml(f.Xj()),C==t&&(S=C==M&&!A?a-1:a),A&&++a);return R=h(dP(e,t,s),71),w!=S&&WS(e,new NA(e.e,7,v,Ue(w),V.bd(),S)),R}}else return h(RZ(e,t,s),71);return h(dP(e,t,s),71)}function jgn(e){var t,s,a,l,f,v,w,S;for(S=new Un,t=new UG,v=e.Ic();v.Ob();)l=h(v.Pb(),10),w=Qb(jT(new dg,l),t),ec(S.f,l,w);for(f=e.Ic();f.Ob();)for(l=h(f.Pb(),10),a=new mn(vn(Di(l).a.Ic(),new j));Qn(a);)s=h($n(a),18),!Zo(s)&&bf(cf(af(sf(uf(new Ol,m.Math.max(1,h(G(s,(Ye(),PEe)),20).a)),1),h(qn(S,s.c.i),119)),h(qn(S,s.d.i),119)));return t}function Y1t(){Y1t=H,pSt=Mr(new Xi,(us(),qa),(ys(),k5e)),dke=Mr(new Xi,Rc,YB),bSt=Jc(Mr(new Xi,Rc,tV),Us,eV),hSt=Jc(Mr(Mr(new Xi,Rc,y5e),qa,w5e),Us,x5e),mSt=ly(ly(Ij(Jc(Mr(new Xi,uh,oV),Us,iV),qa),rV),sV),gSt=Jc(new Xi,Us,C5e),fSt=Jc(Mr(Mr(Mr(new Xi,P0,QB),qa,JB),qa,U6),Us,ZB),dSt=Jc(Mr(Mr(new Xi,qa,U6),qa,KB),Us,XB)}function Rgn(e,t,s,a,l,f){var v,w,S,C,A,M,R;for(C=mct(t)-mct(e),v=Uft(t,C),S=Za(0,0,0);C>=0&&(w=Gcn(e,v),!(w&&(C<22?S.l|=1<>>1,v.m=A>>>1|(M&1)<<21,v.l=R>>>1|(A&1)<<21,--C;return s&&lQ(S),f&&(a?(I0=H5(e),l&&(I0=sct(I0,(A5(),k4e)))):I0=Za(e.l,e.m,e.h)),S}function $gn(e,t){var s,a,l,f,v,w,S;for(Mn(t,"Port order processing",1),S=h(G(e,(Ye(),AEe)),415),a=new Q(e.b);a.a1)&&t==1&&h(e.a[e.b],10).k==(nn(),ku)?i4(h(e.a[e.b],10),(zu(),zh)):a&&(!s||(e.c-e.b&e.a.length-1)>1)&&t==1&&h(e.a[e.c-1&e.a.length-1],10).k==(nn(),ku)?i4(h(e.a[e.c-1&e.a.length-1],10),(zu(),R0)):(e.c-e.b&e.a.length-1)==2?(i4(h(x8(e),10),(zu(),zh)),i4(h(x8(e),10),R0)):L1n(e,l),Pge(e)}function zgn(e,t,s){var a,l,f,v,w;for(f=0,l=new bn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));l.e!=l.i.gc();)a=h(yn(l),34),v="",(!a.n&&(a.n=new $e(Ds,a,1,7)),a.n).i==0||(v=h(le((!a.n&&(a.n=new $e(Ds,a,1,7)),a.n),0),137).a),w=new pQ(f++,t,v),Is(w,a),_e(w,(la(),r9),a),w.e.b=a.j+a.f/2,w.f.a=m.Math.max(a.g,1),w.e.a=a.i+a.g/2,w.f.b=m.Math.max(a.f,1),dr(t.b,w),ec(s.f,a,w)}function Ugn(e,t,s,a){var l,f,v,w,S;if(S=On(Eo($h,Ah(On(Eo(t==null?0:ri(t),Lh)),15))),l=On(Eo($h,Ah(On(Eo(s==null?0:ri(s),Lh)),15))),w=v8(e,t,S),v=m8(e,s,l),!!w&&l==w.a&&Th(s,w.g))return s;if(!!v&&!a)throw ee(new Gt("key already present: "+s));return w&&S2(e,w),v&&S2(e,v),f=new DR(s,l,t,S),OP(e,f,v),v&&(v.e=null,v.c=null),w&&(w.e=null,w.c=null),nft(e),w?w.g:null}function xwe(e,t,s){var a,l,f,v;if(t[0]>=e.length)return s.o=0,!0;switch(po(e,t[0])){case 43:l=1;break;case 45:l=-1;break;default:return s.o=0,!0}if(++t[0],f=t[0],v=VL(e,t),v==0&&t[0]==f)return!1;if(t[0]=0&&w!=s&&(f=new Wi(e,1,w,v,null),a?a.zi(f):a=f),s>=0&&(f=new Wi(e,1,s,w==s?v:null,t),a?a.zi(f):a=f)),a}function Z1t(e){var t,s,a;if(e.b==null){if(a=new X1,e.i!=null&&(is(a,e.i),a.a+=":"),(e.f&256)!=0){for((e.f&256)!=0&&e.a!=null&&(EZt(e.i)||(a.a+="//"),is(a,e.a)),e.d!=null&&(a.a+="/",is(a,e.d)),(e.f&16)!=0&&(a.a+="/"),t=0,s=e.j.length;t0){if(l=h(e.Ab.g,1906),t==null){for(f=0;f1)for(a=new Q(l);a.as.s&&ww&&(w=l,A.c=ge(hn,rt,1,0,5,1)),l==w&&Re(A,new fo(s.c.i,s)));Mt(),co(A,e.c),qv(e.b,S.p,A)}}function tbn(e,t){var s,a,l,f,v,w,S,C,A;for(v=new Q(t.b);v.aw&&(w=l,A.c=ge(hn,rt,1,0,5,1)),l==w&&Re(A,new fo(s.d.i,s)));Mt(),co(A,e.c),qv(e.f,S.p,A)}}function nbn(e,t,s,a,l){var f,v;if(f=Po($i(t[0],es),$i(a[0],es)),e[0]=On(f),f=t0(f,32),s>=l){for(v=1;vv)return He(),rn;break;case 4:case 3:if(A<0)return He(),Wt;if(A+s>f)return He(),Sn}return S=(C+w/2)/v,a=(A+s/2)/f,S+a<=1&&S-a<=0?(He(),Xt):S+a>=1&&S-a>=0?(He(),rn):a<.5?(He(),Wt):(He(),Sn)}function ipt(e){var t,s,a,l,f,v;return a=new xbe,Is(a,e),Pe(G(a,(Ye(),Gu)))===Pe((cs(),A1))&&_e(a,Gu,cL(a)),G(a,(p$(),c9))==null&&(v=h(Mft(e),160),_e(a,c9,Vj(v.Xe(c9)))),_e(a,(Be(),Dr),e),_e(a,ja,(t=h(_f(xre),9),new al(t,h(lf(t,t.length),9),0))),l=eyn((Gi(e)&&new aC(Gi(e)),new JX(Gi(e)?new aC(Gi(e)):null,e)),qf),f=h(G(a,EEe),115),s=a.d,_nt(s,f),_nt(s,l),a}function rbn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W;for(s=!1,A=Ae(Xe(G(t,(Ye(),Km)))),q=x0*A,l=new Q(t.b);l.aS+q&&(W=M.g+R.g,R.a=(R.g*R.a+M.g*M.a)/W,R.g=W,M.f=R,s=!0)),f=w,M=R;return s}function opt(e,t,s,a,l,f,v){var w,S,C,A,M,R;for(R=new T3,C=t.Ic();C.Ob();)for(w=h(C.Pb(),818),M=new Q(w.uf());M.a0?w.a?(C=w.b.pf().b,l>C&&(e.u||w.c.d.c.length==1?(v=(l-C)/2,w.d.d=v,w.d.a=v):(s=h(st(w.c.d,0),183).pf().b,a=(s-C)/2,w.d.d=m.Math.max(0,a),w.d.a=l-a-C))):w.d.a=e.s+l:QC(e.t)&&(f=Kve(w.b),f.d<0&&(w.d.d=-f.d),f.d+f.a>w.b.pf().b&&(w.d.a=f.d+f.a-w.b.pf().b))}function sbn(e,t){var s;switch(UA(e)){case 6:return to(t);case 7:return $v(t);case 8:return Rv(t);case 3:return Array.isArray(t)&&(s=UA(t),!(s>=14&&s<=16));case 11:return t!=null&&typeof t===IJ;case 12:return t!=null&&(typeof t===GP||typeof t==IJ);case 0:return YQ(t,e.__elementTypeId$);case 2:return NK(t)&&t.dm!==Z;case 1:return NK(t)&&t.dm!==Z||YQ(t,e.__elementTypeId$);default:return!0}}function spt(e,t){var s,a,l,f;return a=m.Math.min(m.Math.abs(e.c-(t.c+t.b)),m.Math.abs(e.c+e.b-t.c)),f=m.Math.min(m.Math.abs(e.d-(t.d+t.a)),m.Math.abs(e.d+e.a-t.d)),s=m.Math.abs(e.c+e.b/2-(t.c+t.b/2)),s>e.b/2+t.b/2||(l=m.Math.abs(e.d+e.a/2-(t.d+t.a/2)),l>e.a/2+t.a/2)?1:s==0&&l==0?0:s==0?f/l+1:l==0?a/s+1:m.Math.min(a/s,f/l)+1}function abn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V;if(R=h(qn(e.c,t),185),!R)throw ee(new Fd("Edge did not exist in input."));return C=A8(R),f=_T((!t.a&&(t.a=new $e(ai,t,6,6)),t.a)),w=!f,w&&(V=new cg,s=new VJe(e,C,V),Zqt((!t.a&&(t.a=new $e(ai,t,6,6)),t.a),s),Nf(R,V3e,V)),l=s0(t,(Or(),cx)),l&&(A=h(Ot(t,cx),74),v=!A||Ctt(A),S=!v,S&&(M=new cg,a=new BWe(M),So(A,a),Nf(R,"junctionPoints",M))),null}function apt(e,t){var s,a,l,f,v,w;return l=wbe(e),w=wbe(t),l==w?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(a=e.e-t.e,s=(e.d>0?e.d:m.Math.floor((e.a-1)*pgt)+1)-(t.d>0?t.d:m.Math.floor((t.a-1)*pgt)+1),s>a+1?l:s0&&(v=n2(v,Apt(a))),Uut(f,v))):l0&&e.d!=(h8(),Lne)&&(w+=v*(a.d.a+e.a[t.b][a.b]*(t.d.a-a.d.a)/s)),s>0&&e.d!=(h8(),Rne)&&(S+=v*(a.d.b+e.a[t.b][a.b]*(t.d.b-a.d.b)/s)));switch(e.d.g){case 1:return new ot(w/f,t.d.b);case 2:return new ot(t.d.a,S/f);default:return new ot(w/f,S/f)}}function cpt(e){var t,s,a,l,f,v;for(s=(!e.a&&(e.a=new _i(Xl,e,5)),e.a).i+2,v=new Va(s),Re(v,new ot(e.j,e.k)),mi(new Rt(null,(!e.a&&(e.a=new _i(Xl,e,5)),new Lt(e.a,16))),new yWe(v)),Re(v,new ot(e.b,e.c)),t=1;t0&&(nP(S,!1,(cs(),xf)),nP(S,!0,qf)),gc(t.g,new gYe(e,s)),Fr(e.g,t,s)}function ubn(e){var t;if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i!=1)throw ee(new Gt(gmt+(!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i));return t=new Tc,YA(h(le((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b),0),93))&&Cs(t,H0t(e,YA(h(le((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b),0),93)),!1)),YA(h(le((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c),0),93))&&Cs(t,H0t(e,YA(h(le((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c),0),93)),!0)),t}function fpt(e,t){var s,a,l,f,v;for(t.d?l=e.a.c==(Wd(),Ym)?_s(t.b):Di(t.b):l=e.a.c==(Wd(),wp)?_s(t.b):Di(t.b),f=!1,a=new mn(vn(l.a.Ic(),new j));Qn(a);)if(s=h($n(a),18),v=_t(e.a.f[e.a.g[t.b.p].p]),!(!v&&!Zo(s)&&s.c.i.c==s.d.i.c)&&!(_t(e.a.n[e.a.g[t.b.p].p])||_t(e.a.n[e.a.g[t.b.p].p]))&&(f=!0,e5(e.b,e.a.g[Ocn(s,t.b).p])))return t.c=!0,t.a=s,t;return t.c=f,t.a=null,t}function lbn(e,t,s,a,l){var f,v,w,S,C,A,M;for(Mt(),co(e,new hBe),w=new wo(e,0),M=new Fe,f=0;w.bf*2?(A=new _$(M),C=Oc(v)/yu(v),S=EJ(A,t,new m3,s,a,l,C),Rr(Vd(A.e),S),M.c=ge(hn,rt,1,0,5,1),f=0,M.c[M.c.length]=A,M.c[M.c.length]=v,f=Oc(A)*yu(A)+Oc(v)*yu(v)):(M.c[M.c.length]=v,f+=Oc(v)*yu(v));return M}function Ewe(e,t,s){var a,l,f,v,w,S,C;if(a=s.gc(),a==0)return!1;if(e._i())if(S=e.aj(),Vme(e,t,s),v=a==1?e.Ui(3,null,s.Ic().Pb(),t,S):e.Ui(5,null,s,t,S),e.Yi()){for(w=a<100?null:new Gp(a),f=t+a,l=t;l0){for(v=0;v>16==-15&&e.Cb.ih()&&FY(new $Y(e.Cb,9,13,s,e.c,up(nu(h(e.Cb,58)),e))):ue(e.Cb,87)&&e.Db>>16==-23&&e.Cb.ih()&&(t=e.c,ue(t,87)||(t=(At(),Zl)),ue(s,87)||(s=(At(),Zl)),FY(new $Y(e.Cb,9,10,s,t,up(wa(h(e.Cb,26)),e)))))),e.c}function fbn(e,t){var s,a,l,f,v,w,S,C,A,M;for(Mn(t,"Hypernodes processing",1),l=new Q(e.b);l.a0,w=uL(t,f),rpe(s?w.b:w.g,t),d2(w).c.length==1&&wi(a,w,a.c.b,a.c),l=new fo(f,t),Eg(e.o,l),hc(e.e.a,f))}function bpt(e,t){var s,a,l,f,v,w,S;return a=m.Math.abs(PR(e.b).a-PR(t.b).a),w=m.Math.abs(PR(e.b).b-PR(t.b).b),l=0,S=0,s=1,v=1,a>e.b.b/2+t.b.b/2&&(l=m.Math.min(m.Math.abs(e.b.c-(t.b.c+t.b.b)),m.Math.abs(e.b.c+e.b.b-t.b.c)),s=1-l/a),w>e.b.a/2+t.b.a/2&&(S=m.Math.min(m.Math.abs(e.b.d-(t.b.d+t.b.a)),m.Math.abs(e.b.d+e.b.a-t.b.d)),v=1-S/w),f=m.Math.min(s,v),(1-f)*m.Math.sqrt(a*a+w*w)}function bbn(e){var t,s,a,l;for(SJ(e,e.e,e.f,(sm(),N0),!0,e.c,e.i),SJ(e,e.e,e.f,N0,!1,e.c,e.i),SJ(e,e.e,e.f,ox,!0,e.c,e.i),SJ(e,e.e,e.f,ox,!1,e.c,e.i),mbn(e,e.c,e.e,e.f,e.i),a=new wo(e.i,0);a.b=65;s--)Od[s]=s-65<<24>>24;for(a=122;a>=97;a--)Od[a]=a-97+26<<24>>24;for(l=57;l>=48;l--)Od[l]=l-48+52<<24>>24;for(Od[43]=62,Od[47]=63,f=0;f<=25;f++)_p[f]=65+f&Ii;for(v=26,S=0;v<=51;++v,S++)_p[v]=97+S&Ii;for(e=52,w=0;e<=61;++e,w++)_p[e]=48+w&Ii;_p[62]=43,_p[63]=47}function mbn(e,t,s,a,l){var f,v,w,S,C,A,M;for(v=new Q(t);v.af)return He(),rn;break;case 4:case 3:if(S<0)return He(),Wt;if(S+e.f>l)return He(),Sn}return v=(w+e.g/2)/f,s=(S+e.f/2)/l,v+s<=1&&v-s<=0?(He(),Xt):v+s>=1&&v-s>=0?(He(),rn):s<.5?(He(),Wt):(He(),Sn)}function vbn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V;if(e.dc())return new Qo;for(C=0,M=0,l=e.Ic();l.Ob();)a=h(l.Pb(),38),f=a.f,C=m.Math.max(C,f.a),M+=f.a*f.b;for(C=m.Math.max(C,m.Math.sqrt(M)*Ae(Xe(G(h(e.Ic().Pb(),38),(Ye(),PV))))),R=0,V=0,S=0,s=t,w=e.Ic();w.Ob();)v=h(w.Pb(),38),A=v.f,R+A.a>C&&(R=0,V+=S+t,S=0),FP(v,R,V),s=m.Math.max(s,R+A.a),S=m.Math.max(S,A.b),R+=A.a+t;return new ot(s+t,V+S+t)}function Sy(e){Er();var t,s,a,l,f,v;if(e.e!=4&&e.e!=5)throw ee(new Gt("Token#complementRanges(): must be RANGE: "+e.e));for(f=e,x2(f),G8(f),a=f.b.length+2,f.b[0]==0&&(a-=2),s=f.b[f.b.length-1],s==j6&&(a-=2),l=new Lu(4),l.b=ge(Pn,rr,24,a,15,1),v=0,f.b[0]>0&&(l.b[v++]=0,l.b[v++]=f.b[0]-1),t=1;t0&&($G(S,S.d-l.d),l.c==(Mf(),D0)&&DUt(S,S.a-l.d),S.d<=0&&S.i>0&&wi(t,S,t.c.b,t.c)));for(f=new Q(e.f);f.a0&&(UN(w,w.i-l.d),l.c==(Mf(),D0)&&BUt(w,w.b-l.d),w.i<=0&&w.d>0&&wi(s,w,s.c.b,s.c)))}function wbn(e,t,s){var a,l,f,v,w,S,C,A;for(Mn(s,"Processor compute fanout",1),Xc(e.b),Xc(e.a),w=null,f=ar(t.b,0);!w&&f.b!=f.d.c;)C=h(sr(f),83),_t(It(G(C,(la(),Zy))))&&(w=C);for(S=new ci,wi(S,w,S.c.b,S.c),T0t(e,S),A=ar(t.b,0);A.b!=A.d.c;)C=h(sr(A),83),v=Fn(G(C,(la(),n9))),l=Ta(e.b,v)!=null?h(Ta(e.b,v),20).a:0,_e(C,tz,Ue(l)),a=1+(Ta(e.a,v)!=null?h(Ta(e.a,v),20).a:0),_e(C,jSt,Ue(a));wn(s)}function xbn(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q;for(R=vln(e,s),S=0;S0),a.a.Xb(a.c=--a.b),M>R+S&&wu(a);for(v=new Q(V);v.a0),a.a.Xb(a.c=--a.b)}}function Sbn(e){var t,s;if(t=Fn(Ot(e,(Or(),u9))),!$at(t,e)&&!s0(e,pE)&&((!e.a&&(e.a=new $e(bi,e,10,11)),e.a).i!=0||_t(It(Ot(e,d_)))))if(t==null||py(t).length==0){if(!$at(fn,e))throw s=Kn(Kn(new ju("Unable to load default layout algorithm "),fn)," for unconfigured node "),uF(e,s),ee(new Lw(s.a))}else throw s=Kn(Kn(new ju("Layout algorithm '"),t),"' not found for "),uF(e,s),ee(new Lw(s.a))}function Ebn(){Er();var e,t,s,a,l,f;if(Eoe)return Eoe;for(e=new Lu(4),ky(e,y0(tne,!0)),K8(e,y0("M",!0)),K8(e,y0("C",!0)),f=new Lu(4),a=0;a<11;a++)_a(f,a,a);return t=new Lu(4),ky(t,y0("M",!0)),_a(t,4448,4607),_a(t,65438,65439),l=new RC(2),Vg(l,e),Vg(l,_9),s=new RC(2),s.Vl(xR(f,y0("L",!0))),s.Vl(t),s=new Zv(3,s),s=new F0e(l,s),Eoe=s,Eoe}function oJ(e){var t,s,a,l,f,v,w,S,C,A,M,R,V;if(s=e.i,t=e.n,e.b==0)for(V=s.c+t.b,R=s.b-t.b-t.c,v=e.a,S=0,A=v.length;S0&&(M-=a[0]+e.c,a[0]+=e.c),a[2]>0&&(M-=a[2]+e.c),a[1]=m.Math.max(a[1],M),CR(e.a[1],s.c+t.b+a[0]-(a[1]-M)/2,a[1]);for(f=e.a,w=0,C=f.length;w1)for(a=ar(l,0);a.b!=a.d.c;)for(s=h(sr(a),229),f=0,S=new Q(s.e);S.a0&&(t[0]+=e.c,M-=t[0]),t[2]>0&&(M-=t[2]+e.c),t[1]=m.Math.max(t[1],M),kR(e.a[1],a.d+s.d+t[0]-(t[1]-M)/2,t[1]);else for(q=a.d+s.d,V=a.a-s.d-s.a,v=e.a,S=0,A=v.length;S=0&&f!=s))throw ee(new Gt(vO));for(l=0,S=0;S0||ym(l.b.d,e.b.d+e.b.a)==0&&a.b<0||ym(l.b.d+l.b.a,e.b.d)==0&&a.b>0){w=0;break}}else w=m.Math.min(w,Pdt(e,l,a));w=m.Math.min(w,xpt(e,f,w,a))}return w}function Spt(e,t){var s,a,l,f,v,w,S,C,A;for(s=0,l=new Q((qt(0,e.c.length),h(e.c[0],101)).g.b.j);l.aw?1:-1:ime(e.a,t.a,f),l==-1)M=-S,A=v==S?_Y(t.a,w,e.a,f):DY(t.a,w,e.a,f);else if(M=v,v==S){if(l==0)return v0(),F6;A=_Y(e.a,f,t.a,w)}else A=DY(e.a,f,t.a,w);return C=new Zw(M,A.length,A),s8(C),C}function Ey(e,t){var s,a,l,f,v,w;for(f=e.c,v=e.d,Ao(e,null),uo(e,null),t&&_t(It(G(v,(Be(),Are))))?Ao(e,Swe(v.i,(as(),rc),(He(),rn))):Ao(e,v),t&&_t(It(G(f,(Be(),Ore))))?uo(e,Swe(f.i,(as(),$c),(He(),Xt))):uo(e,f),a=new Q(e.b);a.aAe(od(v.g,v.d[0]).a)?(pn(S.b>0),S.a.Xb(S.c=--S.b),Bv(S,v),l=!0):!!w.e&&w.e.gc()>0&&(f=(!w.e&&(w.e=new Fe),w.e).Kc(t),C=(!w.e&&(w.e=new Fe),w.e).Kc(s),(f||C)&&((!w.e&&(w.e=new Fe),w.e).Dc(v),++v.c));l||(a.c[a.c.length]=v)}function Owe(e){var t,s,a,l,f,v;for(this.e=new Fe,this.a=new Fe,s=e.b-1;s<3;s++)c5(e,0,h(Ff(e,0),8));if(e.b<4)throw ee(new Gt("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,x1n(this,e.b+this.b-1),v=new Fe,f=new Q(this.e),t=0;t>>0,"0"+t.toString(16)),a="\\x"+Ru(s,s.length-2,s.length)):e>=Bo?(s=(t=e>>>0,"0"+t.toString(16)),a="\\v"+Ru(s,s.length-6,s.length)):a=""+String.fromCharCode(e&Ii)}return a}function kpt(e){var t,s,a;if(Gw(h(G(e,(Ye(),yi)),100)))for(s=new Q(e.j);s.at&&w>0&&(f=0,v+=w,l=m.Math.max(l,M),a+=w,w=0,M=0,s&&(++A,Re(e.n,new XR(e.s,v,e.i)))),M+=S.g+e.i,w=m.Math.max(w,S.f+e.i),s&&dme(h(st(e.n,A),209),S),f+=S.g+e.i;return l=m.Math.max(l,M),a+=w,s&&(e.r=l,e.d=a,Zme(e.j)),new cl(e.s,e.t,l,a)}function H8(e,t){var s,a,l,f,v,w,S,C;t%=24,e.q.getHours()!=t&&(a=new m.Date(e.q.getTime()),a.setDate(a.getDate()+1),w=e.q.getTimezoneOffset()-a.getTimezoneOffset(),w>0&&(S=w/60|0,C=w%60,l=e.q.getDate(),s=e.q.getHours(),s+S>=24&&++l,f=new m.Date(e.q.getFullYear(),e.q.getMonth(),l,t+S,e.q.getMinutes()+C,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(f.getTime()))),v=e.q.getTime(),e.q.setTime(v+36e5),e.q.getHours()!=t&&e.q.setTime(v)}function Obn(e,t){var s,a,l,f,v;if(Mn(t,"Path-Like Graph Wrapping",1),e.b.c.length==0){wn(t);return}if(l=new Rye(e),v=(l.i==null&&(l.i=Nbe(l,new tde)),Ae(l.i)*l.f),s=v/(l.i==null&&(l.i=Nbe(l,new tde)),Ae(l.i)),l.b>s){wn(t);return}switch(h(G(e,(Ye(),Xre)),335).g){case 2:f=new rde;break;case 0:f=new ede;break;default:f=new ide}if(a=f.Sf(e,l),!f.Tf())switch(h(G(e,zV),336).g){case 2:a=Odt(l,a);break;case 1:a=Cft(l,a)}Imn(e,l,a),wn(t)}function Tpt(e,t,s,a,l){var f,v,w;if(s.f+l>=t.o&&s.f+l<=t.f||t.a*.5<=s.f+l&&t.a*1.5>=s.f+l){if(s.g+l<=a-(v=h(st(t.n,t.n.c.length-1),209),v.e+v.d)&&(f=h(st(t.n,t.n.c.length-1),209),f.f-e.e+s.f+l<=e.b||e.a.c.length==1))return Mme(t,s),!0;if(s.g<=a-t.s&&(t.d+s.f+l<=e.b||e.a.c.length==1))return Re(t.b,s),w=h(st(t.n,t.n.c.length-1),209),Re(t.n,new XR(t.s,w.f+w.a,t.i)),dme(h(st(t.n,t.n.c.length-1),209),s),I1t(t,s),!0}return!1}function Apt(e){u6();var t,s,a,l;if(t=ki(e),e1e6)throw ee(new rj("power of ten too big"));if(e<=Ir)return V3(NP(w4[1],t),t);for(a=NP(w4[1],Ir),l=a,s=bc(e-Ir),t=ki(e%Ir);ba(s,Ir)>0;)l=n2(l,a),s=p0(s,Ir);for(l=n2(l,NP(w4[1],t)),l=V3(l,Ir),s=bc(e-Ir);ba(s,Ir)>0;)l=V3(l,Ir),s=p0(s,Ir);return l=V3(l,t),l}function _bn(e){var t,s,a,l;l=e.o,Vv(),e.w.dc()||Pr(e.w,CSe)?t=l.b:(t=_P(e.f),e.w.Fc((xu(),S_))&&!e.A.Fc((su(),w9))&&(t=m.Math.max(t,_P(h(os(e.p,(He(),rn)),243))),t=m.Math.max(t,_P(h(os(e.p,Xt),243)))),s=Lat(e),s&&(t=m.Math.max(t,s.b)),e.w.Fc(E_)&&(e.q==(lo(),Hh)||e.q==Ra)&&(t=m.Math.max(t,pR(h(os(e.b,(He(),rn)),121))),t=m.Math.max(t,pR(h(os(e.b,Xt),121))))),l.b=t,a=e.f.i,a.d=0,a.a=t,sJ(e.f)}function Mbn(e,t){var s,a,l,f,v,w,S,C;for(v=new Fe,w=0,s=0,S=0;wl&&++C,Re(v,(qt(w+C,t.c.length),h(t.c[w+C],20))),S+=(qt(w+C,t.c.length),h(t.c[w+C],20)).a-a,++s;s1&&(S>Oc(w)*yu(w)/2||v.b==0)&&(M=new _$(R),A=Oc(w)/yu(w),C=EJ(M,t,new m3,s,a,l,A),Rr(Vd(M.e),C),w=M,V.c[V.c.length]=M,S=0,R.c=ge(hn,rt,1,0,5,1)));return Mi(V,R),V}function Nbn(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W;if(s.hh(t)&&(A=(V=t,V?h(a,48).sh(V):null),A))if(W=s.Yg(t,e.a),q=t.t,q>1||q==-1)if(M=h(W,67),R=h(A,67),M.dc())R.$b();else for(v=!!qo(t),f=0,w=e.a?M.Ic():M.Uh();w.Ob();)C=h(w.Pb(),55),l=h(lm(e,C),55),l?(v?(S=R.Vc(l),S==-1?R.Sh(f,l):f!=S&&R.ei(f,l)):R.Sh(f,l),++f):e.b&&!v&&(R.Sh(f,C),++f);else W==null?A.Wb(null):(l=lm(e,W),l==null?e.b&&!qo(t)&&A.Wb(W):A.Wb(l))}function jbn(e,t){var s,a,l,f,v,w,S,C;for(s=new mje,l=new mn(vn(_s(t).a.Ic(),new j));Qn(l);)if(a=h($n(l),18),!Zo(a)&&(w=a.c.i,Wve(w,GB))){if(C=cwe(e,w,GB,WB),C==-1)continue;s.b=m.Math.max(s.b,C),!s.a&&(s.a=new Fe),Re(s.a,w)}for(v=new mn(vn(Di(t).a.Ic(),new j));Qn(v);)if(f=h($n(v),18),!Zo(f)&&(S=f.d.i,Wve(S,WB))){if(C=cwe(e,S,WB,GB),C==-1)continue;s.d=m.Math.max(s.d,C),!s.c&&(s.c=new Fe),Re(s.c,S)}return s}function Rbn(e){var t,s,a,l,f,v,w;for(s=0,t=0,w=new ci,v=new Q(e.n);v.aC&&a>C)A=w,C=Ae(t.p[w.p])+Ae(t.d[w.p])+w.o.b+w.d.a;else{l=!1,s.n&&Uv(s,"bk node placement breaks on "+w+" which should have been after "+A);break}if(!l)break}return s.n&&Uv(s,t+" is feasible: "+l),l}function Vbn(e,t,s,a){var l,f,v,w,S,C,A;for(w=-1,A=new Q(e);A.a=J&&e.e[S.p]>q*e.b||he>=s*J)&&(R.c[R.c.length]=w,w=new Fe,Cs(v,f),f.a.$b(),C-=A,V=m.Math.max(V,C*e.b+W),C+=he,de=he,he=0,A=0,W=0);return new fo(V,R)}function qbn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V;for(s=(C=new o1(e.c.b).a.tc().Ic(),new _v(C));s.a.Ob();)t=(w=h(s.a.Pb(),43),h(w.bd(),149)),l=t.a,l==null&&(l=""),a=LGt(e.c,l),!a&&l.length==0&&(a=Oon(e)),!!a&&!ay(a.c,t,!1)&&dr(a.c,t);for(v=ar(e.a,0);v.b!=v.d.c;)f=h(sr(v),472),A=TY(e.c,f.a),V=TY(e.c,f.b),!!A&&!!V&&dr(A.c,new fo(V,f.c));for(Dl(e.a),R=ar(e.b,0);R.b!=R.d.c;)M=h(sr(R),472),t=$Gt(e.c,M.a),S=TY(e.c,M.b),!!t&&!!S&&Dqt(t,S,M.c);Dl(e.b)}function Wbn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V;f=new yT(e),v=new Zlt,l=(PA(v.g),PA(v.j),Xc(v.b),PA(v.d),PA(v.i),Xc(v.k),Xc(v.c),Xc(v.e),V=Rdt(v,f,null),Eht(v,f),V),t&&(C=new yT(t),w=tmn(C),iye(l,re(ne(PCe,1),rt,520,0,[w]))),R=!1,M=!1,s&&(C=new yT(s),oB in C.a&&(R=l1(C,oB).ge().a),Lmt in C.a&&(M=l1(C,Lmt).ge().a)),A=RXe(Xst(new GS,R),M),Jfn(new NFe,l,A),oB in f.a&&Nf(f,oB,null),(R||M)&&(S=new v3,Ept(A,S,R,M),Nf(f,oB,S)),a=new $We(v),Nin(new M1e(l),a)}function Gbn(e,t,s){var a,l,f,v,w,S,C,A,M;for(v=new rft,C=re(ne(Pn,1),rr,24,15,[0]),l=-1,f=0,a=0,S=0;S0){if(l<0&&A.a&&(l=S,f=C[0],a=0),l>=0){if(w=A.b,S==l&&(w-=a++,w==0))return 0;if(!P0t(t,C,A,w,v)){S=l-1,C[0]=f;continue}}else if(l=-1,!P0t(t,C,A,0,v))return 0}else{if(l=-1,po(A.c,0)==32){if(M=C[0],ist(t,C),C[0]>M)continue}else if(GZt(t,A.c,C[0])){C[0]+=A.c.length;continue}return 0}return Cyn(v,s)?C[0]:0}function W8(e){var t,s,a,l,f,v,w,S;if(!e.f){if(S=new lde,w=new lde,t=C9,v=t.a.xc(e,t),v==null){for(f=new bn(Es(e));f.e!=f.i.gc();)l=h(yn(f),26),di(S,W8(l));t.a.zc(e)!=null,t.a.gc()==0}for(a=(!e.s&&(e.s=new $e(xc,e,21,17)),new bn(e.s));a.e!=a.i.gc();)s=h(yn(a),170),ue(s,97)&&_n(w,h(s,17));sy(w),e.r=new net(e,(h(le(Ce((n0(),Bt).o),6),17),w.i),w.g),di(S,e.r),sy(S),e.f=new Ww((h(le(Ce(Bt.o),5),17),S.i),S.g),eu(e).b&=-3}return e.f}function Xbn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q;for(v=e.o,a=ge(Pn,rr,24,v,15,1),l=ge(Pn,rr,24,v,15,1),s=e.p,t=ge(Pn,rr,24,s,15,1),f=ge(Pn,rr,24,s,15,1),C=0;C=0&&!g2(e,A,M);)--M;l[A]=M}for(V=0;V=0&&!g2(e,w,q);)--w;f[q]=w}for(S=0;St[R]&&Ra[S]&&JL(e,S,R,!1,!0)}function _we(e){var t,s,a,l,f,v,w,S;s=_t(It(G(e,(Bf(),t2t)))),f=e.a.c.d,w=e.a.d.d,s?(v=Ud(no(new ot(w.a,w.b),f),.5),S=Ud(Ks(e.e),.5),t=no(Rr(new ot(f.a,f.b),v),S),dpe(e.d,t)):(l=Ae(Xe(G(e.a,o2t))),a=e.d,f.a>=w.a?f.b>=w.b?(a.a=w.a+(f.a-w.a)/2+l,a.b=w.b+(f.b-w.b)/2-l-e.e.b):(a.a=w.a+(f.a-w.a)/2+l,a.b=f.b+(w.b-f.b)/2+l):f.b>=w.b?(a.a=f.a+(w.a-f.a)/2+l,a.b=w.b+(f.b-w.b)/2+l):(a.a=f.a+(w.a-f.a)/2+l,a.b=f.b+(w.b-f.b)/2-l-e.e.b))}function Ma(e,t){var s,a,l,f,v,w,S;if(e==null)return null;if(f=e.length,f==0)return"";for(S=ge(wl,Qd,24,f,15,1),Kge(0,f,e.length),Kge(0,f,S.length),ltt(e,0,f,S,0),s=null,w=t,l=0,v=0;l0?Ru(s.a,0,f-1):""):e.substr(0,f-1):s?s.a:e}function iF(){iF=H,Q8e=re(ne(wl,1),Qd,24,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),iEt=new RegExp(`[ +\r\f]+`);try{S9=re(ne(l2n,1),rt,1984,0,[new kT((R1e(),pL("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",cA((tj(),tj(),TI))))),new kT(pL("yyyy-MM-dd'T'HH:mm:ss'.'SSS",cA(TI))),new kT(pL("yyyy-MM-dd'T'HH:mm:ss",cA(TI))),new kT(pL("yyyy-MM-dd'T'HH:mm",cA(TI))),new kT(pL("yyyy-MM-dd",cA(TI)))])}catch(e){if(e=ni(e),!ue(e,78))throw ee(e)}}function _pt(e){Gb(e,new Bg(Ub(Bb(zb(Vb(new ag,Wg),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new kN))),it(e,Wg,wee,ft(DSe)),it(e,Wg,xee,ft(One)),it(e,Wg,d4,ft(Bwt)),it(e,Wg,Gg,ft(MSe)),it(e,Wg,g2e,ft(Hwt)),it(e,Wg,b2e,ft(Uwt)),it(e,Wg,p2e,ft(qwt)),it(e,Wg,m2e,ft(zwt)),it(e,Wg,k2e,ft(Vwt)),it(e,Wg,C2e,ft(Pne)),it(e,Wg,I2e,ft(_Se)),it(e,Wg,T2e,ft(FB))}function Mwe(e,t,s,a){var l,f,v,w,S,C,A,M,R;if(f=new y1(e),ug(f,(nn(),Na)),_e(f,(Ye(),yi),(lo(),Ra)),l=0,t){for(v=new xa,_e(v,(Be(),Dr),t),_e(f,Dr,t.i),Li(v,(He(),Xt)),Rs(v,f),R=Gd(t.e),C=R,A=0,M=C.length;A0)if(s-=a.length-t,s>=0){for(l.a+="0.";s>nb.length;s-=nb.length)Cet(l,nb);tJe(l,nb,ki(s)),Kn(l,a.substr(t))}else s=t-s,Kn(l,Ru(a,t,ki(s))),l.a+=".",Kn(l,ZT(a,ki(s)));else{for(Kn(l,a.substr(t));s<-nb.length;s+=nb.length)Cet(l,nb);tJe(l,nb,ki(-s))}return l.a}function Dwe(e,t,s,a){var l,f,v,w,S,C,A,M,R;return S=no(new ot(s.a,s.b),e),C=S.a*t.b-S.b*t.a,A=t.a*a.b-t.b*a.a,M=(S.a*a.b-S.b*a.a)/A,R=C/A,A==0?C==0?(l=Rr(new ot(s.a,s.b),Ud(new ot(a.a,a.b),.5)),f=a0(e,l),v=a0(Rr(new ot(e.a,e.b),t),l),w=m.Math.sqrt(a.a*a.a+a.b*a.b)*.5,f=0&&M<=1&&R>=0&&R<=1?Rr(new ot(e.a,e.b),Ud(new ot(t.a,t.b),M)):null}function Ybn(e,t,s){var a,l,f,v,w;if(a=h(G(e,(Ye(),jre)),21),s.a>t.a&&(a.Fc((hy(),a_))?e.c.a+=(s.a-t.a)/2:a.Fc(c_)&&(e.c.a+=s.a-t.a)),s.b>t.b&&(a.Fc((hy(),l_))?e.c.b+=(s.b-t.b)/2:a.Fc(u_)&&(e.c.b+=s.b-t.b)),h(G(e,(Be(),ja)),21).Fc((Jo(),yl))&&(s.a>t.a||s.b>t.b))for(w=new Q(e.a);w.at.a&&(a.Fc((hy(),a_))?e.c.a+=(s.a-t.a)/2:a.Fc(c_)&&(e.c.a+=s.a-t.a)),s.b>t.b&&(a.Fc((hy(),l_))?e.c.b+=(s.b-t.b)/2:a.Fc(u_)&&(e.c.b+=s.b-t.b)),h(G(e,(Be(),ja)),21).Fc((Jo(),yl))&&(s.a>t.a||s.b>t.b))for(v=new Q(e.a);v.at){if(l=h(st(A.a,A.a.c.length-1),181),Tpt(A,l,S,t,s))continue;f+=A.b,M.c[M.c.length]=A,A=new W0e(f),JR(A,new hQ(0,A.e,A,s))}a=h(st(A.a,A.a.c.length-1),181),a.b.c.length==0||S.f+s>=a.o&&S.f+s<=a.f||a.a*.5<=S.f+s&&a.a*1.5>=S.f+s?Mme(a,S):(v=new hQ(a.s+a.r,A.e,A,s),JR(A,v),Mme(v,S))}return M.c[M.c.length]=A,M}function T2(e){var t,s,a,l,f,v,w,S;if(!e.a){if(e.o=null,S=new nGe(e),t=new NBe,s=C9,w=s.a.xc(e,s),w==null){for(v=new bn(Es(e));v.e!=v.i.gc();)f=h(yn(v),26),di(S,T2(f));s.a.zc(e)!=null,s.a.gc()==0}for(l=(!e.s&&(e.s=new $e(xc,e,21,17)),new bn(e.s));l.e!=l.i.gc();)a=h(yn(l),170),ue(a,321)&&_n(t,h(a,32));sy(t),e.k=new tet(e,(h(le(Ce((n0(),Bt).o),7),17),t.i),t.g),di(S,e.k),sy(S),e.a=new Ww((h(le(Ce(Bt.o),4),17),S.i),S.g),eu(e).b&=-2}return e.a}function lJ(e,t,s,a,l,f,v){var w,S,C,A,M,R,V,q,W;switch(q=0,W=0,S=l.e,w=l.d,A=s.f,V=s.g,t.g){case 0:q=a.i+a.g+v,e.c?W=Hln(q,f,a,v):W=a.j,R=m.Math.max(S,q+V),C=m.Math.max(w,W+A);break;case 1:W=a.j+a.f+v,e.c?q=Uln(W,f,a,v):q=a.i,R=m.Math.max(S,q+V),C=m.Math.max(w,W+A);break;case 2:q=S+v,W=0,R=S+v+V,C=m.Math.max(w,A);break;case 3:q=0,W=w+v,R=m.Math.max(S,V),C=w+v+A;break;default:throw ee(new Gt("IllegalPlacementOption."))}return M=new Pbe(e.a,R,C,t,q,W),M}function Nwe(e,t,s,a){var l,f,v,w,S,C,A;if(A=tc(e.e.Og(),t),l=0,f=h(e.g,118),S=null,Ho(),h(t,65).Jj()){for(w=0;we.o.a&&(A=(S-e.o.a)/2,w.b=m.Math.max(w.b,A),w.c=m.Math.max(w.c,A))}}function oF(e,t,s,a){var l,f,v,w,S,C;if(S=tc(e.e.Og(),t),f=h(e.g,118),w1(e.e,t)){for(l=0,w=0;wV||a+l>C)throw ee(new ehe);if((M.i&1)==0&&R!=S)if(A=Tg(e),f=Tg(s),Pe(e)===Pe(s)&&ta;)ui(f,w,A[--t]);else for(w=a+l;a0&&wye(e,t,s,a,l,!0)}function nmn(e,t,s,a,l,f){var v,w,S,C,A;return C=!1,w=Fht(s.q,t.e+t.b-s.q.e),A=l-(s.q.d+w),Af&&(mP((qt(f,e.c.length),h(e.c[f],180)),a),(qt(f,e.c.length),h(e.c[f],180)).a.c.length==0&&tp(e,f)),C=!0),C)}function fJ(){fJ=H,Pyt=re(ne(Pn,1),rr,24,15,[ko,1162261467,Q8,1220703125,362797056,1977326743,Q8,387420489,vF,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,Q8,1291467969,1544804416,1838265625,60466176]),Oyt=re(ne(Pn,1),rr,24,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function rmn(e){var t,s,a,l,f,v,w,S;for(l=new Q(e.b);l.a=e.b.length?(f[l++]=v.b[a++],f[l++]=v.b[a++]):a>=v.b.length?(f[l++]=e.b[s++],f[l++]=e.b[s++]):v.b[a]0&&(l=(!e.n&&(e.n=new $e(Ds,e,1,7)),h(le(e.n,0),137)).a,!l||Kn(Kn((t.a+=' "',t),l),'"'))),s=(!e.b&&(e.b=new Ht(Vn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c.i<=1))),s?t.a+=" [":t.a+=" ",Kn(t,G1e(new oX,new bn(e.b))),s&&(t.a+="]"),t.a+=Tee,s&&(t.a+="["),Kn(t,G1e(new oX,new bn(e.c))),s&&(t.a+="]"),t.a)}function dJ(e,t){var s,a,l,f,v,w,S;if(e.a){if(w=e.a.ne(),S=null,w!=null?t.a+=""+w:(v=e.a.yj(),v!=null&&(f=zd(v,mc(91)),f!=-1?(S=v.substr(f),t.a+=""+Ru(v==null?vc:(Ut(v),v),0,f)):t.a+=""+v)),!!e.d&&e.d.i!=0){for(l=!0,t.a+="<",a=new bn(e.d);a.e!=a.i.gc();)s=h(yn(a),86),l?l=!1:t.a+=Fo,dJ(s,t);t.a+=">"}S!=null&&(t.a+=""+S)}else e.e?(w=e.e.zb,w!=null&&(t.a+=""+w)):(t.a+="?",e.b?(t.a+=" super ",dJ(e.b,t)):e.f&&(t.a+=" extends ",dJ(e.f,t)))}function omn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn;for(Te=e.c,Le=t.c,s=Os(Te.a,e,0),a=Os(Le.a,t,0),he=h(cy(e,(as(),$c)).Ic().Pb(),11),ct=h(cy(e,rc).Ic().Pb(),11),me=h(cy(t,$c).Ic().Pb(),11),sn=h(cy(t,rc).Ic().Pb(),11),oe=Gd(he.e),Ke=Gd(ct.g),de=Gd(me.e),dt=Gd(sn.g),dy(e,a,Le),v=de,A=0,q=v.length;AA?new Sg((Mf(),Qy),s,t,C-A):C>0&&A>0&&(new Sg((Mf(),Qy),t,s,0),new Sg(Qy,s,t,0))),v)}function Dpt(e,t,s,a){var l,f,v,w,S,C,A;if(f=cL(a),w=_t(It(G(a,(Ye(),yEe)))),(w||_t(It(G(e,NV))))&&!Gw(h(G(e,yi),100)))l=K3(f),S=Swe(e,s,s==(as(),rc)?l:fP(l));else switch(S=new xa,Rs(S,e),t?(A=S.n,A.a=t.a-e.n.a,A.b=t.b-e.n.b,Kft(A,0,0,e.o.a,e.o.b),Li(S,rpt(S,f))):(l=K3(f),Li(S,s==(as(),rc)?l:fP(l))),v=h(G(a,(Be(),ja)),21),C=S.j,f.g){case 2:case 1:(C==(He(),Wt)||C==Sn)&&v.Dc((Jo(),X2));break;case 4:case 3:(C==(He(),rn)||C==Xt)&&v.Dc((Jo(),X2))}return S}function Npt(e,t){var s,a,l,f,v,w;for(v=new Ng(new lg(e.f.b).a);v.b;){if(f=dm(v),l=h(f.ad(),585),t==1){if(l.hf()!=(cs(),P1)&&l.hf()!=T1)continue}else if(l.hf()!=(cs(),xf)&&l.hf()!=qf)continue;switch(a=h(h(f.bd(),46).b,79),w=h(h(f.bd(),46).a,189),s=w.c,l.hf().g){case 2:a.g.c=e.e.a,a.g.b=m.Math.max(1,a.g.b+s);break;case 1:a.g.c=a.g.c+s,a.g.b=m.Math.max(1,a.g.b-s);break;case 4:a.g.d=e.e.b,a.g.a=m.Math.max(1,a.g.a+s);break;case 3:a.g.d=a.g.d+s,a.g.a=m.Math.max(1,a.g.a-s)}}}function smn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W;for(w=ge(Pn,rr,24,t.b.c.length,15,1),C=ge(Hne,je,266,t.b.c.length,0,1),S=ge(vp,Kg,10,t.b.c.length,0,1),M=e.a,R=0,V=M.length;R0&&!!S[a]&&(q=Kw(e.b,S[a],l)),W=m.Math.max(W,l.c.c.b+q);for(f=new Q(A.e);f.a1)throw ee(new Gt(EO));S||(f=Oh(t,a.Ic().Pb()),v.Dc(f))}return qbe(e,lye(e,t,s),v)}function cmn(e,t){var s,a,l,f,v,w,S,C,A,M;for(Mn(t,"Simple node placement",1),M=h(G(e,(Be(),Q2)),302),w=0,f=new Q(e.b);f.a=w?DY(e.a,f,t.a,w):DY(t.a,w,e.a,f);else{if(l=f!=w?f>w?1:-1:ime(e.a,t.a,f),l==0)return v0(),F6;l==1?(R=v,M=_Y(e.a,f,t.a,w)):(R=S,M=_Y(t.a,w,e.a,f))}return C=new Zw(R,M.length,M),s8(C),C}function Lpt(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W;for(M=0;Me.o.b||(s=Fs(e,rn),w=t.d+t.a+(s.gc()-1)*v,w>e.o.b)))}function aF(e,t){var s,a,l,f,v,w,S,C,A,M;if(A=null,e.d&&(A=h(Ta(e.d,t),138)),!A){if(f=e.a.Hh(),M=f.i,!e.d||gC(e.d)!=M){for(S=new Un,e.d&&y8(S,e.d),C=S.f.c+S.g.c,w=C;w0?(V=(q-1)*s,w&&(V+=a),A&&(V+=a),V=e.b[l+1])l+=2;else if(s0)for(a=new vu(h(Br(e.a,f),21)),Mt(),co(a,new Hde(t)),l=new wo(f.b,0);l.bTe)?(S=2,v=Ir):S==0?(S=1,v=Ke):(S=0,v=Ke)):(V=Ke>=v||v-Ke0&&a>=-6?a>=0?EA(f,s-ki(e.e),String.fromCharCode(46)):(f.a=Ru(f.a,0,t-1)+"0."+ZT(f.a,t-1),EA(f,t+1,Rl(nb,0,-ki(a)-1))):(s-t>=1&&(EA(f,t,String.fromCharCode(46)),++s),EA(f,s,String.fromCharCode(69)),a>0&&EA(f,++s,String.fromCharCode(43)),EA(f,++s,""+KC(bc(a)))),e.g=f.a,e.g))}function kmn(e,t){var s,a,l,f,v,w,S;for(e.a.c=ge(hn,rt,1,0,5,1),a=ar(t.b,0);a.b!=a.d.c;)s=h(sr(a),83),s.b.b==0&&(_e(s,(la(),Zy),(Zt(),!0)),Re(e.a,s));switch(e.a.c.length){case 0:l=new pQ(0,t,"DUMMY_ROOT"),_e(l,(la(),Zy),(Zt(),!0)),_e(l,bie,!0),dr(t.b,l);break;case 1:break;default:for(f=new pQ(0,t,"SUPER_ROOT"),w=new Q(e.a);w.a0?1:Xb(isNaN(a),isNaN(0)))>=0^(hf(rh),(m.Math.abs(w)<=rh||w==0||isNaN(w)&&isNaN(0)?0:w<0?-1:w>0?1:Xb(isNaN(w),isNaN(0)))>=0)?m.Math.max(w,a):(hf(rh),(m.Math.abs(a)<=rh||a==0||isNaN(a)&&isNaN(0)?0:a<0?-1:a>0?1:Xb(isNaN(a),isNaN(0)))>0?m.Math.sqrt(w*w+a*a):-m.Math.sqrt(w*w+a*a))}function Vg(e,t){var s,a,l,f,v,w;if(!!t){if(!e.a&&(e.a=new JN),e.e==2){ZN(e.a,t);return}if(t.e==1){for(l=0;l=Bo?is(s,_me(a)):p5(s,a&Ii),v=new sY(10,null,0),xQt(e.a,v,w-1)):(s=(v.Yl().length+f,new fC),is(s,v.Yl())),t.e==0?(a=t.Wl(),a>=Bo?is(s,_me(a)):p5(s,a&Ii)):is(s,t.Yl()),h(v,514).b=s.a}}function Imn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J;if(!s.dc()){for(w=0,R=0,a=s.Ic(),q=h(a.Pb(),20).a;w1&&(w=S.hg(w,e.a));return w.c.length==1?h(st(w,w.c.length-1),218):w.c.length==2?hmn((qt(0,w.c.length),h(w.c[0],218)),(qt(1,w.c.length),h(w.c[1],218)),v,f):null}function Pmn(e,t,s){var a,l,f;if(l=h(G(t,(Ye(),OV)),273),l!=(a6(),RI)){switch(Mn(s,"Horizontal Compaction",1),e.a=t,f=new nst,a=new Kdt((f.d=t,f.c=h(G(f.d,yp),216),j0n(f),wvn(f),V0n(f),f.a)),ZHt(a,e.b),h(G(t,J6e),417).g){case 1:EXe(a,new wat(e.a));break;default:EXe(a,(sge(),Xyt))}switch(l.g){case 1:B8(a);break;case 2:B8(lF(a,(cs(),qf)));break;case 3:B8(kXe(lF(B8(a),(cs(),qf)),new JRe));break;case 4:B8(kXe(lF(B8(a),(cs(),qf)),new pqe(f)));break;case 5:B8(QHt(a,V2t))}lF(a,(cs(),xf)),a.e=!0,oyn(f),wn(s)}}function qpt(e){Gb(e,new Bg(sj(Ub(Bb(zb(Vb(new ag,h4),Kgt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new oG),yd))),it(e,h4,uO,ft(qSe)),it(e,h4,AF,(Zt(),!0)),it(e,h4,Gg,GSe),it(e,h4,R2e,ft(HSe)),it(e,h4,L2e,ft(zSe)),it(e,h4,F2e,ft(USe)),it(e,h4,B2e,ft(WSe)),it(e,h4,$2e,ft(qB))}function Omn(e,t,s,a,l,f){var v,w,S,C,A,M,R;return v=null,C=a==(as(),$c)?f.c:f.d,S=cL(t),C.i==s?(v=h(qn(e.b,C),10),v||(v=WP(C,h(G(s,(Ye(),yi)),100),l,a==$c?-1:1,null,C.n,C.o,S,t),_e(v,(Be(),Dr),C),Fr(e.b,C,v))):(A=Ae(Xe(G(f,(Ye(),I1)))),v=WP((M=new fT,R=Ae(Xe(G(t,wf)))/2,rP(M,qy,R),M),h(G(s,yi),100),l,a==$c?-1:1,null,new Qo,new ot(A,A),S,t),w=kln(v,s,a),_e(v,(Be(),Dr),w),Fr(e.b,w,v)),h(G(t,(Be(),ja)),21).Dc((Jo(),yl)),Gw(h(G(t,(Ye(),yi)),100))?_e(t,yi,(lo(),mE)):_e(t,yi,(lo(),Cd)),v}function _mn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q;for(e.f=new UG,C=0,l=0,v=new Q(e.e.b);v.a=m.Math.abs(a.b)?(a.b=0,f.d+f.a>v.d&&f.dv.c&&f.c0){if(t=new k1e(e.i,e.g),s=e.i,f=s<100?null:new Gp(s),e.dj())for(a=0;a0){for(w=e.g,C=e.i,f8(e),f=C<100?null:new Gp(C),a=0;a>13|(e.m&15)<<9,l=e.m>>4&8191,f=e.m>>17|(e.h&255)<<5,v=(e.h&1048320)>>8,w=t.l&8191,S=t.l>>13|(t.m&15)<<9,C=t.m>>4&8191,A=t.m>>17|(t.h&255)<<5,M=(t.h&1048320)>>8,dt=s*w,ct=a*w,sn=l*w,tn=f*w,En=v*w,S!=0&&(ct+=s*S,sn+=a*S,tn+=l*S,En+=f*S),C!=0&&(sn+=s*C,tn+=a*C,En+=l*C),A!=0&&(tn+=s*A,En+=a*A),M!=0&&(En+=s*M),V=dt&cu,q=(ct&511)<<13,R=V+q,J=dt>>22,oe=ct>>9,de=(sn&262143)<<4,he=(tn&31)<<17,W=J+oe+de+he,Te=sn>>18,Le=tn>>5,Ke=(En&4095)<<8,me=Te+Le+Ke,W+=R>>22,R&=cu,me+=W>>22,W&=cu,me&=E1,Za(R,W,me)}function Xpt(e,t){var s,a,l,f,v,w,S;if(e.Ak()){if(e.i>4)if(e.rj(t)){if(e.mk()){if(l=h(t,48),a=l.Pg(),S=a==e.e&&(e.yk()?l.Jg(l.Qg(),e.uk())==e.vk():-1-l.Qg()==e.Xi()),e.zk()&&!S&&!a&&!!l.Ug()){for(f=0;f0&&(C=e.n.a/f);break;case 2:case 4:l=e.i.o.b,l>0&&(C=e.n.b/l)}_e(e,(Be(),Hm),C)}if(S=e.o,v=e.a,a)v.a=a.a,v.b=a.b,e.d=!0;else if(t!=Cd&&t!=L0&&w!=Hs)switch(w.g){case 1:v.a=S.a/2;break;case 2:v.a=S.a,v.b=S.b/2;break;case 3:v.a=S.a/2,v.b=S.b;break;case 4:v.b=S.b/2}else v.a=S.a/2,v.b=S.b/2}function X8(e){var t,s,a,l,f,v,w,S,C,A;if(e._i())if(A=e.Qi(),S=e.aj(),A>0)if(t=new Lbe(e.Bi()),s=A,f=s<100?null:new Gp(s),sA(e,s,t.g),l=s==1?e.Ui(4,le(t,0),null,0,S):e.Ui(6,t,null,-1,S),e.Yi()){for(a=new bn(t);a.e!=a.i.gc();)f=e.$i(yn(a),f);f?(f.zi(l),f.Ai()):e.Vi(l)}else f?(f.zi(l),f.Ai()):e.Vi(l);else sA(e,e.Qi(),e.Ri()),e.Vi(e.Ui(6,(Mt(),Wo),null,-1,S));else if(e.Yi())if(A=e.Qi(),A>0){for(w=e.Ri(),C=A,sA(e,A,w),f=C<100?null:new Gp(C),a=0;ae.d[v.p]&&(s+=Dge(e.b,f)*h(S.b,20).a,Eg(e.a,Ue(f)));for(;!lC(e.a);)lbe(e.b,h(d5(e.a),20).a)}return s}function Lmn(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J;for(M=new Ss(h(Ot(e,(FL(),$Ce)),8)),M.a=m.Math.max(M.a-s.b-s.c,0),M.b=m.Math.max(M.b-s.d-s.a,0),l=Xe(Ot(e,NCe)),(l==null||(Ut(l),l<=0))&&(l=1.3),w=new Fe,q=new bn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));q.e!=q.i.gc();)V=h(yn(q),34),v=new DZe(V),w.c[w.c.length]=v;switch(R=h(Ot(e,Hie),309),R.g){case 3:J=lbn(w,t,M.a,M.b,(C=a,Ut(l),C));break;case 1:J=Dbn(w,t,M.a,M.b,(A=a,Ut(l),A));break;default:J=Vmn(w,t,M.a,M.b,(S=a,Ut(l),S))}f=new _$(J),W=EJ(f,t,s,M.a,M.b,a,(Ut(l),l)),Tm(e,W.a,W.b,!1,!0)}function Fmn(e,t){var s,a,l,f;s=t.b,f=new vu(s.j),l=0,a=s.j,a.c=ge(hn,rt,1,0,5,1),tm(h(Pg(e.b,(He(),Wt),(bm(),Vm)),14),s),l=xP(f,l,new k$e,a),tm(h(Pg(e.b,Wt,O0),14),s),l=xP(f,l,new m$e,a),tm(h(Pg(e.b,Wt,Bm),14),s),tm(h(Pg(e.b,rn,Vm),14),s),tm(h(Pg(e.b,rn,O0),14),s),l=xP(f,l,new C$e,a),tm(h(Pg(e.b,rn,Bm),14),s),tm(h(Pg(e.b,Sn,Vm),14),s),l=xP(f,l,new I$e,a),tm(h(Pg(e.b,Sn,O0),14),s),l=xP(f,l,new T$e,a),tm(h(Pg(e.b,Sn,Bm),14),s),tm(h(Pg(e.b,Xt,Vm),14),s),l=xP(f,l,new w$e,a),tm(h(Pg(e.b,Xt,O0),14),s),tm(h(Pg(e.b,Xt,Bm),14),s)}function Bmn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W;for(Mn(t,"Layer size calculation",1),A=pi,C=Pi,l=!1,w=new Q(e.b);w.a.5?oe-=v*2*(q-.5):q<.5&&(oe+=f*2*(.5-q)),l=w.d.b,oeJ.a-W-A&&(oe=J.a-W-A),w.n.a=t+oe}}function Vmn(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J;for(w=ge(oo,ls,24,e.c.length,15,1),R=new IR(new dBe),yve(R,e),C=0,W=new Fe;R.b.c.length!=0;)if(v=h(R.b.c.length==0?null:st(R.b,0),157),C>1&&Oc(v)*yu(v)/2>w[0]){for(f=0;fw[f];)++f;q=new Ph(W,0,f+1),M=new _$(q),A=Oc(v)/yu(v),S=EJ(M,t,new m3,s,a,l,A),Rr(Vd(M.e),S),C5(s6(R,M)),V=new Ph(W,f+1,W.c.length),yve(R,V),W.c=ge(hn,rt,1,0,5,1),C=0,jet(w,w.length,0)}else J=R.b.c.length==0?null:st(R.b,0),J!=null&&nQ(R,0),C>0&&(w[C]=w[C-1]),w[C]+=Oc(v)*yu(v),++C,W.c[W.c.length]=v;return W}function zmn(e){var t,s,a,l,f;if(a=h(G(e,(Ye(),wc)),165),a==(gl(),M0)){for(s=new mn(vn(_s(e).a.Ic(),new j));Qn(s);)if(t=h($n(s),18),!Uit(t))throw ee(new Lw(Oee+SP(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(a==zy){for(f=new mn(vn(Di(e).a.Ic(),new j));Qn(f);)if(l=h($n(f),18),!Uit(l))throw ee(new Lw(Oee+SP(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Umn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q;for(Mn(t,"Label dummy removal",1),a=Ae(Xe(G(e,(Ye(),D4)))),l=Ae(Xe(G(e,Xy))),C=h(G(e,Gu),108),S=new Q(e.b);S.a>19!=0&&(t=H5(t),S=!S),v=K1n(t),f=!1,l=!1,a=!1,e.h==JP&&e.m==0&&e.l==0)if(l=!0,f=!0,v==-1)e=EQe((A5(),E4e)),a=!0,S=!S;else return w=jye(e,v),S&&lQ(w),s&&(I0=Za(0,0,0)),w;else e.h>>19!=0&&(f=!0,e=H5(e),a=!0,S=!S);return v!=-1?Hin(e,v,S,f,s):Tve(e,t)<0?(s&&(f?I0=H5(e):I0=Za(e.l,e.m,e.h)),Za(0,0,0)):Rgn(a?e:Za(e.l,e.m,e.h),t,S,f,l,s)}function qmn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J;for(Mn(s,"Interactive cycle breaking",1),M=new Fe,V=new Q(t.a);V.a0&&idt(e,w,M);for(l=new Q(M);l.a=0)return l=osn(e,t.substr(1,v-1)),A=t.substr(v+1,S-(v+1)),Gyn(e,A,l)}else{if(s=-1,A4e==null&&(A4e=new RegExp("\\d")),A4e.test(String.fromCharCode(w))&&(s=$pe(t,mc(46),S-1),s>=0)){a=h(OY(e,Pst(e,t.substr(1,s-1)),!1),57),C=0;try{C=Uu(t.substr(s+1),ko,Ir)}catch(R){throw R=ni(R),ue(R,127)?(f=R,ee(new w$(f))):ee(R)}if(Ct.f||t.g>e.f)){for(s=0,a=0,v=e.w.a.ec().Ic();v.Ob();)l=h(v.Pb(),11),EQ(Ls(re(ne(Ui,1),Oe,8,0,[l.i.n,l.n,l.a])).b,t.g,t.f)&&++s;for(w=e.r.a.ec().Ic();w.Ob();)l=h(w.Pb(),11),EQ(Ls(re(ne(Ui,1),Oe,8,0,[l.i.n,l.n,l.a])).b,t.g,t.f)&&--s;for(S=t.w.a.ec().Ic();S.Ob();)l=h(S.Pb(),11),EQ(Ls(re(ne(Ui,1),Oe,8,0,[l.i.n,l.n,l.a])).b,e.g,e.f)&&++a;for(f=t.r.a.ec().Ic();f.Ob();)l=h(f.Pb(),11),EQ(Ls(re(ne(Ui,1),Oe,8,0,[l.i.n,l.n,l.a])).b,e.g,e.f)&&--a;s1)throw ee(new Gt(EO));for(A=tc(e.e.Og(),t),a=h(e.g,118),v=0;v=0)return s;switch(im(bs(e,s))){case 2:{if(kt("",op(e,s.Cj()).ne())){if(S=wA(bs(e,s)),w=m5(bs(e,s)),A=zye(e,t,S,w),A)return A;for(l=bwe(e,t),v=0,M=l.gc();v1,C=new dd(R.b);js(C.a)||js(C.b);)S=h(js(C.a)?Y(C.a):Y(C.b),18),M=S.c==R?S.d:S.c,m.Math.abs(Ls(re(ne(Ui,1),Oe,8,0,[M.i.n,M.n,M.a])).b-v.b)>1&&Zpn(e,S,v,f,R)}}function evn(e){var t,s,a,l,f,v;if(l=new wo(e.e,0),a=new wo(e.a,0),e.d)for(s=0;sate;){for(f=t,v=0;m.Math.abs(t-f)0),l.a.Xb(l.c=--l.b),xbn(e,e.b-v,f,a,l),pn(l.b0),a.a.Xb(a.c=--a.b)}if(!e.d)for(s=0;s0?(e.f[A.p]=V/(A.e.c.length+A.g.c.length),e.c=m.Math.min(e.c,e.f[A.p]),e.b=m.Math.max(e.b,e.f[A.p])):w&&(e.f[A.p]=V)}}function nvn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function rvn(e,t,s){var a,l,f,v;for(Mn(s,"Graph transformation ("+e.a+")",1),v=am(t.a),f=new Q(t.b);f.a0&&(e.a=S+(V-1)*f,t.c.b+=e.a,t.f.b+=e.a)),q.a.gc()!=0&&(R=new BK(1,f),V=zwe(R,t,q,W,t.f.b+S-t.c.b),V>0&&(t.f.b+=S+(V-1)*f))}function m6(e,t){var s,a,l,f;f=e.F,t==null?(e.F=null,G5(e,null)):(e.F=(Ut(t),t),a=zd(t,mc(60)),a!=-1?(l=t.substr(0,a),zd(t,mc(46))==-1&&!kt(l,o4)&&!kt(l,yI)&&!kt(l,cB)&&!kt(l,wI)&&!kt(l,xI)&&!kt(l,SI)&&!kt(l,EI)&&!kt(l,kI)&&(l=Tvt),s=Qj(t,mc(62)),s!=-1&&(l+=""+t.substr(s+1)),G5(e,l)):(l=t,zd(t,mc(46))==-1&&(a=zd(t,mc(91)),a!=-1&&(l=t.substr(0,a)),!kt(l,o4)&&!kt(l,yI)&&!kt(l,cB)&&!kt(l,wI)&&!kt(l,xI)&&!kt(l,SI)&&!kt(l,EI)&&!kt(l,kI)?(l=Tvt,a!=-1&&(l+=""+t.substr(a))):l=t),G5(e,l),l==t&&(e.F=e.D))),(e.Db&4)!=0&&(e.Db&1)==0&&Ar(e,new Wi(e,1,5,f,t))}function Bwe(e){var t;switch(e.d){case 1:{if(e.cj())return e.o!=-2;break}case 2:{if(e.cj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.bj(),e.p){case 0:return t!=null&&_t(It(t))!=pC(e.k,0);case 1:return t!=null&&h(t,215).a!=On(e.k)<<24>>24;case 2:return t!=null&&h(t,172).a!=(On(e.k)&Ii);case 6:return t!=null&&pC(h(t,162).a,e.k);case 5:return t!=null&&h(t,20).a!=On(e.k);case 7:return t!=null&&h(t,186).a!=On(e.k)<<16>>16;case 3:return t!=null&&Ae(Xe(t))!=e.j;case 4:return t!=null&&h(t,155).a!=e.j;default:return t==null?e.n!=null:!Pr(t,e.n)}}function ovn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;if(W=t.b.c.length,!(W<3)){for(V=ge(Pn,rr,24,W,15,1),M=0,A=new Q(t.b);A.av)&&ro(e.b,h(J.b,18));++w}f=v}}}function svn(e){p8();var t,s,a,l,f,v,w;for(w=new EGe,s=new Q(e);s.a=w.b.c)&&(w.b=t),(!w.c||t.c<=w.c.c)&&(w.d=w.c,w.c=t),(!w.e||t.d>=w.e.d)&&(w.e=t),(!w.f||t.d<=w.f.d)&&(w.f=t);return a=new SL((U5(),Fm)),IA(e,k2t,new gu(re(ne(RO,1),rt,366,0,[a]))),v=new SL(Fy),IA(e,E2t,new gu(re(ne(RO,1),rt,366,0,[v]))),l=new SL(Ly),IA(e,S2t,new gu(re(ne(RO,1),rt,366,0,[l]))),f=new SL(U2),IA(e,x2t,new gu(re(ne(RO,1),rt,366,0,[f]))),UZ(a.c,Fm),UZ(l.c,Ly),UZ(f.c,U2),UZ(v.c,Fy),w.a.c=ge(hn,rt,1,0,5,1),Mi(w.a,a.c),Mi(w.a,Ag(l.c)),Mi(w.a,f.c),Mi(w.a,Ag(v.c)),w}function qP(e,t,s){var a,l,f,v;return e.Ak()&&e.zk()&&(v=DK(e,h(s,55)),Pe(v)!==Pe(s))?(e.Ji(t),e.Pi(t,Not(e,t,v)),e.mk()&&(f=(l=h(s,48),e.yk()?e.wk()?l.dh(e.b,qo(h(Dt(dc(e.b),e.Xi()),17)).n,h(Dt(dc(e.b),e.Xi()).Tj(),26).wj(),null):l.dh(e.b,ti(l.Og(),qo(h(Dt(dc(e.b),e.Xi()),17))),null,null):l.dh(e.b,-1-e.Xi(),null,null)),!h(v,48).$g()&&(f=(a=h(v,48),e.yk()?e.wk()?a.ah(e.b,qo(h(Dt(dc(e.b),e.Xi()),17)).n,h(Dt(dc(e.b),e.Xi()).Tj(),26).wj(),f):a.ah(e.b,ti(a.Og(),qo(h(Dt(dc(e.b),e.Xi()),17))),null,f):a.ah(e.b,-1-e.Xi(),null,f))),f&&f.Ai()),bu(e.b)&&e.Vi(e.Ui(9,s,v,t,!1)),v):s}function Qpt(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;for(A=Ae(Xe(G(e,(Ye(),Xm)))),a=Ae(Xe(G(e,_Ee))),R=new PG,_e(R,Xm,A+a),C=t,oe=C.d,W=C.c.i,de=C.d.i,J=O1e(W.c),he=O1e(de.c),l=new Fe,M=J;M<=he;M++)w=new y1(e),ug(w,(nn(),Ki)),_e(w,(Be(),Dr),C),_e(w,yi,(lo(),Ra)),_e(w,VV,R),V=h(st(e.b,M),29),M==J?dy(w,V.a.c.length-s,V):gs(w,V),me=Ae(Xe(G(C,I1))),me<0&&(me=0,_e(C,I1,me)),w.o.b=me,q=m.Math.floor(me/2),v=new xa,Li(v,(He(),Xt)),Rs(v,w),v.n.b=q,S=new xa,Li(S,rn),Rs(S,w),S.n.b=q,uo(C,v),f=new om,Is(f,C),_e(f,ws,null),Ao(f,S),uo(f,oe),Iun(w,C,f),l.c[l.c.length]=f,C=f;return l}function yJ(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;for(S=h(fp(e,(He(),Xt)).Ic().Pb(),11).e,V=h(fp(e,rn).Ic().Pb(),11).g,w=S.c.length,he=ld(h(st(e.j,0),11));w-- >0;){for(W=(qt(0,S.c.length),h(S.c[0],18)),l=(qt(0,V.c.length),h(V.c[0],18)),de=l.d.e,f=Os(de,l,0),Aen(W,l.d,f),Ao(l,null),uo(l,null),q=W.a,t&&dr(q,new Ss(he)),a=ar(l.a,0);a.b!=a.d.c;)s=h(sr(a),8),dr(q,new Ss(s));for(oe=W.b,R=new Q(l.b);R.a0&&(v=m.Math.max(v,Tat(e.B.b+a.d.b,l))),A=a,M=l,R=f;!!e.B&&e.B.c>0&&(V=R+e.B.c,C&&(V+=A.d.c),v=m.Math.max(v,(id(),hf(vd),m.Math.abs(M-1)<=vd||M==1||isNaN(M)&&isNaN(1)?0:V/(1-M)))),s.n.b=0,s.a.a=v}function e0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V;if(s=h(os(e.b,t),121),S=h(h(Br(e.r,t),21),81),S.dc()){s.n.d=0,s.n.a=0;return}for(C=e.t.Fc((ou(),_1)),v=0,e.w.Fc((xu(),hb))&&w1t(e,t),w=S.Ic(),A=null,R=0,M=0;w.Ob();)a=h(w.Pb(),110),f=Ae(Xe(a.b.Xe((Jj(),RB)))),l=a.b.pf().b,A?(V=M+A.d.a+e.v+a.d.d,v=m.Math.max(v,(id(),hf(vd),m.Math.abs(R-f)<=vd||R==f||isNaN(R)&&isNaN(f)?0:V/(f-R)))):!!e.B&&e.B.d>0&&(v=m.Math.max(v,Tat(e.B.d+a.d.d,f))),A=a,R=f,M=l;!!e.B&&e.B.a>0&&(V=M+e.B.a,C&&(V+=A.d.a),v=m.Math.max(v,(id(),hf(vd),m.Math.abs(R-1)<=vd||R==1||isNaN(R)&&isNaN(1)?0:V/(1-R)))),s.n.d=0,s.a.b=v}function t0t(e,t,s){var a,l,f,v,w,S;for(this.g=e,w=t.d.length,S=s.d.length,this.d=ge(vp,Kg,10,w+S,0,1),v=0;v0?GY(this,this.f/this.a):od(t.g,t.d[0]).a!=null&&od(s.g,s.d[0]).a!=null?GY(this,(Ae(od(t.g,t.d[0]).a)+Ae(od(s.g,s.d[0]).a))/2):od(t.g,t.d[0]).a!=null?GY(this,od(t.g,t.d[0]).a):od(s.g,s.d[0]).a!=null&&GY(this,od(s.g,s.d[0]).a)}function cvn(e,t){var s,a,l,f,v,w,S,C,A,M;for(e.a=new xtt(Xrn(d9)),a=new Q(t.a);a.a0&&(Bn(0,s.length),s.charCodeAt(0)!=47)))throw ee(new Gt("invalid opaquePart: "+s));if(e&&!(t!=null&&DT(Bz,t.toLowerCase()))&&!(s==null||!RQ(s,E9,k9)))throw ee(new Gt(pvt+s));if(e&&t!=null&&DT(Bz,t.toLowerCase())&&!pln(s))throw ee(new Gt(pvt+s));if(!ksn(a))throw ee(new Gt("invalid device: "+a));if(!mon(l))throw v=l==null?"invalid segments: null":"invalid segment: "+uon(l),ee(new Gt(v));if(!(f==null||zd(f,mc(35))==-1))throw ee(new Gt("invalid query: "+f))}function n0t(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe;if(R=new Ss(e.o),oe=t.a/R.a,w=t.b/R.b,W=t.a-R.a,f=t.b-R.b,s)for(l=Pe(G(e,(Ye(),yi)))===Pe((lo(),Ra)),q=new Q(e.j);q.a=1&&(J-v>0&&M>=0?(S.n.a+=W,S.n.b+=f*v):J-v<0&&A>=0&&(S.n.a+=W*J,S.n.b+=f));e.o.a=t.a,e.o.b=t.b,_e(e,(Ye(),ob),(xu(),a=h(_f(y9),9),new al(a,h(lf(a,a.length),9),0)))}function hvn(e,t,s){var a,l,f,v,w,S,C,A;if(e.a==(Mg(),nie)||!Lo(t,(Be(),Sd))||!Lo(s,(Be(),Sd))){if(l=h(tpe(dit(dQ(Kr(new Rt(null,new Lt(t.j,16)),new q$e)),new W$e)),11),v=h(tpe(dit(dQ(Kr(new Rt(null,new Lt(s.j,16)),new G$e)),new X$e)),11),!!l&&!!v){if(a=l.i,f=v.i,!!a&&a==f){for(S=new Q(a.j);S.a0){kL(e,s,0),s.a+=String.fromCharCode(a),l=uan(t,f),kL(e,s,l),f+=l-1;continue}a==39?f+11)for(W=ge(Pn,rr,24,e.b.b.c.length,15,1),M=0,C=new Q(e.b.b);C.a=w&&l<=S)w<=l&&f<=S?(s[A++]=l,s[A++]=f,a+=2):w<=l?(s[A++]=l,s[A++]=S,e.b[a]=S+1,v+=2):f<=S?(s[A++]=w,s[A++]=f,a+=2):(s[A++]=w,s[A++]=S,e.b[a]=S+1);else if(Sx0)&&w<10);Ohe(e.c,new hT),i0t(e),kQt(e.c),lvn(e.f)}function mvn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J;if(!!_t(It(G(s,(Ye(),ex)))))for(w=new Q(s.j);w.a=2){for(S=ar(s,0),v=h(sr(S),8),w=h(sr(S),8);w.a0&&nP(C,!0,(cs(),qf)),w.k==(nn(),Ai)&&$tt(C),Fr(e.f,w,t)}}function xvn(e,t,s){var a,l,f,v,w,S,C,A;if(t.e.c.length!=0&&s.e.c.length!=0){if(a=h(st(t.e,0),18).c.i,v=h(st(s.e,0),18).c.i,a==v)return Qa(h(G(h(st(t.e,0),18),(Be(),Sd)),20).a,h(G(h(st(s.e,0),18),Sd),20).a);for(A=new Q(e.a.a);A.aw?1:0):t.e.c.length!=0&&s.g.c.length!=0?1:-1}function Svn(e,t,s){var a,l,f,v,w,S,C,A,M,R;switch(Mn(s,"Node promotion heuristic",1),e.g=t,Pyn(e),e.q=h(G(t,(Ye(),zre)),259),A=h(G(e.g,mEe),20).a,f=new Xje,e.q.g){case 2:case 1:b6(e,f);break;case 3:for(e.q=(E2(),GV),b6(e,f),S=0,w=new Q(e.a);w.ae.j&&(e.q=YO,b6(e,f));break;case 4:for(e.q=(E2(),GV),b6(e,f),C=0,l=new Q(e.b);l.ae.k&&(e.q=QO,b6(e,f));break;case 6:R=ki(m.Math.ceil(e.f.length*A/100)),b6(e,new tqe(R));break;case 5:M=ki(m.Math.ceil(e.d*A/100)),b6(e,new nqe(M));break;default:b6(e,f)}S0n(e,t),wn(s)}function Evn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;for(M=h(Xj((v=ar(new qp(t).a.d,0),new p3(v))),83),q=M?h(G(M,(la(),mie)),83):null,l=1;!!M&&!!q;){for(S=0,me=0,s=M,a=q,w=0;w=e.i?(++e.i,Re(e.a,Ue(1)),Re(e.b,A)):(a=e.c[t.p][1],Nl(e.a,C,Ue(h(st(e.a,C),20).a+1-a)),Nl(e.b,C,Ae(Xe(st(e.b,C)))+A-a*e.e)),(e.q==(E2(),YO)&&(h(st(e.a,C),20).a>e.j||h(st(e.a,C-1),20).a>e.j)||e.q==QO&&(Ae(Xe(st(e.b,C)))>e.k||Ae(Xe(st(e.b,C-1)))>e.k))&&(S=!1),v=new mn(vn(_s(t).a.Ic(),new j));Qn(v);)f=h($n(v),18),w=f.c.i,e.f[w.p]==C&&(M=s0t(e,w),l=l+h(M.a,20).a,S=S&&_t(It(M.b)));return e.f[t.p]=C,l=l+e.c[t.p][0],new fo(Ue(l),(Zt(),!!S))}function zwe(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J,oe;for(M=new Un,v=new Fe,Mdt(e,s,e.d.ag(),v,M),Mdt(e,a,e.d.bg(),v,M),e.b=.2*(W=vht($s(new Rt(null,new Lt(v,16)),new nFe)),J=vht($s(new Rt(null,new Lt(v,16)),new rFe)),m.Math.min(W,J)),f=0,w=0;w=2&&(oe=Lht(v,!0,R),!e.e&&(e.e=new iWe(e)),fan(e.e,oe,v,e.b)),wft(v,R),Bvn(v),V=-1,A=new Q(v);A.aw)}function Cvn(e,t){var s,a,l,f,v,w,S,C,A,M;for(A=new Fe,M=new g3,f=null,l=0,a=0;a0),h(A.a.Xb(A.c=--A.b),18));f!=a&&A.b>0;)e.a[f.p]=!0,e.a[a.p]=!0,f=(pn(A.b>0),h(A.a.Xb(A.c=--A.b),18));A.b>0&&wu(A)}}function Ovn(e){var t,s,a,l,f,v,w,S,C,A;for(C=new ci,w=new ci,f=new Q(e);f.a-1){for(l=ar(w,0);l.b!=l.d.c;)a=h(sr(l),128),a.v=v;for(;w.b!=0;)for(a=h(pZ(w,0),128),s=new Q(a.i);s.a0&&(s+=S.n.a+S.o.a/2,++M),q=new Q(S.j);q.a0&&(s/=M),oe=ge(oo,ls,24,a.a.c.length,15,1),w=0,C=new Q(a.a);C.a=w&&l<=S)w<=l&&f<=S?a+=2:w<=l?(e.b[a]=S+1,v+=2):f<=S?(s[A++]=l,s[A++]=w-1,a+=2):(s[A++]=l,s[A++]=w-1,e.b[a]=S+1,v+=2);else if(S0?l-=864e5:l+=864e5,S=new Cpe(Po(bc(t.q.getTime()),l))),A=new Dv,C=e.a.length,f=0;f=97&&a<=122||a>=65&&a<=90){for(v=f+1;v=C)throw ee(new Gt("Missing trailing '"));v+10&&s.c==0&&(!t&&(t=new Fe),t.c[t.c.length]=s);if(t)for(;t.c.length!=0;){if(s=h(tp(t,0),232),!!s.b&&s.b.c.length>0){for(f=(!s.b&&(s.b=new Fe),new Q(s.b));f.aOs(e,s,0))return new fo(l,s)}else if(Ae(od(l.g,l.d[0]).a)>Ae(od(s.g,s.d[0]).a))return new fo(l,s)}for(w=(!s.e&&(s.e=new Fe),s.e).Ic();w.Ob();)v=h(w.Pb(),232),S=(!v.b&&(v.b=new Fe),v.b),Yv(0,S.c.length),TC(S.c,0,s),v.c==S.c.length&&(t.c[t.c.length]=v)}return null}function h0t(e,t){var s,a,l,f,v,w,S,C,A;if(e==null)return vc;if(S=t.a.xc(e,t),S!=null)return"[...]";for(s=new Og(Fo,"[","]"),l=e,f=0,v=l.length;f=14&&A<=16))?t.a._b(a)?(s.a?Kn(s.a,s.b):s.a=new ju(s.d),NC(s.a,"[...]")):(w=Tg(a),C=new bA(t),h1(s,h0t(w,C))):ue(a,177)?h1(s,Vdn(h(a,177))):ue(a,190)?h1(s,Mln(h(a,190))):ue(a,194)?h1(s,zfn(h(a,194))):ue(a,1981)?h1(s,Dln(h(a,1981))):ue(a,47)?h1(s,Bdn(h(a,47))):ue(a,361)?h1(s,ehn(h(a,361))):ue(a,811)?h1(s,Fdn(h(a,811))):ue(a,103)&&h1(s,Ldn(h(a,103))):h1(s,a==null?vc:Bs(a));return s.a?s.e.length==0?s.a.a:s.a.a+(""+s.e):s.c}function p0t(e,t,s,a){var l,f,v;return f=new qwe(t),gpn(f,a),Vtt(f,!1,!e||gg(h(e.Xe((Or(),l9)),108))),aY(f,f.f,(jf(),Zs),(He(),Wt)),aY(f,f.f,Js,Sn),aY(f,f.g,Zs,Xt),aY(f,f.g,Js,rn),but(f,Wt),but(f,Sn),Btt(f,rn),Btt(f,Xt),Vv(),l=f.w.Fc((xu(),ew))&&f.A.Fc((su(),C_))?Tut(f):null,l&&nqt(f.a,l),uyn(f),$cn(f),Lcn(f),Dvn(f),v0n(f),uun(f),qQ(f,Wt),qQ(f,Sn),K0n(f),_bn(f),s&&(ysn(f),lun(f),qQ(f,rn),qQ(f,Xt),v=f.A.Fc((su(),w9)),kdt(f,v,Wt),kdt(f,v,Sn),Cdt(f,v,rn),Cdt(f,v,Xt),mi(new Rt(null,new Lt(new o1(f.i),0)),new Rw),mi(Kr(new Rt(null,U0e(f.r).a.mc()),new NW),new RW),Aln(f),f.e.sf(f.o),mi(new Rt(null,U0e(f.r).a.mc()),new $W)),f.o}function g0t(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;for(w=k2(t,!1,!1),oe=AP(w),a&&(oe=iP(oe)),he=Ae(Xe(Ot(t,(O8(),One)))),J=(pn(oe.b!=0),h(oe.a.a.c,8)),M=h(Ff(oe,1),8),oe.b>2?(A=new Fe,Mi(A,new Ph(oe,1,oe.b)),f=q0t(A,he+e.a),de=new FZ(f),Is(de,t),s.c[s.c.length]=de):a?de=h(qn(e.b,Nh(t)),265):de=h(qn(e.b,g0(t)),265),S=Nh(t),a&&(S=g0(t)),v=adn(J,S),C=he+e.a,v.a?(C+=m.Math.abs(J.b-M.b),W=new ot(M.a,(M.b+J.b)/2)):(C+=m.Math.abs(J.a-M.a),W=new ot((M.a+J.a)/2,M.b)),a?Fr(e.d,t,new pve(de,v,W,C)):Fr(e.c,t,new pve(de,v,W,C)),Fr(e.b,t,de),q=(!t.n&&(t.n=new $e(Ds,t,1,7)),t.n),V=new bn(q);V.e!=V.i.gc();)R=h(yn(V),137),l=LP(e,R,!0,0,0),s.c[s.c.length]=l}function Bvn(e){var t,s,a,l,f,v,w,S,C,A;for(C=new Fe,w=new Fe,v=new Q(e);v.a-1){for(f=new Q(w);f.a0)&&(Ide(S,m.Math.min(S.o,l.o-1)),UN(S,S.i-1),S.i==0&&(w.c[w.c.length]=S))}}function v6(e,t,s){var a,l,f,v,w,S,C;if(C=e.c,!t&&(t=lIe),e.c=t,(e.Db&4)!=0&&(e.Db&1)==0&&(S=new Wi(e,1,2,C,e.c),s?s.zi(S):s=S),C!=t){if(ue(e.Cb,283))e.Db>>16==-10?s=h(e.Cb,283).ik(t,s):e.Db>>16==-15&&(!t&&(t=(At(),Pd)),!C&&(C=(At(),Pd)),e.Cb.ih()&&(S=new p1(e.Cb,1,13,C,t,up(nu(h(e.Cb,58)),e),!1),s?s.zi(S):s=S));else if(ue(e.Cb,87))e.Db>>16==-23&&(ue(t,87)||(t=(At(),Zl)),ue(C,87)||(C=(At(),Zl)),e.Cb.ih()&&(S=new p1(e.Cb,1,10,C,t,up(wa(h(e.Cb,26)),e),!1),s?s.zi(S):s=S));else if(ue(e.Cb,438))for(w=h(e.Cb,814),v=(!w.b&&(w.b=new KN(new XG)),w.b),f=(a=new Ng(new lg(v.a).a),new YN(a));f.a.b;)l=h(dm(f.a).ad(),86),s=v6(l,qL(l,w),s)}return s}function Vvn(e,t){var s,a,l,f,v,w,S,C,A,M,R;for(v=_t(It(Ot(e,(Ye(),ex)))),R=h(Ot(e,Wy),21),S=!1,C=!1,M=new bn((!e.c&&(e.c=new $e(fu,e,9,9)),e.c));M.e!=M.i.gc()&&(!S||!C);){for(f=h(yn(M),122),w=0,l=yg(Xd(re(ne(sh,1),rt,19,0,[(!f.d&&(f.d=new Ht(Hi,f,8,5)),f.d),(!f.e&&(f.e=new Ht(Hi,f,7,4)),f.e)])));Qn(l)&&(a=h($n(l),80),A=v&&Em(a)&&_t(It(Ot(a,Hy))),s=Xpt((!a.b&&(a.b=new Ht(Vn,a,4,7)),a.b),f)?e==Gi(Oa(h(le((!a.c&&(a.c=new Ht(Vn,a,5,8)),a.c),0),93))):e==Gi(Oa(h(le((!a.b&&(a.b=new Ht(Vn,a,4,7)),a.b),0),93))),!((A||s)&&(++w,w>1))););(w>0||R.Fc((ou(),_1))&&(!f.n&&(f.n=new $e(Ds,f,1,7)),f.n).i>0)&&(S=!0),w>1&&(C=!0)}S&&t.Dc((Jo(),yl)),C&&t.Dc((Jo(),$I))}function zvn(e){var t,s,a,l;if(s=e.D!=null?e.D:e.B,t=zd(s,mc(91)),t!=-1){a=s.substr(0,t),l=new X1;do l.a+="[";while((t=a5(s,91,++t))!=-1);kt(a,o4)?l.a+="Z":kt(a,yI)?l.a+="B":kt(a,cB)?l.a+="C":kt(a,wI)?l.a+="D":kt(a,xI)?l.a+="F":kt(a,SI)?l.a+="I":kt(a,EI)?l.a+="J":kt(a,kI)?l.a+="S":(l.a+="L",l.a+=""+a,l.a+=";");try{return null}catch(f){if(f=ni(f),!ue(f,59))throw ee(f)}}else if(zd(s,mc(46))==-1){if(kt(s,o4))return du;if(kt(s,yI))return Fc;if(kt(s,cB))return wl;if(kt(s,wI))return oo;if(kt(s,xI))return aw;if(kt(s,SI))return Pn;if(kt(s,EI))return W0;if(kt(s,kI))return bx}return null}function b0t(e){var t,s,a,l,f,v,w,S,C,A,M,R;if(R=h(Ot(e,(Or(),hE)),21),R.dc())return null;if(w=0,v=0,R.Fc((xu(),E_))){for(A=h(Ot(e,g_),100),a=2,s=2,l=2,f=2,t=Gi(e)?h(Ot(Gi(e),l9),108):h(Ot(e,l9),108),C=new bn((!e.c&&(e.c=new $e(fu,e,9,9)),e.c));C.e!=C.i.gc();)if(S=h(yn(C),122),M=h(Ot(S,f9),61),M==(He(),Hs)&&(M=Twe(S,t),Ts(S,f9,M)),A==(lo(),Ra))switch(M.g){case 1:a=m.Math.max(a,S.i+S.g);break;case 2:s=m.Math.max(s,S.j+S.f);break;case 3:l=m.Math.max(l,S.i+S.g);break;case 4:f=m.Math.max(f,S.j+S.f)}else switch(M.g){case 1:a+=S.g+2;break;case 2:s+=S.f+2;break;case 3:l+=S.g+2;break;case 4:f+=S.f+2}w=m.Math.max(a,l),v=m.Math.max(s,f)}return Tm(e,w,v,!0,!0)}function wJ(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;for(de=h(Fu(A$(Kr(new Rt(null,new Lt(t.d,16)),new Cqe(s)),new Iqe(s)),Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[(gd(),Wu)]))),14),M=Ir,A=ko,S=new Q(t.b.j);S.a0,C?C&&(R=oe.p,v?++R:--R,M=h(st(oe.c.a,R),10),a=uct(M),V=!(HZ(a,Le,s[0])||Zet(a,Le,s[0]))):V=!0),q=!1,Te=t.D.i,!!Te&&!!Te.c&&w.e&&(A=v&&Te.p>0||!v&&Te.p0&&(t.a+=Fo),uF(h(yn(w),160),t);for(t.a+=Tee,S=new A3((!a.c&&(a.c=new Ht(Vn,a,5,8)),a.c));S.e!=S.i.gc();)S.e>0&&(t.a+=Fo),uF(h(yn(S),160),t);t.a+=")"}}function m0t(e,t,s){var a,l,f,v,w,S,C,A;for(C=new y1(s),Is(C,t),_e(C,(Be(),Dr),t),C.o.a=t.g,C.o.b=t.f,C.n.a=t.i,C.n.b=t.j,Re(s.a,C),Fr(e.a,t,C),((!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i!=0||_t(It(Ot(t,(Ye(),ex)))))&&_e(C,g6e,(Zt(),!0)),S=h(G(s,ja),21),A=h(G(C,(Ye(),yi)),100),A==(lo(),L0)?_e(C,yi,Cd):A!=Cd&&S.Dc((Jo(),eE)),a=h(G(s,Gu),108),w=new bn((!t.c&&(t.c=new $e(fu,t,9,9)),t.c));w.e!=w.i.gc();)v=h(yn(w),122),_t(It(Ot(v,sb)))||xyn(e,v,C,S,a,A);for(f=new bn((!t.n&&(t.n=new $e(Ds,t,1,7)),t.n));f.e!=f.i.gc();)l=h(yn(f),137),!_t(It(Ot(l,sb)))&&!!l.a&&Re(C.b,CQ(l));return _t(It(G(C,zI)))&&S.Dc((Jo(),yV)),_t(It(G(C,NV)))&&(S.Dc((Jo(),wV)),S.Dc($I),_e(C,yi,Cd)),C}function Gvn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V;if(f=h(G(e,(Be(),Dr)),80),!!f){for(a=e.a,l=new Ss(s),Rr(l,Yun(e)),B5(e.d.i,e.c.i)?(R=e.c,M=Ls(re(ne(Ui,1),Oe,8,0,[R.n,R.a])),no(M,s)):M=ld(e.c),wi(a,M,a.a,a.a.a),V=ld(e.d),G(e,Mre)!=null&&Rr(V,h(G(e,Mre),8)),wi(a,V,a.c.b,a.c),ry(a,l),v=k2(f,!0,!0),R$(v,h(le((!f.b&&(f.b=new Ht(Vn,f,4,7)),f.b),0),93)),$$(v,h(le((!f.c&&(f.c=new Ht(Vn,f,5,8)),f.c),0),93)),zP(a,v),A=new Q(e.b);A.a=0){for(S=null,w=new wo(A.a,C+1);w.bv?1:Xb(isNaN(0),isNaN(v)))<0&&(hf(rh),(m.Math.abs(v-1)<=rh||v==1||isNaN(v)&&isNaN(1)?0:v<1?-1:v>1?1:Xb(isNaN(v),isNaN(1)))<0)&&(hf(rh),(m.Math.abs(0-w)<=rh||w==0||isNaN(0)&&isNaN(w)?0:0w?1:Xb(isNaN(0),isNaN(w)))<0)&&(hf(rh),(m.Math.abs(w-1)<=rh||w==1||isNaN(w)&&isNaN(1)?0:w<1?-1:w>1?1:Xb(isNaN(w),isNaN(1)))<0)),f)}function Kvn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le;for(M=new Y0e(new Rde(e));M.b!=M.c.a.d;)for(A=Pot(M),w=h(A.d,55),t=h(A.e,55),v=w.Og(),W=0,me=(v.i==null&&Kd(v),v.i).length;W=0&&W=C.c.c.length?A=_ge((nn(),ji),Ki):A=_ge((nn(),Ki),Ki),A*=2,f=s.a.g,s.a.g=m.Math.max(f,f+(A-f)),v=s.b.g,s.b.g=m.Math.max(v,v+(A-v)),l=t}}function Qvn(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te;for(Te=QJe(e),A=new Fe,w=e.c.length,M=w-1,R=w+1;Te.a.c!=0;){for(;s.b!=0;)he=(pn(s.b!=0),h(fl(s,s.a.a),111)),i8(Te.a,he)!=null,he.g=M--,Awe(he,t,s,a);for(;t.b!=0;)me=(pn(t.b!=0),h(fl(t,t.a.a),111)),i8(Te.a,me)!=null,me.g=R++,Awe(me,t,s,a);for(C=ko,oe=(v=new UC(new FC(new ET(Te.a).a).b),new ST(v));LT(oe.a.a);){if(J=(f=nR(oe.a),h(f.ad(),111)),!a&&J.b>0&&J.a<=0){A.c=ge(hn,rt,1,0,5,1),A.c[A.c.length]=J;break}W=J.i-J.d,W>=C&&(W>C&&(A.c=ge(hn,rt,1,0,5,1),C=W),A.c[A.c.length]=J)}A.c.length!=0&&(S=h(st(A,JQ(l,A.c.length)),111),i8(Te.a,S)!=null,S.g=R++,Awe(S,t,s,a),A.c=ge(hn,rt,1,0,5,1))}for(de=e.c.length+1,q=new Q(e);q.a0&&(R.d+=A.n.d,R.d+=A.d),R.a>0&&(R.a+=A.n.a,R.a+=A.d),R.b>0&&(R.b+=A.n.b,R.b+=A.d),R.c>0&&(R.c+=A.n.c,R.c+=A.d),R}function tyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;for(M=e.b,A=new wo(M,0),Bv(A,new Ml(e)),de=!1,v=1;A.b0&&(e.a[t.c.p][t.p].d+=Su(e.f,24)*rO*.07000000029802322-.03500000014901161,e.a[t.c.p][t.p].a=e.a[t.c.p][t.p].d/e.a[t.c.p][t.p].b)}}function syn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J;for(q=new Q(e);q.aa.d,a.d=m.Math.max(a.d,t),w&&s&&(a.d=m.Math.max(a.d,a.a),a.a=a.d+l);break;case 3:s=t>a.a,a.a=m.Math.max(a.a,t),w&&s&&(a.a=m.Math.max(a.a,a.d),a.d=a.a+l);break;case 2:s=t>a.c,a.c=m.Math.max(a.c,t),w&&s&&(a.c=m.Math.max(a.b,a.c),a.b=a.c+l);break;case 4:s=t>a.b,a.b=m.Math.max(a.b,t),w&&s&&(a.b=m.Math.max(a.b,a.c),a.c=a.b+l)}}}function lyn(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J;for(S=new ot(a.i+a.g/2,a.j+a.f/2),V=zpt(a),q=h(Ot(t,(Ye(),yi)),100),J=h(Ot(a,sE),61),eQe(flt(a),qy)||(a.i==0&&a.j==0?W=0:W=afn(a,J),Ts(a,qy,W)),C=new ot(t.g,t.f),l=WP(a,q,J,V,C,S,new ot(a.g,a.f),h(G(s,Gu),108),s),_e(l,(Be(),Dr),a),f=h(st(l.j,0),11),MUt(f,qgn(a)),_e(l,Wy,(ou(),Tt(F0))),M=h(Ot(t,Wy),174).Fc(_1),w=new bn((!a.n&&(a.n=new $e(Ds,a,1,7)),a.n));w.e!=w.i.gc();)if(v=h(yn(w),137),!_t(It(Ot(v,sb)))&&!!v.a&&(R=CQ(v),Re(f.f,R),!M))switch(A=0,QC(h(Ot(t,Wy),21))&&(A=Cye(new ot(v.i,v.j),new ot(v.g,v.f),new ot(a.g,a.f),0,J)),J.g){case 2:case 4:R.o.a=A;break;case 1:case 3:R.o.b=A}_e(l,cE,Xe(Ot(Gi(t),cE))),_e(l,Xy,Xe(Ot(Gi(t),Xy))),Re(s.a,l),Fr(e.a,a,l)}function fyn(e){var t,s,a,l,f,v,w,S,C,A,M;for(C=new Q(e);C.a0||A.j==Xt&&A.e.c.length-A.g.c.length<0)){t=!1;break}for(l=new Q(A.g);l.a=C&&Te>=J&&(R+=q.n.b+W.n.b+W.a.b-me,++w));if(s)for(v=new Q(de.e);v.a=C&&Te>=J&&(R+=q.n.b+W.n.b+W.a.b-me,++w))}w>0&&(Le+=R/w,++V)}V>0?(t.a=l*Le/V,t.g=V):(t.a=0,t.g=0)}function hyn(e,t){var s,a,l,f,v,w,S,C,A,M,R;for(l=new Q(e.a.b);l.aPi||t.o==ub&&A0&&_c(oe,me*Le),Te>0&&Mc(oe,Te*Ke);for(w8(e.b,new nG),t=new Fe,w=new Ng(new lg(e.c).a);w.b;)v=dm(w),a=h(v.ad(),80),s=h(v.bd(),391).a,l=k2(a,!1,!1),M=xft(Nh(a),AP(l),s),zP(M,l),he=Oft(a),!!he&&Os(t,he,0)==-1&&(t.c[t.c.length]=he,int(he,(pn(M.b!=0),h(M.a.a.c,8)),s));for(J=new Ng(new lg(e.d).a);J.b;)W=dm(J),a=h(W.ad(),80),s=h(W.bd(),391).a,l=k2(a,!1,!1),M=xft(g0(a),iP(AP(l)),s),M=iP(M),zP(M,l),he=_ft(a),!!he&&Os(t,he,0)==-1&&(t.c[t.c.length]=he,int(he,(pn(M.b!=0),h(M.c.b.c,8)),s))}function myn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe;if(W=e.n,J=e.o,R=e.d,M=Ae(Xe(uy(e,(Ye(),Hre)))),t){for(A=M*(t.gc()-1),V=0,S=t.Ic();S.Ob();)v=h(S.Pb(),10),A+=v.o.a,V=m.Math.max(V,v.o.b);for(oe=W.a-(A-J.a)/2,f=W.b-R.d+V,a=J.a/(t.gc()+1),l=a,w=t.Ic();w.Ob();)v=h(w.Pb(),10),v.n.a=oe,v.n.b=f-v.o.b,oe+=v.o.a+M,C=Dht(v),C.n.a=v.o.a/2-C.a.a,C.n.b=v.o.b,q=h(G(v,(Be(),SV)),11),q.e.c.length+q.g.c.length==1&&(q.n.a=l-q.a.a,q.n.b=0,Rs(q,e)),l+=a}if(s){for(A=M*(s.gc()-1),V=0,S=s.Ic();S.Ob();)v=h(S.Pb(),10),A+=v.o.a,V=m.Math.max(V,v.o.b);for(oe=W.a-(A-J.a)/2,f=W.b+J.b+R.a-V,a=J.a/(s.gc()+1),l=a,w=s.Ic();w.Ob();)v=h(w.Pb(),10),v.n.a=oe,v.n.b=f,oe+=v.o.a+M,C=Dht(v),C.n.a=v.o.a/2-C.a.a,C.n.b=0,q=h(G(v,(Be(),SV)),11),q.e.c.length+q.g.c.length==1&&(q.n.a=l-q.a.a,q.n.b=J.b,Rs(q,e)),l+=a}}function vyn(e,t){var s,a,l,f,v,w;if(!!h(G(t,(Be(),ja)),21).Fc((Jo(),yl))){for(w=new Q(t.a);w.a0&&(t=(Bn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=e.substr(1),--f,S=t==45)),f==0)throw ee(new Bd(Om+C+'"'));for(;e.length>0&&(Bn(0,e.length),e.charCodeAt(0)==48);)e=e.substr(1),--f;if(f>(upt(),Tyt)[10])throw ee(new Bd(Om+C+'"'));for(l=0;l0&&(M=-parseInt(e.substr(0,a),10),e=e.substr(a),f-=a,s=!1);f>=v;){if(a=parseInt(e.substr(0,v),10),e=e.substr(v),f-=v,s)s=!1;else{if(ba(M,w)<0)throw ee(new Bd(Om+C+'"'));M=Eo(M,A)}M=p0(M,a)}if(ba(M,0)>0)throw ee(new Bd(Om+C+'"'));if(!S&&(M=I5(M),ba(M,0)<0))throw ee(new Bd(Om+C+'"'));return M}function yyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;for(Mn(t,"Inverted port preprocessing",1),A=e.b,C=new wo(A,0),s=null,he=new Fe;C.b1)for(V=new Rwe(q,he,a),So(he,new jYe(e,V)),v.c[v.c.length]=V,M=he.a.ec().Ic();M.Ob();)A=h(M.Pb(),46),hc(f,A.b);if(w.a.gc()>1)for(V=new Rwe(q,w,a),So(w,new RYe(e,V)),v.c[v.c.length]=V,M=w.a.ec().Ic();M.Ob();)A=h(M.Pb(),46),hc(f,A.b)}}function S0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V;for(s=0,a=Tcn(e,t),R=e.s,C=h(h(Br(e.r,t),21),81).Ic();C.Ob();)if(S=h(C.Pb(),110),!(!S.c||S.c.d.c.length<=0)){switch(V=S.b.pf(),w=S.b.Ye((Or(),lu))?Ae(Xe(S.b.Xe(lu))):0,A=S.c,M=A.i,M.b=(v=A.n,A.e.a+v.b+v.c),M.a=(f=A.n,A.e.b+f.d+f.a),t.g){case 1:M.c=S.a?(V.a-M.b)/2:V.a+R,M.d=V.b+w+a,Df(A,(Kc(),T0)),Hd(A,(pc(),Uf));break;case 3:M.c=S.a?(V.a-M.b)/2:V.a+R,M.d=-w-a-M.a,Df(A,(Kc(),T0)),Hd(A,(pc(),yf));break;case 2:M.c=-w-a-M.b,S.a?(l=e.u?M.a:h(st(A.d,0),183).pf().b,M.d=(V.b-l)/2):M.d=V.b+R,Df(A,(Kc(),vf)),Hd(A,(pc(),A0));break;case 4:M.c=V.a+w+a,S.a?(l=e.u?M.a:h(st(A.d,0),183).pf().b,M.d=(V.b-l)/2):M.d=V.b+R,Df(A,(Kc(),ch)),Hd(A,(pc(),A0))}(t==(He(),Wt)||t==Sn)&&(s=m.Math.max(s,M.a))}s>0&&(h(os(e.b,t),121).a.b=s)}function Syn(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn;for(he=0,q=0,V=0,R=1,de=new bn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));de.e!=de.i.gc();)J=h(yn(de),34),R+=d1(new mn(vn(hp(J).a.Ic(),new j))),dt=J.g,q=m.Math.max(q,dt),M=J.f,V=m.Math.max(V,M),he+=dt*M;for(W=(!e.a&&(e.a=new $e(bi,e,10,11)),e.a).i,v=he+2*a*a*R*W,f=m.Math.sqrt(v),S=m.Math.max(f*s,q),w=m.Math.max(f/s,V),oe=new bn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));oe.e!=oe.i.gc();)J=h(yn(oe),34),ct=l.b+(Su(t,26)*Z8+Su(t,27)*J8)*(S-J.g),sn=l.b+(Su(t,26)*Z8+Su(t,27)*J8)*(w-J.f),_c(J,ct),Mc(J,sn);for(Ke=S+(l.b+l.c),Le=w+(l.d+l.a),Te=new bn((!e.a&&(e.a=new $e(bi,e,10,11)),e.a));Te.e!=Te.i.gc();)for(me=h(yn(Te),34),A=new mn(vn(hp(me).a.Ic(),new j));Qn(A);)C=h($n(A),80),F8(C)||wwn(C,t,Ke,Le);Ke+=l.b+l.c,Le+=l.d+l.a,Tm(e,Ke,Le,!1,!0)}function Wwe(e,t){iet();var s,a,l,f,v,w,S;if(this.a=new W1e(this),this.b=e,this.c=t,this.f=RK(bs((Nc(),vo),t)),this.f.dc())if((w=Mve(vo,e))==t)for(this.e=!0,this.d=new Fe,this.f=new OBe,this.f.Dc(Jg),h(aF(FA(vo,Bu(e)),""),26)==e&&this.f.Dc(YC(vo,Bu(e))),l=eJ(vo,e).Ic();l.Ob();)switch(a=h(l.Pb(),170),im(bs(vo,a))){case 4:{this.d.Dc(a);break}case 5:{this.f.Ec(RK(bs(vo,a)));break}}else if(Ho(),h(t,65).Jj())for(this.e=!0,this.f=null,this.d=new Fe,v=0,S=(e.i==null&&Kd(e),e.i).length;v=0&&v0&&(S=(Bn(0,t.length),t.charCodeAt(0)),S!=64)){if(S==37&&(M=t.lastIndexOf("%"),C=!1,M!=0&&(M==R-1||(C=(Bn(M+1,t.length),t.charCodeAt(M+1)==46))))){if(v=t.substr(1,M-1),he=kt("%",v)?null:Xwe(v),a=0,C)try{a=Uu(t.substr(M+2),ko,Ir)}catch(me){throw me=ni(me),ue(me,127)?(w=me,ee(new w$(w))):ee(me)}for(J=Mbe(e.Rg());J.Ob();)if(q=X$(J),ue(q,502)&&(l=h(q,581),de=l.d,(he==null?de==null:kt(he,de))&&a--==0))return l;return null}if(A=t.lastIndexOf("."),V=A==-1?t:t.substr(0,A),s=0,A!=-1)try{s=Uu(t.substr(A+1),ko,Ir)}catch(me){if(me=ni(me),ue(me,127))V=t;else throw ee(me)}for(V=kt("%",V)?null:Xwe(V),W=Mbe(e.Rg());W.Ob();)if(q=X$(W),ue(q,191)&&(f=h(q,191),oe=f.ne(),(V==null?oe==null:kt(V,oe))&&s--==0))return f;return null}return Ypt(e,t)}function Eyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe;for(Mn(t,"Comment pre-processing",1),s=0,S=new Q(e.a);S.a0&&(e.p=-(e.p-1)),e.p>ko&&Tge(t,e.p-w0),v=t.q.getDate(),SA(t,1),e.k>=0&&NJt(t,e.k),e.c>=0?SA(t,e.c):e.k>=0?(S=new Zbe(t.q.getFullYear()-w0,t.q.getMonth(),35),a=35-S.q.getDate(),SA(t,m.Math.min(a,v))):SA(t,v),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),qWt(t,e.f==24&&e.g?0:e.f),e.j>=0&&Ntn(t,e.j),e.n>=0&&Qtn(t,e.n),e.i>=0&&hQe(t,Po(Eo(kP(bc(t.q.getTime()),x1),x1),e.i)),e.a&&(l=new yj,Tge(l,l.q.getFullYear()-w0-80),sX(bc(t.q.getTime()),bc(l.q.getTime()))&&Tge(t,l.q.getFullYear()-w0+100)),e.d>=0){if(e.c==-1)s=(7+e.d-t.q.getDay())%7,s>3&&(s-=7),w=t.q.getMonth(),SA(t,t.q.getDate()+s),t.q.getMonth()!=w&&SA(t,t.q.getDate()+(s>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>ko&&(f=t.q.getTimezoneOffset(),hQe(t,Po(bc(t.q.getTime()),(e.o-f)*60*x1))),!0}function Iyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn;for(Le=new Fe,q=new Q(e.b);q.a=t.length)return{done:!0};var l=t[a++];return{value:[l,s.get(l)],done:!1}}}},N0n()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,s){this.obj[":"+t]=s},e.prototype[ree]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var s in this.obj)s.charCodeAt(0)==58&&t.push(s.substring(1));return t}),e}function Ayn(e){Iwe();var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J;if(e==null)return null;if(M=e.length*8,M==0)return"";for(w=M%24,V=M/24|0,R=w!=0?V+1:V,f=null,f=ge(wl,Qd,24,R*4,15,1),C=0,A=0,t=0,s=0,a=0,v=0,l=0,S=0;S>24,C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,W=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,J=(a&-128)==0?a>>6<<24>>24:(a>>6^252)<<24>>24,f[v++]=_p[q],f[v++]=_p[W|C<<4],f[v++]=_p[A<<2|J],f[v++]=_p[a&63];return w==8?(t=e[l],C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,f[v++]=_p[q],f[v++]=_p[C<<4],f[v++]=61,f[v++]=61):w==16&&(t=e[l],s=e[l+1],A=(s&15)<<24>>24,C=(t&3)<<24>>24,q=(t&-128)==0?t>>2<<24>>24:(t>>2^192)<<24>>24,W=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,f[v++]=_p[q],f[v++]=_p[W|C<<4],f[v++]=_p[A<<2],f[v++]=61),Rl(f,0,f.length)}function k0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;if(l=G(t,(Be(),Dr)),!!ue(l,238)){for(q=h(l,34),W=t.e,R=new Ss(t.c),f=t.d,R.a+=f.b,R.b+=f.d,me=h(Ot(q,(Ye(),FV)),174),Pc(me,(su(),Az))&&(V=h(Ot(q,EEe),115),SUt(V,f.a),OUt(V,f.d),EUt(V,f.b),_Ut(V,f.c)),s=new Fe,A=new Q(t.a);A.a0&&Re(e.p,A),Re(e.o,A);t-=a,V=S+t,C+=t*e.e,Nl(e.a,w,Ue(V)),Nl(e.b,w,C),e.j=m.Math.max(e.j,V),e.k=m.Math.max(e.k,C),e.d+=t,t+=W}}function He(){He=H;var e;Hs=new YT(rI,0),Wt=new YT(SF,1),rn=new YT(hee,2),Sn=new YT(pee,3),Xt=new YT(gee,4),Tz=(Mt(),new KS((e=h(_f(Vo),9),new al(e,h(lf(e,e.length),9),0)))),yE=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[]))),vE=ip(Zr(rn,re(ne(Vo,1),ma,61,0,[]))),wE=ip(Zr(Sn,re(ne(Vo,1),ma,61,0,[]))),xE=ip(Zr(Xt,re(ne(Vo,1),ma,61,0,[]))),Gf=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[Sn]))),Cp=ip(Zr(rn,re(ne(Vo,1),ma,61,0,[Xt]))),z4=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[Xt]))),lx=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[rn]))),fx=ip(Zr(Sn,re(ne(Vo,1),ma,61,0,[Xt]))),ux=ip(Zr(rn,re(ne(Vo,1),ma,61,0,[Sn]))),Td=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[rn,Xt]))),Wf=ip(Zr(rn,re(ne(Vo,1),ma,61,0,[Sn,Xt]))),Ad=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[Sn,Xt]))),Id=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[rn,Sn]))),Lc=ip(Zr(Wt,re(ne(Vo,1),ma,61,0,[rn,Sn,Xt])))}function T0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;if(t.b!=0){for(V=new ci,w=null,q=null,a=ki(m.Math.floor(m.Math.log(t.b)*m.Math.LOG10E)+1),S=0,he=ar(t,0);he.b!=he.d.c;)for(oe=h(sr(he),83),Pe(q)!==Pe(G(oe,(la(),n9)))&&(q=Fn(G(oe,n9)),S=0),q!=null?w=q+art(S++,a):w=art(S++,a),_e(oe,n9,w),J=(l=ar(new qp(oe).a.d,0),new p3(l));cj(J.a);)W=h(sr(J.a),188).c,wi(V,W,V.c.b,V.c),_e(W,n9,w);for(R=new Un,v=0;v=S){pn(oe.b>0),oe.a.Xb(oe.c=--oe.b);break}else W.a>C&&(l?(Mi(l.b,W.b),l.a=m.Math.max(l.a,W.a),wu(oe)):(Re(W.b,M),W.c=m.Math.min(W.c,C),W.a=m.Math.max(W.a,S),l=W));l||(l=new MGe,l.c=C,l.a=S,Bv(oe,l),Re(l.b,M))}for(w=t.b,A=0,J=new Q(a);J.a0&&ba(l,-6)>=0){if(ba(l,0)>=0){for(f=s+On(l),w=A-1;w>=f;w--)M[w+1]=M[w];return M[++f]=46,S&&(M[--s]=45),Rl(M,s,A-s+1)}for(v=2;sX(v,Po(I5(l),1));v++)M[--s]=48;return M[--s]=46,M[--s]=48,S&&(M[--s]=45),Rl(M,s,A-s)}return q=s+1,a=A,R=new Dv,S&&(R.a+="-"),a-q>=1?(r0(R,M[s]),R.a+=".",R.a+=Rl(M,s+1,A-s-1)):R.a+=Rl(M,s,A-s),R.a+="E",ba(l,0)>0&&(R.a+="+"),R.a+=""+KC(l),R.a}function jyn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;for(Mn(s,"Polyline edge routing",1),J=Ae(Xe(G(t,(Ye(),sEe)))),V=Ae(Xe(G(t,nx))),l=Ae(Xe(G(t,tx))),a=m.Math.min(1,l/V),he=0,S=0,t.b.c.length!=0&&(me=Mht(h(st(t.b,0),29)),he=.4*a*me),w=new wo(t.b,0);w.b0&&(he-=V),$we(v,he),A=0,R=new Q(v.a);R.a0),w.a.Xb(w.c=--w.b)),S=.4*a*A,!f&&w.bt.d.c){if(V=e.c[t.a.d],J=e.c[M.a.d],V==J)continue;bf(cf(af(uf(sf(new Ol,1),100),V),J))}}}}}function Xwe(e){pJ();var t,s,a,l,f,v,w,S;if(e==null)return null;if(l=zd(e,mc(37)),l<0)return e;for(S=new ju(e.substr(0,l)),t=ge(Fc,L2,24,4,15,1),w=0,a=0,v=e.length;ll+2&&sQ((Bn(l+1,e.length),e.charCodeAt(l+1)),rIe,iIe)&&sQ((Bn(l+2,e.length),e.charCodeAt(l+2)),rIe,iIe))if(s=kYt((Bn(l+1,e.length),e.charCodeAt(l+1)),(Bn(l+2,e.length),e.charCodeAt(l+2))),l+=2,a>0?(s&192)==128?t[w++]=s<<24>>24:a=0:s>=128&&((s&224)==192?(t[w++]=s<<24>>24,a=2):(s&240)==224?(t[w++]=s<<24>>24,a=3):(s&248)==240&&(t[w++]=s<<24>>24,a=4)),a>0){if(w==a){switch(w){case 2:{r0(S,((t[0]&31)<<6|t[1]&63)&Ii);break}case 3:{r0(S,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ii);break}}w=0,a=0}}else{for(f=0;f0){if(v+a>e.length)return!1;w=VL(e.substr(0,v+a),t)}else w=VL(e,t);switch(f){case 71:return w=w2(e,v,re(ne(Qe,1),Oe,2,6,[cgt,ugt]),t),l.e=w,!0;case 77:return k0n(e,t,l,w,v);case 76:return C0n(e,t,l,w,v);case 69:return Edn(e,t,v,l);case 99:return kdn(e,t,v,l);case 97:return w=w2(e,v,re(ne(Qe,1),Oe,2,6,["AM","PM"]),t),l.b=w,!0;case 121:return I0n(e,t,v,w,s,l);case 100:return w<=0?!1:(l.c=w,!0);case 83:return w<0?!1:Vsn(w,v,t[0],l);case 104:w==12&&(w=0);case 75:case 72:return w<0?!1:(l.f=w,l.g=!1,!0);case 107:return w<0?!1:(l.f=w,l.g=!0,!0);case 109:return w<0?!1:(l.j=w,!0);case 115:return w<0?!1:(l.n=w,!0);case 90:if(vLe&&(q.c=Le-q.b),Re(v.d,new OK(q,Ame(v,q))),de=t==Wt?m.Math.max(de,W.b+C.b.pf().b):m.Math.min(de,W.b));for(de+=t==Wt?e.s:-e.s,he=Bme((v.e=de,v)),he>0&&(h(os(e.b,t),121).a.b=he),A=R.Ic();A.Ob();)C=h(A.Pb(),110),!(!C.c||C.c.d.c.length<=0)&&(q=C.c.i,q.c-=C.e.a,q.d-=C.e.b)}function Lyn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V;for(t=new Un,S=new bn(e);S.e!=S.i.gc();){for(w=h(yn(S),34),s=new Ro,Fr(Mne,w,s),V=new ZW,l=h(Fu(new Rt(null,new em(new mn(vn(jP(w).a.Ic(),new j)))),$et(V,Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[(gd(),Wu)])))),84),Qst(s,h(l.vc((Zt(),!0)),15),new JW),a=h(Fu(Kr(h(l.vc(!1),14).Jc(),new eG),Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[Wu]))),14),v=a.Ic();v.Ob();)f=h(v.Pb(),80),R=Oft(f),R&&(C=h(Xs(ks(t.f,R)),21),C||(C=Zht(R),ec(t.f,R,C)),Cs(s,C));for(l=h(Fu(new Rt(null,new em(new mn(vn(hp(w).a.Ic(),new j)))),$et(V,Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[Wu])))),84),Qst(s,h(l.vc(!0),15),new CN),a=h(Fu(Kr(h(l.vc(!1),14).Jc(),new tG),Ig(new xe,new be,new In,re(ne(uu,1),je,132,0,[Wu]))),14),M=a.Ic();M.Ob();)A=h(M.Pb(),80),R=_ft(A),R&&(C=h(Xs(ks(t.f,R)),21),C||(C=Zht(R),ec(t.f,R,C)),Cs(s,C))}}function Fyn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V;if(e.e.a.$b(),e.f.a.$b(),e.c.c=ge(hn,rt,1,0,5,1),e.i.c=ge(hn,rt,1,0,5,1),e.g.a.$b(),t)for(v=new Q(t.a);v.a=1&&(Te-C>0&&q>=0?(_c(M,M.i+me),Mc(M,M.j+S*C)):Te-C<0&&V>=0&&(_c(M,M.i+me*Te),Mc(M,M.j+S)));return Ts(e,(Or(),hE),(xu(),f=h(_f(y9),9),new al(f,h(lf(f,f.length),9),0))),new ot(Le,A)}function O0t(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q;if(V=Gi(Oa(h(le((!e.b&&(e.b=new Ht(Vn,e,4,7)),e.b),0),93))),q=Gi(Oa(h(le((!e.c&&(e.c=new Ht(Vn,e,5,8)),e.c),0),93))),M=V==q,w=new Qo,t=h(Ot(e,(eL(),P8e)),74),!!t&&t.b>=2){if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i==0)s=(Hb(),l=new RN,l),_n((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),s);else if((!e.a&&(e.a=new $e(ai,e,6,6)),e.a).i>1)for(R=new A3((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));R.e!=R.i.gc();)N8(R);zP(t,h(le((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),0),201))}if(M)for(a=new bn((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));a.e!=a.i.gc();)for(s=h(yn(a),201),C=new bn((!s.a&&(s.a=new _i(Xl,s,5)),s.a));C.e!=C.i.gc();)S=h(yn(C),463),w.a=m.Math.max(w.a,S.a),w.b=m.Math.max(w.b,S.b);for(v=new bn((!e.n&&(e.n=new $e(Ds,e,1,7)),e.n));v.e!=v.i.gc();)f=h(yn(v),137),A=h(Ot(f,p9),8),A&&rd(f,A.a,A.b),M&&(w.a=m.Math.max(w.a,f.i+f.g),w.b=m.Math.max(w.b,f.j+f.f));return w}function Byn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt;for(he=t.c.length,l=new I2(e.a,s,null,null),dt=ge(oo,ls,24,he,15,1),W=ge(oo,ls,24,he,15,1),q=ge(oo,ls,24,he,15,1),J=0,w=0;wdt[S]&&(J=S),M=new Q(e.a.b);M.aV&&(f&&(pg(Le,R),pg(dt,Ue(C.b-1))),kr=s.b,zi+=R+t,R=0,A=m.Math.max(A,s.b+s.c+En)),_c(w,kr),Mc(w,zi),A=m.Math.max(A,kr+En+s.c),R=m.Math.max(R,M),kr+=En+t;if(A=m.Math.max(A,a),tn=zi+R+s.a,tneh,ct=m.Math.abs(R.b-q.b)>eh,(!s&&dt&&ct||s&&(dt||ct))&&dr(J.a,me)),Cs(J.a,a),a.b==0?R=me:R=(pn(a.b!=0),h(a.c.b.c,8)),gin(V,M,W),Pat(l)==Ke&&(hs(Ke.i)!=l.a&&(W=new Qo,dye(W,hs(Ke.i),de)),_e(J,Mre,W)),Hfn(V,J,de),A.a.xc(V,A);Ao(J,Te),uo(J,Ke)}for(C=A.a.ec().Ic();C.Ob();)S=h(C.Pb(),18),Ao(S,null),uo(S,null);wn(t)}function _0t(e,t){var s,a,l,f,v,w,S,C,A,M;for(S=h(h(Br(e.r,t),21),81),f=lfn(e,t),w=S.Ic();w.Ob();)if(v=h(w.Pb(),110),!(!v.c||v.c.d.c.length<=0)){switch(M=v.b.pf(),C=v.c,A=C.i,A.b=(l=C.n,C.e.a+l.b+l.c),A.a=(a=C.n,C.e.b+a.d+a.a),t.g){case 1:v.a?(A.c=(M.a-A.b)/2,Df(C,(Kc(),T0))):f?(A.c=-A.b-e.s,Df(C,(Kc(),vf))):(A.c=M.a+e.s,Df(C,(Kc(),ch))),A.d=-A.a-e.s,Hd(C,(pc(),yf));break;case 3:v.a?(A.c=(M.a-A.b)/2,Df(C,(Kc(),T0))):f?(A.c=-A.b-e.s,Df(C,(Kc(),vf))):(A.c=M.a+e.s,Df(C,(Kc(),ch))),A.d=M.b+e.s,Hd(C,(pc(),Uf));break;case 2:v.a?(s=e.u?A.a:h(st(C.d,0),183).pf().b,A.d=(M.b-s)/2,Hd(C,(pc(),A0))):f?(A.d=-A.a-e.s,Hd(C,(pc(),yf))):(A.d=M.b+e.s,Hd(C,(pc(),Uf))),A.c=M.a+e.s,Df(C,(Kc(),ch));break;case 4:v.a?(s=e.u?A.a:h(st(C.d,0),183).pf().b,A.d=(M.b-s)/2,Hd(C,(pc(),A0))):f?(A.d=-A.a-e.s,Hd(C,(pc(),yf))):(A.d=M.b+e.s,Hd(C,(pc(),Uf))),A.c=-A.b-e.s,Df(C,(Kc(),vf))}f=!1}}function M0t(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;if(e.gc()==1)return h(e.Xb(0),229);if(e.gc()<=0)return new l$;for(l=e.Ic();l.Ob();){for(s=h(l.Pb(),229),q=0,A=Ir,M=Ir,S=ko,C=ko,V=new Q(s.e);V.aw&&(he=0,me+=v+oe,v=0),Ogn(W,s,he,me),t=m.Math.max(t,he+J.a),v=m.Math.max(v,J.b),he+=J.a+oe;return W}function D0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q;switch(A=new Tc,e.a.g){case 3:R=h(G(t.e,(Be(),ib)),14),V=h(G(t.j,ib),14),q=h(G(t.f,ib),14),s=h(G(t.e,Z2),14),a=h(G(t.j,Z2),14),l=h(G(t.f,Z2),14),v=new Fe,Mi(v,R),V.Hc(new tLe),Mi(v,ue(V,151)?z3(h(V,151)):ue(V,131)?h(V,131).a:ue(V,53)?new Fb(V):new Nv(V)),Mi(v,q),f=new Fe,Mi(f,s),Mi(f,ue(a,151)?z3(h(a,151)):ue(a,131)?h(a,131).a:ue(a,53)?new Fb(a):new Nv(a)),Mi(f,l),_e(t.f,ib,v),_e(t.f,Z2,f),_e(t.f,C6e,t.f),_e(t.e,ib,null),_e(t.e,Z2,null),_e(t.j,ib,null),_e(t.j,Z2,null);break;case 1:Cs(A,t.e.a),dr(A,t.i.n),Cs(A,Ag(t.j.a)),dr(A,t.a.n),Cs(A,t.f.a);break;default:Cs(A,t.e.a),Cs(A,Ag(t.j.a)),Cs(A,t.f.a)}Dl(t.f.a),Cs(t.f.a,A),Ao(t.f,t.e.c),w=h(G(t.e,(Ye(),ws)),74),C=h(G(t.j,ws),74),S=h(G(t.f,ws),74),(!!w||!!C||!!S)&&(M=new Tc,$0e(M,S),$0e(M,C),$0e(M,w),_e(t.f,ws,M)),Ao(t.j,null),uo(t.j,null),Ao(t.e,null),uo(t.e,null),gs(t.a,null),gs(t.i,null),t.g&&D0t(e,t.g)}function Hyn(e){Iwe();var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J;if(e==null||(f=x$(e),q=Xon(f),q%4!=0))return null;if(W=q/4|0,W==0)return ge(Fc,L2,24,0,15,1);for(M=null,t=0,s=0,a=0,l=0,v=0,w=0,S=0,C=0,V=0,R=0,A=0,M=ge(Fc,L2,24,W*3,15,1);V>4)<<24>>24,M[R++]=((s&15)<<4|a>>2&15)<<24>>24,M[R++]=(a<<6|l)<<24>>24}return!NT(v=f[A++])||!NT(w=f[A++])?null:(t=Od[v],s=Od[w],S=f[A++],C=f[A++],Od[S]==-1||Od[C]==-1?S==61&&C==61?(s&15)!=0?null:(J=ge(Fc,L2,24,V*3+1,15,1),Sa(M,0,J,0,V*3),J[R]=(t<<2|s>>4)<<24>>24,J):S!=61&&C==61?(a=Od[S],(a&3)!=0?null:(J=ge(Fc,L2,24,V*3+2,15,1),Sa(M,0,J,0,V*3),J[R++]=(t<<2|s>>4)<<24>>24,J[R]=((s&15)<<4|a>>2&15)<<24>>24,J)):null:(a=Od[S],l=Od[C],M[R++]=(t<<2|s>>4)<<24>>24,M[R++]=((s&15)<<4|a>>2&15)<<24>>24,M[R++]=(a<<6|l)<<24>>24,M))}function qyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te;for(Mn(t,gbt,1),q=h(G(e,(Ye(),yp)),216),l=new Q(e.b);l.a=2){for(W=!0,R=new Q(f.j),s=h(Y(R),11),V=null;R.a0&&(l=h(st(J.c.a,Le-1),10),v=e.i[l.p],dt=m.Math.ceil(Kw(e.n,l,J)),f=Te.a.e-J.d.d-(v.a.e+l.o.b+l.d.a)-dt),C=pi,Le0&&Ke.a.e.e-Ke.a.a-(Ke.b.e.e-Ke.b.a)<0,q=he.a.e.e-he.a.a-(he.b.e.e-he.b.a)<0&&Ke.a.e.e-Ke.a.a-(Ke.b.e.e-Ke.b.a)>0,V=he.a.e.e+he.b.aKe.b.e.e+Ke.a.a,me=0,!W&&!q&&(R?f+M>0?me=M:C-a>0&&(me=a):V&&(f+w>0?me=w:C-de>0&&(me=de))),Te.a.e+=me,Te.b&&(Te.d.e+=me),!1))}function j0t(e,t,s){var a,l,f,v,w,S,C,A,M,R;if(a=new cl(t.of().a,t.of().b,t.pf().a,t.pf().b),l=new T3,e.c)for(v=new Q(t.uf());v.aC&&(a.a+=JQe(ge(wl,Qd,24,-C,15,1))),a.a+="Is",zd(S,mc(32))>=0)for(l=0;l=a.o.b/2}else de=!M;de?(oe=h(G(a,(Be(),_4)),14),oe?R?f=oe:(l=h(G(a,C4),14),l?oe.gc()<=l.gc()?f=oe:f=l:(f=new Fe,_e(a,C4,f))):(f=new Fe,_e(a,_4,f))):(l=h(G(a,(Be(),C4)),14),l?M?f=l:(oe=h(G(a,_4),14),oe?l.gc()<=oe.gc()?f=l:f=oe:(f=new Fe,_e(a,_4,f))):(f=new Fe,_e(a,C4,f))),f.Dc(e),_e(e,(Be(),SV),s),t.d==s?(uo(t,null),s.e.c.length+s.g.c.length==0&&Rs(s,null),Kin(s)):(Ao(t,null),s.e.c.length+s.g.c.length==0&&Rs(s,null)),Dl(t.a)}function Kyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr;for(de=new wo(e.b,0),A=t.Ic(),q=0,C=h(A.Pb(),20).a,Te=0,s=new Ro,Ke=new s1;de.b=e.a&&(a=jbn(e,de),A=m.Math.max(A,a.b),me=m.Math.max(me,a.d),Re(w,new fo(de,a)));for(dt=new Fe,C=0;C0),J.a.Xb(J.c=--J.b),ct=new Ml(e.b),Bv(J,ct),pn(J.b0?(C=0,J&&(C+=w),C+=(ct-1)*v,he&&(C+=w),dt&&!!he&&(C=m.Math.max(C,Fpn(he,v,de,Ke))),C0){for(R=A<100?null:new Gp(A),C=new Lbe(t),q=C.g,oe=ge(Pn,rr,24,A,15,1),a=0,me=new fm(A),l=0;l=0;)if(V!=null?Pr(V,q[S]):Pe(V)===Pe(q[S])){oe.length<=a&&(J=oe,oe=ge(Pn,rr,24,2*oe.length,15,1),Sa(J,0,oe,0,a)),oe[a++]=l,_n(me,q[S]);break e}if(V=V,Pe(V)===Pe(w))break}}if(C=me,q=me.g,A=a,a>oe.length&&(J=oe,oe=ge(Pn,rr,24,a,15,1),Sa(J,0,oe,0,a)),a>0){for(he=!0,f=0;f=0;)J3(e,oe[v]);if(a!=A){for(l=A;--l>=a;)J3(C,l);J=oe,oe=ge(Pn,rr,24,a,15,1),Sa(J,0,oe,0,a)}t=C}}}else for(t=Wcn(e,t),l=e.i;--l>=0;)t.Fc(e.g[l])&&(J3(e,l),he=!0);if(he){if(oe!=null){for(s=t.gc(),M=s==1?o8(e,4,t.Ic().Pb(),null,oe[0],W):o8(e,6,t,oe,oe[0],W),R=s<100?null:new Gp(s),l=t.Ic();l.Ob();)V=l.Pb(),R=Upe(e,h(V,71),R);R?(R.zi(M),R.Ai()):Ar(e.e,M)}else{for(R=hXt(t.gc()),l=t.Ic();l.Ob();)V=l.Pb(),R=Upe(e,h(V,71),R);R&&R.Ai()}return!0}else return!1}function Jyn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he;for(s=new mlt(t),s.a||Vgn(t),C=H0n(t),S=new Kv,J=new o1t,W=new Q(t.a);W.a0||s.o==Ed&&l0?(M=h(st(R.c.a,v-1),10),dt=Kw(e.b,R,M),J=R.n.b-R.d.d-(M.n.b+M.o.b+M.d.a+dt)):J=R.n.b-R.d.d,C=m.Math.min(J,C),v0?V=K3(w):V=fP(K3(w)),e.Ze(sE,V)),C=new Qo,R=!1,e.Ye(Gm)?(dpe(C,h(e.Xe(Gm),8)),R=!0):eGt(C,v.a/2,v.b/2),V.g){case 4:_e(A,wc,(gl(),M0)),_e(A,CV,(_g(),G2)),A.o.b=v.b,W<0&&(A.o.a=-W),Li(M,(He(),rn)),R||(C.a=v.a),C.a-=v.a;break;case 2:_e(A,wc,(gl(),zy)),_e(A,CV,(_g(),Q6)),A.o.b=v.b,W<0&&(A.o.a=-W),Li(M,(He(),Xt)),R||(C.a=0);break;case 1:_e(A,rb,(g1(),K2)),A.o.a=v.a,W<0&&(A.o.b=-W),Li(M,(He(),Sn)),R||(C.b=v.b),C.b-=v.b;break;case 3:_e(A,rb,(g1(),k4)),A.o.a=v.a,W<0&&(A.o.b=-W),Li(M,(He(),Wt)),R||(C.b=0)}if(dpe(M.n,C),_e(A,Gm,C),t==db||t==Hh||t==Ra){if(q=0,t==db&&e.Ye(ab))switch(V.g){case 1:case 2:q=h(e.Xe(ab),20).a;break;case 3:case 4:q=-h(e.Xe(ab),20).a}else switch(V.g){case 4:case 2:q=f.b,t==Hh&&(q/=l.b);break;case 1:case 3:q=f.a,t==Hh&&(q/=l.a)}_e(A,Hm,q)}return _e(A,ea,V),A}function nwn(){Nhe();function e(a){var l=this;this.dispatch=function(f){var v=f.data;switch(v.cmd){case"algorithms":var w=Fme((Mt(),new zS(new o1(V0.b))));a.postMessage({id:v.id,data:w});break;case"categories":var S=Fme((Mt(),new zS(new o1(V0.c))));a.postMessage({id:v.id,data:S});break;case"options":var C=Fme((Mt(),new zS(new o1(V0.d))));a.postMessage({id:v.id,data:C});break;case"register":fvn(v.algorithms),a.postMessage({id:v.id});break;case"layout":Wbn(v.graph,v.layoutOptions||{},v.options||{}),a.postMessage({id:v.id,data:v.graph});break}},this.saveDispatch=function(f){try{l.dispatch(f)}catch(v){a.postMessage({id:f.data.id,error:v})}}}function t(a){var l=this;this.dispatcher=new e({postMessage:function(f){l.onmessage({data:f})}}),this.postMessage=function(f){setTimeout(function(){l.dispatcher.saveDispatch({data:f})},0)}}if(typeof document===aee&&typeof self!==aee){var s=new e(self);self.onmessage=s.saveDispatch}else typeof u!==aee&&u.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),u.exports={default:t,Worker:t})}function rwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct;if(s=Ae(Xe(G(e.a.j,(Ye(),tEe)))),s<-1||!e.a.i||HC(h(G(e.a.o,yi),100))||Fs(e.a.o,(He(),rn)).gc()<2&&Fs(e.a.o,Xt).gc()<2)return!0;if(e.a.c.Of())return!1;for(Te=0,me=0,he=new Fe,S=e.a.e,C=0,A=S.length;C=s}function iwn(e){e.N||(e.N=!0,e.b=Qs(e,0),li(e.b,0),li(e.b,1),li(e.b,2),e.bb=Qs(e,1),li(e.bb,0),li(e.bb,1),e.fb=Qs(e,2),li(e.fb,3),li(e.fb,4),qr(e.fb,5),e.qb=Qs(e,3),li(e.qb,0),qr(e.qb,1),qr(e.qb,2),li(e.qb,3),li(e.qb,4),qr(e.qb,5),li(e.qb,6),e.a=pr(e,4),e.c=pr(e,5),e.d=pr(e,6),e.e=pr(e,7),e.f=pr(e,8),e.g=pr(e,9),e.i=pr(e,10),e.j=pr(e,11),e.k=pr(e,12),e.n=pr(e,13),e.o=pr(e,14),e.p=pr(e,15),e.q=pr(e,16),e.s=pr(e,17),e.r=pr(e,18),e.t=pr(e,19),e.u=pr(e,20),e.v=pr(e,21),e.w=pr(e,22),e.B=pr(e,23),e.A=pr(e,24),e.C=pr(e,25),e.D=pr(e,26),e.F=pr(e,27),e.G=pr(e,28),e.H=pr(e,29),e.J=pr(e,30),e.I=pr(e,31),e.K=pr(e,32),e.M=pr(e,33),e.L=pr(e,34),e.P=pr(e,35),e.Q=pr(e,36),e.R=pr(e,37),e.S=pr(e,38),e.T=pr(e,39),e.U=pr(e,40),e.V=pr(e,41),e.X=pr(e,42),e.W=pr(e,43),e.Y=pr(e,44),e.Z=pr(e,45),e.$=pr(e,46),e._=pr(e,47),e.ab=pr(e,48),e.cb=pr(e,49),e.db=pr(e,50),e.eb=pr(e,51),e.gb=pr(e,52),e.hb=pr(e,53),e.ib=pr(e,54),e.jb=pr(e,55),e.kb=pr(e,56),e.lb=pr(e,57),e.mb=pr(e,58),e.nb=pr(e,59),e.ob=pr(e,60),e.pb=pr(e,61))}function own(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me;if(de=0,t.f.a==0)for(J=new Q(e);J.aW&&(f&&(pg(Le,V),pg(dt,Ue(A.b-1)),Re(e.d,q),w.c=ge(hn,rt,1,0,5,1)),kr=s.b,zi+=V+t,V=0,M=m.Math.max(M,s.b+s.c+En)),w.c[w.c.length]=S,clt(S,kr,zi),M=m.Math.max(M,kr+En+s.c),V=m.Math.max(V,R),kr+=En+t,q=S;if(Mi(e.a,w),Re(e.d,h(st(w,w.c.length-1),157)),M=m.Math.max(M,a),tn=zi+V+s.a,tn1&&(v=m.Math.min(v,m.Math.abs(h(Ff(w.a,1),8).b-A.b)))));else for(W=new Q(t.j);W.al&&(f=R.a-l,v=Ir,a.c=ge(hn,rt,1,0,5,1),l=R.a),R.a>=l&&(a.c[a.c.length]=w,w.a.b>1&&(v=m.Math.min(v,m.Math.abs(h(Ff(w.a,w.a.b-2),8).b-R.b)))));if(a.c.length!=0&&f>t.o.a/2&&v>t.o.b/2){for(V=new xa,Rs(V,t),Li(V,(He(),Wt)),V.n.a=t.o.a/2,oe=new xa,Rs(oe,t),Li(oe,Sn),oe.n.a=t.o.a/2,oe.n.b=t.o.b,S=new Q(a);S.a=C.b?Ao(w,oe):Ao(w,V)):(C=h(bYt(w.a),8),J=w.a.b==0?ld(w.c):h(tR(w.a),8),J.b>=C.b?uo(w,oe):uo(w,V)),M=h(G(w,(Ye(),ws)),74),M&&ay(M,C,!0);t.n.a=l-t.o.a/2}}function uwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr,zi,Ku,xl;if(sn=null,En=t,tn=tit(e,eit(s),En),b8(tn,f1(En,ih)),kr=h(i2(e.g,t4(l1(En,Ate))),34),R=l1(En,"sourcePort"),a=null,R&&(a=t4(R)),zi=h(i2(e.j,a),122),!kr)throw w=A8(En),q="An edge must have a source node (edge id: '"+w,W=q+D6,ee(new Fd(W));if(!!zi&&!Th(cd(zi),kr))throw S=f1(En,ih),J="The source port of an edge must be a port of the edge's source node (edge id: '"+S,oe=J+D6,ee(new Fd(oe));if(dt=(!tn.b&&(tn.b=new Ht(Vn,tn,4,7)),tn.b),f=null,zi?f=zi:f=kr,_n(dt,f),Ku=h(i2(e.g,t4(l1(En,X3e))),34),V=l1(En,"targetPort"),l=null,V&&(l=t4(V)),xl=h(i2(e.j,l),122),!Ku)throw M=A8(En),de="An edge must have a target node (edge id: '"+M,he=de+D6,ee(new Fd(he));if(!!xl&&!Th(cd(xl),Ku))throw C=f1(En,ih),me="The target port of an edge must be a port of the edge's target node (edge id: '"+C,Te=me+D6,ee(new Fd(Te));if(ct=(!tn.c&&(tn.c=new Ht(Vn,tn,5,8)),tn.c),v=null,xl?v=xl:v=Ku,_n(ct,v),(!tn.b&&(tn.b=new Ht(Vn,tn,4,7)),tn.b).i==0||(!tn.c&&(tn.c=new Ht(Vn,tn,5,8)),tn.c).i==0)throw A=f1(En,ih),Le=Mmt+A,Ke=Le+D6,ee(new Fd(Ke));return $L(En,tn),h1n(En,tn),sn=fQ(e,En,tn),sn}function lwn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn;return M=vbn(lc(e,(He(),Tz)),t),q=b2(lc(e,yE),t),me=b2(lc(e,wE),t),dt=OL(lc(e,xE),t),R=OL(lc(e,vE),t),de=b2(lc(e,z4),t),W=b2(lc(e,lx),t),Le=b2(lc(e,fx),t),Te=b2(lc(e,ux),t),ct=OL(lc(e,Cp),t),oe=b2(lc(e,Gf),t),he=b2(lc(e,Td),t),Ke=b2(lc(e,Wf),t),sn=OL(lc(e,Ad),t),V=OL(lc(e,Id),t),J=b2(lc(e,Lc),t),s=a2(re(ne(oo,1),ls,24,15,[de.a,dt.a,Le.a,sn.a])),a=a2(re(ne(oo,1),ls,24,15,[q.a,M.a,me.a,J.a])),l=oe.a,f=a2(re(ne(oo,1),ls,24,15,[W.a,R.a,Te.a,V.a])),C=a2(re(ne(oo,1),ls,24,15,[de.b,q.b,W.b,he.b])),S=a2(re(ne(oo,1),ls,24,15,[dt.b,M.b,R.b,J.b])),A=ct.b,w=a2(re(ne(oo,1),ls,24,15,[Le.b,me.b,Te.b,Ke.b])),c0(lc(e,Tz),s+l,C+A),c0(lc(e,Lc),s+l,C+A),c0(lc(e,yE),s+l,0),c0(lc(e,wE),s+l,C+A+S),c0(lc(e,xE),0,C+A),c0(lc(e,vE),s+l+a,C+A),c0(lc(e,lx),s+l+a,0),c0(lc(e,fx),0,C+A+S),c0(lc(e,ux),s+l+a,C+A+S),c0(lc(e,Cp),0,C),c0(lc(e,Gf),s,0),c0(lc(e,Wf),0,C+A+S),c0(lc(e,Id),s+l+a,0),v=new Qo,v.a=a2(re(ne(oo,1),ls,24,15,[s+a+l+f,ct.a,he.a,Ke.a])),v.b=a2(re(ne(oo,1),ls,24,15,[C+S+A+w,oe.b,sn.b,V.b])),v}function fwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J;for(W=new Fe,R=new Q(e.d.b);R.al.d.d+l.d.a?A.f.d=!0:(A.f.d=!0,A.f.a=!0))),a.b!=a.d.c&&(t=s);A&&(f=h(qn(e.f,v.d.i),56),t.bf.d.d+f.d.a?A.f.d=!0:(A.f.d=!0,A.f.a=!0))}for(w=new mn(vn(_s(V).a.Ic(),new j));Qn(w);)v=h($n(w),18),v.a.b!=0&&(t=h(tR(v.a),8),v.d.j==(He(),Wt)&&(J=new q8(t,new ot(t.a,l.d.d),l,v),J.f.a=!0,J.a=v.d,W.c[W.c.length]=J),v.d.j==Sn&&(J=new q8(t,new ot(t.a,l.d.d+l.d.a),l,v),J.f.d=!0,J.a=v.d,W.c[W.c.length]=J))}return W}function dwn(e,t,s){var a,l,f,v,w,S,C,A,M;if(Mn(s,"Network simplex node placement",1),e.e=t,e.n=h(G(t,(Be(),Q2)),302),_mn(e),Tln(e),mi($s(new Rt(null,new Lt(e.e.b,16)),new hLe),new Qqe(e)),mi(Kr($s(Kr($s(new Rt(null,new Lt(e.e.b,16)),new _Le),new MLe),new DLe),new NLe),new Yqe(e)),_t(It(G(e.e,(Ye(),UI))))&&(v=Pa(s,1),Mn(v,"Straight Edges Pre-Processing",1),Yvn(e),wn(v)),scn(e.f),f=h(G(t,KO),20).a*e.f.a.c.length,tJ(The(Ahe(pK(e.f),f),!1),Pa(s,1)),e.d.a.gc()!=0){for(v=Pa(s,1),Mn(v,"Flexible Where Space Processing",1),w=h(Yb(AR(fc(new Rt(null,new Lt(e.f.a,16)),new bLe),new aLe)),20).a,S=h(Yb(TR(fc(new Rt(null,new Lt(e.f.a,16)),new mLe),new cLe)),20).a,C=S-w,A=Qb(new dg,e.f),M=Qb(new dg,e.f),bf(cf(af(sf(uf(new Ol,2e4),C),A),M)),mi(Kr(Kr($K(e.i),new vLe),new yLe),new Utt(w,A,C,M)),l=e.d.a.ec().Ic();l.Ob();)a=h(l.Pb(),211),a.g=1;tJ(The(Ahe(pK(e.f),f),!1),Pa(v,1)),wn(v)}_t(It(G(t,UI)))&&(v=Pa(s,1),Mn(v,"Straight Edges Post-Processing",1),pdn(e),wn(v)),Nvn(e),e.e=null,e.f=null,e.i=null,e.c=null,Xc(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),wn(s)}function hwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te;for(w=new Q(e.a.b);w.a0)if(a=M.gc(),C=ki(m.Math.floor((a+1)/2))-1,l=ki(m.Math.ceil((a+1)/2))-1,t.o==Ed)for(A=l;A>=C;A--)t.a[me.p]==me&&(W=h(M.Xb(A),46),q=h(W.a,10),!e5(s,W.b)&&V>e.b.e[q.p]&&(t.a[q.p]=me,t.g[me.p]=t.g[q.p],t.a[me.p]=t.g[me.p],t.f[t.g[me.p].p]=(Zt(),!!(_t(t.f[t.g[me.p].p])&me.k==(nn(),Ki))),V=e.b.e[q.p]));else for(A=C;A<=l;A++)t.a[me.p]==me&&(oe=h(M.Xb(A),46),J=h(oe.a,10),!e5(s,oe.b)&&V=48&&t<=57){for(a=t-48;l=48&&t<=57;)if(a=a*10+t-48,a<0)throw ee(new Ln(Xn((jn(),e4e))))}else throw ee(new Ln(Xn((jn(),ovt))));if(s=a,t==44){if(l>=e.j)throw ee(new Ln(Xn((jn(),avt))));if((t=po(e.i,l++))>=48&&t<=57){for(s=t-48;l=48&&t<=57;)if(s=s*10+t-48,s<0)throw ee(new Ln(Xn((jn(),e4e))));if(a>s)throw ee(new Ln(Xn((jn(),cvt))))}else s=-1}if(t!=125)throw ee(new Ln(Xn((jn(),svt))));e.nl(l)?(f=(Er(),Er(),new Zv(9,f)),e.d=l+1):(f=(Er(),Er(),new Zv(3,f)),e.d=l),f.$l(a),f.Zl(s),xr(e)}}return f}function pwn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn;for(ct=new ci,Le=new ci,J=-1,S=new Q(e);S.a=q&&(de>q&&(V.c=ge(hn,rt,1,0,5,1),q=de),V.c[V.c.length]=v);V.c.length!=0&&(R=h(st(V,JQ(t,V.c.length)),128),tn.a.zc(R)!=null,R.s=W++,qye(R,ct,Le),V.c=ge(hn,rt,1,0,5,1))}for(me=e.c.length+1,w=new Q(e);w.asn.s&&(wu(s),hc(sn.i,a),a.c>0&&(a.a=sn,Re(sn.t,a),a.b=Ke,Re(Ke.i,a)))}function F0t(e,t,s,a,l){var f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn;for(W=new Va(t.b),me=new Va(t.b),R=new Va(t.b),dt=new Va(t.b),J=new Va(t.b),Ke=ar(t,0);Ke.b!=Ke.d.c;)for(Te=h(sr(Ke),11),w=new Q(Te.g);w.a0,oe=Te.g.c.length>0,C&&oe?R.c[R.c.length]=Te:C?W.c[W.c.length]=Te:oe&&(me.c[me.c.length]=Te);for(q=new Q(W);q.aC&&(qt(C,t.c.length),h(t.c[C],180)).a.c.length==0;)hc(t,(qt(C,t.c.length),t.c[C]));if(t.c.length>C)S=h(st((qt(C,t.c.length),h(t.c[C],180)).a,0),181);else{S=null;break}}if(!S)continue;if(fgn(t,A,l,S,R,s,C)){M=!0;continue}if(R){if(nmn(t,A,l,S,s,C)){M=!0;continue}else if(pme(A,l)){l.c=!0,M=!0;continue}}else if(pme(A,l)){l.c=!0,M=!0;continue}if(M)continue}if(pme(A,l)){l.c=!0,M=!0,S&&(S.k=!1);continue}else bL(l.q)}return M}function Am(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J;if(s==null)return null;if(e.a!=t.vj())throw ee(new Gt(_6+t.ne()+jm));if(ue(t,450)){if(J=O0n(h(t,659),s),!J)throw ee(new Gt(Ite+s+"' is not a valid enumerator of '"+t.ne()+"'"));return J}switch(op((Nc(),vo),t).Zk()){case 2:{s=Ma(s,!1);break}case 3:{s=Ma(s,!0);break}}if(a=op(vo,t).Vk(),a)return a.vj().Ih().Fh(a,s);if(R=op(vo,t).Xk(),R){for(J=new Fe,C=gQ(s),A=0,M=C.length;A1)for(q=new A3((!e.a&&(e.a=new $e(ai,e,6,6)),e.a));q.e!=q.i.gc();)N8(q);for(v=h(le((!e.a&&(e.a=new $e(ai,e,6,6)),e.a),0),201),J=kr,kr>Te+me?J=Te+me:krLe+W?oe=Le+W:ziTe-me&&JLe-W&&oekr+En?dt=kr+En:Tezi+Ke?ct=zi+Ke:Lekr-En&&dtzi-Ke&&cts&&(R=s-1),V=$_+Su(t,24)*rO*M-M/2,V<0?V=1:V>a&&(V=a-1),l=(Hb(),S=new $N,S),N$(l,R),D$(l,V),_n((!v.a&&(v.a=new _i(Xl,v,5)),v.a),l)}function kJ(e,t){fJ();var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr;if(dt=e.e,q=e.d,l=e.a,dt==0)switch(t){case 0:return"0";case 1:return k6;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Le=new Wp,t<0?Le.a+="0E+":Le.a+="0E",Le.a+=-t,Le.a}if(he=q*10+1+7,me=ge(wl,Qd,24,he+1,15,1),s=he,q==1)if(w=l[0],w<0){kr=$i(w,es);do W=kr,kr=kP(kr,10),me[--s]=48+On(p0(W,Eo(kr,10)))&Ii;while(ba(kr,0)!=0)}else{kr=w;do W=kr,kr=kr/10|0,me[--s]=48+(W-kr*10)&Ii;while(kr!=0)}else{sn=ge(Pn,rr,24,q,15,1),En=q,Sa(l,0,sn,0,En);e:for(;;){for(Ke=0,C=En-1;C>=0;C--)tn=Po(c1(Ke,32),$i(sn[C],es)),oe=Hun(tn),sn[C]=On(oe),Ke=On(t0(oe,32));de=On(Ke),J=s;do me[--s]=48+de%10&Ii;while((de=de/10|0)!=0&&s!=0);for(a=9-J+s,S=0;S0;S++)me[--s]=48;for(M=En-1;sn[M]==0;M--)if(M==0)break e;En=M+1}for(;me[s]==48;)++s}if(V=dt<0,v=he-s-t-1,t==0)return V&&(me[--s]=45),Rl(me,s,he-s);if(t>0&&v>=-6){if(v>=0){for(A=s+v,R=he-1;R>=A;R--)me[R+1]=me[R];return me[++A]=46,V&&(me[--s]=45),Rl(me,s,he-s+1)}for(M=2;M<-v+1;M++)me[--s]=48;return me[--s]=46,me[--s]=48,V&&(me[--s]=45),Rl(me,s,he-s)}return ct=s+1,f=he,Te=new Dv,V&&(Te.a+="-"),f-ct>=1?(r0(Te,me[s]),Te.a+=".",Te.a+=Rl(me,s+1,he-s-1)):Te.a+=Rl(me,s,he-s),Te.a+="E",v>0&&(Te.a+="+"),Te.a+=""+v,Te.a}function U0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le;switch(e.c=t,e.g=new Un,s=new aC(e.c),a=new HN(s),Lme(a),he=Fn(Ot(e.c,(IP(),pCe))),S=h(Ot(e.c,Fie),313),Te=h(Ot(e.c,Bie),423),v=h(Ot(e.c,fCe),476),me=h(Ot(e.c,Lie),424),e.j=Ae(Xe(Ot(e.c,j5t))),w=e.a,S.g){case 0:w=e.a;break;case 1:w=e.b;break;case 2:w=e.i;break;case 3:w=e.e;break;case 4:w=e.f;break;default:throw ee(new Gt(eB+(S.f!=null?S.f:""+S.g)))}if(e.d=new Int(w,Te,v),_e(e.d,(F5(),_I),It(Ot(e.c,D5t))),e.d.c=_t(It(Ot(e.c,dCe))),VR(e.c).i==0)return e.d;for(M=new bn(VR(e.c));M.e!=M.i.gc();){for(A=h(yn(M),34),V=A.g/2,R=A.f/2,Le=new ot(A.i+V,A.j+R);sd(e.g,Le);)Fv(Le,(m.Math.random()-.5)*eh,(m.Math.random()-.5)*eh);W=h(Ot(A,(Or(),h_)),141),J=new Unt(Le,new cl(Le.a-V-e.j/2-W.b,Le.b-R-e.j/2-W.d,A.g+e.j+(W.b+W.c),A.f+e.j+(W.d+W.a))),Re(e.d.i,J),Fr(e.g,Le,new fo(J,A))}switch(me.g){case 0:if(he==null)e.d.d=h(st(e.d.i,0),63);else for(de=new Q(e.d.i);de.a1&&wi(A,oe,A.c.b,A.c),T$(l)));oe=de}return A}function q0t(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe;for(a=new Fe,w=new Fe,J=t/2,V=e.gc(),l=h(e.Xb(0),8),oe=h(e.Xb(1),8),q=BZ(l.a,l.b,oe.a,oe.b,J),Re(a,(qt(0,q.c.length),h(q.c[0],8))),Re(w,(qt(1,q.c.length),h(q.c[1],8))),C=2;C=0;S--)dr(s,(qt(S,v.c.length),h(v.c[S],8)));return s}function xwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V;if(v=!0,M=null,a=null,l=null,t=!1,V=hEt,C=null,f=null,w=0,S=WQ(e,w,oIe,sIe),S=0&&kt(e.substr(w,2),"//")?(w+=2,S=WQ(e,w,E9,k9),a=e.substr(w,S-w),w=S):M!=null&&(w==e.length||(Bn(w,e.length),e.charCodeAt(w)!=47))&&(v=!1,S=npe(e,mc(35),w),S==-1&&(S=e.length),a=e.substr(w,S-w),w=S);if(!s&&w0&&po(A,A.length-1)==58&&(l=A,w=S)),w0?En+1:1);for(v=new Q(Le.g);v.a0?En+1:1)}e.c[C]==0?dr(e.d,W):e.a[C]==0&&dr(e.e,W),++C}for(q=-1,V=1,M=new Fe,kr=h(G(t,(Be(),O4)),228);Mp>0;){for(;e.d.b!=0;)Ku=h(yK(e.d),10),e.b[Ku.p]=q--,ywe(e,Ku),--Mp;for(;e.e.b!=0;)xl=h(yK(e.e),10),e.b[xl.p]=V++,ywe(e,xl),--Mp;if(Mp>0){for(R=ko,de=new Q(he);de.a=R&&(me>R&&(M.c=ge(hn,rt,1,0,5,1),R=me),M.c[M.c.length]=W));A=h(st(M,JQ(kr,M.c.length)),10),e.b[A.p]=V++,ywe(e,A),--Mp}}for(zi=he.c.length+1,C=0;Ce.b[tv]&&(Ey(a,!0),_e(t,kV,(Zt(),!0)));e.a=null,e.c=null,e.b=null,Dl(e.e),Dl(e.d),wn(s)}function Ewn(e,t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr,zi,Ku,xl;for(zi=new Fe,q=new Q(t.b);q.a=e.j){e.a=-1,e.c=1;return}if(t=po(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(a=10,e.d>=e.j)throw ee(new Ln(Xn((jn(),sB))));e.a=po(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||po(e.i,e.d)!=63)break;if(++e.d>=e.j)throw ee(new Ln(Xn((jn(),Bte))));switch(t=po(e.i,e.d++),t){case 58:a=13;break;case 61:a=14;break;case 33:a=15;break;case 91:a=19;break;case 62:a=18;break;case 60:if(e.d>=e.j)throw ee(new Ln(Xn((jn(),Bte))));if(t=po(e.i,e.d++),t==61)a=16;else if(t==33)a=17;else throw ee(new Ln(Xn((jn(),Vmt))));break;case 35:for(;e.d=e.j)throw ee(new Ln(Xn((jn(),sB))));e.a=po(e.i,e.d++);break;default:a=0}e.c=a}function kwn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En;if(Ke=h(G(e,(Ye(),yi)),100),Ke!=(lo(),Cd)&&Ke!=L0){for(q=e.b,V=q.c.length,A=new Va((Rf(V+2,PJ),k$(Po(Po(5,V+2),(V+2)/10|0)))),W=new Va((Rf(V+2,PJ),k$(Po(Po(5,V+2),(V+2)/10|0)))),Re(A,new Un),Re(A,new Un),Re(W,new Fe),Re(W,new Fe),Le=new Fe,t=0;tv)throw ee(new Ln(Xn((jn(),evt))));_a(w,s,v)}}}l=!1}if(e.c==1)throw ee(new Ln(Xn((jn(),aB))));return x2(w),G8(w),e.b=0,xr(e),w}function Cwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te;if(Mn(s,"Coffman-Graham Layering",1),t.a.c.length==0){wn(s);return}for(Te=h(G(t,(Ye(),pEe)),20).a,S=0,v=0,R=new Q(t.a);R.a=Te||!nan(oe,a))&&(a=Qnt(t,A)),gs(oe,a),f=new mn(vn(_s(oe).a.Ic(),new j));Qn(f);)l=h($n(f),18),!e.a[l.p]&&(W=l.c.i,--e.e[W.p],e.e[W.p]==0&&C5(s6(V,W)));for(C=A.c.length-1;C>=0;--C)Re(t.b,(qt(C,A.c.length),h(A.c[C],29)));t.a.c=ge(hn,rt,1,0,5,1),wn(s)}function Iwn(e){Dn(e.c,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#decimal"])),Dn(e.d,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#integer"])),Dn(e.e,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#boolean"])),Dn(e.f,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EBoolean",br,"EBoolean:Object"])),Dn(e.i,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#byte"])),Dn(e.g,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Dn(e.j,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EByte",br,"EByte:Object"])),Dn(e.n,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EChar",br,"EChar:Object"])),Dn(e.t,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#double"])),Dn(e.u,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EDouble",br,"EDouble:Object"])),Dn(e.F,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#float"])),Dn(e.G,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EFloat",br,"EFloat:Object"])),Dn(e.I,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#int"])),Dn(e.J,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EInt",br,"EInt:Object"])),Dn(e.N,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#long"])),Dn(e.O,Yn,re(ne(Qe,1),Oe,2,6,[Co,"ELong",br,"ELong:Object"])),Dn(e.Z,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#short"])),Dn(e.$,Yn,re(ne(Qe,1),Oe,2,6,[Co,"EShort",br,"EShort:Object"])),Dn(e._,Yn,re(ne(Qe,1),Oe,2,6,[Co,"http://www.w3.org/2001/XMLSchema#string"]))}function Twn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn;for(v=new ci,me=h(G(s,(Ye(),Gu)),108),Cs(v,(!t.a&&(t.a=new $e(bi,t,10,11)),t.a));v.b!=0;)C=h(v.b==0?null:(pn(v.b!=0),fl(v,v.a.a)),34),W=!_t(It(Ot(C,sb))),W&&(M=(!C.a&&(C.a=new $e(bi,C,10,11)),C.a).i!=0,V=Gln(C),R=Pe(Ot(C,Uy))===Pe((m1(),kp)),sn=!s0(C,(Or(),u9))||kt(Fn(Ot(C,u9)),fn),de=null,sn&&R&&(M||V)&&(de=ipt(C),_e(de,Gu,me),Lo(de,GO)&&lXe(new Nme(Ae(Xe(G(de,GO)))),de),h(Ot(C,ob),174).gc()!=0&&(A=de,mi(new Rt(null,(!C.c&&(C.c=new $e(fu,C,9,9)),new Lt(C.c,16))),new VHe(A)),s1t(C,de))),Te=s,Le=h(qn(e.a,Gi(C)),10),Le&&(Te=Le.e),oe=m0t(e,C,Te),de&&(oe.e=de,de.e=oe,Cs(v,(!C.a&&(C.a=new $e(bi,C,10,11)),C.a))));for(wi(v,t,v.c.b,v.c);v.b!=0;){for(f=h(v.b==0?null:(pn(v.b!=0),fl(v,v.a.a)),34),S=new bn((!f.b&&(f.b=new $e(Hi,f,12,3)),f.b));S.e!=S.i.gc();)w=h(yn(S),80),j1t(w),dt=Oa(h(le((!w.b&&(w.b=new Ht(Vn,w,4,7)),w.b),0),93)),ct=Oa(h(le((!w.c&&(w.c=new Ht(Vn,w,5,8)),w.c),0),93)),!(_t(It(Ot(w,sb)))||_t(It(Ot(dt,sb)))||_t(It(Ot(ct,sb))))&&(q=Em(w)&&_t(It(Ot(dt,ex)))&&_t(It(Ot(w,Hy))),he=f,q||r2(ct,dt)?he=dt:r2(dt,ct)&&(he=ct),Te=s,Le=h(qn(e.a,he),10),Le&&(Te=Le.e),J=Qwe(e,w,he,Te),_e(J,(Be(),b6e),a0n(e,w,t,s)));if(R=Pe(Ot(f,Uy))===Pe((m1(),kp)),R)for(l=new bn((!f.a&&(f.a=new $e(bi,f,10,11)),f.a));l.e!=l.i.gc();)a=h(yn(l),34),sn=!s0(a,(Or(),u9))||kt(Fn(Ot(a,u9)),fn),Ke=Pe(Ot(a,Uy))===Pe(kp),sn&&Ke&&wi(v,a,v.c.b,v.c)}}function Awn(e){var t,s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En;if(e.c.length==1)return qt(0,e.c.length),h(e.c[0],135);if(e.c.length<=0)return new g$;for(S=new Q(e);S.aM&&(tn=0,En+=A+Ke,A=0),q1n(Te,v,tn,En),t=m.Math.max(t,tn+Le.a),A=m.Math.max(A,Le.b),tn+=Le.a+Ke;for(me=new Un,s=new Un,ct=new Q(e);ct.azZ(f))&&(M=f);for(!M&&(M=(qt(0,J.c.length),h(J.c[0],182))),W=new Q(t.b);W.a=-1900?1:0,s>=4?Kn(e,re(ne(Qe,1),Oe,2,6,[cgt,ugt])[w]):Kn(e,re(ne(Qe,1),Oe,2,6,["BC","AD"])[w]);break;case 121:Nan(e,s,a);break;case 77:Pgn(e,s,a);break;case 107:S=l.q.getHours(),S==0?_h(e,24,s):_h(e,S,s);break;case 83:z1n(e,s,l);break;case 69:A=a.q.getDay(),s==5?Kn(e,re(ne(Qe,1),Oe,2,6,["S","M","T","W","T","F","S"])[A]):s==4?Kn(e,re(ne(Qe,1),Oe,2,6,[UJ,HJ,qJ,WJ,GJ,XJ,KJ])[A]):Kn(e,re(ne(Qe,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[A]);break;case 97:l.q.getHours()>=12&&l.q.getHours()<24?Kn(e,re(ne(Qe,1),Oe,2,6,["AM","PM"])[1]):Kn(e,re(ne(Qe,1),Oe,2,6,["AM","PM"])[0]);break;case 104:M=l.q.getHours()%12,M==0?_h(e,12,s):_h(e,M,s);break;case 75:R=l.q.getHours()%12,_h(e,R,s);break;case 72:V=l.q.getHours(),_h(e,V,s);break;case 99:q=a.q.getDay(),s==5?Kn(e,re(ne(Qe,1),Oe,2,6,["S","M","T","W","T","F","S"])[q]):s==4?Kn(e,re(ne(Qe,1),Oe,2,6,[UJ,HJ,qJ,WJ,GJ,XJ,KJ])[q]):s==3?Kn(e,re(ne(Qe,1),Oe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[q]):_h(e,q,1);break;case 76:W=a.q.getMonth(),s==5?Kn(e,re(ne(Qe,1),Oe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[W]):s==4?Kn(e,re(ne(Qe,1),Oe,2,6,[MJ,DJ,NJ,jJ,s4,RJ,$J,LJ,FJ,BJ,VJ,zJ])[W]):s==3?Kn(e,re(ne(Qe,1),Oe,2,6,["Jan","Feb","Mar","Apr",s4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[W]):_h(e,W+1,s);break;case 81:J=a.q.getMonth()/3|0,s<4?Kn(e,re(ne(Qe,1),Oe,2,6,["Q1","Q2","Q3","Q4"])[J]):Kn(e,re(ne(Qe,1),Oe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[J]);break;case 100:oe=a.q.getDate(),_h(e,oe,s);break;case 109:C=l.q.getMinutes(),_h(e,C,s);break;case 115:v=l.q.getSeconds(),_h(e,v,s);break;case 122:s<4?Kn(e,f.c[0]):Kn(e,f.c[1]);break;case 118:Kn(e,f.b);break;case 90:s<3?Kn(e,Kdn(f)):s==3?Kn(e,Zdn(f)):Kn(e,Jdn(f.a));break;default:return!1}return!0}function Qwe(e,t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr;if(j1t(t),S=h(le((!t.b&&(t.b=new Ht(Vn,t,4,7)),t.b),0),93),A=h(le((!t.c&&(t.c=new Ht(Vn,t,5,8)),t.c),0),93),w=Oa(S),C=Oa(A),v=(!t.a&&(t.a=new $e(ai,t,6,6)),t.a).i==0?null:h(le((!t.a&&(t.a=new $e(ai,t,6,6)),t.a),0),201),Ke=h(qn(e.a,w),10),tn=h(qn(e.a,C),10),dt=null,En=null,ue(S,199)&&(Le=h(qn(e.a,S),299),ue(Le,11)?dt=h(Le,11):ue(Le,10)&&(Ke=h(Le,10),dt=h(st(Ke.j,0),11))),ue(A,199)&&(sn=h(qn(e.a,A),299),ue(sn,11)?En=h(sn,11):ue(sn,10)&&(tn=h(sn,10),En=h(st(tn.j,0),11))),!Ke||!tn)throw ee(new PT("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(W=new om,Is(W,t),_e(W,(Be(),Dr),t),_e(W,(Ye(),ws),null),V=h(G(a,ja),21),Ke==tn&&V.Dc((Jo(),LI)),dt||(Te=(as(),rc),ct=null,!!v&&Gw(h(G(Ke,yi),100))&&(ct=new ot(v.j,v.k),nit(ct,KR(t)),Rit(ct,s),r2(C,w)&&(Te=$c,Rr(ct,Ke.n))),dt=Dpt(Ke,ct,Te,a)),En||(Te=(as(),$c),kr=null,!!v&&Gw(h(G(tn,yi),100))&&(kr=new ot(v.b,v.c),nit(kr,KR(t)),Rit(kr,s)),En=Dpt(tn,kr,Te,hs(tn))),Ao(W,dt),uo(W,En),(dt.e.c.length>1||dt.g.c.length>1||En.e.c.length>1||En.g.c.length>1)&&V.Dc((Jo(),$I)),R=new bn((!t.n&&(t.n=new $e(Ds,t,1,7)),t.n));R.e!=R.i.gc();)if(M=h(yn(R),137),!_t(It(Ot(M,sb)))&&!!M.a)switch(J=CQ(M),Re(W.b,J),h(G(J,fh),271).g){case 1:case 2:V.Dc((Jo(),J6));break;case 0:V.Dc((Jo(),Z6)),_e(J,fh,(hd(),gE))}if(f=h(G(a,rE),333),oe=h(G(a,LV),312),l=f==(B3(),FO)||oe==(M8(),eie),!!v&&(!v.a&&(v.a=new _i(Xl,v,5)),v.a).i!=0&&l){for(de=AP(v),q=new Tc,me=ar(de,0);me.b!=me.d.c;)he=h(sr(me),8),dr(q,new Ss(he));_e(W,w6e,q)}return W}function _wn(e){e.gb||(e.gb=!0,e.b=Qs(e,0),li(e.b,18),qr(e.b,19),e.a=Qs(e,1),li(e.a,1),qr(e.a,2),qr(e.a,3),qr(e.a,4),qr(e.a,5),e.o=Qs(e,2),li(e.o,8),li(e.o,9),qr(e.o,10),qr(e.o,11),qr(e.o,12),qr(e.o,13),qr(e.o,14),qr(e.o,15),qr(e.o,16),qr(e.o,17),qr(e.o,18),qr(e.o,19),qr(e.o,20),qr(e.o,21),qr(e.o,22),qr(e.o,23),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),ms(e.o),e.p=Qs(e,3),li(e.p,2),li(e.p,3),li(e.p,4),li(e.p,5),qr(e.p,6),qr(e.p,7),ms(e.p),ms(e.p),e.q=Qs(e,4),li(e.q,8),e.v=Qs(e,5),qr(e.v,9),ms(e.v),ms(e.v),ms(e.v),e.w=Qs(e,6),li(e.w,2),li(e.w,3),li(e.w,4),qr(e.w,5),e.B=Qs(e,7),qr(e.B,1),ms(e.B),ms(e.B),ms(e.B),e.Q=Qs(e,8),qr(e.Q,0),ms(e.Q),e.R=Qs(e,9),li(e.R,1),e.S=Qs(e,10),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),ms(e.S),e.T=Qs(e,11),qr(e.T,10),qr(e.T,11),qr(e.T,12),qr(e.T,13),qr(e.T,14),ms(e.T),ms(e.T),e.U=Qs(e,12),li(e.U,2),li(e.U,3),qr(e.U,4),qr(e.U,5),qr(e.U,6),qr(e.U,7),ms(e.U),e.V=Qs(e,13),qr(e.V,10),e.W=Qs(e,14),li(e.W,18),li(e.W,19),li(e.W,20),qr(e.W,21),qr(e.W,22),qr(e.W,23),e.bb=Qs(e,15),li(e.bb,10),li(e.bb,11),li(e.bb,12),li(e.bb,13),li(e.bb,14),li(e.bb,15),li(e.bb,16),qr(e.bb,17),ms(e.bb),ms(e.bb),e.eb=Qs(e,16),li(e.eb,2),li(e.eb,3),li(e.eb,4),li(e.eb,5),li(e.eb,6),li(e.eb,7),qr(e.eb,8),qr(e.eb,9),e.ab=Qs(e,17),li(e.ab,0),li(e.ab,1),e.H=Qs(e,18),qr(e.H,0),qr(e.H,1),qr(e.H,2),qr(e.H,3),qr(e.H,4),qr(e.H,5),ms(e.H),e.db=Qs(e,19),qr(e.db,2),e.c=pr(e,20),e.d=pr(e,21),e.e=pr(e,22),e.f=pr(e,23),e.i=pr(e,24),e.g=pr(e,25),e.j=pr(e,26),e.k=pr(e,27),e.n=pr(e,28),e.r=pr(e,29),e.s=pr(e,30),e.t=pr(e,31),e.u=pr(e,32),e.fb=pr(e,33),e.A=pr(e,34),e.C=pr(e,35),e.D=pr(e,36),e.F=pr(e,37),e.G=pr(e,38),e.I=pr(e,39),e.J=pr(e,40),e.L=pr(e,41),e.M=pr(e,42),e.N=pr(e,43),e.O=pr(e,44),e.P=pr(e,45),e.X=pr(e,46),e.Y=pr(e,47),e.Z=pr(e,48),e.$=pr(e,49),e._=pr(e,50),e.cb=pr(e,51),e.K=pr(e,52))}function Or(){Or=H;var e,t;u9=new Xr(Kbt),pE=new Xr(Ybt),BCe=(Dh(),Uie),f6t=new $t(Nxe,BCe),new CT,R4=new $t(d4,null),d6t=new Xr(M3e),zCe=(hy(),Zr(Wie,re(ne(Gie,1),je,290,0,[qie]))),yz=new $t(GF,zCe),f_=new $t(gO,(Zt(),!1)),UCe=(cs(),A1),l9=new $t($xe,UCe),WCe=(cp(),ioe),qCe=new $t(pO,WCe),KCe=new $t(JF,!1),YCe=(m1(),Cz),ax=new $t(qF,YCe),s8e=new bg(12),j0=new $t(Gg,s8e),wz=new $t(uO,!1),QCe=new $t(ite,!1),f8e=(lo(),L0),g_=new $t(Iee,f8e),L4=new Xr(KF),Ez=new Xr(aO),noe=new Xr(TF),roe=new Xr(cO),ZCe=new Tc,cx=new $t(Xxe,ZCe),p6t=new $t(Qxe,!1),g6t=new $t(Zxe,!1),new Xr(Qbt),JCe=new oC,h_=new $t(e3e,JCe),Sz=new $t(Mxe,!1),new CT,x6t=new $t(Zbt,1),new $t(Jbt,!0),Ue(0),new $t(emt,Ue(100)),new $t(tmt,!1),Ue(0),new $t(nmt,Ue(4e3)),Ue(0),new $t(rmt,Ue(400)),new $t(imt,!1),new $t(omt,!1),new $t(smt,!0),new $t(amt,!1),VCe=(gL(),coe),h6t=new $t(_3e,VCe),S6t=new $t(xxe,10),E6t=new $t(Sxe,10),g8e=new $t(wee,20),k6t=new $t(Exe,10),b8e=new $t(Cee,2),C6t=new $t(kxe,10),m8e=new $t(Cxe,0),kz=new $t(Txe,5),v8e=new $t(Ixe,1),fb=new $t(Py,20),I6t=new $t(Axe,10),x8e=new $t(Pxe,10),F4=new Xr(Oxe),w8e=new MQe,y8e=new $t(t3e,w8e),v6t=new Xr(rte),a8e=!1,m6t=new $t(nte,a8e),t8e=new bg(5),e8e=new $t(Fxe,t8e),n8e=(vy(),t=h(_f(ns),9),new al(t,h(lf(t,t.length),9),0)),xz=new $t(Lxe,n8e),u8e=(h2(),$0),c8e=new $t(Uxe,u8e),Zie=new Xr(Hxe),Jie=new Xr(qxe),eoe=new Xr(Wxe),Qie=new Xr(Gxe),r8e=(e=h(_f(y9),9),new al(e,h(lf(e,e.length),9),0)),hE=new $t(WF,r8e),o8e=Tt((su(),SE)),$4=new $t(tte,o8e),i8e=new ot(0,0),p_=new $t(XF,i8e),b6t=new $t(D3e,!1),HCe=(hd(),gE),Kie=new $t(Kxe,HCe),Xie=new $t(AF,!1),new Xr(cmt),Ue(1),new $t(umt,null),l8e=new Xr(Jxe),w6t=new Xr(Yxe),p8e=(He(),Hs),f9=new $t(Dxe,p8e),lu=new Xr(_xe),d8e=(ou(),Tt(F0)),b_=new $t(Bxe,d8e),toe=new $t(Vxe,!1),h8e=new $t(zxe,!0),d_=new $t(jxe,!1),Yie=new $t(Rxe,!1),GCe=new $t(xee,1),XCe=(LL(),soe),new $t(lmt,XCe),y6t=!0}function Be(){Be=H;var e,t;Dr=new Xr(N2e),b6e=new Xr("coordinateOrigin"),_re=new Xr("processors"),g6e=new Vi("compoundNode",(Zt(),!1)),zO=new Vi("insideConnections",!1),w6e=new Xr("originalBendpoints"),x6e=new Xr("originalDummyNodePosition"),S6e=new Xr("originalLabelEdge"),HO=new Xr("representedLabels"),FI=new Xr("endLabels"),I4=new Xr("endLabel.origin"),P4=new Vi("labelSide",(zu(),y_)),Y2=new Vi("maxEdgeThickness",0),_0=new Vi("reversed",!1),O4=new Xr(j2e),Hf=new Vi("longEdgeSource",null),ql=new Vi("longEdgeTarget",null),Vy=new Vi("longEdgeHasLabelDummies",!1),UO=new Vi("longEdgeBeforeLabelDummy",!1),CV=new Vi("edgeConstraint",(_g(),pre)),Um=new Xr("inLayerLayoutUnit"),rb=new Vi("inLayerConstraint",(g1(),VO)),A4=new Vi("inLayerSuccessorConstraint",new Fe),y6e=new Vi("inLayerSuccessorConstraintBetweenNonDummies",!1),Yc=new Xr("portDummy"),EV=new Vi("crossingHint",Ue(0)),ja=new Vi("graphProperties",(t=h(_f(xre),9),new al(t,h(lf(t,t.length),9),0))),ea=new Vi("externalPortSide",(He(),Hs)),v6e=new Vi("externalPortSize",new Qo),Ire=new Xr("externalPortReplacedDummies"),IV=new Xr("externalPortReplacedDummy"),T4=new Vi("externalPortConnections",(e=h(_f(Vo),9),new al(e,h(lf(e,e.length),9),0))),Hm=new Vi(Fgt,0),p6e=new Xr("barycenterAssociates"),_4=new Xr("TopSideComments"),C4=new Xr("BottomSideComments"),SV=new Xr("CommentConnectionPort"),Are=new Vi("inputCollect",!1),Ore=new Vi("outputCollect",!1),kV=new Vi("cyclic",!1),m6e=new Xr("crossHierarchyMap"),Mre=new Xr("targetOffset"),new Vi("splineLabelSize",new Qo),Q2=new Xr("spacings"),AV=new Vi("partitionConstraint",!1),zm=new Xr("breakingPoint.info"),C6e=new Xr("splines.survivingEdge"),ib=new Xr("splines.route.start"),Z2=new Xr("splines.edgeChain"),k6e=new Xr("originalPortConstraints"),tE=new Xr("selfLoopHolder"),nE=new Xr("splines.nsPortY"),Sd=new Xr("modelOrder"),Pre=new Xr("longEdgeTargetNode"),TV=new Vi("firstTryWithInitialOrder",!1),Tre=new Xr("layerConstraints.hiddenNodes"),E6e=new Xr("layerConstraints.opposidePort")}function Zwe(){Zwe=H,P6e=(Mg(),Ky),Ext=new $t(z2e,P6e),N6e=(HA(),gV),Lxt=new $t(U2e,N6e),Yxt=new $t(H2e,(Zt(),!1)),B6e=(s$(),Cre),e3t=new $t(MF,B6e),g3t=new $t(q2e,!1),b3t=new $t(W2e,!0),yxt=new $t(G2e,!1),X6e=(LA(),rie),_3t=new $t(X2e,X6e),Ue(1),F3t=new $t(K2e,Ue(7)),B3t=new $t(Y2e,!1),D6e=(P$(),dre),$xt=new $t(Mee,D6e),U6e=(RL(),Qre),p3t=new $t(hO,U6e),V6e=(gl(),qO),s3t=new $t(Q2e,V6e),Ue(-1),o3t=new $t(Z2e,Ue(-1)),Ue(-1),a3t=new $t(J2e,Ue(-1)),Ue(-1),c3t=new $t(Dee,Ue(4)),Ue(-1),l3t=new $t(Nee,Ue(2)),z6e=(E2(),WV),h3t=new $t(jee,z6e),Ue(0),d3t=new $t(Ree,Ue(0)),r3t=new $t($ee,Ue(Ir)),M6e=(B3(),E4),Rxt=new $t(uI,M6e),Oxt=new $t(Lee,.1),Nxt=new $t(Fee,!1),Ue(-1),Mxt=new $t(exe,Ue(-1)),Ue(-1),Dxt=new $t(txe,Ue(-1)),Ue(0),kxt=new $t(nxe,Ue(40)),_6e=(L5(),Ere),Axt=new $t(Bee,_6e),O6e=BO,Cxt=new $t(DF,O6e),G6e=(M8(),WI),O3t=new $t(N2,G6e),x3t=new Xr(NF),H6e=(RA(),mV),m3t=new $t(Vee,H6e),q6e=(CP(),vV),y3t=new $t(zee,q6e),new CT,k3t=new $t(Uee,.3),I3t=new Xr(Hee),W6e=(fy(),qV),T3t=new $t(qee,W6e),$6e=(G$(),oie),Uxt=new $t(rxe,$6e),L6e=(_A(),sie),Hxt=new $t(ixe,L6e),F6e=(X5(),KI),qxt=new $t(jF,F6e),Gxt=new $t(RF,.2),Vxt=new $t(Wee,2),j3t=new $t(oxe,null),$3t=new $t(sxe,10),R3t=new $t(axe,10),L3t=new $t(cxe,20),Ue(0),M3t=new $t(uxe,Ue(0)),Ue(0),D3t=new $t(lxe,Ue(0)),Ue(0),N3t=new $t(fxe,Ue(0)),wxt=new $t(Gee,!1),A6e=(a6(),RI),Sxt=new $t(dxe,A6e),T6e=(b$(),lre),xxt=new $t(hxe,T6e),Zxt=new $t($F,!1),Ue(0),Qxt=new $t(Xee,Ue(16)),Ue(0),Jxt=new $t(Kee,Ue(5)),Q6e=(Y$(),uie),s4t=new $t(k1,Q6e),V3t=new $t(LF,10),H3t=new $t(FF,1),Y6e=(j$(),pV),Q3t=new $t(lI,Y6e),G3t=new Xr(Yee),K6e=Ue(1),Ue(0),K3t=new $t(Qee,K6e),Z6e=(H$(),cie),l4t=new $t(BF,Z6e),a4t=new Xr(VF),n4t=new $t(zF,!0),e4t=new $t(UF,2),i4t=new $t(Zee,!0),R6e=(BL(),bV),Bxt=new $t(pxe,R6e),j6e=(e4(),K6),Fxt=new $t(gxe,j6e),n3t=hre,t3t=FO,u3t=HV,f3t=HV,i3t=Yre,_xt=(m1(),kp),jxt=E4,Pxt=E4,Ixt=E4,Txt=kp,S3t=GI,E3t=WI,v3t=WI,w3t=WI,C3t=tie,P3t=GI,A3t=GI,Wxt=(cp(),B4),Xxt=B4,Kxt=KI,zxt=m_,z3t=uE,U3t=Yy,q3t=uE,W3t=Yy,Z3t=uE,J3t=Yy,X3t=fre,Y3t=pV,f4t=uE,d4t=Yy,c4t=uE,u4t=Yy,r4t=Yy,t4t=Yy,o4t=Yy}function ys(){ys=H,p5e=new Ci("DIRECTION_PREPROCESSOR",0),f5e=new Ci("COMMENT_PREPROCESSOR",1),DI=new Ci("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Wne=new Ci("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),D5e=new Ci("PARTITION_PREPROCESSOR",4),QB=new Ci("LABEL_DUMMY_INSERTER",5),oV=new Ci("SELF_LOOP_PREPROCESSOR",6),q6=new Ci("LAYER_CONSTRAINT_PREPROCESSOR",7),_5e=new Ci("PARTITION_MIDPROCESSOR",8),S5e=new Ci("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),P5e=new Ci("NODE_PROMOTION",10),H6=new Ci("LAYER_CONSTRAINT_POSTPROCESSOR",11),M5e=new Ci("PARTITION_POSTPROCESSOR",12),y5e=new Ci("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),N5e=new Ci("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),o5e=new Ci("BREAKING_POINT_INSERTER",15),Kne=new Ci("LONG_EDGE_SPLITTER",16),Qne=new Ci("PORT_SIDE_PROCESSOR",17),YB=new Ci("INVERTED_PORT_PROCESSOR",18),Yne=new Ci("PORT_LIST_SORTER",19),R5e=new Ci("SORT_BY_INPUT_ORDER_OF_MODEL",20),tV=new Ci("NORTH_SOUTH_PORT_PREPROCESSOR",21),s5e=new Ci("BREAKING_POINT_PROCESSOR",22),O5e=new Ci(fbt,23),$5e=new Ci(dbt,24),rV=new Ci("SELF_LOOP_PORT_RESTORER",25),j5e=new Ci("SINGLE_EDGE_GRAPH_WRAPPER",26),Gne=new Ci("IN_LAYER_CONSTRAINT_PROCESSOR",27),b5e=new Ci("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),T5e=new Ci("LABEL_AND_NODE_SIZE_PROCESSOR",29),I5e=new Ci("INNERMOST_NODE_MARGIN_CALCULATOR",30),sV=new Ci("SELF_LOOP_ROUTER",31),u5e=new Ci("COMMENT_NODE_MARGIN_CALCULATOR",32),KB=new Ci("END_LABEL_PREPROCESSOR",33),JB=new Ci("LABEL_DUMMY_SWITCHER",34),c5e=new Ci("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),U6=new Ci("LABEL_SIDE_SELECTOR",36),k5e=new Ci("HYPEREDGE_DUMMY_MERGER",37),w5e=new Ci("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),A5e=new Ci("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),NI=new Ci("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),d5e=new Ci("CONSTRAINTS_POSTPROCESSOR",41),l5e=new Ci("COMMENT_POSTPROCESSOR",42),C5e=new Ci("HYPERNODE_PROCESSOR",43),x5e=new Ci("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),Xne=new Ci("LONG_EDGE_JOINER",45),iV=new Ci("SELF_LOOP_POSTPROCESSOR",46),a5e=new Ci("BREAKING_POINT_REMOVER",47),eV=new Ci("NORTH_SOUTH_PORT_POSTPROCESSOR",48),E5e=new Ci("HORIZONTAL_COMPACTOR",49),ZB=new Ci("LABEL_DUMMY_REMOVER",50),m5e=new Ci("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),g5e=new Ci("END_LABEL_SORTER",52),nV=new Ci("REVERSED_EDGE_RESTORER",53),XB=new Ci("END_LABEL_POSTPROCESSOR",54),v5e=new Ci("HIERARCHICAL_NODE_RESIZER",55),h5e=new Ci("DIRECTION_POSTPROCESSOR",56)}function Mwn(e,t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct,sn,tn,En,kr,zi,Ku,xl,tv,Mp,$_,M9,L_,TE,koe,lkt,Coe,Dp,nv,AE,F_,B_,X4,Ioe,D9,fkt,BIe,rv,N9,Toe,K4,j9,cw,R9,Aoe,dkt;for(BIe=0,kr=t,xl=0,$_=kr.length;xl<$_;++xl)for(tn=kr[xl],nv=new Q(tn.j);nv.a0&&(e.a[Dp.p]=BIe++)}for(j9=0,zi=s,tv=0,M9=zi.length;tv0;){for(Dp=(pn(B_.b>0),h(B_.a.Xb(B_.c=--B_.b),11)),F_=0,w=new Q(Dp.e);w.a0&&(Dp.j==(He(),Wt)?(e.a[Dp.p]=j9,++j9):(e.a[Dp.p]=j9+L_+koe,++koe))}j9+=koe}for(AE=new Un,q=new s1,En=t,Ku=0,Mp=En.length;KuC.b&&(C.b=X4)):Dp.i.c==fkt&&(X4C.c&&(C.c=X4));for(d8(W,0,W.length,null),K4=ge(Pn,rr,24,W.length,15,1),a=ge(Pn,rr,24,j9+1,15,1),oe=0;oe0;)Ke%2>0&&(l+=Aoe[Ke+1]),Ke=(Ke-1)/2|0,++Aoe[Ke];for(ct=ge(Z4t,rt,359,W.length*2,0,1),me=0;me'?":kt(Vmt,e)?"'(?<' or '(? toIndex: ",f2e=", toIndex: ",d2e="Index: ",h2e=", Size: ",tI="org.eclipse.elk.alg.common",zr={62:1},xgt="org.eclipse.elk.alg.common.compaction",Sgt="Scanline/EventHandler",Fh="org.eclipse.elk.alg.common.compaction.oned",Egt="CNode belongs to another CGroup.",kgt="ISpacingsHandler/1",cee="The ",uee=" instance has been finished already.",Cgt="The direction ",Igt=" is not supported by the CGraph instance.",Tgt="OneDimensionalCompactor",Agt="OneDimensionalCompactor/lambda$0$Type",Pgt="Quadruplet",Ogt="ScanlineConstraintCalculator",_gt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",Mgt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",Dgt="ScanlineConstraintCalculator/Timestamp",Ngt="ScanlineConstraintCalculator/lambda$0$Type",Zd={169:1,45:1},lee="org.eclipse.elk.alg.common.compaction.options",zs="org.eclipse.elk.core.data",p2e="org.eclipse.elk.polyomino.traversalStrategy",g2e="org.eclipse.elk.polyomino.lowLevelSort",b2e="org.eclipse.elk.polyomino.highLevelSort",m2e="org.eclipse.elk.polyomino.fill",Fl={130:1},fee="polyomino",nI="org.eclipse.elk.alg.common.networksimplex",Bh={177:1,3:1,4:1},jgt="org.eclipse.elk.alg.common.nodespacing",Hg="org.eclipse.elk.alg.common.nodespacing.cellsystem",C6="CENTER",Rgt={210:1,324:1},v2e={3:1,4:1,5:1,586:1},u4="LEFT",l4="RIGHT",y2e="Vertical alignment cannot be null",w2e="BOTTOM",xF="org.eclipse.elk.alg.common.nodespacing.internal",rI="UNDEFINED",vd=.01,iO="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",$gt="LabelPlacer/lambda$0$Type",Lgt="LabelPlacer/lambda$1$Type",Fgt="portRatioOrPosition",I6="org.eclipse.elk.alg.common.overlaps",dee="DOWN",Jd="org.eclipse.elk.alg.common.polyomino",SF="NORTH",hee="EAST",pee="SOUTH",gee="WEST",EF="org.eclipse.elk.alg.common.polyomino.structures",x2e="Direction",bee="Grid is only of size ",mee=". Requested point (",vee=") is out of bounds.",kF=" Given center based coordinates were (",oO="org.eclipse.elk.graph.properties",Bgt="IPropertyHolder",S2e={3:1,94:1,134:1},f4="org.eclipse.elk.alg.common.spore",Vgt="org.eclipse.elk.alg.common.utils",qg={207:1},M2="org.eclipse.elk.core",zgt="Connected Components Compaction",Ugt="org.eclipse.elk.alg.disco",CF="org.eclipse.elk.alg.disco.graph",yee="org.eclipse.elk.alg.disco.options",E2e="CompactionStrategy",k2e="org.eclipse.elk.disco.componentCompaction.strategy",C2e="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",I2e="org.eclipse.elk.disco.debug.discoGraph",T2e="org.eclipse.elk.disco.debug.discoPolys",Hgt="componentCompaction",Wg="org.eclipse.elk.disco",wee="org.eclipse.elk.spacing.componentComponent",xee="org.eclipse.elk.edge.thickness",d4="org.eclipse.elk.aspectRatio",Gg="org.eclipse.elk.padding",D2="org.eclipse.elk.alg.disco.transform",See=1.5707963267948966,iI=17976931348623157e292,Ay={3:1,4:1,5:1,192:1},A2e={3:1,6:1,4:1,5:1,105:1,125:1},P2e="org.eclipse.elk.alg.force",O2e="ComponentsProcessor",qgt="ComponentsProcessor/1",sO="org.eclipse.elk.alg.force.graph",Wgt="Component Layout",_2e="org.eclipse.elk.alg.force.model",IF="org.eclipse.elk.force.model",M2e="org.eclipse.elk.force.iterations",D2e="org.eclipse.elk.force.repulsivePower",Eee="org.eclipse.elk.force.temperature",eh=.001,kee="org.eclipse.elk.force.repulsion",oI="org.eclipse.elk.alg.force.options",T6=1.600000023841858,yd="org.eclipse.elk.force",aO="org.eclipse.elk.priority",Py="org.eclipse.elk.spacing.nodeNode",Cee="org.eclipse.elk.spacing.edgeLabel",TF="org.eclipse.elk.randomSeed",cO="org.eclipse.elk.separateConnectedComponents",uO="org.eclipse.elk.interactive",Iee="org.eclipse.elk.portConstraints",AF="org.eclipse.elk.edgeLabels.inline",N2e="origin",j2e="random",Ggt="boundingBox.upLeft",Xgt="boundingBox.lowRight",R2e="org.eclipse.elk.stress.fixed",$2e="org.eclipse.elk.stress.desiredEdgeLength",L2e="org.eclipse.elk.stress.dimension",F2e="org.eclipse.elk.stress.epsilon",B2e="org.eclipse.elk.stress.iterationLimit",h4="org.eclipse.elk.stress",Kgt="ELK Stress",PF="org.eclipse.elk.alg.force.stress",Ygt="Layered layout",p4="org.eclipse.elk.alg.layered",lO="org.eclipse.elk.alg.layered.compaction.components",sI="org.eclipse.elk.alg.layered.compaction.oned",OF="org.eclipse.elk.alg.layered.compaction.oned.algs",Xg="org.eclipse.elk.alg.layered.compaction.recthull",pp="org.eclipse.elk.alg.layered.components",ma={3:1,6:1,4:1,9:1,5:1,120:1},Qgt={3:1,6:1,4:1,5:1,153:1,105:1,125:1},_F="org.eclipse.elk.alg.layered.compound",gi={52:1},nc="org.eclipse.elk.alg.layered.graph",Tee=" -> ",Zgt="Not supported by LGraph",Aee={3:1,6:1,4:1,5:1,468:1,153:1,105:1,125:1},Kg={3:1,6:1,4:1,5:1,153:1,213:1,223:1,105:1,125:1},Jgt={3:1,6:1,4:1,5:1,153:1,1915:1,223:1,105:1,125:1},ebt=`([{"' \r +`,tbt=`)]}"' \r +`,nbt="The given string contains parts that cannot be parsed as numbers.",fO="org.eclipse.elk.core.math",rbt={3:1,4:1,141:1,205:1,409:1},ibt={3:1,4:1,115:1,205:1,409:1},fn="org.eclipse.elk.layered",gp="org.eclipse.elk.alg.layered.graph.transform",obt="ElkGraphImporter",sbt="ElkGraphImporter/lambda$0$Type",abt="ElkGraphImporter/lambda$1$Type",cbt="ElkGraphImporter/lambda$2$Type",ubt="ElkGraphImporter/lambda$4$Type",lbt="Node margin calculation",Yt="org.eclipse.elk.alg.layered.intermediate",fbt="ONE_SIDED_GREEDY_SWITCH",dbt="TWO_SIDED_GREEDY_SWITCH",Pee="No implementation is available for the layout processor ",V2e="IntermediateProcessorStrategy",Oee="Node '",S0="NONE",hbt="FIRST_SEPARATE",pbt="LAST_SEPARATE",gbt="Odd port side processing",Oi="org.eclipse.elk.alg.layered.intermediate.compaction",aI="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",dO={235:1},g4="org.eclipse.elk.alg.layered.intermediate.loops",qu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",E0="org.eclipse.elk.alg.layered.intermediate.loops.routing",cI="org.eclipse.elk.alg.layered.intermediate.preserveorder",th="org.eclipse.elk.alg.layered.intermediate.wrapping",Ea="org.eclipse.elk.alg.layered.options",_ee="INTERACTIVE",bbt="DEPTH_FIRST",mbt="EDGE_LENGTH",vbt="SELF_LOOPS",z2e="org.eclipse.elk.layered.considerModelOrder",U2e="org.eclipse.elk.layered.directionCongruency",H2e="org.eclipse.elk.layered.feedbackEdges",MF="org.eclipse.elk.layered.interactiveReferencePoint",q2e="org.eclipse.elk.layered.mergeEdges",W2e="org.eclipse.elk.layered.mergeHierarchyEdges",G2e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",X2e="org.eclipse.elk.layered.portSortingStrategy",K2e="org.eclipse.elk.layered.thoroughness",Y2e="org.eclipse.elk.layered.unnecessaryBendpoints",Mee="org.eclipse.elk.layered.cycleBreaking.strategy",hO="org.eclipse.elk.layered.layering.strategy",Q2e="org.eclipse.elk.layered.layering.layerConstraint",Z2e="org.eclipse.elk.layered.layering.layerChoiceConstraint",J2e="org.eclipse.elk.layered.layering.layerId",Dee="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Nee="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",jee="org.eclipse.elk.layered.layering.nodePromotion.strategy",Ree="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",$ee="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",uI="org.eclipse.elk.layered.crossingMinimization.strategy",Lee="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Fee="org.eclipse.elk.layered.crossingMinimization.semiInteractive",exe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",txe="org.eclipse.elk.layered.crossingMinimization.positionId",nxe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Bee="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",DF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",N2="org.eclipse.elk.layered.nodePlacement.strategy",NF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Vee="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",zee="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Uee="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Hee="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",qee="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",rxe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",ixe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",jF="org.eclipse.elk.layered.edgeRouting.splines.mode",RF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Wee="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",oxe="org.eclipse.elk.layered.spacing.baseValue",sxe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",axe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",cxe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",uxe="org.eclipse.elk.layered.priority.direction",lxe="org.eclipse.elk.layered.priority.shortness",fxe="org.eclipse.elk.layered.priority.straightness",Gee="org.eclipse.elk.layered.compaction.connectedComponents",dxe="org.eclipse.elk.layered.compaction.postCompaction.strategy",hxe="org.eclipse.elk.layered.compaction.postCompaction.constraints",$F="org.eclipse.elk.layered.highDegreeNodes.treatment",Xee="org.eclipse.elk.layered.highDegreeNodes.threshold",Kee="org.eclipse.elk.layered.highDegreeNodes.treeHeight",k1="org.eclipse.elk.layered.wrapping.strategy",LF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",FF="org.eclipse.elk.layered.wrapping.correctionFactor",lI="org.eclipse.elk.layered.wrapping.cutting.strategy",Yee="org.eclipse.elk.layered.wrapping.cutting.cuts",Qee="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",BF="org.eclipse.elk.layered.wrapping.validify.strategy",VF="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",zF="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",UF="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Zee="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",pxe="org.eclipse.elk.layered.edgeLabels.sideSelection",gxe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",Jee="layering",ybt="layering.minWidth",wbt="layering.nodePromotion",HF="crossingMinimization",qF="org.eclipse.elk.hierarchyHandling",xbt="crossingMinimization.greedySwitch",Sbt="nodePlacement",Ebt="nodePlacement.bk",kbt="edgeRouting",pO="org.eclipse.elk.edgeRouting",nh="spacing",bxe="priority",mxe="compaction",Cbt="compaction.postCompaction",Ibt="Specifies whether and how post-process compaction is applied.",vxe="highDegreeNodes",yxe="wrapping",Tbt="wrapping.cutting",Abt="wrapping.validify",wxe="wrapping.multiEdge",ete="edgeLabels",xxe="org.eclipse.elk.spacing.commentComment",Sxe="org.eclipse.elk.spacing.commentNode",Exe="org.eclipse.elk.spacing.edgeEdge",kxe="org.eclipse.elk.spacing.edgeNode",Cxe="org.eclipse.elk.spacing.labelLabel",Ixe="org.eclipse.elk.spacing.labelPort",Txe="org.eclipse.elk.spacing.labelNode",Axe="org.eclipse.elk.spacing.nodeSelfLoop",Pxe="org.eclipse.elk.spacing.portPort",Oxe="org.eclipse.elk.spacing.individual",_xe="org.eclipse.elk.port.borderOffset",Mxe="org.eclipse.elk.noLayout",Dxe="org.eclipse.elk.port.side",gO="org.eclipse.elk.debugMode",Nxe="org.eclipse.elk.alignment",jxe="org.eclipse.elk.insideSelfLoops.activate",Rxe="org.eclipse.elk.insideSelfLoops.yo",WF="org.eclipse.elk.nodeSize.constraints",tte="org.eclipse.elk.nodeSize.options",$xe="org.eclipse.elk.direction",Lxe="org.eclipse.elk.nodeLabels.placement",Fxe="org.eclipse.elk.nodeLabels.padding",Bxe="org.eclipse.elk.portLabels.placement",Vxe="org.eclipse.elk.portLabels.nextToPortIfPossible",zxe="org.eclipse.elk.portLabels.treatAsGroup",Uxe="org.eclipse.elk.portAlignment.default",Hxe="org.eclipse.elk.portAlignment.north",qxe="org.eclipse.elk.portAlignment.south",Wxe="org.eclipse.elk.portAlignment.west",Gxe="org.eclipse.elk.portAlignment.east",GF="org.eclipse.elk.contentAlignment",XF="org.eclipse.elk.nodeSize.minimum",Xxe="org.eclipse.elk.junctionPoints",Kxe="org.eclipse.elk.edgeLabels.placement",Yxe="org.eclipse.elk.port.index",Qxe="org.eclipse.elk.commentBox",Zxe="org.eclipse.elk.hypernode",Jxe="org.eclipse.elk.port.anchor",nte="org.eclipse.elk.partitioning.activate",rte="org.eclipse.elk.partitioning.partition",KF="org.eclipse.elk.position",e3e="org.eclipse.elk.margins",t3e="org.eclipse.elk.spacing.portsSurrounding",ite="org.eclipse.elk.interactiveLayout",va="org.eclipse.elk.core.util",n3e={3:1,4:1,5:1,584:1},Pbt="NETWORK_SIMPLEX",yc={126:1,52:1},r3e="org.eclipse.elk.alg.layered.p1cycles",Oy="org.eclipse.elk.alg.layered.p2layers",i3e={451:1,235:1},Obt={811:1,3:1,4:1},Eu="org.eclipse.elk.alg.layered.p3order",ts="org.eclipse.elk.alg.layered.p4nodes",_bt={3:1,4:1,5:1,819:1},rh=1e-5,k0="org.eclipse.elk.alg.layered.p4nodes.bk",ote="org.eclipse.elk.alg.layered.p5edges",Vf="org.eclipse.elk.alg.layered.p5edges.orthogonal",ste="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",ate=1e-6,_y="org.eclipse.elk.alg.layered.p5edges.splines",cte=.09999999999999998,YF=1e-8,Mbt=4.71238898038469,Dbt=3.141592653589793,fI="org.eclipse.elk.alg.mrtree",dI="org.eclipse.elk.alg.mrtree.graph",b4="org.eclipse.elk.alg.mrtree.intermediate",Nbt="Set neighbors in level",jbt="DESCENDANTS",o3e="org.eclipse.elk.mrtree.weighting",s3e="org.eclipse.elk.mrtree.searchOrder",QF="org.eclipse.elk.alg.mrtree.options",m4="org.eclipse.elk.mrtree",Rbt="org.eclipse.elk.tree",a3e="org.eclipse.elk.alg.radial",j2=6.283185307179586,c3e=5e-324,$bt="org.eclipse.elk.alg.radial.intermediate",ute="org.eclipse.elk.alg.radial.intermediate.compaction",Lbt={3:1,4:1,5:1,105:1},u3e="org.eclipse.elk.alg.radial.intermediate.optimization",lte="No implementation is available for the layout option ",hI="org.eclipse.elk.alg.radial.options",l3e="org.eclipse.elk.radial.orderId",f3e="org.eclipse.elk.radial.radius",fte="org.eclipse.elk.radial.compactor",dte="org.eclipse.elk.radial.compactionStepSize",d3e="org.eclipse.elk.radial.sorter",h3e="org.eclipse.elk.radial.wedgeCriteria",p3e="org.eclipse.elk.radial.optimizationCriteria",_m="org.eclipse.elk.radial",Fbt="org.eclipse.elk.alg.radial.p1position.wedge",g3e="org.eclipse.elk.alg.radial.sorting",Bbt=5.497787143782138,Vbt=3.9269908169872414,zbt=2.356194490192345,Ubt="org.eclipse.elk.alg.rectpacking",ZF="org.eclipse.elk.alg.rectpacking.firstiteration",hte="org.eclipse.elk.alg.rectpacking.options",b3e="org.eclipse.elk.rectpacking.optimizationGoal",m3e="org.eclipse.elk.rectpacking.lastPlaceShift",v3e="org.eclipse.elk.rectpacking.currentPosition",y3e="org.eclipse.elk.rectpacking.desiredPosition",w3e="org.eclipse.elk.rectpacking.onlyFirstIteration",x3e="org.eclipse.elk.rectpacking.rowCompaction",pte="org.eclipse.elk.rectpacking.expandToAspectRatio",S3e="org.eclipse.elk.rectpacking.targetWidth",JF="org.eclipse.elk.expandNodes",C1="org.eclipse.elk.rectpacking",bO="org.eclipse.elk.alg.rectpacking.util",eB="No implementation available for ",My="org.eclipse.elk.alg.spore",Dy="org.eclipse.elk.alg.spore.options",Mm="org.eclipse.elk.sporeCompaction",gte="org.eclipse.elk.underlyingLayoutAlgorithm",E3e="org.eclipse.elk.processingOrder.treeConstruction",k3e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",bte="org.eclipse.elk.processingOrder.preferredRoot",mte="org.eclipse.elk.processingOrder.rootSelection",vte="org.eclipse.elk.structure.structureExtractionStrategy",C3e="org.eclipse.elk.compaction.compactionStrategy",I3e="org.eclipse.elk.compaction.orthogonal",T3e="org.eclipse.elk.overlapRemoval.maxIterations",A3e="org.eclipse.elk.overlapRemoval.runScanline",yte="processingOrder",Hbt="overlapRemoval",A6="org.eclipse.elk.sporeOverlap",qbt="org.eclipse.elk.alg.spore.p1structure",wte="org.eclipse.elk.alg.spore.p2processingorder",xte="org.eclipse.elk.alg.spore.p3execution",Wbt="Invalid index: ",P6="org.eclipse.elk.core.alg",R2={329:1},Ny={287:1},P3e="Make sure it's type is registered with the ",O3e=" utility class.",O6="true",Ste="false",Gbt="Couldn't clone property '",Dm=.05,Bl="org.eclipse.elk.core.options",Xbt=1.2999999523162842,Nm="org.eclipse.elk.box",_3e="org.eclipse.elk.box.packingMode",Kbt="org.eclipse.elk.algorithm",Ybt="org.eclipse.elk.resolvedAlgorithm",M3e="org.eclipse.elk.bendPoints",Qbt="org.eclipse.elk.labelManager",Zbt="org.eclipse.elk.scaleFactor",Jbt="org.eclipse.elk.animate",emt="org.eclipse.elk.animTimeFactor",tmt="org.eclipse.elk.layoutAncestors",nmt="org.eclipse.elk.maxAnimTime",rmt="org.eclipse.elk.minAnimTime",imt="org.eclipse.elk.progressBar",omt="org.eclipse.elk.validateGraph",smt="org.eclipse.elk.validateOptions",amt="org.eclipse.elk.zoomToFit",D3e="org.eclipse.elk.nodeSize.fixedGraphSize",cmt="org.eclipse.elk.font.name",umt="org.eclipse.elk.font.size",lmt="org.eclipse.elk.edge.type",fmt="partitioning",dmt="nodeLabels",tB="portAlignment",Ete="nodeSize",kte="port",N3e="portLabels",hmt="insideSelfLoops",pI="org.eclipse.elk.fixed",nB="org.eclipse.elk.random",pmt="port must have a parent node to calculate the port side",gmt="The edge needs to have exactly one edge section. Found: ",mO="org.eclipse.elk.core.util.adapters",bl="org.eclipse.emf.ecore",$2="org.eclipse.elk.graph",bmt="EMapPropertyHolder",mmt="ElkBendPoint",vmt="ElkGraphElement",ymt="ElkConnectableShape",j3e="ElkEdge",wmt="ElkEdgeSection",xmt="EModelElement",Smt="ENamedElement",R3e="ElkLabel",$3e="ElkNode",L3e="ElkPort",Emt={91:1,89:1},v4="org.eclipse.emf.common.notify.impl",C0="The feature '",gI="' is not a valid changeable feature",kmt="Expecting null",Cte="' is not a valid feature",Cmt="The feature ID",Imt=" is not a valid feature ID",fa=32768,Tmt={104:1,91:1,89:1,55:1,48:1,96:1},Vt="org.eclipse.emf.ecore.impl",Yg="org.eclipse.elk.graph.impl",bI="Recursive containment not allowed for ",_6="The datatype '",jm="' is not a valid classifier",Ite="The value '",L2={190:1,3:1,4:1},Tte="The class '",M6="http://www.eclipse.org/elk/ElkGraph",F3e="property",mI="value",Ate="source",Amt="properties",Pmt="identifier",Pte="height",Ote="width",_te="parent",Mte="text",Dte="children",Omt="hierarchical",B3e="sources",Nte="targets",V3e="sections",rB="bendPoints",z3e="outgoingShape",U3e="incomingShape",H3e="outgoingSections",q3e="incomingSections",Mo="org.eclipse.emf.common.util",W3e="Severe implementation error in the Json to ElkGraph importer.",ih="id",mo="org.eclipse.elk.graph.json",G3e="Unhandled parameter types: ",_mt="startPoint",Mmt="An edge must have at least one source and one target (edge id: '",D6="').",Dmt="Referenced edge section does not exist: ",Nmt=" (edge id: '",X3e="target",jmt="sourcePoint",Rmt="targetPoint",iB="group",br="name",$mt="connectableShape cannot be null",jte="Passed edge is not 'simple'.",vO="The 'no duplicates' constraint is violated",Rte="targetIndex=",Qg=", size=",$te="sourceIndex=",oh={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1},Lte={3:1,4:1,19:1,28:1,51:1,15:1,49:1,14:1,53:1,66:1,60:1,57:1,579:1},Fte="org.eclipse.elk.graph.util",oB="logging",Lmt="measureExecutionTime",Fmt="parser.parse.1",Bmt="parser.parse.2",sB="parser.next.1",Bte="parser.next.2",Vmt="parser.next.3",zmt="parser.next.4",Zg="parser.factor.1",K3e="parser.factor.2",Umt="parser.factor.3",Hmt="parser.factor.4",qmt="parser.factor.5",Wmt="parser.factor.6",Gmt="parser.atom.1",Xmt="parser.atom.2",Kmt="parser.atom.3",Y3e="parser.atom.4",Vte="parser.atom.5",Q3e="parser.cc.1",aB="parser.cc.2",Ymt="parser.cc.3",Qmt="parser.cc.5",Z3e="parser.cc.6",J3e="parser.cc.7",zte="parser.cc.8",Zmt="parser.ope.1",Jmt="parser.ope.2",evt="parser.ope.3",bp="parser.descape.1",tvt="parser.descape.2",nvt="parser.descape.3",rvt="parser.descape.4",ivt="parser.descape.5",ml="parser.process.1",ovt="parser.quantifier.1",svt="parser.quantifier.2",avt="parser.quantifier.3",cvt="parser.quantifier.4",e4e="parser.quantifier.5",uvt="org.eclipse.emf.common.notify",t4e={410:1,660:1},lvt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1},yO={363:1,142:1},vI="index=",Ute={3:1,4:1,5:1,124:1},fvt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,57:1},n4e={3:1,6:1,4:1,5:1,192:1},dvt={3:1,4:1,5:1,164:1,364:1},mf=1024,hvt=";/?:@&=+$,",pvt="invalid authority: ",gvt="EAnnotation",bvt="ETypedElement",mvt="EStructuralFeature",vvt="EAttribute",yvt="EClassifier",wvt="EEnumLiteral",xvt="EGenericType",Svt="EOperation",Evt="EParameter",kvt="EReference",Cvt="ETypeParameter",Jr="org.eclipse.emf.ecore.util",Hte={76:1},r4e={3:1,19:1,15:1,14:1,57:1,580:1,76:1,67:1,95:1},Ivt="org.eclipse.emf.ecore.util.FeatureMap$Entry",jc=8192,jy=2048,yI="byte",cB="char",wI="double",xI="float",SI="int",EI="long",kI="short",Tvt="java.lang.Object",F2={3:1,4:1,5:1,246:1},i4e={3:1,4:1,5:1,661:1},Avt={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,67:1},Ms={3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,76:1,67:1,95:1},wO="mixed",Yn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Vl="kind",Pvt={3:1,4:1,5:1,662:1},o4e={3:1,4:1,19:1,28:1,51:1,15:1,14:1,66:1,57:1,76:1,67:1,95:1},uB={19:1,28:1,51:1,15:1,14:1,57:1,67:1},lB={49:1,123:1,277:1},fB={71:1,330:1},dB="The value of type '",hB="' must be of type '",B2=1287,zl="http://www.eclipse.org/emf/2002/Ecore",pB=-32768,Rm="constraints",Co="baseType",Ovt="getEStructuralFeature",_vt="getFeatureID",CI="feature",Mvt="getOperationID",s4e="operation",Dvt="defaultValue",Nvt="eTypeParameters",jvt="isInstance",Rvt="getEEnumLiteral",$vt="eContainingClass",fr={54:1},Lvt={3:1,4:1,5:1,118:1},Fvt="org.eclipse.emf.ecore.resource",Bvt={91:1,89:1,582:1,1907:1},qte="org.eclipse.emf.ecore.resource.impl",a4e="unspecified",xO="simple",gB="attribute",Vvt="attributeWildcard",bB="element",Wte="elementWildcard",zf="collapse",Gte="itemType",mB="namespace",SO="##targetNamespace",Ul="whiteSpace",c4e="wildcards",Jg="http://www.eclipse.org/emf/2003/XMLType",Xte="##any",N6="uninitialized",EO="The multiplicity constraint is violated",vB="org.eclipse.emf.ecore.xml.type",zvt="ProcessingInstruction",Uvt="SimpleAnyType",Hvt="XMLTypeDocumentRoot",Ti="org.eclipse.emf.ecore.xml.type.impl",kO="INF",qvt="processing",Wvt="ENTITIES_._base",u4e="minLength",l4e="ENTITY",yB="NCName",Gvt="IDREFS_._base",f4e="integer",Kte="token",Yte="pattern",Xvt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",d4e="\\i\\c*",Kvt="[\\i-[:]][\\c-[:]]*",Yvt="nonPositiveInteger",CO="maxInclusive",h4e="NMTOKEN",Qvt="NMTOKENS_._base",p4e="nonNegativeInteger",IO="minInclusive",Zvt="normalizedString",Jvt="unsignedByte",eyt="unsignedInt",tyt="18446744073709551615",nyt="unsignedShort",ryt="processingInstruction",mp="org.eclipse.emf.ecore.xml.type.internal",j6=1114111,iyt="Internal Error: shorthands: \\u",II="xml:isDigit",Qte="xml:isWord",Zte="xml:isSpace",Jte="xml:isNameChar",ene="xml:isInitialNameChar",oyt="09\u0660\u0669\u06F0\u06F9\u0966\u096F\u09E6\u09EF\u0A66\u0A6F\u0AE6\u0AEF\u0B66\u0B6F\u0BE7\u0BEF\u0C66\u0C6F\u0CE6\u0CEF\u0D66\u0D6F\u0E50\u0E59\u0ED0\u0ED9\u0F20\u0F29",syt="AZaz\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u0386\u0386\u0388\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0641\u064A\u0671\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06D5\u06E5\u06E6\u0905\u0939\u093D\u093D\u0958\u0961\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09DC\u09DD\u09DF\u09E1\u09F0\u09F1\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59\u0A5C\u0A5E\u0A5E\u0A72\u0A74\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABD\u0ABD\u0AE0\u0AE0\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3D\u0B3D\u0B5C\u0B5D\u0B5F\u0B61\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C60\u0C61\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CDE\u0CDE\u0CE0\u0CE1\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D60\u0D61\u0E01\u0E2E\u0E30\u0E30\u0E32\u0E33\u0E40\u0E45\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB0\u0EB2\u0EB3\u0EBD\u0EBD\u0EC0\u0EC4\u0F40\u0F47\u0F49\u0F69\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3007\u3007\u3021\u3029\u3041\u3094\u30A1\u30FA\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3",ayt="Private Use",tne="ASSIGNED",nne="\0\x7F\x80\xFF\u0100\u017F\u0180\u024F\u0250\u02AF\u02B0\u02FF\u0300\u036F\u0370\u03FF\u0400\u04FF\u0530\u058F\u0590\u05FF\u0600\u06FF\u0700\u074F\u0780\u07BF\u0900\u097F\u0980\u09FF\u0A00\u0A7F\u0A80\u0AFF\u0B00\u0B7F\u0B80\u0BFF\u0C00\u0C7F\u0C80\u0CFF\u0D00\u0D7F\u0D80\u0DFF\u0E00\u0E7F\u0E80\u0EFF\u0F00\u0FFF\u1000\u109F\u10A0\u10FF\u1100\u11FF\u1200\u137F\u13A0\u13FF\u1400\u167F\u1680\u169F\u16A0\u16FF\u1780\u17FF\u1800\u18AF\u1E00\u1EFF\u1F00\u1FFF\u2000\u206F\u2070\u209F\u20A0\u20CF\u20D0\u20FF\u2100\u214F\u2150\u218F\u2190\u21FF\u2200\u22FF\u2300\u23FF\u2400\u243F\u2440\u245F\u2460\u24FF\u2500\u257F\u2580\u259F\u25A0\u25FF\u2600\u26FF\u2700\u27BF\u2800\u28FF\u2E80\u2EFF\u2F00\u2FDF\u2FF0\u2FFF\u3000\u303F\u3040\u309F\u30A0\u30FF\u3100\u312F\u3130\u318F\u3190\u319F\u31A0\u31BF\u3200\u32FF\u3300\u33FF\u3400\u4DB5\u4E00\u9FFF\uA000\uA48F\uA490\uA4CF\uAC00\uD7A3\uE000\uF8FF\uF900\uFAFF\uFB00\uFB4F\uFB50\uFDFF\uFE20\uFE2F\uFE30\uFE4F\uFE50\uFE6F\uFE70\uFEFE\uFEFF\uFEFF\uFF00\uFFEF",g4e="UNASSIGNED",R6={3:1,117:1},cyt="org.eclipse.emf.ecore.xml.type.util",wB={3:1,4:1,5:1,365:1},b4e="org.eclipse.xtext.xbase.lib",uyt="Cannot add elements to a Range",lyt="Cannot set elements in a Range",fyt="Cannot remove elements from a Range",xB="locale",SB="default",EB="user.agent",b,kB,rne;m.goog=m.goog||{},m.goog.global=m.goog.global||m,Ifn(),_(1,null,{},x),b.Fb=function(t){return xQe(this,t)},b.Gb=function(){return this.bm},b.Hb=function(){return Kb(this)},b.Ib=function(){var t;return Xp(ru(this))+"@"+(t=ri(this)>>>0,t.toString(16))},b.equals=function(e){return this.Fb(e)},b.hashCode=function(){return this.Hb()},b.toString=function(){return this.Ib()};var dyt,hyt,pyt;_(289,1,{289:1,1995:1},Qbe),b.le=function(t){var s;return s=new Qbe,s.i=4,t>1?s.c=$nt(this,t-1):s.c=this,s},b.me=function(){return a1(this),this.b},b.ne=function(){return Xp(this)},b.oe=function(){return a1(this),this.k},b.pe=function(){return(this.i&4)!=0},b.qe=function(){return(this.i&1)!=0},b.Ib=function(){return fbe(this)},b.i=0;var hn=D(Vs,"Object",1),m4e=D(Vs,"Class",289);_(1967,1,XP),D(KP,"Optional",1967),_(1143,1967,XP,E),b.Fb=function(t){return t===this},b.Hb=function(){return 2040732332},b.Ib=function(){return"Optional.absent()"},b.Jb=function(t){return Hn(t),sC(),ine};var ine;D(KP,"Absent",1143),_(620,1,{},oX),D(KP,"Joiner",620);var $wn=ii(KP,"Predicate");_(573,1,{169:1,573:1,3:1,45:1},jUe),b.Mb=function(t){return Sct(this,t)},b.Lb=function(t){return Sct(this,t)},b.Fb=function(t){var s;return ue(t,573)?(s=h(t,573),Fye(this.a,s.a)):!1},b.Hb=function(){return rme(this.a)+306654252},b.Ib=function(){return ldn(this.a)},D(KP,"Predicates/AndPredicate",573),_(403,1967,{403:1,3:1},VN),b.Fb=function(t){var s;return ue(t,403)?(s=h(t,403),Pr(this.a,s.a)):!1},b.Hb=function(){return 1502476572+ri(this.a)},b.Ib=function(){return Q0t+this.a+")"},b.Jb=function(t){return new VN(FR(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},D(KP,"Present",403),_(197,1,y6),b.Nb=function(t){yo(this,t)},b.Qb=function(){mXe()},D(Pt,"UnmodifiableIterator",197),_(1948,197,w6),b.Qb=function(){mXe()},b.Rb=function(t){throw ee(new Rn)},b.Wb=function(t){throw ee(new Rn)},D(Pt,"UnmodifiableListIterator",1948),_(381,1948,w6),b.Ob=function(){return this.c0},b.Pb=function(){if(this.c>=this.d)throw ee(new ca);return this.Xb(this.c++)},b.Tb=function(){return this.c},b.Ub=function(){if(this.c<=0)throw ee(new ca);return this.Xb(--this.c)},b.Vb=function(){return this.c-1},b.c=0,b.d=0,D(Pt,"AbstractIndexedListIterator",381),_(679,197,y6),b.Ob=function(){return eQ(this)},b.Pb=function(){return ibe(this)},b.e=1,D(Pt,"AbstractIterator",679),_(1958,1,{222:1}),b.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},b.Fb=function(t){return bQ(this,t)},b.Hb=function(){return ri(this.Zb())},b.dc=function(){return this.gc()==0},b.ec=function(){return D3(this)},b.Ib=function(){return Bs(this.Zb())},D(Pt,"AbstractMultimap",1958),_(713,1958,zg),b.$b=function(){Sbe(this)},b._b=function(t){return this.c._b(t)},b.ac=function(){return new Vw(this,this.c)},b.ic=function(t){return this.hc()},b.bc=function(){return new Qw(this,this.c)},b.jc=function(){return this.kc(this.hc())},b.cc=function(t){return Br(this,t)},b.fc=function(t){return sP(this,t)},b.gc=function(){return this.d},b.kc=function(t){return Mt(),new zS(t)},b.lc=function(){return new Ost(this)},b.mc=function(){return Ift(this.c.Ac().Lc(),new k,64,this.d)},b.nc=function(t,s){return new d$(this,t,s,null)},b.d=0,D(Pt,"AbstractMapBasedMultimap",713),_(1601,713,zg),b.hc=function(){return new Va(this.a)},b.jc=function(){return Mt(),Mt(),Wo},b.cc=function(t){return h(Br(this,t),14)},b.fc=function(t){return h(sP(this,t),14)},b.Zb=function(){var t;return t=this.f,t||(this.f=new Vw(this,this.c))},b.Fb=function(t){return bQ(this,t)},b.oc=function(t){return h(Br(this,t),14)},b.pc=function(t){return h(sP(this,t),14)},b.kc=function(t){return xA(h(t,14))},b.nc=function(t,s){return qrt(this,t,h(s,14),null)},D(Pt,"AbstractListMultimap",1601),_(1079,1,bo),b.Nb=function(t){yo(this,t)},b.Ob=function(){return this.c.Ob()||this.e.Ob()},b.Pb=function(){var t;return this.e.Ob()||(t=h(this.c.Pb(),43),this.b=t.ad(),this.a=h(t.bd(),15),this.e=this.a.Ic()),this.qc(this.b,this.e.Pb())},b.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},D(Pt,"AbstractMapBasedMultimap/Itr",1079),_(1080,1079,bo,Ost),b.qc=function(t,s){return s},D(Pt,"AbstractMapBasedMultimap/1",1080),_(1081,1,{},k),b.Kb=function(t){return h(t,15).Lc()},D(Pt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1081);var v4e=ii(xn,"Map");_(1949,1,Pm),b.uc=function(t){w8(this,t)},b.wc=function(t,s,a){return MQ(this,t,s,a)},b.$b=function(){this.tc().$b()},b.rc=function(t){return cZ(this,t)},b._b=function(t){return!!Uve(this,t,!1)},b.sc=function(t){var s,a,l;for(a=this.tc().Ic();a.Ob();)if(s=h(a.Pb(),43),l=s.bd(),Pe(t)===Pe(l)||t!=null&&Pr(t,l))return!0;return!1},b.Fb=function(t){var s,a,l;if(t===this)return!0;if(!ue(t,84)||(l=h(t,84),this.gc()!=l.gc()))return!1;for(a=l.tc().Ic();a.Ob();)if(s=h(a.Pb(),43),!this.rc(s))return!1;return!0},b.vc=function(t){return Xs(Uve(this,t,!1))},b.Hb=function(){return Xbe(this.tc())},b.dc=function(){return this.gc()==0},b.ec=function(){return new VS(this)},b.xc=function(t,s){throw ee(new G1("Put not supported on this map"))},b.yc=function(t){y8(this,t)},b.zc=function(t){return Xs(Uve(this,t,!0))},b.gc=function(){return this.tc().gc()},b.Ib=function(){return yft(this)},b.Ac=function(){return new o1(this)},D(xn,"AbstractMap",1949),_(1959,1949,Pm),b.bc=function(){return new fj(this)},b.tc=function(){var t;return t=this.f,t||(this.f=this.Bc())},b.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},b.Ac=function(){var t;return t=this.i,t||(this.i=new kKe(this))},D(Pt,"Maps/ViewCachingAbstractMap",1959),_(316,1959,Pm,Vw),b.vc=function(t){return qnn(this,t)},b.zc=function(t){return oon(this,t)},b.$b=function(){this.d==this.e.c?this.e.$b():mR(new p0e(this))},b._b=function(t){return Yct(this.d,t)},b.Cc=function(){return new RUe(this)},b.Bc=function(){return this.Cc()},b.Fb=function(t){return this===t||Pr(this.d,t)},b.Hb=function(){return ri(this.d)},b.ec=function(){return this.e.ec()},b.gc=function(){return this.d.gc()},b.Ib=function(){return Bs(this.d)},D(Pt,"AbstractMapBasedMultimap/AsMap",316);var sh=ii(Vs,"Iterable");_(28,1,Cy),b.Hc=function(t){So(this,t)},b.Jc=function(){return this.Mc()},b.Lc=function(){return new Lt(this,0)},b.Mc=function(){return new Rt(null,this.Lc())},b.Dc=function(t){throw ee(new G1("Add not supported on this collection"))},b.Ec=function(t){return Cs(this,t)},b.$b=function(){rge(this)},b.Fc=function(t){return ay(this,t,!1)},b.Gc=function(t){return eP(this,t)},b.dc=function(){return this.gc()==0},b.Kc=function(t){return ay(this,t,!0)},b.Nc=function(){return T0e(this)},b.Oc=function(t){return wP(this,t)},b.Ib=function(){return b0(this)},D(xn,"AbstractCollection",28);var Hl=ii(xn,"Set");_(md,28,au),b.Lc=function(){return new Lt(this,1)},b.Fb=function(t){return Wut(this,t)},b.Hb=function(){return Xbe(this)},D(xn,"AbstractSet",md),_(1939,md,au),D(Pt,"Sets/ImprovedAbstractSet",1939),_(1940,1939,au),b.$b=function(){this.Pc().$b()},b.Fc=function(t){return Aut(this,t)},b.dc=function(){return this.Pc().dc()},b.Kc=function(t){var s;return this.Fc(t)?(s=h(t,43),this.Pc().ec().Kc(s.ad())):!1},b.gc=function(){return this.Pc().gc()},D(Pt,"Maps/EntrySet",1940),_(1077,1940,au,RUe),b.Fc=function(t){return bme(this.a.d.tc(),t)},b.Ic=function(){return new p0e(this.a)},b.Pc=function(){return this.a},b.Kc=function(t){var s;return bme(this.a.d.tc(),t)?(s=h(t,43),Mtn(this.a.e,s.ad()),!0):!1},b.Lc=function(){return vK(this.a.d.tc().Lc(),new $Ue(this.a))},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1077),_(1078,1,{},$Ue),b.Kb=function(t){return $it(this.a,h(t,43))},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1078),_(717,1,bo,p0e),b.Nb=function(t){yo(this,t)},b.Pb=function(){var t;return t=h(this.b.Pb(),43),this.a=h(t.bd(),15),$it(this.c,t)},b.Ob=function(){return this.b.Ob()},b.Qb=function(){s2(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},D(Pt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",717),_(524,1939,au,fj),b.$b=function(){this.b.$b()},b.Fc=function(t){return this.b._b(t)},b.Hc=function(t){Hn(t),this.b.uc(new KUe(t))},b.dc=function(){return this.b.dc()},b.Ic=function(){return new sXe(this.b.tc().Ic())},b.Kc=function(t){return this.b._b(t)?(this.b.zc(t),!0):!1},b.gc=function(){return this.b.gc()},D(Pt,"Maps/KeySet",524),_(315,524,au,Qw),b.$b=function(){var t;mR((t=this.b.tc().Ic(),new Fhe(this,t)))},b.Gc=function(t){return this.b.ec().Gc(t)},b.Fb=function(t){return this===t||Pr(this.b.ec(),t)},b.Hb=function(){return ri(this.b.ec())},b.Ic=function(){var t;return t=this.b.tc().Ic(),new Fhe(this,t)},b.Kc=function(t){var s,a;return a=0,s=h(this.b.zc(t),15),s&&(a=s.gc(),s.$b(),this.a.d-=a),a>0},b.Lc=function(){return this.b.ec().Lc()},D(Pt,"AbstractMapBasedMultimap/KeySet",315),_(718,1,bo,Fhe),b.Nb=function(t){yo(this,t)},b.Ob=function(){return this.c.Ob()},b.Pb=function(){return this.a=h(this.c.Pb(),43),this.a.ad()},b.Qb=function(){var t;s2(!!this.a),t=h(this.a.bd(),15),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},D(Pt,"AbstractMapBasedMultimap/KeySet/1",718),_(484,316,{84:1,161:1},oA),b.bc=function(){return this.Qc()},b.ec=function(){return this.Rc()},b.Qc=function(){return new MT(this.c,this.Sc())},b.Rc=function(){var t;return t=this.b,t||(this.b=this.Qc())},b.Sc=function(){return h(this.d,161)},D(Pt,"AbstractMapBasedMultimap/SortedAsMap",484),_(536,484,Z0t,iR),b.bc=function(){return new JS(this.a,h(h(this.d,161),171))},b.Qc=function(){return new JS(this.a,h(h(this.d,161),171))},b.ec=function(){var t;return t=this.b,h(t||(this.b=new JS(this.a,h(h(this.d,161),171))),270)},b.Rc=function(){var t;return t=this.b,h(t||(this.b=new JS(this.a,h(h(this.d,161),171))),270)},b.Sc=function(){return h(h(this.d,161),171)},D(Pt,"AbstractMapBasedMultimap/NavigableAsMap",536),_(483,315,J0t,MT),b.Lc=function(){return this.b.ec().Lc()},D(Pt,"AbstractMapBasedMultimap/SortedKeySet",483),_(385,483,e2e,JS),D(Pt,"AbstractMapBasedMultimap/NavigableKeySet",385),_(535,28,Cy,d$),b.Dc=function(t){var s,a;return iu(this),a=this.d.dc(),s=this.d.Dc(t),s&&(++this.f.d,a&&uA(this)),s},b.Ec=function(t){var s,a,l;return t.dc()?!1:(l=(iu(this),this.d.gc()),s=this.d.Ec(t),s&&(a=this.d.gc(),this.f.d+=a-l,l==0&&uA(this)),s)},b.$b=function(){var t;t=(iu(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,SR(this))},b.Fc=function(t){return iu(this),this.d.Fc(t)},b.Gc=function(t){return iu(this),this.d.Gc(t)},b.Fb=function(t){return t===this?!0:(iu(this),Pr(this.d,t))},b.Hb=function(){return iu(this),ri(this.d)},b.Ic=function(){return iu(this),new t0e(this)},b.Kc=function(t){var s;return iu(this),s=this.d.Kc(t),s&&(--this.f.d,SR(this)),s},b.gc=function(){return uQe(this)},b.Lc=function(){return iu(this),this.d.Lc()},b.Ib=function(){return iu(this),Bs(this.d)},D(Pt,"AbstractMapBasedMultimap/WrappedCollection",535);var vl=ii(xn,"List");_(715,535,{19:1,28:1,15:1,14:1},k0e),b.$c=function(t){o2(this,t)},b.Lc=function(){return iu(this),this.d.Lc()},b.Tc=function(t,s){var a;iu(this),a=this.d.dc(),h(this.d,14).Tc(t,s),++this.a.d,a&&uA(this)},b.Uc=function(t,s){var a,l,f;return s.dc()?!1:(f=(iu(this),this.d.gc()),a=h(this.d,14).Uc(t,s),a&&(l=this.d.gc(),this.a.d+=l-f,f==0&&uA(this)),a)},b.Xb=function(t){return iu(this),h(this.d,14).Xb(t)},b.Vc=function(t){return iu(this),h(this.d,14).Vc(t)},b.Wc=function(){return iu(this),new VQe(this)},b.Xc=function(t){return iu(this),new Ktt(this,t)},b.Yc=function(t){var s;return iu(this),s=h(this.d,14).Yc(t),--this.a.d,SR(this),s},b.Zc=function(t,s){return iu(this),h(this.d,14).Zc(t,s)},b._c=function(t,s){return iu(this),qrt(this.a,this.e,h(this.d,14)._c(t,s),this.b?this.b:this)},D(Pt,"AbstractMapBasedMultimap/WrappedList",715),_(1076,715,{19:1,28:1,15:1,14:1,53:1},CZe),D(Pt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1076),_(610,1,bo,t0e),b.Nb=function(t){yo(this,t)},b.Ob=function(){return v5(this),this.b.Ob()},b.Pb=function(){return v5(this),this.b.Pb()},b.Qb=function(){bZe(this)},D(Pt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",610),_(716,610,jh,VQe,Ktt),b.Qb=function(){bZe(this)},b.Rb=function(t){var s;s=uQe(this.a)==0,(v5(this),h(this.b,123)).Rb(t),++this.a.a.d,s&&uA(this.a)},b.Sb=function(){return(v5(this),h(this.b,123)).Sb()},b.Tb=function(){return(v5(this),h(this.b,123)).Tb()},b.Ub=function(){return(v5(this),h(this.b,123)).Ub()},b.Vb=function(){return(v5(this),h(this.b,123)).Vb()},b.Wb=function(t){(v5(this),h(this.b,123)).Wb(t)},D(Pt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",716),_(714,535,J0t,mpe),b.Lc=function(){return iu(this),this.d.Lc()},D(Pt,"AbstractMapBasedMultimap/WrappedSortedSet",714),_(1075,714,e2e,DQe),D(Pt,"AbstractMapBasedMultimap/WrappedNavigableSet",1075),_(1074,535,au,UZe),b.Lc=function(){return iu(this),this.d.Lc()},D(Pt,"AbstractMapBasedMultimap/WrappedSet",1074);var eb=ii(xn,"Map/Entry");_(342,1,pF),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Th(this.ad(),s.ad())&&Th(this.bd(),s.bd())):!1},b.Hb=function(){var t,s;return t=this.ad(),s=this.bd(),(t==null?0:ri(t))^(s==null?0:ri(s))},b.cd=function(t){throw ee(new Rn)},b.Ib=function(){return this.ad()+"="+this.bd()},D(Pt,egt,342),_(1960,28,Cy),b.$b=function(){yXe(this.dd())},b.Fc=function(t){var s;return ue(t,43)?(s=h(t,43),Rrn(this.dd(),s.ad(),s.bd())):!1},b.Kc=function(t){var s;return ue(t,43)?(s=h(t,43),Cat(this.dd(),s.ad(),s.bd())):!1},b.gc=function(){return this.dd().d},D(Pt,"Multimaps/Entries",1960),_(1082,1960,Cy),b.Ic=function(){return new Z1e(this.a)},b.dd=function(){return this.a},b.Lc=function(){return Hrt(this.a)},D(Pt,"AbstractMultimap/Entries",1082),_(719,1082,au,mde),b.Lc=function(){return Hrt(this.a)},b.Fb=function(t){return sye(this,t)},b.Hb=function(){return Eat(this)},D(Pt,"AbstractMultimap/EntrySet",719),_(720,28,Cy,vde),b.$b=function(){this.a.$b()},b.Fc=function(t){return Zin(this.a,t)},b.Ic=function(){return this.a.lc()},b.gc=function(){return this.a.d},b.Lc=function(){return this.a.mc()},D(Pt,"AbstractMultimap/Values",720),_(609,713,zg),b.hc=function(){return this.ed()},b.jc=function(){return this.fd()},b.cc=function(t){return this.gd(t)},b.fc=function(t){return this.hd(t)},b.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},b.fd=function(){return Mt(),Mt(),OB},b.Fb=function(t){return bQ(this,t)},b.gd=function(t){return h(Br(this,t),21)},b.hd=function(t){return h(sP(this,t),21)},b.kc=function(t){return Mt(),new KS(h(t,21))},b.nc=function(t,s){return new UZe(this,t,h(s,21))},D(Pt,"AbstractSetMultimap",609),_(1627,609,zg),b.hc=function(){return new Kp(this.b)},b.ed=function(){return new Kp(this.b)},b.jc=function(){return q0e(new Kp(this.b))},b.fd=function(){return q0e(new Kp(this.b))},b.cc=function(t){return h(h(Br(this,t),21),81)},b.gd=function(t){return h(h(Br(this,t),21),81)},b.fc=function(t){return h(h(sP(this,t),21),81)},b.hd=function(t){return h(h(sP(this,t),21),81)},b.kc=function(t){return ue(t,270)?q0e(h(t,270)):(Mt(),new epe(h(t,81)))},b.Zb=function(){var t;return t=this.f,t||(this.f=ue(this.c,171)?new iR(this,h(this.c,171)):ue(this.c,161)?new oA(this,h(this.c,161)):new Vw(this,this.c))},b.nc=function(t,s){return ue(s,270)?new DQe(this,t,h(s,270)):new mpe(this,t,h(s,81))},D(Pt,"AbstractSortedSetMultimap",1627),_(1628,1627,zg),b.Zb=function(){var t;return t=this.f,h(h(t||(this.f=ue(this.c,171)?new iR(this,h(this.c,171)):ue(this.c,161)?new oA(this,h(this.c,161)):new Vw(this,this.c)),161),171)},b.ec=function(){var t;return t=this.i,h(h(t||(this.i=ue(this.c,171)?new JS(this,h(this.c,171)):ue(this.c,161)?new MT(this,h(this.c,161)):new Qw(this,this.c)),81),270)},b.bc=function(){return ue(this.c,171)?new JS(this,h(this.c,171)):ue(this.c,161)?new MT(this,h(this.c,161)):new Qw(this,this.c)},D(Pt,"AbstractSortedKeySortedSetMultimap",1628),_(1979,1,{1919:1}),b.Fb=function(t){return Xun(this,t)},b.Hb=function(){var t;return Xbe((t=this.g,t||(this.g=new DG(this))))},b.Ib=function(){var t;return yft((t=this.f,t||(this.f=new X1e(this))))},D(Pt,"AbstractTable",1979),_(653,md,au,DG),b.$b=function(){vXe()},b.Fc=function(t){var s,a;return ue(t,462)?(s=h(t,669),a=h(nL(btt(this.a),Zp(s.c.e,s.b)),84),!!a&&bme(a.tc(),new zw(Zp(s.c.c,s.a),H3(s.c,s.b,s.a)))):!1},b.Ic=function(){return RZt(this.a)},b.Kc=function(t){var s,a;return ue(t,462)?(s=h(t,669),a=h(nL(btt(this.a),Zp(s.c.e,s.b)),84),!!a&&yon(a.tc(),new zw(Zp(s.c.c,s.a),H3(s.c,s.b,s.a)))):!1},b.gc=function(){return met(this.a)},b.Lc=function(){return _en(this.a)},D(Pt,"AbstractTable/CellSet",653),_(w0,28,Cy,LUe),b.$b=function(){vXe()},b.Fc=function(t){return Vln(this.a,t)},b.Ic=function(){return $Zt(this.a)},b.gc=function(){return met(this.a)},b.Lc=function(){return Prt(this.a)},D(Pt,"AbstractTable/Values",w0),_(1602,1601,zg),D(Pt,"ArrayListMultimapGwtSerializationDependencies",1602),_(506,1602,zg,iX,gge),b.hc=function(){return new Va(this.a)},b.a=0,D(Pt,"ArrayListMultimap",506),_(652,1979,{652:1,1919:1,3:1},Gdt),D(Pt,"ArrayTable",652),_(1896,381,w6,sZe),b.Xb=function(t){return new Ybe(this.a,t)},D(Pt,"ArrayTable/1",1896),_(1897,1,{},FUe),b.jd=function(t){return new Ybe(this.a,t)},D(Pt,"ArrayTable/1methodref$getCell$Type",1897),_(1980,1,{669:1}),b.Fb=function(t){var s;return t===this?!0:ue(t,462)?(s=h(t,669),Th(Zp(this.c.e,this.b),Zp(s.c.e,s.b))&&Th(Zp(this.c.c,this.a),Zp(s.c.c,s.a))&&Th(H3(this.c,this.b,this.a),H3(s.c,s.b,s.a))):!1},b.Hb=function(){return tL(re(ne(hn,1),rt,1,5,[Zp(this.c.e,this.b),Zp(this.c.c,this.a),H3(this.c,this.b,this.a)]))},b.Ib=function(){return"("+Zp(this.c.e,this.b)+","+Zp(this.c.c,this.a)+")="+H3(this.c,this.b,this.a)},D(Pt,"Tables/AbstractCell",1980),_(462,1980,{462:1,669:1},Ybe),b.a=0,b.b=0,b.d=0,D(Pt,"ArrayTable/2",462),_(1899,1,{},BUe),b.jd=function(t){return Wot(this.a,t)},D(Pt,"ArrayTable/2methodref$getValue$Type",1899),_(1898,381,w6,aZe),b.Xb=function(t){return Wot(this.a,t)},D(Pt,"ArrayTable/3",1898),_(1951,1949,Pm),b.$b=function(){mR(this.kd())},b.tc=function(){return new XUe(this)},b.ld=function(){return new ztt(this.kd(),this.gc())},D(Pt,"Maps/IteratorBasedAbstractMap",1951),_(807,1951,Pm),b.$b=function(){throw ee(new Rn)},b._b=function(t){return ZXe(this.c,t)},b.kd=function(){return new cZe(this,this.c.b.c.gc())},b.ld=function(){return EK(this.c.b.c.gc(),16,new VUe(this))},b.vc=function(t){var s;return s=h(qC(this.c,t),20),s?this.nd(s.a):null},b.dc=function(){return this.c.b.c.dc()},b.ec=function(){return _K(this.c)},b.xc=function(t,s){var a;if(a=h(qC(this.c,t),20),!a)throw ee(new Gt(this.md()+" "+t+" not in "+_K(this.c)));return this.od(a.a,s)},b.zc=function(t){throw ee(new Rn)},b.gc=function(){return this.c.b.c.gc()},D(Pt,"ArrayTable/ArrayMap",807),_(1895,1,{},VUe),b.jd=function(t){return vtt(this.a,t)},D(Pt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1895),_(1893,342,pF,aKe),b.ad=function(){return nGt(this.a,this.b)},b.bd=function(){return this.a.nd(this.b)},b.cd=function(t){return this.a.od(this.b,t)},b.b=0,D(Pt,"ArrayTable/ArrayMap/1",1893),_(1894,381,w6,cZe),b.Xb=function(t){return vtt(this.a,t)},D(Pt,"ArrayTable/ArrayMap/2",1894),_(1892,807,Pm,rtt),b.md=function(){return"Column"},b.nd=function(t){return H3(this.b,this.a,t)},b.od=function(t,s){return oct(this.b,this.a,t,s)},b.a=0,D(Pt,"ArrayTable/Row",1892),_(808,807,Pm,X1e),b.nd=function(t){return new rtt(this.a,t)},b.xc=function(t,s){return h(s,84),FHt()},b.od=function(t,s){return h(s,84),BHt()},b.md=function(){return"Row"},D(Pt,"ArrayTable/RowMap",808),_(1093,1,Ll,cKe),b.qd=function(){return this.a.qd()&-262},b.rd=function(){return this.a.rd()},b.Nb=function(t){this.a.Nb(new lKe(t,this.b))},b.sd=function(t){return this.a.sd(new uKe(t,this.b))},D(Pt,"CollectSpliterators/1",1093),_(1094,1,ln,uKe),b.td=function(t){this.a.td(this.b.Kb(t))},D(Pt,"CollectSpliterators/1/lambda$0$Type",1094),_(1095,1,ln,lKe),b.td=function(t){this.a.td(this.b.Kb(t))},D(Pt,"CollectSpliterators/1/lambda$1$Type",1095),_(1096,1,Ll,Qrt),b.qd=function(){return this.a},b.rd=function(){return this.d&&(this.b=RQe(this.b,this.d.rd())),RQe(this.b,0)},b.Nb=function(t){this.d&&(this.d.Nb(t),this.d=null),this.c.Nb(new pKe(this.e,t)),this.b=0},b.sd=function(t){for(;;){if(!!this.d&&this.d.sd(t))return pC(this.b,gF)&&(this.b=p0(this.b,1)),!0;if(this.d=null,!this.c.sd(new fKe(this,this.e)))return!1}},b.a=0,b.b=0,D(Pt,"CollectSpliterators/1FlatMapSpliterator",1096),_(1097,1,ln,fKe),b.td=function(t){oXt(this.a,this.b,t)},D(Pt,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1097),_(1098,1,ln,pKe),b.td=function(t){HWt(this.b,this.a,t)},D(Pt,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1098),_(1090,1,Ll,xJe),b.qd=function(){return 16464|this.b},b.rd=function(){return this.a.rd()},b.Nb=function(t){this.a.xe(new hKe(t,this.c))},b.sd=function(t){return this.a.ye(new dKe(t,this.c))},b.b=0,D(Pt,"CollectSpliterators/1WithCharacteristics",1090),_(1091,1,YP,dKe),b.ud=function(t){this.a.td(this.b.jd(t))},D(Pt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1091),_(1092,1,YP,hKe),b.ud=function(t){this.a.td(this.b.jd(t))},D(Pt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1092),_(244,1,TJ),b.wd=function(t){return this.vd(h(t,244))},b.vd=function(t){var s;return t==(YG(),sne)?1:t==(KG(),one)?-1:(s=(hR(),GA(this.a,t.a)),s!=0?s:ue(this,512)==ue(t,512)?0:ue(this,512)?1:-1)},b.zd=function(){return this.a},b.Fb=function(t){return Xme(this,t)},D(Pt,"Cut",244),_(1732,244,TJ,gXe),b.vd=function(t){return t==this?0:1},b.xd=function(t){throw ee(new Jde)},b.yd=function(t){t.a+="+\u221E)"},b.zd=function(){throw ee(new Gs(ngt))},b.Hb=function(){return Sh(),ave(this)},b.Ad=function(t){return!1},b.Ib=function(){return"+\u221E"};var one;D(Pt,"Cut/AboveAll",1732),_(512,244,{244:1,512:1,3:1,36:1},yZe),b.xd=function(t){ua((t.a+="(",t),this.a)},b.yd=function(t){r0(ua(t,this.a),93)},b.Hb=function(){return~ri(this.a)},b.Ad=function(t){return hR(),GA(this.a,t)<0},b.Ib=function(){return"/"+this.a+"\\"},D(Pt,"Cut/AboveValue",512),_(1731,244,TJ,bXe),b.vd=function(t){return t==this?0:-1},b.xd=function(t){t.a+="(-\u221E"},b.yd=function(t){throw ee(new Jde)},b.zd=function(){throw ee(new Gs(ngt))},b.Hb=function(){return Sh(),ave(this)},b.Ad=function(t){return!0},b.Ib=function(){return"-\u221E"};var sne;D(Pt,"Cut/BelowAll",1731),_(1733,244,TJ,wZe),b.xd=function(t){ua((t.a+="[",t),this.a)},b.yd=function(t){r0(ua(t,this.a),41)},b.Hb=function(){return ri(this.a)},b.Ad=function(t){return hR(),GA(this.a,t)<=0},b.Ib=function(){return"\\"+this.a+"/"},D(Pt,"Cut/BelowValue",1733),_(529,1,Rh),b.Hc=function(t){So(this,t)},b.Ib=function(){return tsn(h(FR(this,"use Optional.orNull() instead of Optional.or(null)"),19).Ic())},D(Pt,"FluentIterable",529),_(426,529,Rh,jC),b.Ic=function(){return new mn(vn(this.a.Ic(),new j))},D(Pt,"FluentIterable/2",426),_(1010,529,Rh,TQe),b.Ic=function(){return yg(this)},D(Pt,"FluentIterable/3",1010),_(694,381,w6,K1e),b.Xb=function(t){return this.a[t].Ic()},D(Pt,"FluentIterable/3/1",694),_(1942,1,{}),b.Ib=function(){return Bs(this.Bd().b)},D(Pt,"ForwardingObject",1942),_(1943,1942,rgt),b.Bd=function(){return this.Cd()},b.Hc=function(t){So(this,t)},b.Jc=function(){return this.Mc()},b.Lc=function(){return new Lt(this,0)},b.Mc=function(){return new Rt(null,this.Lc())},b.Dc=function(t){return this.Cd(),OXe()},b.Ec=function(t){return this.Cd(),_Xe()},b.$b=function(){this.Cd(),MXe()},b.Fc=function(t){return this.Cd().Fc(t)},b.Gc=function(t){return this.Cd().Gc(t)},b.dc=function(){return this.Cd().b.dc()},b.Ic=function(){return this.Cd().Ic()},b.Kc=function(t){return this.Cd(),DXe()},b.gc=function(){return this.Cd().b.gc()},b.Nc=function(){return this.Cd().Nc()},b.Oc=function(t){return this.Cd().Oc(t)},D(Pt,"ForwardingCollection",1943),_(1952,28,t2e),b.Ic=function(){return this.Ed()},b.Dc=function(t){throw ee(new Rn)},b.Ec=function(t){throw ee(new Rn)},b.$b=function(){throw ee(new Rn)},b.Fc=function(t){return t!=null&&ay(this,t,!1)},b.Dd=function(){switch(this.gc()){case 0:return Xv(),Xv(),ane;case 1:return Xv(),new kK(Hn(this.Ed().Pb()));default:return new ott(this,this.Nc())}},b.Kc=function(t){throw ee(new Rn)},D(Pt,"ImmutableCollection",1952),_(693,1952,t2e,Qde),b.Ic=function(){return q3(this.a.Ic())},b.Fc=function(t){return t!=null&&this.a.Fc(t)},b.Gc=function(t){return this.a.Gc(t)},b.dc=function(){return this.a.dc()},b.Ed=function(){return q3(this.a.Ic())},b.gc=function(){return this.a.gc()},b.Nc=function(){return this.a.Nc()},b.Oc=function(t){return this.a.Oc(t)},b.Ib=function(){return Bs(this.a)},D(Pt,"ForwardingImmutableCollection",693),_(151,1952,Y8),b.Ic=function(){return this.Ed()},b.Wc=function(){return this.Fd(0)},b.Xc=function(t){return this.Fd(t)},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b._c=function(t,s){return this.Gd(t,s)},b.Tc=function(t,s){throw ee(new Rn)},b.Uc=function(t,s){throw ee(new Rn)},b.Fb=function(t){return Zhn(this,t)},b.Hb=function(){return cin(this)},b.Vc=function(t){return t==null?-1:Ccn(this,t)},b.Ed=function(){return this.Fd(0)},b.Fd=function(t){return lpe(this,t)},b.Yc=function(t){throw ee(new Rn)},b.Zc=function(t,s){throw ee(new Rn)},b.Gd=function(t,s){var a;return oL((a=new CKe(this),new Ph(a,t,s)))};var ane;D(Pt,"ImmutableList",151),_(1975,151,Y8),b.Ic=function(){return q3(this.Hd().Ic())},b._c=function(t,s){return oL(this.Hd()._c(t,s))},b.Fc=function(t){return t!=null&&this.Hd().Fc(t)},b.Gc=function(t){return this.Hd().Gc(t)},b.Fb=function(t){return Pr(this.Hd(),t)},b.Xb=function(t){return Zp(this,t)},b.Hb=function(){return ri(this.Hd())},b.Vc=function(t){return this.Hd().Vc(t)},b.dc=function(){return this.Hd().dc()},b.Ed=function(){return q3(this.Hd().Ic())},b.gc=function(){return this.Hd().gc()},b.Gd=function(t,s){return oL(this.Hd()._c(t,s))},b.Nc=function(){return this.Hd().Oc(ge(hn,rt,1,this.Hd().gc(),5,1))},b.Oc=function(t){return this.Hd().Oc(t)},b.Ib=function(){return Bs(this.Hd())},D(Pt,"ForwardingImmutableList",1975),_(703,1,x6),b.tc=function(){return Jb(this)},b.uc=function(t){w8(this,t)},b.ec=function(){return _K(this)},b.wc=function(t,s,a){return MQ(this,t,s,a)},b.Ac=function(){return this.Ld()},b.$b=function(){throw ee(new Rn)},b._b=function(t){return this.vc(t)!=null},b.sc=function(t){return this.Ld().Fc(t)},b.Jd=function(){return new hGe(this)},b.Kd=function(){return new pGe(this)},b.Fb=function(t){return Jin(this,t)},b.Hb=function(){return Jb(this).Hb()},b.dc=function(){return this.gc()==0},b.xc=function(t,s){return VHt()},b.zc=function(t){throw ee(new Rn)},b.Ib=function(){return Ffn(this)},b.Ld=function(){return this.e?this.e:this.e=this.Kd()},b.c=null,b.d=null,b.e=null;var gyt;D(Pt,"ImmutableMap",703),_(704,703,x6),b._b=function(t){return ZXe(this,t)},b.sc=function(t){return DKe(this.b,t)},b.Id=function(){return eut(new HUe(this))},b.Jd=function(){return eut(Ltt(this.b))},b.Kd=function(){return qd(),new Qde(Ftt(this.b))},b.Fb=function(t){return NKe(this.b,t)},b.vc=function(t){return qC(this,t)},b.Hb=function(){return ri(this.b.c)},b.dc=function(){return this.b.c.dc()},b.gc=function(){return this.b.c.gc()},b.Ib=function(){return Bs(this.b.c)},D(Pt,"ForwardingImmutableMap",704),_(1944,1943,AJ),b.Bd=function(){return this.Md()},b.Cd=function(){return this.Md()},b.Lc=function(){return new Lt(this,1)},b.Fb=function(t){return t===this||this.Md().Fb(t)},b.Hb=function(){return this.Md().Hb()},D(Pt,"ForwardingSet",1944),_(1053,1944,AJ,HUe),b.Bd=function(){return g5(this.a.b)},b.Cd=function(){return g5(this.a.b)},b.Fc=function(t){if(ue(t,43)&&h(t,43).ad()==null)return!1;try{return MKe(g5(this.a.b),t)}catch(s){if(s=ni(s),ue(s,203))return!1;throw ee(s)}},b.Md=function(){return g5(this.a.b)},b.Oc=function(t){var s;return s=wnt(g5(this.a.b),t),g5(this.a.b).b.gc()=0?"+":"")+(a/60|0),s=zj(m.Math.abs(a)%60),(Dft(),_yt)[this.q.getDay()]+" "+Myt[this.q.getMonth()]+" "+zj(this.q.getDate())+" "+zj(this.q.getHours())+":"+zj(this.q.getMinutes())+":"+zj(this.q.getSeconds())+" GMT"+t+s+" "+this.q.getFullYear()};var TB=D(xn,"Date",198);_(1887,198,dgt,rft),b.a=!1,b.b=0,b.c=0,b.d=0,b.e=0,b.f=0,b.g=!1,b.i=0,b.j=0,b.k=0,b.n=0,b.o=0,b.p=0,D("com.google.gwt.i18n.shared.impl","DateRecord",1887),_(1938,1,{}),b.fe=function(){return null},b.ge=function(){return null},b.he=function(){return null},b.ie=function(){return null},b.je=function(){return null},D(a4,"JSONValue",1938),_(214,1938,{214:1},cg,yde),b.Fb=function(t){return ue(t,214)?mge(this.a,h(t,214).a):!1},b.ee=function(){return uHt},b.Hb=function(){return cge(this.a)},b.fe=function(){return this},b.Ib=function(){var t,s,a;for(a=new ju("["),s=0,t=this.a.length;s0&&(a.a+=","),ua(a,ty(this,s));return a.a+="]",a.a},D(a4,"JSONArray",214),_(477,1938,{477:1},wde),b.ee=function(){return lHt},b.ge=function(){return this},b.Ib=function(){return Zt(),""+this.a},b.a=!1;var Syt,Eyt;D(a4,"JSONBoolean",477),_(965,59,S1,aXe),D(a4,"JSONException",965),_(1011,1938,{},te),b.ee=function(){return pHt},b.Ib=function(){return vc};var kyt;D(a4,"JSONNull",1011),_(257,1938,{257:1},zN),b.Fb=function(t){return ue(t,257)?this.a==h(t,257).a:!1},b.ee=function(){return fHt},b.Hb=function(){return o5(this.a)},b.he=function(){return this},b.Ib=function(){return this.a+""},b.a=0,D(a4,"JSONNumber",257),_(185,1938,{185:1},v3,yT),b.Fb=function(t){return ue(t,185)?mge(this.a,h(t,185).a):!1},b.ee=function(){return dHt},b.Hb=function(){return cge(this.a)},b.ie=function(){return this},b.Ib=function(){var t,s,a,l,f,v,w;for(w=new ju("{"),t=!0,v=tQ(this,ge(Qe,Oe,2,0,6,1)),a=v,l=0,f=a.length;l=0?":"+this.c:"")+")"},b.c=0;var j4e=D(Vs,"StackTraceElement",308);pyt={3:1,469:1,36:1,2:1};var Qe=D(Vs,n2e,2);_(106,412,{469:1},X1,fC,_l),D(Vs,"StringBuffer",106),_(98,412,{469:1},Wp,Dv,ju),D(Vs,"StringBuilder",98),_(674,73,QJ,Che),D(Vs,"StringIndexOutOfBoundsException",674),_(2012,1,{});var R4e;_(823,1,{},qe),b.Kb=function(t){return h(t,78).e},D(Vs,"Throwable/lambda$0$Type",823),_(41,59,{3:1,102:1,59:1,78:1,41:1},Rn,G1),D(Vs,"UnsupportedOperationException",41),_(239,236,{3:1,36:1,236:1,239:1},zA,Lhe),b.wd=function(t){return apt(this,h(t,239))},b.ke=function(){return gy(Hpt(this))},b.Fb=function(t){var s;return this===t?!0:ue(t,239)?(s=h(t,239),this.e==s.e&&apt(this,s)==0):!1},b.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=bc(this.f),this.b=On($i(t,-1)),this.b=33*this.b+On($i(t0(t,32),-1)),this.b=17*this.b+ki(this.e),this.b):(this.b=17*Xct(this.c)+ki(this.e),this.b)},b.Ib=function(){return Hpt(this)},b.a=0,b.b=0,b.d=0,b.e=0,b.f=0;var Ayt,nb,$4e,L4e,F4e,B4e,V4e,z4e,gne=D("java.math","BigDecimal",239);_(90,236,{3:1,36:1,236:1,90:1},sve,np,Zw,Lve,Qut,Jp),b.wd=function(t){return Uut(this,h(t,90))},b.ke=function(){return gy(kJ(this,0))},b.Fb=function(t){return jme(this,t)},b.Hb=function(){return Xct(this)},b.Ib=function(){return kJ(this,0)},b.b=-2,b.c=0,b.d=0,b.e=0;var bne,AB,U4e,mne,PB,F6,V2=D("java.math","BigInteger",90),Pyt,Oyt,w4,PI;_(480,1949,Pm),b.$b=function(){Xc(this)},b._b=function(t){return sd(this,t)},b.sc=function(t){return Mct(this,t,this.g)||Mct(this,t,this.f)},b.tc=function(){return new lg(this)},b.vc=function(t){return qn(this,t)},b.xc=function(t,s){return Fr(this,t,s)},b.zc=function(t){return U3(this,t)},b.gc=function(){return gC(this)},D(xn,"AbstractHashMap",480),_(260,md,au,lg),b.$b=function(){this.a.$b()},b.Fc=function(t){return Mrt(this,t)},b.Ic=function(){return new Ng(this.a)},b.Kc=function(t){var s;return Mrt(this,t)?(s=h(t,43).ad(),this.a.zc(s),!0):!1},b.gc=function(){return this.a.gc()},D(xn,"AbstractHashMap/EntrySet",260),_(261,1,bo,Ng),b.Nb=function(t){yo(this,t)},b.Pb=function(){return dm(this)},b.Ob=function(){return this.b},b.Qb=function(){_ot(this)},b.b=!1,D(xn,"AbstractHashMap/EntrySetIterator",261),_(411,1,bo,eC),b.Nb=function(t){yo(this,t)},b.Ob=function(){return LT(this)},b.Pb=function(){return rnt(this)},b.Qb=function(){wu(this)},b.b=0,b.c=-1,D(xn,"AbstractList/IteratorImpl",411),_(99,411,jh,wo),b.Qb=function(){wu(this)},b.Rb=function(t){Bv(this,t)},b.Sb=function(){return this.b>0},b.Tb=function(){return this.b},b.Ub=function(){return pn(this.b>0),this.a.Xb(this.c=--this.b)},b.Vb=function(){return this.b-1},b.Wb=function(t){Lv(this.c!=-1),this.a.Zc(this.c,t)},D(xn,"AbstractList/ListIteratorImpl",99),_(217,51,E6,Ph),b.Tc=function(t,s){Yv(t,this.b),this.c.Tc(this.a+t,s),++this.b},b.Xb=function(t){return qt(t,this.b),this.c.Xb(this.a+t)},b.Yc=function(t){var s;return qt(t,this.b),s=this.c.Yc(this.a+t),--this.b,s},b.Zc=function(t,s){return qt(t,this.b),this.c.Zc(this.a+t,s)},b.gc=function(){return this.b},b.a=0,b.b=0,D(xn,"AbstractList/SubList",217),_(380,md,au,VS),b.$b=function(){this.a.$b()},b.Fc=function(t){return this.a._b(t)},b.Ic=function(){var t;return t=this.a.tc().Ic(),new Ade(t)},b.Kc=function(t){return this.a._b(t)?(this.a.zc(t),!0):!1},b.gc=function(){return this.a.gc()},D(xn,"AbstractMap/1",380),_(678,1,bo,Ade),b.Nb=function(t){yo(this,t)},b.Ob=function(){return this.a.Ob()},b.Pb=function(){var t;return t=h(this.a.Pb(),43),t.ad()},b.Qb=function(){this.a.Qb()},D(xn,"AbstractMap/1/1",678),_(224,28,Cy,o1),b.$b=function(){this.a.$b()},b.Fc=function(t){return this.a.sc(t)},b.Ic=function(){var t;return t=this.a.tc().Ic(),new _v(t)},b.gc=function(){return this.a.gc()},D(xn,"AbstractMap/2",224),_(294,1,bo,_v),b.Nb=function(t){yo(this,t)},b.Ob=function(){return this.a.Ob()},b.Pb=function(){var t;return t=h(this.a.Pb(),43),t.bd()},b.Qb=function(){this.a.Qb()},D(xn,"AbstractMap/2/1",294),_(479,1,{479:1,43:1}),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Ia(this.d,s.ad())&&Ia(this.e,s.bd())):!1},b.ad=function(){return this.d},b.bd=function(){return this.e},b.Hb=function(){return Xw(this.d)^Xw(this.e)},b.cd=function(t){return Ape(this,t)},b.Ib=function(){return this.d+"="+this.e},D(xn,"AbstractMap/AbstractEntry",479),_(379,479,{479:1,379:1,43:1},wj),D(xn,"AbstractMap/SimpleEntry",379),_(1954,1,tee),b.Fb=function(t){var s;return ue(t,43)?(s=h(t,43),Ia(this.ad(),s.ad())&&Ia(this.bd(),s.bd())):!1},b.Hb=function(){return Xw(this.ad())^Xw(this.bd())},b.Ib=function(){return this.ad()+"="+this.bd()},D(xn,egt,1954),_(1961,1949,Z0t),b.rc=function(t){return zit(this,t)},b._b=function(t){return fK(this,t)},b.tc=function(){return new Mde(this)},b.vc=function(t){var s;return s=t,Xs(ome(this,s))},b.ec=function(){return new ET(this)},D(xn,"AbstractNavigableMap",1961),_(722,md,au,Mde),b.Fc=function(t){return ue(t,43)&&zit(this.b,h(t,43))},b.Ic=function(){return new UC(this.b)},b.Kc=function(t){var s;return ue(t,43)?(s=h(t,43),Tot(this.b,s)):!1},b.gc=function(){return this.b.c},D(xn,"AbstractNavigableMap/EntrySet",722),_(485,md,e2e,ET),b.Lc=function(){return new Sj(this)},b.$b=function(){cC(this.a)},b.Fc=function(t){return fK(this.a,t)},b.Ic=function(){var t;return t=new UC(new FC(this.a).b),new ST(t)},b.Kc=function(t){return fK(this.a,t)?(i8(this.a,t),!0):!1},b.gc=function(){return this.a.c},D(xn,"AbstractNavigableMap/NavigableKeySet",485),_(486,1,bo,ST),b.Nb=function(t){yo(this,t)},b.Ob=function(){return LT(this.a.a)},b.Pb=function(){var t;return t=nR(this.a),t.ad()},b.Qb=function(){DJe(this.a)},D(xn,"AbstractNavigableMap/NavigableKeySet/1",486),_(1973,28,Cy),b.Dc=function(t){return C5(s6(this,t)),!0},b.Ec=function(t){return Ut(t),cR(t!=this,"Can't add a queue to itself"),Cs(this,t)},b.$b=function(){for(;qY(this)!=null;);},D(xn,"AbstractQueue",1973),_(319,28,{4:1,19:1,28:1,15:1},g3,ort),b.Dc=function(t){return Ege(this,t),!0},b.$b=function(){Pge(this)},b.Fc=function(t){return nct(new n8(this),t)},b.dc=function(){return lC(this)},b.Ic=function(){return new n8(this)},b.Kc=function(t){return TJt(new n8(this),t)},b.gc=function(){return this.c-this.b&this.a.length-1},b.Lc=function(){return new Lt(this,272)},b.Oc=function(t){var s;return s=this.c-this.b&this.a.length-1,t.lengths&&ui(t,s,null),t},b.b=0,b.c=0,D(xn,"ArrayDeque",319),_(440,1,bo,n8),b.Nb=function(t){yo(this,t)},b.Ob=function(){return this.a!=this.b},b.Pb=function(){return iL(this)},b.Qb=function(){Zst(this)},b.a=0,b.b=0,b.c=-1,D(xn,"ArrayDeque/IteratorImpl",440),_(12,51,ggt,Fe,Va,vu),b.Tc=function(t,s){qv(this,t,s)},b.Dc=function(t){return Re(this,t)},b.Uc=function(t,s){return fme(this,t,s)},b.Ec=function(t){return Mi(this,t)},b.$b=function(){this.c=ge(hn,rt,1,0,5,1)},b.Fc=function(t){return Os(this,t,0)!=-1},b.Hc=function(t){gc(this,t)},b.Xb=function(t){return st(this,t)},b.Vc=function(t){return Os(this,t,0)},b.dc=function(){return this.c.length==0},b.Ic=function(){return new Q(this)},b.Yc=function(t){return tp(this,t)},b.Kc=function(t){return hc(this,t)},b.Ud=function(t,s){rrt(this,t,s)},b.Zc=function(t,s){return Nl(this,t,s)},b.gc=function(){return this.c.length},b.$c=function(t){co(this,t)},b.Nc=function(){return nK(this)},b.Oc=function(t){return Mh(this,t)};var Lwn=D(xn,"ArrayList",12);_(7,1,bo,Q),b.Nb=function(t){yo(this,t)},b.Ob=function(){return js(this)},b.Pb=function(){return Y(this)},b.Qb=function(){JC(this)},b.a=0,b.b=-1,D(xn,"ArrayList/1",7),_(1982,m.Function,{},Je),b.te=function(t,s){return go(t,s)},_(154,51,bgt,gu),b.Fc=function(t){return iat(this,t)!=-1},b.Hc=function(t){var s,a,l,f;for(Ut(t),a=this.a,l=0,f=a.length;l>>0,t.toString(16)))},b.f=0,b.i=Pi;var NB=D(Fh,"CNode",56);_(795,1,{},ohe),D(Fh,"CNode/CNodeBuilder",795);var Wyt;_(1495,1,{},ke),b.Oe=function(t,s){return 0},b.Pe=function(t,s){return 0},D(Fh,kgt,1495),_(1761,1,{},nt),b.Le=function(t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J;for(A=pi,l=new Q(t.a.b);l.al.d.c||l.d.c==v.d.c&&l.d.b0?t+this.n.d+this.n.a:0},b.Se=function(){var t,s,a,l,f;if(f=0,this.e)this.b?f=this.b.a:this.a[1][1]&&(f=this.a[1][1].Se());else if(this.g)f=Rme(this,gZ(this,null,!0));else for(s=(jf(),re(ne($y,1),je,230,0,[Zs,Ha,Js])),a=0,l=s.length;a0?f+this.n.b+this.n.c:0},b.Te=function(){var t,s,a,l,f;if(this.g)for(t=gZ(this,null,!1),a=(jf(),re(ne($y,1),je,230,0,[Zs,Ha,Js])),l=0,f=a.length;l0&&(l[0]+=this.d,a-=l[0]),l[2]>0&&(l[2]+=this.d,a-=l[2]),this.c.a=m.Math.max(0,a),this.c.d=s.d+t.d+(this.c.a-a)/2,l[1]=m.Math.max(l[1],a),Uge(this,Ha,s.d+t.d+l[0]-(l[1]-a)/2,l)},b.b=null,b.d=0,b.e=!1,b.f=!1,b.g=!1;var kne=0,jB=0;D(Hg,"GridContainerCell",1442),_(455,22,{3:1,36:1,22:1,455:1},gX);var T0,ch,vf,nwt=Gn(Hg,"HorizontalLabelAlignment",455,Zn,UJt,kXt),rwt;_(304,210,{210:1,304:1},Tnt,Ast,knt),b.Re=function(){return get(this)},b.Se=function(){return h0e(this)},b.a=0,b.c=!1;var Xwn=D(Hg,"LabelCell",304);_(243,324,{210:1,324:1,243:1},P8),b.Re=function(){return _P(this)},b.Se=function(){return MP(this)},b.Te=function(){oJ(this)},b.Ue=function(){sJ(this)},b.b=0,b.c=0,b.d=!1,D(Hg,"StripContainerCell",243),_(1596,1,mr,Bi),b.Mb=function(t){return RHt(h(t,210))},D(Hg,"StripContainerCell/lambda$0$Type",1596),_(1597,1,{},c3),b.Fe=function(t){return h(t,210).Se()},D(Hg,"StripContainerCell/lambda$1$Type",1597),_(1598,1,mr,Hp),b.Mb=function(t){return $Ht(h(t,210))},D(Hg,"StripContainerCell/lambda$2$Type",1598),_(1599,1,{},qs),b.Fe=function(t){return h(t,210).Re()},D(Hg,"StripContainerCell/lambda$3$Type",1599),_(456,22,{3:1,36:1,22:1,456:1},bX);var yf,A0,Uf,iwt=Gn(Hg,"VerticalLabelAlignment",456,Zn,HJt,CXt),owt;_(772,1,{},qwe),b.c=0,b.d=0,b.k=0,b.s=0,b.u=!1,b.v=0,b.C=!1,D(xF,"NodeContext",772),_(1440,1,zr,SN),b.ue=function(t,s){return kQe(h(t,61),h(s,61))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(xF,"NodeContext/0methodref$comparePortSides$Type",1440),_(1441,1,zr,$S),b.ue=function(t,s){return rfn(h(t,110),h(s,110))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(xF,"NodeContext/1methodref$comparePortContexts$Type",1441),_(159,22,{3:1,36:1,22:1,159:1},dl);var swt,awt,cwt,uwt,lwt,fwt,dwt,hwt,pwt,gwt,bwt,mwt,vwt,ywt,wwt,xwt,Swt,Ewt,kwt,Cwt,Iwt,Cne,Twt=Gn(xF,"NodeLabelLocation",159,Zn,GQ,IXt),Awt;_(110,1,{110:1},Ydt),b.a=!1,D(xF,"PortContext",110),_(1446,1,ln,Rw),b.td=function(t){SKe(h(t,304))},D(iO,$gt,1446),_(1447,1,mr,NW),b.Mb=function(t){return!!h(t,110).c},D(iO,Lgt,1447),_(1448,1,ln,RW),b.td=function(t){SKe(h(t,110).c)},D(iO,"LabelPlacer/lambda$2$Type",1448);var CSe;_(1445,1,ln,$W),b.td=function(t){Vv(),mHt(h(t,110))},D(iO,"NodeLabelAndSizeUtilities/lambda$0$Type",1445),_(1443,1,ln,FJe),b.td=function(t){Mqt(this.b,this.c,this.a,h(t,183))},b.a=!1,b.c=!1,D(iO,"NodeLabelCellCreator/lambda$0$Type",1443),_(1444,1,ln,OHe),b.td=function(t){SHt(this.a,h(t,183))},D(iO,"PortContextCreator/lambda$0$Type",1444);var RB;_(1801,1,{},jW),D(I6,"GreedyRectangleStripOverlapRemover",1801),_(1802,1,zr,LW),b.ue=function(t,s){return sGt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1802),_(1757,1,{},TGe),b.a=5,b.e=0,D(I6,"RectangleStripOverlapRemover",1757),_(1758,1,zr,Rb),b.ue=function(t,s){return aGt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1758),_(1760,1,zr,FW),b.ue=function(t,s){return PQt(h(t,220),h(s,220))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(I6,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1760),_(401,22,{3:1,36:1,22:1,401:1},Ej);var TO,Ine,Tne,AO,Pwt=Gn(I6,"RectangleStripOverlapRemover/OverlapRemovalDirection",401,Zn,Ven,TXt),Owt;_(220,1,{220:1},OK),D(I6,"RectangleStripOverlapRemover/RectangleNode",220),_(1759,1,ln,MHe),b.td=function(t){Acn(this.a,h(t,220))},D(I6,"RectangleStripOverlapRemover/lambda$1$Type",1759),_(1275,1,zr,BW),b.ue=function(t,s){return bmn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1275),_(1278,1,{},VW),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1278),_(1279,1,mr,zW),b.Mb=function(t){return h(t,322).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1279),_(1280,1,mr,UW),b.Mb=function(t){return h(t,322).a},D(Jd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1280),_(1273,1,zr,u3),b.ue=function(t,s){return rgn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1273),_(1276,1,{},HW),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1276),_(750,1,zr,EN),b.ue=function(t,s){return pin(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinNumOfExtensionsComparator",750),_(1271,1,zr,qW),b.ue=function(t,s){return xrn(h(t,320),h(s,320))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinPerimeterComparator",1271),_(1272,1,zr,WW),b.ue=function(t,s){return Jan(h(t,320),h(s,320))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/MinPerimeterComparatorWithShape",1272),_(1274,1,zr,GW),b.ue=function(t,s){return Tgn(h(t,167),h(s,167))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Jd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1274),_(1277,1,{},l3),b.Kb=function(t){return h(t,323).a},D(Jd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1277),_(760,1,{},Jhe),b.Ce=function(t,s){return Pen(this,h(t,46),h(s,167))},D(Jd,"SuccessorCombination",760),_(634,1,{},uT),b.Ce=function(t,s){var a;return ghn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorJitter",634),_(633,1,{},lT),b.Ce=function(t,s){var a;return Kpn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorLineByLine",633),_(561,1,{},Gk),b.Ce=function(t,s){var a;return p1n((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorManhattan",561),_(1327,1,{},XW),b.Ce=function(t,s){var a;return wpn((a=h(t,46),h(s,167),a))},D(Jd,"SuccessorMaxNormWindingInMathPosSense",1327),_(396,1,{},HS),b.Ce=function(t,s){return L0e(this,t,s)},b.c=!1,b.d=!1,b.e=!1,b.f=!1,D(Jd,"SuccessorQuadrantsGeneric",396),_(1328,1,{},KW),b.Kb=function(t){return h(t,323).a},D(Jd,"SuccessorQuadrantsGeneric/lambda$0$Type",1328),_(322,22,{3:1,36:1,22:1,322:1},kj),b.a=!1;var PO,OO,_O,MO,_wt=Gn(EF,x2e,322,Zn,Fen,AXt),Mwt;_(1269,1,{}),b.Ib=function(){var t,s,a,l,f,v;for(a=" ",t=Ue(0),f=0;f=0?"b"+t+"["+CY(this.a)+"]":"b["+CY(this.a)+"]"):"b_"+Kb(this)},D(sO,"FBendpoint",552),_(281,134,{3:1,281:1,94:1,134:1},iJe),b.Ib=function(){return CY(this)},D(sO,"FEdge",281),_(229,134,{3:1,229:1,94:1,134:1},l$);var Ywn=D(sO,"FGraph",229);_(441,354,{3:1,441:1,354:1,94:1,134:1},ait),b.Ib=function(){return this.b==null||this.b.length==0?"l["+CY(this.a)+"]":"l_"+this.b},D(sO,"FLabel",441),_(144,354,{3:1,144:1,354:1,94:1,134:1},wtt),b.Ib=function(){return vge(this)},b.b=0,D(sO,"FNode",144),_(1972,1,{}),b.cf=function(t){kwe(this,t)},b.df=function(){Rlt(this)},b.d=0,D(_2e,"AbstractForceModel",1972),_(621,1972,{621:1},Bat),b.bf=function(t,s){var a,l,f,v,w;return _dt(this.f,t,s),f=no(Ks(s.d),t.d),w=m.Math.sqrt(f.a*f.a+f.b*f.b),l=m.Math.max(0,w-e8(t.e)/2-e8(s.e)/2),a=Ect(this.e,t,s),a>0?v=-CQt(l,this.c)*a:v=SGt(l,this.b)*h(G(t,(Bf(),z6)),20).a,Ud(f,v/w),f},b.cf=function(t){kwe(this,t),this.a=h(G(t,(Bf(),zB)),20).a,this.c=Ae(Xe(G(t,UB))),this.b=Ae(Xe(G(t,Nne)))},b.ef=function(t){return t0&&(v-=MHt(l,this.a)*a),Ud(f,v*this.b/w),f},b.cf=function(t){var s,a,l,f,v,w,S;for(kwe(this,t),this.b=Ae(Xe(G(t,(Bf(),jne)))),this.c=this.b/h(G(t,zB),20).a,l=t.e.c.length,v=0,f=0,S=new Q(t.e);S.a0},b.a=0,b.b=0,b.c=0,D(_2e,"FruchtermanReingoldModel",622),_(828,1,Fl,Wze),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,IF),""),"Force Model"),"Determines the model for force calculation."),NSe),(dp(),xi)),jSe),Tt((Lf(),cn))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,M2e),""),"Iterations"),"The number of iterations on the force model."),Ue(300)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,D2e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Ue(0)),da),Do),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Eee),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),eh),ta),Io),Tt(cn)))),xo(t,Eee,IF,Zwt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,kee),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),ta),Io),Tt(cn)))),xo(t,kee,IF,Kwt),v0t((new Gze,t))};var Wwt,Gwt,NSe,Xwt,Kwt,Ywt,Qwt,Zwt;D(oI,"ForceMetaDataProvider",828),_(418,22,{3:1,36:1,22:1,418:1},t1e);var Dne,VB,jSe=Gn(oI,"ForceModelStrategy",418,Zn,KZt,_Xt),Jwt;_(968,1,Fl,Gze),b.Qe=function(t){v0t(t)};var e2t,t2t,RSe,zB,$Se,n2t,LSe,FSe,z6,r2t,Nne,BSe,i2t,o2t,UB,jne;D(oI,"ForceOptions",968),_(969,1,{},aG),b._e=function(){var t;return t=new nhe,t},b.af=function(t){},D(oI,"ForceOptions/ForceFactory",969);var jO,MI,x4,HB;_(829,1,Fl,Xze),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,R2e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Zt(),!1)),(dp(),Go)),io),Tt((Lf(),Yi))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$2e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),ta),Io),Zr(cn,re(ne(Ep,1),je,175,0,[dh]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,L2e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),VSe),xi),XSe),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,F2e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),eh),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,B2e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Ue(Ir)),da),Do),Tt(cn)))),qpt((new Kze,t))};var s2t,a2t,VSe,c2t,u2t,l2t;D(oI,"StressMetaDataProvider",829),_(972,1,Fl,Kze),b.Qe=function(t){qpt(t)};var qB,zSe,USe,HSe,qSe,WSe,GSe;D(oI,"StressOptions",972),_(973,1,{},oG),b._e=function(){var t;return t=new oJe,t},b.af=function(t){},D(oI,"StressOptions/StressFactory",973),_(1101,207,qg,oJe),b.$e=function(t,s){var a,l,f,v;for(Mn(s,Kgt,1),_t(It(Ot(t,(vP(),qSe))))||rdt(new nhe,t,Pa(s,1)),l=pct(t),a=mpt(this.a,l),v=a.Ic();v.Ob();)f=h(v.Pb(),229),!(f.e.c.length<=1)&&(gmn(this.b,f),a1n(this.b),gc(f.d,new sG));l=M0t(a),A0t(l),wn(s)},D(PF,"StressLayoutProvider",1101),_(1102,1,ln,sG),b.td=function(t){_we(h(t,441))},D(PF,"StressLayoutProvider/lambda$0$Type",1102),_(970,1,{},wGe),b.c=0,b.e=0,b.g=0,D(PF,"StressMajorization",970),_(376,22,{3:1,36:1,22:1,376:1},mX);var Rne,$ne,Lne,XSe=Gn(PF,"StressMajorization/Dimension",376,Zn,qJt,MXt),f2t;_(971,1,zr,RHe),b.ue=function(t,s){return uXt(this.a,h(t,144),h(s,144))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(PF,"StressMajorization/lambda$0$Type",971),_(1202,1,{},lrt),D(p4,"ElkLayered",1202),_(1203,1,ln,$He),b.td=function(t){Inn(this.a,h(t,38))},D(p4,"ElkLayered/lambda$0$Type",1203),_(1204,1,ln,LHe),b.td=function(t){cXt(this.a,h(t,38))},D(p4,"ElkLayered/lambda$1$Type",1204),_(1237,1,{},QQe);var d2t,h2t,p2t;D(p4,"GraphConfigurator",1237),_(742,1,ln,zde),b.td=function(t){zft(this.a,h(t,10))},D(p4,"GraphConfigurator/lambda$0$Type",742),_(743,1,{},TN),b.Kb=function(t){return Ave(),new Rt(null,new Lt(h(t,29).a,16))},D(p4,"GraphConfigurator/lambda$1$Type",743),_(744,1,ln,Ude),b.td=function(t){zft(this.a,h(t,10))},D(p4,"GraphConfigurator/lambda$2$Type",744),_(1100,207,qg,SGe),b.$e=function(t,s){var a;a=Bbn(new OGe,t),Pe(Ot(t,(Ye(),Uy)))===Pe((m1(),kp))?Isn(this.a,a,s):Chn(this.a,a,s),k0t(new Yze,a)},D(p4,"LayeredLayoutProvider",1100),_(353,22,{3:1,36:1,22:1,353:1},BT);var uh,P0,Rc,qa,Us,KSe=Gn(p4,"LayeredPhases",353,Zn,Stn,DXt),g2t;_(1621,1,{},rat),b.i=0;var b2t;D(lO,"ComponentsToCGraphTransformer",1621);var m2t;_(1622,1,{},cG),b.ff=function(t,s){return m.Math.min(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},b.gf=function(t,s){return m.Math.min(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},D(lO,"ComponentsToCGraphTransformer/1",1622),_(79,1,{79:1}),b.i=0,b.k=!0,b.o=Pi;var Fne=D(sI,"CNode",79);_(454,79,{454:1,79:1},ipe,nve),b.Ib=function(){return""},D(lO,"ComponentsToCGraphTransformer/CRectNode",454),_(1593,1,{},Yk);var Bne,Vne;D(lO,"OneDimensionalComponentsCompaction",1593),_(1594,1,{},iG),b.Kb=function(t){return DJt(h(t,46))},b.Fb=function(t){return this===t},D(lO,"OneDimensionalComponentsCompaction/lambda$0$Type",1594),_(1595,1,{},hT),b.Kb=function(t){return vsn(h(t,46))},b.Fb=function(t){return this===t},D(lO,"OneDimensionalComponentsCompaction/lambda$1$Type",1595),_(1624,1,{},xtt),D(sI,"CGraph",1624),_(189,1,{189:1},UQ),b.b=0,b.c=0,b.e=0,b.g=!0,b.i=Pi,D(sI,"CGroup",189),_(1623,1,{},fG),b.ff=function(t,s){return m.Math.max(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},b.gf=function(t,s){return m.Math.max(t.a!=null?Ae(t.a):t.c.i,s.a!=null?Ae(s.a):s.c.i)},D(sI,kgt,1623),_(1625,1,{},zdt),b.d=!1;var v2t,zne=D(sI,Tgt,1625);_(1626,1,{},dG),b.Kb=function(t){return Vhe(),Zt(),h(h(t,46).a,79).d.e!=0},b.Fb=function(t){return this===t},D(sI,Agt,1626),_(802,1,{},g0e),b.a=!1,b.b=!1,b.c=!1,b.d=!1,D(sI,Pgt,802),_(1797,1,{},Bet),D(OF,Ogt,1797);var RO=ii(Xg,Sgt);_(1798,1,{366:1},dnt),b.Ke=function(t){h0n(this,h(t,460))},D(OF,_gt,1798),_(1799,1,zr,hG),b.ue=function(t,s){return wZt(h(t,79),h(s,79))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(OF,Mgt,1799),_(460,1,{460:1},n1e),b.a=!1,D(OF,Dgt,460),_(1800,1,zr,PN),b.ue=function(t,s){return Oun(h(t,460),h(s,460))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(OF,Ngt,1800),_(140,1,{140:1},i5,a0e),b.Fb=function(t){var s;return t==null||Qwn!=ru(t)?!1:(s=h(t,140),Ia(this.c,s.c)&&Ia(this.d,s.d))},b.Hb=function(){return tL(re(ne(hn,1),rt,1,5,[this.c,this.d]))},b.Ib=function(){return"("+this.c+Fo+this.d+(this.a?"cx":"")+this.b+")"},b.a=!0,b.c=0,b.d=0;var Qwn=D(Xg,"Point",140);_(400,22,{3:1,36:1,22:1,400:1},Tj);var Fm,Ly,U2,Fy,y2t=Gn(Xg,"Point/Quadrant",400,Zn,Uen,NXt),w2t;_(1612,1,{},EGe),b.b=null,b.c=null,b.d=null,b.e=null,b.f=null;var x2t,S2t,E2t,k2t,C2t;D(Xg,"RectilinearConvexHull",1612),_(566,1,{366:1},SL),b.Ke=function(t){gnn(this,h(t,140))},b.b=0;var YSe;D(Xg,"RectilinearConvexHull/MaximalElementsEventHandler",566),_(1614,1,zr,lG),b.ue=function(t,s){return xZt(Xe(t),Xe(s))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1614),_(1613,1,{366:1},Tst),b.Ke=function(t){kpn(this,h(t,140))},b.a=0,b.b=null,b.c=null,b.d=null,b.e=null,D(Xg,"RectilinearConvexHull/RectangleEventHandler",1613),_(1615,1,zr,AN),b.ue=function(t,s){return ven(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$0$Type",1615),_(1616,1,zr,uG),b.ue=function(t,s){return yen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$1$Type",1616),_(1617,1,zr,pG),b.ue=function(t,s){return wen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$2$Type",1617),_(1618,1,zr,gG),b.ue=function(t,s){return xen(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$3$Type",1618),_(1619,1,zr,bG),b.ue=function(t,s){return mfn(h(t,140),h(s,140))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Xg,"RectilinearConvexHull/lambda$4$Type",1619),_(1620,1,{},Hnt),D(Xg,"Scanline",1620),_(1974,1,{}),D(pp,"AbstractGraphPlacer",1974),_(503,1,{503:1},set);var Vr;D(pp,"ComponentGroup",503),_(1265,1974,{},kGe),b.mf=function(t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W;if(this.a.c=ge(hn,rt,1,0,5,1),s.a.c=ge(hn,rt,1,0,5,1),t.dc()){s.f.a=0,s.f.b=0;return}for(w=h(t.Xb(0),38),Is(s,w),f=t.Ic();f.Ob();)l=h(f.Pb(),38),Zon(this,l);for(W=new Qo,v=Ae(Xe(G(w,(Ye(),BV)))),A=new Q(this.a);A.aq&&(Le=0,Ke+=V+f,V=0),oe=w.c,FP(w,Le+oe.a,Ke+oe.b),Vd(oe),a=m.Math.max(a,Le+he.a),V=m.Math.max(V,he.b),Le+=he.a+f;if(s.f.a=a,s.f.b=Ke+V,_t(It(G(v,Nre)))){for(l=new Qk,z0t(l,t,f),R=t.Ic();R.Ob();)M=h(R.Pb(),38),Rr(Vd(M.c),l.e);Rr(Vd(s.f),l.a)}Mot(s,t)},D(pp,"SimpleRowGraphPlacer",1263),_(1264,1,zr,yG),b.ue=function(t,s){return Gan(h(t,38),h(s,38))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(pp,"SimpleRowGraphPlacer/1",1264);var I2t;_(1236,1,Zd,Zk),b.Lb=function(t){var s;return s=h(G(h(t,242).b,(Ye(),ws)),74),!!s&&s.b!=0},b.Fb=function(t){return this===t},b.Mb=function(t){var s;return s=h(G(h(t,242).b,(Ye(),ws)),74),!!s&&s.b!=0},D(_F,"CompoundGraphPostprocessor/1",1236),_(1235,1,gi,PGe),b.nf=function(t,s){Slt(this,h(t,38),s)},D(_F,"CompoundGraphPreprocessor",1235),_(435,1,{435:1},gut),b.c=!1,D(_F,"CompoundGraphPreprocessor/ExternalPort",435),_(242,1,{242:1},uR),b.Ib=function(){return tK(this.c)+":"+Bdt(this.b)},D(_F,"CrossHierarchyEdge",242),_(747,1,zr,Hde),b.ue=function(t,s){return iun(this,h(t,242),h(s,242))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(_F,"CrossHierarchyEdgeComparator",747),_(299,134,{3:1,299:1,94:1,134:1}),b.p=0,D(nc,"LGraphElement",299),_(18,299,{3:1,18:1,299:1,94:1,134:1},om),b.Ib=function(){return Bdt(this)};var Une=D(nc,"LEdge",18);_(38,299,{3:1,19:1,38:1,299:1,94:1,134:1},xbe),b.Hc=function(t){So(this,t)},b.Ic=function(){return new Q(this.b)},b.Ib=function(){return this.b.c.length==0?"G-unlayered"+b0(this.a):this.a.c.length==0?"G-layered"+b0(this.b):"G[layerless"+b0(this.a)+", layers"+b0(this.b)+"]"};var T2t=D(nc,"LGraph",38);_(646,1,{}),b.of=function(){return this.e.n},b.Xe=function(t){return G(this.e,t)},b.pf=function(){return this.e.o},b.qf=function(){return this.e.p},b.Ye=function(t){return Lo(this.e,t)},b.rf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},b.sf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},b.tf=function(t){this.e.p=t},D(nc,"LGraphAdapters/AbstractLShapeAdapter",646),_(569,1,{818:1},qN),b.uf=function(){var t,s;if(!this.b)for(this.b=Eh(this.a.b.c.length),s=new Q(this.a.b);s.a0&&qct((Bn(s-1,t.length),t.charCodeAt(s-1)),tbt);)--s;if(v> ",t),_L(a)),Kn(ua((t.a+="[",t),a.i),"]")),t.a},b.c=!0,b.d=!1;var JSe,e5e,t5e,n5e,r5e,i5e,P2t=D(nc,"LPort",11);_(393,1,Rh,qS),b.Hc=function(t){So(this,t)},b.Ic=function(){var t;return t=new Q(this.a.e),new FHe(t)},D(nc,"LPort/1",393),_(1262,1,bo,FHe),b.Nb=function(t){yo(this,t)},b.Pb=function(){return h(Y(this.a),18).c},b.Ob=function(){return js(this.a)},b.Qb=function(){JC(this.a)},D(nc,"LPort/1/1",1262),_(356,1,Rh,h3),b.Hc=function(t){So(this,t)},b.Ic=function(){var t;return t=new Q(this.a.g),new qde(t)},D(nc,"LPort/2",356),_(746,1,bo,qde),b.Nb=function(t){yo(this,t)},b.Pb=function(){return h(Y(this.a),18).d},b.Ob=function(){return js(this.a)},b.Qb=function(){JC(this.a)},D(nc,"LPort/2/1",746),_(1255,1,Rh,aYe),b.Hc=function(t){So(this,t)},b.Ic=function(){return new dd(this)},D(nc,"LPort/CombineIter",1255),_(200,1,bo,dd),b.Nb=function(t){yo(this,t)},b.Qb=function(){zHt()},b.Ob=function(){return BC(this)},b.Pb=function(){return js(this.a)?Y(this.a):Y(this.b)},D(nc,"LPort/CombineIter/1",200),_(1257,1,Zd,pT),b.Lb=function(t){return Yet(t)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).e.c.length!=0},D(nc,"LPort/lambda$0$Type",1257),_(1256,1,Zd,gT),b.Lb=function(t){return Qet(t)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).g.c.length!=0},D(nc,"LPort/lambda$1$Type",1256),_(1258,1,Zd,wG),b.Lb=function(t){return Dc(),h(t,11).j==(He(),Wt)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).j==(He(),Wt)},D(nc,"LPort/lambda$2$Type",1258),_(1259,1,Zd,ON),b.Lb=function(t){return Dc(),h(t,11).j==(He(),rn)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).j==(He(),rn)},D(nc,"LPort/lambda$3$Type",1259),_(1260,1,Zd,bT),b.Lb=function(t){return Dc(),h(t,11).j==(He(),Sn)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).j==(He(),Sn)},D(nc,"LPort/lambda$4$Type",1260),_(1261,1,Zd,_N),b.Lb=function(t){return Dc(),h(t,11).j==(He(),Xt)},b.Fb=function(t){return this===t},b.Mb=function(t){return Dc(),h(t,11).j==(He(),Xt)},D(nc,"LPort/lambda$5$Type",1261),_(29,299,{3:1,19:1,299:1,29:1,94:1,134:1},Ml),b.Hc=function(t){So(this,t)},b.Ic=function(){return new Q(this.a)},b.Ib=function(){return"L_"+Os(this.b.b,this,0)+b0(this.a)},D(nc,"Layer",29),_(1313,1,{},OGe),D(gp,obt,1313),_(1317,1,{},$w),b.Kb=function(t){return Oa(h(t,93))},D(gp,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1317),_(1320,1,{},LS),b.Kb=function(t){return Oa(h(t,93))},D(gp,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1320),_(1314,1,ln,BHe),b.td=function(t){Jdt(this.a,h(t,122))},D(gp,sbt,1314),_(1315,1,ln,VHe),b.td=function(t){Jdt(this.a,h(t,122))},D(gp,abt,1315),_(1316,1,{},xG),b.Kb=function(t){return new Rt(null,new Lt(lZt(h(t,80)),16))},D(gp,cbt,1316),_(1318,1,mr,zHe),b.Mb=function(t){return CWt(this.a,h(t,34))},D(gp,ubt,1318),_(1319,1,{},MN),b.Kb=function(t){return new Rt(null,new Lt(fZt(h(t,80)),16))},D(gp,"ElkGraphImporter/lambda$5$Type",1319),_(1321,1,mr,UHe),b.Mb=function(t){return IWt(this.a,h(t,34))},D(gp,"ElkGraphImporter/lambda$7$Type",1321),_(1322,1,mr,SG),b.Mb=function(t){return AZt(h(t,80))},D(gp,"ElkGraphImporter/lambda$8$Type",1322),_(1250,1,{},Yze);var O2t;D(gp,"ElkGraphLayoutTransferrer",1250),_(1251,1,mr,HHe),b.Mb=function(t){return rXt(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$0$Type",1251),_(1252,1,ln,qHe),b.td=function(t){$T(),Re(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$1$Type",1252),_(1253,1,mr,WHe),b.Mb=function(t){return jGt(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$2$Type",1253),_(1254,1,ln,GHe),b.td=function(t){$T(),Re(this.a,h(t,18))},D(gp,"ElkGraphLayoutTransferrer/lambda$3$Type",1254),_(1455,1,gi,DN),b.nf=function(t,s){Drn(h(t,38),s)},D(Yt,"CommentNodeMarginCalculator",1455),_(1456,1,{},EG),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"CommentNodeMarginCalculator/lambda$0$Type",1456),_(1457,1,ln,kG),b.td=function(t){emn(h(t,10))},D(Yt,"CommentNodeMarginCalculator/lambda$1$Type",1457),_(1458,1,gi,NN),b.nf=function(t,s){x0n(h(t,38),s)},D(Yt,"CommentPostprocessor",1458),_(1459,1,gi,CG),b.nf=function(t,s){Eyn(h(t,38),s)},D(Yt,"CommentPreprocessor",1459),_(1460,1,gi,ze),b.nf=function(t,s){H1n(h(t,38),s)},D(Yt,"ConstraintsPostprocessor",1460),_(1461,1,gi,ht),b.nf=function(t,s){sin(h(t,38),s)},D(Yt,"EdgeAndLayerConstraintEdgeReverser",1461),_(1462,1,gi,Kt),b.nf=function(t,s){Xsn(h(t,38),s)},D(Yt,"EndLabelPostprocessor",1462),_(1463,1,{},Qr),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelPostprocessor/lambda$0$Type",1463),_(1464,1,mr,Ns),b.Mb=function(t){return zZt(h(t,10))},D(Yt,"EndLabelPostprocessor/lambda$1$Type",1464),_(1465,1,ln,Ya),b.td=function(t){_un(h(t,10))},D(Yt,"EndLabelPostprocessor/lambda$2$Type",1465),_(1466,1,gi,Wc),b.nf=function(t,s){xdn(h(t,38),s)},D(Yt,"EndLabelPreprocessor",1466),_(1467,1,{},As),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelPreprocessor/lambda$0$Type",1467),_(1468,1,ln,$Je),b.td=function(t){Oqt(this.a,this.b,this.c,h(t,10))},b.a=0,b.b=0,b.c=!1,D(Yt,"EndLabelPreprocessor/lambda$1$Type",1468),_(1469,1,mr,Gc),b.Mb=function(t){return Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),bE))},D(Yt,"EndLabelPreprocessor/lambda$2$Type",1469),_(1470,1,ln,XHe),b.td=function(t){dr(this.a,h(t,69))},D(Yt,"EndLabelPreprocessor/lambda$3$Type",1470),_(1471,1,mr,W1),b.Mb=function(t){return Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),Jy))},D(Yt,"EndLabelPreprocessor/lambda$4$Type",1471),_(1472,1,ln,KHe),b.td=function(t){dr(this.a,h(t,69))},D(Yt,"EndLabelPreprocessor/lambda$5$Type",1472),_(1521,1,gi,Qze),b.nf=function(t,s){Yon(h(t,38),s)};var _2t;D(Yt,"EndLabelSorter",1521),_(1522,1,zr,i1),b.ue=function(t,s){return Tan(h(t,449),h(s,449))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"EndLabelSorter/1",1522),_(449,1,{449:1},cnt),D(Yt,"EndLabelSorter/LabelGroup",449),_(1523,1,{},FS),b.Kb=function(t){return RT(),new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"EndLabelSorter/lambda$0$Type",1523),_(1524,1,mr,mT),b.Mb=function(t){return RT(),h(t,10).k==(nn(),ji)},D(Yt,"EndLabelSorter/lambda$1$Type",1524),_(1525,1,ln,vT),b.td=function(t){jfn(h(t,10))},D(Yt,"EndLabelSorter/lambda$2$Type",1525),_(1526,1,mr,jN),b.Mb=function(t){return RT(),Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),Jy))},D(Yt,"EndLabelSorter/lambda$3$Type",1526),_(1527,1,mr,nje),b.Mb=function(t){return RT(),Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),bE))},D(Yt,"EndLabelSorter/lambda$4$Type",1527),_(1473,1,gi,rje),b.nf=function(t,s){lmn(this,h(t,38))},b.b=0,b.c=0,D(Yt,"FinalSplineBendpointsCalculator",1473),_(1474,1,{},ije),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"FinalSplineBendpointsCalculator/lambda$0$Type",1474),_(1475,1,{},oje),b.Kb=function(t){return new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(Yt,"FinalSplineBendpointsCalculator/lambda$1$Type",1475),_(1476,1,mr,sje),b.Mb=function(t){return!Zo(h(t,18))},D(Yt,"FinalSplineBendpointsCalculator/lambda$2$Type",1476),_(1477,1,mr,aje),b.Mb=function(t){return Lo(h(t,18),(Be(),ib))},D(Yt,"FinalSplineBendpointsCalculator/lambda$3$Type",1477),_(1478,1,ln,YHe),b.td=function(t){Agn(this.a,h(t,128))},D(Yt,"FinalSplineBendpointsCalculator/lambda$4$Type",1478),_(1479,1,ln,cje),b.td=function(t){OZ(h(t,18).a)},D(Yt,"FinalSplineBendpointsCalculator/lambda$5$Type",1479),_(774,1,gi,Wde),b.nf=function(t,s){rvn(this,h(t,38),s)},D(Yt,"GraphTransformer",774),_(504,22,{3:1,36:1,22:1,504:1},r1e);var qne,$O,M2t=Gn(Yt,"GraphTransformer/Mode",504,Zn,ZZt,$Xt),D2t;_(1480,1,gi,uje),b.nf=function(t,s){Bpn(h(t,38),s)},D(Yt,"HierarchicalNodeResizingProcessor",1480),_(1481,1,gi,lje),b.nf=function(t,s){brn(h(t,38),s)},D(Yt,"HierarchicalPortConstraintProcessor",1481),_(1482,1,zr,fje),b.ue=function(t,s){return Ban(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortConstraintProcessor/NodeComparator",1482),_(1483,1,gi,dje),b.nf=function(t,s){$bn(h(t,38),s)},D(Yt,"HierarchicalPortDummySizeProcessor",1483),_(1484,1,gi,hje),b.nf=function(t,s){$0n(this,h(t,38),s)},b.a=0,D(Yt,"HierarchicalPortOrthogonalEdgeRouter",1484),_(1485,1,zr,pje),b.ue=function(t,s){return cGt(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortOrthogonalEdgeRouter/1",1485),_(1486,1,zr,gje),b.ue=function(t,s){return dnn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"HierarchicalPortOrthogonalEdgeRouter/2",1486),_(1487,1,gi,bje),b.nf=function(t,s){vfn(h(t,38),s)},D(Yt,"HierarchicalPortPositionProcessor",1487),_(1488,1,gi,Zze),b.nf=function(t,s){Qyn(this,h(t,38))},b.a=0,b.c=0;var WB,GB;D(Yt,"HighDegreeNodeLayeringProcessor",1488),_(563,1,{563:1},mje),b.b=-1,b.d=-1,D(Yt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",563),_(1489,1,{},vje),b.Kb=function(t){return fA(),_s(h(t,10))},b.Fb=function(t){return this===t},D(Yt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1489),_(1490,1,{},yje),b.Kb=function(t){return fA(),Di(h(t,10))},b.Fb=function(t){return this===t},D(Yt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1490),_(1496,1,gi,wje),b.nf=function(t,s){hbn(this,h(t,38),s)},D(Yt,"HyperedgeDummyMerger",1496),_(775,1,{},Xpe),b.a=!1,b.b=!1,b.c=!1,D(Yt,"HyperedgeDummyMerger/MergeState",775),_(1497,1,{},xje),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"HyperedgeDummyMerger/lambda$0$Type",1497),_(1498,1,{},Sje),b.Kb=function(t){return new Rt(null,new Lt(h(t,10).j,16))},D(Yt,"HyperedgeDummyMerger/lambda$1$Type",1498),_(1499,1,ln,Eje),b.td=function(t){h(t,11).p=-1},D(Yt,"HyperedgeDummyMerger/lambda$2$Type",1499),_(1500,1,gi,kje),b.nf=function(t,s){fbn(h(t,38),s)},D(Yt,"HypernodesProcessor",1500),_(1501,1,gi,Cje),b.nf=function(t,s){dbn(h(t,38),s)},D(Yt,"InLayerConstraintProcessor",1501),_(1502,1,gi,Ije),b.nf=function(t,s){nrn(h(t,38),s)},D(Yt,"InnermostNodeMarginCalculator",1502),_(1503,1,gi,Tje),b.nf=function(t,s){vyn(this,h(t,38))},b.a=Pi,b.b=Pi,b.c=pi,b.d=pi;var Zwn=D(Yt,"InteractiveExternalPortPositioner",1503);_(1504,1,{},Aje),b.Kb=function(t){return h(t,18).d.i},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$0$Type",1504),_(1505,1,{},QHe),b.Kb=function(t){return uGt(this.a,Xe(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$1$Type",1505),_(1506,1,{},Pje),b.Kb=function(t){return h(t,18).c.i},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$2$Type",1506),_(1507,1,{},ZHe),b.Kb=function(t){return lGt(this.a,Xe(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$3$Type",1507),_(1508,1,{},JHe),b.Kb=function(t){return eXt(this.a,Xe(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$4$Type",1508),_(1509,1,{},eqe),b.Kb=function(t){return tXt(this.a,Xe(t))},b.Fb=function(t){return this===t},D(Yt,"InteractiveExternalPortPositioner/lambda$5$Type",1509),_(77,22,{3:1,36:1,22:1,77:1,233:1},Ci),b.Hf=function(){switch(this.g){case 15:return new Y$e;case 22:return new Q$e;case 47:return new eLe;case 28:case 35:return new Bje;case 32:return new DN;case 42:return new NN;case 1:return new CG;case 41:return new ze;case 56:return new Wde((R5(),$O));case 0:return new Wde((R5(),qne));case 2:return new ht;case 54:return new Kt;case 33:return new Wc;case 51:return new rje;case 55:return new uje;case 13:return new lje;case 38:return new dje;case 44:return new hje;case 40:return new bje;case 9:return new Zze;case 49:return new kZe;case 37:return new wje;case 43:return new kje;case 27:return new Cje;case 30:return new Ije;case 3:return new Tje;case 18:return new _je;case 29:return new Mje;case 5:return new Jze;case 50:return new Oje;case 34:return new eUe;case 36:return new Vje;case 52:return new Qze;case 11:return new Uje;case 7:return new tUe;case 39:return new Hje;case 45:return new qje;case 16:return new Wje;case 10:return new Gje;case 48:return new Kje;case 21:return new Yje;case 23:return new JG((gm(),YI));case 8:return new Zje;case 12:return new eRe;case 4:return new tRe;case 19:return new nUe;case 17:return new fRe;case 53:return new dRe;case 6:return new kRe;case 25:return new _Ge;case 46:return new mRe;case 31:return new aJe;case 14:return new MRe;case 26:return new rLe;case 20:return new $Re;case 24:return new JG((gm(),KV));default:throw ee(new Gt(Pee+(this.f!=null?this.f:""+this.g)))}};var o5e,s5e,a5e,c5e,u5e,l5e,f5e,d5e,h5e,p5e,DI,XB,KB,g5e,b5e,m5e,v5e,y5e,w5e,x5e,NI,S5e,E5e,k5e,C5e,I5e,Wne,YB,Gne,T5e,QB,ZB,JB,U6,H6,q6,A5e,Xne,Kne,P5e,eV,tV,O5e,_5e,M5e,D5e,Yne,Qne,nV,rV,iV,oV,sV,N5e,j5e,R5e,$5e,Jwn=Gn(Yt,V2e,77,Zn,Bht,LXt),N2t;_(1510,1,gi,_je),b.nf=function(t,s){yyn(h(t,38),s)},D(Yt,"InvertedPortProcessor",1510),_(1511,1,gi,Mje),b.nf=function(t,s){pgn(h(t,38),s)},D(Yt,"LabelAndNodeSizeProcessor",1511),_(1512,1,mr,Dje),b.Mb=function(t){return h(t,10).k==(nn(),ji)},D(Yt,"LabelAndNodeSizeProcessor/lambda$0$Type",1512),_(1513,1,mr,Nje),b.Mb=function(t){return h(t,10).k==(nn(),Ai)},D(Yt,"LabelAndNodeSizeProcessor/lambda$1$Type",1513),_(1514,1,ln,LJe),b.td=function(t){_qt(this.b,this.a,this.c,h(t,10))},b.a=!1,b.c=!1,D(Yt,"LabelAndNodeSizeProcessor/lambda$2$Type",1514),_(1515,1,gi,Jze),b.nf=function(t,s){Hvn(h(t,38),s)};var j2t;D(Yt,"LabelDummyInserter",1515),_(1516,1,Zd,jje),b.Lb=function(t){return Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),gE))},b.Fb=function(t){return this===t},b.Mb=function(t){return Pe(G(h(t,69),(Ye(),fh)))===Pe((hd(),gE))},D(Yt,"LabelDummyInserter/1",1516),_(1517,1,gi,Oje),b.nf=function(t,s){Umn(h(t,38),s)},D(Yt,"LabelDummyRemover",1517),_(1518,1,mr,Rje),b.Mb=function(t){return _t(It(G(h(t,69),(Ye(),Lre))))},D(Yt,"LabelDummyRemover/lambda$0$Type",1518),_(1330,1,gi,eUe),b.nf=function(t,s){vvn(this,h(t,38),s)},b.a=null;var Zne;D(Yt,"LabelDummySwitcher",1330),_(285,1,{285:1},L1t),b.c=0,b.d=null,b.f=0,D(Yt,"LabelDummySwitcher/LabelDummyInfo",285),_(1331,1,{},$je),b.Kb=function(t){return W3(),new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"LabelDummySwitcher/lambda$0$Type",1331),_(1332,1,mr,Lje),b.Mb=function(t){return W3(),h(t,10).k==(nn(),ku)},D(Yt,"LabelDummySwitcher/lambda$1$Type",1332),_(1333,1,{},iqe),b.Kb=function(t){return RGt(this.a,h(t,10))},D(Yt,"LabelDummySwitcher/lambda$2$Type",1333),_(1334,1,ln,oqe),b.td=function(t){BQt(this.a,h(t,285))},D(Yt,"LabelDummySwitcher/lambda$3$Type",1334),_(1335,1,zr,Fje),b.ue=function(t,s){return gQt(h(t,285),h(s,285))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"LabelDummySwitcher/lambda$4$Type",1335),_(773,1,gi,Bje),b.nf=function(t,s){Htn(h(t,38),s)},D(Yt,"LabelManagementProcessor",773),_(1519,1,gi,Vje),b.nf=function(t,s){c0n(h(t,38),s)},D(Yt,"LabelSideSelector",1519),_(1520,1,mr,zje),b.Mb=function(t){return _t(It(G(h(t,69),(Ye(),Lre))))},D(Yt,"LabelSideSelector/lambda$0$Type",1520),_(1528,1,gi,Uje),b.nf=function(t,s){Lbn(h(t,38),s)},D(Yt,"LayerConstraintPostprocessor",1528),_(1529,1,gi,tUe),b.nf=function(t,s){c1n(h(t,38),s)};var L5e;D(Yt,"LayerConstraintPreprocessor",1529),_(357,22,{3:1,36:1,22:1,357:1},Aj);var LO,aV,cV,Jne,R2t=Gn(Yt,"LayerConstraintPreprocessor/HiddenNodeConnections",357,Zn,zen,FXt),$2t;_(1530,1,gi,Hje),b.nf=function(t,s){Bmn(h(t,38),s)},D(Yt,"LayerSizeAndGraphHeightCalculator",1530),_(1531,1,gi,qje),b.nf=function(t,s){Y1n(h(t,38),s)},D(Yt,"LongEdgeJoiner",1531),_(1532,1,gi,Wje),b.nf=function(t,s){xmn(h(t,38),s)},D(Yt,"LongEdgeSplitter",1532),_(1533,1,gi,Gje),b.nf=function(t,s){Svn(this,h(t,38),s)},b.d=0,b.e=0,b.i=0,b.j=0,b.k=0,b.n=0,D(Yt,"NodePromotion",1533),_(1534,1,{},Xje),b.Kb=function(t){return h(t,46),Zt(),!0},b.Fb=function(t){return this===t},D(Yt,"NodePromotion/lambda$0$Type",1534),_(1535,1,{},tqe),b.Kb=function(t){return sZt(this.a,h(t,46))},b.Fb=function(t){return this===t},b.a=0,D(Yt,"NodePromotion/lambda$1$Type",1535),_(1536,1,{},nqe),b.Kb=function(t){return aZt(this.a,h(t,46))},b.Fb=function(t){return this===t},b.a=0,D(Yt,"NodePromotion/lambda$2$Type",1536),_(1537,1,gi,Kje),b.nf=function(t,s){qyn(h(t,38),s)},D(Yt,"NorthSouthPortPostprocessor",1537),_(1538,1,gi,Yje),b.nf=function(t,s){_yn(h(t,38),s)},D(Yt,"NorthSouthPortPreprocessor",1538),_(1539,1,zr,Qje),b.ue=function(t,s){return fin(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"NorthSouthPortPreprocessor/lambda$0$Type",1539),_(1540,1,gi,Zje),b.nf=function(t,s){Kgn(h(t,38),s)},D(Yt,"PartitionMidprocessor",1540),_(1541,1,mr,Jje),b.Mb=function(t){return Lo(h(t,10),(Ye(),oE))},D(Yt,"PartitionMidprocessor/lambda$0$Type",1541),_(1542,1,ln,rqe),b.td=function(t){TZt(this.a,h(t,10))},D(Yt,"PartitionMidprocessor/lambda$1$Type",1542),_(1543,1,gi,eRe),b.nf=function(t,s){bpn(h(t,38),s)},D(Yt,"PartitionPostprocessor",1543),_(1544,1,gi,tRe),b.nf=function(t,s){Mhn(h(t,38),s)},D(Yt,"PartitionPreprocessor",1544),_(1545,1,mr,nRe),b.Mb=function(t){return Lo(h(t,10),(Ye(),oE))},D(Yt,"PartitionPreprocessor/lambda$0$Type",1545),_(1546,1,{},rRe),b.Kb=function(t){return new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(Yt,"PartitionPreprocessor/lambda$1$Type",1546),_(1547,1,mr,iRe),b.Mb=function(t){return Ean(h(t,18))},D(Yt,"PartitionPreprocessor/lambda$2$Type",1547),_(1548,1,ln,oRe),b.td=function(t){kin(h(t,18))},D(Yt,"PartitionPreprocessor/lambda$3$Type",1548),_(1549,1,gi,nUe),b.nf=function(t,s){$gn(h(t,38),s)};var F5e,L2t,F2t,B2t,B5e,V5e;D(Yt,"PortListSorter",1549),_(1550,1,{},sRe),b.Kb=function(t){return q5(),h(t,11).e},D(Yt,"PortListSorter/lambda$0$Type",1550),_(1551,1,{},aRe),b.Kb=function(t){return q5(),h(t,11).g},D(Yt,"PortListSorter/lambda$1$Type",1551),_(1552,1,zr,cRe),b.ue=function(t,s){return sit(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$2$Type",1552),_(1553,1,zr,uRe),b.ue=function(t,s){return Kcn(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$3$Type",1553),_(1554,1,zr,lRe),b.ue=function(t,s){return vpt(h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"PortListSorter/lambda$4$Type",1554),_(1555,1,gi,fRe),b.nf=function(t,s){n1n(h(t,38),s)},D(Yt,"PortSideProcessor",1555),_(1556,1,gi,dRe),b.nf=function(t,s){Y0n(h(t,38),s)},D(Yt,"ReversedEdgeRestorer",1556),_(1561,1,gi,_Ge),b.nf=function(t,s){Mcn(this,h(t,38),s)},D(Yt,"SelfLoopPortRestorer",1561),_(1562,1,{},hRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopPortRestorer/lambda$0$Type",1562),_(1563,1,mr,pRe),b.Mb=function(t){return h(t,10).k==(nn(),ji)},D(Yt,"SelfLoopPortRestorer/lambda$1$Type",1563),_(1564,1,mr,gRe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopPortRestorer/lambda$2$Type",1564),_(1565,1,{},bRe),b.Kb=function(t){return h(G(h(t,10),(Be(),tE)),398)},D(Yt,"SelfLoopPortRestorer/lambda$3$Type",1565),_(1566,1,ln,sqe),b.td=function(t){Xfn(this.a,h(t,398))},D(Yt,"SelfLoopPortRestorer/lambda$4$Type",1566),_(776,1,ln,Zfe),b.td=function(t){odn(h(t,101))},D(Yt,"SelfLoopPortRestorer/lambda$5$Type",776),_(1567,1,gi,mRe),b.nf=function(t,s){Van(h(t,38),s)},D(Yt,"SelfLoopPostProcessor",1567),_(1568,1,{},vRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopPostProcessor/lambda$0$Type",1568),_(1569,1,mr,yRe),b.Mb=function(t){return h(t,10).k==(nn(),ji)},D(Yt,"SelfLoopPostProcessor/lambda$1$Type",1569),_(1570,1,mr,wRe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopPostProcessor/lambda$2$Type",1570),_(1571,1,ln,xRe),b.td=function(t){Qun(h(t,10))},D(Yt,"SelfLoopPostProcessor/lambda$3$Type",1571),_(1572,1,{},SRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,101).f,1))},D(Yt,"SelfLoopPostProcessor/lambda$4$Type",1572),_(1573,1,ln,aqe),b.td=function(t){Gen(this.a,h(t,404))},D(Yt,"SelfLoopPostProcessor/lambda$5$Type",1573),_(1574,1,mr,ERe),b.Mb=function(t){return!!h(t,101).i},D(Yt,"SelfLoopPostProcessor/lambda$6$Type",1574),_(1575,1,ln,cqe),b.td=function(t){_Ht(this.a,h(t,101))},D(Yt,"SelfLoopPostProcessor/lambda$7$Type",1575),_(1557,1,gi,kRe),b.nf=function(t,s){M1n(h(t,38),s)},D(Yt,"SelfLoopPreProcessor",1557),_(1558,1,{},CRe),b.Kb=function(t){return new Rt(null,new Lt(h(t,101).f,1))},D(Yt,"SelfLoopPreProcessor/lambda$0$Type",1558),_(1559,1,{},IRe),b.Kb=function(t){return h(t,404).a},D(Yt,"SelfLoopPreProcessor/lambda$1$Type",1559),_(1560,1,ln,TRe),b.td=function(t){RWt(h(t,18))},D(Yt,"SelfLoopPreProcessor/lambda$2$Type",1560),_(1576,1,gi,aJe),b.nf=function(t,s){Rfn(this,h(t,38),s)},D(Yt,"SelfLoopRouter",1576),_(1577,1,{},ARe),b.Kb=function(t){return new Rt(null,new Lt(h(t,29).a,16))},D(Yt,"SelfLoopRouter/lambda$0$Type",1577),_(1578,1,mr,PRe),b.Mb=function(t){return h(t,10).k==(nn(),ji)},D(Yt,"SelfLoopRouter/lambda$1$Type",1578),_(1579,1,mr,ORe),b.Mb=function(t){return Lo(h(t,10),(Be(),tE))},D(Yt,"SelfLoopRouter/lambda$2$Type",1579),_(1580,1,{},_Re),b.Kb=function(t){return h(G(h(t,10),(Be(),tE)),398)},D(Yt,"SelfLoopRouter/lambda$3$Type",1580),_(1581,1,ln,cYe),b.td=function(t){SZt(this.a,this.b,h(t,398))},D(Yt,"SelfLoopRouter/lambda$4$Type",1581),_(1582,1,gi,MRe),b.nf=function(t,s){Gpn(h(t,38),s)},D(Yt,"SemiInteractiveCrossMinProcessor",1582),_(1583,1,mr,DRe),b.Mb=function(t){return h(t,10).k==(nn(),ji)},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1583),_(1584,1,mr,NRe),b.Mb=function(t){return Tet(h(t,10))._b((Ye(),Gy))},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1584),_(1585,1,zr,jRe),b.ue=function(t,s){return Trn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1585),_(1586,1,{},RRe),b.Ce=function(t,s){return jZt(h(t,10),h(s,10))},D(Yt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1586),_(1588,1,gi,$Re),b.nf=function(t,s){ybn(h(t,38))},D(Yt,"SortByInputModelProcessor",1588),_(1589,1,mr,LRe),b.Mb=function(t){return h(t,11).g.c.length!=0},D(Yt,"SortByInputModelProcessor/lambda$0$Type",1589),_(1590,1,ln,uqe),b.td=function(t){jln(this.a,h(t,11))},D(Yt,"SortByInputModelProcessor/lambda$1$Type",1590),_(1663,785,{},wat),b.Me=function(t){var s,a,l,f;switch(this.c=t,this.a.g){case 2:s=new Fe,mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new ZRe),new hYe(this,s)),PP(this,new BRe),gc(s,new VRe),s.c=ge(hn,rt,1,0,5,1),mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new zRe),new fqe(s)),PP(this,new URe),gc(s,new HRe),s.c=ge(hn,rt,1,0,5,1),a=zQe(xat(RR(new Rt(null,new Lt(this.c.a.b,16)),new dqe(this))),new qRe),mi(new Rt(null,new Lt(this.c.a.a,16)),new lYe(a,s)),PP(this,new GRe),gc(s,new XRe),s.c=ge(hn,rt,1,0,5,1);break;case 3:l=new Fe,PP(this,new FRe),f=zQe(xat(RR(new Rt(null,new Lt(this.c.a.b,16)),new lqe(this))),new WRe),mi(Kr(new Rt(null,new Lt(this.c.a.b,16)),new KRe),new dYe(f,l)),PP(this,new YRe),gc(l,new QRe),l.c=ge(hn,rt,1,0,5,1);break;default:throw ee(new vGe)}},b.b=0,D(Oi,"EdgeAwareScanlineConstraintCalculation",1663),_(1664,1,Zd,FRe),b.Lb=function(t){return ue(h(t,56).g,145)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,145)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1664),_(1665,1,{},lqe),b.Fe=function(t){return zdn(this.a,h(t,56))},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1665),_(1673,1,mF,uYe),b.Vd=function(){D8(this.a,this.b,-1)},b.b=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1673),_(1675,1,Zd,BRe),b.Lb=function(t){return ue(h(t,56).g,145)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,145)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1675),_(1676,1,ln,VRe),b.td=function(t){h(t,362).Vd()},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1676),_(1677,1,mr,zRe),b.Mb=function(t){return ue(h(t,56).g,10)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1677),_(1679,1,ln,fqe),b.td=function(t){psn(this.a,h(t,56))},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1679),_(1678,1,mF,bYe),b.Vd=function(){D8(this.b,this.a,-1)},b.a=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1678),_(1680,1,Zd,URe),b.Lb=function(t){return ue(h(t,56).g,10)},b.Fb=function(t){return this===t},b.Mb=function(t){return ue(h(t,56).g,10)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1680),_(1681,1,ln,HRe),b.td=function(t){h(t,362).Vd()},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1681),_(1682,1,{},dqe),b.Fe=function(t){return Udn(this.a,h(t,56))},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1682),_(1683,1,{},qRe),b.De=function(){return 0},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1683),_(1666,1,{},WRe),b.De=function(){return 0},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1666),_(1685,1,ln,lYe),b.td=function(t){nQt(this.a,this.b,h(t,305))},b.a=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1685),_(1684,1,mF,fYe),b.Vd=function(){wht(this.a,this.b,-1)},b.b=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1684),_(1686,1,Zd,GRe),b.Lb=function(t){return h(t,56),!0},b.Fb=function(t){return this===t},b.Mb=function(t){return h(t,56),!0},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1686),_(1687,1,ln,XRe),b.td=function(t){h(t,362).Vd()},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1687),_(1667,1,mr,KRe),b.Mb=function(t){return ue(h(t,56).g,10)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1667),_(1669,1,ln,dYe),b.td=function(t){rQt(this.a,this.b,h(t,56))},b.a=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1669),_(1668,1,mF,mYe),b.Vd=function(){D8(this.b,this.a,-1)},b.a=0,D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1668),_(1670,1,Zd,YRe),b.Lb=function(t){return h(t,56),!0},b.Fb=function(t){return this===t},b.Mb=function(t){return h(t,56),!0},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1670),_(1671,1,ln,QRe),b.td=function(t){h(t,362).Vd()},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1671),_(1672,1,mr,ZRe),b.Mb=function(t){return ue(h(t,56).g,145)},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1672),_(1674,1,ln,hYe),b.td=function(t){Gnn(this.a,this.b,h(t,56))},D(Oi,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1674),_(1491,1,gi,kZe),b.nf=function(t,s){Pmn(this,h(t,38),s)};var V2t;D(Oi,"HorizontalGraphCompactor",1491),_(1492,1,{},hqe),b.Oe=function(t,s){var a,l,f;return obe(t,s)||(a=t2(t),l=t2(s),!!a&&a.k==(nn(),Ai)||!!l&&l.k==(nn(),Ai))?0:(f=h(G(this.a.a,(Be(),Q2)),302),hGt(f,a?a.k:(nn(),Ki),l?l.k:(nn(),Ki)))},b.Pe=function(t,s){var a,l,f;return obe(t,s)?1:(a=t2(t),l=t2(s),f=h(G(this.a.a,(Be(),Q2)),302),ape(f,a?a.k:(nn(),Ki),l?l.k:(nn(),Ki)))},D(Oi,"HorizontalGraphCompactor/1",1492),_(1493,1,{},JRe),b.Ne=function(t,s){return bC(),t.a.i==0},D(Oi,"HorizontalGraphCompactor/lambda$0$Type",1493),_(1494,1,{},pqe),b.Ne=function(t,s){return PZt(this.a,t,s)},D(Oi,"HorizontalGraphCompactor/lambda$1$Type",1494),_(1634,1,{},nst);var z2t,U2t;D(Oi,"LGraphToCGraphTransformer",1634),_(1642,1,mr,e$e),b.Mb=function(t){return t!=null},D(Oi,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1642),_(1635,1,{},t$e),b.Kb=function(t){return ff(),Bs(G(h(h(t,56).g,10),(Be(),Dr)))},D(Oi,"LGraphToCGraphTransformer/lambda$0$Type",1635),_(1636,1,{},n$e),b.Kb=function(t){return ff(),nut(h(h(t,56).g,145))},D(Oi,"LGraphToCGraphTransformer/lambda$1$Type",1636),_(1645,1,mr,r$e),b.Mb=function(t){return ff(),ue(h(t,56).g,10)},D(Oi,"LGraphToCGraphTransformer/lambda$10$Type",1645),_(1646,1,ln,i$e),b.td=function(t){BZt(h(t,56))},D(Oi,"LGraphToCGraphTransformer/lambda$11$Type",1646),_(1647,1,mr,o$e),b.Mb=function(t){return ff(),ue(h(t,56).g,145)},D(Oi,"LGraphToCGraphTransformer/lambda$12$Type",1647),_(1651,1,ln,s$e),b.td=function(t){Aon(h(t,56))},D(Oi,"LGraphToCGraphTransformer/lambda$13$Type",1651),_(1648,1,ln,gqe),b.td=function(t){lWt(this.a,h(t,8))},b.a=0,D(Oi,"LGraphToCGraphTransformer/lambda$14$Type",1648),_(1649,1,ln,bqe),b.td=function(t){dWt(this.a,h(t,109))},b.a=0,D(Oi,"LGraphToCGraphTransformer/lambda$15$Type",1649),_(1650,1,ln,mqe),b.td=function(t){fWt(this.a,h(t,8))},b.a=0,D(Oi,"LGraphToCGraphTransformer/lambda$16$Type",1650),_(1652,1,{},a$e),b.Kb=function(t){return ff(),new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(Oi,"LGraphToCGraphTransformer/lambda$17$Type",1652),_(1653,1,mr,c$e),b.Mb=function(t){return ff(),Zo(h(t,18))},D(Oi,"LGraphToCGraphTransformer/lambda$18$Type",1653),_(1654,1,ln,vqe),b.td=function(t){jnn(this.a,h(t,18))},D(Oi,"LGraphToCGraphTransformer/lambda$19$Type",1654),_(1638,1,ln,yqe),b.td=function(t){Sen(this.a,h(t,145))},D(Oi,"LGraphToCGraphTransformer/lambda$2$Type",1638),_(1655,1,{},u$e),b.Kb=function(t){return ff(),new Rt(null,new Lt(h(t,29).a,16))},D(Oi,"LGraphToCGraphTransformer/lambda$20$Type",1655),_(1656,1,{},l$e),b.Kb=function(t){return ff(),new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(Oi,"LGraphToCGraphTransformer/lambda$21$Type",1656),_(1657,1,{},f$e),b.Kb=function(t){return ff(),h(G(h(t,18),(Be(),ib)),14)},D(Oi,"LGraphToCGraphTransformer/lambda$22$Type",1657),_(1658,1,mr,d$e),b.Mb=function(t){return dGt(h(t,14))},D(Oi,"LGraphToCGraphTransformer/lambda$23$Type",1658),_(1659,1,ln,wqe),b.td=function(t){jdn(this.a,h(t,14))},D(Oi,"LGraphToCGraphTransformer/lambda$24$Type",1659),_(1637,1,ln,pYe),b.td=function(t){stn(this.a,this.b,h(t,145))},D(Oi,"LGraphToCGraphTransformer/lambda$3$Type",1637),_(1639,1,{},h$e),b.Kb=function(t){return ff(),new Rt(null,new Lt(h(t,29).a,16))},D(Oi,"LGraphToCGraphTransformer/lambda$4$Type",1639),_(1640,1,{},p$e),b.Kb=function(t){return ff(),new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(Oi,"LGraphToCGraphTransformer/lambda$5$Type",1640),_(1641,1,{},g$e),b.Kb=function(t){return ff(),h(G(h(t,18),(Be(),ib)),14)},D(Oi,"LGraphToCGraphTransformer/lambda$6$Type",1641),_(1643,1,ln,xqe),b.td=function(t){uhn(this.a,h(t,14))},D(Oi,"LGraphToCGraphTransformer/lambda$8$Type",1643),_(1644,1,ln,gYe),b.td=function(t){MWt(this.a,this.b,h(t,145))},D(Oi,"LGraphToCGraphTransformer/lambda$9$Type",1644),_(1633,1,{},b$e),b.Le=function(t){var s,a,l,f,v;for(this.a=t,this.d=new UG,this.c=ge(kSe,rt,119,this.a.a.a.c.length,0,1),this.b=0,a=new Q(this.a.a.a);a.a=J&&(Re(v,Ue(M)),he=m.Math.max(he,me[M-1]-R),S+=W,oe+=me[M-1]-oe,R=me[M-1],W=C[M]),W=m.Math.max(W,C[M]),++M;S+=W}q=m.Math.min(1/he,1/s.b/S),q>l&&(l=q,a=v)}return a},b.Tf=function(){return!1},D(th,"MSDCutIndexHeuristic",784),_(1587,1,gi,rLe),b.nf=function(t,s){Obn(h(t,38),s)},D(th,"SingleEdgeGraphWrapper",1587),_(225,22,{3:1,36:1,22:1,225:1},SC);var q2,X6,K6,By,jI,W2,Y6=Gn(Ea,"CenterEdgeLabelPlacementStrategy",225,Zn,tnn,KXt),txt;_(417,22,{3:1,36:1,22:1,417:1},i1e);var U5e,lre,H5e=Gn(Ea,"ConstraintCalculationStrategy",417,Zn,nJt,YXt),nxt;_(333,22,{3:1,36:1,22:1,333:1,245:1,233:1},o1e),b.Hf=function(){return Wft(this)},b.Uf=function(){return Wft(this)};var FO,E4,q5e=Gn(Ea,"CrossingMinimizationStrategy",333,Zn,tJt,qXt),rxt;_(335,22,{3:1,36:1,22:1,335:1},wX);var W5e,fre,pV,G5e=Gn(Ea,"CuttingStrategy",335,Zn,ZJt,HXt),ixt;_(416,22,{3:1,36:1,22:1,416:1,245:1,233:1},xX),b.Hf=function(){return Qft(this)},b.Uf=function(){return Qft(this)};var X5e,dre,hre,K5e=Gn(Ea,"CycleBreakingStrategy",416,Zn,JJt,WXt),oxt;_(413,22,{3:1,36:1,22:1,413:1},s1e);var gV,Y5e,Q5e=Gn(Ea,"DirectionCongruency",413,Zn,eJt,GXt),sxt;_(444,22,{3:1,36:1,22:1,444:1},SX);var Q6,pre,G2,axt=Gn(Ea,"EdgeConstraint",444,Zn,een,XXt),cxt;_(274,22,{3:1,36:1,22:1,274:1},EC);var gre,bre,mre,vre,bV,yre,Z5e=Gn(Ea,"EdgeLabelSideSelection",274,Zn,Ztn,QXt),uxt;_(473,22,{3:1,36:1,22:1,473:1},a1e);var mV,J5e,e6e=Gn(Ea,"EdgeStraighteningStrategy",473,Zn,oJt,ZXt),lxt;_(272,22,{3:1,36:1,22:1,272:1},kC);var wre,t6e,n6e,vV,r6e,i6e,o6e=Gn(Ea,"FixedAlignment",272,Zn,Jtn,JXt),fxt;_(273,22,{3:1,36:1,22:1,273:1},CC);var s6e,a6e,c6e,u6e,RI,l6e,f6e=Gn(Ea,"GraphCompactionStrategy",273,Zn,enn,eKt),dxt;_(255,22,{3:1,36:1,22:1,255:1},jv);var Z6,yV,J6,yl,$I,wV,eE,X2,xV,LI,xre=Gn(Ea,"GraphProperties",255,Zn,Mrn,tKt),hxt;_(292,22,{3:1,36:1,22:1,292:1},EX);var BO,Sre,Ere,kre=Gn(Ea,"GreedySwitchType",292,Zn,aen,nKt),pxt;_(301,22,{3:1,36:1,22:1,301:1},kX);var k4,VO,K2,gxt=Gn(Ea,"InLayerConstraint",301,Zn,sen,rKt),bxt;_(414,22,{3:1,36:1,22:1,414:1},c1e);var Cre,d6e,h6e=Gn(Ea,"InteractiveReferencePoint",414,Zn,JZt,iKt),mxt,p6e,C4,zm,SV,g6e,b6e,EV,m6e,kV,CV,FI,I4,T4,Ire,IV,ea,v6e,TV,ja,Tre,Are,zO,rb,Um,A4,y6e,P4,UO,Vy,Hf,ql,Pre,Y2,Sd,Dr,w6e,x6e,S6e,E6e,k6e,Ore,AV,Yc,Hm,_re,O4,HO,_0,tE,Q2,Z2,nE,ib,C6e,Mre,_4;_(165,22,{3:1,36:1,22:1,165:1},zT);var BI,M0,VI,zy,qO,I6e=Gn(Ea,"LayerConstraint",165,Zn,ktn,oKt),vxt;_(827,1,Fl,aUe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,z2e),""),"Consider model order"),"Preserves the order of nodes and edges in the model file if this does not lead to edge crossings or conflicts between the ordering or edges and nodes."),P6e),(dp(),xi)),QEe),Tt((Lf(),cn))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,U2e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),N6e),xi),Q5e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,H2e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Zt(),!1)),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,MF),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),B6e),xi),h6e),Tt(cn)))),xo(t,MF,Mee,n3t),xo(t,MF,uI,t3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,q2e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,W2e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Go),io),Tt(cn)))),Et(t,new gt(aqt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,G2e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Go),io),Tt(lb)),re(ne(Qe,1),Oe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,X2e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),X6e),xi),ZEe),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,K2e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Ue(7)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Y2e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Mee),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),D6e),xi),K5e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,hO),Jee),"Node Layering Strategy"),"Strategy for node layering."),U6e),xi),zEe),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Q2e),Jee),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),V6e),xi),I6e),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Z2e),Jee),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing."),Ue(-1)),da),Do),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,J2e),Jee),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node"),Ue(-1)),da),Do),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Dee),ybt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Ue(4)),da),Do),Tt(cn)))),xo(t,Dee,hO,u3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Nee),ybt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Ue(2)),da),Do),Tt(cn)))),xo(t,Nee,hO,f3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jee),wbt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),z6e),xi),KEe),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Ree),wbt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Ue(0)),da),Do),Tt(cn)))),xo(t,Ree,jee,null),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$ee),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Ue(Ir)),da),Do),Tt(cn)))),xo(t,$ee,hO,i3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uI),HF),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),M6e),xi),q5e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Lee),HF),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),ta),Io),Tt(cn)))),xo(t,Lee,qF,_xt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Fee),HF),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Go),io),Tt(cn)))),xo(t,Fee,uI,jxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,exe),HF),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer."),Ue(-1)),da),Do),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,txe),HF),"Position ID"),"Position within a layer that was determined by ELK Layered for a node."),Ue(-1)),da),Do),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,nxe),xbt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Ue(40)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Bee),xbt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),_6e),xi),kre),Tt(cn)))),xo(t,Bee,uI,Pxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,DF),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),O6e),xi),kre),Tt(cn)))),xo(t,DF,uI,Ixt),xo(t,DF,qF,Txt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,N2),Sbt),"Node Placement Strategy"),"Strategy for node placement."),G6e),xi),HEe),Tt(cn)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,NF),Sbt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Go),io),Tt(cn)))),xo(t,NF,N2,S3t),xo(t,NF,N2,E3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Vee),Ebt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),H6e),xi),e6e),Tt(cn)))),xo(t,Vee,N2,v3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,zee),Ebt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),q6e),xi),o6e),Tt(cn)))),xo(t,zee,N2,w3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Uee),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),ta),Io),Tt(cn)))),xo(t,Uee,N2,C3t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Hee),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),xi),Jre),Tt(Yi)))),xo(t,Hee,N2,P3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,qee),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),W6e),xi),Jre),Tt(cn)))),xo(t,qee,N2,A3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,rxe),kbt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),$6e),xi),tke),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,ixe),kbt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),L6e),xi),nke),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jF),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),F6e),xi),ike),Tt(cn)))),xo(t,jF,pO,Wxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,RF),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),ta),Io),Tt(cn)))),xo(t,RF,pO,Xxt),xo(t,RF,jF,Kxt),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Wee),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),ta),Io),Tt(cn)))),xo(t,Wee,pO,zxt),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,oxe),nh),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,sxe),nh),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,axe),nh),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,cxe),nh),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uxe),bxe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Ue(0)),da),Do),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lxe),bxe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Ue(0)),da),Do),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,fxe),bxe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Ue(0)),da),Do),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Gee),mxe),zgt),"Tries to further compact components (disconnected sub-graphs)."),!1),Go),io),Tt(cn)))),xo(t,Gee,cO,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,dxe),Cbt),"Post Compaction Strategy"),Ibt),A6e),xi),f6e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,hxe),Cbt),"Post Compaction Constraint Calculation"),Ibt),T6e),xi),H5e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$F),vxe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Xee),vxe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Ue(16)),da),Do),Tt(cn)))),xo(t,Xee,$F,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Kee),vxe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Ue(5)),da),Do),Tt(cn)))),xo(t,Kee,$F,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,k1),yxe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Q6e),xi),cke),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,LF),yxe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),ta),Io),Tt(cn)))),xo(t,LF,k1,z3t),xo(t,LF,k1,U3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,FF),yxe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),ta),Io),Tt(cn)))),xo(t,FF,k1,q3t),xo(t,FF,k1,W3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lI),Tbt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Y6e),xi),G5e),Tt(cn)))),xo(t,lI,k1,Z3t),xo(t,lI,k1,J3t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Yee),Tbt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),kd),vl),Tt(cn)))),xo(t,Yee,lI,X3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Qee),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),K6e),da),Do),Tt(cn)))),xo(t,Qee,lI,Y3t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,BF),Abt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Z6e),xi),ake),Tt(cn)))),xo(t,BF,k1,f4t),xo(t,BF,k1,d4t),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,VF),Abt),"Valid Indices for Wrapping"),null),kd),vl),Tt(cn)))),xo(t,VF,k1,c4t),xo(t,VF,k1,u4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,zF),wxe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Go),io),Tt(cn)))),xo(t,zF,k1,r4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,UF),wxe),"Distance Penalty When Improving Cuts"),null),2),ta),Io),Tt(cn)))),xo(t,UF,k1,t4t),xo(t,UF,zF,!0),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Zee),wxe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Go),io),Tt(cn)))),xo(t,Zee,k1,o4t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,pxe),ete),"Edge Label Side Selection"),"Method to decide on edge label sides."),R6e),xi),Z5e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,gxe),ete),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),j6e),xi),Y6),Zr(cn,re(ne(Ep,1),je,175,0,[Sp]))))),G0t((new cUe,t))};var yxt,wxt,xxt,T6e,Sxt,A6e,Ext,P6e,kxt,Cxt,O6e,Ixt,Txt,Axt,_6e,Pxt,Oxt,_xt,Mxt,Dxt,Nxt,jxt,Rxt,M6e,$xt,D6e,Lxt,N6e,Fxt,j6e,Bxt,R6e,Vxt,zxt,Uxt,$6e,Hxt,L6e,qxt,F6e,Wxt,Gxt,Xxt,Kxt,Yxt,Qxt,Zxt,Jxt,e3t,B6e,t3t,n3t,r3t,i3t,o3t,s3t,V6e,a3t,c3t,u3t,l3t,f3t,d3t,h3t,z6e,p3t,U6e,g3t,b3t,m3t,H6e,v3t,y3t,q6e,w3t,x3t,S3t,E3t,k3t,C3t,I3t,T3t,W6e,A3t,P3t,O3t,G6e,_3t,X6e,M3t,D3t,N3t,j3t,R3t,$3t,L3t,F3t,B3t,V3t,z3t,U3t,H3t,q3t,W3t,G3t,X3t,K3t,K6e,Y3t,Q3t,Y6e,Z3t,J3t,e4t,t4t,n4t,r4t,i4t,o4t,s4t,Q6e,a4t,c4t,u4t,l4t,Z6e,f4t,d4t;D(Ea,"LayeredMetaDataProvider",827),_(966,1,Fl,cUe),b.Qe=function(t){G0t(t)};var lh,Dre,PV,zI,Nre,J6e,OV,J2,jre,eEe,WO,Rre,tEe,h4t,_V,$re,rE,nEe,p4t,Gu,rEe,iEe,MV,Lre,fh,DV,yp,oEe,sEe,aEe,Fre,Bre,cEe,I1,Vre,Uy,uEe,lEe,fEe,NV,ex,Hy,dEe,hEe,ws,pEe,g4t,wc,jV,gEe,bEe,mEe,zre,vEe,RV,yEe,wEe,$V,qm,xEe,Ure,UI,SEe,Wm,HI,LV,ob,iE,FV,sb,EEe,kEe,CEe,oE,IEe,b4t,m4t,v4t,y4t,Gm,qy,yi,ab,w4t,Wy,TEe,sE,AEe,Gy,x4t,aE,PEe,M4,S4t,E4t,GO,Hre,OEe,BV,wf,tx,D4,Xm,cb,VV,Xy,qre,cE,Km,nx,Wre,XO,qI,KO,Gre,_Ee,MEe,DEe,NEe,Xre,jEe,REe,$Ee,LEe,Kre,zV;D(Ea,"LayeredOptions",966),_(967,1,{},iLe),b._e=function(){var t;return t=new SGe,t},b.af=function(t){},D(Ea,"LayeredOptions/LayeredFactory",967),_(1343,1,{}),b.a=0;var k4t;D(va,"ElkSpacings/AbstractSpacingsBuilder",1343),_(762,1343,{},Nme);var UV,C4t;D(Ea,"LayeredSpacings/LayeredSpacingsBuilder",762),_(311,22,{3:1,36:1,22:1,311:1,245:1,233:1},IC),b.Hf=function(){return _ht(this)},b.Uf=function(){return _ht(this)};var Yre,FEe,BEe,HV,Qre,VEe,zEe=Gn(Ea,"LayeringStrategy",311,Zn,inn,sKt),I4t;_(196,22,{3:1,36:1,22:1,196:1},Oj);var rx,ix,qV,Zre,Jre=Gn(Ea,"NodeFlexibility",196,Zn,Wen,aKt),T4t;_(312,22,{3:1,36:1,22:1,312:1,245:1,233:1},UT),b.Hf=function(){return mht(this)},b.Uf=function(){return mht(this)};var WI,eie,tie,GI,UEe,HEe=Gn(Ea,"NodePlacementStrategy",312,Zn,Ttn,cKt),A4t;_(259,22,{3:1,36:1,22:1,259:1},k3);var qEe,YO,WEe,GEe,QO,XEe,WV,GV,KEe=Gn(Ea,"NodePromotionStrategy",259,Zn,orn,uKt),P4t;_(372,22,{3:1,36:1,22:1,372:1},CX);var YEe,Ky,nie,QEe=Gn(Ea,"OrderingStrategy",372,Zn,WJt,lKt),O4t;_(415,22,{3:1,36:1,22:1,415:1},u1e);var rie,iie,ZEe=Gn(Ea,"PortSortingStrategy",415,Zn,rJt,fKt),_4t;_(446,22,{3:1,36:1,22:1,446:1},IX);var $c,rc,XI,M4t=Gn(Ea,"PortType",446,Zn,XJt,dKt),D4t;_(373,22,{3:1,36:1,22:1,373:1},TX);var JEe,oie,eke,tke=Gn(Ea,"SelfLoopDistributionStrategy",373,Zn,GJt,hKt),N4t;_(374,22,{3:1,36:1,22:1,374:1},l1e);var ZO,sie,nke=Gn(Ea,"SelfLoopOrderingStrategy",374,Zn,iJt,pKt),j4t;_(302,1,{302:1},Zpt),D(Ea,"Spacings",302),_(334,22,{3:1,36:1,22:1,334:1},AX);var aie,rke,KI,ike=Gn(Ea,"SplineRoutingMode",334,Zn,KJt,gKt),R4t;_(336,22,{3:1,36:1,22:1,336:1},PX);var cie,oke,ske,ake=Gn(Ea,"ValidifyStrategy",336,Zn,YJt,bKt),$4t;_(375,22,{3:1,36:1,22:1,375:1},OX);var Yy,uie,uE,cke=Gn(Ea,"WrappingStrategy",375,Zn,QJt,mKt),L4t;_(1355,1,yc,oUe),b.Vf=function(t){return h(t,38),F4t},b.nf=function(t,s){Smn(this,h(t,38),s)};var F4t;D(r3e,"DepthFirstCycleBreaker",1355),_(1354,1,yc,Let),b.Vf=function(t){return h(t,38),B4t},b.nf=function(t,s){Swn(this,h(t,38),s)};var B4t;D(r3e,"GreedyCycleBreaker",1354),_(1356,1,yc,sUe),b.Vf=function(t){return h(t,38),V4t},b.nf=function(t,s){qmn(this,h(t,38),s)};var V4t;D(r3e,"InteractiveCycleBreaker",1356),_(1359,1,yc,qKe),b.Vf=function(t){return h(t,38),z4t},b.nf=function(t,s){Cwn(this,h(t,38),s)};var z4t;D(Oy,"CoffmanGrahamLayerer",1359),_(1360,1,zr,Pqe),b.ue=function(t,s){return fhn(this.a,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1360),_(1361,1,zr,Oqe),b.ue=function(t,s){return sQt(this.a,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"CoffmanGrahamLayerer/lambda$1$Type",1361),_(1362,1,yc,oLe),b.Vf=function(t){return h(t,38),Mr(Mr(Mr(new Xi,(us(),uh),(ys(),Wne)),P0,q6),Rc,H6)},b.nf=function(t,s){Oyn(this,h(t,38),s)},D(Oy,"InteractiveLayerer",1362),_(562,1,{562:1},MGe),b.a=0,b.c=0,D(Oy,"InteractiveLayerer/LayerSpan",562),_(1358,1,yc,uUe),b.Vf=function(t){return h(t,38),U4t},b.nf=function(t,s){d0n(this,h(t,38),s)};var U4t;D(Oy,"LongestPathLayerer",1358),_(1365,1,yc,lUe),b.Vf=function(t){return h(t,38),Mr(Mr(Mr(new Xi,(us(),uh),(ys(),DI)),P0,q6),Rc,H6)},b.nf=function(t,s){Yyn(this,h(t,38),s)},b.a=0,b.b=0,b.d=0;var uke,lke;D(Oy,"MinWidthLayerer",1365),_(1366,1,zr,_qe),b.ue=function(t,s){return nin(this,h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"MinWidthLayerer/MinOutgoingEdgesComparator",1366),_(1357,1,yc,fUe),b.Vf=function(t){return h(t,38),H4t},b.nf=function(t,s){gvn(this,h(t,38),s)};var H4t;D(Oy,"NetworkSimplexLayerer",1357),_(1363,1,yc,cJe),b.Vf=function(t){return h(t,38),Mr(Mr(Mr(new Xi,(us(),uh),(ys(),DI)),P0,q6),Rc,H6)},b.nf=function(t,s){ryn(this,h(t,38),s)},b.d=0,b.f=0,b.g=0,b.i=0,b.s=0,b.t=0,b.u=0,D(Oy,"StretchWidthLayerer",1363),_(1364,1,zr,sLe),b.ue=function(t,s){return Ltn(h(t,10),h(s,10))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Oy,"StretchWidthLayerer/1",1364),_(451,1,i3e),b.Kf=function(t,s,a,l,f,v){},b.Xf=function(t,s,a){return X1t(this,t,s,a)},b.Jf=function(){this.g=ge(aw,Obt,24,this.d,15,1),this.f=ge(aw,Obt,24,this.d,15,1)},b.Lf=function(t,s){this.e[t]=ge(Pn,rr,24,s[t].length,15,1)},b.Mf=function(t,s,a){var l;l=a[t][s],l.p=s,this.e[t][s]=s},b.Nf=function(t,s,a,l){h(st(l[t][s].j,a),11).p=this.d++},b.b=0,b.c=0,b.d=0,D(Eu,"AbstractBarycenterPortDistributor",451),_(1603,1,zr,Mqe),b.ue=function(t,s){return Aan(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Eu,"AbstractBarycenterPortDistributor/lambda$0$Type",1603),_(1774,1,dO,$rt),b.Kf=function(t,s,a,l,f,v){},b.Mf=function(t,s,a){},b.Nf=function(t,s,a,l){},b.If=function(){return!1},b.Jf=function(){this.a=this.c.a,this.e=this.d.g},b.Lf=function(t,s){s[t][0].c.p=t},b.Of=function(){return!1},b.Pf=function(t,s,a,l){var f,v,w,S,C,A,M;for(s!=Aet(a,t.length)&&(v=t[s-(a?1:-1)],Wge(this.d,v,a?(as(),rc):(as(),$c))),f=t[s][0],M=!l||f.k==(nn(),Ai),A=fd(t[s]),Rct(this,A,M,!1,a),w=0,C=new Q(A);C.a"),t0?lY(this.a,t[s-1],t[s]):!a&&s1&&(f.j==(He(),rn)?this.b[t]=!0:f.j==Xt&&t>0&&(this.b[t-1]=!0))},b.f=0,D(Vh,"AllCrossingsCounter",1770),_(578,1,{},V$),b.b=0,b.d=0,D(Vh,"BinaryIndexedTree",578),_(517,1,{},lA);var fke,YV;D(Vh,"CrossingsCounter",517),_(1878,1,zr,Vqe),b.ue=function(t,s){return qYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Vh,"CrossingsCounter/lambda$0$Type",1878),_(1879,1,zr,zqe),b.ue=function(t,s){return WYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Vh,"CrossingsCounter/lambda$1$Type",1879),_(1880,1,zr,Uqe),b.ue=function(t,s){return GYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Vh,"CrossingsCounter/lambda$2$Type",1880),_(1881,1,zr,Hqe),b.ue=function(t,s){return XYt(this.a,h(t,11),h(s,11))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Vh,"CrossingsCounter/lambda$3$Type",1881),_(1882,1,ln,qqe),b.td=function(t){wnn(this.a,h(t,11))},D(Vh,"CrossingsCounter/lambda$4$Type",1882),_(1883,1,mr,Wqe),b.Mb=function(t){return Bqt(this.a,h(t,11))},D(Vh,"CrossingsCounter/lambda$5$Type",1883),_(1884,1,ln,Gqe),b.td=function(t){AYe(this,t)},D(Vh,"CrossingsCounter/lambda$6$Type",1884),_(1885,1,ln,SYe),b.td=function(t){var s;u5(),Eg(this.b,(s=this.a,h(t,11),s))},D(Vh,"CrossingsCounter/lambda$7$Type",1885),_(805,1,Zd,ode),b.Lb=function(t){return u5(),Lo(h(t,11),(Be(),Yc))},b.Fb=function(t){return this===t},b.Mb=function(t){return u5(),Lo(h(t,11),(Be(),Yc))},D(Vh,"CrossingsCounter/lambda$8$Type",805),_(1877,1,{},Xqe),D(Vh,"HyperedgeCrossingsCounter",1877),_(461,1,{36:1,461:1},uJe),b.wd=function(t){return man(this,h(t,461))},b.b=0,b.c=0,b.e=0,b.f=0;var e2n=D(Vh,"HyperedgeCrossingsCounter/Hyperedge",461);_(359,1,{36:1,359:1},LR),b.wd=function(t){return g1n(this,h(t,359))},b.b=0,b.c=0;var Z4t=D(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",359);_(516,22,{3:1,36:1,22:1,516:1},f1e);var QI,ZI,J4t=Gn(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",516,Zn,aJt,yKt),eSt;_(1374,1,yc,hUe),b.Vf=function(t){return h(G(h(t,38),(Be(),ja)),21).Fc((Jo(),yl))?tSt:null},b.nf=function(t,s){Fun(this,h(t,38),s)};var tSt;D(ts,"InteractiveNodePlacer",1374),_(1375,1,yc,pUe),b.Vf=function(t){return h(G(h(t,38),(Be(),ja)),21).Fc((Jo(),yl))?nSt:null},b.nf=function(t,s){kcn(this,h(t,38),s)};var nSt,QV,ZV;D(ts,"LinearSegmentsNodePlacer",1375),_(256,1,{36:1,256:1},she),b.wd=function(t){return uqt(this,h(t,256))},b.Fb=function(t){var s;return ue(t,256)?(s=h(t,256),this.b==s.b):!1},b.Hb=function(){return this.b},b.Ib=function(){return"ls"+b0(this.e)},b.a=0,b.b=0,b.c=-1,b.d=-1,b.g=0;var rSt=D(ts,"LinearSegmentsNodePlacer/LinearSegment",256);_(1377,1,yc,Fet),b.Vf=function(t){return h(G(h(t,38),(Be(),ja)),21).Fc((Jo(),yl))?iSt:null},b.nf=function(t,s){dwn(this,h(t,38),s)},b.b=0,b.g=0;var iSt;D(ts,"NetworkSimplexPlacer",1377),_(1396,1,zr,aLe),b.ue=function(t,s){return Qa(h(t,20).a,h(s,20).a)},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(ts,"NetworkSimplexPlacer/0methodref$compare$Type",1396),_(1398,1,zr,cLe),b.ue=function(t,s){return Qa(h(t,20).a,h(s,20).a)},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(ts,"NetworkSimplexPlacer/1methodref$compare$Type",1398),_(639,1,{639:1},EYe);var t2n=D(ts,"NetworkSimplexPlacer/EdgeRep",639);_(397,1,{397:1},nge),b.b=!1;var n2n=D(ts,"NetworkSimplexPlacer/NodeRep",397);_(500,12,{3:1,4:1,19:1,28:1,51:1,12:1,15:1,14:1,53:1,500:1},jGe),D(ts,"NetworkSimplexPlacer/Path",500),_(1378,1,{},uLe),b.Kb=function(t){return h(t,18).d.i.k},D(ts,"NetworkSimplexPlacer/Path/lambda$0$Type",1378),_(1379,1,mr,lLe),b.Mb=function(t){return h(t,266)==(nn(),Ki)},D(ts,"NetworkSimplexPlacer/Path/lambda$1$Type",1379),_(1380,1,{},fLe),b.Kb=function(t){return h(t,18).d.i},D(ts,"NetworkSimplexPlacer/Path/lambda$2$Type",1380),_(1381,1,mr,Kqe),b.Mb=function(t){return GZe(Put(h(t,10)))},D(ts,"NetworkSimplexPlacer/Path/lambda$3$Type",1381),_(1382,1,mr,dLe),b.Mb=function(t){return MYt(h(t,11))},D(ts,"NetworkSimplexPlacer/lambda$0$Type",1382),_(1383,1,ln,kYe),b.td=function(t){DWt(this.a,this.b,h(t,11))},D(ts,"NetworkSimplexPlacer/lambda$1$Type",1383),_(1392,1,ln,Yqe),b.td=function(t){qdn(this.a,h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$10$Type",1392),_(1393,1,{},hLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(ts,"NetworkSimplexPlacer/lambda$11$Type",1393),_(1394,1,ln,Qqe),b.td=function(t){D0n(this.a,h(t,10))},D(ts,"NetworkSimplexPlacer/lambda$12$Type",1394),_(1395,1,{},bLe),b.Kb=function(t){return $u(),Ue(h(t,119).e)},D(ts,"NetworkSimplexPlacer/lambda$13$Type",1395),_(1397,1,{},mLe),b.Kb=function(t){return $u(),Ue(h(t,119).e)},D(ts,"NetworkSimplexPlacer/lambda$15$Type",1397),_(1399,1,mr,vLe),b.Mb=function(t){return $u(),h(t,397).c.k==(nn(),ji)},D(ts,"NetworkSimplexPlacer/lambda$17$Type",1399),_(1400,1,mr,yLe),b.Mb=function(t){return $u(),h(t,397).c.j.c.length>1},D(ts,"NetworkSimplexPlacer/lambda$18$Type",1400),_(1401,1,ln,Utt),b.td=function(t){Tsn(this.c,this.b,this.d,this.a,h(t,397))},b.c=0,b.d=0,D(ts,"NetworkSimplexPlacer/lambda$19$Type",1401),_(1384,1,{},ELe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(ts,"NetworkSimplexPlacer/lambda$2$Type",1384),_(1402,1,ln,Zqe),b.td=function(t){NWt(this.a,h(t,11))},b.a=0,D(ts,"NetworkSimplexPlacer/lambda$20$Type",1402),_(1403,1,{},kLe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(ts,"NetworkSimplexPlacer/lambda$21$Type",1403),_(1404,1,ln,Jqe),b.td=function(t){KWt(this.a,h(t,10))},D(ts,"NetworkSimplexPlacer/lambda$22$Type",1404),_(1405,1,mr,CLe),b.Mb=function(t){return GZe(t)},D(ts,"NetworkSimplexPlacer/lambda$23$Type",1405),_(1406,1,{},ILe),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(ts,"NetworkSimplexPlacer/lambda$24$Type",1406),_(1407,1,mr,eWe),b.Mb=function(t){return tWt(this.a,h(t,10))},D(ts,"NetworkSimplexPlacer/lambda$25$Type",1407),_(1408,1,ln,CYe),b.td=function(t){hdn(this.a,this.b,h(t,10))},D(ts,"NetworkSimplexPlacer/lambda$26$Type",1408),_(1409,1,mr,TLe),b.Mb=function(t){return $u(),!Zo(h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$27$Type",1409),_(1410,1,mr,ALe),b.Mb=function(t){return $u(),!Zo(h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$28$Type",1410),_(1411,1,{},tWe),b.Ce=function(t,s){return jWt(this.a,h(t,29),h(s,29))},D(ts,"NetworkSimplexPlacer/lambda$29$Type",1411),_(1385,1,{},PLe),b.Kb=function(t){return $u(),new Rt(null,new em(new mn(vn(Di(h(t,10)).a.Ic(),new j))))},D(ts,"NetworkSimplexPlacer/lambda$3$Type",1385),_(1386,1,mr,OLe),b.Mb=function(t){return $u(),Oen(h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$4$Type",1386),_(1387,1,ln,nWe),b.td=function(t){Tbn(this.a,h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$5$Type",1387),_(1388,1,{},_Le),b.Kb=function(t){return $u(),new Rt(null,new Lt(h(t,29).a,16))},D(ts,"NetworkSimplexPlacer/lambda$6$Type",1388),_(1389,1,mr,MLe),b.Mb=function(t){return $u(),h(t,10).k==(nn(),ji)},D(ts,"NetworkSimplexPlacer/lambda$7$Type",1389),_(1390,1,{},DLe),b.Kb=function(t){return $u(),new Rt(null,new em(new mn(vn(v1(h(t,10)).a.Ic(),new j))))},D(ts,"NetworkSimplexPlacer/lambda$8$Type",1390),_(1391,1,mr,NLe),b.Mb=function(t){return $u(),AYt(h(t,18))},D(ts,"NetworkSimplexPlacer/lambda$9$Type",1391),_(1373,1,yc,xUe),b.Vf=function(t){return h(G(h(t,38),(Be(),ja)),21).Fc((Jo(),yl))?oSt:null},b.nf=function(t,s){cmn(h(t,38),s)};var oSt;D(ts,"SimpleNodePlacer",1373),_(182,1,{182:1},I2),b.Ib=function(){var t;return t="",this.c==(Wd(),Ym)?t+=l4:this.c==wp&&(t+=u4),this.o==(ud(),ub)?t+=dee:this.o==Ed?t+="UP":t+="BALANCED",t},D(k0,"BKAlignedLayout",182),_(509,22,{3:1,36:1,22:1,509:1},d1e);var wp,Ym,sSt=Gn(k0,"BKAlignedLayout/HDirection",509,Zn,cJt,wKt),aSt;_(508,22,{3:1,36:1,22:1,508:1},h1e);var ub,Ed,cSt=Gn(k0,"BKAlignedLayout/VDirection",508,Zn,uJt,xKt),uSt;_(1604,1,{},IYe),D(k0,"BKAligner",1604),_(1607,1,{},Klt),D(k0,"BKCompactor",1607),_(643,1,{643:1},jLe),b.a=0,D(k0,"BKCompactor/ClassEdge",643),_(452,1,{452:1},DGe),b.a=null,b.b=0,D(k0,"BKCompactor/ClassNode",452),_(1376,1,yc,aQe),b.Vf=function(t){return h(G(h(t,38),(Be(),ja)),21).Fc((Jo(),yl))?lSt:null},b.nf=function(t,s){Pwn(this,h(t,38),s)},b.d=!1;var lSt;D(k0,"BKNodePlacer",1376),_(1605,1,{},RLe),b.d=0,D(k0,"NeighborhoodInformation",1605),_(1606,1,zr,rWe),b.ue=function(t,s){return Xnn(this,h(t,46),h(s,46))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(k0,"NeighborhoodInformation/NeighborComparator",1606),_(789,1,{}),D(k0,"ThresholdStrategy",789),_(1734,789,{},RGe),b.Yf=function(t,s,a){return this.a.o==(ud(),Ed)?pi:Pi},b.Zf=function(){},D(k0,"ThresholdStrategy/NullThresholdStrategy",1734),_(570,1,{570:1},TYe),b.c=!1,b.d=!1,D(k0,"ThresholdStrategy/Postprocessable",570),_(1735,789,{},$Ge),b.Yf=function(t,s,a){var l,f,v;return f=s==a,l=this.a.a[a.p]==s,f||l?(v=t,this.a.c==(Wd(),Ym)?(f&&(v=hJ(this,s,!0)),!isNaN(v)&&!isFinite(v)&&l&&(v=hJ(this,a,!1))):(f&&(v=hJ(this,s,!0)),!isNaN(v)&&!isFinite(v)&&l&&(v=hJ(this,a,!1))),v):t},b.Zf=function(){for(var t,s,a,l,f;this.d.b!=0;)f=h(SJt(this.d),570),l=fpt(this,f),l.a&&(t=l.a,a=_t(this.a.f[this.a.g[f.b.p].p]),!(!a&&!Zo(t)&&t.c.i.c==t.d.i.c)&&(s=xht(this,f),s||cWt(this.e,f)));for(;this.e.a.c.length!=0;)xht(this,h(_ct(this.e),570))},D(k0,"ThresholdStrategy/SimpleThresholdStrategy",1735),_(625,1,{625:1,245:1,233:1},$Le),b.Hf=function(){return Xat(this)},b.Uf=function(){return Xat(this)};var lie;D(ote,"EdgeRouterFactory",625),_(1427,1,yc,SUe),b.Vf=function(t){return p0n(h(t,38))},b.nf=function(t,s){dmn(h(t,38),s)};var fSt,dSt,hSt,pSt,gSt,dke,bSt,mSt;D(ote,"OrthogonalEdgeRouter",1427),_(1420,1,yc,cQe),b.Vf=function(t){return qun(h(t,38))},b.nf=function(t,s){jyn(this,h(t,38),s)};var vSt,ySt,wSt,xSt,JO,SSt;D(ote,"PolylineEdgeRouter",1420),_(1421,1,Zd,LLe),b.Lb=function(t){return Bbe(h(t,10))},b.Fb=function(t){return this===t},b.Mb=function(t){return Bbe(h(t,10))},D(ote,"PolylineEdgeRouter/1",1421),_(1781,1,mr,FLe),b.Mb=function(t){return h(t,129).c==(Mf(),D0)},D(Vf,"HyperEdgeCycleDetector/lambda$0$Type",1781),_(1782,1,{},BLe),b.Ge=function(t){return h(t,129).d},D(Vf,"HyperEdgeCycleDetector/lambda$1$Type",1782),_(1783,1,mr,VLe),b.Mb=function(t){return h(t,129).c==(Mf(),D0)},D(Vf,"HyperEdgeCycleDetector/lambda$2$Type",1783),_(1784,1,{},zLe),b.Ge=function(t){return h(t,129).d},D(Vf,"HyperEdgeCycleDetector/lambda$3$Type",1784),_(1785,1,{},ULe),b.Ge=function(t){return h(t,129).d},D(Vf,"HyperEdgeCycleDetector/lambda$4$Type",1785),_(1786,1,{},HLe),b.Ge=function(t){return h(t,129).d},D(Vf,"HyperEdgeCycleDetector/lambda$5$Type",1786),_(111,1,{36:1,111:1},KA),b.wd=function(t){return lqt(this,h(t,111))},b.Fb=function(t){var s;return ue(t,111)?(s=h(t,111),this.g==s.g):!1},b.Hb=function(){return this.g},b.Ib=function(){var t,s,a,l;for(t=new ju("{"),l=new Q(this.n);l.a"+this.b+" ("+yGt(this.c)+")"},b.d=0,D(Vf,"HyperEdgeSegmentDependency",129),_(513,22,{3:1,36:1,22:1,513:1},p1e);var D0,Qy,ESt=Gn(Vf,"HyperEdgeSegmentDependency/DependencyType",513,Zn,sJt,SKt),kSt;_(1787,1,{},iWe),D(Vf,"HyperEdgeSegmentSplitter",1787),_(1788,1,{},jXe),b.a=0,b.b=0,D(Vf,"HyperEdgeSegmentSplitter/AreaRating",1788),_(327,1,{327:1},bK),b.a=0,b.b=0,b.c=0,D(Vf,"HyperEdgeSegmentSplitter/FreeArea",327),_(1789,1,zr,ZLe),b.ue=function(t,s){return dXt(h(t,111),h(s,111))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(Vf,"HyperEdgeSegmentSplitter/lambda$0$Type",1789),_(1790,1,ln,Htt),b.td=function(t){utn(this.a,this.d,this.c,this.b,h(t,111))},b.b=0,D(Vf,"HyperEdgeSegmentSplitter/lambda$1$Type",1790),_(1791,1,{},JLe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).e,16))},D(Vf,"HyperEdgeSegmentSplitter/lambda$2$Type",1791),_(1792,1,{},eFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).j,16))},D(Vf,"HyperEdgeSegmentSplitter/lambda$3$Type",1792),_(1793,1,{},tFe),b.Fe=function(t){return Ae(Xe(t))},D(Vf,"HyperEdgeSegmentSplitter/lambda$4$Type",1793),_(644,1,{},BK),b.a=0,b.b=0,b.c=0,D(Vf,"OrthogonalRoutingGenerator",644),_(1608,1,{},nFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).e,16))},D(Vf,"OrthogonalRoutingGenerator/lambda$0$Type",1608),_(1609,1,{},rFe),b.Kb=function(t){return new Rt(null,new Lt(h(t,111).j,16))},D(Vf,"OrthogonalRoutingGenerator/lambda$1$Type",1609),_(649,1,{}),D(ste,"BaseRoutingDirectionStrategy",649),_(1779,649,{},LGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J;if(!(!!t.r&&!t.q))for(M=s+t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(R,v),dr(w.a,l),Cm(this,w,f,l,!1),V=t.r,V&&(q=Ae(Xe(Ff(V.e,0))),l=new ot(q,v),dr(w.a,l),Cm(this,w,f,l,!1),v=s+V.o*a,f=V,l=new ot(q,v),dr(w.a,l),Cm(this,w,f,l,!1)),l=new ot(J,v),dr(w.a,l),Cm(this,w,f,l,!1)))},b._f=function(t){return t.i.n.a+t.n.a+t.a.a},b.ag=function(){return He(),Sn},b.bg=function(){return He(),Wt},D(ste,"NorthToSouthRoutingStrategy",1779),_(1780,649,{},FGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J;if(!(!!t.r&&!t.q))for(M=s-t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(R,v),dr(w.a,l),Cm(this,w,f,l,!1),V=t.r,V&&(q=Ae(Xe(Ff(V.e,0))),l=new ot(q,v),dr(w.a,l),Cm(this,w,f,l,!1),v=s-V.o*a,f=V,l=new ot(q,v),dr(w.a,l),Cm(this,w,f,l,!1)),l=new ot(J,v),dr(w.a,l),Cm(this,w,f,l,!1)))},b._f=function(t){return t.i.n.a+t.n.a+t.a.a},b.ag=function(){return He(),Wt},b.bg=function(){return He(),Sn},D(ste,"SouthToNorthRoutingStrategy",1780),_(1778,649,{},BGe),b.$f=function(t,s,a){var l,f,v,w,S,C,A,M,R,V,q,W,J;if(!(!!t.r&&!t.q))for(M=s+t.o*a,A=new Q(t.n);A.aeh&&(v=M,f=t,l=new ot(v,R),dr(w.a,l),Cm(this,w,f,l,!0),V=t.r,V&&(q=Ae(Xe(Ff(V.e,0))),l=new ot(v,q),dr(w.a,l),Cm(this,w,f,l,!0),v=s+V.o*a,f=V,l=new ot(v,q),dr(w.a,l),Cm(this,w,f,l,!0)),l=new ot(v,J),dr(w.a,l),Cm(this,w,f,l,!0)))},b._f=function(t){return t.i.n.b+t.n.b+t.a.b},b.ag=function(){return He(),rn},b.bg=function(){return He(),Xt},D(ste,"WestToEastRoutingStrategy",1778),_(794,1,{},Owe),b.Ib=function(){return b0(this.a)},b.b=0,b.c=!1,b.d=!1,b.f=0,D(_y,"NubSpline",794),_(402,1,{402:1},Xht,Snt),D(_y,"NubSpline/PolarCP",402),_(1422,1,yc,Vlt),b.Vf=function(t){return Rln(h(t,38))},b.nf=function(t,s){Zyn(this,h(t,38),s)};var CSt,ISt,TSt,ASt,PSt;D(_y,"SplineEdgeRouter",1422),_(267,1,{267:1},f$),b.Ib=function(){return this.a+" ->("+this.c+") "+this.b},b.c=0,D(_y,"SplineEdgeRouter/Dependency",267),_(448,22,{3:1,36:1,22:1,448:1},g1e);var N0,ox,OSt=Gn(_y,"SplineEdgeRouter/SideToProcess",448,Zn,lJt,EKt),_St;_(1423,1,mr,QLe),b.Mb=function(t){return V8(),!h(t,128).o},D(_y,"SplineEdgeRouter/lambda$0$Type",1423),_(1424,1,{},YLe),b.Ge=function(t){return V8(),h(t,128).v+1},D(_y,"SplineEdgeRouter/lambda$1$Type",1424),_(1425,1,ln,jYe),b.td=function(t){OYt(this.a,this.b,h(t,46))},D(_y,"SplineEdgeRouter/lambda$2$Type",1425),_(1426,1,ln,RYe),b.td=function(t){_Yt(this.a,this.b,h(t,46))},D(_y,"SplineEdgeRouter/lambda$3$Type",1426),_(128,1,{36:1,128:1},bdt,Rwe),b.wd=function(t){return fqt(this,h(t,128))},b.b=0,b.e=!1,b.f=0,b.g=0,b.j=!1,b.k=!1,b.n=0,b.o=!1,b.p=!1,b.q=!1,b.s=0,b.u=0,b.v=0,b.F=0,D(_y,"SplineSegment",128),_(453,1,{453:1},WLe),b.a=0,b.b=!1,b.c=!1,b.d=!1,b.e=!1,b.f=0,D(_y,"SplineSegment/EdgeInformation",453),_(1207,1,{},qLe),D(fI,O2e,1207),_(1208,1,zr,GLe),b.ue=function(t,s){return ahn(h(t,135),h(s,135))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(fI,qgt,1208),_(1206,1,{},nKe),D(fI,"MrTree",1206),_(389,22,{3:1,36:1,22:1,389:1,245:1,233:1},_j),b.Hf=function(){return Fdt(this)},b.Uf=function(){return Fdt(this)};var JV,JI,e_,e9,hke=Gn(fI,"TreeLayoutPhases",389,Zn,Ken,kKt),MSt;_(1103,207,qg,lJe),b.$e=function(t,s){var a,l,f,v,w,S;for(v=(w=new g$,Is(w,t),_e(w,(la(),r9),t),S=new Un,zgn(t,w,S),ibn(t,w,S),w),f=Ygn(this.a,v),l=new Q(f);l.a"+t$(this.c):"e_"+ri(this)},D(dI,"TEdge",188),_(135,134,{3:1,135:1,94:1,134:1},g$),b.Ib=function(){var t,s,a,l,f;for(f=null,l=ar(this.b,0);l.b!=l.d.c;)a=h(sr(l),83),f+=(a.c==null||a.c.length==0?"n_"+a.g:"n_"+a.c)+` +`;for(s=ar(this.a,0);s.b!=s.d.c;)t=h(sr(s),188),f+=(!!t.b&&!!t.c?t$(t.b)+"->"+t$(t.c):"e_"+ri(t))+` +`;return f};var r2n=D(dI,"TGraph",135);_(623,493,{3:1,493:1,623:1,94:1,134:1}),D(dI,"TShape",623),_(83,623,{3:1,493:1,83:1,623:1,94:1,134:1},pQ),b.Ib=function(){return t$(this)};var i2n=D(dI,"TNode",83);_(254,1,Rh,qp),b.Hc=function(t){So(this,t)},b.Ic=function(){var t;return t=ar(this.a.d,0),new p3(t)},D(dI,"TNode/2",254),_(355,1,bo,p3),b.Nb=function(t){yo(this,t)},b.Pb=function(){return h(sr(this.a),188).c},b.Ob=function(){return cj(this.a)},b.Qb=function(){T$(this.a)},D(dI,"TNode/2/1",355),_(1812,1,gi,fJe),b.nf=function(t,s){wbn(this,h(t,135),s)},D(b4,"FanProcessor",1812),_(325,22,{3:1,36:1,22:1,325:1,233:1},AC),b.Hf=function(){switch(this.g){case 0:return new JGe;case 1:return new fJe;case 2:return new sFe;case 3:return new iFe;case 4:return new cFe;case 5:return new uFe;default:throw ee(new Gt(Pee+(this.f!=null?this.f:""+this.g)))}};var fie,die,hie,pie,gie,ez,DSt=Gn(b4,V2e,325,Zn,nnn,CKt),NSt;_(1815,1,gi,iFe),b.nf=function(t,s){f1n(this,h(t,135),s)},b.a=0,D(b4,"LevelHeightProcessor",1815),_(1816,1,Rh,oFe),b.Hc=function(t){So(this,t)},b.Ic=function(){return Mt(),t5(),B6},D(b4,"LevelHeightProcessor/1",1816),_(1813,1,gi,sFe),b.nf=function(t,s){wdn(this,h(t,135),s)},b.a=0,D(b4,"NeighborsProcessor",1813),_(1814,1,Rh,aFe),b.Hc=function(t){So(this,t)},b.Ic=function(){return Mt(),t5(),B6},D(b4,"NeighborsProcessor/1",1814),_(1817,1,gi,cFe),b.nf=function(t,s){l1n(this,h(t,135),s)},b.a=0,D(b4,"NodePositionProcessor",1817),_(1811,1,gi,JGe),b.nf=function(t,s){kmn(this,h(t,135))},D(b4,"RootProcessor",1811),_(1818,1,gi,uFe),b.nf=function(t,s){Fon(h(t,135))},D(b4,"Untreeifyer",1818);var t_,t9,jSt,bie,tz,n9,mie,nz,rz,lE,r9,iz,xp,pke,RSt,vie,Zy,yie,gke;_(830,1,Fl,EUe),b.Qe=function(t){Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,o3e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),mke),(dp(),xi)),Eke),Tt((Lf(),cn))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,s3e),""),"Search Order"),"Which search order to use when computing a spanning tree."),bke),xi),Cke),Tt(cn)))),Vpt((new kUe,t))};var $St,bke,LSt,mke;D(QF,"MrTreeMetaDataProvider",830),_(974,1,Fl,kUe),b.Qe=function(t){Vpt(t)};var FSt,vke,BSt,yke,oz,wke,VSt,xke,zSt;D(QF,"MrTreeOptions",974),_(975,1,{},lFe),b._e=function(){var t;return t=new lJe,t},b.af=function(t){},D(QF,"MrTreeOptions/MrtreeFactory",975),_(474,22,{3:1,36:1,22:1,474:1},b1e);var wie,Ske,Eke=Gn(QF,"OrderWeighting",474,Zn,fJt,IKt),USt;_(419,22,{3:1,36:1,22:1,419:1},m1e);var kke,xie,Cke=Gn(QF,"TreeifyingOrder",419,Zn,dJt,AKt),HSt;_(1428,1,yc,bUe),b.Vf=function(t){return h(t,135),qSt},b.nf=function(t,s){Krn(this,h(t,135),s)};var qSt;D("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1428),_(1429,1,yc,gUe),b.Vf=function(t){return h(t,135),WSt},b.nf=function(t,s){_dn(this,h(t,135),s)};var WSt;D("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1429),_(1430,1,yc,mUe),b.Vf=function(t){return h(t,135),GSt},b.nf=function(t,s){L0n(this,h(t,135),s)},b.a=0;var GSt;D("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1430),_(1431,1,yc,vUe),b.Vf=function(t){return h(t,135),XSt},b.nf=function(t,s){mun(h(t,135),s)};var XSt;D("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1431);var i9;_(487,22,{3:1,36:1,22:1,487:1,245:1,233:1},v1e),b.Hf=function(){return wut(this)},b.Uf=function(){return wut(this)};var sz,fE,Ike=Gn(a3e,"RadialLayoutPhases",487,Zn,hJt,TKt),KSt;_(1104,207,qg,tKe),b.$e=function(t,s){var a,l,f,v,w,S,C;if(l=Sdt(this,t),Mn(s,"Radial layout",l.c.length),C=Fln(t),Ts(t,(zC(),i9),C),!C)throw ee(new Gt("The given graph is not a tree!"));for(v=Ae(Xe(Ot(t,(oy(),uz)))),v==0&&(v=jdt(t)),Ts(t,uz,v),a=new aC(t),gc(Blt(a),new Bde(a)),f=new HN(a),Lme(f),S=new Q(Sdt(this,t));S.a0&&Kct((Bn(s-1,t.length),t.charCodeAt(s-1)),tbt);)--s;if(l>=s)throw ee(new Gt("The given string does not contain any numbers."));if(f=xy(t.substr(l,s-l),`,|;|\r| +`),f.length!=2)throw ee(new Gt("Exactly two numbers are expected, "+f.length+" were found."));try{this.a=gy(py(f[0])),this.b=gy(py(f[1]))}catch(v){throw v=ni(v),ue(v,127)?(a=v,ee(new Gt(nbt+a))):ee(v)}},b.Ib=function(){return"("+this.a+","+this.b+")"},b.a=0,b.b=0;var Ui=D(fO,"KVector",8);_(74,68,{3:1,4:1,19:1,28:1,51:1,15:1,68:1,14:1,74:1,409:1},Tc,aj,NZe),b.Nc=function(){return ron(this)},b.Gf=function(t){var s,a,l,f,v,w;l=xy(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),Dl(this);try{for(a=0,v=0,f=0,w=0;a0&&(v%2==0?f=gy(l[a]):w=gy(l[a]),v>0&&v%2!=0&&dr(this,new ot(f,w)),++v),++a}catch(S){throw S=ni(S),ue(S,127)?(s=S,ee(new Gt("The given string does not match the expected format for vectors."+s))):ee(S)}},b.Ib=function(){var t,s,a;for(t=new ju("("),s=ar(this,0);s.b!=s.d.c;)a=h(sr(s),8),Kn(t,a.a+","+a.b),s.b!=s.d.c&&(t.a+="; ");return(t.a+=")",t).a};var MCe=D(fO,"KVectorChain",74);_(247,22,{3:1,36:1,22:1,247:1},PC);var Uie,bz,mz,o_,s_,vz,DCe=Gn(Bl,"Alignment",247,Zn,onn,qKt),i6t;_(943,1,Fl,CUe),b.Qe=function(t){npt(t)};var NCe,Hie,o6t,jCe,RCe,s6t,$Ce,a6t,c6t,LCe,FCe,u6t;D(Bl,"BoxLayouterOptions",943),_(944,1,{},aBe),b._e=function(){var t;return t=new lBe,t},b.af=function(t){},D(Bl,"BoxLayouterOptions/BoxFactory",944),_(290,22,{3:1,36:1,22:1,290:1},OC);var a_,qie,c_,u_,l_,Wie,Gie=Gn(Bl,"ContentAlignment",290,Zn,snn,WKt),l6t;_(671,1,Fl,hde),b.Qe=function(t){Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Kbt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(dp(),dE)),Qe),Tt((Lf(),cn))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Ybt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),kd),a2n),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Nxe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),BCe),xi),DCe),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,d4),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,M3e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),kd),MCe),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,GF),""),"Content Alignment"),"Specifies how the content of compound nodes is to be aligned, e.g. top-left."),zCe),j4),Gie),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,gO),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Zt(),!1)),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,$xe),""),x2e),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),UCe),xi),d9),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,pO),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),WCe),xi),ooe),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,JF),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,qF),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),YCe),xi),N8e),Zr(cn,re(ne(Ep,1),je,175,0,[Yi]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Gg),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),s8e),kd),ZSe),Zr(cn,re(ne(Ep,1),je,175,0,[Yi]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,uO),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,ite),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Iee),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),f8e),xi),$8e),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,KF),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),kd),Ui),Zr(Yi,re(ne(Ep,1),je,175,0,[lb,Sp]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,aO),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),da),Do),Zr(Yi,re(ne(Ep,1),je,175,0,[dh]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,TF),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,cO),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Xxe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),ZCe),kd),MCe),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Qxe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Go),io),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Zxe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Go),io),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Qbt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),kd),d2n),Zr(cn,re(ne(Ep,1),je,175,0,[Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,e3e),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),JCe),kd),QSe),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Mxe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Go),io),Zr(Yi,re(ne(Ep,1),je,175,0,[dh,lb,Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Zbt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),ta),Io),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Jbt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,emt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ue(100)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,tmt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,nmt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ue(4e3)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,rmt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ue(400)),da),Do),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,imt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,omt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,smt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,amt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,_3e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),VCe),xi),U8e),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,xxe),nh),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Sxe),nh),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,wee),nh),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Exe),nh),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Cee),nh),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,kxe),nh),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Cxe),nh),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Txe),nh),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Ixe),nh),"Label Port Spacing"),"Spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Py),nh),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Axe),nh),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),ta),Io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Pxe),nh),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),ta),Io),Zr(cn,re(ne(Ep,1),je,175,0,[Yi]))))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Oxe),nh),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),kd),G6t),Zr(Yi,re(ne(Ep,1),je,175,0,[dh,lb,Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,t3e),nh),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),w8e),kd),QSe),Tt(cn)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,rte),fmt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),da),Do),Zr(cn,re(ne(Ep,1),je,175,0,[Yi]))))),xo(t,rte,nte,y6t),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,nte),fmt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),a8e),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Fxe),dmt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),t8e),kd),ZSe),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Lxe),dmt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),n8e),j4),ns),Zr(Yi,re(ne(Ep,1),je,175,0,[Sp]))))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Uxe),tB),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),u8e),xi),m9),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Hxe),tB),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,qxe),tB),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Wxe),tB),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),xi),m9),Tt(Yi)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Gxe),tB),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),xi),m9),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,WF),Ete),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),r8e),j4),y9),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,tte),Ete),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),o8e),j4),F8e),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,XF),Ete),"Node Size Minimum"),"The minimal size to which a node can be reduced."),i8e),kd),Ui),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,D3e),Ete),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Go),io),Tt(cn)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Kxe),ete),"Edge Label Placement"),"Gives a hint on where to put edge labels."),HCe),xi),S8e),Tt(Sp)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,AF),ete),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Go),io),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,cmt),"font"),"Font Name"),"Font name used for a label."),dE),Qe),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,umt),"font"),"Font Size"),"Font size used for a label."),da),Do),Tt(Sp)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Jxe),kte),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),kd),Ui),Tt(lb)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,Yxe),kte),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),da),Do),Tt(lb)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Dxe),kte),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),p8e),xi),Vo),Tt(lb)))),Et(t,new gt(xt(wt(St(bt(yt(mt(vt(new pt,_xe),kte),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),ta),Io),Tt(lb)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Bxe),N3e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),d8e),j4),Iz),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Vxe),N3e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Go),io),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,zxe),N3e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Go),io),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,jxe),hmt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Go),io),Tt(Yi)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,Rxe),hmt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Go),io),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,xee),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),ta),Io),Tt(dh)))),Et(t,new gt(xt(wt(St(Ft(bt(yt(mt(vt(new pt,lmt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),XCe),xi),A8e),Tt(dh)))),vC(t,new $3(dC(YS(QS(new d3,fn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),vC(t,new $3(dC(YS(QS(new d3,yd),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),vC(t,new $3(dC(YS(QS(new d3,Rbt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),vC(t,new $3(dC(YS(QS(new d3,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),vC(t,new $3(dC(YS(QS(new d3,_m),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),V1t((new IUe,t)),npt((new CUe,t)),v1t((new DUe,t))};var u9,f6t,BCe,R4,d6t,h6t,VCe,p6t,yz,zCe,f_,l9,UCe,Xie,Kie,HCe,qCe,WCe,GCe,XCe,KCe,ax,YCe,g6t,d_,Yie,wz,QCe,cx,ZCe,h_,JCe,e8e,t8e,xz,n8e,hE,r8e,b6t,p_,i8e,$4,o8e,Sz,j0,s8e,m6t,a8e,v6t,y6t,c8e,u8e,Qie,Zie,Jie,eoe,l8e,lu,g_,f8e,w6t,toe,b_,d8e,h8e,f9,p8e,L4,Ez,noe,pE,x6t,roe,S6t,E6t,g8e,k6t,b8e,C6t,F4,m8e,kz,v8e,fb,I6t,y8e,w8e,x8e;D(Bl,"CoreOptions",671),_(108,22,{3:1,36:1,22:1,108:1},GT);var T1,xf,qf,A1,P1,d9=Gn(Bl,x2e,108,Zn,Ptn,GKt),T6t;_(271,22,{3:1,36:1,22:1,271:1},$X);var gE,Jy,bE,S8e=Gn(Bl,"EdgeLabelPlacement",271,Zn,fen,XKt),A6t;_(216,22,{3:1,36:1,22:1,216:1},Dj);var h9,m_,B4,ioe,ooe=Gn(Bl,"EdgeRouting",216,Zn,Jen,KKt),P6t;_(310,22,{3:1,36:1,22:1,310:1},_C);var E8e,k8e,C8e,I8e,soe,T8e,A8e=Gn(Bl,"EdgeType",310,Zn,rnn,YKt),O6t;_(941,1,Fl,IUe),b.Qe=function(t){V1t(t)};var P8e,O8e,_8e,M8e,_6t,D8e,p9;D(Bl,"FixedLayouterOptions",941),_(942,1,{},cBe),b._e=function(){var t;return t=new bBe,t},b.af=function(t){},D(Bl,"FixedLayouterOptions/FixedFactory",942),_(332,22,{3:1,36:1,22:1,332:1},LX);var kp,Cz,g9,N8e=Gn(Bl,"HierarchyHandling",332,Zn,len,QKt),M6t;_(284,22,{3:1,36:1,22:1,284:1},Nj);var zh,R0,v_,y_,D6t=Gn(Bl,"LabelSide",284,Zn,Zen,ZKt),N6t;_(92,22,{3:1,36:1,22:1,92:1},Hw);var O1,Sf,Wl,Ef,Xu,kf,Gl,Uh,Cf,ns=Gn(Bl,"NodeLabelPlacement",92,Zn,crn,JKt),j6t;_(248,22,{3:1,36:1,22:1,248:1},XT);var j8e,b9,$0,R8e,w_,m9=Gn(Bl,"PortAlignment",248,Zn,Otn,eYt),R6t;_(100,22,{3:1,36:1,22:1,100:1},MC);var db,Ra,Hh,mE,Cd,L0,$8e=Gn(Bl,"PortConstraints",100,Zn,ann,tYt),$6t;_(291,22,{3:1,36:1,22:1,291:1},KT);var v9,_1,x_,F0,V4,Iz=Gn(Bl,"PortLabelPlacement",291,Zn,_tn,nYt),L6t;_(61,22,{3:1,36:1,22:1,61:1},YT);var rn,Wt,vE,ux,Wf,Cp,Tz,yE,lx,Id,Lc,Td,Gf,Ad,z4,wE,fx,xE,Sn,Hs,Xt,Vo=Gn(Bl,"PortSide",61,Zn,mtn,rYt),F6t;_(945,1,Fl,DUe),b.Qe=function(t){v1t(t)};var B6t,V6t,L8e,z6t,U6t;D(Bl,"RandomLayouterOptions",945),_(946,1,{},uBe),b._e=function(){var t;return t=new wBe,t},b.af=function(t){},D(Bl,"RandomLayouterOptions/RandomFactory",946),_(371,22,{3:1,36:1,22:1,371:1},jj);var ew,S_,E_,hb,y9=Gn(Bl,"SizeConstraint",371,Zn,Qen,iYt),H6t;_(258,22,{3:1,36:1,22:1,258:1},qw);var k_,Az,SE,aoe,C_,w9,Pz,Oz,_z,F8e=Gn(Bl,"SizeOptions",258,Zn,hrn,oYt),q6t;_(367,1,{1921:1},GS),b.b=!1,b.c=0,b.d=-1,b.e=null,b.f=null,b.g=-1,b.j=!1,b.k=!1,b.n=!1,b.o=0,b.q=0,b.r=0,D(va,"BasicProgressMonitor",367),_(936,207,qg,lBe),b.$e=function(t,s){var a,l,f,v,w,S,C,A,M;switch(Mn(s,"Box layout",2),f=AT(Xe(Ot(t,(FL(),u6t)))),v=h(Ot(t,c6t),115),a=_t(It(Ot(t,jCe))),l=_t(It(Ot(t,RCe))),h(Ot(t,Hie),309).g){case 0:w=(S=new vu((!t.a&&(t.a=new $e(bi,t,10,11)),t.a)),Mt(),co(S,new bWe(l)),S),C=uye(t),A=Xe(Ot(t,NCe)),(A==null||(Ut(A),A<=0))&&(A=1.3),M=zyn(w,f,v,C.a,C.b,a,(Ut(A),A)),Tm(t,M.a,M.b,!1,!0);break;default:Lmn(t,f,v,a)}wn(s)},D(va,"BoxLayoutProvider",936),_(937,1,zr,bWe),b.ue=function(t,s){return hpn(this,h(t,34),h(s,34))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},b.a=!1,D(va,"BoxLayoutProvider/1",937),_(157,1,{157:1},_$,DZe),b.Ib=function(){return this.c?pwe(this.c):b0(this.b)},D(va,"BoxLayoutProvider/Group",157),_(309,22,{3:1,36:1,22:1,309:1},Rj);var B8e,V8e,z8e,coe,U8e=Gn(va,"BoxLayoutProvider/PackingMode",309,Zn,etn,sYt),W6t;_(938,1,zr,fBe),b.ue=function(t,s){return NZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(va,"BoxLayoutProvider/lambda$0$Type",938),_(939,1,zr,dBe),b.ue=function(t,s){return kZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(va,"BoxLayoutProvider/lambda$1$Type",939),_(940,1,zr,hBe),b.ue=function(t,s){return CZt(h(t,157),h(s,157))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(va,"BoxLayoutProvider/lambda$2$Type",940),_(1336,1,{810:1},pBe),b.lg=function(t,s){return gj(),!ue(s,160)||sKe((X3(),h(t,160)),s)},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1336),_(1337,1,ln,mWe),b.td=function(t){con(this.a,h(t,146))},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1337),_(1338,1,ln,gBe),b.td=function(t){h(t,94),gj()},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1338),_(1342,1,ln,vWe),b.td=function(t){Orn(this.a,h(t,94))},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1342),_(1340,1,mr,PYe),b.Mb=function(t){return Bin(this.a,this.b,h(t,146))},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1340),_(1339,1,mr,OYe),b.Mb=function(t){return vGt(this.a,this.b,h(t,810))},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1339),_(1341,1,ln,_Ye),b.td=function(t){vQt(this.a,this.b,h(t,146))},D(va,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1341),_(914,1,{},mBe),b.Kb=function(t){return OQe(t)},b.Fb=function(t){return this===t},D(va,"ElkUtil/lambda$0$Type",914),_(915,1,ln,MYe),b.td=function(t){Shn(this.a,this.b,h(t,80))},b.a=0,b.b=0,D(va,"ElkUtil/lambda$1$Type",915),_(916,1,ln,DYe),b.td=function(t){OHt(this.a,this.b,h(t,201))},b.a=0,b.b=0,D(va,"ElkUtil/lambda$2$Type",916),_(917,1,ln,NYe),b.td=function(t){OWt(this.a,this.b,h(t,137))},b.a=0,b.b=0,D(va,"ElkUtil/lambda$3$Type",917),_(918,1,ln,yWe),b.td=function(t){RYt(this.a,h(t,463))},D(va,"ElkUtil/lambda$4$Type",918),_(338,1,{36:1,338:1},CT),b.wd=function(t){return ZWt(this,h(t,236))},b.Fb=function(t){var s;return ue(t,338)?(s=h(t,338),this.a==s.a):!1},b.Hb=function(){return ki(this.a)},b.Ib=function(){return this.a+" (exclusive)"},b.a=0,D(va,"ExclusiveBounds/ExclusiveLowerBound",338),_(1111,207,qg,bBe),b.$e=function(t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de,he,me,Te,Le,Ke,dt,ct;for(Mn(s,"Fixed Layout",1),v=h(Ot(t,(Or(),qCe)),216),R=0,V=0,he=new bn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));he.e!=he.i.gc();){for(oe=h(yn(he),34),ct=h(Ot(oe,(eL(),p9)),8),ct&&(rd(oe,ct.a,ct.b),h(Ot(oe,O8e),174).Fc((xu(),ew))&&(q=h(Ot(oe,M8e),8),q.a>0&&q.b>0&&Tm(oe,q.a,q.b,!0,!0))),R=m.Math.max(R,oe.i+oe.g),V=m.Math.max(V,oe.j+oe.f),A=new bn((!oe.n&&(oe.n=new $e(Ds,oe,1,7)),oe.n));A.e!=A.i.gc();)S=h(yn(A),137),ct=h(Ot(S,p9),8),ct&&rd(S,ct.a,ct.b),R=m.Math.max(R,oe.i+S.i+S.g),V=m.Math.max(V,oe.j+S.j+S.f);for(Le=new bn((!oe.c&&(oe.c=new $e(fu,oe,9,9)),oe.c));Le.e!=Le.i.gc();)for(Te=h(yn(Le),122),ct=h(Ot(Te,p9),8),ct&&rd(Te,ct.a,ct.b),Ke=oe.i+Te.i,dt=oe.j+Te.j,R=m.Math.max(R,Ke+Te.g),V=m.Math.max(V,dt+Te.f),C=new bn((!Te.n&&(Te.n=new $e(Ds,Te,1,7)),Te.n));C.e!=C.i.gc();)S=h(yn(C),137),ct=h(Ot(S,p9),8),ct&&rd(S,ct.a,ct.b),R=m.Math.max(R,Ke+S.i+S.g),V=m.Math.max(V,dt+S.j+S.f);for(f=new mn(vn(hp(oe).a.Ic(),new j));Qn(f);)a=h($n(f),80),M=O0t(a),R=m.Math.max(R,M.a),V=m.Math.max(V,M.b);for(l=new mn(vn(jP(oe).a.Ic(),new j));Qn(l);)a=h($n(l),80),Gi(Nh(a))!=t&&(M=O0t(a),R=m.Math.max(R,M.a),V=m.Math.max(V,M.b))}if(v==(cp(),h9))for(de=new bn((!t.a&&(t.a=new $e(bi,t,10,11)),t.a));de.e!=de.i.gc();)for(oe=h(yn(de),34),l=new mn(vn(hp(oe).a.Ic(),new j));Qn(l);)a=h($n(l),80),w=ubn(a),w.b==0?Ts(a,cx,null):Ts(a,cx,w);_t(It(Ot(t,(eL(),_8e))))||(me=h(Ot(t,_6t),115),J=R+me.b+me.c,W=V+me.d+me.a,Tm(t,J,W,!0,!0)),wn(s)},D(va,"FixedLayoutProvider",1111),_(370,134,{3:1,409:1,370:1,94:1,134:1},PG,sst),b.Gf=function(t){var s,a,l,f,v,w,S,C,A;if(!!t)try{for(C=xy(t,";,;"),v=C,w=0,S=v.length;w>16&Ii|s^l<<16},b.Ic=function(){return new wWe(this)},b.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Bs(this.b)+")":this.b==null?"pair("+Bs(this.a)+",null)":"pair("+Bs(this.a)+","+Bs(this.b)+")"},D(va,"Pair",46),_(947,1,bo,wWe),b.Nb=function(t){yo(this,t)},b.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},b.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ee(new ca)},b.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ee(new Ic)},b.b=!1,b.c=!1,D(va,"Pair/1",947),_(442,1,{442:1},Ytt),b.Fb=function(t){return Ia(this.a,h(t,442).a)&&Ia(this.c,h(t,442).c)&&Ia(this.d,h(t,442).d)&&Ia(this.b,h(t,442).b)},b.Hb=function(){return tL(re(ne(hn,1),rt,1,5,[this.a,this.c,this.d,this.b]))},b.Ib=function(){return"("+this.a+Fo+this.c+Fo+this.d+Fo+this.b+")"},D(va,"Quadruple",442),_(1099,207,qg,wBe),b.$e=function(t,s){var a,l,f,v,w;if(Mn(s,"Random Layout",1),(!t.a&&(t.a=new $e(bi,t,10,11)),t.a).i==0){wn(s);return}v=h(Ot(t,(Wme(),z6t)),20),!!v&&v.a!=0?f=new o$(v.a):f=new NQ,a=AT(Xe(Ot(t,B6t))),w=AT(Xe(Ot(t,U6t))),l=h(Ot(t,V6t),115),Syn(t,f,a,w,l),wn(s)},D(va,"RandomLayoutProvider",1099),_(542,1,{}),b.of=function(){return new ot(this.f.i,this.f.j)},b.Xe=function(t){return xnt(t,(Or(),lu))?Ot(this.f,Y6t):Ot(this.f,t)},b.pf=function(){return new ot(this.f.g,this.f.f)},b.qf=function(){return this.g},b.Ye=function(t){return s0(this.f,t)},b.rf=function(t){_c(this.f,t.a),Mc(this.f,t.b)},b.sf=function(t){pm(this.f,t.a),hm(this.f,t.b)},b.tf=function(t){this.g=t},b.g=0;var Y6t;D(mO,"ElkGraphAdapters/AbstractElkGraphElementAdapter",542),_(543,1,{818:1},GN),b.uf=function(){var t,s;if(!this.b)for(this.b=e$(NR(this.a).i),s=new bn(NR(this.a));s.e!=s.i.gc();)t=h(yn(s),137),Re(this.b,new eX(t));return this.b},b.b=null,D(mO,"ElkGraphAdapters/ElkEdgeAdapter",543),_(433,542,{},aC),b.vf=function(){return Blt(this)},b.a=null,D(mO,"ElkGraphAdapters/ElkGraphAdapter",433),_(618,542,{183:1},eX),D(mO,"ElkGraphAdapters/ElkLabelAdapter",618),_(617,542,{816:1},JX),b.uf=function(){return Dcn(this)},b.yf=function(){var t;return t=h(Ot(this.f,(Or(),h_)),141),!t&&(t=new oC),t},b.Af=function(){return Ncn(this)},b.Cf=function(t){var s;s=new gK(t),Ts(this.f,(Or(),h_),s)},b.Df=function(t){Ts(this.f,(Or(),j0),new Kpe(t))},b.wf=function(){return this.d},b.xf=function(){var t,s;if(!this.a)for(this.a=new Fe,s=new mn(vn(jP(h(this.f,34)).a.Ic(),new j));Qn(s);)t=h($n(s),80),Re(this.a,new GN(t));return this.a},b.zf=function(){var t,s;if(!this.c)for(this.c=new Fe,s=new mn(vn(hp(h(this.f,34)).a.Ic(),new j));Qn(s);)t=h($n(s),80),Re(this.c,new GN(t));return this.c},b.Bf=function(){return VR(h(this.f,34)).i!=0||_t(It(h(this.f,34).Xe((Or(),d_))))},b.a=null,b.b=null,b.c=null,b.d=null,b.e=null,D(mO,"ElkGraphAdapters/ElkNodeAdapter",617),_(1214,542,{817:1},xWe),b.uf=function(){return qcn(this)},b.xf=function(){var t,s;if(!this.a)for(this.a=Eh(h(this.f,122).sg().i),s=new bn(h(this.f,122).sg());s.e!=s.i.gc();)t=h(yn(s),80),Re(this.a,new GN(t));return this.a},b.zf=function(){var t,s;if(!this.c)for(this.c=Eh(h(this.f,122).tg().i),s=new bn(h(this.f,122).tg());s.e!=s.i.gc();)t=h(yn(s),80),Re(this.c,new GN(t));return this.c},b.Ef=function(){return h(h(this.f,122).Xe((Or(),f9)),61)},b.Ff=function(){var t,s,a,l,f,v,w,S;for(l=cd(h(this.f,122)),a=new bn(h(this.f,122).tg());a.e!=a.i.gc();)for(t=h(yn(a),80),S=new bn((!t.c&&(t.c=new Ht(Vn,t,5,8)),t.c));S.e!=S.i.gc();){if(w=h(yn(S),93),r2(Oa(w),l))return!0;if(Oa(w)==l&&_t(It(Ot(t,(Or(),Yie)))))return!0}for(s=new bn(h(this.f,122).sg());s.e!=s.i.gc();)for(t=h(yn(s),80),v=new bn((!t.b&&(t.b=new Ht(Vn,t,4,7)),t.b));v.e!=v.i.gc();)if(f=h(yn(v),93),r2(Oa(f),l))return!0;return!1},b.a=null,b.b=null,b.c=null,D(mO,"ElkGraphAdapters/ElkPortAdapter",1214);var B0=ii(bl,"EObject"),EE=ii($2,bmt),Xl=ii($2,mmt),I_=ii($2,vmt),T_=ii($2,"ElkShape"),Vn=ii($2,ymt),Hi=ii($2,j3e),ai=ii($2,wmt),A_=ii(bl,xmt),x9=ii(bl,"EFactory"),Q6t,uoe=ii(bl,Smt),Xf=ii(bl,"EPackage"),Qi,Z6t,J6t,G8e,Mz,eEt,X8e,K8e,Y8e,Ip,tEt,nEt,Ds=ii($2,R3e),bi=ii($2,$3e),fu=ii($2,L3e);_(89,1,Emt),b.Eg=function(){return this.Fg(),null},b.Fg=function(){return null},b.Gg=function(){return this.Fg(),!1},b.Hg=function(){return!1},b.Ig=function(t){Ar(this,t)},D(v4,"BasicNotifierImpl",89),_(96,89,Tmt),b.ih=function(){return bu(this)},b.Jg=function(t,s){return t},b.Kg=function(){throw ee(new Rn)},b.Lg=function(t){var s;return s=qo(h(Dt(this.Og(),this.Qg()),17)),this.$g().dh(this,s.n,s.f,t)},b.Mg=function(t,s){throw ee(new Rn)},b.Ng=function(t,s,a){return Hu(this,t,s,a)},b.Og=function(){var t;return this.Kg()&&(t=this.Kg().Zj(),t)?t:this.uh()},b.Pg=function(){return LZ(this)},b.Qg=function(){throw ee(new Rn)},b.Rg=function(){var t,s;return s=this.kh().$j(),!s&&this.Kg().dk(s=(yC(),t=uge(Kd(this.Og())),t==null?moe:new tA(this,t))),s},b.Sg=function(t,s){return t},b.Tg=function(t){var s;return s=t.Bj(),s?t.Xi():ti(this.Og(),t)},b.Ug=function(){var t;return t=this.Kg(),t?t.ak():null},b.Vg=function(){return this.Kg()?this.Kg().Zj():null},b.Wg=function(t,s,a){return IL(this,t,s,a)},b.Xg=function(t){return T5(this,t)},b.Yg=function(t,s){return OY(this,t,s)},b.Zg=function(){var t;return t=this.Kg(),!!t&&t.bk()},b.$g=function(){throw ee(new Rn)},b._g=function(){return vL(this)},b.ah=function(t,s,a,l){return Q3(this,t,s,l)},b.bh=function(t,s,a){var l;return l=h(Dt(this.Og(),s),65),l.Ij().Lj(this,this.th(),s-this.vh(),t,a)},b.dh=function(t,s,a,l){return qR(this,t,s,l)},b.eh=function(t,s,a){var l;return l=h(Dt(this.Og(),s),65),l.Ij().Mj(this,this.th(),s-this.vh(),t,a)},b.fh=function(){return!!this.Kg()&&!!this.Kg()._j()},b.gh=function(t){return KQ(this,t)},b.hh=function(t){return Dnt(this,t)},b.jh=function(t){return Ypt(this,t)},b.kh=function(){throw ee(new Rn)},b.lh=function(){return this.Kg()?this.Kg()._j():null},b.mh=function(){return vL(this)},b.nh=function(t,s){_Z(this,t,s)},b.oh=function(t){this.kh().ck(t)},b.ph=function(t){this.kh().fk(t)},b.qh=function(t){this.kh().ek(t)},b.rh=function(t,s){var a,l,f,v;return v=this.Ug(),!!v&&!!t&&(s=_o(v.Qk(),this,s),v.Uk(this)),l=this.$g(),l&&((JZ(this,this.$g(),this.Qg()).Bb&Bo)!=0?(f=l._g(),f&&(t?!v&&f.Uk(this):f.Tk(this))):(s=(a=this.Qg(),a>=0?this.Lg(s):this.$g().dh(this,-1-a,null,s)),s=this.Ng(null,-1,s))),this.ph(t),s},b.sh=function(t){var s,a,l,f,v,w,S,C;if(a=this.Og(),v=ti(a,t),s=this.vh(),v>=s)return h(t,65).Ij().Pj(this,this.th(),v-s);if(v<=-1)if(w=A2((Nc(),vo),a,t),w){if(Ho(),h(w,65).Jj()||(w=L3(bs(vo,w))),f=(l=this.Tg(w),h(l>=0?this.Wg(l,!0,!0):km(this,w,!0),152)),C=w.Uj(),C>1||C==-1)return h(h(f,212).cl(t,!1),76)}else throw ee(new Gt(C0+t.ne()+Cte));else if(t.Vj())return l=this.Tg(t),h(l>=0?this.Wg(l,!1,!0):km(this,t,!1),76);return S=new tQe(this,t),S},b.th=function(){return abe(this)},b.uh=function(){return(n0(),Bt).S},b.vh=function(){return dn(this.uh())},b.wh=function(t){TZ(this,t)},b.Ib=function(){return gf(this)},D(Vt,"BasicEObjectImpl",96);var rEt;_(113,96,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1}),b.xh=function(t){var s;return s=sbe(this),s[t]},b.yh=function(t,s){var a;a=sbe(this),ui(a,t,s)},b.zh=function(t){var s;s=sbe(this),ui(s,t,null)},b.Eg=function(){return h(zt(this,4),124)},b.Fg=function(){throw ee(new Rn)},b.Gg=function(){return(this.Db&4)!=0},b.Kg=function(){throw ee(new Rn)},b.Ah=function(t){Y3(this,2,t)},b.Mg=function(t,s){this.Db=s<<16|this.Db&255,this.Ah(t)},b.Og=function(){return dc(this)},b.Qg=function(){return this.Db>>16},b.Rg=function(){var t,s;return yC(),s=uge(Kd((t=h(zt(this,16),26),t||this.uh()))),s==null?moe:new tA(this,s)},b.Hg=function(){return(this.Db&1)==0},b.Ug=function(){return h(zt(this,128),1907)},b.Vg=function(){return h(zt(this,16),26)},b.Zg=function(){return(this.Db&32)!=0},b.$g=function(){return h(zt(this,2),48)},b.fh=function(){return(this.Db&64)!=0},b.kh=function(){throw ee(new Rn)},b.lh=function(){return h(zt(this,64),279)},b.oh=function(t){Y3(this,16,t)},b.ph=function(t){Y3(this,128,t)},b.qh=function(t){Y3(this,64,t)},b.th=function(){return Ja(this)},b.Db=0,D(Vt,"MinimalEObjectImpl",113),_(116,113,{104:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Ah=function(t){this.Cb=t},b.$g=function(){return this.Cb},D(Vt,"MinimalEObjectImpl/Container",116),_(1957,116,{104:1,408:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Ve=function(t){return!this.o&&(this.o=new tu((Da(),Ip),pb,this,0)),aat(this.o,t.q?t.q:(Mt(),Mt(),ah)),this},b.Wg=function(t,s,a){return bve(this,t,s,a)},b.eh=function(t,s,a){return rye(this,t,s,a)},b.gh=function(t){return yge(this,t)},b.nh=function(t,s){sme(this,t,s)},b.uh=function(){return Da(),nEt},b.wh=function(t){Wbe(this,t)},b.We=function(){return flt(this)},b.Xe=function(t){return Ot(this,t)},b.Ye=function(t){return s0(this,t)},b.Ze=function(t,s){return Ts(this,t,s)},D(Yg,"EMapPropertyHolderImpl",1957),_(560,116,{104:1,463:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},$N),b.Wg=function(t,s,a){switch(t){case 0:return this.a;case 1:return this.b}return IL(this,t,s,a)},b.gh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return KQ(this,t)},b.nh=function(t,s){switch(t){case 0:N$(this,Ae(Xe(s)));return;case 1:D$(this,Ae(Xe(s)));return}_Z(this,t,s)},b.uh=function(){return Da(),Z6t},b.wh=function(t){switch(t){case 0:N$(this,0);return;case 1:D$(this,0);return}TZ(this,t)},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (x: ",Fw(t,this.a),t.a+=", y: ",Fw(t,this.b),t.a+=")",t.a)},b.a=0,b.b=0,D(Yg,"ElkBendPointImpl",560),_(710,1957,{104:1,408:1,160:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return Eme(this,t,s,a)},b.bh=function(t,s,a){return SZ(this,t,s,a)},b.eh=function(t,s,a){return aQ(this,t,s,a)},b.gh=function(t){return Vbe(this,t)},b.nh=function(t,s){jve(this,t,s)},b.uh=function(){return Da(),eEt},b.wh=function(t){yme(this,t)},b.ug=function(){return this.k},b.vg=function(){return NR(this)},b.Ib=function(){return DQ(this)},b.k=null,D(Yg,"ElkGraphElementImpl",710),_(711,710,{104:1,408:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return Dme(this,t,s,a)},b.gh=function(t){return zme(this,t)},b.nh=function(t,s){Rve(this,t,s)},b.uh=function(){return Da(),tEt},b.wh=function(t){Ume(this,t)},b.wg=function(){return this.f},b.xg=function(){return this.g},b.yg=function(){return this.i},b.zg=function(){return this.j},b.Ag=function(t,s){Uj(this,t,s)},b.Bg=function(t,s){rd(this,t,s)},b.Cg=function(t){_c(this,t)},b.Dg=function(t){Mc(this,t)},b.Ib=function(){return IZ(this)},b.f=0,b.g=0,b.i=0,b.j=0,D(Yg,"ElkShapeImpl",711),_(712,711,{104:1,408:1,93:1,160:1,464:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1}),b.Wg=function(t,s,a){return fve(this,t,s,a)},b.bh=function(t,s,a){return Ove(this,t,s,a)},b.eh=function(t,s,a){return _ve(this,t,s,a)},b.gh=function(t){return tme(this,t)},b.nh=function(t,s){Lye(this,t,s)},b.uh=function(){return Da(),J6t},b.wh=function(t){ove(this,t)},b.sg=function(){return!this.d&&(this.d=new Ht(Hi,this,8,5)),this.d},b.tg=function(){return!this.e&&(this.e=new Ht(Hi,this,7,4)),this.e},D(Yg,"ElkConnectableShapeImpl",712),_(349,710,{104:1,408:1,80:1,160:1,349:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},cde),b.Lg=function(t){return Cve(this,t)},b.Wg=function(t,s,a){switch(t){case 3:return KR(this);case 4:return!this.b&&(this.b=new Ht(Vn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Ht(Vn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),this.a;case 7:return Zt(),!this.b&&(this.b=new Ht(Vn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ht(Vn,this,5,8)),this.c.i<=1));case 8:return Zt(),!!F8(this);case 9:return Zt(),!!Em(this);case 10:return Zt(),!this.b&&(this.b=new Ht(Vn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ht(Vn,this,5,8)),this.c.i!=0)}return Eme(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 3:return this.Cb&&(a=(l=this.Db>>16,l>=0?Cve(this,a):this.Cb.dh(this,-1-l,null,a))),xpe(this,h(t,34),a);case 4:return!this.b&&(this.b=new Ht(Vn,this,4,7)),Ua(this.b,t,a);case 5:return!this.c&&(this.c=new Ht(Vn,this,5,8)),Ua(this.c,t,a);case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),Ua(this.a,t,a)}return SZ(this,t,s,a)},b.eh=function(t,s,a){switch(s){case 3:return xpe(this,null,a);case 4:return!this.b&&(this.b=new Ht(Vn,this,4,7)),_o(this.b,t,a);case 5:return!this.c&&(this.c=new Ht(Vn,this,5,8)),_o(this.c,t,a);case 6:return!this.a&&(this.a=new $e(ai,this,6,6)),_o(this.a,t,a)}return aQ(this,t,s,a)},b.gh=function(t){switch(t){case 3:return!!KR(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Ht(Vn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Ht(Vn,this,5,8)),this.c.i<=1));case 8:return F8(this);case 9:return Em(this);case 10:return!this.b&&(this.b=new Ht(Vn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Ht(Vn,this,5,8)),this.c.i!=0)}return Vbe(this,t)},b.nh=function(t,s){switch(t){case 3:Xye(this,h(s,34));return;case 4:!this.b&&(this.b=new Ht(Vn,this,4,7)),Cn(this.b),!this.b&&(this.b=new Ht(Vn,this,4,7)),di(this.b,h(s,15));return;case 5:!this.c&&(this.c=new Ht(Vn,this,5,8)),Cn(this.c),!this.c&&(this.c=new Ht(Vn,this,5,8)),di(this.c,h(s,15));return;case 6:!this.a&&(this.a=new $e(ai,this,6,6)),Cn(this.a),!this.a&&(this.a=new $e(ai,this,6,6)),di(this.a,h(s,15));return}jve(this,t,s)},b.uh=function(){return Da(),G8e},b.wh=function(t){switch(t){case 3:Xye(this,null);return;case 4:!this.b&&(this.b=new Ht(Vn,this,4,7)),Cn(this.b);return;case 5:!this.c&&(this.c=new Ht(Vn,this,5,8)),Cn(this.c);return;case 6:!this.a&&(this.a=new $e(ai,this,6,6)),Cn(this.a);return}yme(this,t)},b.Ib=function(){return Mpt(this)},D(Yg,"ElkEdgeImpl",349),_(432,1957,{104:1,408:1,201:1,432:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},RN),b.Lg=function(t){return xve(this,t)},b.Wg=function(t,s,a){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new _i(Xl,this,5)),this.a;case 6:return Ont(this);case 7:return s?tZ(this):this.i;case 8:return s?eZ(this):this.f;case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),this.e;case 11:return this.d}return bve(this,t,s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?xve(this,a):this.Cb.dh(this,-1-f,null,a))),Spe(this,h(t,80),a);case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),Ua(this.g,t,a);case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),Ua(this.e,t,a)}return v=h(Dt((l=h(zt(this,16),26),l||(Da(),Mz)),s),65),v.Ij().Lj(this,Ja(this),s-dn((Da(),Mz)),t,a)},b.eh=function(t,s,a){switch(s){case 5:return!this.a&&(this.a=new _i(Xl,this,5)),_o(this.a,t,a);case 6:return Spe(this,null,a);case 9:return!this.g&&(this.g=new Ht(ai,this,9,10)),_o(this.g,t,a);case 10:return!this.e&&(this.e=new Ht(ai,this,10,9)),_o(this.e,t,a)}return rye(this,t,s,a)},b.gh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Ont(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return yge(this,t)},b.nh=function(t,s){switch(t){case 1:O5(this,Ae(Xe(s)));return;case 2:D5(this,Ae(Xe(s)));return;case 3:_5(this,Ae(Xe(s)));return;case 4:M5(this,Ae(Xe(s)));return;case 5:!this.a&&(this.a=new _i(Xl,this,5)),Cn(this.a),!this.a&&(this.a=new _i(Xl,this,5)),di(this.a,h(s,15));return;case 6:Nht(this,h(s,80));return;case 7:$$(this,h(s,93));return;case 8:R$(this,h(s,93));return;case 9:!this.g&&(this.g=new Ht(ai,this,9,10)),Cn(this.g),!this.g&&(this.g=new Ht(ai,this,9,10)),di(this.g,h(s,15));return;case 10:!this.e&&(this.e=new Ht(ai,this,10,9)),Cn(this.e),!this.e&&(this.e=new Ht(ai,this,10,9)),di(this.e,h(s,15));return;case 11:_be(this,Fn(s));return}sme(this,t,s)},b.uh=function(){return Da(),Mz},b.wh=function(t){switch(t){case 1:O5(this,0);return;case 2:D5(this,0);return;case 3:_5(this,0);return;case 4:M5(this,0);return;case 5:!this.a&&(this.a=new _i(Xl,this,5)),Cn(this.a);return;case 6:Nht(this,null);return;case 7:$$(this,null);return;case 8:R$(this,null);return;case 9:!this.g&&(this.g=new Ht(ai,this,9,10)),Cn(this.g);return;case 10:!this.e&&(this.e=new Ht(ai,this,10,9)),Cn(this.e);return;case 11:_be(this,null);return}Wbe(this,t)},b.Ib=function(){return tht(this)},b.b=0,b.c=0,b.d=null,b.j=0,b.k=0,D(Yg,"ElkEdgeSectionImpl",432),_(150,116,{104:1,91:1,89:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),b.Wg=function(t,s,a){var l;return t==0?(!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab):ll(this,t-dn(this.uh()),Dt((l=h(zt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f;return s==0?(!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a)):(f=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),f.Ij().Lj(this,Ja(this),s-dn(this.uh()),t,a))},b.eh=function(t,s,a){var l,f;return s==0?(!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a)):(f=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Ja(this),s-dn(this.uh()),t,a))},b.gh=function(t){var s;return t==0?!!this.Ab&&this.Ab.i!=0:ul(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.jh=function(t){return Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return}pl(this,t-dn(this.uh()),Dt((a=h(zt(this,16),26),a||this.uh()),t),s)},b.ph=function(t){Y3(this,128,t)},b.uh=function(){return At(),xEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return}hl(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.Bh=function(){this.Bb|=1},b.Ch=function(t){return U8(this,t)},b.Bb=0,D(Vt,"EModelElementImpl",150),_(696,150,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},pde),b.Dh=function(t,s){return u0t(this,t,s)},b.Eh=function(t){var s,a,l,f,v;if(this.a!=Bu(t)||(t.Bb&256)!=0)throw ee(new Gt(Tte+t.zb+jm));for(l=Es(t);wa(l.a).i!=0;){if(a=h(qP(l,0,(s=h(le(wa(l.a),0),86),v=s.c,ue(v,87)?h(v,26):(At(),Zl))),26),xm(a))return f=Bu(a).Ih().Eh(a),h(f,48).oh(t),f;l=Es(a)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new bet(t):new c0e(t)},b.Fh=function(t,s){return Am(this,t,s)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.a}return ll(this,t-dn((At(),H0)),Dt((l=h(zt(this,16),26),l||H0),t),s,a)},b.bh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 1:return this.a&&(a=h(this.a,48).dh(this,4,Xf,a)),mme(this,h(t,234),a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),H0)),s),65),f.Ij().Lj(this,Ja(this),s-dn((At(),H0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 1:return mme(this,null,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),H0)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),H0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return ul(this,t-dn((At(),H0)),Dt((s=h(zt(this,16),26),s||H0),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:$ft(this,h(s,234));return}pl(this,t-dn((At(),H0)),Dt((a=h(zt(this,16),26),a||H0),t),s)},b.uh=function(){return At(),H0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:$ft(this,null);return}hl(this,t-dn((At(),H0)),Dt((s=h(zt(this,16),26),s||H0),t))};var S9,Q8e,iEt;D(Vt,"EFactoryImpl",696),_(1012,696,{104:1,1983:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1},SBe),b.Dh=function(t,s){switch(t.tj()){case 12:return h(s,146).og();case 13:return Bs(s);default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v,w,S,C;switch(t.G==-1&&(t.G=(s=Bu(t),s?up(s.Hh(),t):-1)),t.G){case 4:return v=new ude,v;case 6:return w=new dhe,w;case 7:return S=new hhe,S;case 8:return l=new cde,l;case 9:return a=new $N,a;case 10:return f=new RN,f;case 11:return C=new EBe,C;default:throw ee(new Gt(Tte+t.zb+jm))}},b.Fh=function(t,s){switch(t.tj()){case 13:case 12:return null;default:throw ee(new Gt(_6+t.ne()+jm))}},D(Yg,"ElkGraphFactoryImpl",1012),_(431,150,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1}),b.Rg=function(){var t,s;return s=(t=h(zt(this,16),26),uge(Kd(t||this.uh()))),s==null?(yC(),yC(),moe):new RZe(this,s)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.ne()}return ll(this,t-dn(this.uh()),Dt((l=h(zt(this,16),26),l||this.uh()),t),s,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return ul(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:this.Gh(Fn(s));return}pl(this,t-dn(this.uh()),Dt((a=h(zt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),SEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:this.Gh(null);return}hl(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.ne=function(){return this.zb},b.Gh=function(t){za(this,t)},b.Ib=function(){return S8(this)},b.zb=null,D(Vt,"ENamedElementImpl",431),_(179,431,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},unt),b.Lg=function(t){return Qlt(this,t)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),this.rb;case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),this.vb;case 7:return s?this.Db>>16==7?h(this.Cb,234):null:Nnt(this)}return ll(this,t-dn((At(),Op)),Dt((l=h(zt(this,16),26),l||Op),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 4:return this.sb&&(a=h(this.sb,48).dh(this,1,x9,a)),xme(this,h(t,465),a);case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),Ua(this.rb,t,a);case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),Ua(this.vb,t,a);case 7:return this.Cb&&(a=(f=this.Db>>16,f>=0?Qlt(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,7,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),Op)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),Op)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 4:return xme(this,null,a);case 5:return!this.rb&&(this.rb=new Wv(this,Kf,this)),_o(this.rb,t,a);case 6:return!this.vb&&(this.vb=new O3(Xf,this,6,7)),_o(this.vb,t,a);case 7:return Hu(this,null,7,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Op)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Op)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!Nnt(this)}return ul(this,t-dn((At(),Op)),Dt((s=h(zt(this,16),26),s||Op),t))},b.jh=function(t){var s;return s=Ipn(this,t),s||Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Fn(s));return;case 2:U$(this,Fn(s));return;case 3:z$(this,Fn(s));return;case 4:CZ(this,h(s,465));return;case 5:!this.rb&&(this.rb=new Wv(this,Kf,this)),Cn(this.rb),!this.rb&&(this.rb=new Wv(this,Kf,this)),di(this.rb,h(s,15));return;case 6:!this.vb&&(this.vb=new O3(Xf,this,6,7)),Cn(this.vb),!this.vb&&(this.vb=new O3(Xf,this,6,7)),di(this.vb,h(s,15));return}pl(this,t-dn((At(),Op)),Dt((a=h(zt(this,16),26),a||Op),t),s)},b.qh=function(t){var s,a;if(!!t&&!!this.rb)for(a=new bn(this.rb);a.e!=a.i.gc();)s=yn(a),ue(s,348)&&(h(s,348).w=null);Y3(this,64,t)},b.uh=function(){return At(),Op},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:U$(this,null);return;case 3:z$(this,null);return;case 4:CZ(this,null);return;case 5:!this.rb&&(this.rb=new Wv(this,Kf,this)),Cn(this.rb);return;case 6:!this.vb&&(this.vb=new O3(Xf,this,6,7)),Cn(this.vb);return}hl(this,t-dn((At(),Op)),Dt((s=h(zt(this,16),26),s||Op),t))},b.Bh=function(){hZ(this)},b.Hh=function(){return!this.rb&&(this.rb=new Wv(this,Kf,this)),this.rb},b.Ih=function(){return this.sb},b.Jh=function(){return this.ub},b.Kh=function(){return this.xb},b.Lh=function(){return this.yb},b.Mh=function(t){this.ub=t},b.Ib=function(){var t;return(this.Db&64)!=0?S8(this):(t=new _l(S8(this)),t.a+=" (nsURI: ",is(t,this.yb),t.a+=", nsPrefix: ",is(t,this.xb),t.a+=")",t.a)},b.xb=null,b.yb=null,D(Vt,"EPackageImpl",179),_(549,179,{104:1,1985:1,549:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1},fht),b.q=!1,b.r=!1;var oEt=!1;D(Yg,"ElkGraphPackageImpl",549),_(351,711,{104:1,408:1,160:1,137:1,464:1,351:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},ude),b.Lg=function(t){return Sve(this,t)},b.Wg=function(t,s,a){switch(t){case 7:return jnt(this);case 8:return this.a}return Dme(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 7:return this.Cb&&(a=(l=this.Db>>16,l>=0?Sve(this,a):this.Cb.dh(this,-1-l,null,a))),S0e(this,h(t,160),a)}return SZ(this,t,s,a)},b.eh=function(t,s,a){return s==7?S0e(this,null,a):aQ(this,t,s,a)},b.gh=function(t){switch(t){case 7:return!!jnt(this);case 8:return!kt("",this.a)}return zme(this,t)},b.nh=function(t,s){switch(t){case 7:Jye(this,h(s,160));return;case 8:Ebe(this,Fn(s));return}Rve(this,t,s)},b.uh=function(){return Da(),X8e},b.wh=function(t){switch(t){case 7:Jye(this,null);return;case 8:Ebe(this,"");return}Ume(this,t)},b.Ib=function(){return tdt(this)},b.a="",D(Yg,"ElkLabelImpl",351),_(238,712,{104:1,408:1,93:1,160:1,34:1,464:1,238:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},dhe),b.Lg=function(t){return Ive(this,t)},b.Wg=function(t,s,a){switch(t){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),this.a;case 11:return Gi(this);case 12:return!this.b&&(this.b=new $e(Hi,this,12,3)),this.b;case 13:return Zt(),!this.a&&(this.a=new $e(bi,this,10,11)),this.a.i>0}return fve(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),Ua(this.c,t,a);case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),Ua(this.a,t,a);case 11:return this.Cb&&(a=(l=this.Db>>16,l>=0?Ive(this,a):this.Cb.dh(this,-1-l,null,a))),Mpe(this,h(t,34),a);case 12:return!this.b&&(this.b=new $e(Hi,this,12,3)),Ua(this.b,t,a)}return Ove(this,t,s,a)},b.eh=function(t,s,a){switch(s){case 9:return!this.c&&(this.c=new $e(fu,this,9,9)),_o(this.c,t,a);case 10:return!this.a&&(this.a=new $e(bi,this,10,11)),_o(this.a,t,a);case 11:return Mpe(this,null,a);case 12:return!this.b&&(this.b=new $e(Hi,this,12,3)),_o(this.b,t,a)}return _ve(this,t,s,a)},b.gh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Gi(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new $e(bi,this,10,11)),this.a.i>0}return tme(this,t)},b.nh=function(t,s){switch(t){case 9:!this.c&&(this.c=new $e(fu,this,9,9)),Cn(this.c),!this.c&&(this.c=new $e(fu,this,9,9)),di(this.c,h(s,15));return;case 10:!this.a&&(this.a=new $e(bi,this,10,11)),Cn(this.a),!this.a&&(this.a=new $e(bi,this,10,11)),di(this.a,h(s,15));return;case 11:Yye(this,h(s,34));return;case 12:!this.b&&(this.b=new $e(Hi,this,12,3)),Cn(this.b),!this.b&&(this.b=new $e(Hi,this,12,3)),di(this.b,h(s,15));return}Lye(this,t,s)},b.uh=function(){return Da(),K8e},b.wh=function(t){switch(t){case 9:!this.c&&(this.c=new $e(fu,this,9,9)),Cn(this.c);return;case 10:!this.a&&(this.a=new $e(bi,this,10,11)),Cn(this.a);return;case 11:Yye(this,null);return;case 12:!this.b&&(this.b=new $e(Hi,this,12,3)),Cn(this.b);return}ove(this,t)},b.Ib=function(){return pwe(this)},D(Yg,"ElkNodeImpl",238),_(199,712,{104:1,408:1,93:1,160:1,122:1,464:1,199:1,94:1,91:1,89:1,55:1,107:1,48:1,96:1,113:1,116:1},hhe),b.Lg=function(t){return Eve(this,t)},b.Wg=function(t,s,a){return t==9?cd(this):fve(this,t,s,a)},b.bh=function(t,s,a){var l;switch(s){case 9:return this.Cb&&(a=(l=this.Db>>16,l>=0?Eve(this,a):this.Cb.dh(this,-1-l,null,a))),Epe(this,h(t,34),a)}return Ove(this,t,s,a)},b.eh=function(t,s,a){return s==9?Epe(this,null,a):_ve(this,t,s,a)},b.gh=function(t){return t==9?!!cd(this):tme(this,t)},b.nh=function(t,s){switch(t){case 9:Kye(this,h(s,34));return}Lye(this,t,s)},b.uh=function(){return Da(),Y8e},b.wh=function(t){switch(t){case 9:Kye(this,null);return}ove(this,t)},b.Ib=function(){return N1t(this)},D(Yg,"ElkPortImpl",199);var sEt=ii(Mo,"BasicEMap/Entry");_(1072,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,113:1,116:1},EBe),b.Fb=function(t){return this===t},b.ad=function(){return this.b},b.Hb=function(){return Kb(this)},b.Ph=function(t){kbe(this,h(t,146))},b.Wg=function(t,s,a){switch(t){case 0:return this.b;case 1:return this.c}return IL(this,t,s,a)},b.gh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return KQ(this,t)},b.nh=function(t,s){switch(t){case 0:kbe(this,h(s,146));return;case 1:Cbe(this,s);return}_Z(this,t,s)},b.uh=function(){return Da(),Ip},b.wh=function(t){switch(t){case 0:kbe(this,null);return;case 1:Cbe(this,null);return}TZ(this,t)},b.Nh=function(){var t;return this.a==-1&&(t=this.b,this.a=t?ri(t):0),this.a},b.bd=function(){return this.c},b.Oh=function(t){this.a=t},b.cd=function(t){var s;return s=this.c,Cbe(this,t),s},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new Wp,Kn(Kn(Kn(t,this.b?this.b.og():vc),Tee),eA(this.c)),t.a)},b.a=-1,b.c=null;var pb=D(Yg,"ElkPropertyToValueMapEntryImpl",1072);_(964,1,{},kBe),D(mo,"JsonAdapter",964),_(208,59,S1,Fd),D(mo,"JsonImportException",208),_(836,1,{},Zlt),D(mo,"JsonImporter",836),_(870,1,{},FYe),D(mo,"JsonImporter/lambda$0$Type",870),_(871,1,{},BYe),D(mo,"JsonImporter/lambda$1$Type",871),_(879,1,{},SWe),D(mo,"JsonImporter/lambda$10$Type",879),_(881,1,{},VYe),D(mo,"JsonImporter/lambda$11$Type",881),_(882,1,{},zYe),D(mo,"JsonImporter/lambda$12$Type",882),_(888,1,{},Ztt),D(mo,"JsonImporter/lambda$13$Type",888),_(887,1,{},Jtt),D(mo,"JsonImporter/lambda$14$Type",887),_(883,1,{},UYe),D(mo,"JsonImporter/lambda$15$Type",883),_(884,1,{},HYe),D(mo,"JsonImporter/lambda$16$Type",884),_(885,1,{},qYe),D(mo,"JsonImporter/lambda$17$Type",885),_(886,1,{},WYe),D(mo,"JsonImporter/lambda$18$Type",886),_(891,1,{},EWe),D(mo,"JsonImporter/lambda$19$Type",891),_(872,1,{},kWe),D(mo,"JsonImporter/lambda$2$Type",872),_(889,1,{},CWe),D(mo,"JsonImporter/lambda$20$Type",889),_(890,1,{},IWe),D(mo,"JsonImporter/lambda$21$Type",890),_(894,1,{},TWe),D(mo,"JsonImporter/lambda$22$Type",894),_(892,1,{},AWe),D(mo,"JsonImporter/lambda$23$Type",892),_(893,1,{},PWe),D(mo,"JsonImporter/lambda$24$Type",893),_(896,1,{},OWe),D(mo,"JsonImporter/lambda$25$Type",896),_(895,1,{},_We),D(mo,"JsonImporter/lambda$26$Type",895),_(897,1,ln,GYe),b.td=function(t){lnn(this.b,this.a,Fn(t))},D(mo,"JsonImporter/lambda$27$Type",897),_(898,1,ln,XYe),b.td=function(t){fnn(this.b,this.a,Fn(t))},D(mo,"JsonImporter/lambda$28$Type",898),_(899,1,{},KYe),D(mo,"JsonImporter/lambda$29$Type",899),_(875,1,{},MWe),D(mo,"JsonImporter/lambda$3$Type",875),_(900,1,{},YYe),D(mo,"JsonImporter/lambda$30$Type",900),_(901,1,{},DWe),D(mo,"JsonImporter/lambda$31$Type",901),_(902,1,{},NWe),D(mo,"JsonImporter/lambda$32$Type",902),_(903,1,{},jWe),D(mo,"JsonImporter/lambda$33$Type",903),_(904,1,{},RWe),D(mo,"JsonImporter/lambda$34$Type",904),_(838,1,{},$We),D(mo,"JsonImporter/lambda$35$Type",838),_(908,1,{},VJe),D(mo,"JsonImporter/lambda$36$Type",908),_(905,1,ln,LWe),b.td=function(t){wtn(this.a,h(t,463))},D(mo,"JsonImporter/lambda$37$Type",905),_(906,1,ln,QYe),b.td=function(t){Xqt(this.a,this.b,h(t,201))},D(mo,"JsonImporter/lambda$38$Type",906),_(907,1,ln,ZYe),b.td=function(t){Kqt(this.a,this.b,h(t,201))},D(mo,"JsonImporter/lambda$39$Type",907),_(873,1,{},FWe),D(mo,"JsonImporter/lambda$4$Type",873),_(909,1,ln,BWe),b.td=function(t){xtn(this.a,h(t,8))},D(mo,"JsonImporter/lambda$40$Type",909),_(874,1,{},VWe),D(mo,"JsonImporter/lambda$5$Type",874),_(878,1,{},zWe),D(mo,"JsonImporter/lambda$6$Type",878),_(876,1,{},UWe),D(mo,"JsonImporter/lambda$7$Type",876),_(877,1,{},HWe),D(mo,"JsonImporter/lambda$8$Type",877),_(880,1,{},qWe),D(mo,"JsonImporter/lambda$9$Type",880),_(954,1,ln,WWe),b.td=function(t){N3(this.a,new Gv(Fn(t)))},D(mo,"JsonMetaDataConverter/lambda$0$Type",954),_(955,1,ln,GWe),b.td=function(t){RQt(this.a,h(t,237))},D(mo,"JsonMetaDataConverter/lambda$1$Type",955),_(956,1,ln,XWe),b.td=function(t){RJt(this.a,h(t,149))},D(mo,"JsonMetaDataConverter/lambda$2$Type",956),_(957,1,ln,KWe),b.td=function(t){$Qt(this.a,h(t,175))},D(mo,"JsonMetaDataConverter/lambda$3$Type",957),_(237,22,{3:1,36:1,22:1,237:1},I3);var Dz,Nz,loe,jz,Rz,$z,foe,doe,Lz=Gn(oO,"GraphFeature",237,Zn,arn,uYt),aEt;_(13,1,{36:1,146:1},Xr,Vi,$t,$o),b.wd=function(t){return QWt(this,h(t,146))},b.Fb=function(t){return xnt(this,t)},b.rg=function(){return ft(this)},b.og=function(){return this.b},b.Hb=function(){return lp(this.b)},b.Ib=function(){return this.b},D(oO,"Property",13),_(797,1,zr,Gde),b.ue=function(t,s){return nsn(this,h(t,94),h(s,94))},b.Fb=function(t){return this===t},b.ve=function(){return new Lr(this)},D(oO,"PropertyHolderComparator",797);var Z8e=ii(Mo,"EList");_(66,51,{19:1,28:1,51:1,15:1,14:1,66:1,57:1}),b.Tc=function(t,s){E8(this,t,s)},b.Dc=function(t){return _n(this,t)},b.Uc=function(t,s){return qbe(this,t,s)},b.Ec=function(t){return di(this,t)},b.Uh=function(){return new P3(this)},b.Vh=function(){return new nA(this)},b.Wh=function(t){return qA(this,t)},b.Xh=function(){return!0},b.Yh=function(t,s){},b.Zh=function(){},b.$h=function(t,s){MY(this,t,s)},b._h=function(t,s,a){},b.ai=function(t,s){},b.bi=function(t,s,a){},b.Fb=function(t){return S1t(this,t)},b.Hb=function(){return Ube(this)},b.ci=function(){return!1},b.Ic=function(){return new bn(this)},b.Wc=function(){return new A3(this)},b.Xc=function(t){var s;if(s=this.gc(),t<0||t>s)throw ee(new zv(t,s));return new LK(this,t)},b.ei=function(t,s){this.di(t,this.Vc(s))},b.Kc=function(t){return E$(this,t)},b.gi=function(t,s){return s},b.Zc=function(t,s){return p2(this,t,s)},b.Ib=function(){return $me(this)},b.ii=function(){return!0},b.ji=function(t,s){return W5(this,s)},D(Mo,"AbstractEList",66),_(60,66,oh,FN,fm,Lbe),b.Qh=function(t,s){return EZ(this,t,s)},b.Rh=function(t){return _lt(this,t)},b.Sh=function(t,s){cP(this,t,s)},b.Th=function(t){OA(this,t)},b.ki=function(t){return tbe(this,t)},b.$b=function(){f8(this)},b.Fc=function(t){return o6(this,t)},b.Xb=function(t){return le(this,t)},b.li=function(t){var s,a,l;++this.j,a=this.g==null?0:this.g.length,t>a&&(l=this.g,s=a+(a/2|0)+4,s=0?(this.Yc(s),!0):!1},b.hi=function(t,s){return this.Pi(t,this.ji(t,s))},b.gc=function(){return this.Qi()},b.Nc=function(){return this.Ri()},b.Oc=function(t){return this.Si(t)},b.Ib=function(){return this.Ti()},D(Mo,"DelegatingEList",1964),_(1965,1964,lvt),b.Qh=function(t,s){return Ewe(this,t,s)},b.Rh=function(t){return this.Qh(this.Qi(),t)},b.Sh=function(t,s){cht(this,t,s)},b.Th=function(t){Zdt(this,t)},b.Xh=function(){return!this.Yi()},b.$b=function(){X8(this)},b.Ui=function(t,s,a,l,f){return new mnt(this,t,s,a,l,f)},b.Vi=function(t){Ar(this.vi(),t)},b.Wi=function(){return null},b.Xi=function(){return-1},b.vi=function(){return null},b.Yi=function(){return!1},b.Zi=function(t,s){return s},b.$i=function(t,s){return s},b._i=function(){return!1},b.aj=function(){return!this.Mi()},b.di=function(t,s){var a,l;return this._i()?(l=this.aj(),a=Jve(this,t,s),this.Vi(this.Ui(7,Ue(s),a,t,l)),a):Jve(this,t,s)},b.Yc=function(t){var s,a,l,f;return this._i()?(a=null,l=this.aj(),s=this.Ui(4,f=bR(this,t),null,t,l),this.Yi()&&!!f?(a=this.$i(f,a),a?(a.zi(s),a.Ai()):this.Vi(s)):a?(a.zi(s),a.Ai()):this.Vi(s),f):(f=bR(this,t),this.Yi()&&!!f&&(a=this.$i(f,null),a&&a.Ai()),f)},b.hi=function(t,s){return dpt(this,t,s)},D(v4,"DelegatingNotifyingListImpl",1965),_(142,1,yO),b.zi=function(t){return zve(this,t)},b.Ai=function(){FY(this)},b.si=function(){return this.d},b.Wi=function(){return null},b.bj=function(){return null},b.ti=function(t){return-1},b.ui=function(){return Jht(this)},b.vi=function(){return null},b.wi=function(){return iwe(this)},b.xi=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},b.cj=function(){return!1},b.yi=function(t){var s,a,l,f,v,w,S,C,A,M,R;switch(this.d){case 1:case 2:switch(f=t.si(),f){case 1:case 2:if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null))return this.g=t.ui(),t.si()==1&&(this.d=1),!0}case 4:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null))return A=Bwe(this),C=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,w=t.xi(),this.d=6,R=new fm(2),C<=w?(_n(R,this.n),_n(R,t.wi()),this.g=re(ne(Pn,1),rr,24,15,[this.o=C,w+1])):(_n(R,t.wi()),_n(R,this.n),this.g=re(ne(Pn,1),rr,24,15,[this.o=w,C])),this.n=R,A||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.vi())&&this.ti(null)==t.ti(null)){for(A=Bwe(this),w=t.xi(),M=h(this.g,47),l=ge(Pn,rr,24,M.length+1,15,1),s=0;s>>0,s.toString(16))),l.a+=" (eventType: ",this.d){case 1:{l.a+="SET";break}case 2:{l.a+="UNSET";break}case 3:{l.a+="ADD";break}case 5:{l.a+="ADD_MANY";break}case 4:{l.a+="REMOVE";break}case 6:{l.a+="REMOVE_MANY";break}case 7:{l.a+="MOVE";break}case 8:{l.a+="REMOVING_ADAPTER";break}case 9:{l.a+="RESOLVE";break}default:{cX(l,this.d);break}}if(F1t(this)&&(l.a+=", touch: true"),l.a+=", position: ",cX(l,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),l.a+=", notifier: ",DC(l,this.vi()),l.a+=", feature: ",DC(l,this.Wi()),l.a+=", oldValue: ",DC(l,iwe(this)),l.a+=", newValue: ",this.d==6&&ue(this.g,47)){for(a=h(this.g,47),l.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new bA(this),this.a=this.j),e5(this.b,t)):o6(this,t)},b.ii=function(){return!0},b.a=0,D(Mo,"AbstractEList/1",959),_(295,73,QJ,zv),D(Mo,"AbstractEList/BasicIndexOutOfBoundsException",295),_(39,1,bo,bn),b.Nb=function(t){yo(this,t)},b.hj=function(){if(this.i.j!=this.f)throw ee(new ol)},b.ij=function(){return yn(this)},b.Ob=function(){return this.e!=this.i.gc()},b.Pb=function(){return this.ij()},b.Qb=function(){N8(this)},b.e=0,b.f=0,b.g=-1,D(Mo,"AbstractEList/EIterator",39),_(276,39,jh,A3,LK),b.Qb=function(){N8(this)},b.Rb=function(t){yut(this,t)},b.jj=function(){var t;try{return t=this.d.Xb(--this.e),this.hj(),this.g=this.e,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new ca)):ee(s)}},b.kj=function(t){klt(this,t)},b.Sb=function(){return this.e!=0},b.Tb=function(){return this.e},b.Ub=function(){return this.jj()},b.Vb=function(){return this.e-1},b.Wb=function(t){this.kj(t)},D(Mo,"AbstractEList/EListIterator",276),_(341,39,bo,P3),b.ij=function(){return HQ(this)},b.Qb=function(){throw ee(new Rn)},D(Mo,"AbstractEList/NonResolvingEIterator",341),_(384,276,jh,nA,Bpe),b.Rb=function(t){throw ee(new Rn)},b.ij=function(){var t;try{return t=this.c.fi(this.e),this.hj(),this.g=this.e++,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new ca)):ee(s)}},b.jj=function(){var t;try{return t=this.c.fi(--this.e),this.hj(),this.g=this.e,t}catch(s){throw s=ni(s),ue(s,73)?(this.hj(),ee(new ca)):ee(s)}},b.Qb=function(){throw ee(new Rn)},b.Wb=function(t){throw ee(new Rn)},D(Mo,"AbstractEList/NonResolvingEListIterator",384),_(1955,66,fvt),b.Qh=function(t,s){var a,l,f,v,w,S,C,A,M,R,V;if(f=s.gc(),f!=0){for(A=h(zt(this.a,4),124),M=A==null?0:A.length,V=M+f,l=vQ(this,V),R=M-t,R>0&&Sa(A,t,l,t+f,R),C=s.Ic(),w=0;wa)throw ee(new zv(t,a));return new _tt(this,t)},b.$b=function(){var t,s;++this.j,t=h(zt(this.a,4),124),s=t==null?0:t.length,t6(this,null),MY(this,s,t)},b.Fc=function(t){var s,a,l,f,v;if(s=h(zt(this.a,4),124),s!=null){if(t!=null){for(l=s,f=0,v=l.length;f=a)throw ee(new zv(t,a));return s[t]},b.Vc=function(t){var s,a,l;if(s=h(zt(this.a,4),124),s!=null){if(t!=null){for(a=0,l=s.length;aa)throw ee(new zv(t,a));return new Ott(this,t)},b.di=function(t,s){var a,l,f;if(a=Lut(this),f=a==null?0:a.length,t>=f)throw ee(new ds(Rte+t+Qg+f));if(s>=f)throw ee(new ds($te+s+Qg+f));return l=a[s],t!=s&&(t0&&Sa(t,0,s,0,a),s},b.Oc=function(t){var s,a,l;return s=h(zt(this.a,4),124),l=s==null?0:s.length,l>0&&(t.lengthl&&ui(t,l,null),t};var cEt;D(Mo,"ArrayDelegatingEList",1955),_(1026,39,bo,Fit),b.hj=function(){if(this.b.j!=this.f||Pe(h(zt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},b.Qb=function(){N8(this),this.a=h(zt(this.b.a,4),124)},D(Mo,"ArrayDelegatingEList/EIterator",1026),_(698,276,jh,ett,Ott),b.hj=function(){if(this.b.j!=this.f||Pe(h(zt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},b.kj=function(t){klt(this,t),this.a=h(zt(this.b.a,4),124)},b.Qb=function(){N8(this),this.a=h(zt(this.b.a,4),124)},D(Mo,"ArrayDelegatingEList/EListIterator",698),_(1027,341,bo,Bit),b.hj=function(){if(this.b.j!=this.f||Pe(h(zt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},D(Mo,"ArrayDelegatingEList/NonResolvingEIterator",1027),_(699,384,jh,ttt,_tt),b.hj=function(){if(this.b.j!=this.f||Pe(h(zt(this.b.a,4),124))!==Pe(this.a))throw ee(new ol)},D(Mo,"ArrayDelegatingEList/NonResolvingEListIterator",699),_(598,295,QJ,BX),D(Mo,"BasicEList/BasicIndexOutOfBoundsException",598),_(688,60,oh,k1e),b.Tc=function(t,s){throw ee(new Rn)},b.Dc=function(t){throw ee(new Rn)},b.Uc=function(t,s){throw ee(new Rn)},b.Ec=function(t){throw ee(new Rn)},b.$b=function(){throw ee(new Rn)},b.li=function(t){throw ee(new Rn)},b.Ic=function(){return this.Uh()},b.Wc=function(){return this.Vh()},b.Xc=function(t){return this.Wh(t)},b.di=function(t,s){throw ee(new Rn)},b.ei=function(t,s){throw ee(new Rn)},b.Yc=function(t){throw ee(new Rn)},b.Kc=function(t){throw ee(new Rn)},b.Zc=function(t,s){throw ee(new Rn)},D(Mo,"BasicEList/UnmodifiableEList",688),_(697,1,{3:1,19:1,15:1,14:1,57:1,580:1}),b.Tc=function(t,s){BWt(this,t,h(s,43))},b.Dc=function(t){return kGt(this,h(t,43))},b.Hc=function(t){So(this,t)},b.Xb=function(t){return h(le(this.c,t),133)},b.di=function(t,s){return h(this.c.di(t,s),43)},b.ei=function(t,s){VWt(this,t,h(s,43))},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return h(this.c.Yc(t),43)},b.Zc=function(t,s){return _Qt(this,t,h(s,43))},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b.Uc=function(t,s){return this.c.Uc(t,s)},b.Ec=function(t){return this.c.Ec(t)},b.$b=function(){this.c.$b()},b.Fc=function(t){return this.c.Fc(t)},b.Gc=function(t){return eP(this.c,t)},b.lj=function(){var t,s,a;if(this.d==null){for(this.d=ge(J8e,n4e,60,2*this.f+1,0,1),a=this.e,this.f=0,s=this.c.Ic();s.e!=s.i.gc();)t=h(s.ij(),133),TL(this,t);this.e=a}},b.Fb=function(t){return _Je(this,t)},b.Hb=function(){return Ube(this.c)},b.Vc=function(t){return this.c.Vc(t)},b.mj=function(){this.c=new YWe(this)},b.dc=function(){return this.f==0},b.Ic=function(){return this.c.Ic()},b.Wc=function(){return this.c.Wc()},b.Xc=function(t){return this.c.Xc(t)},b.nj=function(){return DA(this)},b.oj=function(t,s,a){return new zJe(t,s,a)},b.pj=function(){return new ABe},b.Kc=function(t){return Jst(this,t)},b.gc=function(){return this.f},b._c=function(t,s){return new Ph(this.c,t,s)},b.Nc=function(){return this.c.Nc()},b.Oc=function(t){return this.c.Oc(t)},b.Ib=function(){return $me(this.c)},b.e=0,b.f=0,D(Mo,"BasicEMap",697),_(1021,60,oh,YWe),b.Yh=function(t,s){yHt(this,h(s,133))},b._h=function(t,s,a){var l;++(l=this,h(s,133),l).a.e},b.ai=function(t,s){wHt(this,h(s,133))},b.bi=function(t,s,a){pGt(this,h(s,133),h(a,133))},b.$h=function(t,s){Wat(this.a)},D(Mo,"BasicEMap/1",1021),_(1022,60,oh,ABe),b.mi=function(t){return ge(u2n,dvt,602,t,0,1)},D(Mo,"BasicEMap/2",1022),_(1023,md,au,QWe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){return FQ(this.a,t)},b.Ic=function(){return this.a.f==0?(VC(),__.a):new $Xe(this.a)},b.Kc=function(t){var s;return s=this.a.f,mL(this.a,t),this.a.f!=s},b.gc=function(){return this.a.f},D(Mo,"BasicEMap/3",1023),_(mf,28,Cy,ZWe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){return E1t(this.a,t)},b.Ic=function(){return this.a.f==0?(VC(),__.a):new LXe(this.a)},b.gc=function(){return this.a.f},D(Mo,"BasicEMap/4",mf),_(1025,md,au,JWe),b.$b=function(){this.a.c.$b()},b.Fc=function(t){var s,a,l,f,v,w,S,C,A;if(this.a.f>0&&ue(t,43)&&(this.a.lj(),C=h(t,43),S=C.ad(),f=S==null?0:ri(S),v=kpe(this.a,f),s=this.a.d[v],s)){for(a=h(s.g,364),A=s.i,w=0;w"+this.c},b.a=0;var u2n=D(Mo,"BasicEMap/EntryImpl",602);_(531,1,{},LN),D(Mo,"BasicEMap/View",531);var __;_(751,1,{}),b.Fb=function(t){return Fye((Mt(),Wo),t)},b.Hb=function(){return rme((Mt(),Wo))},b.Ib=function(){return b0((Mt(),Wo))},D(Mo,"ECollections/BasicEmptyUnmodifiableEList",751),_(1283,1,jh,PBe),b.Nb=function(t){yo(this,t)},b.Rb=function(t){throw ee(new Rn)},b.Ob=function(){return!1},b.Sb=function(){return!1},b.Pb=function(){throw ee(new ca)},b.Tb=function(){return 0},b.Ub=function(){throw ee(new ca)},b.Vb=function(){return-1},b.Qb=function(){throw ee(new Rn)},b.Wb=function(t){throw ee(new Rn)},D(Mo,"ECollections/BasicEmptyUnmodifiableEList/1",1283),_(1281,751,{19:1,15:1,14:1,57:1},zGe),b.Tc=function(t,s){FXe()},b.Dc=function(t){return BXe()},b.Uc=function(t,s){return VXe()},b.Ec=function(t){return zXe()},b.$b=function(){UXe()},b.Fc=function(t){return!1},b.Gc=function(t){return!1},b.Hc=function(t){So(this,t)},b.Xb=function(t){return T1e((Mt(),t)),null},b.Vc=function(t){return-1},b.dc=function(){return!0},b.Ic=function(){return this.a},b.Wc=function(){return this.a},b.Xc=function(t){return this.a},b.di=function(t,s){return HXe()},b.ei=function(t,s){qXe()},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return WXe()},b.Kc=function(t){return GXe()},b.Zc=function(t,s){return XXe()},b.gc=function(){return 0},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b._c=function(t,s){return Mt(),new Ph(Wo,t,s)},b.Nc=function(){return T0e((Mt(),Wo))},b.Oc=function(t){return Mt(),wP(Wo,t)},D(Mo,"ECollections/EmptyUnmodifiableEList",1281),_(1282,751,{19:1,15:1,14:1,57:1,580:1},UGe),b.Tc=function(t,s){FXe()},b.Dc=function(t){return BXe()},b.Uc=function(t,s){return VXe()},b.Ec=function(t){return zXe()},b.$b=function(){UXe()},b.Fc=function(t){return!1},b.Gc=function(t){return!1},b.Hc=function(t){So(this,t)},b.Xb=function(t){return T1e((Mt(),t)),null},b.Vc=function(t){return-1},b.dc=function(){return!0},b.Ic=function(){return this.a},b.Wc=function(){return this.a},b.Xc=function(t){return this.a},b.di=function(t,s){return HXe()},b.ei=function(t,s){qXe()},b.Jc=function(){return new Rt(null,new Lt(this,16))},b.Yc=function(t){return WXe()},b.Kc=function(t){return GXe()},b.Zc=function(t,s){return XXe()},b.gc=function(){return 0},b.$c=function(t){o2(this,t)},b.Lc=function(){return new Lt(this,16)},b.Mc=function(){return new Rt(null,new Lt(this,16))},b._c=function(t,s){return Mt(),new Ph(Wo,t,s)},b.Nc=function(){return T0e((Mt(),Wo))},b.Oc=function(t){return Mt(),wP(Wo,t)},b.nj=function(){return Mt(),Mt(),ah},D(Mo,"ECollections/EmptyUnmodifiableEMap",1282);var tIe=ii(Mo,"Enumerator"),Fz;_(279,1,{279:1},XZ),b.Fb=function(t){var s;return this===t?!0:ue(t,279)?(s=h(t,279),this.f==s.f&&ZYt(this.i,s.i)&&CK(this.a,(this.f&256)!=0?(s.f&256)!=0?s.a:null:(s.f&256)!=0?null:s.a)&&CK(this.d,s.d)&&CK(this.g,s.g)&&CK(this.e,s.e)&&Lan(this,s)):!1},b.Hb=function(){return this.f},b.Ib=function(){return Z1t(this)},b.f=0;var uEt=0,lEt=0,fEt=0,dEt=0,nIe=0,rIe=0,iIe=0,oIe=0,sIe=0,hEt,E9=0,k9=0,pEt=0,gEt=0,Bz,aIe;D(Mo,"URI",279),_(1071,44,_2,HGe),b.xc=function(t,s){return h(ps(this,Fn(t),h(s,279)),279)},D(Mo,"URI/URICache",1071),_(489,60,oh,OBe,wR),b.ci=function(){return!0},D(Mo,"UniqueEList",489),_(572,59,S1,w$),D(Mo,"WrappedException",572);var or=ii(bl,gvt),tw=ii(bl,bvt),xc=ii(bl,mvt),nw=ii(bl,vvt),Kf=ii(bl,yvt),Kl=ii(bl,"EClass"),goe=ii(bl,"EDataType"),bEt;_(1156,44,_2,qGe),b.vc=function(t){return to(t)?Ta(this,t):Xs(ks(this.f,t))},D(bl,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1156);var Vz=ii(bl,"EEnum"),M1=ii(bl,wvt),rs=ii(bl,xvt),Yl=ii(bl,Svt),Ql,Qm=ii(bl,Evt),rw=ii(bl,kvt);_(1017,1,{},_Be),b.Ib=function(){return"NIL"},D(bl,"EStructuralFeature/Internal/DynamicValueHolder/1",1017);var mEt;_(1016,44,_2,WGe),b.vc=function(t){return to(t)?Ta(this,t):Xs(ks(this.f,t))},D(bl,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1016);var ic=ii(bl,Cvt),H4=ii(bl,"EValidator/PatternMatcher"),cIe,uIe,Bt,Tp,iw,z0,vEt,yEt,wEt,U0,Ap,H0,Zm,Pd,xEt,SEt,Zl,Pp,EEt,Op,ow,dx,zo,kEt,CEt,Jm,zz=ii(Jr,"FeatureMap/Entry");_(530,1,{71:1},Lj),b.Xj=function(){return this.a},b.bd=function(){return this.b},D(Vt,"BasicEObjectImpl/1",530),_(1015,1,Hte,tQe),b.Rj=function(t){return OY(this.a,this.b,t)},b.aj=function(){return Dnt(this.a,this.b)},b.Wb=function(t){fge(this.a,this.b,t)},b.Sj=function(){eZt(this.a,this.b)},D(Vt,"BasicEObjectImpl/4",1015),_(1956,1,{107:1}),b.Yj=function(t){this.e=t==0?IEt:ge(hn,rt,1,t,5,1)},b.xh=function(t){return this.e[t]},b.yh=function(t,s){this.e[t]=s},b.zh=function(t){this.e[t]=null},b.Zj=function(){return this.c},b.$j=function(){throw ee(new Rn)},b._j=function(){throw ee(new Rn)},b.ak=function(){return this.d},b.bk=function(){return this.e!=null},b.ck=function(t){this.c=t},b.dk=function(t){throw ee(new Rn)},b.ek=function(t){throw ee(new Rn)},b.fk=function(t){this.d=t};var IEt;D(Vt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1956),_(187,1956,{107:1},Of),b.$j=function(){return this.a},b._j=function(){return this.b},b.dk=function(t){this.a=t},b.ek=function(t){this.b=t},D(Vt,"BasicEObjectImpl/EPropertiesHolderImpl",187),_(498,96,Tmt,BN),b.Fg=function(){return this.f},b.Kg=function(){return this.k},b.Mg=function(t,s){this.g=t,this.i=s},b.Og=function(){return(this.j&2)==0?this.uh():this.kh().Zj()},b.Qg=function(){return this.i},b.Hg=function(){return(this.j&1)!=0},b.$g=function(){return this.g},b.fh=function(){return(this.j&4)!=0},b.kh=function(){return!this.k&&(this.k=new Of),this.k},b.oh=function(t){this.kh().ck(t),t?this.j|=2:this.j&=-3},b.qh=function(t){this.kh().ek(t),t?this.j|=4:this.j&=-5},b.uh=function(){return(n0(),Bt).S},b.i=0,b.j=1,D(Vt,"EObjectImpl",498),_(763,498,{104:1,91:1,89:1,55:1,107:1,48:1,96:1},c0e),b.xh=function(t){return this.e[t]},b.yh=function(t,s){this.e[t]=s},b.zh=function(t){this.e[t]=null},b.Og=function(){return this.d},b.Tg=function(t){return ti(this.d,t)},b.Vg=function(){return this.d},b.Zg=function(){return this.e!=null},b.kh=function(){return!this.k&&(this.k=new DBe),this.k},b.oh=function(t){this.d=t},b.th=function(){var t;return this.e==null&&(t=dn(this.d),this.e=t==0?TEt:ge(hn,rt,1,t,5,1)),this},b.vh=function(){return 0};var TEt;D(Vt,"DynamicEObjectImpl",763),_(1347,763,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1},bet),b.Fb=function(t){return this===t},b.Hb=function(){return Kb(this)},b.oh=function(t){this.d=t,this.b=$P(t,"key"),this.c=$P(t,mI)},b.Nh=function(){var t;return this.a==-1&&(t=zY(this,this.b),this.a=t==null?0:ri(t)),this.a},b.ad=function(){return zY(this,this.b)},b.bd=function(){return zY(this,this.c)},b.Oh=function(t){this.a=t},b.Ph=function(t){fge(this,this.b,t)},b.cd=function(t){var s;return s=zY(this,this.c),fge(this,this.c,t),s},b.a=0,D(Vt,"DynamicEObjectImpl/BasicEMapEntry",1347),_(1348,1,{107:1},DBe),b.Yj=function(t){throw ee(new Rn)},b.xh=function(t){throw ee(new Rn)},b.yh=function(t,s){throw ee(new Rn)},b.zh=function(t){throw ee(new Rn)},b.Zj=function(){throw ee(new Rn)},b.$j=function(){return this.a},b._j=function(){return this.b},b.ak=function(){return this.c},b.bk=function(){throw ee(new Rn)},b.ck=function(t){throw ee(new Rn)},b.dk=function(t){this.a=t},b.ek=function(t){this.b=t},b.fk=function(t){this.c=t},D(Vt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1348),_(502,150,{104:1,91:1,89:1,581:1,147:1,55:1,107:1,48:1,96:1,502:1,150:1,113:1,116:1},fde),b.Lg=function(t){return kve(this,t)},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.d;case 2:return a?(!this.b&&(this.b=new mu((At(),zo),na,this)),this.b):(!this.b&&(this.b=new mu((At(),zo),na,this)),DA(this.b));case 3:return Rnt(this);case 4:return!this.a&&(this.a=new _i(B0,this,4)),this.a;case 5:return!this.c&&(this.c=new Yw(B0,this,5)),this.c}return ll(this,t-dn((At(),Tp)),Dt((l=h(zt(this,16),26),l||Tp),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 3:return this.Cb&&(a=(f=this.Db>>16,f>=0?kve(this,a):this.Cb.dh(this,-1-f,null,a))),E0e(this,h(t,147),a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),Tp)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),Tp)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 2:return!this.b&&(this.b=new mu((At(),zo),na,this)),sR(this.b,t,a);case 3:return E0e(this,null,a);case 4:return!this.a&&(this.a=new _i(B0,this,4)),_o(this.a,t,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Tp)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Tp)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!Rnt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return ul(this,t-dn((At(),Tp)),Dt((s=h(zt(this,16),26),s||Tp),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:$Yt(this,Fn(s));return;case 2:!this.b&&(this.b=new mu((At(),zo),na,this)),q$(this.b,s);return;case 3:Vht(this,h(s,147));return;case 4:!this.a&&(this.a=new _i(B0,this,4)),Cn(this.a),!this.a&&(this.a=new _i(B0,this,4)),di(this.a,h(s,15));return;case 5:!this.c&&(this.c=new Yw(B0,this,5)),Cn(this.c),!this.c&&(this.c=new Yw(B0,this,5)),di(this.c,h(s,15));return}pl(this,t-dn((At(),Tp)),Dt((a=h(zt(this,16),26),a||Tp),t),s)},b.uh=function(){return At(),Tp},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:Ibe(this,null);return;case 2:!this.b&&(this.b=new mu((At(),zo),na,this)),this.b.c.$b();return;case 3:Vht(this,null);return;case 4:!this.a&&(this.a=new _i(B0,this,4)),Cn(this.a);return;case 5:!this.c&&(this.c=new Yw(B0,this,5)),Cn(this.c);return}hl(this,t-dn((At(),Tp)),Dt((s=h(zt(this,16),26),s||Tp),t))},b.Ib=function(){return out(this)},b.d=null,D(Vt,"EAnnotationImpl",502),_(143,697,r4e,tu),b.Sh=function(t,s){_Wt(this,t,h(s,43))},b.gk=function(t,s){return gXt(this,h(t,43),s)},b.ki=function(t){return h(h(this.c,67).ki(t),133)},b.Uh=function(){return h(this.c,67).Uh()},b.Vh=function(){return h(this.c,67).Vh()},b.Wh=function(t){return h(this.c,67).Wh(t)},b.hk=function(t,s){return sR(this,t,s)},b.Rj=function(t){return h(this.c,76).Rj(t)},b.mj=function(){},b.aj=function(){return h(this.c,76).aj()},b.oj=function(t,s,a){var l;return l=h(Bu(this.b).Ih().Eh(this.b),133),l.Oh(t),l.Ph(s),l.cd(a),l},b.pj=function(){return new Kde(this)},b.Wb=function(t){q$(this,t)},b.Sj=function(){h(this.c,76).Sj()},D(Jr,"EcoreEMap",143),_(158,143,r4e,mu),b.lj=function(){var t,s,a,l,f,v;if(this.d==null){for(v=ge(J8e,n4e,60,2*this.f+1,0,1),a=this.c.Ic();a.e!=a.i.gc();)s=h(a.ij(),133),l=s.Nh(),f=(l&Ir)%v.length,t=v[f],!t&&(t=v[f]=new Kde(this)),t.Dc(s);this.d=v}},D(Vt,"EAnnotationImpl/1",158),_(283,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,466:1,48:1,96:1,150:1,283:1,113:1,116:1}),b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!this.Vj();case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q}return ll(this,t-dn(this.uh()),Dt((l=h(zt(this,16),26),l||this.uh()),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 9:return VK(this,a)}return f=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Ja(this),s-dn(this.uh()),t,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Vj();case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0)}return ul(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:this.Gh(Fn(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:this.jk(h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return}pl(this,t-dn(this.uh()),Dt((a=h(zt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),CEt},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:this.Gh(null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.jk(1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return}hl(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.Bh=function(){$l(this),this.Bb|=1},b.Tj=function(){return $l(this)},b.Uj=function(){return this.t},b.Vj=function(){var t;return t=this.t,t>1||t==-1},b.ci=function(){return(this.Bb&512)!=0},b.ik=function(t,s){return Sme(this,t,s)},b.jk=function(t){iy(this,t)},b.Ib=function(){return Pye(this)},b.s=0,b.t=1,D(Vt,"ETypedElementImpl",283),_(443,283,{104:1,91:1,89:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,443:1,283:1,113:1,116:1,665:1}),b.Lg=function(t){return Ult(this,t)},b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!this.Vj();case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&jc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this)}return ll(this,t-dn(this.uh()),Dt((l=h(zt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 17:return this.Cb&&(a=(f=this.Db>>16,f>=0?Ult(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,17,a)}return v=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),v.Ij().Lj(this,Ja(this),s-dn(this.uh()),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 9:return VK(this,a);case 17:return Hu(this,null,17,a)}return f=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Ja(this),s-dn(this.uh()),t,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Vj();case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&jc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this)}return ul(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:gY(this,Fn(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:this.jk(h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Fn(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return}pl(this,t-dn(this.uh()),Dt((a=h(zt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),kEt},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.jk(1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return}hl(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.Bh=function(){m5(bs((Nc(),vo),this)),$l(this),this.Bb|=1},b.Bj=function(){return this.f},b.uj=function(){return d6(this)},b.Cj=function(){return Qv(this)},b.Gj=function(){return null},b.kk=function(){return this.k},b.Xi=function(){return this.n},b.Hj=function(){return jL(this)},b.Ij=function(){var t,s,a,l,f,v,w,S,C;return this.p||(a=Qv(this),(a.i==null&&Kd(a),a.i).length,l=this.Gj(),l&&dn(Qv(l)),f=$l(this),w=f.wj(),t=w?(w.i&1)!=0?w==du?io:w==Pn?Do:w==aw?L6:w==oo?Io:w==W0?$m:w==bx?Lm:w==Fc?y4:AI:w:null,s=d6(this),S=f.uj(),usn(this),(this.Bb&Yd)!=0&&(!!(v=Mve((Nc(),vo),a))&&v!=this||!!(v=L3(bs(vo,this))))?this.p=new rQe(this,v):this.Vj()?this.mk()?l?(this.Bb&jc)!=0?t?this.nk()?this.p=new wg(47,t,this,l):this.p=new wg(5,t,this,l):this.nk()?this.p=new kg(46,this,l):this.p=new kg(4,this,l):t?this.nk()?this.p=new wg(49,t,this,l):this.p=new wg(7,t,this,l):this.nk()?this.p=new kg(48,this,l):this.p=new kg(6,this,l):(this.Bb&jc)!=0?t?t==eb?this.p=new Z1(50,sEt,this):this.nk()?this.p=new Z1(43,t,this):this.p=new Z1(1,t,this):this.nk()?this.p=new ep(42,this):this.p=new ep(0,this):t?t==eb?this.p=new Z1(41,sEt,this):this.nk()?this.p=new Z1(45,t,this):this.p=new Z1(3,t,this):this.nk()?this.p=new ep(44,this):this.p=new ep(2,this):ue(f,148)?t==zz?this.p=new ep(40,this):(this.Bb&512)!=0?(this.Bb&jc)!=0?t?this.p=new Z1(9,t,this):this.p=new ep(8,this):t?this.p=new Z1(11,t,this):this.p=new ep(10,this):(this.Bb&jc)!=0?t?this.p=new Z1(13,t,this):this.p=new ep(12,this):t?this.p=new Z1(15,t,this):this.p=new ep(14,this):l?(C=l.t,C>1||C==-1?this.nk()?(this.Bb&jc)!=0?t?this.p=new wg(25,t,this,l):this.p=new kg(24,this,l):t?this.p=new wg(27,t,this,l):this.p=new kg(26,this,l):(this.Bb&jc)!=0?t?this.p=new wg(29,t,this,l):this.p=new kg(28,this,l):t?this.p=new wg(31,t,this,l):this.p=new kg(30,this,l):this.nk()?(this.Bb&jc)!=0?t?this.p=new wg(33,t,this,l):this.p=new kg(32,this,l):t?this.p=new wg(35,t,this,l):this.p=new kg(34,this,l):(this.Bb&jc)!=0?t?this.p=new wg(37,t,this,l):this.p=new kg(36,this,l):t?this.p=new wg(39,t,this,l):this.p=new kg(38,this,l)):this.nk()?(this.Bb&jc)!=0?t?this.p=new Z1(17,t,this):this.p=new ep(16,this):t?this.p=new Z1(19,t,this):this.p=new ep(18,this):(this.Bb&jc)!=0?t?this.p=new Z1(21,t,this):this.p=new ep(20,this):t?this.p=new Z1(23,t,this):this.p=new ep(22,this):this.lk()?this.nk()?this.p=new UJe(h(f,26),this,l):this.p=new lge(h(f,26),this,l):ue(f,148)?t==zz?this.p=new ep(40,this):(this.Bb&jc)!=0?t?this.p=new Het(s,S,this,(BQ(),w==Pn?bIe:w==du?fIe:w==W0?mIe:w==aw?gIe:w==oo?pIe:w==bx?vIe:w==Fc?dIe:w==wl?hIe:voe)):this.p=new tnt(h(f,148),s,S,this):t?this.p=new Uet(s,S,this,(BQ(),w==Pn?bIe:w==du?fIe:w==W0?mIe:w==aw?gIe:w==oo?pIe:w==bx?vIe:w==Fc?dIe:w==wl?hIe:voe)):this.p=new ent(h(f,148),s,S,this):this.mk()?l?(this.Bb&jc)!=0?this.nk()?this.p=new qJe(h(f,26),this,l):this.p=new Zpe(h(f,26),this,l):this.nk()?this.p=new HJe(h(f,26),this,l):this.p=new mK(h(f,26),this,l):(this.Bb&jc)!=0?this.nk()?this.p=new BZe(h(f,26),this):this.p=new ppe(h(f,26),this):this.nk()?this.p=new FZe(h(f,26),this):this.p=new rK(h(f,26),this):this.nk()?l?(this.Bb&jc)!=0?this.p=new WJe(h(f,26),this,l):this.p=new Jpe(h(f,26),this,l):(this.Bb&jc)!=0?this.p=new zZe(h(f,26),this):this.p=new gpe(h(f,26),this):l?(this.Bb&jc)!=0?this.p=new GJe(h(f,26),this,l):this.p=new e0e(h(f,26),this,l):(this.Bb&jc)!=0?this.p=new VZe(h(f,26),this):this.p=new vR(h(f,26),this)),this.p},b.Dj=function(){return(this.Bb&mf)!=0},b.lk=function(){return!1},b.mk=function(){return!1},b.Ej=function(){return(this.Bb&Yd)!=0},b.Jj=function(){return HY(this)},b.nk=function(){return!1},b.Fj=function(){return(this.Bb&jc)!=0},b.ok=function(t){this.k=t},b.Gh=function(t){gY(this,t)},b.Ib=function(){return eF(this)},b.e=!1,b.n=0,D(Vt,"EStructuralFeatureImpl",443),_(321,443,{104:1,91:1,89:1,32:1,147:1,191:1,55:1,170:1,65:1,107:1,466:1,48:1,96:1,321:1,150:1,443:1,283:1,113:1,116:1,665:1},qG),b.Wg=function(t,s,a){var l,f;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),!!Iye(this);case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&jc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this);case 18:return Zt(),(this.Bb&fa)!=0;case 19:return s?cQ(this):Jit(this)}return ll(this,t-dn((At(),iw)),Dt((l=h(zt(this,16),26),l||iw),t),s,a)},b.gh=function(t){var s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Iye(this);case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&jc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this);case 18:return(this.Bb&fa)!=0;case 19:return!!Jit(this)}return ul(this,t-dn((At(),iw)),Dt((s=h(zt(this,16),26),s||iw),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:gY(this,Fn(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:QXe(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Fn(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return;case 18:_Q(this,_t(It(s)));return}pl(this,t-dn((At(),iw)),Dt((a=h(zt(this,16),26),a||iw),t),s)},b.uh=function(){return At(),iw},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:this.b=0,iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return;case 18:_Q(this,!1);return}hl(this,t-dn((At(),iw)),Dt((s=h(zt(this,16),26),s||iw),t))},b.Bh=function(){cQ(this),m5(bs((Nc(),vo),this)),$l(this),this.Bb|=1},b.Vj=function(){return Iye(this)},b.ik=function(t,s){return this.b=0,this.a=null,Sme(this,t,s)},b.jk=function(t){QXe(this,t)},b.Ib=function(){var t;return(this.Db&64)!=0?eF(this):(t=new _l(eF(this)),t.a+=" (iD: ",K1(t,(this.Bb&fa)!=0),t.a+=")",t.a)},b.b=0,D(Vt,"EAttributeImpl",321),_(348,431,{104:1,91:1,89:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,348:1,150:1,113:1,116:1,664:1}),b.pk=function(t){return t.Og()==this},b.Lg=function(t){return dZ(this,t)},b.Mg=function(t,s){this.w=null,this.Db=s<<16|this.Db&255,this.Cb=t},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return xm(this);case 4:return this.uj();case 5:return this.F;case 6:return s?Bu(this):w5(this);case 7:return!this.A&&(this.A=new Ac(ic,this,7)),this.A}return ll(this,t-dn(this.uh()),Dt((l=h(zt(this,16),26),l||this.uh()),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?dZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a)}return v=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),v.Ij().Lj(this,Ja(this),s-dn(this.uh()),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Ac(ic,this,7)),_o(this.A,t,a)}return f=h(Dt((l=h(zt(this,16),26),l||this.uh()),s),65),f.Ij().Mj(this,Ja(this),s-dn(this.uh()),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return this.uj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0}return ul(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Fn(s));return;case 2:HX(this,Fn(s));return;case 5:m6(this,Fn(s));return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A),!this.A&&(this.A=new Ac(ic,this,7)),di(this.A,h(s,15));return}pl(this,t-dn(this.uh()),Dt((a=h(zt(this,16),26),a||this.uh()),t),s)},b.uh=function(){return At(),vEt},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A);return}hl(this,t-dn(this.uh()),Dt((s=h(zt(this,16),26),s||this.uh()),t))},b.tj=function(){var t;return this.G==-1&&(this.G=(t=Bu(this),t?up(t.Hh(),this):-1)),this.G},b.uj=function(){return null},b.vj=function(){return Bu(this)},b.qk=function(){return this.v},b.wj=function(){return xm(this)},b.xj=function(){return this.D!=null?this.D:this.B},b.yj=function(){return this.F},b.rj=function(t){return rJ(this,t)},b.rk=function(t){this.v=t},b.sk=function(t){Aat(this,t)},b.tk=function(t){this.C=t},b.Gh=function(t){ZR(this,t)},b.Ib=function(){return hL(this)},b.C=null,b.D=null,b.G=-1,D(Vt,"EClassifierImpl",348),_(87,348,{104:1,91:1,89:1,26:1,138:1,147:1,191:1,55:1,107:1,48:1,96:1,87:1,348:1,150:1,467:1,113:1,116:1,664:1},gde),b.pk=function(t){return nXt(this,t.Og())},b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return xm(this);case 4:return null;case 5:return this.F;case 6:return s?Bu(this):w5(this);case 7:return!this.A&&(this.A=new Ac(ic,this,7)),this.A;case 8:return Zt(),(this.Bb&256)!=0;case 9:return Zt(),(this.Bb&512)!=0;case 10:return Es(this);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),this.q;case 12:return T2(this);case 13:return W8(this);case 14:return W8(this),this.r;case 15:return T2(this),this.k;case 16:return gye(this);case 17:return cJ(this);case 18:return Kd(this);case 19:return WL(this);case 20:return T2(this),this.o;case 21:return!this.s&&(this.s=new $e(xc,this,21,17)),this.s;case 22:return wa(this);case 23:return GZ(this)}return ll(this,t-dn((At(),z0)),Dt((l=h(zt(this,16),26),l||z0),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 6:return this.Cb&&(a=(f=this.Db>>16,f>=0?dZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),Ua(this.q,t,a);case 21:return!this.s&&(this.s=new $e(xc,this,21,17)),Ua(this.s,t,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),z0)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),z0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Ac(ic,this,7)),_o(this.A,t,a);case 11:return!this.q&&(this.q=new $e(Yl,this,11,10)),_o(this.q,t,a);case 21:return!this.s&&(this.s=new $e(xc,this,21,17)),_o(this.s,t,a);case 22:return _o(wa(this),t,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),z0)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),z0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&wa(this.u.a).i!=0&&!(!!this.n&&nZ(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return T2(this).i!=0;case 13:return W8(this).i!=0;case 14:return W8(this),this.r.i!=0;case 15:return T2(this),this.k.i!=0;case 16:return gye(this).i!=0;case 17:return cJ(this).i!=0;case 18:return Kd(this).i!=0;case 19:return WL(this).i!=0;case 20:return T2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&nZ(this.n);case 23:return GZ(this).i!=0}return ul(this,t-dn((At(),z0)),Dt((s=h(zt(this,16),26),s||z0),t))},b.jh=function(t){var s;return s=this.i==null||!!this.q&&this.q.i!=0?null:$P(this,t),s||Gwe(this,t)},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Fn(s));return;case 2:HX(this,Fn(s));return;case 5:m6(this,Fn(s));return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A),!this.A&&(this.A=new Ac(ic,this,7)),di(this.A,h(s,15));return;case 8:Cme(this,_t(It(s)));return;case 9:kme(this,_t(It(s)));return;case 10:X8(Es(this)),di(Es(this),h(s,15));return;case 11:!this.q&&(this.q=new $e(Yl,this,11,10)),Cn(this.q),!this.q&&(this.q=new $e(Yl,this,11,10)),di(this.q,h(s,15));return;case 21:!this.s&&(this.s=new $e(xc,this,21,17)),Cn(this.s),!this.s&&(this.s=new $e(xc,this,21,17)),di(this.s,h(s,15));return;case 22:Cn(wa(this)),di(wa(this),h(s,15));return}pl(this,t-dn((At(),z0)),Dt((a=h(zt(this,16),26),a||z0),t),s)},b.uh=function(){return At(),z0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A);return;case 8:Cme(this,!1);return;case 9:kme(this,!1);return;case 10:this.u&&X8(this.u);return;case 11:!this.q&&(this.q=new $e(Yl,this,11,10)),Cn(this.q);return;case 21:!this.s&&(this.s=new $e(xc,this,21,17)),Cn(this.s);return;case 22:this.n&&Cn(this.n);return}hl(this,t-dn((At(),z0)),Dt((s=h(zt(this,16),26),s||z0),t))},b.Bh=function(){var t,s;if(T2(this),W8(this),gye(this),cJ(this),Kd(this),WL(this),GZ(this),f8(fYt(eu(this))),this.s)for(t=0,s=this.s.i;t=0;--t)le(this,t);return Ige(this)},b.Oc=function(t){var s;if(this.zk())for(s=this.i-1;s>=0;--s)le(this,s);return qme(this,t)},b.Sj=function(){Cn(this)},b.ji=function(t,s){return Nst(this,t,s)},D(Jr,"EcoreEList",612),_(488,612,Ms,pA),b.Xh=function(){return!1},b.Xi=function(){return this.c},b.Yi=function(){return!1},b.Ak=function(){return!0},b.ci=function(){return!0},b.gi=function(t,s){return s},b.ii=function(){return!1},b.c=0,D(Jr,"EObjectEList",488),_(82,488,Ms,_i),b.Yi=function(){return!0},b.yk=function(){return!1},b.mk=function(){return!0},D(Jr,"EObjectContainmentEList",82),_(538,82,Ms,Kj),b.Zh=function(){this.b=!0},b.aj=function(){return this.b},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.b,this.b=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.b=!1},b.b=!1,D(Jr,"EObjectContainmentEList/Unsettable",538),_(1113,538,Ms,Vet),b.di=function(t,s){var a,l;return a=h(dP(this,t,s),86),bu(this.e)&&WS(this,new NA(this.a,7,(At(),yEt),Ue(s),(l=a.c,ue(l,87)?h(l,26):Zl),t)),a},b.ej=function(t,s){return Usn(this,h(t,86),s)},b.fj=function(t,s){return Hsn(this,h(t,86),s)},b.gj=function(t,s,a){return tln(this,h(t,86),h(s,86),a)},b.Ui=function(t,s,a,l,f){switch(t){case 3:return o8(this,t,s,a,l,this.i>1);case 5:return o8(this,t,s,a,l,this.i-h(a,14).gc()>0);default:return new p1(this.e,t,this.c,s,a,l,!0)}},b.dj=function(){return!0},b.aj=function(){return nZ(this)},b.Sj=function(){Cn(this)},D(Vt,"EClassImpl/1",1113),_(1127,1126,t4e),b.pi=function(t){var s,a,l,f,v,w,S;if(a=t.si(),a!=8){if(l=Oan(t),l==0)switch(a){case 1:case 9:{S=t.wi(),S!=null&&(s=eu(h(S,467)),!s.c&&(s.c=new BS),E$(s.c,t.vi())),w=t.ui(),w!=null&&(f=h(w,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),_n(s.c,h(t.vi(),26))));break}case 3:{w=t.ui(),w!=null&&(f=h(w,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),_n(s.c,h(t.vi(),26))));break}case 5:{if(w=t.ui(),w!=null)for(v=h(w,15).Ic();v.Ob();)f=h(v.Pb(),467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),_n(s.c,h(t.vi(),26)));break}case 4:{S=t.wi(),S!=null&&(f=h(S,467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),E$(s.c,t.vi())));break}case 6:{if(S=t.wi(),S!=null)for(v=h(S,15).Ic();v.Ob();)f=h(v.Pb(),467),(f.Bb&1)==0&&(s=eu(f),!s.c&&(s.c=new BS),E$(s.c,t.vi()));break}}this.Ck(l)}},b.Ck=function(t){A1t(this,t)},b.b=63,D(Vt,"ESuperAdapter",1127),_(1128,1127,t4e,tGe),b.Ck=function(t){my(this,t)},D(Vt,"EClassImpl/10",1128),_(1117,688,Ms),b.Qh=function(t,s){return EZ(this,t,s)},b.Rh=function(t){return _lt(this,t)},b.Sh=function(t,s){cP(this,t,s)},b.Th=function(t){OA(this,t)},b.ki=function(t){return tbe(this,t)},b.hi=function(t,s){return UY(this,t,s)},b.gk=function(t,s){throw ee(new Rn)},b.Uh=function(){return new P3(this)},b.Vh=function(){return new nA(this)},b.Wh=function(t){return qA(this,t)},b.hk=function(t,s){throw ee(new Rn)},b.Rj=function(t){return this},b.aj=function(){return this.i!=0},b.Wb=function(t){throw ee(new Rn)},b.Sj=function(){throw ee(new Rn)},D(Jr,"EcoreEList/UnmodifiableEList",1117),_(317,1117,Ms,Ww),b.ii=function(){return!1},D(Jr,"EcoreEList/UnmodifiableEList/FastCompare",317),_(1120,317,Ms,gct),b.Vc=function(t){var s,a,l;if(ue(t,170)&&(s=h(t,170),a=s.Xi(),a!=-1)){for(l=this.i;a4)if(this.rj(t)){if(this.mk()){if(l=h(t,48),a=l.Pg(),S=a==this.b&&(this.yk()?l.Jg(l.Qg(),h(Dt(dc(this.b),this.Xi()).Tj(),26).wj())==qo(h(Dt(dc(this.b),this.Xi()),17)).n:-1-l.Qg()==this.Xi()),this.zk()&&!S&&!a&&!!l.Ug()){for(f=0;f1||l==-1)):!1},b.yk=function(){var t,s,a;return s=Dt(dc(this.b),this.Xi()),ue(s,97)?(t=h(s,17),a=qo(t),!!a):!1},b.zk=function(){var t,s;return s=Dt(dc(this.b),this.Xi()),ue(s,97)?(t=h(s,17),(t.Bb&Bo)!=0):!1},b.Vc=function(t){var s,a,l,f;if(l=this.Li(t),l>=0)return l;if(this.Ak()){for(a=0,f=this.Qi();a=0;--t)qP(this,t,this.Ji(t));return this.Ri()},b.Oc=function(t){var s;if(this.zk())for(s=this.Qi()-1;s>=0;--s)qP(this,s,this.Ji(s));return this.Si(t)},b.Sj=function(){X8(this)},b.ji=function(t,s){return Not(this,t,s)},D(Jr,"DelegatingEcoreEList",725),_(1123,725,o4e,ZZe),b.Ci=function(t,s){MGt(this,t,h(s,26))},b.Di=function(t){AWt(this,h(t,26))},b.Ji=function(t){var s,a;return s=h(le(wa(this.a),t),86),a=s.c,ue(a,87)?h(a,26):(At(),Zl)},b.Oi=function(t){var s,a;return s=h(yy(wa(this.a),t),86),a=s.c,ue(a,87)?h(a,26):(At(),Zl)},b.Pi=function(t,s){return ycn(this,t,h(s,26))},b.Xh=function(){return!1},b.Ui=function(t,s,a,l,f){return null},b.Ei=function(){return new rGe(this)},b.Fi=function(){Cn(wa(this.a))},b.Gi=function(t){return sut(this,t)},b.Hi=function(t){var s,a;for(a=t.Ic();a.Ob();)if(s=a.Pb(),!sut(this,s))return!1;return!0},b.Ii=function(t){var s,a,l;if(ue(t,14)&&(l=h(t,14),l.gc()==wa(this.a).i)){for(s=l.Ic(),a=new bn(this);s.Ob();)if(Pe(s.Pb())!==Pe(yn(a)))return!1;return!0}return!1},b.Ki=function(){var t,s,a,l,f;for(a=1,s=new bn(wa(this.a));s.e!=s.i.gc();)t=h(yn(s),86),l=(f=t.c,ue(f,87)?h(f,26):(At(),Zl)),a=31*a+(l?Kb(l):0);return a},b.Li=function(t){var s,a,l,f;for(l=0,a=new bn(wa(this.a));a.e!=a.i.gc();){if(s=h(yn(a),86),Pe(t)===Pe((f=s.c,ue(f,87)?h(f,26):(At(),Zl))))return l;++l}return-1},b.Mi=function(){return wa(this.a).i==0},b.Ni=function(){return null},b.Qi=function(){return wa(this.a).i},b.Ri=function(){var t,s,a,l,f,v;for(v=wa(this.a).i,f=ge(hn,rt,1,v,5,1),a=0,s=new bn(wa(this.a));s.e!=s.i.gc();)t=h(yn(s),86),f[a++]=(l=t.c,ue(l,87)?h(l,26):(At(),Zl));return f},b.Si=function(t){var s,a,l,f,v,w,S;for(S=wa(this.a).i,t.lengthS&&ui(t,S,null),l=0,a=new bn(wa(this.a));a.e!=a.i.gc();)s=h(yn(a),86),v=(w=s.c,ue(w,87)?h(w,26):(At(),Zl)),ui(t,l++,v);return t},b.Ti=function(){var t,s,a,l,f;for(f=new X1,f.a+="[",t=wa(this.a),s=0,l=wa(this.a).i;s>16,f>=0?dZ(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,6,a);case 9:return!this.a&&(this.a=new $e(M1,this,9,5)),Ua(this.a,t,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),U0)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),U0)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 6:return Hu(this,null,6,a);case 7:return!this.A&&(this.A=new Ac(ic,this,7)),_o(this.A,t,a);case 9:return!this.a&&(this.a=new $e(M1,this,9,5)),_o(this.a,t,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),U0)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),U0)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!xm(this);case 4:return!!ume(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!w5(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return ul(this,t-dn((At(),U0)),Dt((s=h(zt(this,16),26),s||U0),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:ZR(this,Fn(s));return;case 2:HX(this,Fn(s));return;case 5:m6(this,Fn(s));return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A),!this.A&&(this.A=new Ac(ic,this,7)),di(this.A,h(s,15));return;case 8:sL(this,_t(It(s)));return;case 9:!this.a&&(this.a=new $e(M1,this,9,5)),Cn(this.a),!this.a&&(this.a=new $e(M1,this,9,5)),di(this.a,h(s,15));return}pl(this,t-dn((At(),U0)),Dt((a=h(zt(this,16),26),a||U0),t),s)},b.uh=function(){return At(),U0},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,179)&&(h(this.Cb,179).tb=null),za(this,null);return;case 2:G5(this,null),N5(this,this.D);return;case 5:m6(this,null);return;case 7:!this.A&&(this.A=new Ac(ic,this,7)),Cn(this.A);return;case 8:sL(this,!0);return;case 9:!this.a&&(this.a=new $e(M1,this,9,5)),Cn(this.a);return}hl(this,t-dn((At(),U0)),Dt((s=h(zt(this,16),26),s||U0),t))},b.Bh=function(){var t,s;if(this.a)for(t=0,s=this.a.i;t>16==5?h(this.Cb,659):null}return ll(this,t-dn((At(),Ap)),Dt((l=h(zt(this,16),26),l||Ap),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 5:return this.Cb&&(a=(f=this.Db>>16,f>=0?Ylt(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,5,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),Ap)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),Ap)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 5:return Hu(this,null,5,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Ap)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Ap)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&h(this.Cb,659))}return ul(this,t-dn((At(),Ap)),Dt((s=h(zt(this,16),26),s||Ap),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Fn(s));return;case 2:KY(this,h(s,20).a);return;case 3:qdt(this,h(s,1912));return;case 4:ZY(this,Fn(s));return}pl(this,t-dn((At(),Ap)),Dt((a=h(zt(this,16),26),a||Ap),t),s)},b.uh=function(){return At(),Ap},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:KY(this,0);return;case 3:qdt(this,null);return;case 4:ZY(this,null);return}hl(this,t-dn((At(),Ap)),Dt((s=h(zt(this,16),26),s||Ap),t))},b.Ib=function(){var t;return t=this.c,t==null?this.zb:t},b.b=null,b.c=null,b.d=0,D(Vt,"EEnumLiteralImpl",565);var l2n=ii(Vt,"EFactoryImpl/InternalEDateTimeFormat");_(482,1,{1984:1},kT),D(Vt,"EFactoryImpl/1ClientInternalEDateTimeFormat",482),_(240,116,{104:1,91:1,89:1,86:1,55:1,107:1,48:1,96:1,240:1,113:1,116:1},Lb),b.Ng=function(t,s,a){var l;return a=Hu(this,t,s,a),!!this.e&&ue(t,170)&&(l=qL(this,this.e),l!=this.c&&(a=v6(this,l,a))),a},b.Wg=function(t,s,a){var l;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new _i(rs,this,1)),this.d;case 2:return s?nF(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return s?oZ(this):this.a}return ll(this,t-dn((At(),Zm)),Dt((l=h(zt(this,16),26),l||Zm),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return Zct(this,null,a);case 1:return!this.d&&(this.d=new _i(rs,this,1)),_o(this.d,t,a);case 3:return Qct(this,null,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Zm)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Zm)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return ul(this,t-dn((At(),Zm)),Dt((s=h(zt(this,16),26),s||Zm),t))},b.nh=function(t,s){var a;switch(t){case 0:dft(this,h(s,86));return;case 1:!this.d&&(this.d=new _i(rs,this,1)),Cn(this.d),!this.d&&(this.d=new _i(rs,this,1)),di(this.d,h(s,15));return;case 3:Bve(this,h(s,86));return;case 4:nye(this,h(s,814));return;case 5:P5(this,h(s,138));return}pl(this,t-dn((At(),Zm)),Dt((a=h(zt(this,16),26),a||Zm),t),s)},b.uh=function(){return At(),Zm},b.wh=function(t){var s;switch(t){case 0:dft(this,null);return;case 1:!this.d&&(this.d=new _i(rs,this,1)),Cn(this.d);return;case 3:Bve(this,null);return;case 4:nye(this,null);return;case 5:P5(this,null);return}hl(this,t-dn((At(),Zm)),Dt((s=h(zt(this,16),26),s||Zm),t))},b.Ib=function(){var t;return t=new ju(gf(this)),t.a+=" (expression: ",dJ(this,t),t.a+=")",t.a};var lIe;D(Vt,"EGenericTypeImpl",240),_(1950,1936,uB),b.Sh=function(t,s){KZe(this,t,s)},b.gk=function(t,s){return KZe(this,this.gc(),t),s},b.ki=function(t){return Ff(this.Bi(),t)},b.Uh=function(){return this.Vh()},b.Bi=function(){return new cGe(this)},b.Vh=function(){return this.Wh(0)},b.Wh=function(t){return this.Bi().Xc(t)},b.hk=function(t,s){return ay(this,t,!0),s},b.di=function(t,s){var a,l;return l=pZ(this,s),a=this.Xc(t),a.Rb(l),l},b.ei=function(t,s){var a;ay(this,s,!0),a=this.Xc(t),a.Rb(s)},D(Jr,"AbstractSequentialInternalEList",1950),_(481,1950,uB,tA),b.ki=function(t){return Ff(this.Bi(),t)},b.Uh=function(){return this.b==null?(Y1(),Y1(),M_):this.Ek()},b.Bi=function(){return new wQe(this.a,this.b)},b.Vh=function(){return this.b==null?(Y1(),Y1(),M_):this.Ek()},b.Wh=function(t){var s,a;if(this.b==null){if(t<0||t>1)throw ee(new ds(vI+t+", size=0"));return Y1(),Y1(),M_}for(a=this.Ek(),s=0;s0;)if(s=this.c[--this.d],(!this.e||s.Bj()!=EE||s.Xi()!=0)&&(!this.Hk()||this.b.hh(s))){if(v=this.b.Yg(s,this.Gk()),this.f=(Ho(),h(s,65).Jj()),this.f||s.Vj()){if(this.Gk()?(l=h(v,14),this.k=l):(l=h(v,67),this.k=this.j=l),ue(this.k,53)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Wh(this.k.gc()):this.k.Xc(this.k.gc()),this.p?udt(this,this.p):xdt(this))return f=this.p?this.p.Ub():this.j?this.j.ki(--this.n):this.k.Xb(--this.n),this.f?(t=h(f,71),t.Xj(),a=t.bd(),this.i=a):(a=f,this.i=a),this.g=-3,!0}else if(v!=null)return this.k=null,this.p=null,a=v,this.i=a,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return f=this.p?this.p.Ub():this.j?this.j.ki(--this.n):this.k.Xb(--this.n),this.f?(t=h(f,71),t.Xj(),a=t.bd(),this.i=a):(a=f,this.i=a),this.g=-3,!0}},b.Pb=function(){return X$(this)},b.Tb=function(){return this.a},b.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ee(new ca)},b.Vb=function(){return this.a-1},b.Qb=function(){throw ee(new Rn)},b.Gk=function(){return!1},b.Wb=function(t){throw ee(new Rn)},b.Hk=function(){return!0},b.a=0,b.d=0,b.f=!1,b.g=0,b.n=0,b.o=0;var M_;D(Jr,"EContentsEList/FeatureIteratorImpl",277),_(689,277,lB,hpe),b.Gk=function(){return!0},D(Jr,"EContentsEList/ResolvingFeatureIteratorImpl",689),_(1130,689,lB,LZe),b.Hk=function(){return!1},D(Vt,"ENamedElementImpl/1/1",1130),_(1131,277,lB,$Ze),b.Hk=function(){return!1},D(Vt,"ENamedElementImpl/1/2",1131),_(35,142,yO,Jv,SY,Wi,$Y,p1,df,gbe,hrt,bbe,prt,jge,grt,ybe,brt,Rge,mrt,mbe,vrt,ZC,NA,tY,vbe,yrt,Nge,wrt),b.Wi=function(){return Jge(this)},b.bj=function(){var t;return t=Jge(this),t?t.uj():null},b.ti=function(t){return this.b==-1&&!!this.a&&(this.b=this.c.Sg(this.a.Xi(),this.a.Bj())),this.c.Jg(this.b,t)},b.vi=function(){return this.c},b.cj=function(){var t;return t=Jge(this),t?t.Fj():!1},b.b=-1,D(Vt,"ENotificationImpl",35),_(395,283,{104:1,91:1,89:1,147:1,191:1,55:1,58:1,107:1,466:1,48:1,96:1,150:1,395:1,283:1,113:1,116:1},WG),b.Lg=function(t){return Jlt(this,t)},b.Wg=function(t,s,a){var l,f,v;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),v=this.t,v>1||v==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?h(this.Cb,26):null;case 11:return!this.d&&(this.d=new Ac(ic,this,11)),this.d;case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),this.c;case 13:return!this.a&&(this.a=new aA(this,this)),this.a;case 14:return nu(this)}return ll(this,t-dn((At(),Pp)),Dt((l=h(zt(this,16),26),l||Pp),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 10:return this.Cb&&(a=(f=this.Db>>16,f>=0?Jlt(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,10,a);case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),Ua(this.c,t,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),Pp)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),Pp)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 9:return VK(this,a);case 10:return Hu(this,null,10,a);case 11:return!this.d&&(this.d=new Ac(ic,this,11)),_o(this.d,t,a);case 12:return!this.c&&(this.c=new $e(Qm,this,12,10)),_o(this.c,t,a);case 14:return _o(nu(this),t,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Pp)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Pp)),t,a)},b.gh=function(t){var s,a,l;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l=this.t,l>1||l==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&h(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&nu(this.a.a).i!=0&&!(!!this.b&&rZ(this.b));case 14:return!!this.b&&rZ(this.b)}return ul(this,t-dn((At(),Pp)),Dt((s=h(zt(this,16),26),s||Pp),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Fn(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:iy(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 11:!this.d&&(this.d=new Ac(ic,this,11)),Cn(this.d),!this.d&&(this.d=new Ac(ic,this,11)),di(this.d,h(s,15));return;case 12:!this.c&&(this.c=new $e(Qm,this,12,10)),Cn(this.c),!this.c&&(this.c=new $e(Qm,this,12,10)),di(this.c,h(s,15));return;case 13:!this.a&&(this.a=new aA(this,this)),X8(this.a),!this.a&&(this.a=new aA(this,this)),di(this.a,h(s,15));return;case 14:Cn(nu(this)),di(nu(this),h(s,15));return}pl(this,t-dn((At(),Pp)),Dt((a=h(zt(this,16),26),a||Pp),t),s)},b.uh=function(){return At(),Pp},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 11:!this.d&&(this.d=new Ac(ic,this,11)),Cn(this.d);return;case 12:!this.c&&(this.c=new $e(Qm,this,12,10)),Cn(this.c);return;case 13:this.a&&X8(this.a);return;case 14:this.b&&Cn(this.b);return}hl(this,t-dn((At(),Pp)),Dt((s=h(zt(this,16),26),s||Pp),t))},b.Bh=function(){var t,s;if(this.c)for(t=0,s=this.c.i;tS&&ui(t,S,null),l=0,a=new bn(nu(this.a));a.e!=a.i.gc();)s=h(yn(a),86),v=(w=s.c,w||(At(),Pd)),ui(t,l++,v);return t},b.Ti=function(){var t,s,a,l,f;for(f=new X1,f.a+="[",t=nu(this.a),s=0,l=nu(this.a).i;s1);case 5:return o8(this,t,s,a,l,this.i-h(a,14).gc()>0);default:return new p1(this.e,t,this.c,s,a,l,!0)}},b.dj=function(){return!0},b.aj=function(){return rZ(this)},b.Sj=function(){Cn(this)},D(Vt,"EOperationImpl/2",1312),_(490,1,{1910:1,490:1},nQe),D(Vt,"EPackageImpl/1",490),_(16,82,Ms,$e),b.uk=function(){return this.d},b.vk=function(){return this.b},b.yk=function(){return!0},b.b=0,D(Jr,"EObjectContainmentWithInverseEList",16),_(350,16,Ms,O3),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentWithInverseEList/Resolving",350),_(298,350,Ms,Wv),b.Zh=function(){this.a.tb=null},D(Vt,"EPackageImpl/2",298),_(1201,1,{},xUt),D(Vt,"EPackageImpl/3",1201),_(705,44,_2,phe),b._b=function(t){return to(t)?eY(this,t):!!ks(this.f,t)},D(Vt,"EPackageRegistryImpl",705),_(501,283,{104:1,91:1,89:1,147:1,191:1,55:1,1986:1,107:1,466:1,48:1,96:1,150:1,501:1,283:1,113:1,116:1},GG),b.Lg=function(t){return eft(this,t)},b.Wg=function(t,s,a){var l,f,v;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),v=this.t,v>1||v==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?h(this.Cb,58):null}return ll(this,t-dn((At(),ow)),Dt((l=h(zt(this,16),26),l||ow),t),s,a)},b.bh=function(t,s,a){var l,f,v;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),Ua(this.Ab,t,a);case 10:return this.Cb&&(a=(f=this.Db>>16,f>=0?eft(this,a):this.Cb.dh(this,-1-f,null,a))),Hu(this,t,10,a)}return v=h(Dt((l=h(zt(this,16),26),l||(At(),ow)),s),65),v.Ij().Lj(this,Ja(this),s-dn((At(),ow)),t,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 9:return VK(this,a);case 10:return Hu(this,null,10,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),ow)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),ow)),t,a)},b.gh=function(t){var s,a,l;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l=this.t,l>1||l==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return!!(this.Db>>16==10&&h(this.Cb,58))}return ul(this,t-dn((At(),ow)),Dt((s=h(zt(this,16),26),s||ow),t))},b.uh=function(){return At(),ow},D(Vt,"EParameterImpl",501),_(97,443,{104:1,91:1,89:1,147:1,191:1,55:1,17:1,170:1,65:1,107:1,466:1,48:1,96:1,150:1,97:1,443:1,283:1,113:1,116:1,665:1},wpe),b.Wg=function(t,s,a){var l,f,v,w;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Zt(),(this.Bb&256)!=0;case 3:return Zt(),(this.Bb&512)!=0;case 4:return Ue(this.s);case 5:return Ue(this.t);case 6:return Zt(),w=this.t,w>1||w==-1;case 7:return Zt(),f=this.s,f>=1;case 8:return s?$l(this):this.r;case 9:return this.q;case 10:return Zt(),(this.Bb&mf)!=0;case 11:return Zt(),(this.Bb&jy)!=0;case 12:return Zt(),(this.Bb&Ty)!=0;case 13:return this.j;case 14:return d6(this);case 15:return Zt(),(this.Bb&jc)!=0;case 16:return Zt(),(this.Bb&Yd)!=0;case 17:return Qv(this);case 18:return Zt(),(this.Bb&fa)!=0;case 19:return Zt(),v=qo(this),!!v&&(v.Bb&fa)!=0;case 20:return Zt(),(this.Bb&Bo)!=0;case 21:return s?qo(this):this.b;case 22:return s?eme(this):Vit(this);case 23:return!this.a&&(this.a=new Yw(nw,this,23)),this.a}return ll(this,t-dn((At(),dx)),Dt((l=h(zt(this,16),26),l||dx),t),s,a)},b.gh=function(t){var s,a,l,f;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return a=this.s,a>=1;case 8:return!!this.r&&!this.q.e&&nm(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&nm(this.q).i==0);case 10:return(this.Bb&mf)==0;case 11:return(this.Bb&jy)!=0;case 12:return(this.Bb&Ty)!=0;case 13:return this.j!=null;case 14:return d6(this)!=null;case 15:return(this.Bb&jc)!=0;case 16:return(this.Bb&Yd)!=0;case 17:return!!Qv(this);case 18:return(this.Bb&fa)!=0;case 19:return l=qo(this),!!l&&(l.Bb&fa)!=0;case 20:return(this.Bb&Bo)==0;case 21:return!!this.b;case 22:return!!Vit(this);case 23:return!!this.a&&this.a.i!=0}return ul(this,t-dn((At(),dx)),Dt((s=h(zt(this,16),26),s||dx),t))},b.nh=function(t,s){var a,l;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:gY(this,Fn(s));return;case 2:ap(this,_t(It(s)));return;case 3:sp(this,_t(It(s)));return;case 4:rp(this,h(s,20).a);return;case 5:iy(this,h(s,20).a);return;case 8:jg(this,h(s,138));return;case 9:l=bd(this,h(s,86),null),l&&l.Ai();return;case 10:Q5(this,_t(It(s)));return;case 11:Z5(this,_t(It(s)));return;case 12:Y5(this,_t(It(s)));return;case 13:E1e(this,Fn(s));return;case 15:J5(this,_t(It(s)));return;case 16:e6(this,_t(It(s)));return;case 18:jJt(this,_t(It(s)));return;case 20:Ome(this,_t(It(s)));return;case 21:Dbe(this,h(s,17));return;case 23:!this.a&&(this.a=new Yw(nw,this,23)),Cn(this.a),!this.a&&(this.a=new Yw(nw,this,23)),di(this.a,h(s,15));return}pl(this,t-dn((At(),dx)),Dt((a=h(zt(this,16),26),a||dx),t),s)},b.uh=function(){return At(),dx},b.wh=function(t){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:ue(this.Cb,87)&&my(eu(h(this.Cb,87)),4),za(this,null);return;case 2:ap(this,!0);return;case 3:sp(this,!0);return;case 4:rp(this,0);return;case 5:iy(this,1);return;case 8:jg(this,null);return;case 9:a=bd(this,null,null),a&&a.Ai();return;case 10:Q5(this,!0);return;case 11:Z5(this,!1);return;case 12:Y5(this,!1);return;case 13:this.i=null,L$(this,null);return;case 15:J5(this,!1);return;case 16:e6(this,!1);return;case 18:Pme(this,!1),ue(this.Cb,87)&&my(eu(h(this.Cb,87)),2);return;case 20:Ome(this,!0);return;case 21:Dbe(this,null);return;case 23:!this.a&&(this.a=new Yw(nw,this,23)),Cn(this.a);return}hl(this,t-dn((At(),dx)),Dt((s=h(zt(this,16),26),s||dx),t))},b.Bh=function(){eme(this),m5(bs((Nc(),vo),this)),$l(this),this.Bb|=1},b.Gj=function(){return qo(this)},b.lk=function(){var t;return t=qo(this),!!t&&(t.Bb&fa)!=0},b.mk=function(){return(this.Bb&fa)!=0},b.nk=function(){return(this.Bb&Bo)!=0},b.ik=function(t,s){return this.c=null,Sme(this,t,s)},b.Ib=function(){var t;return(this.Db&64)!=0?eF(this):(t=new _l(eF(this)),t.a+=" (containment: ",K1(t,(this.Bb&fa)!=0),t.a+=", resolveProxies: ",K1(t,(this.Bb&Bo)!=0),t.a+=")",t.a)},D(Vt,"EReferenceImpl",97),_(541,116,{104:1,43:1,91:1,89:1,133:1,55:1,107:1,48:1,96:1,541:1,113:1,116:1},LBe),b.Fb=function(t){return this===t},b.ad=function(){return this.b},b.bd=function(){return this.c},b.Hb=function(){return Kb(this)},b.Ph=function(t){LYt(this,Fn(t))},b.cd=function(t){return CYt(this,Fn(t))},b.Wg=function(t,s,a){var l;switch(t){case 0:return this.b;case 1:return this.c}return ll(this,t-dn((At(),zo)),Dt((l=h(zt(this,16),26),l||zo),t),s,a)},b.gh=function(t){var s;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return ul(this,t-dn((At(),zo)),Dt((s=h(zt(this,16),26),s||zo),t))},b.nh=function(t,s){var a;switch(t){case 0:FYt(this,Fn(s));return;case 1:Abe(this,Fn(s));return}pl(this,t-dn((At(),zo)),Dt((a=h(zt(this,16),26),a||zo),t),s)},b.uh=function(){return At(),zo},b.wh=function(t){var s;switch(t){case 0:Tbe(this,null);return;case 1:Abe(this,null);return}hl(this,t-dn((At(),zo)),Dt((s=h(zt(this,16),26),s||zo),t))},b.Nh=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:lp(t)),this.a},b.Oh=function(t){this.a=t},b.Ib=function(){var t;return(this.Db&64)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (key: ",is(t,this.b),t.a+=", value: ",is(t,this.c),t.a+=")",t.a)},b.a=-1,b.b=null,b.c=null;var na=D(Vt,"EStringToStringMapEntryImpl",541),PEt=ii(Jr,"FeatureMap/Entry/Internal");_(558,1,fB),b.Jk=function(t){return this.Kk(h(t,48))},b.Kk=function(t){return this.Jk(t)},b.Fb=function(t){var s,a;return this===t?!0:ue(t,71)?(s=h(t,71),s.Xj()==this.c?(a=this.bd(),a==null?s.bd()==null:Pr(a,s.bd())):!1):!1},b.Xj=function(){return this.c},b.Hb=function(){var t;return t=this.bd(),ri(this.c)^(t==null?0:ri(t))},b.Ib=function(){var t,s;return t=this.c,s=Bu(t.Cj()).Kh(),t.ne(),(s!=null&&s.length!=0?s+":"+t.ne():t.ne())+"="+this.bd()},D(Vt,"EStructuralFeatureImpl/BasicFeatureMapEntry",558),_(759,558,fB,Ppe),b.Kk=function(t){return new Ppe(this.c,t)},b.bd=function(){return this.a},b.Lk=function(t,s,a){return Hrn(this,t,this.a,s,a)},b.Mk=function(t,s,a){return qrn(this,t,this.a,s,a)},D(Vt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",759),_(1285,1,{},rQe),b.Kj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v.il(this.a).Rj(l)},b.Lj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v._k(this.a,l,f)},b.Mj=function(t,s,a,l,f){var v;return v=h(T5(t,this.b),212),v.al(this.a,l,f)},b.Nj=function(t,s,a){var l;return l=h(T5(t,this.b),212),l.il(this.a).aj()},b.Oj=function(t,s,a,l){var f;f=h(T5(t,this.b),212),f.il(this.a).Wb(l)},b.Pj=function(t,s,a){return h(T5(t,this.b),212).il(this.a)},b.Qj=function(t,s,a){var l;l=h(T5(t,this.b),212),l.il(this.a).Sj()},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1285),_(88,1,{},Z1,wg,ep,kg),b.Kj=function(t,s,a,l,f){var v;if(v=s.xh(a),v==null&&s.yh(a,v=dF(this,t)),!f)switch(this.e){case 50:case 41:return h(v,580).nj();case 40:return h(v,212).fl()}return v},b.Lj=function(t,s,a,l,f){var v,w;return w=s.xh(a),w==null&&s.yh(a,w=dF(this,t)),v=h(w,67).gk(l,f),v},b.Mj=function(t,s,a,l,f){var v;return v=s.xh(a),v!=null&&(f=h(v,67).hk(l,f)),f},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null&&h(l,76).aj()},b.Oj=function(t,s,a,l){var f;f=h(s.xh(a),76),!f&&s.yh(a,f=dF(this,t)),f.Wb(l)},b.Pj=function(t,s,a){var l,f;return f=s.xh(a),f==null&&s.yh(a,f=dF(this,t)),ue(f,76)?h(f,76):(l=h(s.xh(a),14),new sGe(l))},b.Qj=function(t,s,a){var l;l=h(s.xh(a),76),!l&&s.yh(a,l=dF(this,t)),l.Sj()},b.b=0,b.e=0,D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateMany",88),_(495,1,{}),b.Lj=function(t,s,a,l,f){throw ee(new Rn)},b.Mj=function(t,s,a,l,f){throw ee(new Rn)},b.Pj=function(t,s,a){return new Qtt(this,t,s,a)};var qh;D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",495),_(1302,1,Hte,Qtt),b.Rj=function(t){return this.a.Kj(this.c,this.d,this.b,t,!0)},b.aj=function(){return this.a.Nj(this.c,this.d,this.b)},b.Wb=function(t){this.a.Oj(this.c,this.d,this.b,t)},b.Sj=function(){this.a.Qj(this.c,this.d,this.b)},b.b=0,D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1302),_(752,495,{},lge),b.Kj=function(t,s,a,l,f){return JZ(t,t.$g(),t.Qg())==this.b?this.nk()&&l?LZ(t):t.$g():null},b.Lj=function(t,s,a,l,f){var v,w;return t.$g()&&(f=(v=t.Qg(),v>=0?t.Lg(f):t.$g().dh(t,-1-v,null,f))),w=ti(t.Og(),this.e),t.Ng(l,w,f)},b.Mj=function(t,s,a,l,f){var v;return v=ti(t.Og(),this.e),t.Ng(null,v,f)},b.Nj=function(t,s,a){var l;return l=ti(t.Og(),this.e),!!t.$g()&&t.Qg()==l},b.Oj=function(t,s,a,l){var f,v,w,S,C;if(l!=null&&!rJ(this.a,l))throw ee(new XS(dB+(ue(l,55)?Fve(h(l,55).Og()):fbe(ru(l)))+hB+this.a+"'"));if(f=t.$g(),w=ti(t.Og(),this.e),Pe(l)!==Pe(f)||t.Qg()!=w&&l!=null){if(r6(t,h(l,55)))throw ee(new Gt(bI+t.Ib()));C=null,f&&(C=(v=t.Qg(),v>=0?t.Lg(C):t.$g().dh(t,-1-v,null,C))),S=h(l,48),S&&(C=S.ah(t,ti(S.Og(),this.b),null,C)),C=t.Ng(S,w,C),C&&C.Ai()}else t.Gg()&&t.Hg()&&Ar(t,new Wi(t,1,w,l,l))},b.Qj=function(t,s,a){var l,f,v,w;l=t.$g(),l?(w=(f=t.Qg(),f>=0?t.Lg(null):t.$g().dh(t,-1-f,null,null)),v=ti(t.Og(),this.e),w=t.Ng(null,v,w),w&&w.Ai()):t.Gg()&&t.Hg()&&Ar(t,new ZC(t,1,this.e,null,null))},b.nk=function(){return!1},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",752),_(1286,752,{},UJe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1286),_(556,495,{}),b.Kj=function(t,s,a,l,f){var v;return v=s.xh(a),v==null?this.b:Pe(v)===Pe(qh)?null:v},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null&&(Pe(l)===Pe(qh)||!Pr(l,this.b))},b.Oj=function(t,s,a,l){var f,v;t.Gg()&&t.Hg()?(f=(v=s.xh(a),v==null?this.b:Pe(v)===Pe(qh)?null:v),l==null?this.c!=null?(s.yh(a,null),l=this.b):this.b!=null?s.yh(a,qh):s.yh(a,null):(this.Nk(l),s.yh(a,l)),Ar(t,this.d.Ok(t,1,this.e,f,l))):l==null?this.c!=null?s.yh(a,null):this.b!=null?s.yh(a,qh):s.yh(a,null):(this.Nk(l),s.yh(a,l))},b.Qj=function(t,s,a){var l,f;t.Gg()&&t.Hg()?(l=(f=s.xh(a),f==null?this.b:Pe(f)===Pe(qh)?null:f),s.zh(a),Ar(t,this.d.Ok(t,1,this.e,l,this.b))):s.zh(a)},b.Nk=function(t){throw ee(new bGe)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",556),_(B2,1,{},FBe),b.Ok=function(t,s,a,l,f){return new ZC(t,s,a,l,f)},b.Pk=function(t,s,a,l,f,v){return new tY(t,s,a,l,f,v)};var fIe,dIe,hIe,pIe,gIe,bIe,mIe,voe,vIe;D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",B2),_(1303,B2,{},BBe),b.Ok=function(t,s,a,l,f){return new Nge(t,s,a,_t(It(l)),_t(It(f)))},b.Pk=function(t,s,a,l,f,v){return new wrt(t,s,a,_t(It(l)),_t(It(f)),v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1303),_(1304,B2,{},VBe),b.Ok=function(t,s,a,l,f){return new gbe(t,s,a,h(l,215).a,h(f,215).a)},b.Pk=function(t,s,a,l,f,v){return new hrt(t,s,a,h(l,215).a,h(f,215).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1304),_(1305,B2,{},zBe),b.Ok=function(t,s,a,l,f){return new bbe(t,s,a,h(l,172).a,h(f,172).a)},b.Pk=function(t,s,a,l,f,v){return new prt(t,s,a,h(l,172).a,h(f,172).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1305),_(1306,B2,{},UBe),b.Ok=function(t,s,a,l,f){return new jge(t,s,a,Ae(Xe(l)),Ae(Xe(f)))},b.Pk=function(t,s,a,l,f,v){return new grt(t,s,a,Ae(Xe(l)),Ae(Xe(f)),v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1306),_(1307,B2,{},HBe),b.Ok=function(t,s,a,l,f){return new ybe(t,s,a,h(l,155).a,h(f,155).a)},b.Pk=function(t,s,a,l,f,v){return new brt(t,s,a,h(l,155).a,h(f,155).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1307),_(1308,B2,{},qBe),b.Ok=function(t,s,a,l,f){return new Rge(t,s,a,h(l,20).a,h(f,20).a)},b.Pk=function(t,s,a,l,f,v){return new mrt(t,s,a,h(l,20).a,h(f,20).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1308),_(1309,B2,{},WBe),b.Ok=function(t,s,a,l,f){return new mbe(t,s,a,h(l,162).a,h(f,162).a)},b.Pk=function(t,s,a,l,f,v){return new vrt(t,s,a,h(l,162).a,h(f,162).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1309),_(1310,B2,{},GBe),b.Ok=function(t,s,a,l,f){return new vbe(t,s,a,h(l,186).a,h(f,186).a)},b.Pk=function(t,s,a,l,f,v){return new yrt(t,s,a,h(l,186).a,h(f,186).a,v)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1310),_(1288,556,{},ent),b.Nk=function(t){if(!this.a.rj(t))throw ee(new XS(dB+ru(t)+hB+this.a+"'"))},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1288),_(1289,556,{},Uet),b.Nk=function(t){},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1289),_(753,556,{}),b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null},b.Oj=function(t,s,a,l){var f,v;t.Gg()&&t.Hg()?(f=!0,v=s.xh(a),v==null?(f=!1,v=this.b):Pe(v)===Pe(qh)&&(v=null),l==null?this.c!=null?(s.yh(a,null),l=this.b):s.yh(a,qh):(this.Nk(l),s.yh(a,l)),Ar(t,this.d.Pk(t,1,this.e,v,l,!f))):l==null?this.c!=null?s.yh(a,null):s.yh(a,qh):(this.Nk(l),s.yh(a,l))},b.Qj=function(t,s,a){var l,f;t.Gg()&&t.Hg()?(l=!0,f=s.xh(a),f==null?(l=!1,f=this.b):Pe(f)===Pe(qh)&&(f=null),s.zh(a),Ar(t,this.d.Pk(t,2,this.e,f,this.b,l))):s.zh(a)},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",753),_(1290,753,{},tnt),b.Nk=function(t){if(!this.a.rj(t))throw ee(new XS(dB+ru(t)+hB+this.a+"'"))},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1290),_(1291,753,{},Het),b.Nk=function(t){},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1291),_(394,495,{},vR),b.Kj=function(t,s,a,l,f){var v,w,S,C,A;if(A=s.xh(a),this.Fj()&&Pe(A)===Pe(qh))return null;if(this.nk()&&l&&A!=null){if(S=h(A,48),S.fh()&&(C=h0(t,S),S!=C)){if(!rJ(this.a,C))throw ee(new XS(dB+ru(C)+hB+this.a+"'"));s.yh(a,A=C),this.mk()&&(v=h(C,48),w=S.dh(t,this.b?ti(S.Og(),this.b):-1-ti(t.Og(),this.e),null,null),!v.$g()&&(w=v.ah(t,this.b?ti(v.Og(),this.b):-1-ti(t.Og(),this.e),null,w)),w&&w.Ai()),t.Gg()&&t.Hg()&&Ar(t,new ZC(t,9,this.e,S,C))}return A}else return A},b.Lj=function(t,s,a,l,f){var v,w;return w=s.xh(a),Pe(w)===Pe(qh)&&(w=null),s.yh(a,l),this.Yi()?Pe(w)!==Pe(l)&&w!=null&&(v=h(w,48),f=v.dh(t,ti(v.Og(),this.b),null,f)):this.mk()&&w!=null&&(f=h(w,48).dh(t,-1-ti(t.Og(),this.e),null,f)),t.Gg()&&t.Hg()&&(!f&&(f=new Gp(4)),f.zi(new ZC(t,1,this.e,w,l))),f},b.Mj=function(t,s,a,l,f){var v;return v=s.xh(a),Pe(v)===Pe(qh)&&(v=null),s.zh(a),t.Gg()&&t.Hg()&&(!f&&(f=new Gp(4)),this.Fj()?f.zi(new ZC(t,2,this.e,v,null)):f.zi(new ZC(t,1,this.e,v,null))),f},b.Nj=function(t,s,a){var l;return l=s.xh(a),l!=null},b.Oj=function(t,s,a,l){var f,v,w,S,C;if(l!=null&&!rJ(this.a,l))throw ee(new XS(dB+(ue(l,55)?Fve(h(l,55).Og()):fbe(ru(l)))+hB+this.a+"'"));C=s.xh(a),S=C!=null,this.Fj()&&Pe(C)===Pe(qh)&&(C=null),w=null,this.Yi()?Pe(C)!==Pe(l)&&(C!=null&&(f=h(C,48),w=f.dh(t,ti(f.Og(),this.b),null,w)),l!=null&&(f=h(l,48),w=f.ah(t,ti(f.Og(),this.b),null,w))):this.mk()&&Pe(C)!==Pe(l)&&(C!=null&&(w=h(C,48).dh(t,-1-ti(t.Og(),this.e),null,w)),l!=null&&(w=h(l,48).ah(t,-1-ti(t.Og(),this.e),null,w))),l==null&&this.Fj()?s.yh(a,qh):s.yh(a,l),t.Gg()&&t.Hg()?(v=new tY(t,1,this.e,C,l,this.Fj()&&!S),w?(w.zi(v),w.Ai()):Ar(t,v)):w&&w.Ai()},b.Qj=function(t,s,a){var l,f,v,w,S;S=s.xh(a),w=S!=null,this.Fj()&&Pe(S)===Pe(qh)&&(S=null),v=null,S!=null&&(this.Yi()?(l=h(S,48),v=l.dh(t,ti(l.Og(),this.b),null,v)):this.mk()&&(v=h(S,48).dh(t,-1-ti(t.Og(),this.e),null,v))),s.zh(a),t.Gg()&&t.Hg()?(f=new tY(t,this.Fj()?2:1,this.e,S,null,w),v?(v.zi(f),v.Ai()):Ar(t,f)):v&&v.Ai()},b.Yi=function(){return!1},b.mk=function(){return!1},b.nk=function(){return!1},b.Fj=function(){return!1},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",394),_(557,394,{},rK),b.mk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",557),_(1294,557,{},FZe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1294),_(755,557,{},ppe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",755),_(1296,755,{},BZe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1296),_(630,557,{},mK),b.Yi=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",630),_(1295,630,{},HJe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1295),_(756,630,{},Zpe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",756),_(1297,756,{},qJe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1297),_(631,394,{},gpe),b.nk=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",631),_(1298,631,{},zZe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1298),_(757,631,{},Jpe),b.Yi=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",757),_(1299,757,{},WJe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1299),_(1292,394,{},VZe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1292),_(754,394,{},e0e),b.Yi=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",754),_(1293,754,{},GJe),b.Fj=function(){return!0},D(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1293),_(758,558,fB,G0e),b.Kk=function(t){return new G0e(this.a,this.c,t)},b.bd=function(){return this.b},b.Lk=function(t,s,a){return Ktn(this,t,this.b,a)},b.Mk=function(t,s,a){return Ytn(this,t,this.b,a)},D(Vt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",758),_(1300,1,Hte,sGe),b.Rj=function(t){return this.a},b.aj=function(){return ue(this.a,95)?h(this.a,95).aj():!this.a.dc()},b.Wb=function(t){this.a.$b(),this.a.Ec(h(t,14))},b.Sj=function(){ue(this.a,95)?h(this.a,95).Sj():this.a.$b()},D(Vt,"EStructuralFeatureImpl/SettingMany",1300),_(1301,558,fB,cit),b.Jk=function(t){return new aK(($r(),A9),this.b.Dh(this.a,t))},b.bd=function(){return null},b.Lk=function(t,s,a){return a},b.Mk=function(t,s,a){return a},D(Vt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1301),_(632,558,fB,aK),b.Jk=function(t){return new aK(this.c,t)},b.bd=function(){return this.a},b.Lk=function(t,s,a){return a},b.Mk=function(t,s,a){return a},D(Vt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",632),_(387,489,oh,BS),b.mi=function(t){return ge(Kl,rt,26,t,0,1)},b.ii=function(){return!1},D(Vt,"ESuperAdapter/1",387),_(438,431,{104:1,91:1,89:1,147:1,191:1,55:1,107:1,814:1,48:1,96:1,150:1,438:1,113:1,116:1},_G),b.Wg=function(t,s,a){var l;switch(t){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new XC(this,rs,this)),this.a}return ll(this,t-dn((At(),Jm)),Dt((l=h(zt(this,16),26),l||Jm),t),s,a)},b.eh=function(t,s,a){var l,f;switch(s){case 0:return!this.Ab&&(this.Ab=new $e(or,this,0,3)),_o(this.Ab,t,a);case 2:return!this.a&&(this.a=new XC(this,rs,this)),_o(this.a,t,a)}return f=h(Dt((l=h(zt(this,16),26),l||(At(),Jm)),s),65),f.Ij().Mj(this,Ja(this),s-dn((At(),Jm)),t,a)},b.gh=function(t){var s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return ul(this,t-dn((At(),Jm)),Dt((s=h(zt(this,16),26),s||Jm),t))},b.nh=function(t,s){var a;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab),!this.Ab&&(this.Ab=new $e(or,this,0,3)),di(this.Ab,h(s,15));return;case 1:za(this,Fn(s));return;case 2:!this.a&&(this.a=new XC(this,rs,this)),Cn(this.a),!this.a&&(this.a=new XC(this,rs,this)),di(this.a,h(s,15));return}pl(this,t-dn((At(),Jm)),Dt((a=h(zt(this,16),26),a||Jm),t),s)},b.uh=function(){return At(),Jm},b.wh=function(t){var s;switch(t){case 0:!this.Ab&&(this.Ab=new $e(or,this,0,3)),Cn(this.Ab);return;case 1:za(this,null);return;case 2:!this.a&&(this.a=new XC(this,rs,this)),Cn(this.a);return}hl(this,t-dn((At(),Jm)),Dt((s=h(zt(this,16),26),s||Jm),t))},D(Vt,"ETypeParameterImpl",438),_(439,82,Ms,XC),b.Zi=function(t,s){return Qln(this,h(t,86),s)},b.$i=function(t,s){return Zln(this,h(t,86),s)},D(Vt,"ETypeParameterImpl/1",439),_(624,44,_2,XG),b.ec=function(){return new KN(this)},D(Vt,"ETypeParameterImpl/2",624),_(550,md,au,KN),b.Dc=function(t){return hJe(this,h(t,86))},b.Ec=function(t){var s,a,l;for(l=!1,a=t.Ic();a.Ob();)s=h(a.Pb(),86),Fr(this.a,s,"")==null&&(l=!0);return l},b.$b=function(){Xc(this.a)},b.Fc=function(t){return sd(this.a,t)},b.Ic=function(){var t;return t=new Ng(new lg(this.a).a),new YN(t)},b.Kc=function(t){return eot(this,t)},b.gc=function(){return gC(this.a)},D(Vt,"ETypeParameterImpl/2/1",550),_(551,1,bo,YN),b.Nb=function(t){yo(this,t)},b.Pb=function(){return h(dm(this.a).ad(),86)},b.Ob=function(){return this.a.b},b.Qb=function(){_ot(this.a)},D(Vt,"ETypeParameterImpl/2/1/1",551),_(1248,44,_2,KGe),b._b=function(t){return to(t)?eY(this,t):!!ks(this.f,t)},b.vc=function(t){var s,a;return s=to(t)?Ta(this,t):Xs(ks(this.f,t)),ue(s,815)?(a=h(s,815),s=a.Wj(),Fr(this,h(t,234),s),s):s!=null?s:t==null?(dX(),_Et):null},D(Vt,"EValidatorRegistryImpl",1248),_(1284,696,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,1913:1,48:1,96:1,150:1,113:1,116:1},XBe),b.Dh=function(t,s){switch(t.tj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return s==null?null:Bs(s);case 25:return ern(s);case 27:return Enn(s);case 28:return knn(s);case 29:return s==null?null:HQe(S9[0],h(s,198));case 41:return s==null?"":Xp(h(s,289));case 42:return Bs(s);case 50:return Fn(s);default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe;switch(t.G==-1&&(t.G=(V=Bu(t),V?up(V.Hh(),t):-1)),t.G){case 0:return a=new qG,a;case 1:return s=new fde,s;case 2:return l=new gde,l;case 4:return f=new QN,f;case 5:return v=new XGe,v;case 6:return w=new gGe,w;case 7:return S=new pde,S;case 10:return A=new BN,A;case 11:return M=new WG,M;case 12:return R=new unt,R;case 13:return q=new GG,q;case 14:return W=new wpe,W;case 17:return J=new LBe,J;case 18:return C=new Lb,C;case 19:return oe=new _G,oe;default:throw ee(new Gt(Tte+t.zb+jm))}},b.Fh=function(t,s){switch(t.tj()){case 20:return s==null?null:new Lhe(s);case 21:return s==null?null:new Jp(s);case 23:case 22:return s==null?null:aan(s);case 26:case 24:return s==null?null:VA(Uu(s,-128,127)<<24>>24);case 25:return b1n(s);case 27:return jcn(s);case 28:return Rcn(s);case 29:return ffn(s);case 32:case 31:return s==null?null:gy(s);case 38:case 37:return s==null?null:new ahe(s);case 40:case 39:return s==null?null:Ue(Uu(s,ko,Ir));case 41:return null;case 42:return s==null,null;case 44:case 43:return s==null?null:$g(fF(s));case 49:case 48:return s==null?null:K5(Uu(s,pB,32767)<<16>>16);case 50:return s;default:throw ee(new Gt(_6+t.ne()+jm))}},D(Vt,"EcoreFactoryImpl",1284),_(540,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,1911:1,48:1,96:1,150:1,179:1,540:1,113:1,116:1,663:1},Mtt),b.gb=!1,b.hb=!1;var yIe,OEt=!1;D(Vt,"EcorePackageImpl",540),_(1157,1,{815:1},KBe),b.Wj=function(){return fZe(),MEt},D(Vt,"EcorePackageImpl/1",1157),_(1166,1,fr,YBe),b.rj=function(t){return ue(t,147)},b.sj=function(t){return ge(A_,rt,147,t,0,1)},D(Vt,"EcorePackageImpl/10",1166),_(1167,1,fr,QBe),b.rj=function(t){return ue(t,191)},b.sj=function(t){return ge(uoe,rt,191,t,0,1)},D(Vt,"EcorePackageImpl/11",1167),_(1168,1,fr,ZBe),b.rj=function(t){return ue(t,55)},b.sj=function(t){return ge(B0,rt,55,t,0,1)},D(Vt,"EcorePackageImpl/12",1168),_(1169,1,fr,JBe),b.rj=function(t){return ue(t,395)},b.sj=function(t){return ge(Yl,i4e,58,t,0,1)},D(Vt,"EcorePackageImpl/13",1169),_(1170,1,fr,eVe),b.rj=function(t){return ue(t,234)},b.sj=function(t){return ge(Xf,rt,234,t,0,1)},D(Vt,"EcorePackageImpl/14",1170),_(1171,1,fr,tVe),b.rj=function(t){return ue(t,501)},b.sj=function(t){return ge(Qm,rt,1986,t,0,1)},D(Vt,"EcorePackageImpl/15",1171),_(1172,1,fr,nVe),b.rj=function(t){return ue(t,97)},b.sj=function(t){return ge(rw,F2,17,t,0,1)},D(Vt,"EcorePackageImpl/16",1172),_(1173,1,fr,rVe),b.rj=function(t){return ue(t,170)},b.sj=function(t){return ge(xc,F2,170,t,0,1)},D(Vt,"EcorePackageImpl/17",1173),_(1174,1,fr,iVe),b.rj=function(t){return ue(t,466)},b.sj=function(t){return ge(tw,rt,466,t,0,1)},D(Vt,"EcorePackageImpl/18",1174),_(1175,1,fr,oVe),b.rj=function(t){return ue(t,541)},b.sj=function(t){return ge(na,dvt,541,t,0,1)},D(Vt,"EcorePackageImpl/19",1175),_(1158,1,fr,sVe),b.rj=function(t){return ue(t,321)},b.sj=function(t){return ge(nw,F2,32,t,0,1)},D(Vt,"EcorePackageImpl/2",1158),_(1176,1,fr,aVe),b.rj=function(t){return ue(t,240)},b.sj=function(t){return ge(rs,Pvt,86,t,0,1)},D(Vt,"EcorePackageImpl/20",1176),_(1177,1,fr,cVe),b.rj=function(t){return ue(t,438)},b.sj=function(t){return ge(ic,rt,814,t,0,1)},D(Vt,"EcorePackageImpl/21",1177),_(1178,1,fr,uVe),b.rj=function(t){return Rv(t)},b.sj=function(t){return ge(io,Oe,470,t,8,1)},D(Vt,"EcorePackageImpl/22",1178),_(1179,1,fr,lVe),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Fc,Oe,190,t,0,2)},D(Vt,"EcorePackageImpl/23",1179),_(1180,1,fr,fVe),b.rj=function(t){return ue(t,215)},b.sj=function(t){return ge(y4,Oe,215,t,0,1)},D(Vt,"EcorePackageImpl/24",1180),_(1181,1,fr,dVe),b.rj=function(t){return ue(t,172)},b.sj=function(t){return ge(AI,Oe,172,t,0,1)},D(Vt,"EcorePackageImpl/25",1181),_(1182,1,fr,hVe),b.rj=function(t){return ue(t,198)},b.sj=function(t){return ge(TB,Oe,198,t,0,1)},D(Vt,"EcorePackageImpl/26",1182),_(1183,1,fr,pVe),b.rj=function(t){return!1},b.sj=function(t){return ge($Ie,rt,2078,t,0,1)},D(Vt,"EcorePackageImpl/27",1183),_(1184,1,fr,gVe),b.rj=function(t){return $v(t)},b.sj=function(t){return ge(Io,Oe,331,t,7,1)},D(Vt,"EcorePackageImpl/28",1184),_(1185,1,fr,bVe),b.rj=function(t){return ue(t,57)},b.sj=function(t){return ge(Z8e,Ay,57,t,0,1)},D(Vt,"EcorePackageImpl/29",1185),_(1159,1,fr,mVe),b.rj=function(t){return ue(t,502)},b.sj=function(t){return ge(or,{3:1,4:1,5:1,1906:1},581,t,0,1)},D(Vt,"EcorePackageImpl/3",1159),_(1186,1,fr,vVe),b.rj=function(t){return ue(t,565)},b.sj=function(t){return ge(tIe,rt,1912,t,0,1)},D(Vt,"EcorePackageImpl/30",1186),_(1187,1,fr,yVe),b.rj=function(t){return ue(t,152)},b.sj=function(t){return ge(kIe,Ay,152,t,0,1)},D(Vt,"EcorePackageImpl/31",1187),_(1188,1,fr,wVe),b.rj=function(t){return ue(t,71)},b.sj=function(t){return ge(zz,Lvt,71,t,0,1)},D(Vt,"EcorePackageImpl/32",1188),_(1189,1,fr,xVe),b.rj=function(t){return ue(t,155)},b.sj=function(t){return ge(L6,Oe,155,t,0,1)},D(Vt,"EcorePackageImpl/33",1189),_(1190,1,fr,SVe),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(Do,Oe,20,t,0,1)},D(Vt,"EcorePackageImpl/34",1190),_(1191,1,fr,EVe),b.rj=function(t){return ue(t,289)},b.sj=function(t){return ge(m4e,rt,289,t,0,1)},D(Vt,"EcorePackageImpl/35",1191),_(1192,1,fr,kVe),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(Vt,"EcorePackageImpl/36",1192),_(1193,1,fr,CVe),b.rj=function(t){return ue(t,84)},b.sj=function(t){return ge(v4e,rt,84,t,0,1)},D(Vt,"EcorePackageImpl/37",1193),_(1194,1,fr,IVe),b.rj=function(t){return ue(t,582)},b.sj=function(t){return ge(wIe,rt,582,t,0,1)},D(Vt,"EcorePackageImpl/38",1194),_(1195,1,fr,TVe),b.rj=function(t){return!1},b.sj=function(t){return ge(LIe,rt,2079,t,0,1)},D(Vt,"EcorePackageImpl/39",1195),_(1160,1,fr,AVe),b.rj=function(t){return ue(t,87)},b.sj=function(t){return ge(Kl,rt,26,t,0,1)},D(Vt,"EcorePackageImpl/4",1160),_(1196,1,fr,PVe),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(Vt,"EcorePackageImpl/40",1196),_(1197,1,fr,OVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Vt,"EcorePackageImpl/41",1197),_(1198,1,fr,_Ve),b.rj=function(t){return ue(t,579)},b.sj=function(t){return ge(eIe,rt,579,t,0,1)},D(Vt,"EcorePackageImpl/42",1198),_(1199,1,fr,MVe),b.rj=function(t){return!1},b.sj=function(t){return ge(FIe,Oe,2080,t,0,1)},D(Vt,"EcorePackageImpl/43",1199),_(1200,1,fr,DVe),b.rj=function(t){return ue(t,43)},b.sj=function(t){return ge(eb,bF,43,t,0,1)},D(Vt,"EcorePackageImpl/44",1200),_(1161,1,fr,NVe),b.rj=function(t){return ue(t,138)},b.sj=function(t){return ge(Kf,rt,138,t,0,1)},D(Vt,"EcorePackageImpl/5",1161),_(1162,1,fr,jVe),b.rj=function(t){return ue(t,148)},b.sj=function(t){return ge(goe,rt,148,t,0,1)},D(Vt,"EcorePackageImpl/6",1162),_(1163,1,fr,RVe),b.rj=function(t){return ue(t,450)},b.sj=function(t){return ge(Vz,rt,659,t,0,1)},D(Vt,"EcorePackageImpl/7",1163),_(1164,1,fr,$Ve),b.rj=function(t){return ue(t,565)},b.sj=function(t){return ge(M1,rt,666,t,0,1)},D(Vt,"EcorePackageImpl/8",1164),_(1165,1,fr,LVe),b.rj=function(t){return ue(t,465)},b.sj=function(t){return ge(x9,rt,465,t,0,1)},D(Vt,"EcorePackageImpl/9",1165),_(1013,1955,fvt,fXe),b.Yh=function(t,s){Don(this,h(s,410))},b.ai=function(t,s){mdt(this,t,h(s,410))},D(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1013),_(1014,142,yO,Itt),b.vi=function(){return this.a.a},D(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1014),_(1037,1036,{},FQe),D("org.eclipse.emf.ecore.plugin","EcorePlugin",1037);var wIe=ii(Fvt,"Resource");_(764,1349,Bvt),b.Tk=function(t){},b.Uk=function(t){},b.Qk=function(){return!this.a&&(this.a=new BG(this)),this.a},b.Rk=function(t){var s,a,l,f,v;if(l=t.length,l>0)if(Bn(0,t.length),t.charCodeAt(0)==47){for(v=new Va(4),f=1,s=1;s0&&(t=t.substr(0,a)));return rhn(this,t)},b.Sk=function(){return this.c},b.Ib=function(){var t;return Xp(this.bm)+"@"+(t=ri(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},b.b=!1,D(qte,"ResourceImpl",764),_(1350,764,Bvt,aGe),D(qte,"BinaryResourceImpl",1350),_(1142,687,Lte),b.ni=function(t){return ue(t,55)?XZt(this,h(t,55)):ue(t,582)?new bn(h(t,582).Qk()):Pe(t)===Pe(this.f)?h(t,15).Ic():(VC(),__.a)},b.Ob=function(){return Aye(this)},b.a=!1,D(Jr,"EcoreUtil/ContentTreeIterator",1142),_(1351,1142,Lte,ntt),b.ni=function(t){return Pe(t)===Pe(this.f)?h(t,14).Ic():new Urt(h(t,55))},D(qte,"ResourceImpl/5",1351),_(638,1963,Avt,BG),b.Fc=function(t){return this.i<=4?o6(this,t):ue(t,48)&&h(t,48).Ug()==this.a},b.Yh=function(t,s){t==this.i-1&&(this.a.b||(this.a.b=!0))},b.$h=function(t,s){t==0?this.a.b||(this.a.b=!0):MY(this,t,s)},b.ai=function(t,s){},b.bi=function(t,s,a){},b.Xi=function(){return 2},b.vi=function(){return this.a},b.Yi=function(){return!0},b.Zi=function(t,s){var a;return a=h(t,48),s=a.rh(this.a,s),s},b.$i=function(t,s){var a;return a=h(t,48),a.rh(null,s)},b._i=function(){return!1},b.ci=function(){return!0},b.mi=function(t){return ge(B0,rt,55,t,0,1)},b.ii=function(){return!1},D(qte,"ResourceImpl/ContentsEList",638),_(963,1936,E6,cGe),b.Xc=function(t){return this.a.Wh(t)},b.gc=function(){return this.a.gc()},D(Jr,"AbstractSequentialInternalEList/1",963);var xIe,SIe,vo,EIe;_(614,1,{},ret);var Uz,Hz;D(Jr,"BasicExtendedMetaData",614),_(1133,1,{},oQe),b.Vk=function(){return null},b.Wk=function(){return this.a==-2&&qUt(this,hfn(this.d,this.b)),this.a},b.Xk=function(){return null},b.Yk=function(){return Mt(),Mt(),Wo},b.ne=function(){return this.c==N6&&GUt(this,Yut(this.d,this.b)),this.c},b.Zk=function(){return 0},b.a=-2,b.c=N6,D(Jr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1133),_(1134,1,{},Srt),b.Vk=function(){return this.a==(k5(),Uz)&&WUt(this,vpn(this.f,this.b)),this.a},b.Wk=function(){return 0},b.Xk=function(){return this.c==(k5(),Uz)&&XUt(this,ypn(this.f,this.b)),this.c},b.Yk=function(){return!this.d&&KUt(this,ygn(this.f,this.b)),this.d},b.ne=function(){return this.e==N6&&YUt(this,Yut(this.f,this.b)),this.e},b.Zk=function(){return this.g==-2&&ZUt(this,_ln(this.f,this.b)),this.g},b.e=N6,b.g=-2,D(Jr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1134),_(1132,1,{},sQe),b.b=!1,b.c=!1,D(Jr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1132),_(1135,1,{},Ert),b.c=-2,b.e=N6,b.f=N6,D(Jr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1135),_(576,612,Ms,dR),b.Xi=function(){return this.c},b.Ak=function(){return!1},b.gi=function(t,s){return s},b.c=0,D(Jr,"EDataTypeEList",576);var kIe=ii(Jr,"FeatureMap");_(75,576,{3:1,4:1,19:1,28:1,51:1,15:1,14:1,53:1,66:1,60:1,57:1,76:1,152:1,212:1,1909:1,67:1,95:1},hi),b.Tc=function(t,s){apn(this,t,h(s,71))},b.Dc=function(t){return R1n(this,h(t,71))},b.Th=function(t){jQt(this,h(t,71))},b.Zi=function(t,s){return bXt(this,h(t,71),s)},b.$i=function(t,s){return Upe(this,h(t,71),s)},b.di=function(t,s){return Ngn(this,t,s)},b.gi=function(t,s){return uvn(this,t,h(s,71))},b.Zc=function(t,s){return e0n(this,t,h(s,71))},b.ej=function(t,s){return mXt(this,h(t,71),s)},b.fj=function(t,s){return MJe(this,h(t,71),s)},b.gj=function(t,s,a){return gln(this,h(t,71),h(s,71),a)},b.ji=function(t,s){return xZ(this,t,h(s,71))},b.$k=function(t,s){return mwe(this,t,s)},b.Uc=function(t,s){var a,l,f,v,w,S,C,A,M;for(A=new fm(s.gc()),f=s.Ic();f.Ob();)if(l=h(f.Pb(),71),v=l.Xj(),w1(this.e,v))(!v.ci()||!a$(this,v,l.bd())&&!o6(A,l))&&_n(A,l);else{for(M=tc(this.e.Og(),v),a=h(this.g,118),w=!0,S=0;S=0;)if(s=t[this.c],this.k.ml(s.Xj()))return this.j=this.f?s:s.bd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},D(Jr,"BasicFeatureMap/FeatureEIterator",405),_(650,405,jh,VX),b.Gk=function(){return!0},D(Jr,"BasicFeatureMap/ResolvingFeatureEIterator",650),_(961,481,uB,XQe),b.Bi=function(){return this},D(Jr,"EContentsEList/1",961),_(962,481,uB,wQe),b.Gk=function(){return!1},D(Jr,"EContentsEList/2",962),_(960,277,lB,KQe),b.Ik=function(t){},b.Ob=function(){return!1},b.Sb=function(){return!1},D(Jr,"EContentsEList/FeatureIteratorImpl/1",960),_(804,576,Ms,H1e),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EDataTypeEList/Unsettable",804),_(1821,576,Ms,nZe),b.ci=function(){return!0},D(Jr,"EDataTypeUniqueEList",1821),_(1822,804,Ms,rZe),b.ci=function(){return!0},D(Jr,"EDataTypeUniqueEList/Unsettable",1822),_(139,82,Ms,Ac),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentEList/Resolving",139),_(1136,538,Ms,iZe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentEList/Unsettable/Resolving",1136),_(731,16,Ms,Npe),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectContainmentWithInverseEList/Unsettable",731),_(1146,731,Ms,gJe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1146),_(726,488,Ms,q1e),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectEList/Unsettable",726),_(326,488,Ms,Yw),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectResolvingEList",326),_(1611,726,Ms,oZe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectResolvingEList/Unsettable",1611),_(1352,1,{},FVe);var _Et;D(Jr,"EObjectValidator",1352),_(539,488,Ms,OR),b.uk=function(){return this.d},b.vk=function(){return this.b},b.Yi=function(){return!0},b.yk=function(){return!0},b.b=0,D(Jr,"EObjectWithInverseEList",539),_(1149,539,Ms,bJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseEList/ManyInverse",1149),_(615,539,Ms,cK),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EObjectWithInverseEList/Unsettable",615),_(1148,615,Ms,mJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseEList/Unsettable/ManyInverse",1148),_(732,539,Ms,jpe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectWithInverseResolvingEList",732),_(33,732,Ms,Ht),b.xk=function(){return!0},D(Jr,"EObjectWithInverseResolvingEList/ManyInverse",33),_(733,615,Ms,Rpe),b.zk=function(){return!0},b.gi=function(t,s){return r4(this,t,h(s,55))},D(Jr,"EObjectWithInverseResolvingEList/Unsettable",733),_(1147,733,Ms,vJe),b.xk=function(){return!0},D(Jr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1147),_(1137,612,Ms),b.Xh=function(){return(this.b&1792)==0},b.Zh=function(){this.b|=1},b.wk=function(){return(this.b&4)!=0},b.Yi=function(){return(this.b&40)!=0},b.xk=function(){return(this.b&16)!=0},b.yk=function(){return(this.b&8)!=0},b.zk=function(){return(this.b&jy)!=0},b.mk=function(){return(this.b&32)!=0},b.Ak=function(){return(this.b&mf)!=0},b.rj=function(t){return this.d?Jrt(this.d,t):this.Xj().Tj().rj(t)},b.aj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},b.ci=function(){return(this.b&128)!=0},b.Sj=function(){var t;Cn(this),(this.b&2)!=0&&(bu(this.e)?(t=(this.b&1)!=0,this.b&=-2,WS(this,new df(this.e,2,ti(this.e.Og(),this.Xj()),t,!1))):this.b&=-2)},b.ii=function(){return(this.b&1536)==0},b.b=0,D(Jr,"EcoreEList/Generic",1137),_(1138,1137,Ms,pnt),b.Xj=function(){return this.a},D(Jr,"EcoreEList/Dynamic",1138),_(730,60,oh,Kde),b.mi=function(t){return WA(this.a.a,t)},D(Jr,"EcoreEMap/1",730),_(729,82,Ms,M0e),b.Yh=function(t,s){TL(this.b,h(s,133))},b.$h=function(t,s){Wat(this.b)},b._h=function(t,s,a){var l;++(l=this.b,h(s,133),l).e},b.ai=function(t,s){PQ(this.b,h(s,133))},b.bi=function(t,s,a){PQ(this.b,h(a,133)),Pe(a)===Pe(s)&&h(a,133).Oh(TWt(h(s,133).ad())),TL(this.b,h(s,133))},D(Jr,"EcoreEMap/DelegateEObjectContainmentEList",729),_(1144,143,r4e,tat),D(Jr,"EcoreEMap/Unsettable",1144),_(1145,729,Ms,yJe),b.Zh=function(){this.a=!0},b.aj=function(){return this.a},b.Sj=function(){var t;Cn(this),bu(this.e)?(t=this.a,this.a=!1,Ar(this.e,new df(this.e,2,this.c,t,!1))):this.a=!1},b.a=!1,D(Jr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1145),_(1141,226,_2,dtt),b.a=!1,b.b=!1,D(Jr,"EcoreUtil/Copier",1141),_(728,1,bo,Urt),b.Nb=function(t){yo(this,t)},b.Ob=function(){return Mut(this)},b.Pb=function(){var t;return Mut(this),t=this.b,this.b=null,t},b.Qb=function(){this.a.Qb()},D(Jr,"EcoreUtil/ProperContentIterator",728),_(1353,1352,{},NUe);var MEt;D(Jr,"EcoreValidator",1353);var DEt;ii(Jr,"FeatureMapUtil/Validator"),_(1234,1,{1914:1},zVe),b.ml=function(t){return!0},D(Jr,"FeatureMapUtil/1",1234),_(740,1,{1914:1},Wwe),b.ml=function(t){var s;return this.c==t?!0:(s=It(qn(this.a,t)),s==null?Z0n(this,t)?(Wit(this.a,t,(Zt(),$6)),!0):(Wit(this.a,t,(Zt(),tb)),!1):s==(Zt(),$6))},b.e=!1;var yoe;D(Jr,"FeatureMapUtil/BasicValidator",740),_(741,44,_2,W1e),D(Jr,"FeatureMapUtil/BasicValidator/Cache",741),_(492,51,{19:1,28:1,51:1,15:1,14:1,57:1,76:1,67:1,95:1},QT),b.Tc=function(t,s){Kht(this.c,this.b,t,s)},b.Dc=function(t){return mwe(this.c,this.b,t)},b.Uc=function(t,s){return amn(this.c,this.b,t,s)},b.Ec=function(t){return $C(this,t)},b.Sh=function(t,s){Hnn(this.c,this.b,t,s)},b.gk=function(t,s){return fwe(this.c,this.b,t,s)},b.ki=function(t){return oF(this.c,this.b,t,!1)},b.Uh=function(){return _Qe(this.c,this.b)},b.Vh=function(){return hWt(this.c,this.b)},b.Wh=function(t){return Xtn(this.c,this.b,t)},b.hk=function(t,s){return YZe(this,t,s)},b.$b=function(){b3(this)},b.Fc=function(t){return a$(this.c,this.b,t)},b.Gc=function(t){return Wrn(this.c,this.b,t)},b.Xb=function(t){return oF(this.c,this.b,t,!0)},b.Rj=function(t){return this},b.Vc=function(t){return rtn(this.c,this.b,t)},b.dc=function(){return Fj(this)},b.aj=function(){return!pP(this.c,this.b)},b.Ic=function(){return Mnn(this.c,this.b)},b.Wc=function(){return Dnn(this.c,this.b)},b.Xc=function(t){return Hon(this.c,this.b,t)},b.di=function(t,s){return hpt(this.c,this.b,t,s)},b.ei=function(t,s){Btn(this.c,this.b,t,s)},b.Yc=function(t){return edt(this.c,this.b,t)},b.Kc=function(t){return Sgn(this.c,this.b,t)},b.Zc=function(t,s){return wpt(this.c,this.b,t,s)},b.Wb=function(t){zL(this.c,this.b),$C(this,h(t,14))},b.gc=function(){return Jon(this.c,this.b)},b.Nc=function(){return den(this.c,this.b)},b.Oc=function(t){return itn(this.c,this.b,t)},b.Ib=function(){var t,s;for(s=new X1,s.a+="[",t=_Qe(this.c,this.b);yQ(t);)is(s,eA(CL(t))),yQ(t)&&(s.a+=Fo);return s.a+="]",s.a},b.Sj=function(){zL(this.c,this.b)},D(Jr,"FeatureMapUtil/FeatureEList",492),_(619,35,yO,EY),b.ti=function(t){return C8(this,t)},b.yi=function(t){var s,a,l,f,v,w,S;switch(this.d){case 1:case 2:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.g=t.ui(),t.si()==1&&(this.d=1),!0;break}case 3:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=5,s=new fm(2),_n(s,this.g),_n(s,t.ui()),this.g=s,!0;break}}break}case 5:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return a=h(this.g,15),a.Dc(t.ui()),!0;break}}break}case 4:{switch(f=t.si(),f){case 3:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=1,this.g=t.ui(),!0;break}case 4:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return this.d=6,S=new fm(2),_n(S,this.n),_n(S,t.wi()),this.n=S,w=re(ne(Pn,1),rr,24,15,[this.o,t.xi()]),this.g=w,!0;break}}break}case 6:{switch(f=t.si(),f){case 4:{if(v=t.vi(),Pe(v)===Pe(this.c)&&C8(this,null)==t.ti(null))return a=h(this.n,15),a.Dc(t.wi()),w=h(this.g,47),l=ge(Pn,rr,24,w.length+1,15,1),Sa(w,0,l,0,w.length),l[w.length]=t.xi(),this.g=l,!0;break}}break}}return!1},D(Jr,"FeatureMapUtil/FeatureENotificationImpl",619),_(547,492,{19:1,28:1,51:1,15:1,14:1,57:1,76:1,152:1,212:1,1909:1,67:1,95:1},gR),b.$k=function(t,s){return mwe(this.c,t,s)},b._k=function(t,s,a){return fwe(this.c,t,s,a)},b.al=function(t,s,a){return Nwe(this.c,t,s,a)},b.bl=function(){return this},b.cl=function(t,s){return HP(this.c,t,s)},b.dl=function(t){return h(oF(this.c,this.b,t,!1),71).Xj()},b.el=function(t){return h(oF(this.c,this.b,t,!1),71).bd()},b.fl=function(){return this.a},b.gl=function(t){return!pP(this.c,t)},b.hl=function(t,s){sF(this.c,t,s)},b.il=function(t){return sat(this.c,t)},b.jl=function(t){Dlt(this.c,t)},D(Jr,"FeatureMapUtil/FeatureFeatureMap",547),_(1233,1,Hte,iQe),b.Rj=function(t){return oF(this.b,this.a,-1,t)},b.aj=function(){return!pP(this.b,this.a)},b.Wb=function(t){sF(this.b,this.a,t)},b.Sj=function(){zL(this.b,this.a)},D(Jr,"FeatureMapUtil/FeatureValue",1233);var q4,woe,xoe,W4,NEt,D_=ii(vB,"AnyType");_(654,59,S1,nX),D(vB,"InvalidDatatypeValueException",654);var qz=ii(vB,zvt),N_=ii(vB,Uvt),CIe=ii(vB,Hvt),jEt,ha,IIe,gb,REt,$Et,LEt,FEt,BEt,VEt,zEt,UEt,HEt,qEt,WEt,hx,GEt,px,I9,XEt,ev,j_,R_,KEt,T9,A9;_(809,498,{104:1,91:1,89:1,55:1,48:1,96:1,822:1},ghe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.c&&(this.c=new hi(this,0)),this.c):(!this.c&&(this.c=new hi(this,0)),this.c.b);case 1:return a?(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)):(!this.c&&(this.c=new hi(this,0)),h(h(Aa(this.c,($r(),gb)),152),212)).fl();case 2:return a?(!this.b&&(this.b=new hi(this,2)),this.b):(!this.b&&(this.b=new hi(this,2)),this.b.b)}return ll(this,t-dn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.eh=function(t,s,a){var l;switch(s){case 0:return!this.c&&(this.c=new hi(this,0)),BP(this.c,t,a);case 1:return(!this.c&&(this.c=new hi(this,0)),h(h(Aa(this.c,($r(),gb)),152),67)).hk(t,a);case 2:return!this.b&&(this.b=new hi(this,2)),BP(this.b,t,a)}return l=h(Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),s),65),l.Ij().Mj(this,abe(this),s-dn(this.uh()),t,a)},b.gh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)).dc();case 2:return!!this.b&&this.b.i!=0}return ul(this,t-dn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),yA(this.c,s);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(h(Aa(this.c,($r(),gb)),152),212)).Wb(s);return;case 2:!this.b&&(this.b=new hi(this,2)),yA(this.b,s);return}pl(this,t-dn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),IIe},b.wh=function(t){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),Cn(this.c);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)).$b();return;case 2:!this.b&&(this.b=new hi(this,2)),Cn(this.b);return}hl(this,t-dn(this.uh()),Dt((this.j&2)==0?this.uh():(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (mixed: ",DC(t,this.c),t.a+=", anyAttribute: ",DC(t,this.b),t.a+=")",t.a)},D(Ti,"AnyTypeImpl",809),_(655,498,{104:1,91:1,89:1,55:1,48:1,96:1,1990:1,655:1},UVe),b.Wg=function(t,s,a){switch(t){case 0:return this.a;case 1:return this.b}return ll(this,t-dn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.gh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return ul(this,t-dn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:iHt(this,Fn(s));return;case 1:sHt(this,Fn(s));return}pl(this,t-dn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),hx},b.wh=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}hl(this,t-dn(($r(),hx)),Dt((this.j&2)==0?hx:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (data: ",is(t,this.a),t.a+=", target: ",is(t,this.b),t.a+=")",t.a)},b.a=null,b.b=null,D(Ti,"ProcessingInstructionImpl",655),_(656,809,{104:1,91:1,89:1,55:1,48:1,96:1,822:1,1991:1,656:1},QGe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.c&&(this.c=new hi(this,0)),this.c):(!this.c&&(this.c=new hi(this,0)),this.c.b);case 1:return a?(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)):(!this.c&&(this.c=new hi(this,0)),h(h(Aa(this.c,($r(),gb)),152),212)).fl();case 2:return a?(!this.b&&(this.b=new hi(this,2)),this.b):(!this.b&&(this.b=new hi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new hi(this,0)),Fn(HP(this.c,($r(),I9),!0));case 4:return Fpe(this.a,(!this.c&&(this.c=new hi(this,0)),Fn(HP(this.c,($r(),I9),!0))));case 5:return this.a}return ll(this,t-dn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.gh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new hi(this,0)),Fn(HP(this.c,($r(),I9),!0))!=null;case 4:return Fpe(this.a,(!this.c&&(this.c=new hi(this,0)),Fn(HP(this.c,($r(),I9),!0))))!=null;case 5:return!!this.a}return ul(this,t-dn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),yA(this.c,s);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(h(Aa(this.c,($r(),gb)),152),212)).Wb(s);return;case 2:!this.b&&(this.b=new hi(this,2)),yA(this.b,s);return;case 3:wge(this,Fn(s));return;case 4:wge(this,Lpe(this.a,s));return;case 5:oHt(this,h(s,148));return}pl(this,t-dn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),px},b.wh=function(t){switch(t){case 0:!this.c&&(this.c=new hi(this,0)),Cn(this.c);return;case 1:(!this.c&&(this.c=new hi(this,0)),h(Aa(this.c,($r(),gb)),152)).$b();return;case 2:!this.b&&(this.b=new hi(this,2)),Cn(this.b);return;case 3:!this.c&&(this.c=new hi(this,0)),sF(this.c,($r(),I9),null);return;case 4:wge(this,Lpe(this.a,null));return;case 5:this.a=null;return}hl(this,t-dn(($r(),px)),Dt((this.j&2)==0?px:(!this.k&&(this.k=new Of),this.k).Zj(),t))},D(Ti,"SimpleAnyTypeImpl",656),_(657,498,{104:1,91:1,89:1,55:1,48:1,96:1,1992:1,657:1},YGe),b.Wg=function(t,s,a){switch(t){case 0:return a?(!this.a&&(this.a=new hi(this,0)),this.a):(!this.a&&(this.a=new hi(this,0)),this.a.b);case 1:return a?(!this.b&&(this.b=new tu((At(),zo),na,this,1)),this.b):(!this.b&&(this.b=new tu((At(),zo),na,this,1)),DA(this.b));case 2:return a?(!this.c&&(this.c=new tu((At(),zo),na,this,2)),this.c):(!this.c&&(this.c=new tu((At(),zo),na,this,2)),DA(this.c));case 3:return!this.a&&(this.a=new hi(this,0)),Aa(this.a,($r(),j_));case 4:return!this.a&&(this.a=new hi(this,0)),Aa(this.a,($r(),R_));case 5:return!this.a&&(this.a=new hi(this,0)),Aa(this.a,($r(),T9));case 6:return!this.a&&(this.a=new hi(this,0)),Aa(this.a,($r(),A9))}return ll(this,t-dn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t),s,a)},b.eh=function(t,s,a){var l;switch(s){case 0:return!this.a&&(this.a=new hi(this,0)),BP(this.a,t,a);case 1:return!this.b&&(this.b=new tu((At(),zo),na,this,1)),sR(this.b,t,a);case 2:return!this.c&&(this.c=new tu((At(),zo),na,this,2)),sR(this.c,t,a);case 5:return!this.a&&(this.a=new hi(this,0)),YZe(Aa(this.a,($r(),T9)),t,a)}return l=h(Dt((this.j&2)==0?($r(),ev):(!this.k&&(this.k=new Of),this.k).Zj(),s),65),l.Ij().Mj(this,abe(this),s-dn(($r(),ev)),t,a)},b.gh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new hi(this,0)),!Fj(Aa(this.a,($r(),j_)));case 4:return!this.a&&(this.a=new hi(this,0)),!Fj(Aa(this.a,($r(),R_)));case 5:return!this.a&&(this.a=new hi(this,0)),!Fj(Aa(this.a,($r(),T9)));case 6:return!this.a&&(this.a=new hi(this,0)),!Fj(Aa(this.a,($r(),A9)))}return ul(this,t-dn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.nh=function(t,s){switch(t){case 0:!this.a&&(this.a=new hi(this,0)),yA(this.a,s);return;case 1:!this.b&&(this.b=new tu((At(),zo),na,this,1)),q$(this.b,s);return;case 2:!this.c&&(this.c=new tu((At(),zo),na,this,2)),q$(this.c,s);return;case 3:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),j_))),!this.a&&(this.a=new hi(this,0)),$C(Aa(this.a,j_),h(s,15));return;case 4:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),R_))),!this.a&&(this.a=new hi(this,0)),$C(Aa(this.a,R_),h(s,15));return;case 5:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),T9))),!this.a&&(this.a=new hi(this,0)),$C(Aa(this.a,T9),h(s,15));return;case 6:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),A9))),!this.a&&(this.a=new hi(this,0)),$C(Aa(this.a,A9),h(s,15));return}pl(this,t-dn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t),s)},b.uh=function(){return $r(),ev},b.wh=function(t){switch(t){case 0:!this.a&&(this.a=new hi(this,0)),Cn(this.a);return;case 1:!this.b&&(this.b=new tu((At(),zo),na,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new tu((At(),zo),na,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),j_)));return;case 4:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),R_)));return;case 5:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),T9)));return;case 6:!this.a&&(this.a=new hi(this,0)),b3(Aa(this.a,($r(),A9)));return}hl(this,t-dn(($r(),ev)),Dt((this.j&2)==0?ev:(!this.k&&(this.k=new Of),this.k).Zj(),t))},b.Ib=function(){var t;return(this.j&4)!=0?gf(this):(t=new _l(gf(this)),t.a+=" (mixed: ",DC(t,this.a),t.a+=")",t.a)},D(Ti,"XMLTypeDocumentRootImpl",657),_(1891,696,{104:1,91:1,89:1,465:1,147:1,55:1,107:1,48:1,96:1,150:1,113:1,116:1,1993:1},VVe),b.Dh=function(t,s){switch(t.tj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return s==null?null:Bs(s);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Fn(s);case 6:return TGt(h(s,190));case 12:case 47:case 49:case 11:return u0t(this,t,s);case 13:return s==null?null:Kbn(h(s,239));case 15:case 14:return s==null?null:IQt(Ae(Xe(s)));case 17:return hft(($r(),s));case 18:return hft(s);case 21:case 20:return s==null?null:TQt(h(s,155).a);case 27:return AGt(h(s,190));case 30:return Nlt(($r(),h(s,14)));case 31:return Nlt(h(s,14));case 40:return OGt(($r(),s));case 42:return pft(($r(),s));case 43:return pft(s);case 59:case 48:return PGt(($r(),s));default:throw ee(new Gt(_6+t.ne()+jm))}},b.Eh=function(t){var s,a,l,f,v;switch(t.G==-1&&(t.G=(a=Bu(t),a?up(a.Hh(),t):-1)),t.G){case 0:return s=new ghe,s;case 1:return l=new UVe,l;case 2:return f=new QGe,f;case 3:return v=new YGe,v;default:throw ee(new Gt(Tte+t.zb+jm))}},b.Fh=function(t,s){var a,l,f,v,w,S,C,A,M,R,V,q,W,J,oe,de;switch(t.tj()){case 5:case 52:case 4:return s;case 6:return Dan(s);case 8:case 7:return s==null?null:Eln(s);case 9:return s==null?null:VA(Uu((l=Ma(s,!0),l.length>0&&(Bn(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l),-128,127)<<24>>24);case 10:return s==null?null:VA(Uu((f=Ma(s,!0),f.length>0&&(Bn(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),-128,127)<<24>>24);case 11:return Fn(Am(this,($r(),LEt),s));case 12:return Fn(Am(this,($r(),FEt),s));case 13:return s==null?null:new Lhe(Ma(s,!0));case 15:case 14:return B1n(s);case 16:return Fn(Am(this,($r(),BEt),s));case 17:return Fut(($r(),s));case 18:return Fut(s);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ma(s,!0);case 21:case 20:return X1n(s);case 22:return Fn(Am(this,($r(),VEt),s));case 23:return Fn(Am(this,($r(),zEt),s));case 24:return Fn(Am(this,($r(),UEt),s));case 25:return Fn(Am(this,($r(),HEt),s));case 26:return Fn(Am(this,($r(),qEt),s));case 27:return Can(s);case 30:return But(($r(),s));case 31:return But(s);case 32:return s==null?null:Ue(Uu((M=Ma(s,!0),M.length>0&&(Bn(0,M.length),M.charCodeAt(0)==43)?M.substr(1):M),ko,Ir));case 33:return s==null?null:new Jp((R=Ma(s,!0),R.length>0&&(Bn(0,R.length),R.charCodeAt(0)==43)?R.substr(1):R));case 34:return s==null?null:Ue(Uu((V=Ma(s,!0),V.length>0&&(Bn(0,V.length),V.charCodeAt(0)==43)?V.substr(1):V),ko,Ir));case 36:return s==null?null:$g(fF((q=Ma(s,!0),q.length>0&&(Bn(0,q.length),q.charCodeAt(0)==43)?q.substr(1):q)));case 37:return s==null?null:$g(fF((W=Ma(s,!0),W.length>0&&(Bn(0,W.length),W.charCodeAt(0)==43)?W.substr(1):W)));case 40:return Gsn(($r(),s));case 42:return Vut(($r(),s));case 43:return Vut(s);case 44:return s==null?null:new Jp((J=Ma(s,!0),J.length>0&&(Bn(0,J.length),J.charCodeAt(0)==43)?J.substr(1):J));case 45:return s==null?null:new Jp((oe=Ma(s,!0),oe.length>0&&(Bn(0,oe.length),oe.charCodeAt(0)==43)?oe.substr(1):oe));case 46:return Ma(s,!1);case 47:return Fn(Am(this,($r(),WEt),s));case 59:case 48:return Wsn(($r(),s));case 49:return Fn(Am(this,($r(),GEt),s));case 50:return s==null?null:K5(Uu((de=Ma(s,!0),de.length>0&&(Bn(0,de.length),de.charCodeAt(0)==43)?de.substr(1):de),pB,32767)<<16>>16);case 51:return s==null?null:K5(Uu((v=Ma(s,!0),v.length>0&&(Bn(0,v.length),v.charCodeAt(0)==43)?v.substr(1):v),pB,32767)<<16>>16);case 53:return Fn(Am(this,($r(),XEt),s));case 55:return s==null?null:K5(Uu((w=Ma(s,!0),w.length>0&&(Bn(0,w.length),w.charCodeAt(0)==43)?w.substr(1):w),pB,32767)<<16>>16);case 56:return s==null?null:K5(Uu((S=Ma(s,!0),S.length>0&&(Bn(0,S.length),S.charCodeAt(0)==43)?S.substr(1):S),pB,32767)<<16>>16);case 57:return s==null?null:$g(fF((C=Ma(s,!0),C.length>0&&(Bn(0,C.length),C.charCodeAt(0)==43)?C.substr(1):C)));case 58:return s==null?null:$g(fF((A=Ma(s,!0),A.length>0&&(Bn(0,A.length),A.charCodeAt(0)==43)?A.substr(1):A)));case 60:return s==null?null:Ue(Uu((a=Ma(s,!0),a.length>0&&(Bn(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a),ko,Ir));case 61:return s==null?null:Ue(Uu(Ma(s,!0),ko,Ir));default:throw ee(new Gt(_6+t.ne()+jm))}};var YEt,TIe,QEt,AIe;D(Ti,"XMLTypeFactoryImpl",1891),_(577,179,{104:1,91:1,89:1,147:1,191:1,55:1,234:1,107:1,48:1,96:1,150:1,179:1,113:1,116:1,663:1,1917:1,577:1},Dtt),b.N=!1,b.O=!1;var ZEt=!1;D(Ti,"XMLTypePackageImpl",577),_(1824,1,{815:1},HVe),b.Wj=function(){return Cwe(),akt},D(Ti,"XMLTypePackageImpl/1",1824),_(1833,1,fr,BVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/10",1833),_(1834,1,fr,qVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/11",1834),_(1835,1,fr,WVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/12",1835),_(1836,1,fr,GVe),b.rj=function(t){return $v(t)},b.sj=function(t){return ge(Io,Oe,331,t,7,1)},D(Ti,"XMLTypePackageImpl/13",1836),_(1837,1,fr,XVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/14",1837),_(1838,1,fr,KVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/15",1838),_(1839,1,fr,YVe),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/16",1839),_(1840,1,fr,QVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/17",1840),_(1841,1,fr,ZVe),b.rj=function(t){return ue(t,155)},b.sj=function(t){return ge(L6,Oe,155,t,0,1)},D(Ti,"XMLTypePackageImpl/18",1841),_(1842,1,fr,JVe),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/19",1842),_(1825,1,fr,eze),b.rj=function(t){return ue(t,822)},b.sj=function(t){return ge(D_,rt,822,t,0,1)},D(Ti,"XMLTypePackageImpl/2",1825),_(1843,1,fr,tze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/20",1843),_(1844,1,fr,nze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/21",1844),_(1845,1,fr,rze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/22",1845),_(1846,1,fr,ize),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/23",1846),_(1847,1,fr,oze),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Fc,Oe,190,t,0,2)},D(Ti,"XMLTypePackageImpl/24",1847),_(1848,1,fr,sze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/25",1848),_(1849,1,fr,aze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/26",1849),_(1850,1,fr,cze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/27",1850),_(1851,1,fr,uze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/28",1851),_(1852,1,fr,lze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/29",1852),_(1826,1,fr,fze),b.rj=function(t){return ue(t,655)},b.sj=function(t){return ge(qz,rt,1990,t,0,1)},D(Ti,"XMLTypePackageImpl/3",1826),_(1853,1,fr,dze),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(Do,Oe,20,t,0,1)},D(Ti,"XMLTypePackageImpl/30",1853),_(1854,1,fr,hze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/31",1854),_(1855,1,fr,pze),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(Ti,"XMLTypePackageImpl/32",1855),_(1856,1,fr,gze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/33",1856),_(1857,1,fr,bze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/34",1857),_(1858,1,fr,mze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/35",1858),_(1859,1,fr,vze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/36",1859),_(1860,1,fr,yze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/37",1860),_(1861,1,fr,wze),b.rj=function(t){return ue(t,14)},b.sj=function(t){return ge(vl,Ay,14,t,0,1)},D(Ti,"XMLTypePackageImpl/38",1861),_(1862,1,fr,xze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/39",1862),_(1827,1,fr,Sze),b.rj=function(t){return ue(t,656)},b.sj=function(t){return ge(N_,rt,1991,t,0,1)},D(Ti,"XMLTypePackageImpl/4",1827),_(1863,1,fr,Eze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/40",1863),_(1864,1,fr,kze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/41",1864),_(1865,1,fr,Cze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/42",1865),_(1866,1,fr,Ize),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/43",1866),_(1867,1,fr,Tze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/44",1867),_(1868,1,fr,Aze),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(Ti,"XMLTypePackageImpl/45",1868),_(1869,1,fr,Pze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/46",1869),_(1870,1,fr,Oze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/47",1870),_(1871,1,fr,_ze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/48",1871),_(1872,1,fr,Mze),b.rj=function(t){return ue(t,186)},b.sj=function(t){return ge(Lm,Oe,186,t,0,1)},D(Ti,"XMLTypePackageImpl/49",1872),_(1828,1,fr,Dze),b.rj=function(t){return ue(t,657)},b.sj=function(t){return ge(CIe,rt,1992,t,0,1)},D(Ti,"XMLTypePackageImpl/5",1828),_(1873,1,fr,Nze),b.rj=function(t){return ue(t,162)},b.sj=function(t){return ge($m,Oe,162,t,0,1)},D(Ti,"XMLTypePackageImpl/50",1873),_(1874,1,fr,jze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/51",1874),_(1875,1,fr,Rze),b.rj=function(t){return ue(t,20)},b.sj=function(t){return ge(Do,Oe,20,t,0,1)},D(Ti,"XMLTypePackageImpl/52",1875),_(1829,1,fr,$ze),b.rj=function(t){return to(t)},b.sj=function(t){return ge(Qe,Oe,2,t,6,1)},D(Ti,"XMLTypePackageImpl/6",1829),_(1830,1,fr,Lze),b.rj=function(t){return ue(t,190)},b.sj=function(t){return ge(Fc,Oe,190,t,0,2)},D(Ti,"XMLTypePackageImpl/7",1830),_(1831,1,fr,Fze),b.rj=function(t){return Rv(t)},b.sj=function(t){return ge(io,Oe,470,t,8,1)},D(Ti,"XMLTypePackageImpl/8",1831),_(1832,1,fr,Bze),b.rj=function(t){return ue(t,215)},b.sj=function(t){return ge(y4,Oe,215,t,0,1)},D(Ti,"XMLTypePackageImpl/9",1832);var Od,_p,P9,Wz,se;_(50,59,S1,Ln),D(mp,"RegEx/ParseException",50),_(799,1,{},dde),b.nl=function(t){return ta*16)throw ee(new Ln(Xn((jn(),tvt))));a=a*16+f}while(!0);if(this.a!=125)throw ee(new Ln(Xn((jn(),nvt))));if(a>j6)throw ee(new Ln(Xn((jn(),rvt))));t=a}else{if(f=0,this.c!=0||(f=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(a=f,xr(this),this.c!=0||(f=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));a=a*16+f,t=a}break;case 117:if(l=0,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));s=s*16+l,t=s;break;case 118:if(xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,xr(this),this.c!=0||(l=Fg(this.a))<0)throw ee(new Ln(Xn((jn(),bp))));if(s=s*16+l,s>j6)throw ee(new Ln(Xn((jn(),"parser.descappe.4"))));t=s;break;case 65:case 90:case 122:throw ee(new Ln(Xn((jn(),ivt))))}return t},b.pl=function(t){var s,a;switch(t){case 100:a=(this.e&32)==32?y0("Nd",!0):(Er(),Gz);break;case 68:a=(this.e&32)==32?y0("Nd",!1):(Er(),NIe);break;case 119:a=(this.e&32)==32?y0("IsWord",!0):(Er(),IE);break;case 87:a=(this.e&32)==32?y0("IsWord",!1):(Er(),RIe);break;case 115:a=(this.e&32)==32?y0("IsSpace",!0):(Er(),G4);break;case 83:a=(this.e&32)==32?y0("IsSpace",!1):(Er(),jIe);break;default:throw ee(new Ws((s=t,iyt+s.toString(16))))}return a},b.ql=function(t){var s,a,l,f,v,w,S,C,A,M,R,V;for(this.b=1,xr(this),s=null,this.c==0&&this.a==94?(xr(this),t?M=(Er(),Er(),new Lu(5)):(s=(Er(),Er(),new Lu(4)),_a(s,0,j6),M=new Lu(4))):M=(Er(),Er(),new Lu(4)),f=!0;(V=this.c)!=1&&!(V==0&&this.a==93&&!f);){if(f=!1,a=this.a,l=!1,V==10)switch(a){case 100:case 68:case 119:case 87:case 115:case 83:ky(M,this.pl(a)),l=!0;break;case 105:case 73:case 99:case 67:a=this.Gl(M,a),a<0&&(l=!0);break;case 112:case 80:if(R=kye(this,a),!R)throw ee(new Ln(Xn((jn(),Vte))));ky(M,R),l=!0;break;default:a=this.ol()}else if(V==20){if(w=a5(this.i,58,this.d),w<0)throw ee(new Ln(Xn((jn(),Q3e))));if(S=!0,po(this.i,this.d)==94&&(++this.d,S=!1),v=Ru(this.i,this.d,w),C=Oot(v,S,(this.e&512)==512),!C)throw ee(new Ln(Xn((jn(),Ymt))));if(ky(M,C),l=!0,w+1>=this.j||po(this.i,w+1)!=93)throw ee(new Ln(Xn((jn(),Q3e))));this.d=w+2}if(xr(this),!l)if(this.c!=0||this.a!=45)_a(M,a,a);else{if(xr(this),(V=this.c)==1)throw ee(new Ln(Xn((jn(),aB))));V==0&&this.a==93?(_a(M,a,a),_a(M,45,45)):(A=this.a,V==10&&(A=this.ol()),xr(this),_a(M,a,A))}(this.e&mf)==mf&&this.c==0&&this.a==44&&xr(this)}if(this.c==1)throw ee(new Ln(Xn((jn(),aB))));return s&&(K8(s,M),M=s),x2(M),G8(M),this.b=0,xr(this),M},b.rl=function(){var t,s,a,l;for(a=this.ql(!1);(l=this.c)!=7;)if(t=this.a,l==0&&(t==45||t==38)||l==4){if(xr(this),this.c!=9)throw ee(new Ln(Xn((jn(),Zmt))));if(s=this.ql(!1),l==4)ky(a,s);else if(t==45)K8(a,s);else if(t==38)o0t(a,s);else throw ee(new Ws("ASSERT"))}else throw ee(new Ln(Xn((jn(),Jmt))));return xr(this),a},b.sl=function(){var t,s;return t=this.a-48,s=(Er(),Er(),new sY(12,null,t)),!this.g&&(this.g=new JN),ZN(this.g,new Yde(t)),xr(this),s},b.tl=function(){return xr(this),Er(),tkt},b.ul=function(){return xr(this),Er(),ekt},b.vl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.wl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.xl=function(){return xr(this),Win()},b.yl=function(){return xr(this),Er(),rkt},b.zl=function(){return xr(this),Er(),okt},b.Al=function(){var t;if(this.d>=this.j||((t=po(this.i,this.d++))&65504)!=64)throw ee(new Ln(Xn((jn(),Gmt))));return xr(this),Er(),Er(),new Ch(0,t-64)},b.Bl=function(){return xr(this),Ebn()},b.Cl=function(){return xr(this),Er(),skt},b.Dl=function(){var t;return t=(Er(),Er(),new Ch(0,105)),xr(this),t},b.El=function(){return xr(this),Er(),ikt},b.Fl=function(){return xr(this),Er(),nkt},b.Gl=function(t,s){return this.ol()},b.Hl=function(){return xr(this),Er(),MIe},b.Il=function(){var t,s,a,l,f;if(this.d+1>=this.j)throw ee(new Ln(Xn((jn(),Hmt))));if(l=-1,s=null,t=po(this.i,this.d),49<=t&&t<=57){if(l=t-48,!this.g&&(this.g=new JN),ZN(this.g,new Yde(l)),++this.d,po(this.i,this.d)!=41)throw ee(new Ln(Xn((jn(),Zg))));++this.d}else switch(t==63&&--this.d,xr(this),s=Ywe(this),s.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));break;default:throw ee(new Ln(Xn((jn(),qmt))))}if(xr(this),f=wm(this),a=null,f.e==2){if(f._l()!=2)throw ee(new Ln(Xn((jn(),Wmt))));a=f.Xl(1),f=f.Xl(0)}if(this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),Er(),Er(),new cst(l,s,f,a)},b.Jl=function(){return xr(this),Er(),DIe},b.Kl=function(){var t;if(xr(this),t=_R(24,wm(this)),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Ll=function(){var t;if(xr(this),t=_R(20,wm(this)),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Ml=function(){var t;if(xr(this),t=_R(22,wm(this)),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Nl=function(){var t,s,a,l,f;for(t=0,a=0,s=-1;this.d=this.j)throw ee(new Ln(Xn((jn(),K3e))));if(s==45){for(++this.d;this.d=this.j)throw ee(new Ln(Xn((jn(),K3e))))}if(s==58){if(++this.d,xr(this),l=mtt(wm(this),t,a),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));xr(this)}else if(s==41)++this.d,xr(this),l=mtt(wm(this),t,a);else throw ee(new Ln(Xn((jn(),Umt))));return l},b.Ol=function(){var t;if(xr(this),t=_R(21,wm(this)),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Pl=function(){var t;if(xr(this),t=_R(23,wm(this)),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Ql=function(){var t,s;if(xr(this),t=this.f++,s=jK(wm(this),t),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),s},b.Rl=function(){var t;if(xr(this),t=jK(wm(this),0),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Sl=function(t){return xr(this),this.c==5?(xr(this),xR(t,(Er(),Er(),new Zv(9,t)))):xR(t,(Er(),Er(),new Zv(3,t)))},b.Tl=function(t){var s;return xr(this),s=(Er(),Er(),new RC(2)),this.c==5?(xr(this),Vg(s,_9),Vg(s,t)):(Vg(s,t),Vg(s,_9)),s},b.Ul=function(t){return xr(this),this.c==5?(xr(this),Er(),Er(),new Zv(9,t)):(Er(),Er(),new Zv(3,t))},b.a=0,b.b=0,b.c=0,b.d=0,b.e=0,b.f=1,b.g=null,b.j=0,D(mp,"RegEx/RegexParser",799),_(1796,799,{},ZGe),b.nl=function(t){return!1},b.ol=function(){return awe(this)},b.pl=function(t){return p6(t)},b.ql=function(t){return W0t(this)},b.rl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.sl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.tl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.ul=function(){throw ee(new Ln(Xn((jn(),ml))))},b.vl=function(){return xr(this),p6(67)},b.wl=function(){return xr(this),p6(73)},b.xl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.yl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.zl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Al=function(){return xr(this),p6(99)},b.Bl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Cl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Dl=function(){return xr(this),p6(105)},b.El=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Fl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Gl=function(t,s){return ky(t,p6(s)),-1},b.Hl=function(){return xr(this),Er(),Er(),new Ch(0,94)},b.Il=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Jl=function(){return xr(this),Er(),Er(),new Ch(0,36)},b.Kl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Ll=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Ml=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Nl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Ol=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Pl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Ql=function(){var t;if(xr(this),t=jK(wm(this),0),this.c!=7)throw ee(new Ln(Xn((jn(),Zg))));return xr(this),t},b.Rl=function(){throw ee(new Ln(Xn((jn(),ml))))},b.Sl=function(t){return xr(this),xR(t,(Er(),Er(),new Zv(3,t)))},b.Tl=function(t){var s;return xr(this),s=(Er(),Er(),new RC(2)),Vg(s,t),Vg(s,_9),s},b.Ul=function(t){return xr(this),Er(),Er(),new Zv(3,t)};var gx=null,kE=null;D(mp,"RegEx/ParserForXMLSchema",1796),_(117,1,R6,$b),b.Vl=function(t){throw ee(new Ws("Not supported."))},b.Wl=function(){return-1},b.Xl=function(t){return null},b.Yl=function(){return null},b.Zl=function(t){},b.$l=function(t){},b._l=function(){return 0},b.Ib=function(){return this.am(0)},b.am=function(t){return this.e==11?".":""},b.e=0;var PIe,CE,O9,JEt,OIe,sw=null,Gz,Soe=null,_Ie,_9,Eoe=null,MIe,DIe,NIe,jIe,RIe,ekt,G4,tkt,nkt,rkt,ikt,IE,okt,skt,f2n=D(mp,"RegEx/Token",117);_(136,117,{3:1,136:1,117:1},Lu),b.am=function(t){var s,a,l;if(this.e==4)if(this==_Ie)a=".";else if(this==Gz)a="\\d";else if(this==IE)a="\\w";else if(this==G4)a="\\s";else{for(l=new X1,l.a+="[",s=0;s0&&(l.a+=","),this.b[s]===this.b[s+1]?is(l,UP(this.b[s])):(is(l,UP(this.b[s])),l.a+="-",is(l,UP(this.b[s+1])));l.a+="]",a=l.a}else if(this==NIe)a="\\D";else if(this==RIe)a="\\W";else if(this==jIe)a="\\S";else{for(l=new X1,l.a+="[^",s=0;s0&&(l.a+=","),this.b[s]===this.b[s+1]?is(l,UP(this.b[s])):(is(l,UP(this.b[s])),l.a+="-",is(l,UP(this.b[s+1])));l.a+="]",a=l.a}return a},b.a=!1,b.c=!1,D(mp,"RegEx/RangeToken",136),_(575,1,{575:1},Yde),b.a=0,D(mp,"RegEx/RegexParser/ReferencePosition",575),_(574,1,{3:1,574:1},oKe),b.Fb=function(t){var s;return t==null||!ue(t,574)?!1:(s=h(t,574),kt(this.b,s.b)&&this.a==s.a)},b.Hb=function(){return lp(this.b+"/"+twe(this.a))},b.Ib=function(){return this.c.am(this.a)},b.a=0,D(mp,"RegEx/RegularExpression",574),_(221,117,R6,Ch),b.Wl=function(){return this.a},b.am=function(t){var s,a,l;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:l="\\"+sK(this.a&Ii);break;case 12:l="\\f";break;case 10:l="\\n";break;case 13:l="\\r";break;case 9:l="\\t";break;case 27:l="\\e";break;default:this.a>=Bo?(a=(s=this.a>>>0,"0"+s.toString(16)),l="\\v"+Ru(a,a.length-6,a.length)):l=""+sK(this.a&Ii)}break;case 8:this==MIe||this==DIe?l=""+sK(this.a&Ii):l="\\"+sK(this.a&Ii);break;default:l=null}return l},b.a=0,D(mp,"RegEx/Token/CharToken",221),_(307,117,R6,Zv),b.Xl=function(t){return this.a},b.Zl=function(t){this.b=t},b.$l=function(t){this.c=t},b._l=function(){return 1},b.am=function(t){var s;if(this.e==3)if(this.c<0&&this.b<0)s=this.a.am(t)+"*";else if(this.c==this.b)s=this.a.am(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)s=this.a.am(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)s=this.a.am(t)+"{"+this.c+",}";else throw ee(new Ws("Token#toString(): CLOSURE "+this.c+Fo+this.b));else if(this.c<0&&this.b<0)s=this.a.am(t)+"*?";else if(this.c==this.b)s=this.a.am(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)s=this.a.am(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)s=this.a.am(t)+"{"+this.c+",}?";else throw ee(new Ws("Token#toString(): NONGREEDYCLOSURE "+this.c+Fo+this.b));return s},b.b=0,b.c=0,D(mp,"RegEx/Token/ClosureToken",307),_(800,117,R6,F0e),b.Xl=function(t){return t==0?this.a:this.b},b._l=function(){return 2},b.am=function(t){var s;return this.b.e==3&&this.b.Xl(0)==this.a?s=this.a.am(t)+"+":this.b.e==9&&this.b.Xl(0)==this.a?s=this.a.am(t)+"+?":s=this.a.am(t)+(""+this.b.am(t)),s},D(mp,"RegEx/Token/ConcatToken",800),_(1794,117,R6,cst),b.Xl=function(t){if(t==0)return this.d;if(t==1)return this.b;throw ee(new Ws("Internal Error: "+t))},b._l=function(){return this.b?2:1},b.am=function(t){var s;return this.c>0?s="(?("+this.c+")":this.a.e==8?s="(?("+this.a+")":s="(?"+this.a,this.b?s+=this.d+"|"+this.b+")":s+=this.d+")",s},b.c=0,D(mp,"RegEx/Token/ConditionToken",1794),_(1795,117,R6,srt),b.Xl=function(t){return this.b},b._l=function(){return 1},b.am=function(t){return"(?"+(this.a==0?"":twe(this.a))+(this.c==0?"":twe(this.c))+":"+this.b.am(t)+")"},b.a=0,b.c=0,D(mp,"RegEx/Token/ModifierToken",1795),_(801,117,R6,K0e),b.Xl=function(t){return this.a},b._l=function(){return 1},b.am=function(t){var s;switch(s=null,this.e){case 6:this.b==0?s="(?:"+this.a.am(t)+")":s="("+this.a.am(t)+")";break;case 20:s="(?="+this.a.am(t)+")";break;case 21:s="(?!"+this.a.am(t)+")";break;case 22:s="(?<="+this.a.am(t)+")";break;case 23:s="(?"+this.a.am(t)+")"}return s},b.b=0,D(mp,"RegEx/Token/ParenToken",801),_(514,117,{3:1,117:1,514:1},sY),b.Yl=function(){return this.b},b.am=function(t){return this.e==12?"\\"+this.a:Fhn(this.b)},b.a=0,D(mp,"RegEx/Token/StringToken",514),_(459,117,R6,RC),b.Vl=function(t){Vg(this,t)},b.Xl=function(t){return h(rm(this.a,t),117)},b._l=function(){return this.a?this.a.a.c.length:0},b.am=function(t){var s,a,l,f,v;if(this.e==1){if(this.a.a.c.length==2)s=h(rm(this.a,0),117),a=h(rm(this.a,1),117),a.e==3&&a.Xl(0)==s?f=s.am(t)+"+":a.e==9&&a.Xl(0)==s?f=s.am(t)+"+?":f=s.am(t)+(""+a.am(t));else{for(v=new X1,l=0;l=this.c.b:this.a<=this.c.b},b.Sb=function(){return this.b>0},b.Tb=function(){return this.b},b.Vb=function(){return this.b-1},b.Qb=function(){throw ee(new G1(fyt))},b.a=0,b.b=0,D(b4e,"ExclusiveRange/RangeIterator",253);var wl=b5(cB,"C"),Pn=b5(SI,"I"),du=b5(o4,"Z"),W0=b5(EI,"J"),Fc=b5(yI,"B"),oo=b5(wI,"D"),aw=b5(xI,"F"),bx=b5(kI,"S"),d2n=ii("org.eclipse.elk.core.labels","ILabelManager"),$Ie=ii(Mo,"DiagnosticChain"),LIe=ii(Fvt,"ResourceSet"),FIe=D(Mo,"InvocationTargetException",null),ckt=(oj(),vtn),ukt=ukt=oln;drn(bHt),Frn("permProps",[[[xB,SB],[EB,"gecko1_8"]],[[xB,SB],[EB,"ie10"]],[[xB,SB],[EB,"ie8"]],[[xB,SB],[EB,"ie9"]],[[xB,SB],[EB,"safari"]]]),ukt(null,"elk",null)}).call(this,typeof KE<"u"?KE:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(c,u,d){function p(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function m(T,P){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:T}function x(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(T,P):T.__proto__=P)}var E=c("./elk-api.js").default,k=function(T){x(P,T);function P(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};p(this,P);var O=Object.assign({},I),N=!1;try{c.resolve("web-worker"),N=!0}catch{}if(I.workerUrl)if(N){var j=c("web-worker");O.workerFactory=function(B){return new j(B)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!O.workerFactory){var $=c("./elk-worker.min.js"),L=$.Worker;O.workerFactory=function(B){return new L(B)}}return m(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,O))}return P}(E);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=k,k.default=k},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,d){u.exports=Worker},{}]},{},[3])(3)})})(OLt);const YUn=Fue(OLt.exports);globalThis.g=void 0;globalThis.i=void 0;const bU=30,v7t=5;function QUn(n){return n.edges}function ZUn(n){const r=n.target,c=n.getNodeSource();if(c===r)return c.parent;const u=new Set([c]);let d=c.parent;for(;d;)u.add(d),d=d.parent;for(d=r;d;){if(u.has(d))return d;d=d.parent}return c.graph.snapshot.root}function JUn(n){const r=QUn(n.snapshot),c=new Map,u=new Map;return r.forEach(d=>{const p=ZUn(d);c.has(p)||c.set(p,[]),c.get(p).push(d),u.set(d.uniqueId,p)}),{containingNodesToEdges:c,edgeToContainingNode:u}}function _Lt(n,r){var k;const c=r.get(n.uniqueId),u=MLt(n),d=n.source===n.target,p=n.getNodeSource(),m=((k=p.parent)==null?void 0:k.data.initial)===p.data.key,x=[p.uniqueId],E=[u];return{id:n.uniqueId,sources:x,targets:E,absolutePosition:{x:0,y:0},labels:[{id:"label:"+n.uniqueId,width:c.width,height:c.height,text:n.getDisplayEventType()||"always",layoutOptions:{"edgeLabels.inline":d?"false":"true","edgeLabels.placement":"CENTER","edgeLabels.centerLabelPlacementStrategy":"TAIL_LAYER"}}],edge:n,sections:[],layoutOptions:{"elk.layered.priority.direction":m?"1":"0"}}}function MLt(n){return`port:${n.uniqueId}`}function eHn(n){return`self:${n}`}const tHn=n=>new Promise(r=>{const c=new Map;n.nodes.forEach(u=>{c.set(u.uniqueId,u.labelRect)}),n.edges.forEach(u=>{const d=u.getBounds();c.set(u.uniqueId,{...d,width:d.width})}),r(c)});function DLt(n){return n.nodes.length?Math.max(...n.nodes.map(r=>DLt(r))):n.depth}function NLt(n,r){var I;const{relativeNodeEdgeMap:c,reverseEdgeMap:u,rectMap:d}=r,p=d.get(n.uniqueId),m=c.containingNodesToEdges.get(n)||[],x=Array.from((I=u.get(n.uniqueId))!=null?I:[]),E=x.some(O=>O.source===O.target),k=DLt(n)>n.depth+1,T=k&&!r.previousError,P=nHn(n,r);return{id:n.uniqueId,...n.nodes.length?void 0:{width:p.width,height:p.height},node:n,children:P,absolutePosition:{x:0,y:0},edges:m.map(O=>_Lt(O,d)),ports:x.map(O=>({id:MLt(O),width:v7t,height:v7t,layoutOptions:{}})).concat(E?[{id:eHn(n.uniqueId),width:5,height:5,layoutOptions:{}}]:[]),layoutOptions:{"elk.padding":`[top=${p.height+bU}, left=${bU}, right=${bU}, bottom=${bU}]`,"elk.spacing.labelLabel":`${bU}`,"elk.spacing.edgeNode":"100",...k&&{"elk.aspectRatio":"2","elk.layered.wrapping.strategy":"MULTI_EDGE",...T&&{"elk.layered.compaction.postCompaction.strategy":"LEFT"}}}}}function nHn(n,r){return n.nodes.map(c=>NLt(c,r))}function rHn(n){return"absolutePosition"in n}function jLt(n){return n.nodes.length?[n].concat(n.nodes.map(r=>jLt(r)).flat()):[n]}function iHn(n){const r=new Map,c=(d,p)=>{r.get(d.uniqueId)||r.set(d.uniqueId,new Set),r.get(d.uniqueId).add(p)};return n.edges.forEach(d=>{c(d.target,d)}),jLt(n).forEach(d=>{d.edges.forEach(p=>{c(p.target,p)})}),r}async function oHn(n){var j;const r=n.snapshot.root,c=await tHn(n.snapshot),u=JUn(n),d=iHn(r),p=u.containingNodesToEdges.get(void 0)||[],m={relativeNodeEdgeMap:u,reverseEdgeMap:d,rectMap:c},x=$=>({id:"root",edges:p.map(L=>_Lt(L,c)),children:[NLt(r,$)],layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":"layered","elk.layered.considerModelOrder":"NODES_AND_EDGES","elk.layered.wrapping.strategy":"MULTI_EDGE","elk.aspectRatio":"2","elk.direction":"RIGHT"}});let E,k=0;const T=new YUn;for(;k<=2&&!E;){k++;try{E=await T.layout(x(m))}catch($){console.error($),m.previousError=$}}if(!E)throw new Error("Unable to layout ELK node.");const P=new Map,I=$=>{var F,X;const L=u.edgeToContainingNode.get($.edge.uniqueId),B=L&&P.get(L.uniqueId);$.absolutePosition={x:(((F=$.labels)==null?void 0:F[0].x)||0)+((B==null?void 0:B.absolutePosition.x)||0),y:(((X=$.labels)==null?void 0:X[0].y)||0)+((B==null?void 0:B.absolutePosition.y)||0)}},O=($,L)=>{var B,F,X,te;P.set($.node.uniqueId,$),$.absolutePosition={x:((B=L==null?void 0:L.absolutePosition.x)!=null?B:0)+$.x,y:((F=L==null?void 0:L.absolutePosition.y)!=null?F:0)+$.y},(X=$.edges)==null||X.forEach(Z=>{I(Z)}),(te=$.children)==null||te.forEach(Z=>{rHn(Z)&&O(Z,$)})};(j=E.edges)==null||j.forEach(I);const N=E.children[0];return O(N,void 0),E}async function y7t(n){const r=await oHn(n),c=[],u=[];function d(p){var m,x;(m=p.edges)==null||m.forEach(E=>{u.push(E)}),(x=p.children)!=null&&x.length?p.children.forEach(E=>d(E)):c.push(p)}d(r),A_t.flushSync(()=>{n.send({type:"autolayout.complete",nodes:c.map(p=>({id:p.id,position:p.absolutePosition})),edges:u.map(p=>({id:p.id,position:{x:p.absolutePosition.x,y:p.absolutePosition.y}}))})})}function sHn(n){return n.dx?[{dx:n.dx,dy:0},{dx:0,dy:1},{dx:0,dy:-1}]:[{dy:n.dy,dx:0},{dy:0,dx:1},{dy:0,dx:-1}]}function Mse(n,r){return n>=r[0]&&n<=r[1]}function aHn(n,r,c=10){const u=sHn(n),d=[];for(const x of u){const E=n.withDelta(x),k=E.dx>0&&E.xr.left||E.dy>0&&E.yr.top,T=Mse(E.x,[r.left-c,r.right+c])&&!Mse(E.x,[r.left,r.right]),P=Mse(E.y,[r.top-c,r.bottom+c])&&!Mse(E.y,[r.top,r.bottom]);if(x.dx&&k&&P||x.dy&&k&&T)continue;if(LU(E,r,["top","bottom","left","right"])!==void 0)return E;d.push(E)}if(!d.length)return;const m=Czn(d,x=>Pq(x,r)?0:1);return n.withDelta(m)}const cHn=10;function w7t({labelRect:n,labelSide:r,toPoint:c}){const d=[n.centerSide(r)];let p=0;for(;p++<10;){const m=d[d.length-1];if(m.x===c.x||m.y===c.y){d.push(m.at(c));break}if(uHn(m,c)){const x={x:m.dx?c.x:m.x,y:m.dy?c.y:m.y},E=Math.sign(c.x-x.x),k=Math.sign(c.y-x.y);d.push(new Z0(x,{dx:E,dy:k}))}else{const x={x:m.x+10*m.dx,y:m.y+10*m.dy},E=Math.sign(c.x-x.x),k=Math.sign(c.y-x.y);let T;m.dx?T=k===1?"bottom":"top":T=E===1?"right":"left",d.push(new Z0(x,T))}}return{path:d,endPoint:d[d.length-1].at(c)}}function Jce({labelRect:n,toRect:r,otherRects:c,initialRay:u,endOffset:d,toSides:p}){var P;const x=[u],E=(P=c[0])==null?void 0:P.expand(cHn),k=LU(u,r,p);if(k!==void 0){const I=u.at(k),O=I.translate({dx:-d*I.dx,dy:-d*I.dy});return{path:[u,O],endPoint:I}}if(Pq(u,r)){const I={x:u.x+15*u.dx,y:u.y+15*u.dy};u.dy&&(I.y<=r.top+10&&I.y>=r.top?I.y=r.top+10:I.y>=r.bottom-10&&I.y<=r.bottom&&(I.y=r.bottom-10)),u.dx&&(I.x<=r.left+10&&I.x>=r.left?I.x=r.left+10:I.x>=r.right-10&&I.x<=r.right&&(I.x=r.right-10));let O=aHn(u.at(I),r);if(!O)return{path:x,endPoint:x[x.length-1]};const N=LU(O,r,p);return N&&(!E||EH([u,N],{o:E}))&&(O=u.at(I)),x.push(O),T()}function T(){var $,L,B,F,X,te;const I=x[x.length-1];if(x.length>10)return{path:x,endPoint:I};if(r.contains(I))return{path:x,endPoint:I};if((I.x===r.left||I.x===r.right)&&I.y>=r.top&&I.y<=r.bottom||(I.y===r.top||I.y===r.bottom)&&I.x>=r.left&&I.x<=r.right)return{path:x,endPoint:I};if(!Pq(I,r)){const{dx:Z,dy:H}=I.dx?I.yr.center.x?{dx:-1,dy:0}:{dx:1,dy:0},ce=new Z0({x:I.x+15*I.dx,y:I.y+15*I.dy},"left").withDelta({dx:Z,dy:H});return x.push(ce),T()}const O=LU(I,r,p);if(O){const Z=Wce(O),H=Z.translate({dx:d*Z.dx,dy:d*Z.dy});return x.push(H),{path:x,endPoint:Z}}let N=I.dx?new Z0({x:I.dx===-1&&I.x>=r.right?r.right-10:I.dx===1&&I.x<=r.left?r.left+10:I.x+15*I.dx,y:I.y},I.y=r.bottom?r.bottom-10:I.dy===1&&I.y<=r.top?r.top+10:I.y+15*I.dy},I.x=r.left-d||N.x>=r.right&&N.x<=r.right+d:N.y<=r.top&&N.y>=r.top-d||N.y>=r.bottom&&N.y<=r.bottom+d);)N.x+=15*I.dx,N.y+=15*I.dy;return I.dy&&N.y>=r.bottom&&N.y<=r.bottom+20?N.y=r.bottom+20:I.dy&&N.y<=r.top&&N.y>=r.top-20?N.y=r.top-20:I.dx&&N.x>=r.right&&N.x<=r.right+20?N.x=r.right+20:I.dx&&N.x<=r.left&&N.x>=r.left-20&&(N.x=r.left-20),x.push(N),T()}return T()}function mU(n){return{...n,x:Math.round(n.x),y:Math.round(n.y)}}class Aq{constructor({startPoint:r,startAnchor:c=r,endPoint:u,endAnchor:d=u,midPoints:p,override:m,internal:x}){this.startPoint=mU(r),this.startAnchor=mU(c),this.endPoint=mU(u),this.endAnchor=mU(d),this.midPoints=p.map(mU),this.override=m,this.internal=x}get lineSegments(){const{startPoint:r,endPoint:c,midPoints:u}=this;if(!u.length)return[[r,c]];const d=[];for(let p=0;p{if(p===0){const m={...d[0]};u.push(["M",m])}if(p===this.lineSegments.length-1){const m={...d[1]};u.push(["L",m])}else u.push(["L",d[1]])}),c.radius?Izn(u,c.radius):u}join(r){return new Aq({startPoint:this.startPoint,endPoint:r.endPoint,midPoints:this.midPoints.concat([this.endPoint],r.midPoints)})}}function Dse(n){return n.dx?{x:n.x,y:n.y,side:n.dx===1?"right":"left"}:{x:n.x,y:n.y,side:n.dy===1?"bottom":"top"}}function Pq(n,r){const c="dx"in n&&"dy"in n?n.dx===-1?"left":n.dx===1?"right":n.dy===-1?"top":"bottom":n.side;return c==="left"?r.left<=n.x:c==="right"?r.right>=n.x:c==="top"?r.top<=n.y:r.bottom>=n.y}function uHn(n,r){return n.side==="left"?r.x<=n.x:n.side==="right"?r.x>=n.x:n.side==="top"?r.y<=n.y:n.side==="bottom"?r.y>=n.y:!1}const lHn={bend:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>CPe[n.endPoint.side]===r.startPoint.side?0:.5,intersection:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>{for(const c of n.lineSegments)for(const u of r.lineSegments)if($U(c,u)!==!1)return 100;return 0},withinRange:({sourceRect:n,targetRect:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=Pq(c.endPoint,n)?0:1,p=Pq(u.startPoint,r)?0:1;return d+p},preferredSides:({sourceSides:n,targetSides:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=n.includes(c.startPoint.side)?0:100,p=r.includes(u.endPoint.side)?0:100;return d+p},sourceTargetIntersections:({sourceRect:n,targetRect:r,sourceTargetPath:{sourcePath:c,targetPath:u}})=>{const d=u.lineSegments.some(m=>EH(m,{sourceRect:n}))?100:0,p=c.lineSegments.some(m=>EH(m,{targetRect:r}))?100:0;return d+p},lineSegments:({sourceTargetPath:{sourcePath:n,targetPath:r}})=>(n.lineSegments.length+r.lineSegments.length)*.5};function fHn(n,{sourceSides:r,targetSides:c,sourceRect:u,targetRect:d}){let p=1/0,m;for(const x of n){if(x.sourcePath.override||x.targetPath.override)return x;let E=0;for(const[k,T]of Object.entries(lHn))if(E+=T({sourceTargetPath:x,sourceSides:r,targetSides:c,sourceRect:u,targetRect:d}),E>=p)break;E{const te=Wce(u.centerSide(X)),Z=P instanceof Ju||P instanceof $x?Jce({labelRect:u,toRect:P instanceof Ju&&m instanceof Ju&&P.isAncestorOf(m)?P.currentRects.self:Nse(P),otherRects:P===m?[]:[Nse(m)],initialRay:te,endOffset:5,toSides:["top","bottom","left","right"]}):w7t({labelRect:u,labelSide:X,toPoint:P}),H=[...Z.path].reverse();if(H.length){const ce=new Aq({startPoint:Dse(H[0]),startAnchor:Z.endPoint,endPoint:Dse(H[H.length-1]),midPoints:H.slice(1,-1)});T.push(ce)}});const O=[];k.forEach(X=>{const te=Wce(u.centerSide(X)),Z=I instanceof Ju||I instanceof $x?Jce({labelRect:u,toRect:I instanceof Ju&&p instanceof Ju&&I.isAncestorOf(p)?I.currentRects.self:Nse(I),otherRects:p===I?[]:[Nse(p)],initialRay:te,endOffset:10,toSides:["top","bottom","left","right"]}):w7t({labelRect:u,labelSide:X,toPoint:I});if(Z.path.length){const H=new Aq({startPoint:Dse(Z.path[0]),endPoint:Dse(Z.path[Z.path.length-1]),endAnchor:Z.endPoint,midPoints:Z.path.slice(1,-1)});O.push(H)}});const N=[],j=T.some(X=>X.override)?T.filter(X=>X.override):T,$=O.some(X=>X.override)?O.filter(X=>X.override):O;if(j.forEach(X=>{$.forEach(te=>{X.endPoint.side!==te.startPoint.side&&N.push({sourcePath:X,targetPath:te})})}),!N.length)return;const L=void 0,{sourcePath:B,targetPath:F}=fHn(N,{sourceRect:c,targetRect:d,sourceSides:x,targetSides:k});return{sourcePathData:B,targetPathData:F,pathDefinition:L}}const jM=2;class $x{constructor(r,c){var u,d,p;this.config=r,this.data={eventTypeData:{type:"named",eventType:""},guard:void 0,actions:[],description:void 0,metaEntries:void 0},this.delta={dx:0,dy:0},this.position={x:0,y:0},this.uniqueId=eLt(),this.source=c,this.target=(u=c.graph.snapshot.getNodeBySerialisableId(r.target))!=null?u:Ix(c),this.position=(d=r.position)!=null?d:{x:0,y:0},this.layoutStatus=r.position?"done":"needs-layout",this.size=(p=r.size)!=null?p:{width:0,height:0},this.familySize={...this.size},this.start()}get containingNode(){return Wzn(this.getNodeSource(),this.target)}getNodeSource(){let r=this.source;for(;!(r instanceof Ju);)if(r=r.source,r===this)throw new Error("Circular edge source");return r}getPathData(r){var I,O;const{labelSides:c}=r!=null?r:{},u=this.getParentEdge(),{tempAnchor:d}=this.graph.snapshot,p=(d==null?void 0:d.edgeId)===this.uniqueId&&d.type==="source"?d.point:void 0,m=(d==null?void 0:d.edgeId)===this.uniqueId&&d.type==="target"?d.point:void 0,[x,E,k,T=["top","left","bottom","right"],P=["top","left","bottom","right"]]=[p?new Du({...p,width:jM,height:jM}):(O=(I=this.getParentEdge())==null?void 0:I.getFamilyRect())!=null?O:this.sourceNodeRect,this.getLabelRect(),m?new Du({...m,width:jM,height:jM}):this.target.currentRects.family];if(!!E)return dHn({source:u!=null?u:this.source,target:this.target,tempSourcePoint:p,tempTargetPoint:m,sourceRect:x,labelRect:E,targetRect:k,sourceSides:T,targetSides:P,labelSides:c})}get currentPosition(){return{x:this.position.x+this.delta.dx,y:this.position.y+this.delta.dy}}start(){var r,c;this.data={eventTypeData:this.config.data.eventTypeData,guard:this.config.data.guard,actions:(r=this.config.data.actions)!=null?r:[],description:this.config.data.description,metaEntries:this.config.data.metaEntries,internal:(c=this.config.data.internal)!=null?c:!0},this.graph=this.source.graph}get sourceNodeRect(){const r=this.getNodeSource();return r.isAncestorOf(this.target)?r.currentRects.label:r.currentRects.family}getSerialisableId(){return HDe(this.getNodeSource().getSerialisableId(),this.getDisplayEventType(),this.getEdgeGroupIndex())}getBounds(){return this.getFamilyRect()}getContainerNode(){const{target:r}=this,c=this.getNodeSource();if(c===r)return c;const u=new Set([c]);let d=c.parent;for(;d;)u.add(d),d=d.parent;for(d=r;d;){if(u.has(d))return d;d=d.parent}return this.graph.snapshot.root}getLabelRect(){return new Du({width:this.size.width,height:this.size.height,x:this.currentPosition.x,y:this.currentPosition.y})}getFamilyRect(){return this.getLabelRect()}getDisplayEventType(){const r=this.getNodeSource();return Hce(this.data.eventTypeData,r.getSerialisableId(),r.invocations.map(c=>({id:Jh(c)})))}getShortDisplayEventType(){const{type:r}=this.data.eventTypeData;if(r!=="after")return this.getDisplayEventType();const{delay:c}=this.data.eventTypeData;return`${r} ${Xce(c)}`}getEdgeGroupIndex(){let r=this.source,c=0;for(;r instanceof $x;)c++,r=r.source;return c}getParentEdge(){if(!(this.source instanceof Ju))return this.source}getGroup(){const r=this.getNodeSource(),c=[];for(const u of this.graph.getSnapshot().edges)Xo(this.data.eventTypeData,u.data.eventTypeData)&&u.getNodeSource()===r&&c.push(u);return c.sort((u,d)=>u.getEdgeGroupIndex()-d.getEdgeGroupIndex()),c}getConnectedEdge(){return this.getNodeSource().edges.find(r=>r.source===this)}}function x7t(n){const{containingNode:r}=n;return[r].concat(_ae(r))}const pNe={ALLOW_DRAGGING_EDGE_LINES:!1,ALLOW_TAGS:!1,ALLOW_SAFARI_ACCESS_TO_EDITOR:!1,SHOW_AUTOLAYOUT_BUTTON:!0,ALLOW_SNAP_TO_ELEMENTS:!0,ALLOW_PRO_COLORS:{}.NEXT_PUBLIC_ALLOW_PRO_COLORS},hHn=n=>{let r=pNe[n];return r==="false"&&(r=!1),r==="true"&&(r=!0),typeof window<"u"&&window.location.origin==="http://localhost:3000"?r!=null?r:window.Cypress:r},pHn=(n,r)=>{var L,B;const c=gHn(r);if(!c)return;const d=Object.values(n.selection).filter(F=>F.type==="node");d.length||d.push({type:"node",id:n.root.uniqueId});const p=d.length===1&&d[0].type==="node",m=(L=c.nodes[0])!=null&&L.id?n.getNodeBySerialisableId(c.nodes[0].id):void 0,x=n.getNodeByUniqueId(d[0].id),E=x&&m&&x===m;let k;const T=p&&!(c.nodes.length===1&&E);if(T)k=x;else{const F=c.nodes.sort((te,Z)=>te.id.split(".").length-Z.id.split(".").length)[0];k=((B=n.getNodeBySerialisableId(F==null?void 0:F.id))==null?void 0:B.parent)||n.root}const P=T?Gce(k):void 0,I={},O=[],N=[],j=(F,X)=>{let te={x:F.position.x+el*2,y:F.position.y+el*2};P&&c.bounds&&(te={x:F.position.x-c.bounds.x+P.x,y:F.position.y-c.bounds.y+P.y});const Z=n.createNewNode({parent:X,data:{...F.data,key:S7t(F.data.key,X.nodes.map(H=>H.data.key))},position:te});I[F.id]=Z,O.push(Z),F.nodes.forEach(H=>j(H,Z))};c.nodes.forEach(F=>{j(F,k)});const $=sLt(c.edges);for(const F of $){let X;for(let te=0;te{ve.data.eventTypeData.type==="named"&&(ve.data.eventTypeData.eventType=S7t(Hce(ve.data.eventTypeData,Z.source,pe.invocations.map(Ge=>({id:Jh(Ge)}))),n.edges.filter(Ge=>Ge.getNodeSource().getSerialisableId()===ve.source).map(Ge=>Hce(Ge.data.eventTypeData,Ge.getNodeSource().getSerialisableId(),pe.invocations.map(qe=>({id:Jh(qe)}))))))}),position:H});fe&&(X=fe,N.push(fe))}}return c.rootName&&(n.root.data.key=c.rootName),c.context&&(n.data.context=c.context),{nodes:O,edges:N}},S7t=(n,r)=>{let c=n;for(;r.includes(c);)c+=" (copy)";return c},gHn=n=>{var c;const r=(c=n.clipboardData)==null?void 0:c.getData("text/plain");if(!!r)try{const u=JSON.parse(r);if("nodes"in u&&"edges"in u)return u}catch{return}};class bHn{constructor(){this.undos=[],this.redos=[]}canUndo(){return!!this.undos.length}canRedo(){return!!this.redos.length}push(r){this.redos.length=0,this.undos.push(r)}exec(r){this.push(r),r.redo()}undo(){if(!this.canUndo())return;const r=this.undos.pop();this.redos.push(r),r.undo()}redo(){if(!this.canRedo())return;const r=this.redos.pop();this.undos.push(r),r.redo()}}const E7t=(n,r,c)=>{const u=n-r;return u>0?u<=c:u>=-c},mHn=(n,r,c,u=5)=>{const d=[],p=n.translate(r.dx,r.dy);if(E7t(p.center.x,c.center.x,u)){const m=c.center.x-p.center.x;d.push({direction:"y",position:"center",modifier:r.dx+m})}if(E7t(p.center.y,c.center.y,u)){const m=c.center.y-p.center.y;d.push({direction:"x",position:"center",modifier:r.dy+m})}return d};function vHn(n,r){const c=n.getNodeSource();return r.filter(u=>!u.data.guard&&u.getNodeSource().uniqueId===c.uniqueId&&d7(u)!=null&&d7(n)!=null&&d7(u)===d7(n))}function yHn(n){return n.parent?n.parent.nodes.filter(r=>r.uniqueId!==n.uniqueId).filter(r=>r.data.key===n.data.key):[]}const d7=n=>n.data.eventTypeData.type==="named"?n.data.eventTypeData.eventType:null;function RLt(n){var d;const r=[];n.data.key.length===0&&r.push("State key cannot be empty");const c=((d=n.parent)==null?void 0:d.data.initial)===n.data.key,u=n.data.type==="history";return c&&u&&r.push("A history node cannot be the initial node. This will cause an infinite loop."),yHn(n).length>0&&r.push("A state with that name already exists"),new RegExp(/[.#]/).test(n.data.key)&&r.push('State key cannot contain "." or "#"'),r.length>0?r:null}function $Lt(n,r){const c=[],u=n.data.entry.filter(f7),d=n.data.exit.filter(f7),p=u.concat(d).reduce((x,E)=>({...x,...E.assignment}),{}),m=Object.values(r.data.context).map(x=>x.key);for(const x in p)m.includes(x)||c.push(`Key \`${x}\` is missing from the context schema`);return r.reachableNodes.has(n.uniqueId)||c.push("Unreachable state"),c.length>0?c:null}function LLt(n,r){var d;const c=[];((d=d7(n))==null?void 0:d.length)===0&&c.push("Event type cannot be empty"),vHn(n,r.edges).length>1&&c.push("Two events with the same name AND source are not allowed"),d7(n)==="*"&&c.push('Event type cannot be "*". If you meant to create an Eventless ("Always") transition, choose "always" as the type.');const u=d7(n);return u&&(u.startsWith("xstate.")?c.push('Events cannot start with "xstate." - This is reserved for internal XState events'):u.startsWith("error.platform")||u.startsWith("error.execution")?c.push('Events cannot start with "error.platform" and "error.execution" - They are reserved for internal XState error events'):(u.startsWith("done.state")||u.startsWith("done.invoke"))&&c.push('Events cannot start with "done.state" and "done.invoke" - They are reserved for internal XState events')),c.length>0?c:null}function FLt(n){const r=[],c=n.getGroup();if(n.data.guard){const d=n.data.guard.type,p=c.filter(m=>{var x;return((x=m.data.guard)==null?void 0:x.type)===d});p.length>1&&r.push(`Found ${p.length} guards with the name \`${d}\``)}const u=n.getEdgeGroupIndex();return u>0&&c.slice(0,u).some(d=>!d.data.guard)&&r.push("This transition will never be taken"),r.length>0?r:null}function wHn(n){if(!n.nodes)return[];if(n.data.type==="parallel")return n.nodes;const r=n.nodes.find(c=>n.data.initial===c.data.key);return r?[r]:[]}function xHn(n){const r=n.root,c=new Set;u(r);function u(d){if(c.has(d.uniqueId))return;c.add(d.uniqueId),d.parent&&!c.has(d.parent.uniqueId)&&u(d.parent),d.edges.forEach(m=>{u(m.target)}),wHn(d).forEach(m=>{u(m)})}return c}const BLt=({nodeSource:n,index:r,eventTypeData:c})=>{const u=d=>n.invocations.findIndex(p=>p.internalUniqueId===d);switch(c.type){case"always":return["always",r];case"after":return["after",c.delay,r];case"invocation.done":return["invoke",u(c.invocationId),"onDone",r];case"invocation.error":return["invoke",u(c.invocationId),"onError",r];case"state.done":return["onDone",r];case"named":return["on",c.eventType,r];case"wildcard":return["on","*",r]}},No=n=>BLt({nodeSource:n.getNodeSource(),index:n.getEdgeGroupIndex(),eventTypeData:n.data.eventTypeData});function vr(n){let r=n;const c=[];for(;;){if(!r.parent)return c.reverse();c.push(r.data.key),r=r.parent}}function SHn(n,r){const c=new Set,u={},d=[];let p="idle",m=r;const x={send:P=>{d.push(P),p==="idle"&&k()},subscribe:(P,I,O)=>{const N=zn.toObserver(P,I,O);return c.add(N),N.next(m),{unsubscribe:()=>{c.delete(N)}}},on:(P,I)=>(u[P]||(u[P]=new Set).add(I),{unsubscribe:()=>{u[P].delete(I)}}),getSnapshot:()=>m,get snapshot(){return m},version:0,_update:T},E={publish:(P,I)=>{var O;(O=u[P])==null||O.forEach(N=>{N.send({type:"xactor.topic",topic:P,data:I})})},get self(){return x}};function k(){for(p="processing";d.length;){const P=d.shift();m=n(m,P,E),T()}p="idle"}function T(){x.version++,c.forEach(P=>{var I;return(I=P.next)==null?void 0:I.call(P,m)})}return x.send({type:"xactor.start",self:x}),x}const k7t=(n,r)=>({nodes:r.filter(c=>c.type==="node").map(c=>n.getNodeByUniqueId(c.id)),edges:r.filter(c=>c.type==="edge").map(c=>n.getEdgeByUniqueId(c.id))}),EHn={"context.addFieldByExpression":!0,"context.addFieldByInferredType":!0,"context.modifyField":!0,"context.deleteField":!0,"context.clear":!0,"context.set":!0,"edge.addTransition":!0,"edge.anchor.moveEnd":!0,"edge.modify.guard":!0,"edge.modify.actions.add":!0,"edge.modify.actions.delete":!0,"edge.modify.actions.edit":!0,"edge.modify.internal":!0,"edge.modify.eventType":!0,"edge.modify.description":!0,"edge.modify.meta":!0,"edge.setSourceAndTarget":!0,"edge.targetSelf":!0,"edge.new":!0,"edge.setSource":!0,"edge.setTarget":!0,"node.delete":!0,"node.modify":!0,"node.modify.type":!0,"node.modify.history":!0,"node.modify.key":!0,"node.modify.description":!0,"node.modify.meta":!0,"node.newChildNode":!0,"node.setInitialState":!0,"node.setColor":!0,"selection.cut":!0,"selection.delete":!0,"node.newEdge.end":!0,"selection.moveEnd":!0,paste:!0,undo:!0,redo:!0,"autolayout.complete":!0,"edge.delete":!0,"node.modify.invocations.add":!0,"node.modify.invocations.delete":!0,"node.modify.invocations.edit":!0,"node.modify.actions.add":!0,"node.modify.actions.delete":!0,"node.modify.actions.edit":!0},vU=(n,r)=>n===r||n.isAncestorOf(r);class kHn{constructor(r,c,u,d,p,m){this.digraphConfig=r,this.getViewBox=d,this.userMode=p,this.id=m,this.nodeMap=new Map,this.edgeMap=new Map,this._nodes=new Set,this._edges=new Set,this.selection={},this.highlights=new Set,this.effects=[],this.status="idle",this._layoutString="",this.data=c,this.autolayoutStatus=u?"autolayout-needed":"autolayout-not-needed",this.undoStack=new bHn}get reachableNodes(){return xHn(this)}get problems(){const{nodes:r,edges:c}=this,u=r.flatMap(P=>RLt(P)).filter(Boolean),d=r.flatMap(P=>$Lt(P,this)).filter(Boolean),p=c.flatMap(P=>LLt(P,this)).filter(Boolean),m=c.flatMap(P=>FLt(P)).filter(Boolean),x={},E=(P,I,O)=>{x[P]||(x[P]={}),x[P][I]=O};for(const P in this.data.context){const I=this.data.context[P];I.key.length===0&&E(P,"key","Key can not be empty"),Object.values(this.data.context).filter(O=>O.key===I.key).length>1&&E(P,"key","Duplicate key"),I.expression.length===0&&E(P,"expression","Initial value can not be empty")}const k=u.concat(p),T=d.concat(m);return{errors:k,warnings:T,contextErrors:x,errorsCount:k.length+Object.keys(x).length,warningsCount:T.length}}get nodes(){return Array.from(this._nodes)}get edges(){return Array.from(this._edges)}toJSON(){return this.root.toJSON()}start(r,c){this.self=r,c!=null&&c.autolayout&&(this.autolayoutStatus="autolayout-needed"),this.root=new Ju(gLt(this.digraphConfig.rootNode,u=>{c!=null&&c.isRestart||(u.data.key=this.data.name)}),this.self),this.registerNestedNodes(this.root),this.registerEdges(),this._layoutString=Zce(this),c!=null&&c.autolayout&&setTimeout(()=>{this.performAutolayout()},300)}restart(r,c){var p,m;this.digraphConfig=r;const u=Object.values(this.selection).map(x=>{var E,k;return x.type==="edge"?{...x,id:(E=this.getEdgeByUniqueId(x.id))==null?void 0:E.getSerialisableId()}:{...x,id:(k=this.getNodeByUniqueId(x.id))==null?void 0:k.getSerialisableId()}});this.deselectAll(),this._edges.clear(),this.edgeMap.clear(),this._nodes.clear(),this.nodeMap.clear(),this.start(this.self,{isRestart:!0,autolayout:c});const d=[];for(const x of u)if(x.type==="edge"){const E=(p=this.getEdgeBySerialisableId(x.id))==null?void 0:p.uniqueId;E&&d.push({...x,id:E})}else{const E=(m=this.getNodeBySerialisableId(x.id))==null?void 0:m.uniqueId;E&&d.push({...x,id:E})}this.select(d,{mode:"multi"}),this.nodes.forEach(x=>{x.calculateRects()}),this.edges.forEach(()=>{})}getInvocationById(r){for(const c of this.nodes)for(const u of c.invocations)if(Jh(u)===r)return u}resolveNodeLike(r){if(typeof r!="string")return r;const c=this.getNodeBySerialisableId(r);if(!c)throw new Error(`A node with the serialisable id ${r} could not be found`);return c}registerNestedNodes(r){this.register(r),r.nodes.forEach(c=>{this.registerNestedNodes(c)})}registerEdges(){const r=sLt(this.digraphConfig.edges);for(const c of r){let u;for(let d=0;d{!this.selection[x.uniqueId]&&!c.has(x)&&u.add(x)};Object.values(this.selection).forEach(x=>{if(x.type==="node"){const E=this.getNodeByUniqueId(x.id);if(!E)return;c.add(E),tLt(E).forEach(k=>{c.add(k)})}else{const E=this.getEdgeByUniqueId(x.id);E&&c.add(E)}}),c.forEach(x=>{x instanceof Ju&&x.getContainedEdges().forEach(E=>{c.add(E)}),x instanceof Ju?_ae(x).forEach(E=>{d(E)}):x7t(x).forEach(E=>{d(E)})});const p=r,m=[];if(Object.values(this.selection).length===1&&pNe.ALLOW_SNAP_TO_ELEMENTS){const x=[],E=this.getViewBox(),k=new Du({x:E.minX,y:E.minY,width:E.width,height:E.height});this.nodes.filter(N=>!c.has(N)&&!u.has(N)).forEach(N=>{const j=N.currentRects.family;x.push(j)}),this.edges.filter(N=>!c.has(N)).forEach(N=>{const j=N.getLabelRect();x.push(j)});const[T]=THn(Object.values(this.selection)[0],this);let P=!1,I=!1;const O=x.filter(N=>u7e(k,N));for(const N of O)if(mHn(T,r,N).forEach($=>{$.direction==="x"&&!P?(P=!0,p.dy=$.modifier,m.push({direction:"x",type:"center",startRect:T,endRect:N})):$.direction==="y"&&!I&&(I=!0,p.dx=$.modifier,m.push({direction:"y",type:"center",startRect:T,endRect:N}))}),P&&I)break}this.snapLines=m.map(x=>({...x,startRect:x.startRect.translate(p.dx,p.dy)})),c.forEach(x=>{x.delta=p}),u.forEach(x=>{x.calculateRects()})}async performAutolayout(){this.autolayoutStatus!=="autolayout-performing"&&(this.autolayoutStatus="autolayout-performing",await y7t(this.self))}receive(r){var c,u,d,p,m,x,E,k,T,P,I,O,N,j,$,L,B,F,X,te,Z,H,ce,pe,fe,ve,Ge,qe,Je,et,jt,Me,Ve,ye,De,be,xe,Jt,an,An,Wn,ir,Jn,Gr,Ze,ut,on,Ne,at;if(this.effects.length=0,r.type==="xactor.start"){this.start(r.self);return}switch(r.type){case"restart":{this.restart(r.config,r.autolayout);break}case"context.addFieldByInferredType":{const ae=dUn(r.key,r.expression,r.inferredType),Ee=()=>{this.data.context={...this.data.context,[ae.uid]:ae}};this.undoStack.push({redo:Ee,undo:()=>{const Ie={...this.data.context};delete Ie[ae.uid],this.data.context=Ie}}),Ee();break}case"context.addFieldByExpression":{const ae=a7t(r.key,r.expression),Ee=()=>{this.data.context={...this.data.context,[ae.uid]:ae}};this.undoStack.push({redo:Ee,undo:()=>{const Ie={...this.data.context};delete Ie[ae.uid],this.data.context=Ie}}),Ee();break}case"context.modifyField":{const ae=this.data.context[r.uid],Ee={...ae,...r.updates},Ie=()=>{this.data.context={...this.data.context,[r.uid]:Ee}};this.undoStack.push({redo:Ie,undo:()=>{this.data.context={...this.data.context,[r.uid]:ae}}}),Ie();break}case"context.deleteField":{const ae=this.data.context,Ee=()=>{const Ie={...this.data.context};delete Ie[r.uid],this.data.context=Ie};this.undoStack.push({redo:Ee,undo:()=>{this.data.context=ae}}),Ee();break}case"context.clear":{const ae=this.data.context,Ee=()=>{this.data.context={}};this.undoStack.push({redo:Ee,undo:()=>{this.data.context=ae}}),Ee();break}case"context.set":{const ae=this.data.context,Ee={};for(const[tt,en]of Object.entries(r.context)){const gn=a7t(tt,en);Ee[gn.uid]=gn}const Ie=()=>{this.data.context=Ee};this.undoStack.push({redo:Ie,undo:()=>{this.data.context=ae}}),Ie();break}case"interact.cancel":this.cancelInteraction();break;case"select.start":{this.select([r.entity],r),this.status="selecting";break}case"select":{this.select([r.entity],r),this.status="selected";break}case"select.end":{this.status="selected";break}case"selectAll":{this.selectAll();break}case"deselectAll":{this.deselectAll();break}case"edge.new":{(c=so())==null||c.debouncedTrack(r.type);const{source:ae,target:Ee}=r,Ie=this.getNodeBySerialisableId(ae);if(!Ie)return;const tt=this.addEdge(Ie,{edgeConfig:{data:{eventTypeData:I7t(this.getNodeBySerialisableId(ae)),guard:void 0,actions:[],description:void 0,metaEntries:void 0},target:Ee}});if(!tt)return;yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(tt.getNodeSource()),targetPath:vr(tt.target),transitionPath:No(tt),external:!tt.data.internal,guard:(u=tt.data.guard)==null?void 0:u.type}),tt.getNodeSource().parent&&this.triggerNodeLayout();const en=this.createDeleteEdgeOperation(tt);this.undoStack.push({undo:()=>{en.redo(),this.triggerNodeLayout()},redo:()=>{en.undo(),this.triggerNodeLayout()}}),this.select([{id:tt.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:tt.uniqueId,field:"key"});break}case"autolayout":{y7t(this.self);break}case"autolayout.complete":{const ae=r.nodes.map(({id:tt})=>({id:tt,position:this.getNodeByUniqueId(tt).position})),Ee=r.edges.map(({id:tt})=>({id:tt,position:this.getEdgeByUniqueId(tt).position})),Ie=tt=>{tt.nodes.forEach(({id:en,position:gn})=>{this.setNodePosition({node:this.getNodeByUniqueId(en),position:gn})}),tt.edges.forEach(({id:en,position:gn})=>{this.setEdgePosition({edge:this.getEdgeByUniqueId(en),position:gn})})};Ie(r),this.undoStack.push({undo:()=>Ie({nodes:ae,edges:Ee}),redo:()=>Ie(r)}),this.triggerNodeLayout(),this.autolayoutStatus="autolayout-performed",this.effects.push({type:"fitToContent"});break}case"selection.cut":{(d=so())==null||d.debouncedTrack(r.type),this.sendSelectionToClipboard(r.clipboardEvent);const ae=k7t(this,Object.values(this.selection));this.deselectAll();const Ee=this.createDeleteBulkOperation(ae);this.undoStack.exec(Ee);break}case"selection.copy":{(p=so())==null||p.debouncedTrack(r.type),this.sendSelectionToClipboard(r.clipboardEvent);break}case"paste":{(m=so())==null||m.debouncedTrack(r.type);const ae=pHn(this,r.clipboardEvent);if(!ae||!ae.nodes.length&&!ae.edges.length)break;this.select([...ae.nodes.map(Ie=>({type:"node",id:Ie.uniqueId})),...ae.edges.map(Ie=>({type:"edge",id:Ie.uniqueId}))]),this.sendSelectionToClipboard(r.clipboardEvent);const Ee=ae.nodes.map(Ie=>this.createAddNodeOperation(Ie));Ee.forEach(Ie=>Ie.redo()),ae.edges.forEach(Ie=>{var tt;yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(Ie.getNodeSource()),targetPath:vr(Ie.target),transitionPath:No(Ie),external:!Ie.data.internal,guard:(tt=Ie.data.guard)==null?void 0:tt.type})}),this.undoStack.push({undo:()=>{ae.edges.forEach(Ie=>{this.createDeleteEdgeOperation(Ie).redo()}),Ee.forEach(Ie=>Ie.undo()),this.triggerNodeLayout()},redo:()=>{Ee.forEach(Ie=>Ie.redo()),ae.edges.forEach(Ie=>{var tt;this.register(Ie),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(Ie.getNodeSource()),targetPath:vr(Ie.target),transitionPath:No(Ie),external:!Ie.data.internal,guard:(tt=Ie.data.guard)==null?void 0:tt.type})}),this.triggerNodeLayout()}}),this.triggerNodeLayout();break}case"selection.delete":{(x=so())==null||x.debouncedTrack(r.type);const ae=k7t(this,Object.values(this.selection));this.deselectAll();const Ee=this.createDeleteBulkOperation(ae);this.undoStack.exec(Ee),this.cancelInteraction();break}case"select.box":{this.deselectAll();const ae=this.getEntitiesInRect(new Du(r.box));this.select(ae.map(Ee=>Ee instanceof Ju?{type:"node",id:Ee.uniqueId}:{type:"edge",id:Ee.uniqueId}));break}case"selection.moveStart":(E=so())==null||E.debouncedTrack(r.type),this.status="movingSelection",this.snapLines=[];break;case"selection.move":{this.status==="movingSelection"&&this.moveSelection(r.delta);break}case"selection.moveCancel":{(k=so())==null||k.debouncedTrack(r.type),this.cancelSelectionMove();break}case"selection.moveEnd":{(T=so())==null||T.debouncedTrack(r.type),this.status="selected";const ae=new Set,Ee=new Set,Ie=Tr=>{ae.has(Tr)||(ae.add(Tr),Tr.getContainedEdges().forEach(Uo=>{Ee.add(Uo)}),Tr.nodes.forEach(Ie))},tt=({node:Tr,position:Uo})=>{Tr._position=Uo,Tr.delta={dx:0,dy:0},Tr.calculateRects()},en=({edge:Tr,position:Uo})=>{Tr.position=Uo,Tr.delta={dx:0,dy:0}};Object.values(this.selection).forEach(Tr=>{if(Tr.type==="node"){const Uo=this.getNodeByUniqueId(Tr.id);Uo&&Ie(Uo)}else{const Uo=this.getEdgeByUniqueId(Tr.id);Uo&&Ee.add(Uo)}});const gn=[...Ee].map(Tr=>({edge:Tr,position:Tr.position})),In=[...ae].map(Tr=>({node:Tr,position:Tr._position})),cr=[...Ee].map(Tr=>({edge:Tr,position:Tr.currentPosition})),Ur=[...ae].map(Tr=>({node:Tr,position:{x:Tr._position.x+Tr.delta.dx,y:Tr._position.y+Tr.delta.dy}})),eo=({nodePositions:Tr,edgePositions:Uo})=>{Uo.forEach(en),Tr.forEach(tt),this.triggerNodeLayout()};eo({nodePositions:Ur,edgePositions:cr}),this.undoStack.push({undo:()=>eo({nodePositions:In,edgePositions:gn}),redo:()=>eo({nodePositions:Ur,edgePositions:cr})});break}case"entities.setSizes":{r.nodeSizes.forEach(ae=>{this.setNodeSize({nodeId:ae.uniqueId,size:ae.size})}),r.edgeSizes.forEach(ae=>{this.setEdgeSize({edgeId:ae.uniqueId,size:ae.size})}),this.autolayoutStatus==="autolayout-needed"?setTimeout(()=>{this.performAutolayout(),this.resolveEdgeLayouts(),this.effects.push({type:"fitToContent"})},300):(this.resolveEdgeLayouts(),this.userMode==="vscode"&&this.effects.push({type:"fitToContent"})),this.triggerNodeLayout();break}case"node.setSize":{this.setNodeSize(r);break}case"node.newEdge.start":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=Hzn(ae,r.side);this.status="creatingNewEdge",this.tempEdge={originalSourceSide:r.side,sourceSide:r.side,targetSide:CPe[r.side],originalTargetSide:CPe[r.side],targetPoint:Ee,target:void 0,nodeId:r.nodeId};break}case"node.newEdge.move":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae||this.status!=="creatingNewEdge"||!this.tempEdge)break;this.tempEdge.targetPoint={x:r.point.x-Yf.width/2,y:r.point.y-Yf.height/2};const Ee=this.getNodeRectDataAtPoint(r.point);if(Ee){const Ie=Ee.node;ae.isAncestorOf(Ie)||ae===Ie?(this.tempEdge.sourceSide="bottom",this.tempEdge.targetSide="top"):(this.tempEdge.sourceSide=this.tempEdge.originalSourceSide,this.tempEdge.targetSide=this.tempEdge.originalTargetSide),Ee.rectKey==="family"?(this.tempEdge.target=void 0,this.highlight(Ee.node)):Ie.isAncestorOf(ae)?(this.unhighlightAll(),this.tempEdge.target=void 0):(this.tempEdge.target=Ie,this.highlight(Ie))}else this.unhighlightAll();break}case"node.newEdge.cancel":{if(this.status!=="creatingNewEdge")break;(P=so())==null||P.debouncedTrack(r.type),this.cancelNewEdge();break}case"node.newEdge.end":{const ae=this.getNodeByUniqueId(r.nodeId),{tempEdge:Ee}=this;if(this.tempEdge=void 0,!ae||ae.data.type==="history"||((I=so())==null||I.debouncedTrack(r.type),this.unhighlightAll(),!Ee||this.status!=="creatingNewEdge"))break;let Ie,tt=Ee.target;if(!tt){const gn=this.getNodeRectDataAtPoint(r.point),In=(O=gn==null?void 0:gn.node)!=null?O:ae.parent;if(!In)break;const cr={x:Ee.targetPoint.x,y:Ee.targetPoint.y};tt=this.createNewNode({parent:In,position:cr}),Ie=this.createAddNodeOperation(tt),Ie.redo()}const en=this.addEdge(ae,{edgeConfig:{data:{eventTypeData:I7t(ae),guard:void 0,actions:[],description:void 0,metaEntries:void 0},target:tt.getSerialisableId()}});if(!en){console.warn("This should never happen");break}yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(en.getNodeSource()),targetPath:vr(en.target),transitionPath:No(en),external:!en.data.internal,guard:(N=en.data.guard)==null?void 0:N.type}),en.getNodeSource().parent&&this.triggerNodeLayout(),this.undoStack.push({undo:()=>{this.createDeleteEdgeOperation(en).redo(),Ie==null||Ie.undo(),this.triggerNodeLayout()},redo:()=>{var gn;Ie==null||Ie.redo(),this.register(en),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(en.getNodeSource()),targetPath:vr(en.target),transitionPath:No(en),external:!en.data.internal,guard:(gn=en.data.guard)==null?void 0:gn.type}),this.triggerNodeLayout()}}),this.select([{id:en.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:en.uniqueId,field:"key"}),this.status="selected";break}case"node.newChildNode":{(j=so())==null||j.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)return;const Ee=this.createNewNode({...r,parent:ae}),Ie=this.createAddNodeOperation(Ee);this.undoStack.exec({undo:()=>{Ie.undo(),this.triggerNodeLayout()},redo:()=>{Ie.redo(),this.triggerNodeLayout()}}),this.select([{id:Ee.uniqueId,type:"node"}],{mode:"single"}),this.effects.push({type:"node.focus",nodeId:Ee.uniqueId});break}case"node.delete":{($=so())==null||$.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=this.createDeleteBulkOperation({nodes:[ae]});this.undoStack.exec(Ee);break}case"node.modify":throw new Error("Please remove this event and introduce tags-specific events");case"node.modify.type":{(L=so())==null||L.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae){console.error("This should be impossible");return}const Ee={stateType:ae.data.type,history:ae.data.type==="history"?ae.data.history:void 0,initialState:ae.data.type==="normal"&&ae.data.initial&&ae.nodes.find(Ie=>Ie.data.key===ae.data.initial)};this.undoStack.exec({undo:()=>{this.modifyNode(r.nodeId,{type:Ee.stateType,history:Ee.history}),yr.putEditInExtensionQueue({type:"set_state_type",path:vr(ae),stateType:Ee.stateType,history:Ee.history}),Ee.initialState&&(this.modifyNode(ae.uniqueId,{initial:Ee.initialState.data.key}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(ae),initialState:Ee.initialState.data.key}))},redo:()=>{this.modifyNode(r.nodeId,{type:r.stateType,history:r.stateType==="history"?"shallow":void 0}),yr.putEditInExtensionQueue({type:"set_state_type",path:vr(ae),stateType:r.stateType}),r.stateType!=="normal"&&Ee.initialState&&(this.modifyNode(ae.uniqueId,{initial:void 0}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(ae),initialState:void 0}))}});break}case"node.modify.invocations.add":{(B=so())==null||B.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=ae.invocations.length,Ie=()=>{ae.invocations=[...ae.invocations,r.invokeDefinition],yr.putEditInExtensionQueue({type:"add_invoke",path:vr(ae),source:r.invokeDefinition.src,id:r.invokeDefinition.userIdOverride,invokeIndex:Ee})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.invocations];tt.splice(Ee,1),ae.invocations=tt,yr.putEditInExtensionQueue({type:"remove_invoke",path:vr(ae),invokeIndex:Ee})},redo:Ie});break}case"node.modify.invocations.delete":{(F=so())==null||F.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=Jh(ae.invocations[r.index]),Ie=ae.invocations[r.index],tt=ae.edges.filter(gn=>{const In=gn.data.eventTypeData;return(In.type==="invocation.done"||In.type==="invocation.error")&&In.invocationId===Ee}),en=()=>{const gn=[...ae.invocations];gn.splice(r.index,1),ae.invocations=gn,tt.forEach(In=>{yr.putEditInExtensionQueue({type:"remove_transition",sourcePath:vr(In.getNodeSource()),transitionPath:No(In)})}),yr.putEditInExtensionQueue({type:"remove_invoke",path:vr(ae),invokeIndex:r.index}),this.triggerNodeLayout()};en(),this.undoStack.push({undo:()=>{const gn=[...ae.invocations];gn.splice(r.index,0,Ie),ae.invocations=gn,yr.putEditInExtensionQueue({type:"add_invoke",path:vr(ae),source:Ie.src,id:Ie.userIdOverride,invokeIndex:r.index}),tt.forEach(In=>{this.register(In),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(In.getNodeSource()),targetPath:vr(In.target),transitionPath:No(In),external:!In.data.internal})}),this.triggerNodeLayout()},redo:en});break}case"node.modify.invocations.edit":{(X=so())==null||X.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=Jh(ae.invocations[r.index]),Ie=Jh(r.invokeDefinition),tt=ae.invocations[r.index],en=ae.edges.filter(In=>{const cr=In.data.eventTypeData;return(cr.type==="invocation.done"||cr.type==="invocation.error")&&cr.invocationId===Ee}).map(In=>({edge:In,prevProps:{type:In.data.eventTypeData.type,invocationId:Ee},nextProps:{type:In.data.eventTypeData.type,invocationId:Ie}})),gn=()=>{const In=[...ae.invocations];In.splice(r.index,1,r.invokeDefinition),ae.invocations=In,yr.putEditInExtensionQueue({type:"edit_invoke",path:vr(ae),source:r.invokeDefinition.src,id:r.invokeDefinition.userIdOverride,invokeIndex:r.index}),en.forEach(({edge:cr,nextProps:Ur})=>{this.edgeModifyEventData(cr.uniqueId,Ur)})};gn(),this.undoStack.push({undo:()=>{const In=[...ae.invocations];In.splice(r.index,1,tt),ae.invocations=In,yr.putEditInExtensionQueue({type:"edit_invoke",path:vr(ae),source:r.invokeDefinition.src,id:tt.userIdOverride,invokeIndex:r.index}),en.forEach(({edge:cr,prevProps:Ur})=>{this.edgeModifyEventData(cr.uniqueId,Ur)})},redo:gn});break}case"node.modify.actions.add":{(te=so())==null||te.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=ae.data[r.actionType].length,Ie=()=>{ae.data[r.actionType]=[...ae.data[r.actionType],r.action],yr.putEditInExtensionQueue({type:"add_action",path:vr(ae),name:r.action.type,actionPath:[r.actionType,Ee]})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data[r.actionType]];tt.splice(Ee,1),ae.data[r.actionType]=tt,yr.putEditInExtensionQueue({type:"remove_action",path:vr(ae),actionPath:[r.actionType,Ee]})},redo:Ie});break}case"node.modify.actions.delete":{(Z=so())==null||Z.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=ae.data[r.actionType][r.index],Ie=()=>{const tt=[...ae.data[r.actionType]];tt.splice(r.index,1),ae.data[r.actionType]=tt,yr.putEditInExtensionQueue({type:"remove_action",path:vr(ae),actionPath:[r.actionType,r.index]})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data[r.actionType]];tt.splice(r.index,0,Ee),ae.data[r.actionType]=tt,yr.putEditInExtensionQueue({type:"add_action",path:vr(ae),name:Ee.type,actionPath:[r.actionType,r.index]})},redo:Ie});break}case"node.modify.actions.edit":{(H=so())==null||H.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId),Ee=ae.data[r.actionType][r.index],Ie=()=>{const tt=[...ae.data[r.actionType]];tt.splice(r.index,1,r.action),ae.data[r.actionType]=tt,yr.putEditInExtensionQueue({type:"edit_action",path:vr(ae),actionPath:[r.actionType,r.index],name:r.action.type})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data[r.actionType]];tt.splice(r.index,1,Ee),ae.data[r.actionType]=tt,yr.putEditInExtensionQueue({type:"edit_action",path:vr(ae),actionPath:[r.actionType,r.index],name:Ee.type})},redo:Ie});break}case"node.modify.key":{(ce=so())==null||ce.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.key;if(Ee===r.key)break;const Ie=tt=>{const en=vr(ae);if(this.modifyNodeKey(r.nodeId,tt),!en.length){yr.putEditInExtensionQueue({type:"set_state_id",path:en,id:tt});return}yr.putEditInExtensionQueue({type:"rename_state",path:en,name:tt})};Ie(r.key),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.key)});break}case"node.modify.description":{(pe=so())==null||pe.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.description;if(Ee===r.description)return;const Ie=tt=>{this.modifyNode(r.nodeId,{description:tt}),yr.putEditInExtensionQueue({type:"set_description",statePath:vr(ae),...tt&&{description:tt}})};Ie(r.description),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.description)});break}case"node.modify.history":{(fe=so())==null||fe.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.history,Ie=tt=>{ae.data={...ae.data,history:tt},yr.putEditInExtensionQueue({type:"set_state_type",path:vr(ae),stateType:"history",history:tt})};Ie(r.history),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.history)});break}case"node.modify.meta":{(ve=so())==null||ve.debouncedTrack(r.type);const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.metaEntries;if(JSON.stringify(Ee)===JSON.stringify(r.metaEntries))break;const Ie=tt=>{ae.data={...ae.data,metaEntries:tt}};Ie(r.metaEntries),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.metaEntries)});break}case"node.parent.modify":{const ae=this.getNodeByUniqueId(r.nodeId),Ee=this.getNodeByUniqueId(r.parentNodeId);if(!ae||!Ee||ae.isAncestorOf(Ee)||ae===Ee)break;const Ie=ae.parent;if(!Ie)throw new Error("Data/logic consistency problem - you can't reparent a root");const en=Ie.data.initial===ae.data.key?(Ge=Ie.nodes.find(cr=>cr.data.key!==ae.data.key))==null?void 0:Ge.data.key:void 0,gn=Ee.data.type==="normal"&&Ee.data.initial===void 0,In=cr=>{const Ur=vr(ae);ae.parent.nodes.splice(ae.parent.nodes.findIndex(eo=>eo===ae),1),cr.nodes.push(ae),ae.parent=cr,yr.putEditInExtensionQueue({type:"reparent_state",path:Ur,newParentPath:vr(cr)}),this.triggerNodeLayout()};this.undoStack.exec({undo:()=>{en&&(this.modifyNode(Ie.uniqueId,{initial:ae.data.key}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(Ie),initialState:ae.data.key})),gn&&(this.modifyNode(Ee.uniqueId,{initial:void 0}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(Ee),initialState:void 0})),In(Ie)},redo:()=>{en&&(this.modifyNode(Ie.uniqueId,{initial:en}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(Ie),initialState:en})),gn&&(this.modifyNode(Ee.uniqueId,{initial:ae.data.key}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(Ee),initialState:ae.data.key})),In(Ee)}});break}case"edge.setSize":{const{edgeId:ae,size:Ee}=r;this.setEdgeSize({edgeId:ae,size:Ee}),this.triggerNodeLayout();break}case"edge.addGuard":{(qe=so())==null||qe.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae||ae.data.guard)return;const Ee=()=>{const Ie={type:"New Guard"};ae.data=Object.assign({},ae.data,{guard:Ie}),yr.putEditInExtensionQueue({type:"add_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:Ie.type})};Ee(),this.effects.push({type:"edge.focus",edgeId:ae.uniqueId,field:"guard"}),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),yr.putEditInExtensionQueue({type:"remove_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae)})},redo:Ee});break}case"edge.removeGuard":{(Je=so())==null||Je.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!(ae!=null&&ae.data.guard))return;const Ee=ae.data.guard,Ie=()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),yr.putEditInExtensionQueue({type:"remove_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae)})};Ie(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),yr.putEditInExtensionQueue({type:"add_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:Ee.type})},redo:Ie});break}case"edge.addTransition":{(et=so())==null||et.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),Ee=ae.getConnectedEdge(),Ie=new $x({target:ae.target.getSerialisableId(),data:{eventTypeData:ae.data.eventTypeData,guard:void 0,actions:[],description:void 0,internal:vU(ae.getNodeSource(),ae.target),metaEntries:void 0},position:{x:ae.position.x,y:ae.getFamilyRect().bottom+50}},ae);this.register(Ie),Ee&&this.reanchorEdge(Ee,{newSource:Ie});const tt={type:"New guard"},en=ae.data.guard?void 0:{redo(){ae.data={...ae.data,guard:tt},yr.putEditInExtensionQueue({type:"add_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:tt.type})},undo(){ae.data={...ae.data,guard:void 0},yr.putEditInExtensionQueue({type:"remove_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae)})}};en==null||en.redo(),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(Ie.getNodeSource()),targetPath:vr(Ie.target),transitionPath:No(Ie),external:!Ie.data.internal,guard:void 0}),this.undoStack.push({undo:()=>{en==null||en.undo(),yr.putEditInExtensionQueue({type:"remove_transition",sourcePath:vr(Ie.getNodeSource()),transitionPath:No(Ie)}),Ee&&this.reanchorEdge(Ee,{newSource:Ie.source}),this.createDeleteEdgeOperation(Ie).redo(),this.triggerNodeLayout()},redo:()=>{en==null||en.redo(),this.register(Ie),Ee&&this.reanchorEdge(Ee,{newSource:Ie}),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(Ie.getNodeSource()),targetPath:vr(Ie.target),transitionPath:No(Ie),external:!Ie.data.internal,guard:void 0}),this.triggerNodeLayout()}}),this.select([{id:Ie.uniqueId,type:"edge"}],{mode:"single"}),this.effects.push({type:"edge.focus",edgeId:Ie.uniqueId,field:"guard"}),this.triggerNodeLayout();break}case"edge.delete":{(jt=so())==null||jt.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)return;const Ee=this.createDeleteEdgeOperation(ae);this.undoStack.exec(Ee);break}case"undo":{(Me=so())==null||Me.debouncedTrack(r.type),this.undoStack.canUndo()&&this.undoStack.undo();break}case"redo":{(Ve=so())==null||Ve.debouncedTrack(r.type),this.undoStack.canRedo()&&this.undoStack.redo();break}case"edge.anchor.moveStart":{const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;this.status="movingAnchor",r.anchor==="source"?this.tempAnchor={type:"source",point:r.point,edgeId:ae.uniqueId,newAnchorTarget:void 0}:this.tempAnchor={type:"target",point:r.point,edgeId:ae.uniqueId,newAnchorTarget:void 0};break}case"edge.anchor.move":{if(this.status!=="movingAnchor")break;this.moveAnchor(r);break}case"edge.anchor.moveCancel":{if(this.status!=="movingAnchor")break;(ye=so())==null||ye.debouncedTrack(r.type),this.cancelAnchorMove();break}case"edge.anchor.moveEnd":{(De=so())==null||De.debouncedTrack(r.type);const{tempAnchor:ae}=this;if(this.status!=="movingAnchor"||!ae)break;const Ee=this.getEdgeByUniqueId(ae.edgeId);if(!Ee)break;if(this.status="idle",this.unhighlightAll(),ae.newAnchorTarget){if(ae.type==="source"&&ae.newAnchorTarget!==Ee.getNodeSource()){const Ie=({source:cr,newSource:Ur},eo)=>{const Tr=No(Ee);let Uo=Tr;In&&(eo?(this.reanchorEdge(In,{newSource:Ee}),Uo=en):this.reanchorEdge(In,{newSource:Ee.source})),this.reanchorEdge(Ee,{newSource:Ur}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:vr(Ix(cr)),newSourcePath:vr(Ix(Ur)),transitionPath:Tr,newTransitionPath:Uo})},tt=Ee.source,en=No(Ee),gn=ae.newAnchorTarget.getAppendantSourceFor(Ee.data.eventTypeData),In=Ee.getConnectedEdge();Ie({source:tt,newSource:gn}),this.undoStack.push({undo:()=>Ie({source:gn,newSource:tt},!0),redo:()=>Ie({source:tt,newSource:gn})})}else if(ae.type==="target"){const Ie=({newTarget:gn})=>{this.reanchorEdge(Ee,{newTarget:gn}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:vr(Ee.getNodeSource()),newTargetPath:vr(gn),transitionPath:No(Ee)}),this.triggerNodeLayout()},tt=Ee.target,en=ae.newAnchorTarget;Ie({newTarget:en}),this.undoStack.push({undo:()=>Ie({newTarget:tt}),redo:()=>Ie({newTarget:en})})}}this.tempAnchor=void 0,this.unhighlightAll(),this.triggerNodeLayout();break}case"edge.modify.guard":{(be=so())==null||be.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(!ae.data.guard&&((xe=r.guard)==null?void 0:xe.type)){const Ee=r.guard,Ie=()=>{ae.data=Object.assign({},ae.data,{guard:Ee}),yr.putEditInExtensionQueue({type:"add_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:Ee.type})};Ie(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),yr.putEditInExtensionQueue({type:"remove_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae)})},redo:Ie})}else if((Jt=r.guard)!=null&&Jt.type){const Ee=ae.data.guard,Ie=r.guard,tt=({guard:en})=>{ae.data=Object.assign({},ae.data,{guard:en}),yr.putEditInExtensionQueue({type:"edit_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:en.type})};tt({guard:Ie}),this.undoStack.push({undo:()=>tt({guard:Ee}),redo:()=>tt({guard:Ie})})}else{const Ee=ae.data.guard,Ie=()=>{ae.data=Object.assign({},ae.data,{guard:void 0}),yr.putEditInExtensionQueue({type:"remove_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae)})};Ie(),this.undoStack.push({undo:()=>{ae.data=Object.assign({},ae.data,{guard:Ee}),Ee&&yr.putEditInExtensionQueue({type:"add_guard",path:vr(ae.getNodeSource()),transitionPath:No(ae),name:Ee.type})},redo:Ie})}break}case"edge.modify.actions.add":{(an=so())==null||an.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),Ee=ae.data.actions.length,Ie=()=>{ae.data.actions=[...ae.data.actions,r.action],yr.putEditInExtensionQueue({type:"add_action",path:vr(ae.getNodeSource()),actionPath:[...No(ae),Ee],name:r.action.type})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data.actions];tt.splice(Ee,1),ae.data.actions=tt,yr.putEditInExtensionQueue({type:"remove_action",path:vr(ae.getNodeSource()),actionPath:[...No(ae),Ee]})},redo:Ie});break}case"edge.modify.actions.delete":{(An=so())==null||An.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),Ee=ae.data.actions[r.index],Ie=()=>{const tt=[...ae.data.actions];tt.splice(r.index,1),ae.data.actions=tt,yr.putEditInExtensionQueue({type:"remove_action",path:vr(ae.getNodeSource()),actionPath:[...No(ae),r.index]})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data.actions];tt.splice(r.index,0,Ee),ae.data.actions=tt,yr.putEditInExtensionQueue({type:"add_action",path:vr(ae.getNodeSource()),name:Ee.type,actionPath:[...No(ae),r.index]})},redo:Ie});break}case"edge.modify.actions.edit":{(Wn=so())==null||Wn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId),Ee=ae.data.actions[r.index],Ie=()=>{const tt=[...ae.data.actions];tt.splice(r.index,1,r.action),ae.data.actions=tt,yr.putEditInExtensionQueue({type:"edit_action",path:vr(ae.getNodeSource()),actionPath:[...No(ae),r.index],name:r.action.type})};Ie(),this.undoStack.push({undo:()=>{const tt=[...ae.data.actions];tt.splice(r.index,1,Ee),ae.data.actions=tt,yr.putEditInExtensionQueue({type:"edit_action",path:vr(ae.getNodeSource()),actionPath:[...No(ae),r.index],name:Ee.type})},redo:Ie});break}case"edge.modify.internal":{(ir=so())==null||ir.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=({internal:Ie})=>{ae.data=Object.assign({},ae.data,{internal:r.internal}),yr.putEditInExtensionQueue({type:"mark_transition_as_external",sourcePath:vr(ae.getNodeSource()),transitionPath:No(ae),external:!Ie})};Ee({internal:r.internal}),this.undoStack.push({undo:()=>Ee({internal:!r.internal}),redo:()=>Ee({internal:r.internal})});break}case"edge.modify.description":{(Jn=so())==null||Jn.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(ae.data.description===r.description)return;const Ee=ae.data.description,Ie=tt=>{ae.data=Object.assign({},ae.data,{description:tt}),yr.putEditInExtensionQueue({type:"set_description",statePath:vr(ae.getNodeSource()),transitionPath:No(ae),...tt&&{description:tt}}),this.triggerNodeLayout()};Ie(r.description),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.description)});break}case"edge.modify.meta":{(Gr=so())==null||Gr.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=ae.data.metaEntries;if(JSON.stringify(Ee)===JSON.stringify(r.metaEntries))break;const Ie=tt=>{ae.data={...ae.data,metaEntries:tt}};Ie(r.metaEntries),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.metaEntries)});break}case"edge.modify.eventType":{(Ze=so())==null||Ze.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;if(Xo(ae.data.eventTypeData,r.eventTypeData))return;const Ee=ae.data.eventTypeData;if(!(ae.source instanceof Ju)){const eo=ae.source,Tr=ae.getNodeSource().getAppendantSourceFor(r.eventTypeData),Uo=ae.getConnectedEdge();this.undoStack.exec({undo:()=>{const Se=No(ae);this.edgeModifyEventData(r.edgeId,Ee),this.reanchorEdge(ae,{newSource:eo}),Uo&&this.reanchorEdge(Uo,{newSource:ae}),yr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:vr(ae.getNodeSource()),transitionPath:Se,newTransitionPath:No(ae)})},redo:()=>{const Se=No(ae);this.edgeModifyEventData(r.edgeId,r.eventTypeData),this.reanchorEdge(ae,{newSource:Tr}),Uo&&this.reanchorEdge(Uo,{newSource:eo}),yr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:vr(ae.getNodeSource()),transitionPath:Se,newTransitionPath:No(ae)})}});break}const tt=ae.source,en=ae.getNodeSource(),gn=en.getAppendantSourceFor(r.eventTypeData),In=gn instanceof Ju?0:gn.getEdgeGroupIndex()+1,Ur=ae.getGroup().map((eo,Tr)=>({edgeId:eo.uniqueId,oldTransitionPath:No(eo),newTransitionPath:BLt({nodeSource:en,index:In+Tr,eventTypeData:r.eventTypeData})}));this.undoStack.exec({undo:()=>{const[{newTransitionPath:eo}]=Ur;for(const Tr of Ur)this.edgeModifyEventData(Tr.edgeId,Ee),yr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:vr(en),transitionPath:eo,newTransitionPath:Tr.oldTransitionPath});this.reanchorEdge(ae,{newSource:tt})},redo:()=>{const[{oldTransitionPath:eo}]=Ur;for(const Tr of Ur)this.edgeModifyEventData(Tr.edgeId,r.eventTypeData),yr.putEditInExtensionQueue({type:"change_transition_path",sourcePath:vr(en),transitionPath:eo,newTransitionPath:Tr.newTransitionPath});this.reanchorEdge(ae,{newSource:gn})}});break}case"edge.setSource":{(ut=so())==null||ut.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=ae.getNodeSource(),Ie=No(ae),tt=this.resolveNodeLike(r.source).getAppendantSourceFor(ae.data.eventTypeData),en=ae.getConnectedEdge(),gn=({oldSource:In,newSource:cr},Ur)=>{const eo=No(ae);let Tr=eo;en&&(Ur?(this.reanchorEdge(en,{newSource:ae}),Tr=Ie):this.reanchorEdge(en,{newSource:ae.source})),this.reanchorEdge(ae,{newSource:cr}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:vr(Ix(In)),newSourcePath:vr(Ix(cr)),transitionPath:eo,newTransitionPath:Tr}),this.triggerNodeLayout()};gn({oldSource:Ee,newSource:tt}),this.undoStack.push({undo:()=>gn({oldSource:tt,newSource:Ee},!0),redo:()=>gn({oldSource:Ee,newSource:tt})});break}case"edge.setTarget":{(on=so())==null||on.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=ae.target,Ie=this.resolveNodeLike(r.target),tt=({newTarget:en})=>{this.reanchorEdge(ae,{newTarget:en}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:vr(ae.getNodeSource()),newTargetPath:vr(en),transitionPath:No(ae)}),this.triggerNodeLayout()};tt({newTarget:Ie}),this.undoStack.push({undo:()=>tt({newTarget:Ee}),redo:()=>tt({newTarget:Ie})});break}case"edge.setSourceAndTarget":{(Ne=so())==null||Ne.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=ae.getNodeSource(),Ie=No(ae),tt=ae.target,en=this.resolveNodeLike(r.source).getAppendantSourceFor(ae.data.eventTypeData),gn=this.resolveNodeLike(r.target),In=ae.getConnectedEdge(),cr=({newSource:Ur,newTarget:eo},Tr)=>{const Uo=vr(ae.getNodeSource()),Se=No(ae);let K=Se;In&&(Tr?(this.reanchorEdge(In,{newSource:ae}),K=Ie):this.reanchorEdge(In,{newSource:ae.source})),this.reanchorEdge(ae,{newSource:Ur,newTarget:eo}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:Uo,newSourcePath:vr(Ix(Ur)),newTargetPath:vr(eo),transitionPath:Se,newTransitionPath:K}),this.triggerNodeLayout()};this.undoStack.exec({undo:()=>cr({newSource:Ee,newTarget:tt},!0),redo:()=>cr({newSource:en,newTarget:gn})});break}case"edge.targetSelf":{(at=so())==null||at.debouncedTrack(r.type);const ae=this.getEdgeByUniqueId(r.edgeId);if(!ae)break;const Ee=ae.target,Ie=ae.getNodeSource(),tt=({newTarget:en})=>{this.reanchorEdge(ae,{newTarget:en}),yr.putEditInExtensionQueue({type:"reanchor_transition",sourcePath:vr(ae.getNodeSource()),newTargetPath:vr(en),transitionPath:No(ae)}),this.triggerNodeLayout()};this.undoStack.exec({undo:()=>tt({newTarget:Ee}),redo:()=>tt({newTarget:Ie})});break}case"node.setInitialState":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.initial,Ie=tt=>{this.modifyNode(ae.uniqueId,{initial:tt}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(ae),initialState:tt})};Ie(r.key),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.key)});break}case"node.setColor":{const ae=this.getNodeByUniqueId(r.nodeId);if(!ae)break;const Ee=ae.data.color,Ie=tt=>this.modifyNode(ae.uniqueId,{color:tt});Ie(r.color),this.undoStack.push({undo:()=>Ie(Ee),redo:()=>Ie(r.color)});break}case"interact.enter":{const ae=Object.values(this.selection);if(ae.length===1)switch(ae[0].type){case"node":{const Ee=this.getNodeByUniqueId(ae[0].id);if(!Ee)break;this.effects.push({type:"node.focus",nodeId:Ee.uniqueId});break}case"edge":{const Ee=this.getEdgeByUniqueId(ae[0].id);if(!Ee)break;this.effects.push({type:"edge.focus",edgeId:Ee.uniqueId,field:"key"});break}}break}}if(EHn[r.type]){const ae=Zce(this);this._layoutString!==ae&&(this._layoutString=ae,yr.putEditInExtensionQueue({type:"update_layout_string",layoutString:ae})),this.effects.push({type:"reportChange"})}yr.flushEditsToExtension({reason:r.type==="undo"?"undo":r.type==="redo"?"redo":void 0})}setEdgeSize({edgeId:r,size:c}){if(this.status!=="movingSelection"){const u=this.getEdgeByUniqueId(r);if(!u)return;u.size={height:c.height,width:c.width}}}resolveEdgeLayouts(){this.edges.filter(r=>r.layoutStatus==="needs-layout").forEach(r=>{const c=r.getNodeSource();if(c.labelSize.height>0&&c.labelSize.width>0){const u=c.findBestSiblingPosition("right",r);this.setEdgePosition({edge:r,position:u}),r.layoutStatus="done"}})}moveAnchor(r){if(this.status!=="movingAnchor"||!this.tempAnchor)return;this.tempAnchor.point=r.point;const c=this.getNodeRectDataAtPoint(r.point);c?c.rectKey!=="family"?(this.tempAnchor.newAnchorTarget=c.node,this.highlight(c.node)):(this.tempAnchor.newAnchorTarget=void 0,this.unhighlightAll()):(this.tempAnchor.newAnchorTarget=void 0,this.unhighlightAll())}reanchorEdge(r,{newSource:c=r.source,newTarget:u=r.target}){const d=r.getNodeSource(),p=Ix(c);r.data=Object.assign({},r.data,{internal:d===p&&vU(d,r.target)?r.data.internal:vU(p,u)}),r.source=c,r.target=u}edgeModifyEventData(r,c){const u=this.getEdgeByUniqueId(r);!u||(u.data.eventTypeData=c)}createDeleteEdgeOperation(r){const c=r.getConnectedEdge();return{undo:()=>{this.register(r),c&&this.reanchorEdge(c,{newSource:r}),yr.putEditInExtensionQueue({type:"add_transition",sourcePath:vr(r.getNodeSource()),targetPath:vr(r.target),transitionPath:No(r),external:!r.data.internal})},redo:()=>{c&&this.reanchorEdge(c,{newSource:r.source}),this.unregister(r),yr.putEditInExtensionQueue({type:"remove_transition",sourcePath:vr(r.getNodeSource()),transitionPath:No(r)})}}}getSortedNodesWithin(r){const c=new Set;function u(p){c.add(p);for(const m of p.nodes)u(m)}for(const p of r)c.has(p)||u(p);const d=p=>{let m=0,x=p;for(;x;)m++,x=x.parent;return m};return Array.from(c).sort((p,m)=>d(m)-d(p))}createAddNodeOperation(r){if(!r.parent)throw new Error("Cannot add a node without a parent");const c=r.parent,u=c.data.type==="normal"&&!c.nodes.length;return{undo:()=>{o7t(c.nodes,r),this.unregister(r),yr.putEditInExtensionQueue({type:"remove_state",path:vr(r)}),u&&(this.modifyNode(c.uniqueId,{initial:void 0}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(c),initialState:void 0}))},redo:()=>{this.register(r),c.nodes.push(r),yr.putEditInExtensionQueue({type:"add_state",path:vr(c),name:r.data.key}),u&&(this.modifyNode(c.uniqueId,{initial:r.data.key}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(c),initialState:r.data.key}))}}}createDeleteNodeOperation(r){var p;if(!r.parent)return console.error(`Cannot delete root node (ID: "${r.getSerialisableId()}")`),{undo:()=>{},redo:()=>{}};const c=r.parent,u=c&&c.data.initial===r.data.key,d=u?(p=c.nodes.find(m=>m.data.key!==r.data.key))==null?void 0:p.data.key:void 0;return{undo:()=>{this.register(r),c.nodes.push(r),yr.putEditInExtensionQueue({type:"add_state",path:vr(r.parent),name:r.data.key}),u&&(this.modifyNode(c.uniqueId,{initial:r.data.key}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(c),initialState:r.data.key}))},redo:()=>{o7t(c.nodes,r),this.unregister(r),yr.putEditInExtensionQueue({type:"remove_state",path:vr(r)}),u&&(this.modifyNode(c.uniqueId,{initial:d}),yr.putEditInExtensionQueue({type:"set_initial_state",path:vr(c),initialState:d}))}}}sendSelectionToClipboard(r){var E;if(!(Object.values(this.selection).length>0))return;const u=sS(Object.values(this.selection).map(k=>{if(k.type==="node"){const P=this.getNodeByUniqueId(k.id);return P==null?void 0:P.currentRects.family}const T=this.getEdgeByUniqueId(k.id);return T==null?void 0:T.getBounds()})),d={nodes:[],edges:[],bounds:{height:u.height,width:u.width,x:u.x,y:u.y}},p=new Set,m=k=>{p.add(k.id),k.nodes.forEach(m)};Object.values(this.selection).forEach(k=>{if(k.type==="node"){if(k.id===this.root.uniqueId)return;const T=this.getNodeByUniqueId(k.id);if(p.has(T.getSerialisableId()))return;const P=cfe(T);d.nodes.push(P),m(P)}else{const T=this.getEdgeByUniqueId(k.id);d.edges.push(nNe(T))}}),this.selection[this.root.uniqueId]&&(d.rootName=this.root.data.key,d.context=this.data.context);try{(E=r.clipboardData)==null||E.setData("text/plain",JSON.stringify(d))}catch(k){console.warn(k)}}createNewNode(r){var x;const c=r.parent,u=(x=r.position)!=null?x:Gce(c),d=IHn(c),p={nodes:[],data:{entry:[],exit:[],invoke:[],key:d,tags:[],...r.data},position:u};return new Ju(p,this.self,c)}setNodeSize(r){const c=this.getNodeByUniqueId(r.nodeId);!c||(c.labelSize=r.size,c.layoutStatus==="needs-layout"&&(c._position=Gce(c.parent),c.layoutStatus="done"),c.calculateRects(),_ae(c).forEach(u=>{u.calculateRects()}))}getNodeEdges(r){return this.edges.filter(c=>c.getNodeSource()===r)}setNodePosition(r){const{node:c}=r;if(c.nodes.length){const u={dx:r.position.x-c.position.x,dy:r.position.y-c.position.y};c.nodes.forEach(d=>{this.setNodePosition({node:d,position:{x:d.position.x+u.dx,y:d.position.y+u.dy}})})}else c._position=r.position;_ae(r.node).forEach(u=>{u.calculateRects()})}setEdgePosition({edge:r,position:c}){r.position=c,x7t(r).forEach(u=>{u.calculateRects()})}select(r,{mode:c="single"}={}){c==="single"&&this.deselectAll(),r.forEach(u=>{u.type==="edge"?this.selection[u.id]=u:this.selection[u.id]=u})}deselectById(r){delete this.selection[r]}selectAll(){const r=this.nodes.map(u=>({type:"node",id:u.uniqueId})),c=this.edges.map(u=>({type:"edge",id:u.uniqueId}));this.select([...r,...c],{mode:"multi"})}deselectAll(){this.selection={}}highlight(r){this.unhighlightAll(),this.highlights=new Set([r]),r.isHighlighted=!0}unhighlight(r){this.highlights.delete(r),r.isHighlighted=!1}unhighlightAll(){this.highlights.forEach(r=>this.unhighlight(r))}register(r){r instanceof Ju?(this._nodes.add(r),this.nodeMap.set(r.uniqueId,r)):r instanceof $x&&(this._edges.add(r),this.edgeMap.set(r.uniqueId,r))}unregister(r){this.deselectById(r.uniqueId),r instanceof Ju?(this._nodes.delete(r),this.nodeMap.delete(r.uniqueId)):r instanceof $x&&(this._edges.delete(r),this.edgeMap.delete(r.uniqueId))}getNodeBySerialisableId(r){const c=r.split(".").slice(1);let u=this.root,d;for(;u&&(d=c.shift());)u=u.nodes.find(p=>p.data.key===d);return u}getNodeByUniqueId(r){return this.nodeMap.get(r)}triggerNodeLayout(){function r(c){c.nodes.forEach(u=>{r(u)}),c.calculateRects()}r(this.root)}getNodeAtPoint(r,c="family"){const u=this.nodes.filter(d=>CHn(r,d.currentRects[c]));return u.length?u[u.length-1]:void 0}getNodeRectDataAtPoint(r){const c=this.getNodeAtPoint(r);if(!c)return;const u=c.getIntersectingRect(r);if(!!u)return{node:c,rectKey:u.rectKey,rect:u.rect}}getEntitiesInRect(r){const c=[];return this.nodes.forEach(u=>{u7e(r,u.currentRects.label)&&c.push(u)}),this.edges.forEach(u=>{u7e(r,u.getLabelRect())&&c.push(u)}),c}getEdgeBySerialisableId(r){return this.edges.find(c=>c.getSerialisableId()===r)}getEdgeByUniqueId(r){return this.edgeMap.get(r)}addEdge(r,c){const u=Ix(r);if(u.data.type==="history")return;const d=this.getNodeBySerialisableId(c.edgeConfig.target);let p;if(c.position)p=c.position;else if(d===u){const E=u.currentRects.family.centerSide("left");p={x:E.x-160,y:E.y-g7e.height/2}}else{const x=u.isAncestorOf(d),E=d.currentRects.family,k=_zn(E)?E:Mzn(E);p=Dzn(x?u.currentRects.label:u.currentRects.family,k),p.x-=g7e.width/2,p.y-=g7e.height/2}const m=new $x({...c.edgeConfig,position:p,data:{...c.edgeConfig.data,internal:vU(u,d)}},r);return this.register(m),m}cancelInteraction(){switch(this.status){case"movingSelection":this.cancelSelectionMove();return;case"creatingNewEdge":this.cancelNewEdge();return;case"movingAnchor":this.cancelAnchorMove();return;case"selected":this.deselectAll();return}}cancelSelectionMove(){this.status="selected",this.moveSelection({dx:0,dy:0})}cancelNewEdge(){this.unhighlightAll(),this.tempEdge=void 0,this.status="idle"}cancelAnchorMove(){this.unhighlightAll(),this.tempAnchor=void 0,this.status="idle"}createDeleteBulkOperation(r){const c=this.getSortedNodesWithin(r.nodes||[]),u=c.flatMap(x=>x.getSourceAndTargetEdges()),p=[...new Set([...u,...r.edges||[]])].map(x=>this.createDeleteEdgeOperation(x)),m=c.map(x=>this.createDeleteNodeOperation(x));return{redo:()=>{p.forEach(x=>x.redo()),m.forEach(x=>x.redo()),this.triggerNodeLayout()},undo:()=>{m.reverse().forEach(x=>x.undo()),p.forEach(x=>x.undo()),this.triggerNodeLayout()}}}}const g7e=new Du({width:80,height:36,x:0,y:0}),C7t=(n,r,c,u,d="web",p)=>SHn((m,x)=>(m.receive(x),m),new kHn(n,r,c,u,d,p)),I7t=n=>{const r=n,c=r.edges,u=r.invocations.find(x=>!c.some(E=>E.data.eventTypeData.type==="invocation.done"&&E.data.eventTypeData.invocationId===Jh(x)));if(u)return{type:"invocation.done",invocationId:Jh(u)};const d=r.invocations.find(x=>!c.some(E=>E.data.eventTypeData.type==="invocation.error"&&E.data.eventTypeData.invocationId===Jh(x)));if(d)return{type:"invocation.error",invocationId:d.userIdOverride||d.internalUniqueId};let p=c.length+1,m=`Event ${p}`;for(;c.some(x=>x.data.eventTypeData.type==="named"&&x.data.eventTypeData.eventType===m);)p++,m=`Event ${p}`;return{type:"named",eventType:m}},CHn=(n,r)=>n.x>r.left&&n.xr.top&&n.y{const r=new Set(n.nodes.map(u=>u.data.key));let c=1;for(;r.has(`new state ${c}`);)c++;return`new state ${c}`},THn=(n,r)=>{if(n.type==="edge"){const u=r.getEdgeByUniqueId(n.id);return[u.getLabelRect().translate(-(u==null?void 0:u.delta.dx),-u.delta.dy),u.delta]}const c=r.getNodeByUniqueId(n.id);return[c.currentRects.family.translate(-c.delta.dx,-c.delta.dy),c.delta]},VLt=rfe()?window.localStorage:ife(),AHn=()=>{var c;const r=(c=VLt.getItem("panels"))!=null?c:(!1).toString();try{return Boolean(JSON.parse(r))}catch{return!1}},PHn=(n,r)=>{var c;return lN({graphActor:n,selected:void 0,activeState:void 0,initialState:void 0,selectionBox:null,eventLog:[],leftPanel:(c=r==null?void 0:r.leftPanelDefaultOpen)!=null?c:!0},{events:{"KEY.DELETE":()=>({}),"KEY.ESCAPE":()=>({}),"KEYDOWN.SHIFT":()=>({}),"KEYUP.SHIFT":()=>({}),INPUT:u=>({entity:u}),"INPUT.CANCEL":()=>({}),SELECT:u=>({entity:u}),"SIMULATION.EVENT.CLICK":(u,d)=>({eventType:u,guardName:d}),"SIMULATION.EVENTLOG.CLICK":u=>({index:u}),"SIMULATION.RESET":()=>({}),"mode.simulate":()=>({}),"mode.edit":()=>({}),"mode.test":()=>({}),"selectionBox.change":u=>({selectionBox:u}),"leftPanel.toggle":()=>({}),CONFIG_UPDATED_BY_POSTMESSAGE:()=>({}),GRAPH_ACTOR_UPDATED:u=>({actor:u})}})},OHn=({graphActor:n,ref:r,canvasOpts:c,initialViewBox:u})=>{const d=PHn(n,c);return d.createMachine({preserveActionOrder:!0,invoke:[{id:"canvasInteractions",src:()=>Sq.withContext({...mb.initialContext,ref:r,graphActor:n,viewBox:new DD(u||QDe),persistedViewBox:u})}],initial:"editing",states:{editing:{initial:"idle",entry:d.assign({activeState:void 0,eventLog:[]}),exit:p=>p.graphActor.send({type:"deselectAll"}),invoke:{src:p=>()=>Il.bind(window,{type:"keydown",options:{capture:!0},listener:m=>{const x=m.target;if(fN(x))return;const E=k=>{m.preventDefault(),m.stopPropagation(),p.graphActor.send(k)};switch(m.key){case"z":{if(!xq(m))return;m.shiftKey?E({type:"redo"}):E({type:"undo"});return}case"a":if(!xq(m))return;E({type:"selectAll"})}}})},states:{idle:{on:{"selectionBox.change":{target:"selecting",actions:[Ji({selectionBox:(p,m)=>m.selectionBox})]}}},selecting:{on:{"selectionBox.change":[{cond:(p,m)=>!!m.selectionBox,actions:[d.assign({selectionBox:(p,m)=>m.selectionBox}),p=>{p.graphActor.send({type:"select.box",box:p.selectionBox,mode:"single"})}]},{target:"idle",actions:d.assign({selectionBox:null})}],"KEY.ESCAPE":"idle"}},input:{on:{"INPUT.CANCEL":"idle"},always:{target:"idle",cond:p=>!Object.keys(p.graphActor.snapshot.selection).length},initial:"unknown",states:{unknown:{always:[{target:"state",cond:p=>Object.keys(p.graphActor.snapshot.selection).length===1&&Object.values(p.graphActor.snapshot.selection)[0].type==="node"},{target:"edge",cond:p=>p.graphActor.snapshot.selection instanceof $x}]},edge:{tags:"edgeInput"},newEdge:{tags:"edgeInput",on:{}},state:{tags:"stateInput",entry:dBn(p=>p.selected)}}}},on:{"KEY.DELETE":{actions:p=>{p.graphActor.send({type:"selection.delete"})}},"KEY.ESCAPE":{actions:"deselectAll"},INPUT:".input"}},simulating:{entry:[Ji(p=>{const m=jse(p);return{activeState:m.initialState,initialState:m.initialState}})],exit:Ji(()=>({activeState:void 0,eventLog:[],initialState:void 0})),on:{CONFIG_UPDATED_BY_POSTMESSAGE:"editing","SIMULATION.RESET":{actions:Ji(p=>({activeState:jse(p).initialState}))},"SIMULATION.EVENTLOG.CLICK":{cond:(p,m)=>Boolean(p.eventLog[m.index]),actions:Ji((p,m)=>{const x=p.eventLog.slice(0,m.index),E=jse(p),k=x.reduce((T,P)=>E.transition(T,P),E.initialState);return{eventLog:x,activeState:k}})},"SIMULATION.EVENT.CLICK":{actions:Ji((p,m)=>{const x=jse(p),E=x.transition(p.activeState||x.initialState,{event:{type:m.eventType},guardNamesToEnsurePass:m.guardName?[m.guardName]:[]});return{eventLog:[...p.eventLog,{event:{type:m.eventType},guardNamesToEnsurePass:m.guardName?[m.guardName]:[],newState:E}],activeState:E}})}}},testing:{}},on:{GRAPH_ACTOR_UPDATED:{actions:d.assign((p,m)=>({graphActor:m.actor}))},SELECT:{actions:d.assign({selected:(p,m)=>m.entity})},"mode.simulate":{target:".simulating",actions:["focusSvgRef"]},"mode.edit":".editing","mode.test":".testing","leftPanel.toggle":{actions:[d.assign({leftPanel:p=>!p.leftPanel}),"persistPanelState"]}}},{actions:{focusSvgRef:()=>{var p;(p=r.current)==null||p.focus()},deselectAll:p=>{p.graphActor.send({type:"deselectAll"})},persistPanelState:p=>{VLt.setItem("panels",JSON.stringify(p.leftPanel))}}})},jse=n=>{const{config:r}=L$t(dN.toJSON(n.graphActor.snapshot));return new wzn(r)};function Fa(n,r,{checkForDefaultPrevented:c=!0}={}){return function(d){if(n==null||n(d),c===!1||!d.defaultPrevented)return r==null?void 0:r(d)}}function SW(n,r=[]){let c=[];function u(p,m){const x=U.exports.createContext(m),E=c.length;c=[...c,m];function k(P){const{scope:I,children:O,...N}=P,j=(I==null?void 0:I[n][E])||x,$=U.exports.useMemo(()=>N,Object.values(N));return U.exports.createElement(j.Provider,{value:$},O)}function T(P,I){const O=(I==null?void 0:I[n][E])||x,N=U.exports.useContext(O);if(N)return N;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${p}\``)}return k.displayName=p+"Provider",[k,T]}const d=()=>{const p=c.map(m=>U.exports.createContext(m));return function(x){const E=(x==null?void 0:x[n])||p;return U.exports.useMemo(()=>({[`__scope${n}`]:{...x,[n]:E}}),[x,E])}};return d.scopeName=n,[u,_Hn(d,...r)]}function _Hn(...n){const r=n[0];if(n.length===1)return r;const c=()=>{const u=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(p){const m=u.reduce((x,{useScope:E,scopeName:k})=>{const P=E(p)[`__scope${k}`];return{...x,...P}},{});return U.exports.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return c.scopeName=r.scopeName,c}function MHn(n,r){typeof n=="function"?n(r):n!=null&&(n.current=r)}function gNe(...n){return r=>n.forEach(c=>MHn(c,r))}function _b(...n){return U.exports.useCallback(gNe(...n),n)}const Oq=U.exports.forwardRef((n,r)=>{const{children:c,...u}=n,d=U.exports.Children.toArray(c),p=d.find(NHn);if(p){const m=p.props.children,x=d.map(E=>E===p?U.exports.Children.count(m)>1?U.exports.Children.only(null):U.exports.isValidElement(m)?m.props.children:null:E);return U.exports.createElement(RPe,oa({},u,{ref:r}),U.exports.isValidElement(m)?U.exports.cloneElement(m,void 0,x):null)}return U.exports.createElement(RPe,oa({},u,{ref:r}),c)});Oq.displayName="Slot";const RPe=U.exports.forwardRef((n,r)=>{const{children:c,...u}=n;return U.exports.isValidElement(c)?U.exports.cloneElement(c,{...jHn(u,c.props),ref:gNe(r,c.ref)}):U.exports.Children.count(c)>1?U.exports.Children.only(null):null});RPe.displayName="SlotClone";const DHn=({children:n})=>U.exports.createElement(U.exports.Fragment,null,n);function NHn(n){return U.exports.isValidElement(n)&&n.type===DHn}function jHn(n,r){const c={...r};for(const u in r){const d=n[u],p=r[u];/^on[A-Z]/.test(u)?c[u]=(...x)=>{p==null||p(...x),d==null||d(...x)}:u==="style"?c[u]={...d,...p}:u==="className"&&(c[u]=[d,p].filter(Boolean).join(" "))}return{...n,...c}}const RHn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Jx=RHn.reduce((n,r)=>{const c=U.exports.forwardRef((u,d)=>{const{asChild:p,...m}=u,x=p?Oq:r;return U.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),U.exports.createElement(x,oa({},m,{ref:d}))});return c.displayName=`Primitive.${r}`,{...n,[r]:c}},{});function zLt(n,r){n&&PS.exports.flushSync(()=>n.dispatchEvent(r))}function ULt(n){const r=n+"CollectionProvider",[c,u]=SW(r),[d,p]=c(r,{collectionRef:{current:null},itemMap:new Map}),m=O=>{const{scope:N,children:j}=O,$=lt.useRef(null),L=lt.useRef(new Map).current;return lt.createElement(d,{scope:N,itemMap:L,collectionRef:$},j)},x=n+"CollectionSlot",E=lt.forwardRef((O,N)=>{const{scope:j,children:$}=O,L=p(x,j),B=_b(N,L.collectionRef);return lt.createElement(Oq,{ref:B},$)}),k=n+"CollectionItemSlot",T="data-radix-collection-item",P=lt.forwardRef((O,N)=>{const{scope:j,children:$,...L}=O,B=lt.useRef(null),F=_b(N,B),X=p(k,j);return lt.useEffect(()=>(X.itemMap.set(B,{ref:B,...L}),()=>void X.itemMap.delete(B))),lt.createElement(Oq,{[T]:"",ref:F},$)});function I(O){const N=p(n+"CollectionConsumer",O);return lt.useCallback(()=>{const $=N.collectionRef.current;if(!$)return[];const L=Array.from($.querySelectorAll(`[${T}]`));return Array.from(N.itemMap.values()).sort((X,te)=>L.indexOf(X.ref.current)-L.indexOf(te.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:E,ItemSlot:P},I,u]}const $Hn=U.exports.createContext(void 0);function HLt(n){const r=U.exports.useContext($Hn);return n||r||"ltr"}function Mw(n){const r=U.exports.useRef(n);return U.exports.useEffect(()=>{r.current=n}),U.exports.useMemo(()=>(...c)=>{var u;return(u=r.current)===null||u===void 0?void 0:u.call(r,...c)},[])}function LHn(n){const r=Mw(n);U.exports.useEffect(()=>{const c=u=>{u.key==="Escape"&&r(u)};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r])}const $Pe="dismissableLayer.update",FHn="dismissableLayer.pointerDownOutside",BHn="dismissableLayer.focusOutside";let T7t;const VHn=U.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zHn=U.exports.forwardRef((n,r)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:x,...E}=n,k=U.exports.useContext(VHn),[T,P]=U.exports.useState(null),[,I]=U.exports.useState({}),O=_b(r,Z=>P(Z)),N=Array.from(k.layers),[j]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),$=N.indexOf(j),L=T?N.indexOf(T):-1,B=k.layersWithOutsidePointerEventsDisabled.size>0,F=L>=$,X=UHn(Z=>{const H=Z.target,ce=[...k.branches].some(pe=>pe.contains(H));!F||ce||(d==null||d(Z),m==null||m(Z),Z.defaultPrevented||x==null||x())}),te=HHn(Z=>{const H=Z.target;[...k.branches].some(pe=>pe.contains(H))||(p==null||p(Z),m==null||m(Z),Z.defaultPrevented||x==null||x())});return LHn(Z=>{L===k.layers.size-1&&(u==null||u(Z),!Z.defaultPrevented&&x&&(Z.preventDefault(),x()))}),U.exports.useEffect(()=>{if(!!T)return c&&(k.layersWithOutsidePointerEventsDisabled.size===0&&(T7t=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(T)),k.layers.add(T),A7t(),()=>{c&&k.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=T7t)}},[T,c,k]),U.exports.useEffect(()=>()=>{!T||(k.layers.delete(T),k.layersWithOutsidePointerEventsDisabled.delete(T),A7t())},[T,k]),U.exports.useEffect(()=>{const Z=()=>I({});return document.addEventListener($Pe,Z),()=>document.removeEventListener($Pe,Z)},[]),U.exports.createElement(Jx.div,oa({},E,{ref:O,style:{pointerEvents:B?F?"auto":"none":void 0,...n.style},onFocusCapture:Fa(n.onFocusCapture,te.onFocusCapture),onBlurCapture:Fa(n.onBlurCapture,te.onBlurCapture),onPointerDownCapture:Fa(n.onPointerDownCapture,X.onPointerDownCapture)}))});function UHn(n){const r=Mw(n),c=U.exports.useRef(!1),u=U.exports.useRef(()=>{});return U.exports.useEffect(()=>{const d=m=>{if(m.target&&!c.current){let k=function(){qLt(FHn,r,E,{discrete:!0})};var x=k;const E={originalEvent:m};m.pointerType==="touch"?(document.removeEventListener("click",u.current),u.current=k,document.addEventListener("click",u.current,{once:!0})):k()}c.current=!1},p=window.setTimeout(()=>{document.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(p),document.removeEventListener("pointerdown",d),document.removeEventListener("click",u.current)}},[r]),{onPointerDownCapture:()=>c.current=!0}}function HHn(n){const r=Mw(n),c=U.exports.useRef(!1);return U.exports.useEffect(()=>{const u=d=>{d.target&&!c.current&&qLt(BHn,r,{originalEvent:d},{discrete:!1})};return document.addEventListener("focusin",u),()=>document.removeEventListener("focusin",u)},[r]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function A7t(){const n=new CustomEvent($Pe);document.dispatchEvent(n)}function qLt(n,r,c,{discrete:u}){const d=c.originalEvent.target,p=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:c});r&&d.addEventListener(n,r,{once:!0}),u?zLt(d,p):d.dispatchEvent(p)}let b7e=0;function qHn(){U.exports.useEffect(()=>{var n,r;const c=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(n=c[0])!==null&&n!==void 0?n:P7t()),document.body.insertAdjacentElement("beforeend",(r=c[1])!==null&&r!==void 0?r:P7t()),b7e++,()=>{b7e===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(u=>u.remove()),b7e--}},[])}function P7t(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",n}const m7e="focusScope.autoFocusOnMount",v7e="focusScope.autoFocusOnUnmount",O7t={bubbles:!1,cancelable:!0},WHn=U.exports.forwardRef((n,r)=>{const{loop:c=!1,trapped:u=!1,onMountAutoFocus:d,onUnmountAutoFocus:p,...m}=n,[x,E]=U.exports.useState(null),k=Mw(d),T=Mw(p),P=U.exports.useRef(null),I=_b(r,j=>E(j)),O=U.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;U.exports.useEffect(()=>{if(u){let L=function(F){if(O.paused||!x)return;const X=F.target;x.contains(X)?P.current=X:G9(P.current,{select:!0})},B=function(F){O.paused||!x||x.contains(F.relatedTarget)||G9(P.current,{select:!0})};var $=L,j=B;return document.addEventListener("focusin",L),document.addEventListener("focusout",B),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",B)}}},[u,x,O.paused]),U.exports.useEffect(()=>{if(x){M7t.add(O);const j=document.activeElement;if(!x.contains(j)){const L=new CustomEvent(m7e,O7t);x.addEventListener(m7e,k),x.dispatchEvent(L),L.defaultPrevented||(GHn(ZHn(WLt(x)),{select:!0}),document.activeElement===j&&G9(x))}return()=>{x.removeEventListener(m7e,k),setTimeout(()=>{const L=new CustomEvent(v7e,O7t);x.addEventListener(v7e,T),x.dispatchEvent(L),L.defaultPrevented||G9(j!=null?j:document.body,{select:!0}),x.removeEventListener(v7e,T),M7t.remove(O)},0)}}},[x,k,T,O]);const N=U.exports.useCallback(j=>{if(!c&&!u||O.paused)return;const $=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,L=document.activeElement;if($&&L){const B=j.currentTarget,[F,X]=XHn(B);F&&X?!j.shiftKey&&L===X?(j.preventDefault(),c&&G9(F,{select:!0})):j.shiftKey&&L===F&&(j.preventDefault(),c&&G9(X,{select:!0})):L===B&&j.preventDefault()}},[c,u,O.paused]);return U.exports.createElement(Jx.div,oa({tabIndex:-1},m,{ref:I,onKeyDown:N}))});function GHn(n,{select:r=!1}={}){const c=document.activeElement;for(const u of n)if(G9(u,{select:r}),document.activeElement!==c)return}function XHn(n){const r=WLt(n),c=_7t(r,n),u=_7t(r.reverse(),n);return[c,u]}function WLt(n){const r=[],c=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:u=>{const d=u.tagName==="INPUT"&&u.type==="hidden";return u.disabled||u.hidden||d?NodeFilter.FILTER_SKIP:u.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)r.push(c.currentNode);return r}function _7t(n,r){for(const c of n)if(!KHn(c,{upTo:r}))return c}function KHn(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function YHn(n){return n instanceof HTMLInputElement&&"select"in n}function G9(n,{select:r=!1}={}){if(n&&n.focus){const c=document.activeElement;n.focus({preventScroll:!0}),n!==c&&YHn(n)&&r&&n.select()}}const M7t=QHn();function QHn(){let n=[];return{add(r){const c=n[0];r!==c&&(c==null||c.pause()),n=D7t(n,r),n.unshift(r)},remove(r){var c;n=D7t(n,r),(c=n[0])===null||c===void 0||c.resume()}}}function D7t(n,r){const c=[...n],u=c.indexOf(r);return u!==-1&&c.splice(u,1),c}function ZHn(n){return n.filter(r=>r.tagName!=="A")}const jD=Boolean(globalThis==null?void 0:globalThis.document)?U.exports.useLayoutEffect:()=>{},JHn=gTe["useId".toString()]||(()=>{});let eqn=0;function LPe(n){const[r,c]=U.exports.useState(JHn());return jD(()=>{n||c(u=>u!=null?u:String(eqn++))},[n]),n||(r?`radix-${r}`:"")}function pN(n){return n.split("-")[0]}function lfe(n){return n.split("-")[1]}function gN(n){return["top","bottom"].includes(pN(n))?"x":"y"}function bNe(n){return n==="y"?"height":"width"}function N7t(n,r,c){let{reference:u,floating:d}=n;const p=u.x+u.width/2-d.width/2,m=u.y+u.height/2-d.height/2,x=gN(r),E=bNe(x),k=u[E]/2-d[E]/2,T=pN(r),P=x==="x";let I;switch(T){case"top":I={x:p,y:u.y-d.height};break;case"bottom":I={x:p,y:u.y+u.height};break;case"right":I={x:u.x+u.width,y:m};break;case"left":I={x:u.x-d.width,y:m};break;default:I={x:u.x,y:u.y}}switch(lfe(r)){case"start":I[x]-=k*(c&&P?-1:1);break;case"end":I[x]+=k*(c&&P?-1:1);break}return I}const tqn=async(n,r,c)=>{const{placement:u="bottom",strategy:d="absolute",middleware:p=[],platform:m}=c,x=await(m.isRTL==null?void 0:m.isRTL(r));let E=await m.getElementRects({reference:n,floating:r,strategy:d}),{x:k,y:T}=N7t(E,u,x),P=u,I={},O=0;for(let N=0;N({name:"arrow",options:n,async fn(r){const{element:c,padding:u=0}=n!=null?n:{},{x:d,y:p,placement:m,rects:x,platform:E}=r;if(c==null)return{};const k=GLt(u),T={x:d,y:p},P=gN(m),I=lfe(m),O=bNe(P),N=await E.getDimensions(c),j=P==="y"?"top":"left",$=P==="y"?"bottom":"right",L=x.reference[O]+x.reference[P]-T[P]-x.floating[O],B=T[P]-x.reference[P],F=await(E.getOffsetParent==null?void 0:E.getOffsetParent(c));let X=F?P==="y"?F.clientHeight||0:F.clientWidth||0:0;X===0&&(X=x.floating[O]);const te=L/2-B/2,Z=k[j],H=X-N[O]-k[$],ce=X/2-N[O]/2+te,pe=FPe(Z,ce,H),Ge=(I==="start"?k[j]:k[$])>0&&ce!==pe&&x.reference[O]<=x.floating[O]?ceoqn[r])}function sqn(n,r,c){c===void 0&&(c=!1);const u=lfe(n),d=gN(n),p=bNe(d);let m=d==="x"?u===(c?"end":"start")?"right":"left":u==="start"?"bottom":"top";return r.reference[p]>r.floating[p]&&(m=nue(m)),{main:m,cross:nue(m)}}const aqn={start:"end",end:"start"};function R7t(n){return n.replace(/start|end/g,r=>aqn[r])}const cqn=["top","right","bottom","left"];function uqn(n){const r=nue(n);return[R7t(n),r,R7t(r)]}const lqn=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var c;const{placement:u,middlewareData:d,rects:p,initialPlacement:m,platform:x,elements:E}=r,{mainAxis:k=!0,crossAxis:T=!0,fallbackPlacements:P,fallbackStrategy:I="bestFit",flipAlignment:O=!0,...N}=n,j=pN(u),L=P||(j===m||!O?[nue(m)]:uqn(m)),B=[m,...L],F=await tue(r,N),X=[];let te=((c=d.flip)==null?void 0:c.overflows)||[];if(k&&X.push(F[j]),T){const{main:pe,cross:fe}=sqn(u,p,await(x.isRTL==null?void 0:x.isRTL(E.floating)));X.push(F[pe],F[fe])}if(te=[...te,{placement:u,overflows:X}],!X.every(pe=>pe<=0)){var Z,H;const pe=((Z=(H=d.flip)==null?void 0:H.index)!=null?Z:0)+1,fe=B[pe];if(fe)return{data:{index:pe,overflows:te},reset:{placement:fe}};let ve="bottom";switch(I){case"bestFit":{var ce;const Ge=(ce=te.map(qe=>[qe,qe.overflows.filter(Je=>Je>0).reduce((Je,et)=>Je+et,0)]).sort((qe,Je)=>qe[1]-Je[1])[0])==null?void 0:ce[0].placement;Ge&&(ve=Ge);break}case"initialPlacement":ve=m;break}if(u!==ve)return{reset:{placement:ve}}}return{}}}};function $7t(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function L7t(n){return cqn.some(r=>n[r]>=0)}const fqn=function(n){let{strategy:r="referenceHidden",...c}=n===void 0?{}:n;return{name:"hide",async fn(u){const{rects:d}=u;switch(r){case"referenceHidden":{const p=await tue(u,{...c,elementContext:"reference"}),m=$7t(p,d.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:L7t(m)}}}case"escaped":{const p=await tue(u,{...c,altBoundary:!0}),m=$7t(p,d.floating);return{data:{escapedOffsets:m,escaped:L7t(m)}}}default:return{}}}}};async function dqn(n,r){const{placement:c,platform:u,elements:d}=n,p=await(u.isRTL==null?void 0:u.isRTL(d.floating)),m=pN(c),x=lfe(c),E=gN(c)==="x",k=["left","top"].includes(m)?-1:1,T=p&&E?-1:1,P=typeof r=="function"?r(n):r;let{mainAxis:I,crossAxis:O,alignmentAxis:N}=typeof P=="number"?{mainAxis:P,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...P};return x&&typeof N=="number"&&(O=x==="end"?N*-1:N),E?{x:O*T,y:I*k}:{x:I*k,y:O*T}}const hqn=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){const{x:c,y:u}=r,d=await dqn(r,n);return{x:c+d.x,y:u+d.y,data:d}}}};function XLt(n){return n==="x"?"y":"x"}const pqn=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:c,y:u,placement:d}=r,{mainAxis:p=!0,crossAxis:m=!1,limiter:x={fn:$=>{let{x:L,y:B}=$;return{x:L,y:B}}},...E}=n,k={x:c,y:u},T=await tue(r,E),P=gN(pN(d)),I=XLt(P);let O=k[P],N=k[I];if(p){const $=P==="y"?"top":"left",L=P==="y"?"bottom":"right",B=O+T[$],F=O-T[L];O=FPe(B,O,F)}if(m){const $=I==="y"?"top":"left",L=I==="y"?"bottom":"right",B=N+T[$],F=N-T[L];N=FPe(B,N,F)}const j=x.fn({...r,[P]:O,[I]:N});return{...j,data:{x:j.x-c,y:j.y-u}}}}},gqn=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:c,y:u,placement:d,rects:p,middlewareData:m}=r,{offset:x=0,mainAxis:E=!0,crossAxis:k=!0}=n,T={x:c,y:u},P=gN(d),I=XLt(P);let O=T[P],N=T[I];const j=typeof x=="function"?x({...p,placement:d}):x,$=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(E){const te=P==="y"?"height":"width",Z=p.reference[P]-p.floating[te]+$.mainAxis,H=p.reference[P]+p.reference[te]-$.mainAxis;OH&&(O=H)}if(k){var L,B,F,X;const te=P==="y"?"width":"height",Z=["top","left"].includes(pN(d)),H=p.reference[I]-p.floating[te]+(Z&&(L=(B=m.offset)==null?void 0:B[I])!=null?L:0)+(Z?0:$.crossAxis),ce=p.reference[I]+p.reference[te]+(Z?0:(F=(X=m.offset)==null?void 0:X[I])!=null?F:0)-(Z?$.crossAxis:0);Nce&&(N=ce)}return{[P]:O,[I]:N}}}};function KLt(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function jS(n){if(n==null)return window;if(!KLt(n)){const r=n.ownerDocument;return r&&r.defaultView||window}return n}function EW(n){return jS(n).getComputedStyle(n)}function IS(n){return KLt(n)?"":n?(n.nodeName||"").toLowerCase():""}function YLt(){const n=navigator.userAgentData;return n!=null&&n.brands?n.brands.map(r=>r.brand+"/"+r.version).join(" "):navigator.userAgent}function e3(n){return n instanceof jS(n).HTMLElement}function Tk(n){return n instanceof jS(n).Element}function bqn(n){return n instanceof jS(n).Node}function mNe(n){if(typeof ShadowRoot>"u")return!1;const r=jS(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function ffe(n){const{overflow:r,overflowX:c,overflowY:u}=EW(n);return/auto|scroll|overlay|hidden/.test(r+u+c)}function mqn(n){return["table","td","th"].includes(IS(n))}function QLt(n){const r=/firefox/i.test(YLt()),c=EW(n);return c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].includes(c.willChange)||r&&c.willChange==="filter"||r&&(c.filter?c.filter!=="none":!1)}function ZLt(){return!/^((?!chrome|android).)*safari/i.test(YLt())}const F7t=Math.min,kH=Math.max,rue=Math.round;function TS(n,r,c){var u,d,p,m;r===void 0&&(r=!1),c===void 0&&(c=!1);const x=n.getBoundingClientRect();let E=1,k=1;r&&e3(n)&&(E=n.offsetWidth>0&&rue(x.width)/n.offsetWidth||1,k=n.offsetHeight>0&&rue(x.height)/n.offsetHeight||1);const T=Tk(n)?jS(n):window,P=!ZLt()&&c,I=(x.left+(P&&(u=(d=T.visualViewport)==null?void 0:d.offsetLeft)!=null?u:0))/E,O=(x.top+(P&&(p=(m=T.visualViewport)==null?void 0:m.offsetTop)!=null?p:0))/k,N=x.width/E,j=x.height/k;return{width:N,height:j,top:O,right:I+N,bottom:O+j,left:I,x:I,y:O}}function zk(n){return((bqn(n)?n.ownerDocument:n.document)||window.document).documentElement}function dfe(n){return Tk(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function JLt(n){return TS(zk(n)).left+dfe(n).scrollLeft}function vqn(n){const r=TS(n);return rue(r.width)!==n.offsetWidth||rue(r.height)!==n.offsetHeight}function yqn(n,r,c){const u=e3(r),d=zk(r),p=TS(n,u&&vqn(r),c==="fixed");let m={scrollLeft:0,scrollTop:0};const x={x:0,y:0};if(u||!u&&c!=="fixed")if((IS(r)!=="body"||ffe(d))&&(m=dfe(r)),e3(r)){const E=TS(r,!0);x.x=E.x+r.clientLeft,x.y=E.y+r.clientTop}else d&&(x.x=JLt(d));return{x:p.left+m.scrollLeft-x.x,y:p.top+m.scrollTop-x.y,width:p.width,height:p.height}}function eFt(n){return IS(n)==="html"?n:n.assignedSlot||n.parentNode||(mNe(n)?n.host:null)||zk(n)}function B7t(n){return!e3(n)||getComputedStyle(n).position==="fixed"?null:n.offsetParent}function wqn(n){let r=eFt(n);for(mNe(r)&&(r=r.host);e3(r)&&!["html","body"].includes(IS(r));){if(QLt(r))return r;r=r.parentNode}return null}function BPe(n){const r=jS(n);let c=B7t(n);for(;c&&mqn(c)&&getComputedStyle(c).position==="static";)c=B7t(c);return c&&(IS(c)==="html"||IS(c)==="body"&&getComputedStyle(c).position==="static"&&!QLt(c))?r:c||wqn(n)||r}function V7t(n){if(e3(n))return{width:n.offsetWidth,height:n.offsetHeight};const r=TS(n);return{width:r.width,height:r.height}}function xqn(n){let{rect:r,offsetParent:c,strategy:u}=n;const d=e3(c),p=zk(c);if(c===p)return r;let m={scrollLeft:0,scrollTop:0};const x={x:0,y:0};if((d||!d&&u!=="fixed")&&((IS(c)!=="body"||ffe(p))&&(m=dfe(c)),e3(c))){const E=TS(c,!0);x.x=E.x+c.clientLeft,x.y=E.y+c.clientTop}return{...r,x:r.x-m.scrollLeft+x.x,y:r.y-m.scrollTop+x.y}}function Sqn(n,r){const c=jS(n),u=zk(n),d=c.visualViewport;let p=u.clientWidth,m=u.clientHeight,x=0,E=0;if(d){p=d.width,m=d.height;const k=ZLt();(k||!k&&r==="fixed")&&(x=d.offsetLeft,E=d.offsetTop)}return{width:p,height:m,x,y:E}}function Eqn(n){var r;const c=zk(n),u=dfe(n),d=(r=n.ownerDocument)==null?void 0:r.body,p=kH(c.scrollWidth,c.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),m=kH(c.scrollHeight,c.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0);let x=-u.scrollLeft+JLt(n);const E=-u.scrollTop;return EW(d||c).direction==="rtl"&&(x+=kH(c.clientWidth,d?d.clientWidth:0)-p),{width:p,height:m,x,y:E}}function tFt(n){const r=eFt(n);return["html","body","#document"].includes(IS(r))?n.ownerDocument.body:e3(r)&&ffe(r)?r:tFt(r)}function iue(n,r){var c;r===void 0&&(r=[]);const u=tFt(n),d=u===((c=n.ownerDocument)==null?void 0:c.body),p=jS(u),m=d?[p].concat(p.visualViewport||[],ffe(u)?u:[]):u,x=r.concat(m);return d?x:x.concat(iue(m))}function kqn(n,r){const c=r.getRootNode==null?void 0:r.getRootNode();if(n.contains(r))return!0;if(c&&mNe(c)){let u=r;do{if(u&&n===u)return!0;u=u.parentNode||u.host}while(u)}return!1}function Cqn(n,r){const c=TS(n,!1,r==="fixed"),u=c.top+n.clientTop,d=c.left+n.clientLeft;return{top:u,left:d,x:d,y:u,right:d+n.clientWidth,bottom:u+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}function z7t(n,r,c){return r==="viewport"?eue(Sqn(n,c)):Tk(r)?Cqn(r,c):eue(Eqn(zk(n)))}function Iqn(n){const r=iue(n),u=["absolute","fixed"].includes(EW(n).position)&&e3(n)?BPe(n):n;return Tk(u)?r.filter(d=>Tk(d)&&kqn(d,u)&&IS(d)!=="body"):[]}function Tqn(n){let{element:r,boundary:c,rootBoundary:u,strategy:d}=n;const m=[...c==="clippingAncestors"?Iqn(r):[].concat(c),u],x=m[0],E=m.reduce((k,T)=>{const P=z7t(r,T,d);return k.top=kH(P.top,k.top),k.right=F7t(P.right,k.right),k.bottom=F7t(P.bottom,k.bottom),k.left=kH(P.left,k.left),k},z7t(r,x,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}const Aqn={getClippingRect:Tqn,convertOffsetParentRelativeRectToViewportRelativeRect:xqn,isElement:Tk,getDimensions:V7t,getOffsetParent:BPe,getDocumentElement:zk,getElementRects:n=>{let{reference:r,floating:c,strategy:u}=n;return{reference:yqn(r,BPe(c),u),floating:{...V7t(c),x:0,y:0}}},getClientRects:n=>Array.from(n.getClientRects()),isRTL:n=>EW(n).direction==="rtl"};function Pqn(n,r,c,u){u===void 0&&(u={});const{ancestorScroll:d=!0,ancestorResize:p=!0,elementResize:m=!0,animationFrame:x=!1}=u,E=d&&!x,k=p&&!x,T=E||k?[...Tk(n)?iue(n):[],...iue(r)]:[];T.forEach(j=>{E&&j.addEventListener("scroll",c,{passive:!0}),k&&j.addEventListener("resize",c)});let P=null;if(m){let j=!0;P=new ResizeObserver(()=>{j||c(),j=!1}),Tk(n)&&!x&&P.observe(n),P.observe(r)}let I,O=x?TS(n):null;x&&N();function N(){const j=TS(n);O&&(j.x!==O.x||j.y!==O.y||j.width!==O.width||j.height!==O.height)&&c(),O=j,I=requestAnimationFrame(N)}return c(),()=>{var j;T.forEach($=>{E&&$.removeEventListener("scroll",c),k&&$.removeEventListener("resize",c)}),(j=P)==null||j.disconnect(),P=null,x&&cancelAnimationFrame(I)}}const Oqn=(n,r,c)=>tqn(n,r,{platform:Aqn,...c});var VPe=typeof document<"u"?U.exports.useLayoutEffect:U.exports.useEffect;function zPe(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let c,u,d;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(c=n.length,c!=r.length)return!1;for(u=c;u--!==0;)if(!zPe(n[u],r[u]))return!1;return!0}if(d=Object.keys(n),c=d.length,c!==Object.keys(r).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,d[u]))return!1;for(u=c;u--!==0;){const p=d[u];if(!(p==="_owner"&&n.$$typeof)&&!zPe(n[p],r[p]))return!1}return!0}return n!==n&&r!==r}function _qn(n){const r=U.exports.useRef(n);return VPe(()=>{r.current=n}),r}function Mqn(n){let{middleware:r,placement:c="bottom",strategy:u="absolute",whileElementsMounted:d}=n===void 0?{}:n;const p=U.exports.useRef(null),m=U.exports.useRef(null),x=_qn(d),E=U.exports.useRef(null),[k,T]=U.exports.useState({x:null,y:null,strategy:u,placement:c,middlewareData:{}}),[P,I]=U.exports.useState(r);zPe(P==null?void 0:P.map(F=>{let{options:X}=F;return X}),r==null?void 0:r.map(F=>{let{options:X}=F;return X}))||I(r);const O=U.exports.useCallback(()=>{!p.current||!m.current||Oqn(p.current,m.current,{middleware:P,placement:c,strategy:u}).then(F=>{N.current&&PS.exports.flushSync(()=>{T(F)})})},[P,c,u]);VPe(()=>{N.current&&O()},[O]);const N=U.exports.useRef(!1);VPe(()=>(N.current=!0,()=>{N.current=!1}),[]);const j=U.exports.useCallback(()=>{if(typeof E.current=="function"&&(E.current(),E.current=null),p.current&&m.current)if(x.current){const F=x.current(p.current,m.current,O);E.current=F}else O()},[O,x]),$=U.exports.useCallback(F=>{p.current=F,j()},[j]),L=U.exports.useCallback(F=>{m.current=F,j()},[j]),B=U.exports.useMemo(()=>({reference:p,floating:m}),[]);return U.exports.useMemo(()=>({...k,update:O,refs:B,reference:$,floating:L}),[k,O,B,$,L])}const Dqn=n=>{const{element:r,padding:c}=n;function u(d){return Object.prototype.hasOwnProperty.call(d,"current")}return{name:"arrow",options:n,fn(d){return u(r)?r.current!=null?j7t({element:r.current,padding:c}).fn(d):{}:r?j7t({element:r,padding:c}).fn(d):{}}}};function Nqn(n){const[r,c]=U.exports.useState(void 0);return jD(()=>{if(n){c({width:n.offsetWidth,height:n.offsetHeight});const u=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const p=d[0];let m,x;if("borderBoxSize"in p){const E=p.borderBoxSize,k=Array.isArray(E)?E[0]:E;m=k.inlineSize,x=k.blockSize}else m=n.offsetWidth,x=n.offsetHeight;c({width:m,height:x})});return u.observe(n,{box:"border-box"}),()=>u.unobserve(n)}else c(void 0)},[n]),r}const nFt="Popper",[vNe,rFt]=SW(nFt),[jqn,iFt]=vNe(nFt),Rqn=n=>{const{__scopePopper:r,children:c}=n,[u,d]=U.exports.useState(null);return U.exports.createElement(jqn,{scope:r,anchor:u,onAnchorChange:d},c)},$qn="PopperAnchor",Lqn=U.exports.forwardRef((n,r)=>{const{__scopePopper:c,virtualRef:u,...d}=n,p=iFt($qn,c),m=U.exports.useRef(null),x=_b(r,m);return U.exports.useEffect(()=>{p.onAnchorChange((u==null?void 0:u.current)||m.current)}),u?null:U.exports.createElement(Jx.div,oa({},d,{ref:x}))}),oue="PopperContent",[Fqn,mur]=vNe(oue),[Bqn,Vqn]=vNe(oue,{hasParent:!1,positionUpdateFns:new Set}),zqn=U.exports.forwardRef((n,r)=>{var c,u,d,p,m,x,E,k;const{__scopePopper:T,side:P="bottom",sideOffset:I=0,align:O="center",alignOffset:N=0,arrowPadding:j=0,collisionBoundary:$=[],collisionPadding:L=0,sticky:B="partial",hideWhenDetached:F=!1,avoidCollisions:X=!0,...te}=n,Z=iFt(oue,T),[H,ce]=U.exports.useState(null),pe=_b(r,gn=>ce(gn)),[fe,ve]=U.exports.useState(null),Ge=Nqn(fe),qe=(c=Ge==null?void 0:Ge.width)!==null&&c!==void 0?c:0,Je=(u=Ge==null?void 0:Ge.height)!==null&&u!==void 0?u:0,et=P+(O!=="center"?"-"+O:""),jt=typeof L=="number"?L:{top:0,right:0,bottom:0,left:0,...L},Me=Array.isArray($)?$:[$],Ve=Me.length>0,ye={padding:jt,boundary:Me.filter(Hqn),altBoundary:Ve},{reference:De,floating:be,strategy:xe,x:Jt,y:an,placement:An,middlewareData:Wn,update:ir}=Mqn({strategy:"fixed",placement:et,whileElementsMounted:Pqn,middleware:[hqn({mainAxis:I+Je,alignmentAxis:N}),X?pqn({mainAxis:!0,crossAxis:!1,limiter:B==="partial"?gqn():void 0,...ye}):void 0,fe?Dqn({element:fe,padding:j}):void 0,X?lqn({...ye}):void 0,qqn({arrowWidth:qe,arrowHeight:Je}),F?fqn({strategy:"referenceHidden"}):void 0].filter(Uqn)});jD(()=>{De(Z.anchor)},[De,Z.anchor]);const Jn=Jt!==null&&an!==null,[Gr,Ze]=oFt(An),ut=(d=Wn.arrow)===null||d===void 0?void 0:d.x,on=(p=Wn.arrow)===null||p===void 0?void 0:p.y,Ne=((m=Wn.arrow)===null||m===void 0?void 0:m.centerOffset)!==0,[at,ae]=U.exports.useState();jD(()=>{H&&ae(window.getComputedStyle(H).zIndex)},[H]);const{hasParent:Ee,positionUpdateFns:Ie}=Vqn(oue,T),tt=!Ee;U.exports.useLayoutEffect(()=>{if(!tt)return Ie.add(ir),()=>{Ie.delete(ir)}},[tt,Ie,ir]),U.exports.useLayoutEffect(()=>{tt&&Jn&&Array.from(Ie).reverse().forEach(gn=>requestAnimationFrame(gn))},[tt,Jn,Ie]);const en={"data-side":Gr,"data-align":Ze,...te,ref:pe,style:{...te.style,animation:Jn?void 0:"none",opacity:(x=Wn.hide)!==null&&x!==void 0&&x.referenceHidden?0:void 0}};return U.exports.createElement("div",{ref:be,"data-radix-popper-content-wrapper":"",style:{position:xe,left:0,top:0,transform:Jn?`translate3d(${Math.round(Jt)}px, ${Math.round(an)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:at,["--radix-popper-transform-origin"]:[(E=Wn.transformOrigin)===null||E===void 0?void 0:E.x,(k=Wn.transformOrigin)===null||k===void 0?void 0:k.y].join(" ")}},U.exports.createElement(Fqn,{scope:T,placedSide:Gr,onArrowChange:ve,arrowX:ut,arrowY:on,shouldHideArrow:Ne},tt?U.exports.createElement(Bqn,{scope:T,hasParent:!0,positionUpdateFns:Ie},U.exports.createElement(Jx.div,en)):U.exports.createElement(Jx.div,en)))});function Uqn(n){return n!==void 0}function Hqn(n){return n!==null}const qqn=n=>({name:"transformOrigin",options:n,fn(r){var c,u,d,p,m;const{placement:x,rects:E,middlewareData:k}=r,P=((c=k.arrow)===null||c===void 0?void 0:c.centerOffset)!==0,I=P?0:n.arrowWidth,O=P?0:n.arrowHeight,[N,j]=oFt(x),$={start:"0%",center:"50%",end:"100%"}[j],L=((u=(d=k.arrow)===null||d===void 0?void 0:d.x)!==null&&u!==void 0?u:0)+I/2,B=((p=(m=k.arrow)===null||m===void 0?void 0:m.y)!==null&&p!==void 0?p:0)+O/2;let F="",X="";return N==="bottom"?(F=P?$:`${L}px`,X=`${-O}px`):N==="top"?(F=P?$:`${L}px`,X=`${E.floating.height+O}px`):N==="right"?(F=`${-O}px`,X=P?$:`${B}px`):N==="left"&&(F=`${E.floating.width+O}px`,X=P?$:`${B}px`),{data:{x:F,y:X}}}});function oFt(n){const[r,c="center"]=n.split("-");return[r,c]}const sFt=Rqn,Wqn=Lqn,Gqn=zqn,Xqn=U.exports.forwardRef((n,r)=>{var c;const{container:u=globalThis==null||(c=globalThis.document)===null||c===void 0?void 0:c.body,...d}=n;return u?A_t.createPortal(U.exports.createElement(Jx.div,oa({},d,{ref:r})),u):null});function Kqn(n,r){return U.exports.useReducer((c,u)=>{const d=r[c][u];return d!=null?d:c},n)}const hfe=n=>{const{present:r,children:c}=n,u=Yqn(r),d=typeof c=="function"?c({present:u.isPresent}):U.exports.Children.only(c),p=_b(u.ref,d.ref);return typeof c=="function"||u.isPresent?U.exports.cloneElement(d,{ref:p}):null};hfe.displayName="Presence";function Yqn(n){const[r,c]=U.exports.useState(),u=U.exports.useRef({}),d=U.exports.useRef(n),p=U.exports.useRef("none"),m=n?"mounted":"unmounted",[x,E]=Kqn(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return U.exports.useEffect(()=>{const k=Rse(u.current);p.current=x==="mounted"?k:"none"},[x]),jD(()=>{const k=u.current,T=d.current;if(T!==n){const I=p.current,O=Rse(k);n?E("MOUNT"):O==="none"||(k==null?void 0:k.display)==="none"?E("UNMOUNT"):E(T&&I!==O?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),jD(()=>{if(r){const k=P=>{const O=Rse(u.current).includes(P.animationName);P.target===r&&O&&PS.exports.flushSync(()=>E("ANIMATION_END"))},T=P=>{P.target===r&&(p.current=Rse(u.current))};return r.addEventListener("animationstart",T),r.addEventListener("animationcancel",k),r.addEventListener("animationend",k),()=>{r.removeEventListener("animationstart",T),r.removeEventListener("animationcancel",k),r.removeEventListener("animationend",k)}}else E("ANIMATION_END")},[r,E]),{isPresent:["mounted","unmountSuspended"].includes(x),ref:U.exports.useCallback(k=>{k&&(u.current=getComputedStyle(k)),c(k)},[])}}function Rse(n){return(n==null?void 0:n.animationName)||"none"}function aFt({prop:n,defaultProp:r,onChange:c=()=>{}}){const[u,d]=Qqn({defaultProp:r,onChange:c}),p=n!==void 0,m=p?n:u,x=Mw(c),E=U.exports.useCallback(k=>{if(p){const P=typeof k=="function"?k(n):k;P!==n&&x(P)}else d(k)},[p,n,d,x]);return[m,E]}function Qqn({defaultProp:n,onChange:r}){const c=U.exports.useState(n),[u]=c,d=U.exports.useRef(u),p=Mw(r);return U.exports.useEffect(()=>{d.current!==u&&(p(u),d.current=u)},[u,d,p]),c}const y7e="rovingFocusGroup.onEntryFocus",Zqn={bubbles:!1,cancelable:!0},yNe="RovingFocusGroup",[UPe,cFt,Jqn]=ULt(yNe),[eWn,uFt]=SW(yNe,[Jqn]),[tWn,nWn]=eWn(yNe),rWn=U.exports.forwardRef((n,r)=>U.exports.createElement(UPe.Provider,{scope:n.__scopeRovingFocusGroup},U.exports.createElement(UPe.Slot,{scope:n.__scopeRovingFocusGroup},U.exports.createElement(iWn,oa({},n,{ref:r}))))),iWn=U.exports.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:c,orientation:u,loop:d=!1,dir:p,currentTabStopId:m,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:k,...T}=n,P=U.exports.useRef(null),I=_b(r,P),O=HLt(p),[N=null,j]=aFt({prop:m,defaultProp:x,onChange:E}),[$,L]=U.exports.useState(!1),B=Mw(k),F=cFt(c),X=U.exports.useRef(!1);return U.exports.useEffect(()=>{const te=P.current;if(te)return te.addEventListener(y7e,B),()=>te.removeEventListener(y7e,B)},[B]),U.exports.createElement(tWn,{scope:c,orientation:u,dir:O,loop:d,currentTabStopId:N,onItemFocus:U.exports.useCallback(te=>j(te),[j]),onItemShiftTab:U.exports.useCallback(()=>L(!0),[])},U.exports.createElement(Jx.div,oa({tabIndex:$?-1:0,"data-orientation":u},T,{ref:I,style:{outline:"none",...n.style},onMouseDown:Fa(n.onMouseDown,()=>{X.current=!0}),onFocus:Fa(n.onFocus,te=>{const Z=!X.current;if(te.target===te.currentTarget&&Z&&!$){const H=new CustomEvent(y7e,Zqn);if(te.currentTarget.dispatchEvent(H),!H.defaultPrevented){const ce=F().filter(qe=>qe.focusable),pe=ce.find(qe=>qe.active),fe=ce.find(qe=>qe.id===N),Ge=[pe,fe,...ce].filter(Boolean).map(qe=>qe.ref.current);lFt(Ge)}}X.current=!1}),onBlur:Fa(n.onBlur,()=>L(!1))})))}),oWn="RovingFocusGroupItem",sWn=U.exports.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:c,focusable:u=!0,active:d=!1,...p}=n,m=LPe(),x=nWn(oWn,c),E=x.currentTabStopId===m,k=cFt(c);return U.exports.createElement(UPe.ItemSlot,{scope:c,id:m,focusable:u,active:d},U.exports.createElement(Jx.span,oa({tabIndex:E?0:-1,"data-orientation":x.orientation},p,{ref:r,onMouseDown:Fa(n.onMouseDown,T=>{u?x.onItemFocus(m):T.preventDefault()}),onFocus:Fa(n.onFocus,()=>x.onItemFocus(m)),onKeyDown:Fa(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const P=uWn(T,x.orientation,x.dir);if(P!==void 0){T.preventDefault();let O=k().filter(N=>N.focusable).map(N=>N.ref.current);if(P==="last")O.reverse();else if(P==="prev"||P==="next"){P==="prev"&&O.reverse();const N=O.indexOf(T.currentTarget);O=x.loop?lWn(O,N+1):O.slice(N+1)}setTimeout(()=>lFt(O))}})})))}),aWn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cWn(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function uWn(n,r,c){const u=cWn(n.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(u))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(u)))return aWn[u]}function lFt(n){const r=document.activeElement;for(const c of n)if(c===r||(c.focus(),document.activeElement!==r))return}function lWn(n,r){return n.map((c,u)=>n[(r+u)%n.length])}const fWn=rWn,dWn=sWn;var fFt=eDe(),w7e=function(){},pfe=U.exports.forwardRef(function(n,r){var c=U.exports.useRef(null),u=U.exports.useState({onScrollCapture:w7e,onWheelCapture:w7e,onTouchMoveCapture:w7e}),d=u[0],p=u[1],m=n.forwardProps,x=n.children,E=n.className,k=n.removeScrollBar,T=n.enabled,P=n.shards,I=n.sideCar,O=n.noIsolation,N=n.inert,j=n.allowPinchZoom,$=n.as,L=$===void 0?"div":$,B=ZMe(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),F=I,X=QMe([c,r]),te=F1(F1({},B),d);return We(Si,{children:[T&&z(F,{sideCar:fFt,removeScrollBar:k,shards:P,noIsolation:O,inert:N,setCallbacks:p,allowPinchZoom:!!j,lockRef:c}),m?U.exports.cloneElement(U.exports.Children.only(x),F1(F1({},te),{ref:X})):z(L,{...F1({},te,{className:E,ref:X}),children:x})]})});pfe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pfe.classNames={fullWidth:gH,zeroRight:pH};var HPe=!1;if(typeof window<"u")try{var $se=Object.defineProperty({},"passive",{get:function(){return HPe=!0,!0}});window.addEventListener("test",$se,$se),window.removeEventListener("test",$se,$se)}catch{HPe=!1}var sM=HPe?{passive:!1}:!1,hWn=function(n){var r=window.getComputedStyle(n);return r.overflowY!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowY==="visible")},pWn=function(n){var r=window.getComputedStyle(n);return r.overflowX!=="hidden"&&!(r.overflowY===r.overflowX&&r.overflowX==="visible")},U7t=function(n,r){var c=r;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var u=dFt(n,c);if(u){var d=hFt(n,c),p=d[1],m=d[2];if(p>m)return!0}c=c.parentNode}while(c&&c!==document.body);return!1},gWn=function(n){var r=n.scrollTop,c=n.scrollHeight,u=n.clientHeight;return[r,c,u]},bWn=function(n){var r=n.scrollLeft,c=n.scrollWidth,u=n.clientWidth;return[r,c,u]},dFt=function(n,r){return n==="v"?hWn(r):pWn(r)},hFt=function(n,r){return n==="v"?gWn(r):bWn(r)},mWn=function(n,r){return n==="h"&&r==="rtl"?-1:1},vWn=function(n,r,c,u,d){var p=mWn(n,window.getComputedStyle(r).direction),m=p*u,x=c.target,E=r.contains(x),k=!1,T=m>0,P=0,I=0;do{var O=hFt(n,x),N=O[0],j=O[1],$=O[2],L=j-$-p*N;(N||L)&&dFt(n,x)&&(P+=L,I+=N),x=x.parentNode}while(!E&&x!==document.body||E&&(r.contains(x)||r===x));return(T&&(d&&P===0||!d&&m>P)||!T&&(d&&I===0||!d&&-m>I))&&(k=!0),k},Lse=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},H7t=function(n){return[n.deltaX,n.deltaY]},q7t=function(n){return n&&"current"in n?n.current:n},yWn=function(n,r){return n[0]===r[0]&&n[1]===r[1]},wWn=function(n){return` + .block-interactivity-`.concat(n,` {pointer-events: none;} + .allow-interactivity-`).concat(n,` {pointer-events: all;} +`)},xWn=0,aM=[];function SWn(n){var r=U.exports.useRef([]),c=U.exports.useRef([0,0]),u=U.exports.useRef(),d=U.exports.useState(xWn++)[0],p=U.exports.useState(function(){return lDe()})[0],m=U.exports.useRef(n);U.exports.useEffect(function(){m.current=n},[n]),U.exports.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var j=xjt([n.lockRef.current],(n.shards||[]).map(q7t),!0).filter(Boolean);return j.forEach(function($){return $.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),j.forEach(function($){return $.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var x=U.exports.useCallback(function(j,$){if("touches"in j&&j.touches.length===2)return!m.current.allowPinchZoom;var L=Lse(j),B=c.current,F="deltaX"in j?j.deltaX:B[0]-L[0],X="deltaY"in j?j.deltaY:B[1]-L[1],te,Z=j.target,H=Math.abs(F)>Math.abs(X)?"h":"v";if("touches"in j&&H==="h"&&Z.type==="range")return!1;var ce=U7t(H,Z);if(!ce)return!0;if(ce?te=H:(te=H==="v"?"h":"v",ce=U7t(H,Z)),!ce)return!1;if(!u.current&&"changedTouches"in j&&(F||X)&&(u.current=te),!te)return!0;var pe=u.current||te;return vWn(pe,$,j,pe==="h"?F:X,!0)},[]),E=U.exports.useCallback(function(j){var $=j;if(!(!aM.length||aM[aM.length-1]!==p)){var L="deltaY"in $?H7t($):Lse($),B=r.current.filter(function(te){return te.name===$.type&&te.target===$.target&&yWn(te.delta,L)})[0];if(B&&B.should){$.preventDefault();return}if(!B){var F=(m.current.shards||[]).map(q7t).filter(Boolean).filter(function(te){return te.contains($.target)}),X=F.length>0?x($,F[0]):!m.current.noIsolation;X&&$.preventDefault()}}},[]),k=U.exports.useCallback(function(j,$,L,B){var F={name:j,delta:$,target:L,should:B};r.current.push(F),setTimeout(function(){r.current=r.current.filter(function(X){return X!==F})},1)},[]),T=U.exports.useCallback(function(j){c.current=Lse(j),u.current=void 0},[]),P=U.exports.useCallback(function(j){k(j.type,H7t(j),j.target,x(j,n.lockRef.current))},[]),I=U.exports.useCallback(function(j){k(j.type,Lse(j),j.target,x(j,n.lockRef.current))},[]);U.exports.useEffect(function(){return aM.push(p),n.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:I}),document.addEventListener("wheel",E,sM),document.addEventListener("touchmove",E,sM),document.addEventListener("touchstart",T,sM),function(){aM=aM.filter(function(j){return j!==p}),document.removeEventListener("wheel",E,sM),document.removeEventListener("touchmove",E,sM),document.removeEventListener("touchstart",T,sM)}},[]);var O=n.removeScrollBar,N=n.inert;return We(Si,{children:[N?z(p,{styles:wWn(d)}):null,O?z(Qjt,{gapMode:"margin"}):null]})}const EWn=Cjt(fFt,SWn);var pFt=U.exports.forwardRef(function(n,r){return z(pfe,{...F1({},n,{ref:r,sideCar:EWn})})});pFt.classNames=pfe.classNames;const kWn=pFt,qPe=["Enter"," "],CWn=["ArrowDown","PageUp","Home"],gFt=["ArrowUp","PageDown","End"],IWn=[...CWn,...gFt],TWn={ltr:[...qPe,"ArrowRight"],rtl:[...qPe,"ArrowLeft"]},AWn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gfe="Menu",[_q,PWn,OWn]=ULt(gfe),[sT,bFt]=SW(gfe,[OWn,rFt,uFt]),bfe=rFt(),mFt=uFt(),[vFt,Uk]=sT(gfe),[_Wn,kW]=sT(gfe),MWn=n=>{const{__scopeMenu:r,open:c=!1,children:u,dir:d,onOpenChange:p,modal:m=!0}=n,x=bfe(r),[E,k]=U.exports.useState(null),T=U.exports.useRef(!1),P=Mw(p),I=HLt(d);return U.exports.useEffect(()=>{const O=()=>{T.current=!0,document.addEventListener("pointerdown",N,{capture:!0,once:!0}),document.addEventListener("pointermove",N,{capture:!0,once:!0})},N=()=>T.current=!1;return document.addEventListener("keydown",O,{capture:!0}),()=>{document.removeEventListener("keydown",O,{capture:!0}),document.removeEventListener("pointerdown",N,{capture:!0}),document.removeEventListener("pointermove",N,{capture:!0})}},[]),U.exports.createElement(sFt,x,U.exports.createElement(vFt,{scope:r,open:c,onOpenChange:P,content:E,onContentChange:k},U.exports.createElement(_Wn,{scope:r,onClose:U.exports.useCallback(()=>P(!1),[P]),isUsingKeyboardRef:T,dir:I,modal:m},u)))},yFt=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,...u}=n,d=bfe(c);return U.exports.createElement(Wqn,oa({},d,u,{ref:r}))}),wFt="MenuPortal",[DWn,xFt]=sT(wFt,{forceMount:void 0}),NWn=n=>{const{__scopeMenu:r,forceMount:c,children:u,container:d}=n,p=Uk(wFt,r);return U.exports.createElement(DWn,{scope:r,forceMount:c},U.exports.createElement(hfe,{present:c||p.open},U.exports.createElement(Xqn,{asChild:!0,container:d},u)))},Pw="MenuContent",[jWn,wNe]=sT(Pw),RWn=U.exports.forwardRef((n,r)=>{const c=xFt(Pw,n.__scopeMenu),{forceMount:u=c.forceMount,...d}=n,p=Uk(Pw,n.__scopeMenu),m=kW(Pw,n.__scopeMenu);return U.exports.createElement(_q.Provider,{scope:n.__scopeMenu},U.exports.createElement(hfe,{present:u||p.open},U.exports.createElement(_q.Slot,{scope:n.__scopeMenu},m.modal?U.exports.createElement($Wn,oa({},d,{ref:r})):U.exports.createElement(LWn,oa({},d,{ref:r})))))}),$Wn=U.exports.forwardRef((n,r)=>{const c=Uk(Pw,n.__scopeMenu),u=U.exports.useRef(null),d=_b(r,u);return U.exports.useEffect(()=>{const p=u.current;if(p)return mjt(p)},[]),U.exports.createElement(xNe,oa({},n,{ref:d,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:Fa(n.onFocusOutside,p=>p.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)}))}),LWn=U.exports.forwardRef((n,r)=>{const c=Uk(Pw,n.__scopeMenu);return U.exports.createElement(xNe,oa({},n,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)}))}),xNe=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,loop:u=!1,trapFocus:d,onOpenAutoFocus:p,onCloseAutoFocus:m,disableOutsidePointerEvents:x,onEscapeKeyDown:E,onPointerDownOutside:k,onFocusOutside:T,onInteractOutside:P,onDismiss:I,disableOutsideScroll:O,...N}=n,j=Uk(Pw,c),$=kW(Pw,c),L=bfe(c),B=mFt(c),F=PWn(c),[X,te]=U.exports.useState(null),Z=U.exports.useRef(null),H=_b(r,Z,j.onContentChange),ce=U.exports.useRef(0),pe=U.exports.useRef(""),fe=U.exports.useRef(0),ve=U.exports.useRef(null),Ge=U.exports.useRef("right"),qe=U.exports.useRef(0),Je=O?kWn:U.exports.Fragment,et=O?{as:Oq,allowPinchZoom:!0}:void 0,jt=Ve=>{var ye,De;const be=pe.current+Ve,xe=F().filter(Jn=>!Jn.disabled),Jt=document.activeElement,an=(ye=xe.find(Jn=>Jn.ref.current===Jt))===null||ye===void 0?void 0:ye.textValue,An=xe.map(Jn=>Jn.textValue),Wn=KWn(An,be,an),ir=(De=xe.find(Jn=>Jn.textValue===Wn))===null||De===void 0?void 0:De.ref.current;(function Jn(Gr){pe.current=Gr,window.clearTimeout(ce.current),Gr!==""&&(ce.current=window.setTimeout(()=>Jn(""),1e3))})(be),ir&&setTimeout(()=>ir.focus())};U.exports.useEffect(()=>()=>window.clearTimeout(ce.current),[]),qHn();const Me=U.exports.useCallback(Ve=>{var ye,De;return Ge.current===((ye=ve.current)===null||ye===void 0?void 0:ye.side)&&QWn(Ve,(De=ve.current)===null||De===void 0?void 0:De.area)},[]);return U.exports.createElement(jWn,{scope:c,searchRef:pe,onItemEnter:U.exports.useCallback(Ve=>{Me(Ve)&&Ve.preventDefault()},[Me]),onItemLeave:U.exports.useCallback(Ve=>{var ye;Me(Ve)||((ye=Z.current)===null||ye===void 0||ye.focus(),te(null))},[Me]),onTriggerLeave:U.exports.useCallback(Ve=>{Me(Ve)&&Ve.preventDefault()},[Me]),pointerGraceTimerRef:fe,onPointerGraceIntentChange:U.exports.useCallback(Ve=>{ve.current=Ve},[])},U.exports.createElement(Je,et,U.exports.createElement(WHn,{asChild:!0,trapped:d,onMountAutoFocus:Fa(p,Ve=>{var ye;Ve.preventDefault(),(ye=Z.current)===null||ye===void 0||ye.focus()}),onUnmountAutoFocus:m},U.exports.createElement(zHn,{asChild:!0,disableOutsidePointerEvents:x,onEscapeKeyDown:E,onPointerDownOutside:k,onFocusOutside:T,onInteractOutside:P,onDismiss:I},U.exports.createElement(fWn,oa({asChild:!0},B,{dir:$.dir,orientation:"vertical",loop:u,currentTabStopId:X,onCurrentTabStopIdChange:te,onEntryFocus:Ve=>{$.isUsingKeyboardRef.current||Ve.preventDefault()}}),U.exports.createElement(Gqn,oa({role:"menu","aria-orientation":"vertical","data-state":CFt(j.open),dir:$.dir},L,N,{ref:H,style:{outline:"none",...N.style},onKeyDown:Fa(N.onKeyDown,Ve=>{const De=Ve.target.closest('[role="menu"]')===Ve.currentTarget,be=Ve.ctrlKey||Ve.altKey||Ve.metaKey,xe=Ve.key.length===1;De&&(Ve.key==="Tab"&&Ve.preventDefault(),!be&&xe&&jt(Ve.key));const Jt=Z.current;if(Ve.target!==Jt||!IWn.includes(Ve.key))return;Ve.preventDefault();const An=F().filter(Wn=>!Wn.disabled).map(Wn=>Wn.ref.current);gFt.includes(Ve.key)&&An.reverse(),GWn(An)}),onBlur:Fa(n.onBlur,Ve=>{Ve.currentTarget.contains(Ve.target)||(window.clearTimeout(ce.current),pe.current="")}),onPointerMove:Fa(n.onPointerMove,Mq(Ve=>{const ye=Ve.target,De=qe.current!==Ve.clientX;if(Ve.currentTarget.contains(ye)&&De){const be=Ve.clientX>qe.current?"right":"left";Ge.current=be,qe.current=Ve.clientX}}))})))))))}),WPe="MenuItem",W7t="menu.itemSelect",FWn=U.exports.forwardRef((n,r)=>{const{disabled:c=!1,onSelect:u,...d}=n,p=U.exports.useRef(null),m=kW(WPe,n.__scopeMenu),x=wNe(WPe,n.__scopeMenu),E=_b(r,p),k=U.exports.useRef(!1),T=()=>{const P=p.current;if(!c&&P){const I=new CustomEvent(W7t,{bubbles:!0,cancelable:!0});P.addEventListener(W7t,O=>u==null?void 0:u(O),{once:!0}),zLt(P,I),I.defaultPrevented?k.current=!1:m.onClose()}};return U.exports.createElement(SFt,oa({},d,{ref:E,disabled:c,onClick:Fa(n.onClick,T),onPointerDown:P=>{var I;(I=n.onPointerDown)===null||I===void 0||I.call(n,P),k.current=!0},onPointerUp:Fa(n.onPointerUp,P=>{var I;k.current||(I=P.currentTarget)===null||I===void 0||I.click()}),onKeyDown:Fa(n.onKeyDown,P=>{const I=x.searchRef.current!=="";c||I&&P.key===" "||qPe.includes(P.key)&&(P.currentTarget.click(),P.preventDefault())})}))}),SFt=U.exports.forwardRef((n,r)=>{const{__scopeMenu:c,disabled:u=!1,textValue:d,...p}=n,m=wNe(WPe,c),x=mFt(c),E=U.exports.useRef(null),k=_b(r,E),[T,P]=U.exports.useState(!1),[I,O]=U.exports.useState("");return U.exports.useEffect(()=>{const N=E.current;if(N){var j;O(((j=N.textContent)!==null&&j!==void 0?j:"").trim())}},[p.children]),U.exports.createElement(_q.ItemSlot,{scope:c,disabled:u,textValue:d!=null?d:I},U.exports.createElement(dWn,oa({asChild:!0},x,{focusable:!u}),U.exports.createElement(Jx.div,oa({role:"menuitem","data-highlighted":T?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0},p,{ref:k,onPointerMove:Fa(n.onPointerMove,Mq(N=>{u?m.onItemLeave(N):(m.onItemEnter(N),N.defaultPrevented||N.currentTarget.focus())})),onPointerLeave:Fa(n.onPointerLeave,Mq(N=>m.onItemLeave(N))),onFocus:Fa(n.onFocus,()=>P(!0)),onBlur:Fa(n.onBlur,()=>P(!1))}))))}),BWn="MenuRadioGroup";sT(BWn,{value:void 0,onValueChange:()=>{}});const VWn="MenuItemIndicator";sT(VWn,{checked:!1});const EFt="MenuSub",[zWn,kFt]=sT(EFt),UWn=n=>{const{__scopeMenu:r,children:c,open:u=!1,onOpenChange:d}=n,p=Uk(EFt,r),m=bfe(r),[x,E]=U.exports.useState(null),[k,T]=U.exports.useState(null),P=Mw(d);return U.exports.useEffect(()=>(p.open===!1&&P(!1),()=>P(!1)),[p.open,P]),U.exports.createElement(sFt,m,U.exports.createElement(vFt,{scope:r,open:u,onOpenChange:P,content:k,onContentChange:T},U.exports.createElement(zWn,{scope:r,contentId:LPe(),triggerId:LPe(),trigger:x,onTriggerChange:E},c)))},Fse="MenuSubTrigger",HWn=U.exports.forwardRef((n,r)=>{const c=Uk(Fse,n.__scopeMenu),u=kW(Fse,n.__scopeMenu),d=kFt(Fse,n.__scopeMenu),p=wNe(Fse,n.__scopeMenu),m=U.exports.useRef(null),{pointerGraceTimerRef:x,onPointerGraceIntentChange:E}=p,k={__scopeMenu:n.__scopeMenu},T=U.exports.useCallback(()=>{m.current&&window.clearTimeout(m.current),m.current=null},[]);return U.exports.useEffect(()=>T,[T]),U.exports.useEffect(()=>{const P=x.current;return()=>{window.clearTimeout(P),E(null)}},[x,E]),U.exports.createElement(yFt,oa({asChild:!0},k),U.exports.createElement(SFt,oa({id:d.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":d.contentId,"data-state":CFt(c.open)},n,{ref:gNe(r,d.onTriggerChange),onClick:P=>{var I;(I=n.onClick)===null||I===void 0||I.call(n,P),!(n.disabled||P.defaultPrevented)&&(P.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:Fa(n.onPointerMove,Mq(P=>{p.onItemEnter(P),!P.defaultPrevented&&!n.disabled&&!c.open&&!m.current&&(p.onPointerGraceIntentChange(null),m.current=window.setTimeout(()=>{c.onOpenChange(!0),T()},100))})),onPointerLeave:Fa(n.onPointerLeave,Mq(P=>{var I;T();const O=(I=c.content)===null||I===void 0?void 0:I.getBoundingClientRect();if(O){var N;const j=(N=c.content)===null||N===void 0?void 0:N.dataset.side,$=j==="right",L=$?-5:5,B=O[$?"left":"right"],F=O[$?"right":"left"];p.onPointerGraceIntentChange({area:[{x:P.clientX+L,y:P.clientY},{x:B,y:O.top},{x:F,y:O.top},{x:F,y:O.bottom},{x:B,y:O.bottom}],side:j}),window.clearTimeout(x.current),x.current=window.setTimeout(()=>p.onPointerGraceIntentChange(null),300)}else{if(p.onTriggerLeave(P),P.defaultPrevented)return;p.onPointerGraceIntentChange(null)}})),onKeyDown:Fa(n.onKeyDown,P=>{const I=p.searchRef.current!=="";if(!(n.disabled||I&&P.key===" ")&&TWn[u.dir].includes(P.key)){var O;c.onOpenChange(!0),(O=c.content)===null||O===void 0||O.focus(),P.preventDefault()}})})))}),qWn="MenuSubContent",WWn=U.exports.forwardRef((n,r)=>{const c=xFt(Pw,n.__scopeMenu),{forceMount:u=c.forceMount,...d}=n,p=Uk(Pw,n.__scopeMenu),m=kW(Pw,n.__scopeMenu),x=kFt(qWn,n.__scopeMenu),E=U.exports.useRef(null),k=_b(r,E);return U.exports.createElement(_q.Provider,{scope:n.__scopeMenu},U.exports.createElement(hfe,{present:u||p.open},U.exports.createElement(_q.Slot,{scope:n.__scopeMenu},U.exports.createElement(xNe,oa({id:x.contentId,"aria-labelledby":x.triggerId},d,{ref:k,align:"start",side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:T=>{var P;m.isUsingKeyboardRef.current&&((P=E.current)===null||P===void 0||P.focus()),T.preventDefault()},onCloseAutoFocus:T=>T.preventDefault(),onFocusOutside:Fa(n.onFocusOutside,T=>{T.target!==x.trigger&&p.onOpenChange(!1)}),onEscapeKeyDown:Fa(n.onEscapeKeyDown,m.onClose),onKeyDown:Fa(n.onKeyDown,T=>{const P=T.currentTarget.contains(T.target),I=AWn[m.dir].includes(T.key);if(P&&I){var O;p.onOpenChange(!1),(O=x.trigger)===null||O===void 0||O.focus(),T.preventDefault()}})})))))});function CFt(n){return n?"open":"closed"}function GWn(n){const r=document.activeElement;for(const c of n)if(c===r||(c.focus(),document.activeElement!==r))return}function XWn(n,r){return n.map((c,u)=>n[(r+u)%n.length])}function KWn(n,r,c){const d=r.length>1&&Array.from(r).every(k=>k===r[0])?r[0]:r,p=c?n.indexOf(c):-1;let m=XWn(n,Math.max(p,0));d.length===1&&(m=m.filter(k=>k!==c));const E=m.find(k=>k.toLowerCase().startsWith(d.toLowerCase()));return E!==c?E:void 0}function YWn(n,r){const{x:c,y:u}=n;let d=!1;for(let p=0,m=r.length-1;pu!=T>u&&c<(k-x)*(u-E)/(T-E)+x&&(d=!d)}return d}function QWn(n,r){if(!r)return!1;const c={x:n.clientX,y:n.clientY};return YWn(c,r)}function Mq(n){return r=>r.pointerType==="mouse"?n(r):void 0}const ZWn=MWn,JWn=yFt,eGn=NWn,tGn=RWn,nGn=FWn,rGn=UWn,iGn=HWn,oGn=WWn,IFt="ContextMenu",[sGn,vur]=SW(IFt,[bFt]),Hk=bFt(),[aGn,TFt]=sGn(IFt),cGn=n=>{const{__scopeContextMenu:r,children:c,onOpenChange:u,dir:d,modal:p=!0}=n,[m,x]=U.exports.useState(!1),E=Hk(r),k=Mw(u),T=U.exports.useCallback(P=>{x(P),k(P)},[k]);return U.exports.createElement(aGn,{scope:r,open:m,onOpenChange:T,modal:p},U.exports.createElement(ZWn,oa({},E,{dir:d,open:m,onOpenChange:T,modal:p}),c))},uGn="ContextMenuTrigger",lGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=TFt(uGn,c),p=Hk(c),m=U.exports.useRef({x:0,y:0}),x=U.exports.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),E=U.exports.useRef(0),k=U.exports.useCallback(()=>window.clearTimeout(E.current),[]),T=P=>{m.current={x:P.clientX,y:P.clientY},d.onOpenChange(!0)};return U.exports.useEffect(()=>k,[k]),U.exports.createElement(U.exports.Fragment,null,U.exports.createElement(JWn,oa({},p,{virtualRef:x})),U.exports.createElement(Jx.span,oa({"data-state":d.open?"open":"closed"},u,{ref:r,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:Fa(n.onContextMenu,P=>{k(),T(P),P.preventDefault()}),onPointerDown:Fa(n.onPointerDown,Bse(P=>{k(),E.current=window.setTimeout(()=>T(P),700)})),onPointerMove:Fa(n.onPointerMove,Bse(k)),onPointerCancel:Fa(n.onPointerCancel,Bse(k)),onPointerUp:Fa(n.onPointerUp,Bse(k))})))}),fGn=n=>{const{__scopeContextMenu:r,...c}=n,u=Hk(r);return U.exports.createElement(eGn,oa({},u,c))},dGn="ContextMenuContent",hGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=TFt(dGn,c),p=Hk(c),m=U.exports.useRef(!1);return U.exports.createElement(tGn,oa({},p,u,{ref:r,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:x=>{var E;(E=n.onCloseAutoFocus)===null||E===void 0||E.call(n,x),!x.defaultPrevented&&m.current&&x.preventDefault(),m.current=!1},onInteractOutside:x=>{var E;(E=n.onInteractOutside)===null||E===void 0||E.call(n,x),!x.defaultPrevented&&!d.modal&&(m.current=!0)},style:{...n.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))}),pGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(nGn,oa({},d,u,{ref:r}))}),gGn=n=>{const{__scopeContextMenu:r,children:c,onOpenChange:u,open:d,defaultOpen:p}=n,m=Hk(r),[x,E]=aFt({prop:d,defaultProp:p,onChange:u});return U.exports.createElement(rGn,oa({},m,{open:x,onOpenChange:E}),c)},bGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(iGn,oa({},d,u,{ref:r}))}),mGn=U.exports.forwardRef((n,r)=>{const{__scopeContextMenu:c,...u}=n,d=Hk(c);return U.exports.createElement(oGn,oa({},d,u,{ref:r,style:{...n.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))});function Bse(n){return r=>r.pointerType!=="mouse"?n(r):void 0}const vGn=cGn,yGn=lGn,wGn=fGn,xGn=hGn,SGn=pGn,EGn=gGn,kGn=bGn,CGn=mGn,G7t=({children:n,isDanger:r,labelAs:c="p",...u})=>{const{getColorModeValue:d}=ei();return z(Uc,{...u,w:"full",rounded:"none",fontSize:"sm",variant:r?d("danger","danger"):d("light","light"),bg:d("white","gray.850"),color:r?d("danger.500","red.300"):d("gray.800","gray.50"),height:"7",children:z(Fi,{flexGrow:1,textAlign:"left",as:c,pr:"4",css:{"&:first-letter":{textTransform:"capitalize"}},children:n})})},IGn=n=>n.isSubMenu?z(Si,{children:n.children}):z(vGn,{children:n.children}),AFt=({children:n,isDisabled:r,options:c,isSubMenu:u=!1,...d})=>{const{getColorModeValue:p}=ei(),m=U.exports.useRef(null),x=U.exports.useRef(!1);if(r)return z(Si,{children:n});const E=u?{}:{onCloseAutoFocus:k=>{x.current&&(x.current=!1,k.preventDefault())}};return We(IGn,{isSubMenu:u,children:[z(Tn,{as:u?kGn:yGn,...d,children:n}),z(wGn,{children:z(Tn,{as:u?CGn:xGn,boxShadow:p("dark-lg","dark-lg"),overflow:"hidden",minWidth:"100px",bg:p("gray.25","gray.850"),color:p("white","white"),ref:m,paddingY:"0.5",shadow:"lg",rounded:"md",border:"1px",borderColor:p("gray.50","whiteAlpha.50"),...E,children:c.filter(k=>!k.isHidden).map((k,T)=>k.children?z(EGn,{children:z(AFt,{isSubMenu:!0,options:k.children,__css:{'&[data-state="open"] button':{backgroundColor:p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)")},"&:focus":{outline:"none"},"&:focus button":{backgroundColor:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-danger-500)"):p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)"),color:k.isDanger?p("var(--chakra-colors-white)","var(--chakra-colors-white)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")},"&:hover button":{background:k.isDanger?p("var(--chakra-colors-redAlpha-100)","var(--chakra-colors-redAlpha-100)"):p("var(--chakra-colors-gray-50)","var(--chakra-colors-whiteAlpha-200)"),color:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-red-300)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")}},children:z(G7t,{rightIcon:z(zce,{}),children:k.label})})},T):z(Tn,{as:SGn,__css:{"&:focus":{outline:"none"},"&:focus button":{backgroundColor:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-danger-500)"):p("var(--chakra-colors-gray-100)","var(--chakra-colors-whiteAlpha-300)"),color:k.isDanger?p("var(--chakra-colors-white)","var(--chakra-colors-white)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")},"&:hover button":{background:k.isDanger?p("var(--chakra-colors-redAlpha-100)","var(--chakra-colors-redAlpha-100)"):p("var(--chakra-colors-gray-50)","var(--chakra-colors-whiteAlpha-200)"),color:k.isDanger?p("var(--chakra-colors-danger-500)","var(--chakra-colors-red-300)"):p("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-50)")}},onSelect:()=>{if(!m.current)return;(I=>{const O=HTMLElement.prototype.focus,N=SVGElement.prototype.focus;let j=!1;HTMLElement.prototype.focus=function(...$){if(!j)return j=!0,x.current=!0,O.apply(this,$)},SVGElement.prototype.focus=function(...$){if(!j)return j=!0,x.current=!0,N.apply(this,$)};try{I()}finally{HTMLElement.prototype.focus=O,SVGElement.prototype.focus=N}})(()=>{var I;(I=k.action)==null||I.call(k)})},children:z(G7t,{isDanger:k.isDanger,title:k.title,isDisabled:k.isDisabled,leftIcon:k.icon,rightIcon:k.isActive?z(SVn,{}):void 0,labelAs:typeof k.label=="string"?"p":"div",textStyle:"medium",children:k.label})},T))})})]})},PFt=()=>({nodes:new Map,edges:new Map,focus(n,r){var u,d,p;if(n==="edge_label"||n==="edge_guard"){const m=this.edges.get(r);return m?n==="edge_guard"?((u=m.guardInputRef.current)==null||u.focus(),null):((d=m.labelInputRef.current)==null||d.focus(),null):()=>this.focus(n,r)}const c=this.nodes.get(r);return c?((p=c.inputRef.current)==null||p.focus(),null):()=>this.focus(n,r)}}),OFt=U.exports.createContext(PFt());function _Ft(){return U.exports.useContext(OFt)}function MFt(...[n,r,c]){const u=_Ft();lW(()=>n==="edge"?(u.edges.set(r,c),()=>void u.edges.delete(r)):(u.nodes.set(r,c),()=>void u.nodes.delete(r)),[c])}function TGn({children:n,value:r}){return z(OFt.Provider,{value:r,children:n})}const r1=U.exports.createContext(null),DFt=U.exports.createContext(null),Zc=()=>U.exports.useContext(DFt);function bN(n){const r=U.exports.useContext(r1),c=Al(r,u=>u.children.canvasInteractions,vPe,JDe);return Al(c,n,vPe,u=>u.deferred?Sq.initialState:u.state)}function RS(){return bN(r=>r==null?void 0:r.context.viewBox)}function AGn(n){const r=Zc(),{getColorModeValue:c}=ei(),{selection:u}=n,d=U.exports.useRef(null);U.exports.useEffect(()=>Il.bindAll(d.current,[{type:"pointerdown",listener:m=>{m.stopPropagation()}}]),[]);const{zoom:p}=RS();return We(_w,{height:"2rem",isAttached:!0,ref:d,style:{position:"absolute",left:`calc(50% + ${u.svgRect.x+u.svgRect.width/2}px)`,top:u.svgRect.y,transform:`translate(-50%, calc(-100%)) scale(${1/p}) translateY(-10px)`,transformOrigin:"50% bottom"},children:[z(Uc,{...c(sue,aue),"aria-label":"Add guarded transition",title:"Add guarded transition",onClick:m=>{r.send({type:"edge.addTransition",edgeId:u.edgeId}),m.target.blur()},paddingInline:"2",leftIcon:z(BDe,{}),height:"100%",children:"Transition"}),u.type==="single-edge"?z(S$t,{...c(sue,aue),"aria-label":"Delete transition",title:"Delete transition",onClick:m=>{r.send({type:"edge.delete",edgeId:u.edgeId}),m.target.blur()},icon:z(wW,{}),height:"100%"}):null]})}function qk(n){const{width:r,height:c,x:u,y:d,style:p}=n;return z(Qt.svg,{width:r,height:c,style:{position:"absolute",left:`${u}px`,top:`${d}px`,overflow:"visible",...p},css:{pointerEvents:"none","[data-interactive]":{pointerEvents:"auto"}},children:n.children})}const mN=U.exports.createContext({current:null}),NFt=12,cM=NFt*1.5,X7t=({anchorType:n,edgeId:r,cx:c,cy:u,...d})=>{const p=lt.useRef(null),m=Zc(),{getColorModeValue:x}=ei(),{zoom:E}=RS(),k=U.exports.useContext(mN);lt.useEffect(()=>Il.bindAll(p.current,[{type:"pointerdown",listener:I=>{qce(I,r),I.stopPropagation(),I.target.setPointerCapture(I.pointerId),m.send({type:"edge.anchor.moveStart",edgeId:r,anchor:n,point:jx(I,k.current)})}},{type:"pointermove",listener:I=>{m.send({type:"edge.anchor.move",edgeId:r,point:jx(I,k.current)})}},{type:"pointerup",listener:I=>{I.target.releasePointerCapture(I.pointerId),m.send({type:"edge.anchor.moveEnd",point:jx(I,k.current)})}},{type:"pointercancel",listener:I=>{I.target.releasePointerCapture(I.pointerId),m.send({type:"edge.anchor.moveEnd",point:jx(I,k.current)})}}]),[n,r,m]);const T=cM/2,P=T;return We(qk,{pointerEvents:"auto",x:+c,y:+u,height:cM,width:cM,style:{transform:`scale(${1/E}) translate(${-cM/2}px, ${-cM/2}px) `,transformOrigin:"top left"},children:[z("filter",{id:"anchor-shadow",children:z("feDropShadow",{dx:"0",dy:"0",stdDeviation:".5"})}),We("g",{"data-edge-anchor-group":!0,children:[z("circle",{r:NFt/2,fill:x("black","white"),cx:T,cy:P,"data-edge-anchor":!0,style:{filter:"url(#anchor-shadow)"}}),z("circle",{ref:p,r:cM/2,fill:"transparent",cx:T,cy:P,cursor:"grab",pointerEvents:"auto",...d})]})]})},PGn=sg({preserveActionOrder:!0,id:"drag",initial:"choose_initial_state",context:{ref:null,delta:{dx:0,dy:0},currentDelta:{dx:0,dy:0},startPoint:{x:0,y:0},dragPoint:{x:0,y:0},disabled:!1},states:{choose_initial_state:{always:[{cond:"isDisabled",target:"disabled"},"enabled"]},disabled:{on:{ENABLE_DRAG:"enabled"}},enabled:{initial:"idle",on:{DISABLE_DRAG:"disabled"},invoke:{src:"pointerListeners"},states:{idle:{on:{pointerdown:{target:"preDragging",actions:"updateStartPoint"}}},preDragging:{on:{pointerup:{target:"idle",actions:"click"},pointermove:"dragging",pointerleave:"idle",pointercancel:"idle"}},dragging:{entry:["dragStart","setPointerCapture"],exit:["releasePointerCapture"],on:{pointermove:{actions:["updateDelta","onDrag"]},pointerup:{target:"idle",actions:["updateDelta","dragEnd","resetState"]},pointercancel:{target:"idle",actions:["updateDelta","dragEnd","resetState"]}}}}}}},{guards:{isDisabled:n=>n.disabled},actions:{setPointerCapture:({ref:n},r)=>{"pointerId"in r&&n.current.setPointerCapture(r.pointerId)},releasePointerCapture:({ref:n},r)=>{"pointerId"in r&&n.current.releasePointerCapture(r.pointerId)},updateStartPoint:Ji({startPoint:(n,r)=>({x:r.x,y:r.y}),dragPoint:(n,r)=>({x:r.x,y:r.y})}),updateDelta:Ji({dragPoint:(n,r)=>({x:r.x,y:r.y}),delta:(n,r)=>({dx:r.x-n.startPoint.x,dy:r.y-n.startPoint.y}),currentDelta:(n,r)=>({dx:r.x-n.dragPoint.x,dy:r.y-n.dragPoint.y})}),resetState:Ji({startPoint:{x:0,y:0},delta:{dx:0,dy:0},dragPoint:{x:0,y:0},currentDelta:{dx:0,dy:0}})},services:{pointerListeners:({ref:n,svgRef:r})=>c=>Il.bindAll(n.current,[{type:"pointerdown",listener:u=>{var p;if(jU(u)||(qce(u,"drag"),u.button!==0&&u.button!==1))return;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerdown",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointermove",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointermove",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointerup",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerup",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointercancel",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointercancel",pointerId:u.pointerId,pointerEvent:u,...d})}},{type:"pointerleave",listener:u=>{var p;const d=jx(u,(p=r==null?void 0:r.current)!=null?p:void 0);c({type:"pointerleave",pointerId:u.pointerId,pointerEvent:u,...d})}}])}}),mfe=(n,{disabled:r=!1,onClick:c,onDragStart:u,onDrag:d,onDragEnd:p},m)=>{const x=yW(PGn,{context:{ref:n,svgRef:m,disabled:r},actions:{click:E=>{c==null||c(E)},onDrag:E=>{d==null||d(E)},dragEnd:E=>{p==null||p(E)},dragStart:E=>{u==null||u(E.startPoint)}}});return U.exports.useEffect(()=>{x.send({type:r?"DISABLE_DRAG":"ENABLE_DRAG"})},[r,x]),x.send};class SNe extends Error{}function ENe(n,r,c=(u,d)=>u===d){const u=r(n.getSnapshot()),[,d]=U.exports.useState(u);return U.exports.useEffect(()=>{let p=u;const m=n.subscribe(()=>{const x=r(n.getSnapshot());x instanceof SNe||c(x,p)||(p=x,d(x))});return()=>{m==null||m.unsubscribe()}},[n,r]),u}function ya(n,r){const c=Zc();return ENe(c,n,r)}function Ew(n,r,c){const u=Zc();return ENe(u,d=>{const p=d.getNodeByUniqueId(n);return p?r(p,d):new SNe},c)}function jd(n,r,c){const u=Zc();return ENe(u,U.exports.useCallback(d=>{const p=d.getEdgeByUniqueId(n);return p?r(p,d):new SNe},[n,r]),c)}function jFt(n){return ya(r=>r.status==="selected"&&Object.keys(r.selection).length===1&&!!r.selection[n])}const Xh=20,Vse=({side:n,nodeId:r,...c})=>{const u=lt.useRef(null),d=Zc(),p=bN(I=>I.matches({mode:"pannable"})),{getColorModeValue:m}=ei(),x=U.exports.useContext(mN),E=Ew(r,I=>({point:I.currentRects.family.centerSide(n),serialisableId:I.getSerialisableId()}),Xo),{zoom:k}=RS(),T=2;mfe(u,{onDragStart:()=>{d.send({type:"node.newEdge.start",nodeId:r,side:n})},onDrag:I=>{d.send({type:"node.newEdge.move",nodeId:r,point:I.dragPoint})},onDragEnd:I=>{d.send({type:"node.newEdge.end",nodeId:r,point:I.dragPoint})},onClick:I=>{console.log("clicked"),d.send({type:"node.newEdge.start",nodeId:r,side:n}),d.send({type:"node.newEdge.end",nodeId:r,point:I.startPoint})}},x),lt.useEffect(()=>{if(p){d.send({type:"node.newEdge.cancel"});return}},[d,p,r,n]);const P={left:`translate(${-Xh-10}px, ${-Xh/2}px)`,right:`translate(${10}px, ${-Xh/2}px)`,top:`translate(${-Xh/2}px, ${-Xh-10}px)`,bottom:`translate(${-Xh/2}px, ${10}px)`}[n];return z(qk,{x:E.point.x,y:E.point.y,width:Xh,height:Xh,style:{color:m("white","var(--chakra-colors-primary-600)"),transformOrigin:"top left",transform:`scale(${1/k}) ${P} `},children:We("g",{"data-node-anchor-group":!0,children:[z("rect",{pointerEvents:"auto",fill:m("var(--chakra-colors-blue-500)","white"),ref:u,"data-testname":`${E.serialisableId}#new-edge-anchor#${n}`,width:Xh,height:Xh,rx:T,ry:T,...c,cursor:"grab","data-node-anchor":!0,onPointerOver:()=>{d.send({type:"node.newEdge.start",nodeId:r,side:n})},onPointerOut:()=>{d.send({type:"node.newEdge.cancel"})}}),z("line",{x1:Xh/2,y1:6,x2:Xh/2,y2:Xh-6,stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",pointerEvents:"none","data-node-anchor-line":!0}),z("line",{x1:6,y1:Xh/2,x2:Xh-6,y2:Xh/2,stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",pointerEvents:"none","data-node-anchor-line":!0})]})})};function OGn(n){const r=Zc(),{getColorModeValue:c}=ei(),{selection:u,...d}=n,p=U.exports.useRef(null);U.exports.useEffect(()=>Il.bindAll(p.current,[{type:"pointerdown",listener:x=>{x.stopPropagation()}}]),[]);const{zoom:m}=RS();return We(_w,{height:"2rem",isAttached:!0,pointerEvents:"auto",ref:p,...d,style:{...d.style,position:"absolute",left:`calc(50% + ${u.svgRect.x+u.svgRect.width/2}px)`,top:u.svgRect.y,transform:`translateX(-50%) scale(${1/m}) translateY(calc(-100% - ${Xh+20}px))`,transformOrigin:"top center"},children:[z(Uc,{...c(sue,aue),"aria-label":"Add child state",title:"Add child state",onClick:x=>{r.send({type:"node.newChildNode",nodeId:u.nodeId}),x.currentTarget.blur()},leftIcon:z(BDe,{}),paddingInline:"2",height:"100%",children:"State"}),!u.isRoot&&z(S$t,{...c(sue,aue),"aria-label":"Delete state",title:"Delete state",onClick:()=>{r.send({type:"node.delete",nodeId:u.nodeId})},height:"100%",icon:z(wW,{})})]})}const _Gn=({nodeId:n})=>We(Si,{children:[z(Vse,{nodeId:n,side:"top"}),z(Vse,{nodeId:n,side:"bottom"}),z(Vse,{nodeId:n,side:"left"}),z(Vse,{nodeId:n,side:"right"})]}),K7t=({box:n,...r})=>{const c=Math.min(n[0].x,n[1].x),u=Math.max(n[0].x,n[1].x)-c,d=Math.min(n[0].y,n[1].y),p=Math.max(n[0].y,n[1].y)-d;return z(qk,{children:z("rect",{x:c,y:d,width:u,height:p,...r})})},MGn=2;function DGn({canvasActor:n}){const{getColorModeValue:r}=ei(),c=Al(n,p=>p.context.selectionBox,Xo),u=ya(p=>{const m=Object.values(p.selection);return m.length<=1?null:sS(m.map(x=>x.type==="node"?p.getNodeByUniqueId(x.id).currentRects.family:p.getEdgeByUniqueId(x.id).getBounds())).expand(MGn).getBox()},Xo),{zoom:d}=RS();return We(Si,{children:[c&&z(K7t,{box:c,fill:r("#8A8A99","#8A8A99"),opacity:.2,stroke:r("white","white"),vectorEffect:"non-scaling-stroke",strokeWidth:2/d}),u&&z(K7t,{box:u,fill:r("rgba(138, 138, 153, 0.05)","rgba(138, 138, 153, 0.05)"),stroke:r("var(--chakra-colors-blue-500","#fff"),vectorEffect:"non-scaling-stroke",strokeWidth:2/d})]})}const RM=2,NGn=({nodeId:n})=>{const{getColorModeValue:r}=ei(),{x:c,y:u,width:d,height:p}=Ew(n,x=>({x:x.currentRects.family.left-RM,y:x.currentRects.family.top-RM,width:x.currentRects.family.width+RM*2,height:x.currentRects.family.height+RM*2}),Xo),{zoom:m}=RS();return z("rect",{"data-testid":`node-selection-rect:${n}`,fill:"none",stroke:r("var(--chakra-colors-blue-500","#fff"),strokeWidth:2/m,rx:2,x:c,y:u,width:d,height:p,vectorEffect:"non-scaling-stroke"})},jGn=({edgeId:n})=>{const{getColorModeValue:r}=ei(),c=jd(n,d=>{const p=d.getFamilyRect();if(!!p)return{x:p.left-zse,y:p.top-zse,width:p.width+zse*2,height:p.height+zse*2}},Xo),{zoom:u}=RS();return c?z("rect",{fill:"none",stroke:r("var(--chakra-colors-blue-500)","#fff"),strokeWidth:2/u,rx:20,x:c.x,y:c.y,width:c.width,height:c.height,vectorEffect:"non-scaling-stroke",pointerEvents:"none"}):null},zse=RM-1,RGn=({edgeId:n})=>{const{edgePathData:r,displayEventType:c}=jd(n,u=>({edgePathData:u.getPathData(),displayEventType:u.getDisplayEventType()}),Xo);return We(Si,{children:[r&&z(X7t,{edgeId:n,"data-testname":"notdefined",cx:r.sourcePathData.startAnchor.x,cy:r.sourcePathData.startAnchor.y,anchorType:"source"}),r&&z(X7t,{"data-testname":`${c}#transition#0#target-anchor`,edgeId:n,cx:r.targetPathData.endAnchor.x,cy:r.targetPathData.endAnchor.y,anchorType:"target"})]})},sue={fontSize:"sm",bg:"blue.500",color:"white",rounded:"2px",_hover:{bg:"blue.600"},_focus:{bg:"blue.600"},_active:{bg:"blue.600"}},aue={fontSize:"sm",bg:"white",color:"black",rounded:"2px",_hover:{bg:"gray.50"},_focus:{bg:"gray.50"},_active:{bg:"gray.50"}};function vfe(){const n=U.exports.useContext(r1);return Al(n,c=>c.children.canvasInteractions,Object.is,JDe)}const $Gn=()=>{const n=U.exports.useContext(r1),r=ya(m=>{const x=Object.keys(m.selection);if(x.length===0)return{type:"none"};if(x.length===1){const E=Object.values(m.selection)[0];if(E.type==="node"){const T=m.getNodeByUniqueId(E.id);return{type:"single-node",nodeId:T.uniqueId,isRoot:!T.parent,svgRect:T.currentRects.family}}const k=m.getEdgeByUniqueId(E.id);return{type:"single-edge",edgeId:E.id,svgRect:k.getLabelRect()}}else return{type:"multi",boundsBox:sS(Object.values(m.selection).map(E=>E.type==="node"?m.getNodeByUniqueId(E.id).currentRects.family:m.getEdgeByUniqueId(E.id).getBounds())).expand(RM).getBox()}},Xo),c=ya(m=>m.tempEdge),u=ya(m=>Object.values(m.selection).filter(x=>x.type==="edge"),Xo),d=ya(m=>Object.values(m.selection).filter(x=>x.type==="node"),Xo);return ya(m=>["selecting","movingSelection"].includes(m.status))?null:We(Si,{children:[z(DGn,{canvasActor:n}),We(qk,{children:[u.map(m=>z(jGn,{edgeId:m.id},m.id)),d.map(m=>z(NGn,{nodeId:m.id},m.id))]}),r.type==="single-node"?We(Si,{children:[z(OGn,{opacity:(c==null?void 0:c.originalSourceSide)==="top"?0:1,transition:"opacity 0.2s",selection:r}),z(_Gn,{nodeId:r.nodeId},r.nodeId)]}):r.type==="single-edge"?We(Si,{children:[z(AGn,{selection:r}),z(RGn,{edgeId:r.edgeId},r.edgeId)]}):null]})},jw=()=>{const n=lt.useContext(r1);return Al(n,c=>c.matches("simulating"))},LGn=()=>lt.useContext(r1),yfe=n=>{const r=Ew(n,x=>x.getSerialisableId()),c=ya(x=>x.root.data.key),u=ya(x=>x.root.uniqueId===n),d=lt.useContext(r1),p=jw();return(Al(d,x=>{const E=x.context.activeState;return((E==null?void 0:E.toStrings())||[]).map(T=>`${c}.${T}`).includes(r)})||u)&&p},RFt=n=>{const r=jd(n,x=>x.getNodeSource().uniqueId),c=jd(n,x=>x.getDisplayEventType()),u=lt.useContext(r1),d=Al(u,x=>x.context.activeState?BGn(c,x.context.activeState):!1),p=yfe(r),m=jw();return d&&p&&m},FGn=n=>{const r=new Set;for(const c of n)for(let u=0;uc.split(".")).concat([])},BGn=(n,r)=>{const c=VGn(r),u=r==null?void 0:r.configuration.flatMap(d=>d.transitions).filter(d=>{const p=d.eventType;return p.startsWith("done.state.")?c.has(p):!0});return u!=null&&u.some(d=>{var p;return!((p=d.cond)!=null&&p.name)&&d.eventType===""})?n==="":u!=null&&u.some(d=>{var p;return!((p=d.cond)!=null&&p.name)&&d.eventType.startsWith("done.state.")&&c.has(d.eventType)})?n.startsWith("done.state."):u.some(d=>d.eventType===n)},VGn=n=>{const r=zn.toStatePaths(n==null?void 0:n.value),u=FGn(r).map(p=>{var m;return(m=n==null?void 0:n.machine)==null?void 0:m.getStateNodeByPath(p)}),d=new Set;return u.forEach(p=>{Oae(n.configuration,p)&&d.add(`done.state.${p.id}`)}),d},$Ft=(n,{canZoomIn:r,canZoomOut:c,showKeyboardShortcuts:u})=>[{label:z(B9,{title:"Zoom In",icon:T$t,keyboardShortcut:u?z(hh,{children:"+"}):void 0,isDisabled:!r}),action:()=>n.send({type:"zoom.in"})},{label:z(B9,{title:"Zoom Out",icon:I$t,keyboardShortcut:u?z(hh,{children:"-"}):void 0,isDisabled:!c}),action:()=>{c&&n.send({type:"zoom.out"})}},{label:z(B9,{title:"25%"}),action:()=>n.send({type:"zoom.set",value:.25,origin:{x:0,y:0}})},{label:z(B9,{title:"50%"}),action:()=>n.send({type:"zoom.set",value:.5,origin:{x:0,y:0}})},{label:z(B9,{title:"75%"}),action:()=>n.send({type:"zoom.set",value:.75,origin:{x:0,y:0}})},{label:z(B9,{title:"100%",keyboardShortcut:u?We(Si,{children:[z(hh,{children:"Shift"})," + ",z(hh,{children:"0"})]}):void 0}),action:()=>n.send({type:"zoom.set",value:1,origin:{x:0,y:0}})},{label:z(B9,{title:"Fit to Content",icon:aVn,keyboardShortcut:u?We(Si,{children:[z(hh,{children:"Shift"})," + ",z(hh,{children:"1"})]}):void 0}),action:()=>n.send({type:"fit_to_content"})}],zGn=()=>{const n=U.exports.useContext(r1),{getColorModeValue:r}=ei(),c=Al(n,m=>m.children.canvasInteractions,Object.is,JDe),{zoom:u,canZoomOut:d,canZoomIn:p}=Al(c,m=>({viewBox:m.context.viewBox,zoom:m.context.viewBox.zoom,canZoomOut:m.can({type:"zoom.out"}),canZoomIn:m.can({type:"zoom.in"})}),Xo,m=>m.deferred?Sq.initialState:m.state);return We(_w,{isAttached:!0,children:[z(Ev,{"aria-label":"Zoom Out",isDisabled:!d,onClick:()=>c.send({type:"zoom.out"}),bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),children:z(I$t,{})}),We(NU.Wrapper,{placement:"top-end",children:[We(NU.MenuButton,{as:Uc,textStyle:"semibold",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),variant:"gray",width:"8ch",fontSize:"sm",children:[(u*100).toFixed(),"%"]}),z(s3,{children:z(NU.MenuList,{children:$Ft(c,{canZoomIn:p,canZoomOut:d,showKeyboardShortcuts:!0}).map((m,x)=>z(NU.MenuItem,{onClick:m.action,children:m.label},`zoomCommand-${x}`))})})]}),z(Ev,{"aria-label":"Zoom In",isDisabled:!p,bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),onClick:()=>c.send({type:"zoom.in"}),children:z(T$t,{})})]})},B9=n=>{const{getColorModeValue:r}=ei();return We(nl,{w:"full",opacity:n.isDisabled?.25:1,cursor:n.isDisabled?"not-allowed":"",children:[n.icon&&z(n.icon,{w:"4",h:"4",color:r("gray.600","gray.400")}),z(Fi,{flex:"1",marginLeft:n.icon?"0":"22px",pl:1,children:n.title}),n.keyboardShortcut&&z(Tn,{color:r("gray.600","gray.200"),pl:"4",children:n.keyboardShortcut})]})},UGn=["normal","parallel","history","final"];function HGn(n,r,c,{nodeId:u,serialisableId:d,data:p,isInitialState:m,isRootNode:x,isParentParallelState:E,showProOptions:k=!1}){var I;const T=[{label:"rename",action:()=>{r.send({type:"select",mode:"single",entity:{id:u,type:"node"}}),n.focus("node",u)}},{label:"type",children:UGn.map(O=>({label:O,isActive:O===p.type,action:()=>{r.send({type:"node.modify.type",nodeId:u,stateType:O})}}))},{label:"add self-transition",action:()=>{r.send({type:"edge.new",source:d,target:d})}}],P=(I=r.getSnapshot().getNodeByUniqueId(u))==null?void 0:I.parent;return!m&&!x&&!E&&P&&T.push({label:"mark as initial state",action:()=>{r.send({type:"node.setInitialState",nodeId:P.uniqueId,key:p.key})}}),x&&T.unshift({label:"autolayout",action:()=>{r.send({type:"autolayout"})}}),T.push({label:"Center to view",action:()=>{c.send({type:"fit_to_content",nodeId:u})}}),k&&pNe.ALLOW_PRO_COLORS&&T.push({label:"color",children:z$n.map(O=>({label:O,isActive:O===p.color||p.color===void 0&&O==="Default",action:()=>{r.send({type:"node.setColor",nodeId:u,color:O})}}))}),x||T.push({label:"Delete",isDanger:!0,action:()=>{r.send({type:"node.delete",nodeId:u})}}),T}function qGn(n,r,{edgeId:c,data:u,transitionPossibleEventTypes:d,firstInvocationId:p,targetSerialisableId:m,sourceSerialisableId:x}){const{eventTypeData:E}=u,k=[{label:"event",isActive:E.type==="named",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"named",eventType:"Event name"},edgeId:c})}},{label:"after",isActive:E.type==="after",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"after",delay:"500"},edgeId:c})}},{label:"always",isActive:E.type==="always",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"always"},edgeId:c})}},{label:"wildcard event",isActive:E.type==="wildcard",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"wildcard"},edgeId:c})}}];d.includes("state.done")&&k.push({label:"State Done Event",isActive:E.type==="state.done",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"state.done"},edgeId:c})}}),d.includes("invocation.done")&&p&&k.push({label:"Invocation Done Event",isActive:E.type==="invocation.done",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"invocation.done",invocationId:p},edgeId:c})}}),d.includes("invocation.error")&&p&&k.push({label:"Invocation Error Event",isActive:E.type==="invocation.error",action:()=>{r.send({type:"edge.modify.eventType",eventTypeData:{type:"invocation.error",invocationId:p},edgeId:c})}});const T=[{label:"event type",children:k}];return u.guard?T.push({label:"remove guard",action:()=>{r.send({type:"edge.removeGuard",edgeId:c})}}):T.push({label:"add guard",action:()=>{r.send({type:"edge.addGuard",edgeId:c})}}),m!==x&&!["invocation.done","invocation.error","state.done"].includes(u.eventTypeData.type)&&T.push({label:"switch source and target",action:()=>{r.send({type:"edge.setSourceAndTarget",edgeId:c,source:m,target:x})}}),m!==x&&T.push({label:"make self event",action:()=>{r.send({type:"edge.targetSelf",edgeId:c})}}),E.type==="named"&&T.unshift({label:"rename",action:()=>{r.send({type:"select",entity:{id:c,type:"edge"},mode:"single"}),n.focus("edge_label",c)}}),T.push({label:"Delete",isDanger:!0,action:()=>{r.send({type:"edge.delete",edgeId:c})}}),T}function WGn({showProOptions:n=!1,...r}){const c=Zc(),u=vfe(),d=jw(),p=_Ft(),{canZoomIn:m,canZoomOut:x}=bN(T=>({canZoomIn:T.can({type:"zoom.in"}),canZoomOut:T.can({type:"zoom.out"})}));let E;const k=ya(lt.useCallback(T=>{var O,N,j;const P=T.selection,I=Object.values(P);if(I.length===0||d)return{type:"zoom"};if(I.length===1){if(I[0].type==="node"){const B=T.getNodeByUniqueId(I[0].id);return{type:"single_node_selection",nodeId:B.uniqueId,serialisableId:B.getSerialisableId(),data:B.data,isInitialState:((O=B.parent)==null?void 0:O.data.initial)===B.data.key,isRootNode:!B.parent,isParentParallelState:((N=B.parent)==null?void 0:N.data.type)==="parallel"}}const $=T.getEdgeByUniqueId(I[0].id),L=$.getNodeSource();return{type:"single_edge_selection",edgeId:$.uniqueId,data:$.data,transitionPossibleEventTypes:oLt($),firstInvocationId:(j=L.invocations)!=null&&j[0]?Jh(L.invocations[0]):void 0,targetSerialisableId:$.target.getSerialisableId(),sourceSerialisableId:L.getSerialisableId()}}return{type:"multi_selection"}},[d]),Xo);return k.type==="zoom"?E=$Ft(u,{canZoomIn:m,canZoomOut:x,showKeyboardShortcuts:!1}):k.type==="single_node_selection"?E=HGn(p,c,u,{...k,showProOptions:n}):k.type==="single_edge_selection"?E=qGn(p,c,k):E=[{label:"Delete",isDanger:!0,action:()=>{c.send({type:"selection.delete"})}}],z(AFt,{options:E,...r})}const GGn=n=>({context:"{}",rootNode:{id:n,size:{height:0,width:0},position:{x:0,y:0},nodes:[{id:"First State",data:{key:"First State",entry:[],exit:[],invoke:[],tags:[]},position:{x:0,y:0},nodes:[]},{id:"Second State",data:{key:"Second State",entry:[],exit:[],invoke:[],tags:[]},position:{x:400,y:0},nodes:[]}],data:{key:n,initial:"First State",entry:[],exit:[],invoke:[],tags:[]}},edges:[{id:HDe(`${n}.First State`,"Event",0),data:{eventTypeData:{type:"named",eventType:"Event"},guard:void 0,actions:[],description:void 0,internal:!1,metaEntries:[]},position:{x:200,y:0},source:`${n}.First State`,target:`${n}.Second State`}]}),XGn=(n,r,c,u,d,p)=>"rootNode"in n&&"edges"in n?C7t(n,{name:r,context:"context"in n?JSON.parse(n.context):{}},c,u,d,p):C7t(GGn(r),{name:r,context:{}},c,u,d,p),CW=U.exports.createContext({}),KGn=sg({id:"initial fit to content",initial:"check autolayout status",states:{"check autolayout status":{always:[{cond:"isAutolayoutNeeded",target:"autolayout needed"},{target:"fit to content done"}]},"autolayout needed":{invoke:{src:"listenToGraphAutolayoutStatus"},on:{"autolayout performed":{target:"fit to content done"}}},"fit to content done":{type:"final"}}});function YGn(n){return n}function QGn(n){return n.length===0?YGn:n.length===1?n[0]:function(c){return n.reduce((u,d)=>d(u),c)}}function wfe(n){const r={subscribe(c){let u=null,d=!1,p=!1,m=!1;function x(){if(u===null){m=!0;return}p||(p=!0,typeof u=="function"?u():u&&u.unsubscribe())}return u=n({next(E){var k;d||(k=c.next)==null||k.call(c,E)},error(E){var k;d||(d=!0,(k=c.error)==null||k.call(c,E),x())},complete(){var E;d||(d=!0,(E=c.complete)==null||E.call(c),x())}}),m&&x(),{unsubscribe:x}},pipe(...c){return QGn(c)(r)}};return r}function ZGn(n){return r=>{let c=0,u=null;const d=[];function p(){u||(u=r.subscribe({next(x){var E;for(const k of d)(E=k.next)==null||E.call(k,x)},error(x){var E;for(const k of d)(E=k.error)==null||E.call(k,x)},complete(){var x;for(const E of d)(x=E.complete)==null||x.call(E)}}))}function m(){if(c===0&&u){const x=u;u=null,x.unsubscribe()}}return{subscribe(x){return c++,d.push(x),p(),{unsubscribe(){c--,m();const E=d.findIndex(k=>k===x);E>-1&&d.splice(E,1)}}}}}}function JGn(n){return r=>({subscribe(c){return r.subscribe({next(u){var d,p;(d=n.next)==null||d.call(n,u),(p=c.next)==null||p.call(c,u)},error(u){var d,p;(d=n.error)==null||d.call(n,u),(p=c.error)==null||p.call(c,u)},complete(){var u,d;(u=n.complete)==null||u.call(n),(d=c.complete)==null||d.call(c)}})}})}class kNe extends Error{constructor(r){super(r),this.name="ObservableAbortError",Object.setPrototypeOf(this,kNe.prototype)}}function eXn(n){let r;return{promise:new Promise((u,d)=>{let p=!1;function m(){p||(p=!0,d(new kNe("This operation was aborted.")),x.unsubscribe())}const x=n.subscribe({next(E){p=!0,u(E),m()},error(E){p=!0,d(E),m()},complete(){p=!0,m()}});r=m}),abort:r}}class x7 extends Error{static from(r,c={}){var u;return r instanceof Error?r.name==="TRPCClientError"?r:new x7(r.message,{...c,cause:r,result:null}):new x7((u=r.error.message)!=null?u:"",{...c,cause:void 0,result:r})}constructor(r,c){var d,p;const u=c==null?void 0:c.cause;super(r,{cause:u}),this.meta=c==null?void 0:c.meta,this.cause=u,this.shape=(d=c==null?void 0:c.result)==null?void 0:d.error,this.data=(p=c==null?void 0:c.result)==null?void 0:p.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,x7.prototype)}}function tXn(n,r){if("error"in n){const u=r.transformer.deserialize(n.error);return{ok:!1,error:{...n,error:u}}}const c={...n.result,...(!n.result.type||n.result.type==="data")&&{type:"data",data:r.transformer.deserialize(n.result.data)}};return{ok:!0,result:c}}function nXn(n){return wfe(r=>{function c(d=0,p=n.op){const m=n.links[d];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:p,next(E){return c(d+1,E)}})}return c().subscribe(r)})}function LFt(){return typeof window<"u"?window:globalThis}function rXn(n){var r;return(r=n!=null?n:LFt().AbortController)!=null?r:null}function iXn(n){if(n)return n;const r=LFt(),c=r.fetch;if(c)return typeof c.bind=="function"?c.bind(r):c;throw new Error("No fetch implementation found")}function oXn(n){const r=n.headers||(()=>({}));return{url:n.url,fetch:iXn(n.fetch),AbortController:rXn(n.AbortController),headers:typeof r=="function"?r:()=>r}}function sXn(n){const r={};for(let c=0;cn.runtime.transformer.serialize(r)))}function BFt(n){let r=n.url+"/"+n.path;const c=[];if("inputs"in n&&c.push("batch=1"),n.type==="query"){const u=FFt(n);u!==void 0&&c.push(`input=${encodeURIComponent(JSON.stringify(u))}`)}return c.length&&(r+="?"+c.join("&")),r}function cXn(n){if(n.type==="query")return;const r=FFt(n);return r!==void 0?JSON.stringify(r):void 0}function uXn(n){const{type:r}=n,c=n.AbortController?new n.AbortController:null;return{promise:new Promise((p,m)=>{const x=BFt(n),E=cXn(n),k={};Promise.resolve(n.headers()).then(T=>{if(r==="subscription")throw new Error("Subscriptions should use wsLink");return n.fetch(x,{method:aXn[r],signal:c==null?void 0:c.signal,body:E,headers:{"content-type":"application/json",...T}})}).then(T=>(k.response=T,T.json())).then(T=>{p({json:T,meta:k})}).catch(m)}),cancel:()=>{c==null||c.abort()}}}const x7e=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function S7e(n){let r=null,c=null;const u=()=>{clearTimeout(c),c=null,r=null};function d(x){const E=[[]];let k=0;for(;;){const T=x[k];if(!T)break;const P=E[E.length-1];if(T.aborted){T.reject(new Error("Aborted")),k++;continue}if(n.validate(P.concat(T).map(O=>O.key))){P.push(T),k++;continue}if(P.length===0){T.reject(new Error("Input is too big for a single dispatch")),k++;continue}E.push([])}return E}function p(){const x=d(r);u();for(const E of x){if(!E.length)continue;const k={items:E,cancel:x7e};for(const I of E)I.batch=k;const{promise:T,cancel:P}=n.fetch(k.items.map(I=>I.key));k.cancel=P,T.then(I=>{for(let O=0;O{for(const O of k.items)O.reject(I),O.batch=null})}}function m(x){const E={aborted:!1,key:x,batch:null,resolve:x7e,reject:x7e},k=new Promise((P,I)=>{E.reject=I,E.resolve=P,r||(r=[]),r.push(E)});return c||(c=setTimeout(p)),{promise:k,cancel:()=>{var P;E.aborted=!0,(P=E.batch)!=null&&P.items.every(I=>I.aborted)&&(E.batch.cancel(),E.batch=null)}}}return{load:m}}function CNe(n){const r=oXn(n);return c=>{const u=n.maxURLLength||1/0,d=k=>({validate:I=>{if(u===1/0)return!0;const O=I.map($=>$.path).join(","),N=I.map($=>$.input);return BFt({...r,runtime:c,type:k,path:O,inputs:N}).length<=u},fetch:I=>{const O=I.map(L=>L.path).join(","),N=I.map(L=>L.input),{promise:j,cancel:$}=uXn({...r,runtime:c,type:k,path:O,inputs:N});return{promise:j.then(L=>(Array.isArray(L.json)?L.json:I.map(()=>L.json)).map(X=>({meta:L.meta,json:X}))),cancel:$}}}),p=S7e(d("query")),m=S7e(d("mutation")),x=S7e(d("subscription")),E={query:p,subscription:x,mutation:m};return({op:k})=>wfe(T=>{const P=E[k.type],{promise:I,cancel:O}=P.load(k);return I.then(N=>{const j=tXn(N.json,c);if(!j.ok){T.error(x7.from(j.error,{meta:N.meta}));return}T.next({context:N.meta,result:j.result}),T.complete()}).catch(N=>T.error(x7.from(N))),()=>{O()}})}}const VFt=()=>{};function zFt(n,r){return new Proxy(VFt,{get(u,d){if(!(typeof d!="string"||d==="then"))return zFt(n,[...r,d])},apply(u,d,p){return n({args:p,path:r})}})}const INe=n=>zFt(n,[]),xfe=n=>new Proxy(VFt,{get(r,c){if(!(typeof c!="string"||c==="then"))return n(c)}}),lXn={query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},fXn=(n=console)=>r=>{const{direction:c,input:u,type:d,path:p,context:m,id:x}=r,[E,k]=lXn[d],T=` + background-color: #${c==="up"?E:k}; + color: ${c==="up"?"black":"white"}; + padding: 2px; + `,P=["%c",c==="up"?">>":"<<",d,`#${x}`,`%c${p}%c`,"%O"],I=[T,`${T}; font-weight: bold;`,`${T}; font-weight: normal;`];r.direction==="up"?I.push({input:u,context:m}):I.push({input:u,result:r.result,elapsedMs:r.elapsedMs,context:m});const O=r.direction==="down"&&r.result&&(r.result instanceof Error||"error"in r.result.result)?"error":"log";n[O].apply(null,[P.join(" ")].concat(I))};function dXn(n={}){const{enabled:r=()=>!0}=n,{logger:c=fXn(n.console)}=n;return()=>({op:u,next:d})=>wfe(p=>{r({...u,direction:"up"})&&c({...u,direction:"up"});const m=Date.now();function x(E){const k=Date.now()-m;r({...u,direction:"down",result:E})&&c({...u,direction:"down",elapsedMs:k,result:E})}return d(u).pipe(JGn({next(E){x(E)},error(E){x(E)}})).subscribe(p)})}class UFt{$request({type:r,input:c,path:u,context:d={}}){return nXn({links:this.links,op:{id:++this.requestId,type:r,path:u,input:c,context:d}}).pipe(ZGn())}requestAsPromise(r){const c=this.$request(r),{promise:u,abort:d}=eXn(c);return new Promise((m,x)=>{var E;(E=r.signal)==null||E.addEventListener("abort",d),u.then(k=>{m(k.result.data)}).catch(k=>{x(x7.from(k))})})}query(r,c,u){return this.requestAsPromise({type:"query",path:r,input:c,context:u==null?void 0:u.context,signal:u==null?void 0:u.signal})}mutation(r,c,u){return this.requestAsPromise({type:"mutation",path:r,input:c,context:u==null?void 0:u.context,signal:u==null?void 0:u.signal})}subscription(r,c,u){return this.$request({type:"subscription",path:r,input:c,context:u==null?void 0:u.context}).subscribe({next(p){var m,x,E;p.result.type==="started"?(m=u.onStarted)==null||m.call(u):p.result.type==="stopped"?(x=u.onStopped)==null||x.call(u):(E=u.onData)==null||E.call(u,p.result.data)},error(p){var m;(m=u.onError)==null||m.call(u,p)},complete(){var p;(p=u.onComplete)==null||p.call(u)}})}constructor(r){this.requestId=0;function c(){return r.transformer?"input"in r.transformer?{serialize:r.transformer.input.serialize,deserialize:r.transformer.output.deserialize}:r.transformer:{serialize:u=>u,deserialize:u=>u}}this.runtime={transformer:c()},this.links=r.links.map(u=>u(this.runtime))}}function HFt(n){const r=()=>"links"in n?n.links:[CNe(n)];return new UFt({transformer:n.transformer,links:r()})}const hXn={query:"query",mutate:"mutation",subscribe:"subscription"};function qFt(n){return xfe(r=>r in n?n[r]:INe(({path:c,args:u})=>{const d=[r,...c],p=d.pop(),m=hXn[p],x=d.join(".");return n[m](x,...u)}))}function pXn(n){const r=new UFt(n);return qFt(r)}class vN{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.push(r),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(c=>c!==r),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Dq=typeof window>"u";function cv(){}function gXn(n,r){return typeof n=="function"?n(r):n}function GPe(n){return typeof n=="number"&&n>=0&&n!==1/0}function WFt(n,r){return Math.max(n+(r||0)-Date.now(),0)}function CH(n,r,c){return IW(n)?typeof r=="function"?{...c,queryKey:n,queryFn:r}:{...r,queryKey:n}:n}function bXn(n,r,c){return IW(n)?typeof r=="function"?{...c,mutationKey:n,mutationFn:r}:{...r,mutationKey:n}:typeof n=="function"?{...r,mutationFn:n}:{...n}}function zE(n,r,c){return IW(n)?[{...r,queryKey:n},c]:[n||{},r]}function Y7t(n,r){const{type:c="all",exact:u,fetchStatus:d,predicate:p,queryKey:m,stale:x}=n;if(IW(m)){if(u){if(r.queryHash!==TNe(m,r.options))return!1}else if(!cue(r.queryKey,m))return!1}if(c!=="all"){const E=r.isActive();if(c==="active"&&!E||c==="inactive"&&E)return!1}return!(typeof x=="boolean"&&r.isStale()!==x||typeof d<"u"&&d!==r.state.fetchStatus||p&&!p(r))}function Q7t(n,r){const{exact:c,fetching:u,predicate:d,mutationKey:p}=n;if(IW(p)){if(!r.options.mutationKey)return!1;if(c){if(nk(r.options.mutationKey)!==nk(p))return!1}else if(!cue(r.options.mutationKey,p))return!1}return!(typeof u=="boolean"&&r.state.status==="loading"!==u||d&&!d(r))}function TNe(n,r){return((r==null?void 0:r.queryKeyHashFn)||nk)(n)}function nk(n){return JSON.stringify(n,(r,c)=>KPe(c)?Object.keys(c).sort().reduce((u,d)=>(u[d]=c[d],u),{}):c)}function cue(n,r){return GFt(n,r)}function GFt(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?!Object.keys(r).some(c=>!GFt(n[c],r[c])):!1}function XFt(n,r){if(n===r)return n;const c=Z7t(n)&&Z7t(r);if(c||KPe(n)&&KPe(r)){const u=c?n.length:Object.keys(n).length,d=c?r:Object.keys(r),p=d.length,m=c?[]:{};let x=0;for(let E=0;E"u")return!0;const c=r.prototype;return!(!J7t(c)||!c.hasOwnProperty("isPrototypeOf"))}function J7t(n){return Object.prototype.toString.call(n)==="[object Object]"}function IW(n){return Array.isArray(n)}function KFt(n){return new Promise(r=>{setTimeout(r,n)})}function eTt(n){KFt(0).then(n)}function mXn(){if(typeof AbortController=="function")return new AbortController}function YPe(n,r,c){return c.isDataEqual!=null&&c.isDataEqual(n,r)?n:typeof c.structuralSharing=="function"?c.structuralSharing(n,r):c.structuralSharing!==!1?XFt(n,r):r}class vXn extends vN{constructor(){super(),this.setup=r=>{if(!Dq&&window.addEventListener){const c=()=>r();return window.addEventListener("visibilitychange",c,!1),window.addEventListener("focus",c,!1),()=>{window.removeEventListener("visibilitychange",c),window.removeEventListener("focus",c)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}}setEventListener(r){var c;this.setup=r,(c=this.cleanup)==null||c.call(this),this.cleanup=r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(r){this.focused=r,r&&this.onFocus()}onFocus(){this.listeners.forEach(r=>{r()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const uue=new vXn;class yXn extends vN{constructor(){super(),this.setup=r=>{if(!Dq&&window.addEventListener){const c=()=>r();return window.addEventListener("online",c,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",c)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}}setEventListener(r){var c;this.setup=r,(c=this.cleanup)==null||c.call(this),this.cleanup=r(u=>{typeof u=="boolean"?this.setOnline(u):this.onOnline()})}setOnline(r){this.online=r,r&&this.onOnline()}onOnline(){this.listeners.forEach(r=>{r()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const lue=new yXn;function wXn(n){return Math.min(1e3*2**n,3e4)}function Sfe(n){return(n!=null?n:"online")==="online"?lue.isOnline():!0}class YFt{constructor(r){this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}}function Dae(n){return n instanceof YFt}function QFt(n){let r=!1,c=0,u=!1,d,p,m;const x=new Promise(($,L)=>{p=$,m=L}),E=$=>{u||(O(new YFt($)),n.abort==null||n.abort())},k=()=>{r=!0},T=()=>{r=!1},P=()=>!uue.isFocused()||n.networkMode!=="always"&&!lue.isOnline(),I=$=>{u||(u=!0,n.onSuccess==null||n.onSuccess($),d==null||d(),p($))},O=$=>{u||(u=!0,n.onError==null||n.onError($),d==null||d(),m($))},N=()=>new Promise($=>{d=L=>{if(u||!P())return $(L)},n.onPause==null||n.onPause()}).then(()=>{d=void 0,u||n.onContinue==null||n.onContinue()}),j=()=>{if(u)return;let $;try{$=n.fn()}catch(L){$=Promise.reject(L)}Promise.resolve($).then(I).catch(L=>{var B,F;if(u)return;const X=(B=n.retry)!=null?B:3,te=(F=n.retryDelay)!=null?F:wXn,Z=typeof te=="function"?te(c,L):te,H=X===!0||typeof X=="number"&&c{if(P())return N()}).then(()=>{r?O(L):j()})})};return Sfe(n.networkMode)?j():N().then(j),{promise:x,cancel:E,continue:()=>{d==null||d()},cancelRetry:k,continueRetry:T}}const ANe=console;function xXn(){let n=[],r=0,c=T=>{T()},u=T=>{T()};const d=T=>{let P;r++;try{P=T()}finally{r--,r||x()}return P},p=T=>{r?n.push(T):eTt(()=>{c(T)})},m=T=>(...P)=>{p(()=>{T(...P)})},x=()=>{const T=n;n=[],T.length&&eTt(()=>{u(()=>{T.forEach(P=>{c(P)})})})};return{batch:d,batchCalls:m,schedule:p,setNotifyFunction:T=>{c=T},setBatchNotifyFunction:T=>{u=T}}}const nf=xXn();class ZFt{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GPe(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(r){this.cacheTime=Math.max(this.cacheTime||0,r!=null?r:Dq?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class SXn extends ZFt{constructor(r){super(),this.abortSignalConsumed=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.logger=r.logger||ANe,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||EXn(this.options),this.state=this.initialState}get meta(){return this.options.meta}setOptions(r){this.options={...this.defaultOptions,...r},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(r,c){const u=YPe(this.state.data,r,this.options);return this.dispatch({data:u,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),u}setState(r,c){this.dispatch({type:"setState",state:r,setStateOptions:c})}cancel(r){var c;const u=this.promise;return(c=this.retryer)==null||c.cancel(r),u?u.then(cv).catch(cv):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(r=>r.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(r=>r.getCurrentResult().isStale)}isStaleByTime(r=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!WFt(this.state.dataUpdatedAt,r)}onFocus(){var r;const c=this.observers.find(u=>u.shouldFetchOnWindowFocus());c&&c.refetch({cancelRefetch:!1}),(r=this.retryer)==null||r.continue()}onOnline(){var r;const c=this.observers.find(u=>u.shouldFetchOnReconnect());c&&c.refetch({cancelRefetch:!1}),(r=this.retryer)==null||r.continue()}addObserver(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(c=>c!==r),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(r,c){var u,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&c!=null&&c.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var p;return(p=this.retryer)==null||p.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){const O=this.observers.find(N=>N.options.queryFn);O&&this.setOptions(O.options)}Array.isArray(this.options.queryKey);const m=mXn(),x={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},E=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>{if(m)return this.abortSignalConsumed=!0,m.signal}})};E(x);const k=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(x)):Promise.reject("Missing queryFn"),T={fetchOptions:c,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:k};if(E(T),(u=this.options.behavior)==null||u.onFetch(T),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=T.fetchOptions)==null?void 0:d.meta)){var P;this.dispatch({type:"fetch",meta:(P=T.fetchOptions)==null?void 0:P.meta})}const I=O=>{if(Dae(O)&&O.silent||this.dispatch({type:"error",error:O}),!Dae(O)){var N,j;(N=(j=this.cache.config).onError)==null||N.call(j,O,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=QFt({fn:T.fetchFn,abort:m==null?void 0:m.abort.bind(m),onSuccess:O=>{var N,j;if(typeof O>"u"){I(new Error("undefined"));return}this.setData(O),(N=(j=this.cache.config).onSuccess)==null||N.call(j,O,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:I,onFail:(O,N)=>{this.dispatch({type:"failed",failureCount:O,error:N})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:T.options.retry,retryDelay:T.options.retryDelay,networkMode:T.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(r){const c=u=>{var d,p;switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(d=r.meta)!=null?d:null,fetchStatus:Sfe(this.options.networkMode)?"fetching":"paused",...!u.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...u,data:r.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:(p=r.dataUpdatedAt)!=null?p:Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const m=r.error;return Dae(m)&&m.revert&&this.revertState?{...this.revertState}:{...u,error:m,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=c(this.state),nf.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate(r)}),this.cache.notify({query:this,type:"updated",action:r})})}}function EXn(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,c=typeof r<"u",u=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:c?u!=null?u:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"loading",fetchStatus:"idle"}}class kXn extends vN{constructor(r){super(),this.config=r||{},this.queries=[],this.queriesMap={}}build(r,c,u){var d;const p=c.queryKey,m=(d=c.queryHash)!=null?d:TNe(p,c);let x=this.get(m);return x||(x=new SXn({cache:this,logger:r.getLogger(),queryKey:p,queryHash:m,options:r.defaultQueryOptions(c),state:u,defaultOptions:r.getQueryDefaults(p)}),this.add(x)),x}add(r){this.queriesMap[r.queryHash]||(this.queriesMap[r.queryHash]=r,this.queries.push(r),this.notify({type:"added",query:r}))}remove(r){const c=this.queriesMap[r.queryHash];c&&(r.destroy(),this.queries=this.queries.filter(u=>u!==r),c===r&&delete this.queriesMap[r.queryHash],this.notify({type:"removed",query:r}))}clear(){nf.batch(()=>{this.queries.forEach(r=>{this.remove(r)})})}get(r){return this.queriesMap[r]}getAll(){return this.queries}find(r,c){const[u]=zE(r,c);return typeof u.exact>"u"&&(u.exact=!0),this.queries.find(d=>Y7t(u,d))}findAll(r,c){const[u]=zE(r,c);return Object.keys(u).length>0?this.queries.filter(d=>Y7t(u,d)):this.queries}notify(r){nf.batch(()=>{this.listeners.forEach(c=>{c(r)})})}onFocus(){nf.batch(()=>{this.queries.forEach(r=>{r.onFocus()})})}onOnline(){nf.batch(()=>{this.queries.forEach(r=>{r.onOnline()})})}}class CXn extends ZFt{constructor(r){super(),this.options={...r.defaultOptions,...r.options},this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.logger=r.logger||ANe,this.observers=[],this.state=r.state||JFt(),this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}get meta(){return this.options.meta}setState(r){this.dispatch({type:"setState",state:r})}addObserver(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){this.observers=this.observers.filter(c=>c!==r),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const r=()=>{var F;return this.retryer=QFt({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(X,te)=>{this.dispatch({type:"failed",failureCount:X,error:te})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(F=this.options.retry)!=null?F:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},c=this.state.status==="loading";try{var u,d,p,m,x,E;if(!c){var k,T,P,I;this.dispatch({type:"loading",variables:this.options.variables}),await((k=(T=this.mutationCache.config).onMutate)==null?void 0:k.call(T,this.state.variables,this));const X=await((P=(I=this.options).onMutate)==null?void 0:P.call(I,this.state.variables));X!==this.state.context&&this.dispatch({type:"loading",context:X,variables:this.state.variables})}const F=await r();return await((u=(d=this.mutationCache.config).onSuccess)==null?void 0:u.call(d,F,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSuccess)==null?void 0:p.call(m,F,this.state.variables,this.state.context)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,F,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:F}),F}catch(F){try{var O,N,j,$,L,B;throw await((O=(N=this.mutationCache.config).onError)==null?void 0:O.call(N,F,this.state.variables,this.state.context,this)),await((j=($=this.options).onError)==null?void 0:j.call($,F,this.state.variables,this.state.context)),await((L=(B=this.options).onSettled)==null?void 0:L.call(B,void 0,F,this.state.variables,this.state.context)),F}finally{this.dispatch({type:"error",error:F})}}}dispatch(r){const c=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"loading":return{...u,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Sfe(this.options.networkMode),status:"loading",variables:r.variables};case"success":return{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"};case"setState":return{...u,...r.state}}};this.state=c(this.state),nf.batch(()=>{this.observers.forEach(u=>{u.onMutationUpdate(r)}),this.mutationCache.notify({mutation:this,type:"updated",action:r})})}}function JFt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class IXn extends vN{constructor(r){super(),this.config=r||{},this.mutations=[],this.mutationId=0}build(r,c,u){const d=new CXn({mutationCache:this,logger:r.getLogger(),mutationId:++this.mutationId,options:r.defaultMutationOptions(c),state:u,defaultOptions:c.mutationKey?r.getMutationDefaults(c.mutationKey):void 0});return this.add(d),d}add(r){this.mutations.push(r),this.notify({type:"added",mutation:r})}remove(r){this.mutations=this.mutations.filter(c=>c!==r),this.notify({type:"removed",mutation:r})}clear(){nf.batch(()=>{this.mutations.forEach(r=>{this.remove(r)})})}getAll(){return this.mutations}find(r){return typeof r.exact>"u"&&(r.exact=!0),this.mutations.find(c=>Q7t(r,c))}findAll(r){return this.mutations.filter(c=>Q7t(r,c))}notify(r){nf.batch(()=>{this.listeners.forEach(c=>{c(r)})})}resumePausedMutations(){const r=this.mutations.filter(c=>c.state.isPaused);return nf.batch(()=>r.reduce((c,u)=>c.then(()=>u.continue().catch(cv)),Promise.resolve()))}}function QPe(){return{onFetch:n=>{n.fetchFn=()=>{var r,c,u,d,p,m;const x=(r=n.fetchOptions)==null||(c=r.meta)==null?void 0:c.refetchPage,E=(u=n.fetchOptions)==null||(d=u.meta)==null?void 0:d.fetchMore,k=E==null?void 0:E.pageParam,T=(E==null?void 0:E.direction)==="forward",P=(E==null?void 0:E.direction)==="backward",I=((p=n.state.data)==null?void 0:p.pages)||[],O=((m=n.state.data)==null?void 0:m.pageParams)||[];let N=O,j=!1;const $=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>{var H;if((H=n.signal)!=null&&H.aborted)j=!0;else{var ce;(ce=n.signal)==null||ce.addEventListener("abort",()=>{j=!0})}return n.signal}})},L=n.options.queryFn||(()=>Promise.reject("Missing queryFn")),B=(Z,H,ce,pe)=>(N=pe?[H,...N]:[...N,H],pe?[ce,...Z]:[...Z,ce]),F=(Z,H,ce,pe)=>{if(j)return Promise.reject("Cancelled");if(typeof ce>"u"&&!H&&Z.length)return Promise.resolve(Z);const fe={queryKey:n.queryKey,pageParam:ce,meta:n.options.meta};$(fe);const ve=L(fe);return Promise.resolve(ve).then(qe=>B(Z,ce,qe,pe))};let X;if(!I.length)X=F([]);else if(T){const Z=typeof k<"u",H=Z?k:ZPe(n.options,I);X=F(I,Z,H)}else if(P){const Z=typeof k<"u",H=Z?k:eBt(n.options,I);X=F(I,Z,H,!0)}else{N=[];const Z=typeof n.options.getNextPageParam>"u";X=(x&&I[0]?x(I[0],0,I):!0)?F([],Z,O[0]):Promise.resolve(B([],O[0],I[0]));for(let ce=1;ce{if(x&&I[ce]?x(I[ce],ce,I):!0){const ve=Z?O[ce]:ZPe(n.options,pe);return F(pe,Z,ve)}return Promise.resolve(B(pe,O[ce],I[ce]))})}return X.then(Z=>({pages:Z,pageParams:N}))}}}}function ZPe(n,r){return n.getNextPageParam==null?void 0:n.getNextPageParam(r[r.length-1],r)}function eBt(n,r){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(r[0],r)}function TXn(n,r){if(n.getNextPageParam&&Array.isArray(r)){const c=ZPe(n,r);return typeof c<"u"&&c!==null&&c!==!1}}function AXn(n,r){if(n.getPreviousPageParam&&Array.isArray(r)){const c=eBt(n,r);return typeof c<"u"&&c!==null&&c!==!1}}class PXn{constructor(r={}){this.queryCache=r.queryCache||new kXn,this.mutationCache=r.mutationCache||new IXn,this.logger=r.logger||ANe,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=uue.subscribe(()=>{uue.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=lue.subscribe(()=>{lue.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var r,c;(r=this.unsubscribeFocus)==null||r.call(this),(c=this.unsubscribeOnline)==null||c.call(this)}isFetching(r,c){const[u]=zE(r,c);return u.fetchStatus="fetching",this.queryCache.findAll(u).length}isMutating(r){return this.mutationCache.findAll({...r,fetching:!0}).length}getQueryData(r,c){var u;return(u=this.queryCache.find(r,c))==null?void 0:u.state.data}getQueriesData(r){return this.getQueryCache().findAll(r).map(({queryKey:c,state:u})=>{const d=u.data;return[c,d]})}setQueryData(r,c,u){const d=this.queryCache.find(r),p=d==null?void 0:d.state.data,m=gXn(c,p);if(typeof m>"u")return;const x=CH(r),E=this.defaultQueryOptions(x);return this.queryCache.build(this,E).setData(m,{...u,manual:!0})}setQueriesData(r,c,u){return nf.batch(()=>this.getQueryCache().findAll(r).map(({queryKey:d})=>[d,this.setQueryData(d,c,u)]))}getQueryState(r,c){var u;return(u=this.queryCache.find(r,c))==null?void 0:u.state}removeQueries(r,c){const[u]=zE(r,c),d=this.queryCache;nf.batch(()=>{d.findAll(u).forEach(p=>{d.remove(p)})})}resetQueries(r,c,u){const[d,p]=zE(r,c,u),m=this.queryCache,x={type:"active",...d};return nf.batch(()=>(m.findAll(d).forEach(E=>{E.reset()}),this.refetchQueries(x,p)))}cancelQueries(r,c,u){const[d,p={}]=zE(r,c,u);typeof p.revert>"u"&&(p.revert=!0);const m=nf.batch(()=>this.queryCache.findAll(d).map(x=>x.cancel(p)));return Promise.all(m).then(cv).catch(cv)}invalidateQueries(r,c,u){const[d,p]=zE(r,c,u);return nf.batch(()=>{var m,x;if(this.queryCache.findAll(d).forEach(k=>{k.invalidate()}),d.refetchType==="none")return Promise.resolve();const E={...d,type:(m=(x=d.refetchType)!=null?x:d.type)!=null?m:"active"};return this.refetchQueries(E,p)})}refetchQueries(r,c,u){const[d,p]=zE(r,c,u),m=nf.batch(()=>this.queryCache.findAll(d).filter(E=>!E.isDisabled()).map(E=>{var k;return E.fetch(void 0,{...p,cancelRefetch:(k=p==null?void 0:p.cancelRefetch)!=null?k:!0,meta:{refetchPage:d.refetchPage}})}));let x=Promise.all(m).then(cv);return p!=null&&p.throwOnError||(x=x.catch(cv)),x}fetchQuery(r,c,u){const d=CH(r,c,u),p=this.defaultQueryOptions(d);typeof p.retry>"u"&&(p.retry=!1);const m=this.queryCache.build(this,p);return m.isStaleByTime(p.staleTime)?m.fetch(p):Promise.resolve(m.state.data)}prefetchQuery(r,c,u){return this.fetchQuery(r,c,u).then(cv).catch(cv)}fetchInfiniteQuery(r,c,u){const d=CH(r,c,u);return d.behavior=QPe(),this.fetchQuery(d)}prefetchInfiniteQuery(r,c,u){return this.fetchInfiniteQuery(r,c,u).then(cv).catch(cv)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(r){this.defaultOptions=r}setQueryDefaults(r,c){const u=this.queryDefaults.find(d=>nk(r)===nk(d.queryKey));u?u.defaultOptions=c:this.queryDefaults.push({queryKey:r,defaultOptions:c})}getQueryDefaults(r){if(!r)return;const c=this.queryDefaults.find(u=>cue(r,u.queryKey));return c==null?void 0:c.defaultOptions}setMutationDefaults(r,c){const u=this.mutationDefaults.find(d=>nk(r)===nk(d.mutationKey));u?u.defaultOptions=c:this.mutationDefaults.push({mutationKey:r,defaultOptions:c})}getMutationDefaults(r){if(!r)return;const c=this.mutationDefaults.find(u=>cue(r,u.mutationKey));return c==null?void 0:c.defaultOptions}defaultQueryOptions(r){if(r!=null&&r._defaulted)return r;const c={...this.defaultOptions.queries,...this.getQueryDefaults(r==null?void 0:r.queryKey),...r,_defaulted:!0};return!c.queryHash&&c.queryKey&&(c.queryHash=TNe(c.queryKey,c)),typeof c.refetchOnReconnect>"u"&&(c.refetchOnReconnect=c.networkMode!=="always"),typeof c.useErrorBoundary>"u"&&(c.useErrorBoundary=!!c.suspense),c}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...this.defaultOptions.mutations,...this.getMutationDefaults(r==null?void 0:r.mutationKey),...r,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tBt extends vN{constructor(r,c){super(),this.client=r,this.options=c,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(c)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),tTt(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return JPe(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return JPe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(r,c){const u=this.options,d=this.currentQuery;if(this.options=this.client.defaultQueryOptions(r),XPe(u,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();const p=this.hasListeners();p&&nTt(this.currentQuery,d,this.options,u)&&this.executeFetch(),this.updateResult(c),p&&(this.currentQuery!==d||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();const m=this.computeRefetchInterval();p&&(this.currentQuery!==d||this.options.enabled!==u.enabled||m!==this.currentRefetchInterval)&&this.updateRefetchInterval(m)}getOptimisticResult(r){const c=this.client.getQueryCache().build(this.client,r);return this.createResult(c,r)}getCurrentResult(){return this.currentResult}trackResult(r){const c={};return Object.keys(r).forEach(u=>{Object.defineProperty(c,u,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(u),r[u])})}),c}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:r,...c}={}){return this.fetch({...c,meta:{refetchPage:r}})}fetchOptimistic(r){const c=this.client.defaultQueryOptions(r),u=this.client.getQueryCache().build(this.client,c);return u.isFetchingOptimistic=!0,u.fetch().then(()=>this.createResult(u,c))}fetch(r){var c;return this.executeFetch({...r,cancelRefetch:(c=r.cancelRefetch)!=null?c:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(r){this.updateQuery();let c=this.currentQuery.fetch(this.options,r);return r!=null&&r.throwOnError||(c=c.catch(cv)),c}updateStaleTimeout(){if(this.clearStaleTimeout(),Dq||this.currentResult.isStale||!GPe(this.options.staleTime))return;const c=WFt(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},c)}computeRefetchInterval(){var r;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(r=this.options.refetchInterval)!=null?r:!1}updateRefetchInterval(r){this.clearRefetchInterval(),this.currentRefetchInterval=r,!(Dq||this.options.enabled===!1||!GPe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||uue.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(r,c){const u=this.currentQuery,d=this.options,p=this.currentResult,m=this.currentResultState,x=this.currentResultOptions,E=r!==u,k=E?r.state:this.currentQueryInitialState,T=E?this.currentResult:this.previousQueryResult,{state:P}=r;let{dataUpdatedAt:I,error:O,errorUpdatedAt:N,fetchStatus:j,status:$}=P,L=!1,B=!1,F;if(c._optimisticResults){const ce=this.hasListeners(),pe=!ce&&tTt(r,c),fe=ce&&nTt(r,u,c,d);(pe||fe)&&(j=Sfe(r.options.networkMode)?"fetching":"paused",I||($="loading")),c._optimisticResults==="isRestoring"&&(j="idle")}if(c.keepPreviousData&&!P.dataUpdatedAt&&T!=null&&T.isSuccess&&$!=="error")F=T.data,I=T.dataUpdatedAt,$=T.status,L=!0;else if(c.select&&typeof P.data<"u")if(p&&P.data===(m==null?void 0:m.data)&&c.select===this.selectFn)F=this.selectResult;else try{this.selectFn=c.select,F=c.select(P.data),F=YPe(p==null?void 0:p.data,F,c),this.selectResult=F,this.selectError=null}catch(ce){this.selectError=ce}else F=P.data;if(typeof c.placeholderData<"u"&&typeof F>"u"&&$==="loading"){let ce;if(p!=null&&p.isPlaceholderData&&c.placeholderData===(x==null?void 0:x.placeholderData))ce=p.data;else if(ce=typeof c.placeholderData=="function"?c.placeholderData():c.placeholderData,c.select&&typeof ce<"u")try{ce=c.select(ce),this.selectError=null}catch(pe){this.selectError=pe}typeof ce<"u"&&($="success",F=YPe(p==null?void 0:p.data,ce,c),B=!0)}this.selectError&&(O=this.selectError,F=this.selectResult,N=Date.now(),$="error");const X=j==="fetching",te=$==="loading",Z=$==="error";return{status:$,fetchStatus:j,isLoading:te,isSuccess:$==="success",isError:Z,isInitialLoading:te&&X,data:F,dataUpdatedAt:I,error:O,errorUpdatedAt:N,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>k.dataUpdateCount||P.errorUpdateCount>k.errorUpdateCount,isFetching:X,isRefetching:X&&!te,isLoadingError:Z&&P.dataUpdatedAt===0,isPaused:j==="paused",isPlaceholderData:B,isPreviousData:L,isRefetchError:Z&&P.dataUpdatedAt!==0,isStale:PNe(r,c),refetch:this.refetch,remove:this.remove}}updateResult(r){const c=this.currentResult,u=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,XPe(u,c))return;this.currentResult=u;const d={cache:!0},p=()=>{if(!c)return!0;const{notifyOnChangeProps:m}=this.options;if(m==="all"||!m&&!this.trackedProps.size)return!0;const x=new Set(m!=null?m:this.trackedProps);return this.options.useErrorBoundary&&x.add("error"),Object.keys(this.currentResult).some(E=>{const k=E;return this.currentResult[k]!==c[k]&&x.has(k)})};(r==null?void 0:r.listeners)!==!1&&p()&&(d.listeners=!0),this.notify({...d,...r})}updateQuery(){const r=this.client.getQueryCache().build(this.client,this.options);if(r===this.currentQuery)return;const c=this.currentQuery;this.currentQuery=r,this.currentQueryInitialState=r.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(c==null||c.removeObserver(this),r.addObserver(this))}onQueryUpdate(r){const c={};r.type==="success"?c.onSuccess=!r.manual:r.type==="error"&&!Dae(r.error)&&(c.onError=!0),this.updateResult(c),this.hasListeners()&&this.updateTimers()}notify(r){nf.batch(()=>{if(r.onSuccess){var c,u,d,p;(c=(u=this.options).onSuccess)==null||c.call(u,this.currentResult.data),(d=(p=this.options).onSettled)==null||d.call(p,this.currentResult.data,null)}else if(r.onError){var m,x,E,k;(m=(x=this.options).onError)==null||m.call(x,this.currentResult.error),(E=(k=this.options).onSettled)==null||E.call(k,void 0,this.currentResult.error)}r.listeners&&this.listeners.forEach(T=>{T(this.currentResult)}),r.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function OXn(n,r){return r.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&r.retryOnMount===!1)}function tTt(n,r){return OXn(n,r)||n.state.dataUpdatedAt>0&&JPe(n,r,r.refetchOnMount)}function JPe(n,r,c){if(r.enabled!==!1){const u=typeof c=="function"?c(n):c;return u==="always"||u!==!1&&PNe(n,r)}return!1}function nTt(n,r,c,u){return c.enabled!==!1&&(n!==r||u.enabled===!1)&&(!c.suspense||n.state.status!=="error")&&PNe(n,c)}function PNe(n,r){return n.isStaleByTime(r.staleTime)}class _Xn extends tBt{constructor(r,c){super(r,c)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(r,c){super.setOptions({...r,behavior:QPe()},c)}getOptimisticResult(r){return r.behavior=QPe(),super.getOptimisticResult(r)}fetchNextPage({pageParam:r,...c}={}){return this.fetch({...c,meta:{fetchMore:{direction:"forward",pageParam:r}}})}fetchPreviousPage({pageParam:r,...c}={}){return this.fetch({...c,meta:{fetchMore:{direction:"backward",pageParam:r}}})}createResult(r,c){var u,d,p,m,x,E;const{state:k}=r,T=super.createResult(r,c),{isFetching:P,isRefetching:I}=T,O=P&&((u=k.fetchMeta)==null||(d=u.fetchMore)==null?void 0:d.direction)==="forward",N=P&&((p=k.fetchMeta)==null||(m=p.fetchMore)==null?void 0:m.direction)==="backward";return{...T,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:TXn(c,(x=k.data)==null?void 0:x.pages),hasPreviousPage:AXn(c,(E=k.data)==null?void 0:E.pages),isFetchingNextPage:O,isFetchingPreviousPage:N,isRefetching:I&&!O&&!N}}}class MXn extends vN{constructor(r,c){super(),this.client=r,this.setOptions(c),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const c=this.options;this.options=this.client.defaultMutationOptions(r),XPe(c,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){if(!this.listeners.length){var r;(r=this.currentMutation)==null||r.removeObserver(this)}}onMutationUpdate(r){this.updateResult();const c={listeners:!0};r.type==="success"?c.onSuccess=!0:r.type==="error"&&(c.onError=!0),this.notify(c)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(r,c){return this.mutateOptions=c,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof r<"u"?r:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const r=this.currentMutation?this.currentMutation.state:JFt(),c={...r,isLoading:r.status==="loading",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=c}notify(r){nf.batch(()=>{if(this.mutateOptions){if(r.onSuccess){var c,u,d,p;(c=(u=this.mutateOptions).onSuccess)==null||c.call(u,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(d=(p=this.mutateOptions).onSettled)==null||d.call(p,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(r.onError){var m,x,E,k;(m=(x=this.mutateOptions).onError)==null||m.call(x,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(E=(k=this.mutateOptions).onSettled)==null||E.call(k,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}r.listeners&&this.listeners.forEach(T=>{T(this.currentResult)})})}}function DXn(n){return{mutationKey:n.options.mutationKey,state:n.state}}function NXn(n){return{state:n.state,queryKey:n.queryKey,queryHash:n.queryHash}}function jXn(n){return n.state.isPaused}function RXn(n){return n.state.status==="success"}function $Xn(n,r={}){const c=[],u=[];if(r.dehydrateMutations!==!1){const d=r.shouldDehydrateMutation||jXn;n.getMutationCache().getAll().forEach(p=>{d(p)&&c.push(DXn(p))})}if(r.dehydrateQueries!==!1){const d=r.shouldDehydrateQuery||RXn;n.getQueryCache().getAll().forEach(p=>{d(p)&&u.push(NXn(p))})}return{mutations:c,queries:u}}function LXn(n,r,c){if(typeof r!="object"||r===null)return;const u=n.getMutationCache(),d=n.getQueryCache(),p=r.mutations||[],m=r.queries||[];p.forEach(x=>{var E;u.build(n,{...c==null||(E=c.defaultOptions)==null?void 0:E.mutations,mutationKey:x.mutationKey},x.state)}),m.forEach(x=>{var E;const k=d.get(x.queryHash);if(k){k.state.dataUpdatedAt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?WXn:qXn;rBt.useSyncExternalStore=RD.useSyncExternalStore!==void 0?RD.useSyncExternalStore:GXn;(function(n){n.exports=rBt})(nBt);const iBt=nBt.exports.useSyncExternalStore,rTt=U.exports.createContext(void 0),oBt=U.exports.createContext(!1);function sBt(n,r){return n||(r&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=rTt),window.ReactQueryClientContext):rTt)}const Efe=({context:n}={})=>{const r=U.exports.useContext(sBt(n,U.exports.useContext(oBt)));if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},XXn=({client:n,children:r,context:c,contextSharing:u=!1})=>{U.exports.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]);const d=sBt(c,u);return z(oBt.Provider,{value:!c&&u,children:z(d.Provider,{value:n,children:r})})},aBt=U.exports.createContext(!1),KXn=()=>U.exports.useContext(aBt);aBt.Provider;function YXn(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const QXn=U.exports.createContext(YXn()),ZXn=()=>U.exports.useContext(QXn);function cBt(n,r){return typeof n=="function"?n(...r):!!n}const JXn=(n,r)=>{(n.suspense||n.useErrorBoundary)&&(r.isReset()||(n.retryOnMount=!1))},eKn=n=>{U.exports.useEffect(()=>{n.clearReset()},[n])},tKn=({result:n,errorResetBoundary:r,useErrorBoundary:c,query:u})=>n.isError&&!r.isReset()&&!n.isFetching&&cBt(c,[n.error,u]),nKn=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},rKn=(n,r)=>n.isLoading&&n.isFetching&&!r,iKn=(n,r,c)=>(n==null?void 0:n.suspense)&&rKn(r,c),oKn=(n,r,c)=>r.fetchOptimistic(n).then(({data:u})=>{n.onSuccess==null||n.onSuccess(u),n.onSettled==null||n.onSettled(u,null)}).catch(u=>{c.clearReset(),n.onError==null||n.onError(u),n.onSettled==null||n.onSettled(void 0,u)});function uBt(n,r){const c=Efe({context:n.context}),u=KXn(),d=ZXn(),p=c.defaultQueryOptions(n);p._optimisticResults=u?"isRestoring":"optimistic",p.onError&&(p.onError=nf.batchCalls(p.onError)),p.onSuccess&&(p.onSuccess=nf.batchCalls(p.onSuccess)),p.onSettled&&(p.onSettled=nf.batchCalls(p.onSettled)),nKn(p),JXn(p,d),eKn(d);const[m]=U.exports.useState(()=>new r(c,p)),x=m.getOptimisticResult(p);if(iBt(U.exports.useCallback(E=>u?()=>{}:m.subscribe(nf.batchCalls(E)),[m,u]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),U.exports.useEffect(()=>{m.setOptions(p,{listeners:!1})},[p,m]),iKn(p,x,u))throw oKn(p,m,d);if(tKn({result:x,errorResetBoundary:d,useErrorBoundary:p.useErrorBoundary,query:m.getCurrentQuery()}))throw x.error;return p.notifyOnChangeProps?x:m.trackResult(x)}function sKn(n,r,c){const u=CH(n,r,c);return uBt(u,tBt)}function aKn(n,r={}){const c=Efe({context:r.context}),u=U.exports.useRef(r);u.current=r,U.exports.useMemo(()=>{n&&LXn(c,n,u.current)},[c,n])}const cKn=({children:n,options:r,state:c})=>(aKn(c,r),n);function uKn(n,r,c){const u=bXn(n,r,c),d=Efe({context:u.context}),[p]=U.exports.useState(()=>new MXn(d,u));U.exports.useEffect(()=>{p.setOptions(u)},[p,u]);const m=iBt(U.exports.useCallback(E=>p.subscribe(nf.batchCalls(E)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),x=U.exports.useCallback((E,k)=>{p.mutate(E,k).catch(lKn)},[p]);if(m.error&&cBt(p.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:x,mutateAsync:m.mutate}}function lKn(){}function fKn(n,r,c){const u=CH(n,r,c);return uBt(u,_Xn)}function j1(n,r){const c=Array.isArray(n)?n:[n],[u,d]=c;return[typeof u!="string"||u===""?[]:u.split("."),{...d&&{input:d},...r&&r!=="any"&&{type:r}}]}function eOe(n,r){return r===void 0?[n]:[n,r]}function lBt(n,r){return INe(c=>{const u=c.args,d=[n,...c.path],p=d.pop(),m=d.join(".");if(p==="useMutation")return r[p](m,...u);const[x,...E]=u,k=eOe(m,x);if(p.startsWith("useSuspense")){const T=E[0]||{},I=r[p==="useSuspenseQuery"?"useQuery":"useInfiniteQuery"](k,{...T,suspense:!0,enabled:!0});return[I.data,I]}return r[p](k,...E)})}const dKn=["client","ssrContext","ssrState","abortOnUnmount"],hKn=U.exports.createContext(null);function fBt(n){return xfe(r=>{const c=r;return c==="client"?qFt(n.client):dKn.includes(c)?n[c]:INe(({path:u,args:d})=>{const p=[r,...u],m=p.pop(),x=p.join("."),E=O=>{if(["setData","setInfiniteData"].includes(O)){const[L,B,...F]=d;return{queryKey:eOe(x,L),updater:B,rest:F}}const[N,...j]=d;return{queryKey:eOe(x,N),rest:j}},{queryKey:k,rest:T,updater:P}=E(m);return{fetch:()=>n.fetchQuery(k,...T),fetchInfinite:()=>n.fetchInfiniteQuery(k,...T),prefetch:()=>n.prefetchQuery(k,...T),prefetchInfinite:()=>n.prefetchInfiniteQuery(k,...T),invalidate:()=>n.invalidateQueries(k,...T),refetch:()=>n.refetchQueries(k,...T),cancel:()=>n.cancelQuery(k,...T),setData:()=>n.setQueryData(k,P,...T),setInfiniteData:()=>n.setInfiniteQueryData(k,P,...T),getData:()=>n.getQueryData(k),getInfiniteData:()=>n.getInfiniteQueryData(k)}[m]()})})}function V9(n,r){const[c,u]=n;return[c,u,r==null?void 0:r.trpc]}function k7e(n){const r=U.exports.useRef(n);return r.current.path=n.path,r.current}function dBt(n){var O,N,j,$;const r=(j=(N=(O=n==null?void 0:n.unstable_overrides)==null?void 0:O.useMutation)==null?void 0:N.onSuccess)!=null?j:L=>L.originalFn(),c=($=n==null?void 0:n.context)!=null?$:hKn,u=n==null?void 0:n.reactQueryContext,d=L=>HFt(L),p=L=>{var ce;const{abortOnUnmount:B=!1,client:F,queryClient:X,ssrContext:te}=L,[Z,H]=U.exports.useState((ce=L.ssrState)!=null?ce:!1);return U.exports.useEffect(()=>{H(pe=>pe?"mounted":!1)},[]),z(c.Provider,{value:{abortOnUnmount:B,queryClient:X,client:F,ssrContext:te||null,ssrState:Z,fetchQuery:U.exports.useCallback((pe,fe)=>X.fetchQuery(j1(pe,"query"),()=>F.query(...V9(pe,fe)),fe),[F,X]),fetchInfiniteQuery:U.exports.useCallback((pe,fe)=>X.fetchInfiniteQuery(j1(pe,"infinite"),({pageParam:ve})=>{const[Ge,qe]=pe,Je={...qe,cursor:ve};return F.query(...V9([Ge,Je],fe))},fe),[F,X]),prefetchQuery:U.exports.useCallback((pe,fe)=>X.prefetchQuery(j1(pe,"query"),()=>F.query(...V9(pe,fe)),fe),[F,X]),prefetchInfiniteQuery:U.exports.useCallback((pe,fe)=>X.prefetchInfiniteQuery(j1(pe,"infinite"),({pageParam:ve})=>{const[Ge,qe]=pe,Je={...qe,cursor:ve};return F.query(...V9([Ge,Je],fe))},fe),[F,X]),invalidateQueries:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.invalidateQueries(j1(fe,"any"),...ve)},[X]),refetchQueries:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.refetchQueries(j1(fe,"any"),...ve)},[X]),cancelQuery:U.exports.useCallback(pe=>X.cancelQueries(j1(pe,"any")),[X]),setQueryData:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.setQueryData(j1(fe,"query"),...ve)},[X]),getQueryData:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.getQueryData(j1(fe,"query"),...ve)},[X]),setInfiniteQueryData:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.setQueryData(j1(fe,"infinite"),...ve)},[X]),getInfiniteQueryData:U.exports.useCallback((...pe)=>{const[fe,...ve]=pe;return X.getQueryData(j1(fe,"infinite"),...ve)},[X])},children:L.children})};function m(){return lt.useContext(c)}function x(L,B,F){var Z;const{queryClient:X,ssrState:te}=m();return te&&te!=="mounted"&&((Z=X.getQueryCache().find(j1(L,B)))==null?void 0:Z.state.status)==="error"?{retryOnMount:!1,...F}:F}function E(L,B){var ve,Ge,qe;const{abortOnUnmount:F,client:X,ssrState:te,queryClient:Z,prefetchQuery:H}=m();typeof window>"u"&&te==="prepass"&&((ve=B==null?void 0:B.trpc)==null?void 0:ve.ssr)!==!1&&(B==null?void 0:B.enabled)!==!1&&!Z.getQueryCache().find(j1(L,"query"))&&H(L,B);const ce=x(L,"query",B),pe=(qe=(Ge=B==null?void 0:B.trpc)==null?void 0:Ge.abortOnUnmount)!=null?qe:F,fe=sKn(j1(L,"query"),Je=>{const et={...ce,trpc:{...ce==null?void 0:ce.trpc,...pe?{signal:Je.signal}:{}}};return X.query(...V9(L,et))},{context:u,...ce});return fe.trpc=k7e({path:L[0]}),fe}function k(L,B){const{client:F}=m(),X=Efe({context:u}),te=uKn(Z=>{const H=Array.isArray(L)?L[0]:L;return F.mutation(...V9([H,Z],B))},{context:u,...B,onSuccess(...Z){return r({originalFn:()=>{var ce;return(ce=B==null?void 0:B.onSuccess)==null?void 0:ce.call(B,...Z)},queryClient:X})}});return te.trpc=k7e({path:Array.isArray(L)?L[0]:L}),te}function T(L,B){var Z;const F=(Z=B==null?void 0:B.enabled)!=null?Z:!0,X=nk(L),{client:te}=m();return U.exports.useEffect(()=>{if(!F)return;const[H,ce]=L;let pe=!1;const fe=te.subscription(H,ce!=null?ce:void 0,{onStarted:()=>{var ve;pe||(ve=B.onStarted)==null||ve.call(B)},onData:ve=>{pe||B.onData(ve)},onError:ve=>{var Ge;pe||(Ge=B.onError)==null||Ge.call(B,ve)}});return()=>{pe=!0,fe.unsubscribe()}},[X,F])}function P(L,B){var qe,Je,et;const[F,X]=L,{client:te,ssrState:Z,prefetchInfiniteQuery:H,queryClient:ce,abortOnUnmount:pe}=m();typeof window>"u"&&Z==="prepass"&&((qe=B==null?void 0:B.trpc)==null?void 0:qe.ssr)!==!1&&(B==null?void 0:B.enabled)!==!1&&!ce.getQueryCache().find(j1(L,"infinite"))&&H(L,B);const fe=x(L,"infinite",B),ve=(et=(Je=B==null?void 0:B.trpc)==null?void 0:Je.abortOnUnmount)!=null?et:pe,Ge=fKn(j1(L,"infinite"),jt=>{const Me={...fe,trpc:{...fe==null?void 0:fe.trpc,...ve?{signal:jt.signal}:{}}},Ve={...X!=null?X:{},cursor:jt.pageParam};return te.query(...V9([F,Ve],Me))},{context:u,...fe});return Ge.trpc=k7e({path:F}),Ge}return{Provider:p,createClient:d,useContext:m,useQuery:E,useMutation:k,useSubscription:T,useDehydratedState:(L,B)=>U.exports.useMemo(()=>B&&L.runtime.transformer.deserialize(B),[B,L]),useInfiniteQuery:P}}function pKn(n){return xfe(r=>r==="useContext"?()=>{const c=n.useContext();return U.exports.useMemo(()=>fBt(c),[c])}:r in n?n[r]:lBt(r,n))}function gKn(n){const r=dBt(n),c=pKn(r);return{...r,proxy:c}}const iTt=n=>{var r;return(r=n.queryClient)!=null?r:new PXn(n.queryClientConfig)};function Ak(){return Ak=Object.assign||function(n){for(var r=1;r0){for(var x=Ak({},p.state),E=0,k=m.length;E0;){var E=n[n.length-1].shift();if(E!==void 0){var k=PKn(E,d,p);n.push(k),r.push(CBt()),c.push(IBt()),u.push(Pk())}else n.pop(),vKn(r.pop()),yKn(c.pop()),h7(u.pop());if(RBt&&Date.now()-x>5)return!0}return!1}catch(P){var T=Pk();if(!T)throw P;return T.error=P,d.unshift(T),!1}finally{iD.current=m}},LBt=function(n,r,c,u){return{contextMap:kfe(),contextStore:Cfe(),errorFrame:Pk(),thenable:null,kind:"frame.yield",traversalChildren:n,traversalMap:r,traversalStore:c,traversalErrorFrame:u}},FBt=function(n,r,c){var u=[n],d=[CBt()],p=[IBt()],m=[Pk()];$Bt(u,d,p,m,r,c)&&r.unshift(LBt(u,d,p,m))},cTt=function(n,r,c){if(n.kind==="frame.yield")$M(null),BU(n.contextMap),VU(n.contextStore),h7(n.errorFrame),$Bt(n.traversalChildren,n.traversalMap,n.traversalStore,n.traversalErrorFrame,r,c)&&r.unshift(LBt(n.traversalChildren,n.traversalMap,n.traversalStore,n.traversalErrorFrame));else{var u=iD.current,d=null;iD.current=_Bt;try{n.kind==="frame.class"?d=function(m,x){if($M(null),BU(x.contextMap),VU(x.contextStore),h7(x.errorFrame),x.error){if(++x.instance.updater._thrown>=25)return null;x.instance._isMounted=!0,typeof x.instance.componentDidCatch=="function"&&x.instance.componentDidCatch(x.error),typeof x.type.getDerivedStateFromError=="function"&&x.instance.updater.enqueueSetState(x.instance,x.type.getDerivedStateFromError(x.error))}return jBt(x.type,x.instance,m)}(r,n):n.kind==="frame.hooks"?d=function(m,x){return PBt(x.hook),$M(x.id),BU(x.contextMap),VU(x.contextStore),h7(x.errorFrame),NBt(x.type,x.props,m)}(r,n):n.kind==="frame.lazy"&&(d=function(m,x){return $M(null),BU(x.contextMap),VU(x.contextStore),h7(x.errorFrame),MBt(x.type,x.props)}(0,n))}catch(m){var p=Pk();if(!p)throw m;p.error=m,r.unshift(p),d=null}finally{iD.current=u}FBt(Tx(d),r,c)}};function OKn(n,r){setImmediate(n)}var BBt=function(n,r,c){var u=n.shift();return u?(RBt&&u.kind==="frame.yield"&&(u.thenable=new Promise(OKn)),Promise.resolve(u.thenable).then(function(){return function(d){_Ne.current=d}(c),cTt(u,n,r),BBt(n,r,c)},function(d){if(!u.errorFrame)throw d;u.errorFrame.error=d,cTt(u.errorFrame,n,r)})):Promise.resolve()},_Kn=function(){},MKn=function(n,r){r||(r=_Kn);var c=[],u=_Ne.current={uniqueID:0};BU({}),VU(new Map),h7(null);try{FBt(Tx(n),c,r)}catch(d){return Promise.reject(d)}return BBt(c,r,u)};function uTt(n){const r=n.state.error;if(r instanceof Error&&r.name==="TRPCClientError"){const c={message:r.message,data:r.data,shape:r.shape};return{...n,state:{...n.state,error:c}}}return n}function DKn(n){const{config:r}=n;return c=>{const u=gKn({unstable_overrides:n.unstable_overrides}),d=m=>{var O;const[x]=U.exports.useState(()=>{if(m.trpc)return m.trpc;const N=r({}),j=iTt(N),$=u.createClient(N);return{abortOnUnmount:N.abortOnUnmount,queryClient:j,trpcClient:$,ssrState:n.ssr?"mounting":!1,ssrContext:null}}),{queryClient:E,trpcClient:k,ssrState:T,ssrContext:P}=x,I=u.useDehydratedState(k,m.pageProps.trpcState);return lt.createElement(u.Provider,{abortOnUnmount:(O=x.abortOnUnmount)!=null?O:!1,client:k,queryClient:E,ssrState:T,ssrContext:P},z(XXn,{client:E,children:z(cKn,{state:I,children:z(c,{...Object.assign({},m)})})}))};(c.getInitialProps||n.ssr)&&(d.getInitialProps=async m=>{var te,Z,H;const x=m.AppTree,E=!!m.Component,k=E?m.ctx:m;let T={};if(c.getInitialProps){const ce=await c.getInitialProps(m);T={...E?(te=ce.pageProps)!=null?te:{}:ce,...T}}const P=ce=>E?{pageProps:ce}:ce;if(typeof window<"u"||!n.ssr)return P(T);const I=r({ctx:k}),O=HFt(I),N=iTt(I),$={pageProps:T,trpc:{config:I,trpcClient:O,queryClient:N,ssrState:"prepass",ssrContext:k}};for(;await MKn(U.exports.createElement(x,$)),!!N.isFetching();)await new Promise(ce=>{const pe=N.getQueryCache().subscribe(fe=>{(fe==null?void 0:fe.query.getObserversCount())===0&&(ce(),pe())})});const L=$Xn(N,{shouldDehydrateQuery(){return!0}}),B={...L,queries:L.queries.map(uTt),mutations:L.mutations.map(uTt)};T.trpcState=O.runtime.transformer.serialize(B);const F=P(T),X=((Z=n.responseMeta)==null?void 0:Z.call(n,{ctx:k,clientErrors:[...L.queries,...L.mutations].map(ce=>ce.state.error).flatMap(ce=>ce instanceof Error&&ce.name==="TRPCClientError"?[ce]:[])}))||{};for(const[ce,pe]of Object.entries(X.headers||{}))typeof pe=="string"&&((H=k.res)==null||H.setHeader(ce,pe));return X.status&&k.res&&(k.res.statusCode=X.status),F});const p=c.displayName||c.name||"Component";return d.displayName=`withTRPC(${p})`,d}}function NKn(n){const r=dBt({unstable_overrides:n.unstable_overrides}),c=DKn(n);return xfe(u=>u==="useContext"?()=>{const d=r.useContext();return U.exports.useMemo(()=>fBt(d),[d])}:u==="withTRPC"?c:lBt(u,r))}var jKn=function(){function n(){this.keyToValue=new Map,this.valueToKey=new Map}return n.prototype.set=function(r,c){this.keyToValue.set(r,c),this.valueToKey.set(c,r)},n.prototype.getByKey=function(r){return this.keyToValue.get(r)},n.prototype.getByValue=function(r){return this.valueToKey.get(r)},n.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},n}(),VBt=function(){function n(r){this.generateIdentifier=r,this.kv=new jKn}return n.prototype.register=function(r,c){this.kv.getByValue(r)||(c||(c=this.generateIdentifier(r)),this.kv.set(c,r))},n.prototype.clear=function(){this.kv.clear()},n.prototype.getIdentifier=function(r){return this.kv.getByValue(r)},n.prototype.getValue=function(r){return this.kv.getByKey(r)},n}(),RKn=globalThis&&globalThis.__extends||function(){var n=function(r,c){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(u[p]=d[p])},n(r,c)};return function(r,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");n(r,c);function u(){this.constructor=r}r.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),$Kn=function(n){RKn(r,n);function r(){var c=n.call(this,function(u){return u.name})||this;return c.classToAllowedProps=new Map,c}return r.prototype.register=function(c,u){typeof u=="object"?(u.allowProps&&this.classToAllowedProps.set(c,u.allowProps),n.prototype.register.call(this,c,u.identifier)):n.prototype.register.call(this,c,u)},r.prototype.getAllowedProps=function(c){return this.classToAllowedProps.get(c)},r}(VBt),LKn=globalThis&&globalThis.__read||function(n,r){var c=typeof Symbol=="function"&&n[Symbol.iterator];if(!c)return n;var u=c.call(n),d,p=[],m;try{for(;(r===void 0||r-- >0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p};function FKn(n){if("values"in Object)return Object.values(n);var r=[];for(var c in n)n.hasOwnProperty(c)&&r.push(n[c]);return r}function BKn(n,r){var c=FKn(n);if("find"in c)return c.find(r);for(var u=c,d=0;d"u"},UKn=function(n){return n===null},jq=function(n){return typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype},nOe=function(n){return jq(n)&&Object.keys(n).length===0},Ok=function(n){return Array.isArray(n)},HKn=function(n){return typeof n=="string"},qKn=function(n){return typeof n=="number"&&!isNaN(n)},WKn=function(n){return typeof n=="boolean"},GKn=function(n){return n instanceof RegExp},pue=function(n){return n instanceof Map},gue=function(n){return n instanceof Set},UBt=function(n){return zKn(n)==="Symbol"},XKn=function(n){return n instanceof Date&&!isNaN(n.valueOf())},KKn=function(n){return n instanceof Error},fTt=function(n){return typeof n=="number"&&isNaN(n)},dTt=function(n){return WKn(n)||UKn(n)||zBt(n)||qKn(n)||HKn(n)||UBt(n)},YKn=function(n){return typeof n=="bigint"},QKn=function(n){return n===1/0||n===-1/0},ZKn=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},JKn=function(n){return n instanceof URL},HBt=function(n){return n.replace(/\./g,"\\.")},$7e=function(n){return n.map(String).map(HBt).join(".")},TH=function(n){for(var r=[],c="",u=0;u0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},oOe=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;c0?"Infinity":"-Infinity"},Number),Ex(function(n){return n===0&&1/n===-1/0},"number",function(){return"-0"},Number),Ex(JKn,"URL",function(n){return n.toString()},function(n){return new URL(n)})];function Tfe(n,r,c,u){return{isApplicable:n,annotation:r,transform:c,untransform:u}}var WBt=Tfe(function(n,r){if(UBt(n)){var c=!!r.symbolRegistry.getIdentifier(n);return c}return!1},function(n,r){var c=r.symbolRegistry.getIdentifier(n);return["symbol",c]},function(n){return n.description},function(n,r,c){var u=c.symbolRegistry.getValue(r[1]);if(!u)throw new Error("Trying to deserialize unknown symbol");return u}),eYn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(n,r){return n[r.name]=r,n},{}),GBt=Tfe(ZKn,function(n){return["typed-array",n.constructor.name]},function(n){return oOe([],iOe(n))},function(n,r){var c=eYn[r[1]];if(!c)throw new Error("Trying to deserialize unknown typed array");return new c(n)});function XBt(n,r){if(n!=null&&n.constructor){var c=!!r.classRegistry.getIdentifier(n.constructor);return c}return!1}var KBt=Tfe(XBt,function(n,r){var c=r.classRegistry.getIdentifier(n.constructor);return["class",c]},function(n,r){var c=r.classRegistry.getAllowedProps(n.constructor);if(!c)return rOe({},n);var u={};return c.forEach(function(d){u[d]=n[d]}),u},function(n,r,c){var u=c.classRegistry.getValue(r[1]);if(!u)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(u.prototype),n)}),YBt=Tfe(function(n,r){return!!r.customTransformerRegistry.findApplicable(n)},function(n,r){var c=r.customTransformerRegistry.findApplicable(n);return["custom",c.name]},function(n,r){var c=r.customTransformerRegistry.findApplicable(n);return c.serialize(n)},function(n,r,c){var u=c.customTransformerRegistry.findByName(r[1]);if(!u)throw new Error("Trying to deserialize unknown custom value");return u.deserialize(n)}),tYn=[KBt,WBt,YBt,GBt],hTt=function(n,r){var c=lTt(tYn,function(d){return d.isApplicable(n,r)});if(c)return{value:c.transform(n,r),type:c.annotation(n,r)};var u=lTt(qBt,function(d){return d.isApplicable(n,r)});if(u)return{value:u.transform(n,r),type:u.annotation}},QBt={};qBt.forEach(function(n){QBt[n.annotation]=n});var nYn=function(n,r,c){if(Ok(r))switch(r[0]){case"symbol":return WBt.untransform(n,r,c);case"class":return KBt.untransform(n,r,c);case"custom":return YBt.untransform(n,r,c);case"typed-array":return GBt.untransform(n,r,c);default:throw new Error("Unknown transformation: "+r)}else{var u=QBt[r];if(!u)throw new Error("Unknown transformation: "+r);return u.untransform(n,c)}},qse=function(n,r){for(var c=n.keys();r>0;)c.next(),r--;return c.next().value};function ZBt(n){if(Nae(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Nae(n,"prototype"))throw new Error("prototype is not allowed as a property");if(Nae(n,"constructor"))throw new Error("constructor is not allowed as a property")}var rYn=function(n,r){return ZBt(r),r.forEach(function(c){n=n[c]}),n},sOe=function(n,r,c){if(ZBt(r),r.length===0)return c(n);for(var u=n,d=0;d0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},ik=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;ccOe(d,r));if(!uYn(n))return n;const c=Object.getOwnPropertyNames(n),u=Object.getOwnPropertySymbols(n);return[...c,...u].reduce((d,p)=>{if(pTt(r.props)&&!r.props.includes(p))return d;const m=n[p],x=cOe(m,r);return lYn(d,p,x,n,r.nonenumerable),d},{})}var Z9=globalThis&&globalThis.__assign||function(){return Z9=Object.assign||function(n){for(var r,c=1,u=arguments.length;c0)&&!(d=u.next()).done;)p.push(d.value)}catch(x){m={error:x}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(m)throw m.error}}return p},dYn=globalThis&&globalThis.__spreadArray||function(n,r){for(var c=0,u=r.length,d=n.length;cn.error===void 0},actions:{setError:Ji({error:(n,r)=>r.error})}}),pYn=MDe(hYn).start(),gYn=()=>({next:n,op:r})=>wfe(c=>n(r).subscribe({next(d){c.next(d)},error(d){pYn.send({type:"SET_ERROR",error:d}),c.error(d)},complete(){c.complete()}})),gTt=pXn({transformer:yN,links:[CNe({url:`${R$t()}/registry/api/trpc`})]});NKn({config({ctx:n}){return{transformer:yN,links:[gYn,dXn({enabled:r=>r.direction==="down"&&r.result instanceof Error}),CNe({url:`${R$t()}/registry/api/trpc`})],headers(){if(n!=null&&n.req){const{connection:r,...c}=n.req.headers;return{...c,"x-ssr":"1"}}return{}}}},ssr:!0,responseMeta(n){var u,d;const r=n.ctx;if(r.status)return{status:r.status};const c=n.clientErrors[0];return c?{status:(d=(u=c.data)==null?void 0:u.httpStatus)!=null?d:500}:{}}});const bYn=async({event:n,afterUpdate:r})=>{let c;switch(n.type){case"Update":c=`/registry/api/algolia/update-index?${n.machineId?`machineId=${n.machineId}`:""}`;break;case"Delete":c=`/registry/api/algolia/update-index?deleteMachineId=${n.machineId}`;break}r&&r.refreshAfterTimeoutInMs?(await fetch(c),await Zzn(r.refreshAfterTimeoutInMs),r.refresh()):fetch(c).then(()=>{r&&r.refresh()})},mYn=rfe()?window.localStorage:ife(),vYn="digraph_cache",yYn=n=>{mYn.setItem(vYn,JSON.stringify({...dN.toJSON(n),layout:Zce(n)}))},wYn=sg({id:"importMachine",initial:"waiting",predictableActionArguments:!0,tsTypes:{},schema:{context:{jsonCode:"",error:null},events:{}},states:{waiting:{on:{edit:{actions:["clearError","saveCode"]},import:[{target:"updating",cond:"isWebMode"},{target:"updatingInPlaygournd",cond:"isPlaygoundMode"},{actions:["unhandledMode"]}]}},updatingInPlaygournd:{invoke:{id:"getDigraphActorByJSONConfig",src:"getDigraphActorByJSONConfig",onDone:{target:"updateDone",actions:["setDigraphCache"]},onError:"updateFailed"}},updating:{invoke:{id:"updateMachineByJSONConfig",src:"updateMachineByJSONConfig",onDone:{target:"updateDone",actions:["updateMachineInAlgolia"]},onError:"updateFailed"}},updateFailed:{entry:"saveError",always:"waiting"},updateDone:{entry:["restartDigraph","closeModal"],always:"waiting"}}}),xYn=({isOpen:n,onClose:r})=>{const{selectedMachine:c,userMode:u}=U.exports.useContext(CW),d=Zc(),p=ya(E=>E.root.data.key),[m,x]=Nw(wYn,{guards:{isWebMode:()=>u==="web",isPlaygoundMode:()=>u==="web-playground"},actions:{clearError:Ji({error:E=>null}),saveError:Ji({error:(E,k)=>{var T,P;return(P=(T=k.data)==null?void 0:T.message.replace(/TRPCError: /,""))!=null?P:"Invalid JSON definition provided."}}),saveCode:Ji({jsonCode:(E,k)=>k.jsonCode}),updateMachineInAlgolia:(E,k)=>{bYn({event:{type:"Update",machineId:k.data.machineId}})},setDigraphCache:()=>{yYn(d.getSnapshot())},restartDigraph:(E,k)=>{d.send({type:"restart",config:k.data.definition,autolayout:!0})},closeModal:()=>{r()},unhandledMode:()=>{throw Error("Unhandled userMode in import from code")}},services:{getDigraphActorByJSONConfig:({jsonCode:E})=>gTt.machines.getDigraphConfig.query({definition:E}).then(k=>({definition:k[0]})),updateMachineByJSONConfig:({jsonCode:E},{machineId:k})=>gTt.machines.updateByCode.mutate({id:k,definition:E}).then(T=>{const P=T[0];return{updatedMachine:P,machineId:k,definition:P.definition}})}});return z(_$t,{title:"Import Code",onClose:r,isOpen:n,size:"2xl",blockScrollOnMount:!1,children:We(yk,{alignItems:"flex-start",gap:"4",children:[We(MS,{as:"h2",fontSize:"md",fontWeight:"normal",color:"warning.500",flex:"1",textAlign:"start",children:["Warning: importing from JSON will overwrite all data in"," ",We("strong",{children:['"',p,'"']})]}),m.context.error&&z(Fi,{color:"red.500",children:m.context.error.toString()}),z("form",{onSubmit:E=>{E.preventDefault();const k=c.id;x({type:"import",machineId:k})},style:{width:"100%"},children:We(yk,{gap:"4",alignItems:"flex-start",children:[z(Zi.Textarea,{minHeight:"50vh",placeholder:"createMachine(...)",onChange:E=>{x({type:"edit",jsonCode:E.target.value})},isRequired:!0}),z(Uc,{type:"submit",alignSelf:"center",isDisabled:m.matches("updating"),children:"Import"})]})})]})})},yU=n=>{const{getColorModeValue:r}=ei(),c={borderBottom:"1px",borderColor:r("gray.50","gray.700")};return We(Si,{children:[z(Tn,{display:"flex",alignItems:"center",p:"1",color:r("gray.600","gray.200"),...c,children:n.shortcut}),z(Tn,{display:"flex",alignItems:"center",...c,children:z(Fi,{children:n.title})})]})},SYn=({isOpen:n=!1,onClose:r})=>z(_$t,{title:"Keyboard Shortcuts",isOpen:n,onClose:r,bodyPadding:"none",children:We(Tn,{px:"8",pt:"0",children:[We(Tn,{display:"grid",gridTemplateColumns:"auto auto",gridAutoRows:"1fr",children:[z(yU,{shortcut:z(hh,{children:"+"}),title:"Zoom In"}),z(yU,{shortcut:z(hh,{children:"-"}),title:"Zoom Out"}),z(yU,{shortcut:We(Si,{children:[z(hh,{children:"Shift"})," + ",z(hh,{children:"1"})]}),title:"Fit to Content"}),z(yU,{shortcut:We(Si,{children:[z(hh,{children:"Shift"})," + ",z(hh,{children:"0"})]}),title:"Zoom to 100%"}),z(yU,{shortcut:We(Tn,{children:[z(hh,{children:"\u2191"}),z(hh,{children:"\u2193"}),z(hh,{children:"\u2190"}),z(hh,{children:"\u2192"})]}),title:We(Si,{children:["Pan the view. Use ",z(hh,{children:"Shift"})," for a larger pan."]})})]}),z(Tn,{display:"flex",py:"6",children:z(Uc,{"aria-label":"close keyboard shortcuts modal",variant:"gray",onClick:r,children:"Close"})})]})});function Rq(n){var r,c;switch(n.type){case"xstate.raise":return We(Si,{children:["raise ",z("strong",{children:n.event})]});case"xstate.send":{if(!n.event)return z(Si,{children:"send dynamic event"});if((c=(r=n.event)==null?void 0:r.type)!=null&&c.startsWith("xstate.after"))return We(Si,{children:["send ",Xce(n.delay)," delay"]});const u=n.event.type;return We(Si,{children:["send ",z("strong",{children:u||"??"})]})}case"xstate.log":return We(Si,{children:["log",n.label?` (${n.label})`:" "," ",n.value?`"${n.value}"`:""]});case"xstate.assign":return typeof n.assignment=="object"&&Object.keys(n.assignment).length>0?We(Si,{children:["assign to"," ",Object.keys(n.assignment).map((u,d,p)=>We(U.exports.Fragment,{children:[z("code",{children:u}),d===p.length-1?"":", "]},u))]}):z(Si,{children:"assign"});case"xstate.choose":return z(Si,{children:"choose"});case"xstate.pure":return z(Si,{children:"pure"})}if(n.type==="xstate.cancel"){const u=n.sendId.match(/^xstate\.after\((.*)\)#.*$/);if(!u)return`cancel ${n.sendId}`;const[,d]=u;return`cancel ${Xce(d)} delay`}return n.type.startsWith("function () {")?z("em",{children:"anonymous"}):n.type}const EYn=({action:n,isActiveInSimulation:r})=>{const{getColorModeValue:c}=ei();return We(Tn,{display:"flex",flexDirection:"row",alignItems:"flex-start",style:{gap:".5rem"},px:"2",children:[z("span",{children:z(sVn,{h:"5",w:"5",color:r?"whiteAlpha.700":c("gray.600","gray.400")})}),z(Tn,{minWidth:0,children:z(Fi,{width:"max-content",maxWidth:"xs",fontSize:"xs",textStyle:"medium",color:r?"whiteAlpha.700":c("gray.600","gray.400"),children:Bx(n)?"Inline":Rq(n)})})]})},tVt=n=>{switch(n.type){case"normal":return ZBn;case"final":return nVn;case"history":return n.history==="deep"?tVn:eVn;case"parallel":return JBn}},kYn=(n,r,c)=>n===r?iVn:c.type==="always"?oVn:rVn,$q=lN({expanded:new Set},{events:{simulationUpdated:n=>({nodeIds:n}),toggle:(n,r)=>({id:n,clearExpanded:r}),select:(n,r,c)=>({id:n,mode:r,selectionType:c})}}),CYn=$q.createMachine({on:{toggle:{actions:Ji({expanded:(n,r)=>(r.clearExpanded===!0&&n.expanded.clear(),n.expanded.has(r.id)?n.expanded.delete(r.id):n.expanded.add(r.id),n.expanded)})},select:{actions:"sendToGraphActor"},simulationUpdated:{actions:Ji({expanded:(n,r)=>new Set(r.nodeIds)})}}}),DNe=lt.createContext({}),zU=n=>{const{getColorModeValue:r}=ei();return We(nl,{paddingLeft:`calc(1.5rem * ${n.depth})`,alignItems:"stretch",border:"2px solid transparent",borderColor:n.selected?r("blue.400","blue.400"):r("transparent","transparent"),spacing:"none",children:[n.isToggleable&&z(Ev,{"aria-label":`Toggle ${n.label}`,onClick:n.onToggle,size:"xs",rounded:"none",bg:r("transparent","transparent"),_active:{bg:r("white","gray.700")},height:"auto",children:z(wVn,{transition:"transform 0.2s",transform:n.isExpanded?"rotate(0deg)":"rotate(-90deg)",color:r("gray.500","gray.400"),height:"2.5"})}),We(Y0,{variant:"unstyled",onClick:n.onClick,isDisabled:!n.onClick,rounded:"none",marginLeft:n.isToggleable?"":"6",color:r(n.isActiveInSimulationMode?"primary.600":"gray.800","gray.100"),_disabled:{color:r("gray.300","gray.400")},py:"1",height:"auto",flex:"1",paddingRight:"1.5rem",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:"4",pl:1,_hover:{bg:n.selected?void 0:r("gray.25","whiteAlpha.100")},transition:"all 0.15s ease-in-out",children:[z(n.icon,{h:"3",w:"3",color:r("gray.300","gray.600")}),z(aN,{label:n.label,openDelay:1200,children:z(Tn,{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textStyle:n.depth===0?"bold":"medium",fontSize:"sm",children:n.text})})]})]})},nVt=({depth:n,nodeId:r})=>{const c=U.exports.useContext(DNe),u=Al(c,I=>I.context.expanded.has(r)),d=yfe(r),p=Ew(r,I=>({data:I.data,invocations:I.invocations,edges:I.edges.filter(O=>O.source===I).map(O=>O.uniqueId),nodeIds:I.nodes.map(O=>O.uniqueId)}),Xo),m=ya(I=>Boolean(I.selection[r])),x=p.edges,E=p.data.entry,k=p.data.exit,T=p.invocations,P=tVt(p.data);return We(Tn,{children:[z(zU,{depth:n,selected:m,onToggle:()=>c.send($q.events.toggle(r)),isToggleable:p.nodeIds.length>0||x.length>0||E.length>0,icon:P,isExpanded:u,label:p.data.key,text:p.data.key,onClick:I=>{c.send($q.events.select(r,I.shiftKey?"multi":"single","node"))},isActiveInSimulationMode:d}),We(Tn,{padding:"0",border:"none",_empty:{display:"none"},display:u?"block":"none",children:[E.map((I,O)=>z(zU,{depth:n+1,selected:!1,isToggleable:!1,icon:E$t,isExpanded:!1,label:Bx(I)?"Inline":I.type,text:Bx(I)?"Inline":Rq(I)},O)),k.map((I,O)=>z(zU,{depth:n+1,selected:!1,isToggleable:!1,icon:k$t,isExpanded:!1,label:Bx(I)?"Inline":I.type,text:Bx(I)?"Inline":Rq(I)},O)),T.map((I,O)=>z(zU,{depth:n+1,selected:!1,isToggleable:!1,icon:C$t,isExpanded:!1,text:I.jsImplementation?"Inline":I.src,label:I.jsImplementation?"Inline":I.src},O)),Array.from(x).map(I=>z(IYn,{edgeId:I,depth:n+1},I)),p.nodeIds.map(I=>z(nVt,{depth:n+1,nodeId:I},I))]})]})},IYn=({depth:n,edgeId:r})=>{const c=U.exports.useContext(DNe),u=Al(c,x=>x.context.expanded.has(r)),d=jd(r,x=>({eventType:x.data.eventTypeData,shortDisplayEventType:x.getShortDisplayEventType(),displayEventType:x.getDisplayEventType(),sourceId:x.getNodeSource().getSerialisableId(),targetId:x.target.getSerialisableId()}),Xo),p=kYn(d.sourceId,d.targetId,d.eventType),m=ya(x=>Boolean(x.selection[r]));return z(Tn,{children:z(zU,{depth:n,selected:m,isToggleable:!1,onToggle:()=>c.send($q.events.toggle(r)),onClick:x=>{c.send($q.events.select(r,x.shiftKey?"multi":"single","edge"))},icon:p,isExpanded:u,text:d.shortDisplayEventType,label:d.displayEventType})})},TYn=U.exports.memo(function({graphActor:r}){const c=jw(),u=U.exports.useContext(r1),d=Al(u,x=>{var P;if(!x.matches("simulating"))return[];const E=zn.toStatePaths((P=x.context.activeState)==null?void 0:P.value)||[],k=x.context.graphActor,T=k.snapshot.root.data.key;return Array.from(new Set(E.flatMap(I=>{const O=[T,...I],N=[];for(const j of O)N.length===0?N.push(j):N.push([N[N.length-1]||"",j].join("."));return N.map(j=>k.snapshot.getNodeBySerialisableId(j).uniqueId)})))},MD),p=yW(CYn,{actions:{sendToGraphActor:(x,E)=>{c||E.type==="select"&&(E.selectionType==="node"?r.send({type:"select",entity:{type:"node",id:E.id},mode:E.mode}):r.send({type:"select",entity:{type:"edge",id:E.id},mode:E.mode}))}}});U.exports.useEffect(()=>{d.length>0?p.send({type:"simulationUpdated",nodeIds:d}):p.send({type:"toggle",id:r.getSnapshot().root.uniqueId,clearExpanded:!0})},[r,d,p]);const m=ya(x=>x.root.uniqueId);return z(DNe.Provider,{value:p,children:z(nVt,{nodeId:m,depth:0},m)})}),AYn=Qt(H1.div,{shouldForwardProp:n=>vD(n)||n==="children"}),PYn=({topElement:n})=>{const r=Zc(),c=U.exports.useContext(r1),u=Al(c,p=>p.context.leftPanel),{getColorModeValue:d}=ei();return z(AYn,{layout:!0,initial:{x:u?0:"-100%"},animate:{x:u?0:"-100%"},transition:{type:"tween",duration:"0.2",delay:"0.1",ease:u?"easeOut":"easeIn"},style:{position:u?"relative":"absolute"},h:"full",w:"20rem",children:z(Tn,{h:"full",bg:d("white","gray.900"),borderRightWidth:"1px",borderColor:d("gray.100","gray.700"),children:We(yk,{divider:z(jNt,{borderColor:d("gray.100","gray.700")}),h:"full",align:"flex-start",spacing:0,children:[n,z(Tn,{pb:"8",px:"1",pt:"5",overflowY:"auto",w:"full","data-testname":"left-treeview",children:z(TYn,{graphActor:r})})]})})})},Afe=(n,r)=>function(u){return z(To,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...r,...u,children:n})},OYn=Afe(We(Si,{children:[z("path",{d:"M2 4H3.33333H14",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M5.33325 4.00016V2.66683C5.33325 2.31321 5.47373 1.97407 5.72378 1.72402C5.97382 1.47397 6.31296 1.3335 6.66659 1.3335H9.33325C9.68687 1.3335 10.026 1.47397 10.2761 1.72402C10.5261 1.97407 10.6666 2.31321 10.6666 2.66683V4.00016M12.6666 4.00016V13.3335C12.6666 13.6871 12.5261 14.0263 12.2761 14.2763C12.026 14.5264 11.6869 14.6668 11.3333 14.6668H4.66659C4.31296 14.6668 3.97382 14.5264 3.72378 14.2763C3.47373 14.0263 3.33325 13.6871 3.33325 13.3335V4.00016H12.6666Z",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M6.66675 7.3335V11.3335",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),z("path",{d:"M9.33325 7.3335V11.3335",stroke:"currentcolor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]}),{viewBox:"0 0 18 18"}),_Yn=Afe(z(Si,{children:z("path",{d:"M22 13.1111V6H14.8889L17.8133 8.92444L8.92444 17.8133L6 14.8889V22H13.1111L10.1867 19.0756L19.0756 10.1867L22 13.1111Z"})}),{viewBox:"0 0 27 27"}),MYn=Afe(We(Si,{children:[z("path",{fill:"#fff",d:"M0 200V0h400v400H0"}),z("path",{fill:"#323330",d:"M87.7 200.7V217h52v148h36.9V217h52v-16c0-9 0-16.3-.4-16.5 0-.3-31.7-.4-70.2-.4l-70 .3v16.4l-.3-.1zM321.4 184c10.2 2.4 18 7 25 14.3 3.7 4 9.2 11 9.6 12.8 0 .6-17.3 12.3-27.8 18.8-.4.3-2-1.4-3.6-4-5.2-7.4-10.5-10.6-18.8-11.2-12-.8-20 5.5-20 16 0 3.2.6 5 1.8 7.6 2.7 5.5 7.7 8.8 23.2 15.6 28.6 12.3 41 20.4 48.5 32 8.5 13 10.4 33.4 4.7 48.7-6.4 16.7-22 28-44.3 31.7-7 1.2-23 1-30.5-.3-16-3-31.3-11-40.7-21.3-3.7-4-10.8-14.7-10.4-15.4l3.8-2.4 15-8.7 11.3-6.6 2.6 3.5c3.3 5.2 10.7 12.2 15 14.6 13 6.7 30.4 5.8 39-2 3.7-3.4 5.3-7 5.3-12 0-4.6-.7-6.7-3-10.2-3.2-4.4-9.6-8-27.6-16-20.7-8.8-29.5-14.4-37.7-23-4.7-5.2-9-13.3-11-20-1.5-5.8-2-20-.6-25.7 4.3-20 19.4-34 41-38 7-1.4 23.5-.8 30.4 1l-.2.2z"})]}),{viewBox:"0 0 400 400"}),DYn=Afe(We(Si,{children:[z("path",{fill:"#fff",d:"M0 0h1052v1052H0z"}),z("path",{d:"M965.9 801.1c-7.7-48-39-88.3-131.7-125.9-32.2-14.8-68.1-25.399-78.8-49.8-3.8-14.2-4.3-22.2-1.9-30.8 6.9-27.9 40.2-36.6 66.6-28.6 17 5.7 33.1 18.801 42.8 39.7 45.4-29.399 45.3-29.2 77-49.399-11.6-18-17.8-26.301-25.4-34-27.3-30.5-64.5-46.2-124-45-10.3 1.3-20.699 2.699-31 4-29.699 7.5-58 23.1-74.6 44-49.8 56.5-35.6 155.399 25 196.1 59.7 44.8 147.4 55 158.6 96.9 10.9 51.3-37.699 67.899-86 62-35.6-7.4-55.399-25.5-76.8-58.4-39.399 22.8-39.399 22.8-79.899 46.1 9.6 21 19.699 30.5 35.8 48.7 76.2 77.3 266.899 73.5 301.1-43.5 1.399-4.001 10.6-30.801 3.199-72.101zm-394-317.6h-98.4c0 85-.399 169.4-.399 254.4 0 54.1 2.8 103.7-6 118.9-14.4 29.899-51.7 26.2-68.7 20.399-17.3-8.5-26.1-20.6-36.3-37.699-2.8-4.9-4.9-8.7-5.601-9-26.699 16.3-53.3 32.699-80 49 13.301 27.3 32.9 51 58 66.399 37.5 22.5 87.9 29.4 140.601 17.3 34.3-10 63.899-30.699 79.399-62.199 22.4-41.3 17.6-91.3 17.4-146.6.5-90.2 0-180.4 0-270.9z",fill:"#323330"})]}),{viewBox:"0 0 1052 1052"}),NYn=sg({initial:"not copied",schema:{context:{text:""},events:{}},on:{"text changed":{actions:"updateText"}},states:{"not copied":{on:{copy:"copied"}},copied:{entry:"onCopy",after:{copyThrottleDuration:"not copied"}}}}),jYn=({text:n,onCopy:r,copyThrottleDuration:c,variant:u="gray",size:d="sm",onClick:p,...m})=>{const[x,E]=Nw(NYn,{context:{text:n},actions:{onCopy:T=>{z_n(T.text),r==null||r(T.text)},updateText:Ji({text:(T,P)=>P.type!=="text changed"?T.text:P.text})},delays:{copyThrottleDuration:c!=null?c:1500}}),k=x.matches("copied");return U.exports.useEffect(()=>{E({type:"text changed",text:n})},[n,E]),z(Uc,{...m,size:d,variant:u,onClick:T=>{E({type:"copy"}),p==null||p(T)},children:k?"Copied":"Copy"})},bTt=n=>new Promise((r,c)=>{const u=document.createElement("script");u.src=n;const d=setTimeout(()=>{c("Timeout")},15e3);u.onload=()=>{r(),clearTimeout(d)},document.body.appendChild(u)}),RYn=()=>{let n=!1;const r=async()=>{if(n)return;const u=window.define;window.define=()=>{},await Promise.all([bTt("https://unpkg.com/prettier@2.3.2/standalone.js"),bTt("https://unpkg.com/prettier@2.3.2/parser-typescript.js")]),window.define=u,n=!0};return{format:async(u,d)=>{try{return await r(),prettier.format(u,{parser:"typescript",plugins:prettierPlugins,...d})}catch{}return u}}},rVt=RYn();function NNe(n){return n.replace(/"(assign\(.+\))"/g,"$1")}function iVt(n){return NNe(JSON.stringify(tNe(dN.toJSON(n,r=>JSON.stringify(uUn(r))),JSON.parse).config,null,2))}const oVt=n=>{const{config:r}=tNe(dN.toJS(n),d=>Eq(d)),c=NNe(JSON.stringify(fLt(r,"context"),null,2));return`createMachine({ + ${uLt(c)}, + context: ${afe(n.data.context)}, + predictableActionArguments: true, + preserveActionOrder: true, + })`},sVt=n=>{const{schema:r,...c}=dN.toTS(n),{config:u}=tNe(c,m=>Eq(m)),d=NNe(JSON.stringify(fLt(u,"context"),null,2));return`createMachine({ + ${uLt(d)}, + schema: { + context: {} as { + ${r.context.join(` +`)} + }, + ${r.events.length>0?`events: {} as ${r.events.map(m=>`{"type": ${m}}`).join("| ")}`:""} + }, + context: ${afe(n.data.context)}, + predictableActionArguments: true, + preserveActionOrder: true, + })`},$Yn=n=>new Promise((r,c)=>{setTimeout(()=>{c()},n)}),LYn=sg({tsTypes:{},predictableActionArguments:!0,preserveActionOrder:!0,initial:"waitingForChanges",schema:{context:{},events:{},services:{format:{}}},invoke:{id:"graphSub",src:n=>(r,c)=>{let u="";function d(m){return m.subscribe(x=>{const E=sVt(x);E!==u&&(u=E,r({type:"start formatting",originalCode:{json:iVt(x),js:oVt(x),ts:E}}))})}let p=d(n.graphActor);return c(m=>{m.type==="graph actor changed"&&(p.unsubscribe(),p=d(m.graphActor))}),p.unsubscribe}},on:{"start formatting":{target:".formatting",actions:["storeNamesAndCodesByOriginalCode"]},"graph actor changed":{actions:["updateGraphActor",pBn("graphSub",(n,r)=>r)],target:".formatting",cond:"graphActorHasActuallyChanged"}},states:{waitingForChanges:{},formatting:{invoke:{src:"format",onDone:[{target:"done",actions:"storeFormattedCode"}],onError:[{target:"done",actions:"fallbackToUnformattedCode"}]}},done:{}}}),FYn=({graphActor:n,formatOptions:r})=>{const[c,u]=Nw(LYn,{guards:{graphActorHasActuallyChanged:(d,p)=>!Xo(d.graphActor,p.graphActor)},actions:{updateGraphActor:Ji((d,p)=>{const m=p.graphActor.getSnapshot(),x={json:iVt(m),js:oVt(m),ts:sVt(m)};return{graphActor:p.graphActor,originalCode:x,names:Object.keys(x),codes:Object.values(x)}}),storeNamesAndCodesByOriginalCode:Ji((d,p)=>({names:Object.keys(p.originalCode),codes:Object.values(p.originalCode)})),fallbackToUnformattedCode:Ji({formattedCodes:d=>Object.fromEntries(d.names.map((p,m)=>[p,d.codes[m]]))}),storeFormattedCode:Ji({formattedCodes:(d,p)=>Object.fromEntries(d.names.map((m,x)=>[m,p.data[x]]))})},services:{format:d=>Promise.race([Promise.all(d.codes.map(p=>rVt.format(p))),$Yn(1e3)])},context:{graphActor:n,formatOptions:r}});return U.exports.useEffect(()=>{u({type:"graph actor changed",graphActor:n})},[n]),{isLoading:!c.matches("done"),codes:c.context.formattedCodes}},aVt={key:"",expression:"",inferredType:"string"},BYn=sg({initial:"pristine",context:aVt,preserveActionOrder:!0,states:{pristine:{entry:["clearForm"],on:{change:{target:"dirty"}}},dirty:{tags:["showType"],entry:["updateContext"],on:{blur:{target:"committing"},submit:{target:"committing"},change:{target:"dirty"}}},committing:{tags:["showType"],entry:["commit"],always:"pristine"}}}),VYn=n=>{const[r,c]=Nw(BYn,{actions:{updateContext:Ji((u,{type:d,...p})=>({...u,...p})),commit:u=>{n.onCommit(u.key,u.expression,u.inferredType)},clearForm:Ji(aVt)}});return We(Vc,{flex:"1",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",as:"form",onSubmit:u=>{u.preventDefault(),c({type:"submit"})},children:[z(Zi.Input,{placeholder:"Key",width:"80px",flexShrink:"0",size:"sm",value:r.context.key,onChange:u=>{c({type:"change",key:u.target.value})}}),We(Vc,{gap:"2",flex:"1",children:[z(Zi.Input,{placeholder:"Initial value",flex:"1",flexShrink:"0",size:"sm",fontFamily:"var(--chakra-fonts-mono)",onBlur:()=>{c({type:"blur"})},value:r.context.expression,onChange:u=>{c({type:"change",expression:u.target.value,inferredType:cUn(u.target.value)})}}),r.hasTag("showType")&&z(FMe,{alignSelf:"center",children:gUn(r.context.inferredType)})]}),z("input",{type:"submit",hidden:!0})]})};function zYn(n,r,c){return r in n?Object.defineProperty(n,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[r]=c,n}function mTt(n,r){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,u)}return c}function vTt(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}function HYn(n,r){if(n==null)return{};var c=UYn(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}function qYn(n,r){return WYn(n)||GYn(n,r)||XYn(n,r)||KYn()}function WYn(n){if(Array.isArray(n))return n}function GYn(n,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var c=[],u=!0,d=!1,p=void 0;try{for(var m=n[Symbol.iterator](),x;!(u=(x=m.next()).done)&&(c.push(x.value),!(r&&c.length===r));u=!0);}catch(E){d=!0,p=E}finally{try{!u&&m.return!=null&&m.return()}finally{if(d)throw p}}return c}}function XYn(n,r){if(!!n){if(typeof n=="string")return yTt(n,r);var c=Object.prototype.toString.call(n).slice(8,-1);if(c==="Object"&&n.constructor&&(c=n.constructor.name),c==="Map"||c==="Set")return Array.from(n);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return yTt(n,r)}}function yTt(n,r){(r==null||r>n.length)&&(r=n.length);for(var c=0,u=new Array(r);c=n.length?n.apply(this,d):function(){for(var m=arguments.length,x=new Array(m),E=0;E1&&arguments[1]!==void 0?arguments[1]:{};Wse.initial(n),Wse.handler(r);var c={current:n},u=UU(uQn)(c,r),d=UU(cQn)(c),p=UU(Wse.changes)(n),m=UU(aQn)(c);function x(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(T){return T};return Wse.selector(k),k(c.current)}function E(k){QYn(u,d,p,m)(k)}return[x,E]}function aQn(n,r){return Lq(r)?r(n.current):r}function cQn(n,r){return n.current=xTt(xTt({},n.current),r),r}function uQn(n,r,c){return Lq(r)?r(n.current):Object.keys(c).forEach(function(u){var d;return(d=r[u])===null||d===void 0?void 0:d.call(r,n.current[u])}),c}var lQn={create:sQn},fQn={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}};function dQn(n){return function r(){for(var c=this,u=arguments.length,d=new Array(u),p=0;p=n.length?n.apply(this,d):function(){for(var m=arguments.length,x=new Array(m),E=0;E{u.current=!1}:n,r)}function AH(){}function mue(n,r,c,u){return OQn(n,u)||_Qn(n,r,c,u)}function OQn(n,r){return n.editor.getModel(bVt(n,r))}function _Qn(n,r,c,u){return n.editor.createModel(r,c,u&&bVt(n,u))}function bVt(n,r){return n.Uri.parse(r)}function MQn(n){return n===void 0}function mVt({original:n,modified:r,language:c,originalLanguage:u,modifiedLanguage:d,originalModelPath:p,modifiedModelPath:m,keepCurrentOriginalModel:x,keepCurrentModifiedModel:E,theme:k,loading:T,options:P,height:I,width:O,className:N,wrapperProps:j,beforeMount:$,onMount:L}){const[B,F]=U.exports.useState(!1),[X,te]=U.exports.useState(!0),Z=U.exports.useRef(null),H=U.exports.useRef(null),ce=U.exports.useRef(null),pe=U.exports.useRef(L),fe=U.exports.useRef($);gVt(()=>{const Je=dVt.init();return Je.then(et=>(H.current=et)&&te(!1)).catch(et=>(et==null?void 0:et.type)!=="cancelation"&&console.error("Monaco initialization: error:",et)),()=>Z.current?qe():Je.cancel()}),ww(()=>{const Je=Z.current.getModifiedEditor();Je.getOption(H.current.editor.EditorOption.readOnly)?Je.setValue(r):r!==Je.getValue()&&(Je.executeEdits("",[{range:Je.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),Je.pushUndoStop())},[r],B),ww(()=>{Z.current.getModel().original.setValue(n)},[n],B),ww(()=>{const{original:Je,modified:et}=Z.current.getModel();H.current.editor.setModelLanguage(Je,u||c),H.current.editor.setModelLanguage(et,d||c)},[c,u,d],B),ww(()=>{H.current.editor.setTheme(k)},[k],B),ww(()=>{Z.current.updateOptions(P)},[P],B);const ve=U.exports.useCallback(()=>{fe.current(H.current);const Je=mue(H.current,n,u||c,p),et=mue(H.current,r,d||c,m);Z.current.setModel({original:Je,modified:et})},[c,r,d,n,u,p,m]),Ge=U.exports.useCallback(()=>{Z.current=H.current.editor.createDiffEditor(ce.current,{automaticLayout:!0,...P}),ve(),H.current.editor.setTheme(k),F(!0)},[P,k,ve]);U.exports.useEffect(()=>{B&&pe.current(Z.current,H.current)},[B]),U.exports.useEffect(()=>{!X&&!B&&Ge()},[X,B,Ge]);function qe(){const Je=Z.current.getModel();if(!x){var et;(et=Je.original)===null||et===void 0||et.dispose()}if(!E){var jt;(jt=Je.modified)===null||jt===void 0||jt.dispose()}Z.current.dispose()}return z(pVt,{width:O,height:I,isEditorReady:B,loading:T,_ref:ce,className:N,wrapperProps:j})}mVt.propTypes={original:Nn.exports.string,modified:Nn.exports.string,language:Nn.exports.string,originalLanguage:Nn.exports.string,modifiedLanguage:Nn.exports.string,originalModelPath:Nn.exports.string,modifiedModelPath:Nn.exports.string,keepCurrentOriginalModel:Nn.exports.bool,keepCurrentModifiedModel:Nn.exports.bool,theme:Nn.exports.string,loading:Nn.exports.oneOfType([Nn.exports.element,Nn.exports.string]),options:Nn.exports.object,width:Nn.exports.oneOfType([Nn.exports.number,Nn.exports.string]),height:Nn.exports.oneOfType([Nn.exports.number,Nn.exports.string]),className:Nn.exports.string,wrapperProps:Nn.exports.object,beforeMount:Nn.exports.func,onMount:Nn.exports.func};mVt.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:AH,onMount:AH};function DQn(n){const r=U.exports.useRef();return U.exports.useEffect(()=>{r.current=n},[n]),r.current}const Gse=new Map;function jNe({defaultValue:n,defaultLanguage:r,defaultPath:c,value:u,language:d,path:p,theme:m,line:x,loading:E,options:k,overrideServices:T,saveViewState:P,keepCurrentModel:I,width:O,height:N,className:j,wrapperProps:$,beforeMount:L,onMount:B,onChange:F,onValidate:X}){const[te,Z]=U.exports.useState(!1),[H,ce]=U.exports.useState(!0),pe=U.exports.useRef(null),fe=U.exports.useRef(null),ve=U.exports.useRef(null),Ge=U.exports.useRef(B),qe=U.exports.useRef(L),Je=U.exports.useRef(null),et=U.exports.useRef(u),jt=DQn(p);gVt(()=>{const ye=dVt.init();return ye.then(De=>(pe.current=De)&&ce(!1)).catch(De=>(De==null?void 0:De.type)!=="cancelation"&&console.error("Monaco initialization: error:",De)),()=>fe.current?Ve():ye.cancel()}),ww(()=>{const ye=mue(pe.current,n||u,r||d,p);ye!==fe.current.getModel()&&(P&&Gse.set(jt,fe.current.saveViewState()),fe.current.setModel(ye),P&&fe.current.restoreViewState(Gse.get(p)))},[p],te),ww(()=>{fe.current.updateOptions(k)},[k],te),ww(()=>{fe.current.getOption(pe.current.editor.EditorOption.readOnly)?fe.current.setValue(u):u!==fe.current.getValue()&&(fe.current.executeEdits("",[{range:fe.current.getModel().getFullModelRange(),text:u,forceMoveMarkers:!0}]),fe.current.pushUndoStop())},[u],te),ww(()=>{pe.current.editor.setModelLanguage(fe.current.getModel(),d)},[d],te),ww(()=>{MQn(x)||fe.current.revealLine(x)},[x],te),ww(()=>{pe.current.editor.setTheme(m)},[m],te);const Me=U.exports.useCallback(()=>{qe.current(pe.current);const ye=p||c,De=mue(pe.current,u||n,r||d,ye);fe.current=pe.current.editor.create(ve.current,{model:De,automaticLayout:!0,...k},T),P&&fe.current.restoreViewState(Gse.get(ye)),pe.current.editor.setTheme(m),Z(!0)},[n,r,c,u,d,p,k,T,P,m]);U.exports.useEffect(()=>{te&&Ge.current(fe.current,pe.current)},[te]),U.exports.useEffect(()=>{!H&&!te&&Me()},[H,te,Me]),et.current=u,U.exports.useEffect(()=>{if(te&&F){var ye,De;(ye=Je.current)===null||ye===void 0||ye.dispose(),Je.current=(De=fe.current)===null||De===void 0?void 0:De.onDidChangeModelContent(be=>{const xe=fe.current.getValue();et.current!==xe&&F(xe,be)})}},[te,F]),U.exports.useEffect(()=>{if(te){const ye=pe.current.editor.onDidChangeMarkers(De=>{var be;const xe=(be=fe.current.getModel())===null||be===void 0?void 0:be.uri;if(xe&&De.find(an=>an.path===xe.path)){const an=pe.current.editor.getModelMarkers({resource:xe});X==null||X(an)}});return()=>{ye==null||ye.dispose()}}},[te,X]);function Ve(){var ye;if((ye=Je.current)===null||ye===void 0||ye.dispose(),I)P&&Gse.set(p,fe.current.saveViewState());else{var De;(De=fe.current.getModel())===null||De===void 0||De.dispose()}fe.current.dispose()}return z(pVt,{width:O,height:N,isEditorReady:te,loading:E,_ref:ve,className:j,wrapperProps:$})}jNe.propTypes={defaultValue:Nn.exports.string,defaultPath:Nn.exports.string,defaultLanguage:Nn.exports.string,value:Nn.exports.string,language:Nn.exports.string,path:Nn.exports.string,theme:Nn.exports.string,line:Nn.exports.number,loading:Nn.exports.oneOfType([Nn.exports.element,Nn.exports.string]),options:Nn.exports.object,overrideServices:Nn.exports.object,saveViewState:Nn.exports.bool,keepCurrentModel:Nn.exports.bool,width:Nn.exports.oneOfType([Nn.exports.number,Nn.exports.string]),height:Nn.exports.oneOfType([Nn.exports.number,Nn.exports.string]),className:Nn.exports.string,wrapperProps:Nn.exports.object,beforeMount:Nn.exports.func,onMount:Nn.exports.func,onChange:Nn.exports.func,onValidate:Nn.exports.func};jNe.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:AH,onMount:AH,onValidate:AH};var NQn=U.exports.memo(jNe);const jQn={base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#393a40"}},RQn=(n,r)=>({message:n,startLineNumber:1,startColumn:1,endLineNumber:r,endColumn:1/0}),$Qn=async(n,r)=>{const c=r.uri,u=n.Uri.parse(c.toString());return await n.languages.typescript.getTypeScriptWorker().then(p=>p(u))},LQn={minimap:{enabled:!1},tabSize:2,glyphMargin:!1,lineNumbers:"off",folding:!0,showFoldingControls:"always",renderValidationDecorations:"on",scrollBeyondLastLine:!1,fontSize:14,fontFamily:"var(--chakra-fonts-mono)",wordWrap:"on",wrappingStrategy:"advanced",overviewRulerLanes:0,lineDecorationsWidth:0,renderWhitespace:"none",fixedOverflowWidgets:!0},FQn={renderLineHighlight:"none",quickSuggestions:!1,glyphMargin:!1,lineDecorationsWidth:0,folding:!1,fixedOverflowWidgets:!0,acceptSuggestionOnEnter:"on",hover:{delay:100},roundedSelection:!1,contextmenu:!1,cursorStyle:"line-thin",occurrencesHighlight:!1,links:!1,minimap:{enabled:!1},wordBasedSuggestions:!1,find:{addExtraSpaceOnTop:!1,autoFindInSelection:"never",seedSearchStringFromSelection:"never"},fontSize:14,fontWeight:"normal",wordWrap:"off",lineNumbers:"off",lineNumbersMinChars:0,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollbar:{horizontal:"hidden",vertical:"hidden",alwaysConsumeMouseWheel:!1}},BQn={typescript:"ts"},VQn=(n,r)=>`context-editor-${n}.${BQn[r]}`,zQn=250,RNe=100,UQn=450,ETt=n=>Math.max(RNe,Math.min(UQn,n)),kTt="validation",vVt=({value:n,defaultValue:r,formatOnMount:c=!0,...u})=>{var k;const[d,p]=U.exports.useState((k=n!=null?n:r)!=null?k:""),[m,x]=U.exports.useState(!c),{getColorModeValue:E}=ei();return U.exports.useEffect(()=>{if(!c)return;(async()=>{let P=d;try{P=cLt(await rVt.format(eNe(d),{printWidth:30,quoteProps:"consistent",semi:!1}))}catch{}finally{x(!0),p(P)}})()},[d,c]),m?z(HQn,{value:d,...u}):z(Tn,{bg:E("white","gray.700"),display:"grid",placeContent:"center",height:RNe,children:"Preparing the editor"})};function HQn({fallbackValue:n,value:r,monacoOptions:c={},autoGrow:u=!0,getCommitTrigger:d=()=>{},id:p,lang:m="typescript",width:x=zQn,height:E=RNe,preParseCode:k,parseExpression:T,validateExpression:P,commitCode:I,useStatelyDarkTheme:O=!1,onMount:N=()=>{}}){const j=U.exports.useRef([]),[$,L]=U.exports.useState(r),[B,F]=U.exports.useState(E),[X,te]=U.exports.useState(null),Z=U.exports.useRef(null),H=U.exports.useRef(null),ce=U.exports.useRef(null),pe=U.exports.useRef(null),{colorMode:fe}=ei(),ve={light:"vs-light",dark:O?"stately-dark":"vs-dark"},Ge=U.exports.useCallback(()=>{if(!!X)try{const ye=pe.current,De=ce.current;if(ye&&De){const be=ye.getModel();De==null||De.editor.setModelMarkers(be,kTt,[{...RQn(X.message,be.getLineCount()),severity:De.MarkerSeverity.Error}])}}catch{}},[X]),qe=U.exports.useCallback(()=>{const ye=pe.current,De=ce.current;if(De&&ye){const be=ye.getModel();De.editor.setModelMarkers(be,kTt,[])}},[]),Je=ye=>{const De=ce.current,be=Z.current;be==null?De&&(Z.current=De.editor.createModel(ye,"typescript")):be.setValue(ye)},et=ye=>{const De=ce.current,be=pe.current,xe=Z.current;let Jt=[];Array.isArray(ye)?Jt=ye.map(an=>xe.getPositionAt(xe.getValue().indexOf(an))):Jt=[xe.getPositionAt(xe.getValue().indexOf(ye))],j.current=be.deltaDecorations(j.current,Jt.map(an=>({range:new De.Range(an.lineNumber,0,an.lineNumber,1/0),options:{isWholeLine:!0,className:"editor-line-error",glyphMarginClassName:"editor-line-error-glyph"}})))},jt=()=>{const ye=pe.current;j.current=ye.deltaDecorations(j.current,[])},Me=async()=>{const ye=ce.current,De=Z.current;try{const be=await $Qn(ye,De),xe=De.uri.toString();return await T(be,xe)}catch(be){console.log(be);const xe=be;Array.isArray(xe.keys)?(et(xe.keys),xe.keys.length>0?xe.keys.length===1?te({...xe,message:`${xe.message} at key "${xe.keys}"`}):te({...xe,message:`${xe.message} at keys [${xe.keys.map(kq)}]`}):te(xe)):te({message:'The context value must be provided as a JavaScript object in "{}" format.'})}},Ve=aUn(async()=>{const ye=$||n;Je(k(ye));const De=await Me();if(De!=null){const be=P(De);be!=null?(Array.isArray(be.keys)&&et(be.keys),te(be)):I(De,ye)}});return U.exports.useEffect(()=>{typeof d=="function"&&d(Ve)},[Ve,d]),U.exports.useLayoutEffect(()=>{var De;if(!u)return;const ye=pe.current;if(ye){const be=((De=H.current)==null?void 0:De.getBoundingClientRect().width)||x;ye.layout({height:B,width:be})}},[B,u,x]),U.exports.useEffect(()=>{X?Ge():qe()},[X,qe,Ge]),We(Si,{children:[z(Tn,{bg:"gray.700",ref:H,height:`${B}px`,sx:{"& *, & *:after, & *:before":{position:"static"}},borderWidth:"1px",borderColor:X?"red.500":"gray.700",children:z(NQn,{path:VQn(p,m),language:m,value:$,options:{...LQn,...FQn,...c},beforeMount:ye=>{ce.current=ye,ye.editor.defineTheme("stately-dark",jQn),ye.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSyntaxValidation:!0,noSemanticValidation:!0,diagnosticCodesToIgnore:[1005]}),ye.languages.typescript.typescriptDefaults.setCompilerOptions({...ye.languages.typescript.typescriptDefaults.getCompilerOptions(),module:ye.languages.typescript.ModuleKind.CommonJS,moduleResolution:ye.languages.typescript.ModuleResolutionKind.NodeJs,strict:!0,allowJs:!0,allowUnusedLabels:!0}),ye.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:`${new URL(window.location.origin)}registry/tsworker.js`})},onMount:async(ye,De)=>{pe.current=ye,ye.focus(),ye.setValue($||""),ye.addAction({id:"submit",label:"Submit",keybindings:[De.KeyCode.Enter|De.KeyMod.CtrlCmd],run:()=>Ve()}),u&&F(ETt(ye.getContentHeight())),ye.onDidContentSizeChange(be=>{u&&F(ETt(be.contentHeight))}),ye.onDidChangeModel(()=>{te(null)}),N(ye,De)},loading:"Preparing the editor",onChange:ye=>{te(null),jt(),L(ye!=null?ye:"")},theme:ve[fe]})}),X&&z(Fi,{as:Fi,paddingBlock:"2",paddingInline:"1",color:"red.400",children:X.message})]})}const qQn=({onCommit:n,...r})=>z(vVt,{...r,preParseCode:c=>eNe(c),parseExpression:(c,u)=>c.parseObjectWithProperties(u),validateExpression:c=>{if(!Object.values(c).some(p=>p.type==="function"))return null;const d=Object.entries(c).filter(([,p])=>p.type==="function").map(([p])=>c[p].isMethod?`${p}(`:`${p}:`);return{message:"Valid values for context properties are string, number, boolean, array and object.",code:"INVALID_CONTEXT_VALUE",keys:d}},commitCode:c=>n(Object.entries(c).reduce((u,[d,p])=>({...u,[Eq(d)]:{...p,type:p.type==="null"?"unknown":p.type,text:cLt(p.type==="string"&&p.isLiteral?Eq(p.text):p.text)}}),{}))}),WQn=({onCommit:n,...r})=>z(vVt,{...r,preParseCode:c=>eNe(c),parseExpression:(c,u)=>c.parseAsSingleExpression(u),validateExpression:()=>null,commitCode:(c,u)=>n({...c,type:c.type==="null"?"unknown":c.type,text:u.trim()})});function CTt({isSummaryView:n=!1,field:r,...c}){const{onChange:u,getUid:d}=U.exports.useContext(BD),p=d(r);if(r.isNull)return z(Tn,{as:"span",height:"32px",children:z(FMe,{width:"max-content",children:"null"})});if(!r.isLiteral)return z(ITt,{field:r,isSummaryView:n});switch(r.type){case"unknown":case"string":case"number":case"boolean":return z(Zi.Input,{...c,width:"100%",placeholder:r.type==="string"?'" "':"",defaultValue:r.expression,onChange:m=>{u(p,{expression:m.target.value})}});case"array":case"object":return z(ITt,{field:r,isSummaryView:n});default:return null}}function ITt({isSummaryView:n,...r}){const{getUid:c}=U.exports.useContext(BD),{field:u}=r,{panelRef:d,onPopoverClose:p,onPopoverOpen:m,openPopoverId:x}=U.exports.useContext(Xfe),{toggleRow:E}=U.exports.useContext(BD),{getColorModeValue:k}=ei(),T=c(u),P=x===T;return z(Si,{children:We(pDe,{placement:"left-start",isLazy:!0,lazyBehavior:"keepMounted",offset:[0,90],autoFocus:!1,closeOnBlur:!1,closeOnEsc:!1,onOpen:()=>{m(T)},onClose:p,isOpen:P,children:[z(n?O=>z(Tn,{flex:"1",onClick:()=>{E(T)},...O}):Dce,{children:z(Fi,{noOfLines:3,as:"pre",fontSize:"14px",whiteSpace:"pre-wrap",wordBreak:"break-word",width:"100%",transition:"background 250ms ease",cursor:"pointer",_hover:{backgroundColor:k("whiteAlpha.100","whiteAlpha.100")},children:u.expression})}),We(Si,{children:[!n&&z(Dce,{children:z(Y0,{size:"sm",variant:"unstyled",marginBlockStart:"2",fontWeight:"semibold",textAlign:"start",children:P?"Close editor":"Open in Editor"})}),z(s3,{containerRef:d,children:z(GQn,{...r})})]})]},T)})}function GQn({field:n}){const{openPopoverId:r,onPopoverClose:c}=U.exports.useContext(Xfe),{onChange:u,getUid:d,getKey:p}=U.exports.useContext(BD),{getColorModeValue:m}=ei(),x=U.exports.useRef(null),E=d(n),k=p(n),T=r===E;return We(mDe,{bg:m("white","gray.800"),borderWidth:T?1:0,children:[z(vDe,{fontWeight:"semibold",borderBottom:"none",children:z(Fi,{children:k})}),z(bDe,{}),We(gDe,{children:[z(WQn,{id:k,defaultValue:n.expression,fallbackValue:lLt(n.type),getCommitTrigger:P=>{x.current=P},onCommit:P=>{u(E,{expression:P.text}),c()}}),z(nl,{justifyContent:"center",paddingBlock:"3",children:z(Uc,{alignSelf:"flex-end",onClick:()=>x.current(),title:"Save changes","aria-label":"Save changes",minWidth:"100px",children:"Save"})})]})]})}const XQn=n=>({padding:"0",maxWidth:"100%",width:"30px",justifyContent:"center",bg:n("gray.100","gray.800"),fontSize:"1.5em",size:"xs",variant:"unstyled",rounded:"none",display:"flex"}),KQn=({field:n})=>{var N,j;const{isExpanded:r,toggleRow:c,onChange:u,onDelete:d,errors:p,getKey:m,getUid:x}=U.exports.useContext(BD),E=x(n),k=p[E]&&Object.keys(p[E]).length>0,T=hUn(p[E]),{getColorModeValue:P}=ei(),I=XQn(P),O=U.exports.useContext(Xfe);return U.exports.useEffect(()=>{!r(E)&&E===O.openPopoverId&&O.onPopoverClose()},[r,E,O]),We(Tn,{children:[z(lq,{in:!r(E),unmountOnExit:!0,children:We(Vc,{alignItems:"center",sx:{"&:hover .expand-wrapper":{width:"30px"},"&:hover .expand-button":{display:"flex"},"&:hover .error-button":{display:"none"}},children:[We(Vc,{flex:"1",justifyContent:"space-between",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",children:[z(Zi.Input,{width:"80px",flexShrink:"0",size:"sm",value:m(n),onChange:$=>{u(E,{key:$.target.value})},isInvalid:!!T("key")}),z(Vc,{flex:"1",alignItems:"center",children:z(CTt,{field:n,isSummaryView:!0,size:"sm",paddingInlineEnd:"30px",isInvalid:!!T("expression")})})]}),We(Tn,{className:"expand-wrapper",width:k?30:0,overflow:"hidden",transition:"width 200ms",alignSelf:"stretch",children:[z(Y0,{...I,display:"none",className:"expand-button",_hover:{bg:P("gray.100","gray.800")},onClick:()=>{c(E)},title:"Expand row","aria-label":"Expand row",height:"100%",children:z(_Yn,{fill:"gray.300"})}),k&&z(Y0,{...I,onClick:()=>{c(E)},className:"error-button",title:"Expand row","aria-label":"Expand row",children:z(Vc,{rounded:"full",bg:"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:"white",shrink:0,as:"span",alignSelf:"center",children:z(VDe,{w:"4",h:"4"})})})]})]})}),z(lq,{in:r(E),unmountOnExit:!0,children:z(Tn,{bg:P("blackAlpha.100","blackAlpha.500"),paddingInline:"3",marginInline:"0",paddingBlockEnd:"3",children:We(yk,{gap:"3",alignItems:"stretch",color:P("gray.800","gray.300"),children:[We(Tn,{fontSize:"0.9em",children:[We(Vc,{justifyContent:"space-between",alignItems:"center",height:"8",children:[z(Fi,{children:"Edit Schema"}),We(Vc,{alignItems:"center",gap:"2",children:[z(Y0,{size:"xs",variant:"light",paddingInline:"0",title:"Delete row","aria-label":"Delete row",onClick:()=>{d(E)},rounded:"0",width:"30px",children:z(OYn,{fontSize:"1.5em",fill:"transparent"})}),z(Y0,{size:"xs",variant:"light",paddingInline:"0",title:"Close row","aria-label":"Close row",onClick:()=>{c(E)},fontSize:"1em",rounded:"0",width:"30px",children:z(wW,{fontSize:"1.5em"})})]})]}),z(mv,{})]}),z(V7e,{label:"Key",htmlFor:uM("key",E),children:z(Zi.Control,{hideLabel:!0,label:"key",display:"flex",flexDirection:"column",alignItems:"flex-end",error:(N=T("key"))!=null?N:void 0,errorProps:{alignSelf:"flex-start"},children:z(Zi.Input,{id:uM("key",E),width:"100%",size:"sm",defaultValue:m(n),onChange:$=>{u(E,{key:$.target.value})},isInvalid:!!T("key")})})}),z(V7e,{label:"Type",htmlFor:uM("type",E),children:We(yk,{alignItems:"flex-start",children:[We(Zi.Select,{id:uM("type",E),width:"auto",size:"sm",defaultValue:n.type,isInvalid:!!T("type"),onChange:$=>{u(E,{type:$.target.value})},children:[z("option",{value:"unknown",children:"Unknown"}),z("option",{value:"string",children:"String"}),z("option",{value:"number",children:"Number"}),z("option",{value:"boolean",children:"Boolean"}),z("option",{value:"array",children:"Array"}),z("option",{value:"object",children:"Object"})]}),!!T("type")&&z(Fi,{color:"red.500",fontSize:"sm",children:T("type")})]})}),z(V7e,{label:"Initial",htmlFor:uM("expression",E),children:z(Zi.Control,{label:"initial",hideLabel:!0,display:"flex",flexDirection:"column",error:(j=T("expression"))!=null?j:void 0,children:z(CTt,{field:n,size:"sm",isInvalid:!!T("expression"),id:uM("expression",E)})})}),We(MMe,{display:"flex",alignItems:"center",children:[z(iN,{htmlFor:`switch-initial-nullable-${E}`,mb:"0",fontSize:"0.9em",children:"Set initial value to null"}),z(xRt,{id:`switch-initial-nullable-${E}`,isChecked:n.isNull,onChange:$=>{u(E,{expression:$.target.checked?"null":lLt(n.type),isNull:$.target.checked})}})]})]})})})]})},uM=(n,r)=>`${n}-${r}`,V7e=({label:n,htmlFor:r,children:c,...u})=>We(nl,{...u,alignItems:"flex-start",children:[z(iN,{whiteSpace:"nowrap",flexShrink:0,flexBasis:"40px",color:"inherit",fontSize:"0.9em",htmlFor:r,children:n}),z(Vc,{flex:"1",justifyContent:"flex-start",children:c})]}),BD=U.exports.createContext(null),YQn=({label:n,expressions:r,expressionErrors:c,onRawCommit:u,onModifyField:d,onDeleteField:p,getUid:m,getKey:x})=>{const[E,k]=U.exports.useState(()=>new Set),[T,P]=U.exports.useState("table"),I=F=>{k(X=>new Set(X).add(F))},O=F=>{k(X=>{const te=new Set(X);return te.delete(F),te})},N=F=>{E.has(F)?O(F):I(F)},j=()=>{P(F=>F==="table"?"raw":"table")},$=Object.entries(r),L=Object.entries(r).reduce((F,[X,te])=>{const Z=x(te);return{...F,[X]:{...te,key:Z}}},{});U.exports.useEffect(()=>{k(new Set)},[T]);const B=U.exports.useRef(null);return We(Si,{children:[We(nl,{justifyContent:"space-between",alignItems:"center",marginBlockEnd:"4",children:[n&&z(MS,{textTransform:"uppercase",fontSize:"sm",fontWeight:"normal",letterSpacing:"wider",children:n}),"(",z(Vc,{gap:"2",alignItems:"center",children:z(Uc,{onClick:()=>{j()},width:"150px","aria-label":"Toggle context view",title:"Toggle context view",size:"sm",variant:"gray",children:T==="raw"?"Switch to Table view":"Switch to Code view"})}),")"]}),T==="raw"&&We(Tn,{children:[z(qQn,{fallbackValue:"{}",defaultValue:afe(L),onCommit:F=>{u(F),P("table")},getCommitTrigger:F=>{B.current=F},monacoOptions:{renderValidationDecorations:"off"},autoGrow:!0,id:"raw"}),z(nl,{justifyContent:"center",paddingBlock:"3",children:z(Uc,{alignSelf:"flex-end",onClick:()=>{B.current()},title:"Save changes","aria-label":"Save changes",minWidth:"100px",children:"Save"})})]}),T==="table"&&z(Si,{children:$.length>0&&z(BD.Provider,{value:{fields:r,errors:c,onChange:(F,X)=>{const te=L[F];d(F,{...te,...X})},onDelete:F=>{p(F)},isExpanded:F=>E.has(F),toggleRow:N,getUid:m,getKey:x,label:n},children:z(Vc,{gap:"4",flexDirection:"column",paddingBlockEnd:"3",children:$.map(([F,X])=>z(KQn,{field:{...X,key:x(X)}},F))})})})]})},QQn=()=>{const n=Zc(),{context:r,contextErrors:c}=ya(U.exports.useCallback(u=>({contextErrors:u.problems.contextErrors,context:u.data.context}),[]),Xo);return z(YQn,{label:" ",getUid:u=>u.uid,getKey:u=>u.key,expressions:r,expressionErrors:c,onRawCommit:u=>{n.send({type:"context.set",context:u})},onModifyField:(u,d)=>{n.send({type:"context.modifyField",uid:u,updates:d})},onDeleteField:u=>{n.send({type:"context.deleteField",uid:u})}})};function _k({value:n,onCommit:r,commitOnEsc:c,focusRefOnKeyDownCommit:u}){const[d,p]=U.exports.useState(n),[m,x]=U.exports.useState(d);n!==d&&(p(n),x(n));const E=(k=m)=>{if(k===d)return;const T=k.trim();x(T),r(T)};return{value:m,onChange:k=>{x(k.currentTarget.value)},onFocus:k=>{k.currentTarget.addEventListener("blur",P=>E(P.currentTarget.value),{once:!0})},onKeyDown:k=>{var T,P;switch(k.key){case"Enter":if(k.currentTarget.tagName==="TEXTAREA"&&!xq(k))return;k.preventDefault(),E(),(T=u==null?void 0:u.current)==null||T.focus();return;case"Escape":if(!c)return;E(),(P=u==null?void 0:u.current)==null||P.focus();return}}}}const ZQn=()=>{const{getColorModeValue:n}=ei(),r=ya(x=>({machineName:x.root.data.key,nodesLength:x.nodes.length,edgesLength:x.edges.length}),Xo),c=Zc(),u=ya(x=>x.root.uniqueId),{ownerName:d,projectName:p}=U.exports.useContext(CW),m=_k({value:r.machineName,onCommit:x=>c.send({type:"node.modify.key",nodeId:u,key:x})});return We(V1,{paddingX:"1",paddingY:"2",spacing:"3",children:[d&&We(Vc,{children:[z(Fi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",children:"Owner"}),z(Tn,{flex:"1",children:z(Fi,{fontSize:"sm",paddingLeft:"3",children:d})})]}),p&&We(Vc,{children:[z(Fi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",children:"Project"}),z(Tn,{flex:"1",children:z(Fi,{fontSize:"sm",paddingLeft:"3",children:p})})]}),We(Vc,{children:[z(Fi,{fontSize:"sm",textStyle:"medium",color:n("gray.500","gray.400"),width:"14",paddingTop:"1",children:"Name"}),z(Tn,{flex:"1",children:z(Zi.Control,{label:"Name",paddingInline:"0",hideLabel:!0,children:z(Zi.Input,{size:"sm",...m})})})]}),We(Vc,{paddingTop:"2",children:[We(Vc,{children:[z(Fi,{fontSize:"sm",textStyle:"semibold",as:"span",children:r.nodesLength}),We(Fi,{fontSize:"sm",as:"span",paddingLeft:"1",children:["state",r.nodesLength===1?"":"s"]})]}),We(Vc,{pl:"4",children:[z(Fi,{fontSize:"sm",textStyle:"semibold",as:"span",children:r.edgesLength}),We(Fi,{fontSize:"sm",as:"span",paddingLeft:"1",children:["transition",r.edgesLength===1?" ":"s"]})]})]})]})},JQn=sg({initial:"idle",states:{idle:{on:{pointerdown:"pending"}},pending:{on:{pointermove:"moving",pointerup:"clicked"}},moving:{on:{pointerup:"idle",pointerdown:"pending"}},clicked:{entry:"onClick",on:{blur:"idle"}}}}),eZn=U.exports.forwardRef(function({selectOnFocus:r,onFocus:c,onBlur:u,onChange:d,onPointerUp:p,style:m,className:x,isDisabled:E,...k},T){var X,te,Z;const{getColorModeValue:P}=ei(),I=U.exports.useRef(null),O=RMe(T,I),N=U.exports.useRef(!1),[j,$]=Nw(JQn,{actions:{onClick:()=>{var H,ce;(H=I.current)==null||H.focus(),(ce=I.current)==null||ce.select()}}}),[L,B]=U.exports.useState((te=(X=k.value)!=null?X:k.defaultValue)!=null?te:""),F=(Z=k.value)!=null?Z:L;return We(Tn,{display:"inline-grid",className:x,children:[z(Tn,{style:{font:"inherit",...m,gridArea:"1 / 1",whiteSpace:"pre",color:P("transparent","transparent"),userSelect:"none",paddingRight:"2px"},onPointerUp:H=>{$(H)},onPointerMove:H=>$(H),onPointerDown:H=>{H.button===0&&$(H)},children:F||" "}),z("input",{...k,disabled:E,"data-interactive":!0,type:"text",style:{appearance:"none",padding:0,margin:0,color:"inherit",border:"inherit",background:P("transparent","transparent"),font:"inherit",outline:"inherit",...m,width:"auto",minWidth:"3ch",gridArea:"1 / 1",resize:"none",pointerEvents:j.matches("clicked")?"auto":"none"},size:3,ref:O,onPointerDown:()=>{N.current=!0;const H=()=>{N.current=!1,ce()},ce=Il.bindAll(document.body,[{type:"pointerdown",listener:H},{type:"pointercancel",listener:H}],{capture:!0})},onPointerUp:H=>{r&&N.current&&(N.current=!1,H.currentTarget.select()),p==null||p(H)},onFocus:H=>{r&&!N.current&&H.currentTarget.select(),c==null||c(H)},onBlur:H=>{$(H),u==null||u(H)},onChange:H=>{B(H.currentTarget.value),d==null||d(H)}})]})}),uOe=U.exports.forwardRef(function(r,c){const{getColorModeValue:u}=ei(),d=U.exports.useMemo(()=>Qt(eZn,{baseStyle:{paddingInline:"1",_focusWithin:{outline:"none",border:"none",background:u("whiteAlpha.300","whiteAlpha.300"),rounded:"sm"},"&:hover:not(:focus-within)":{background:u("whiteAlpha.200","whiteAlpha.200")}}}),[u]);return z(d,{ref:c,...r})}),tZn={errors:n=>z(Vc,{rounded:"full",bg:n.bg||"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:z(VDe,{w:"4",h:"4"})}),warnings:n=>z(Vc,{rounded:"full",bg:n.bg||"orange.400",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:z(zDe,{w:"4",h:"4"})}),none:()=>null},nZn={errors:n=>z(Vc,{rounded:"full",bg:n.bg||"red.500",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:z(VDe,{w:"4",h:"4"})}),warnings:n=>z(Vc,{rounded:"full",bg:n.bg||"orange.400",h:"5",w:"5",alignItems:"center",justifyContent:"center",color:n.color||"white",shrink:0,children:z(zDe,{w:"4",h:"4"})}),none:()=>null},yVt=({errors:n,warnings:r,hidden:c,...u})=>{const d=n!=null?n:[],p=r!=null?r:[],{getColorModeValue:m}=ei(),x=d.length>0?"errors":p.length>0?"warnings":"none",E=m(tZn,nZn)[x],k=x==="errors"?d:p;return z(aN,{hasArrow:!0,bg:m("gray.800","gray.800"),color:m("white","white"),label:z(Si,{children:k.length>0&&z(Vc,{gap:"2",direction:"column",padding:"2",children:k.map((T,P)=>We(lt.Fragment,{children:[We(Vc,{alignItems:"center",gap:"2.5",children:[z(E,{bg:m("gray.400","gray.200"),color:m("black","black")}),z(Fi,{children:T})]}),Pd||(d=r.indexOf("#"),d!==-1&&u>d)?r:"javascript:void(0)"}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var $Ne=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)};function oD(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ATt(n.position):"start"in n||"end"in n?ATt(n):"line"in n||"column"in n?lOe(n):""}function lOe(n){return PTt(n&&n.line)+":"+PTt(n&&n.column)}function ATt(n){return lOe(n&&n.start)+"-"+lOe(n&&n.end)}function PTt(n){return n&&typeof n=="number"?n:1}class Tv extends Error{constructor(r,c,u){const d=[null,null];let p={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof c=="string"&&(u=c,c=void 0),typeof u=="string"){const m=u.indexOf(":");m===-1?d[1]=u:(d[0]=u.slice(0,m),d[1]=u.slice(m+1))}c&&("type"in c||"position"in c?c.position&&(p=c.position):"start"in c||"end"in c?p=c:("line"in c||"column"in c)&&(p.start=c)),this.name=oD(c)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=p.start.line,this.column=p.start.column,this.source=d[0],this.ruleId=d[1],this.position=p,this.actual,this.expected,this.file,this.url,this.note}}Tv.prototype.file="";Tv.prototype.name="";Tv.prototype.reason="";Tv.prototype.message="";Tv.prototype.stack="";Tv.prototype.fatal=null;Tv.prototype.column=null;Tv.prototype.line=null;Tv.prototype.source=null;Tv.prototype.ruleId=null;Tv.prototype.position=null;const Ax={basename:iZn,dirname:oZn,extname:sZn,join:aZn,sep:"/"};function iZn(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');AW(n);let c=0,u=-1,d=n.length,p;if(r===void 0||r.length===0||r.length>n.length){for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else u<0&&(p=!0,u=d+1);return u<0?"":n.slice(c,u)}if(r===n)return"";let m=-1,x=r.length-1;for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else m<0&&(p=!0,m=d+1),x>-1&&(n.charCodeAt(d)===r.charCodeAt(x--)?x<0&&(u=d):(x=-1,u=m));return c===u?u=m:u<0&&(u=n.length),n.slice(c,u)}function oZn(n){if(AW(n),n.length===0)return".";let r=-1,c=n.length,u;for(;--c;)if(n.charCodeAt(c)===47){if(u){r=c;break}}else u||(u=!0);return r<0?n.charCodeAt(0)===47?"/":".":r===1&&n.charCodeAt(0)===47?"//":n.slice(0,r)}function sZn(n){AW(n);let r=n.length,c=-1,u=0,d=-1,p=0,m;for(;r--;){const x=n.charCodeAt(r);if(x===47){if(m){u=r+1;break}continue}c<0&&(m=!0,c=r+1),x===46?d<0?d=r:p!==1&&(p=1):d>-1&&(p=-1)}return d<0||c<0||p===0||p===1&&d===c-1&&d===u+1?"":n.slice(d,c)}function aZn(...n){let r=-1,c;for(;++r0&&n.charCodeAt(n.length-1)===47&&(c+="/"),r?"/"+c:c}function uZn(n,r){let c="",u=0,d=-1,p=0,m=-1,x,E;for(;++m<=n.length;){if(m2){if(E=c.lastIndexOf("/"),E!==c.length-1){E<0?(c="",u=0):(c=c.slice(0,E),u=c.length-1-c.lastIndexOf("/")),d=m,p=0;continue}}else if(c.length>0){c="",u=0,d=m,p=0;continue}}r&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+n.slice(d+1,m):c=n.slice(d+1,m),u=m-d-1;d=m,p=0}else x===46&&p>-1?p++:p=-1}return c}function AW(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const lZn={cwd:fZn};function fZn(){return"/"}function fOe(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function dZn(n){if(typeof n=="string")n=new URL(n);else if(!fOe(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return hZn(n)}function hZn(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=n.pathname;let c=-1;for(;++c"u"||jae.call(r,d)},RTt=function(r,c){MTt&&c.name==="__proto__"?MTt(r,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):r[c.name]=c.newValue},$Tt=function(r,c){if(c==="__proto__")if(jae.call(r,c)){if(DTt)return DTt(r,c).value}else return;return r[c]},LTt=function n(){var r,c,u,d,p,m,x=arguments[0],E=1,k=arguments.length,T=!1;for(typeof x=="boolean"&&(T=x,x=arguments[1]||{},E=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});Em.length;let E;x&&m.push(d);try{E=n.apply(this,m)}catch(k){const T=k;if(x&&c)throw T;return d(T)}x||(E instanceof Promise?E.then(p,d):E instanceof Error?d(E):p(E))}function d(m,...x){c||(c=!0,r(m,...x))}function p(m){d(null,m)}}class Av extends Error{constructor(r,c,u){const d=[null,null];let p={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof c=="string"&&(u=c,c=void 0),typeof u=="string"){const m=u.indexOf(":");m===-1?d[1]=u:(d[0]=u.slice(0,m),d[1]=u.slice(m+1))}c&&("type"in c||"position"in c?c.position&&(p=c.position):"start"in c||"end"in c?p=c:("line"in c||"column"in c)&&(p.start=c)),this.name=oD(c)||"1:1",this.message=typeof r=="object"?r.message:r,this.stack=typeof r=="object"?r.stack:"",this.reason=this.message,this.fatal,this.line=p.start.line,this.column=p.start.column,this.source=d[0],this.ruleId=d[1],this.position=p,this.actual,this.expected,this.file,this.url,this.note}}Av.prototype.file="";Av.prototype.name="";Av.prototype.reason="";Av.prototype.message="";Av.prototype.stack="";Av.prototype.fatal=null;Av.prototype.column=null;Av.prototype.line=null;Av.prototype.source=null;Av.prototype.ruleId=null;Av.prototype.position=null;const Px={basename:mZn,dirname:vZn,extname:yZn,join:wZn,sep:"/"};function mZn(n,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');PW(n);let c=0,u=-1,d=n.length,p;if(r===void 0||r.length===0||r.length>n.length){for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else u<0&&(p=!0,u=d+1);return u<0?"":n.slice(c,u)}if(r===n)return"";let m=-1,x=r.length-1;for(;d--;)if(n.charCodeAt(d)===47){if(p){c=d+1;break}}else m<0&&(p=!0,m=d+1),x>-1&&(n.charCodeAt(d)===r.charCodeAt(x--)?x<0&&(u=d):(x=-1,u=m));return c===u?u=m:u<0&&(u=n.length),n.slice(c,u)}function vZn(n){if(PW(n),n.length===0)return".";let r=-1,c=n.length,u;for(;--c;)if(n.charCodeAt(c)===47){if(u){r=c;break}}else u||(u=!0);return r<0?n.charCodeAt(0)===47?"/":".":r===1&&n.charCodeAt(0)===47?"//":n.slice(0,r)}function yZn(n){PW(n);let r=n.length,c=-1,u=0,d=-1,p=0,m;for(;r--;){const x=n.charCodeAt(r);if(x===47){if(m){u=r+1;break}continue}c<0&&(m=!0,c=r+1),x===46?d<0?d=r:p!==1&&(p=1):d>-1&&(p=-1)}return d<0||c<0||p===0||p===1&&d===c-1&&d===u+1?"":n.slice(d,c)}function wZn(...n){let r=-1,c;for(;++r0&&n.charCodeAt(n.length-1)===47&&(c+="/"),r?"/"+c:c}function SZn(n,r){let c="",u=0,d=-1,p=0,m=-1,x,E;for(;++m<=n.length;){if(m2){if(E=c.lastIndexOf("/"),E!==c.length-1){E<0?(c="",u=0):(c=c.slice(0,E),u=c.length-1-c.lastIndexOf("/")),d=m,p=0;continue}}else if(c.length>0){c="",u=0,d=m,p=0;continue}}r&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+n.slice(d+1,m):c=n.slice(d+1,m),u=m-d-1;d=m,p=0}else x===46&&p>-1?p++:p=-1}return c}function PW(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const EZn={cwd:kZn};function kZn(){return"/"}function hOe(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function CZn(n){if(typeof n=="string")n=new URL(n);else if(!hOe(n)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(n.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return IZn(n)}function IZn(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const r=n.pathname;let c=-1;for(;++c{if(Z||!H||!ce)te(Z);else{const pe=p.stringify(H,ce);pe==null||(_Zn(pe)?ce.value=pe:ce.result=pe),te(Z,ce)}});function te(Z,H){Z||!H?F(Z):B?B(H):$(null,H)}}}function N(j){let $;p.freeze(),X7e("processSync",p.Parser),K7e("processSync",p.Compiler);const L=wU(j);return p.process(L,B),zTt("processSync","process",$),L;function B(F){$=!0,_Tt(F)}}}function BTt(n,r){return typeof n=="function"&&n.prototype&&(PZn(n.prototype)||r in n.prototype)}function PZn(n){let r;for(r in n)if(xVt.call(n,r))return!0;return!1}function X7e(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `Parser`")}function K7e(n,r){if(typeof r!="function")throw new TypeError("Cannot `"+n+"` without `Compiler`")}function Y7e(n,r){if(r)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function VTt(n){if(!dOe(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function zTt(n,r,c){if(!c)throw new Error("`"+n+"` finished async. Use `"+r+"` instead")}function wU(n){return OZn(n)?n:new TZn(n)}function OZn(n){return Boolean(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function _Zn(n){return typeof n=="string"||$Ne(n)}function MZn(n,r){var{includeImageAlt:c=!0}=r||{};return EVt(n,c)}function EVt(n,r){return n&&typeof n=="object"&&(n.value||(r?n.alt:"")||"children"in n&&UTt(n.children,r)||Array.isArray(n)&&UTt(n,r))||""}function UTt(n,r){for(var c=[],u=-1;++ud?0:d+r:r=r>d?d:r,c=c>0?c:0,u.length<1e4)m=Array.from(u),m.unshift(r,c),[].splice.apply(n,m);else for(c&&[].splice.apply(n,[r,c]);p0?(t3(n,n.length,0,r),n):r}const HTt={}.hasOwnProperty;function DZn(n){const r={};let c=-1;for(;++cm))return;const H=r.events.length;let ce=H,pe,fe;for(;ce--;)if(r.events[ce][0]==="exit"&&r.events[ce][1].type==="chunkFlow"){if(pe){fe=r.events[ce][1].end;break}pe=!0}for(L(u),Z=H;ZF;){const te=c[X];r.containerState=te[1],te[0].exit.call(r,n)}c.length=F}function B(){d.write([null]),p=void 0,d=void 0,r.containerState._closeFlow=void 0}}function qZn(n,r,c){return Qc(n,n.attempt(this.parser.constructs.document,r,c),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function GTt(n){if(n===null||wv(n)||FZn(n))return 1;if(BZn(n))return 2}function LNe(n,r,c){const u=[];let d=-1;for(;++d1&&n[c][1].end.offset-n[c][1].start.offset>1?2:1;const P=Object.assign({},n[u][1].end),I=Object.assign({},n[c][1].start);XTt(P,-E),XTt(I,E),m={type:E>1?"strongSequence":"emphasisSequence",start:P,end:Object.assign({},n[u][1].end)},x={type:E>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[c][1].start),end:I},p={type:E>1?"strongText":"emphasisText",start:Object.assign({},n[u][1].end),end:Object.assign({},n[c][1].start)},d={type:E>1?"strong":"emphasis",start:Object.assign({},m.start),end:Object.assign({},x.end)},n[u][1].end=Object.assign({},m.start),n[c][1].start=Object.assign({},x.end),k=[],n[u][1].end.offset-n[u][1].start.offset&&(k=hv(k,[["enter",n[u][1],r],["exit",n[u][1],r]])),k=hv(k,[["enter",d,r],["enter",m,r],["exit",m,r],["enter",p,r]]),k=hv(k,LNe(r.parser.constructs.insideSpan.null,n.slice(u+1,c),r)),k=hv(k,[["exit",p,r],["enter",x,r],["exit",x,r],["exit",d,r]]),n[c][1].end.offset-n[c][1].start.offset?(T=2,k=hv(k,[["enter",n[c][1],r],["exit",n[c][1],r]])):T=0,t3(n,u-1,c-u+3,k),c=u+k.length-T-2;break}}for(c=-1;++c=4?m(k):c(k)}function m(k){return k===null?E(k):jo(k)?n.attempt(rJn,m,E)(k):(n.enter("codeFlowValue"),x(k))}function x(k){return k===null||jo(k)?(n.exit("codeFlowValue"),m(k)):(n.consume(k),x)}function E(k){return n.exit("codeIndented"),r(k)}}function oJn(n,r,c){const u=this;return d;function d(m){return u.parser.lazy[u.now().line]?c(m):jo(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),d):Qc(n,p,"linePrefix",4+1)(m)}function p(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?r(m):jo(m)?d(m):c(m)}}const sJn={name:"codeText",tokenize:uJn,resolve:aJn,previous:cJn};function aJn(n){let r=n.length-4,c=3,u,d;if((n[c][1].type==="lineEnding"||n[c][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(u=c;++u=4?r(m):n.interrupt(u.parser.constructs.flow,c,r)(m)}}function AVt(n,r,c,u,d,p,m,x,E){const k=E||Number.POSITIVE_INFINITY;let T=0;return P;function P(L){return L===60?(n.enter(u),n.enter(d),n.enter(p),n.consume(L),n.exit(p),I):L===null||L===41||gOe(L)?c(L):(n.enter(u),n.enter(m),n.enter(x),n.enter("chunkString",{contentType:"string"}),j(L))}function I(L){return L===62?(n.enter(p),n.consume(L),n.exit(p),n.exit(d),n.exit(u),r):(n.enter(x),n.enter("chunkString",{contentType:"string"}),O(L))}function O(L){return L===62?(n.exit("chunkString"),n.exit(x),I(L)):L===null||L===60||jo(L)?c(L):(n.consume(L),L===92?N:O)}function N(L){return L===60||L===62||L===92?(n.consume(L),O):O(L)}function j(L){return L===40?++T>k?c(L):(n.consume(L),j):L===41?T--?(n.consume(L),j):(n.exit("chunkString"),n.exit(x),n.exit(m),n.exit(u),r(L)):L===null||wv(L)?T?c(L):(n.exit("chunkString"),n.exit(x),n.exit(m),n.exit(u),r(L)):gOe(L)?c(L):(n.consume(L),L===92?$:j)}function $(L){return L===40||L===41||L===92?(n.consume(L),j):j(L)}}function PVt(n,r,c,u,d,p){const m=this;let x=0,E;return k;function k(O){return n.enter(u),n.enter(d),n.consume(O),n.exit(d),n.enter(p),T}function T(O){return O===null||O===91||O===93&&!E||O===94&&!x&&"_hiddenFootnoteSupport"in m.parser.constructs||x>999?c(O):O===93?(n.exit(p),n.enter(d),n.consume(O),n.exit(d),n.exit(u),r):jo(O)?(n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),T):(n.enter("chunkString",{contentType:"string"}),P(O))}function P(O){return O===null||O===91||O===93||jo(O)||x++>999?(n.exit("chunkString"),T(O)):(n.consume(O),E=E||!td(O),O===92?I:P)}function I(O){return O===91||O===92||O===93?(n.consume(O),x++,P):P(O)}}function OVt(n,r,c,u,d,p){let m;return x;function x(I){return n.enter(u),n.enter(d),n.consume(I),n.exit(d),m=I===40?41:I,E}function E(I){return I===m?(n.enter(d),n.consume(I),n.exit(d),n.exit(u),r):(n.enter(p),k(I))}function k(I){return I===m?(n.exit(p),E(m)):I===null?c(I):jo(I)?(n.enter("lineEnding"),n.consume(I),n.exit("lineEnding"),Qc(n,k,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),T(I))}function T(I){return I===m||I===null||jo(I)?(n.exit("chunkString"),k(I)):(n.consume(I),I===92?P:T)}function P(I){return I===m||I===92?(n.consume(I),T):T(I)}}function PH(n,r){let c;return u;function u(d){return jo(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c=!0,u):td(d)?Qc(n,u,c?"linePrefix":"lineSuffix")(d):r(d)}}function sD(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bJn={name:"definition",tokenize:vJn},mJn={tokenize:yJn,partial:!0};function vJn(n,r,c){const u=this;let d;return p;function p(E){return n.enter("definition"),PVt.call(u,n,m,c,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function m(E){return d=sD(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),PH(n,AVt(n,n.attempt(mJn,Qc(n,x,"whitespace"),Qc(n,x,"whitespace")),c,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):c(E)}function x(E){return E===null||jo(E)?(n.exit("definition"),u.parser.defined.includes(d)||u.parser.defined.push(d),r(E)):c(E)}}function yJn(n,r,c){return u;function u(m){return wv(m)?PH(n,d)(m):c(m)}function d(m){return m===34||m===39||m===40?OVt(n,Qc(n,p,"whitespace"),c,"definitionTitle","definitionTitleMarker","definitionTitleString")(m):c(m)}function p(m){return m===null||jo(m)?r(m):c(m)}}const wJn={name:"hardBreakEscape",tokenize:xJn};function xJn(n,r,c){return u;function u(p){return n.enter("hardBreakEscape"),n.enter("escapeMarker"),n.consume(p),d}function d(p){return jo(p)?(n.exit("escapeMarker"),n.exit("hardBreakEscape"),r(p)):c(p)}}const SJn={name:"headingAtx",tokenize:kJn,resolve:EJn};function EJn(n,r){let c=n.length-2,u=3,d,p;return n[u][1].type==="whitespace"&&(u+=2),c-2>u&&n[c][1].type==="whitespace"&&(c-=2),n[c][1].type==="atxHeadingSequence"&&(u===c-1||c-4>u&&n[c-2][1].type==="whitespace")&&(c-=u+1===c?2:4),c>u&&(d={type:"atxHeadingText",start:n[u][1].start,end:n[c][1].end},p={type:"chunkText",start:n[u][1].start,end:n[c][1].end,contentType:"text"},t3(n,u,c-u+1,[["enter",d,r],["enter",p,r],["exit",p,r],["exit",d,r]])),n}function kJn(n,r,c){const u=this;let d=0;return p;function p(T){return n.enter("atxHeading"),n.enter("atxHeadingSequence"),m(T)}function m(T){return T===35&&d++<6?(n.consume(T),m):T===null||wv(T)?(n.exit("atxHeadingSequence"),u.interrupt?r(T):x(T)):c(T)}function x(T){return T===35?(n.enter("atxHeadingSequence"),E(T)):T===null||jo(T)?(n.exit("atxHeading"),r(T)):td(T)?Qc(n,x,"whitespace")(T):(n.enter("atxHeadingText"),k(T))}function E(T){return T===35?(n.consume(T),E):(n.exit("atxHeadingSequence"),x(T))}function k(T){return T===null||T===35||wv(T)?(n.exit("atxHeadingText"),x(T)):(n.consume(T),k)}}const CJn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],QTt=["pre","script","style","textarea"],IJn={name:"htmlFlow",tokenize:PJn,resolveTo:AJn,concrete:!0},TJn={tokenize:OJn,partial:!0};function AJn(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function PJn(n,r,c){const u=this;let d,p,m,x,E;return k;function k(xe){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(xe),T}function T(xe){return xe===33?(n.consume(xe),P):xe===47?(n.consume(xe),N):xe===63?(n.consume(xe),d=3,u.interrupt?r:ye):Lx(xe)?(n.consume(xe),m=String.fromCharCode(xe),p=!0,j):c(xe)}function P(xe){return xe===45?(n.consume(xe),d=2,I):xe===91?(n.consume(xe),d=5,m="CDATA[",x=0,O):Lx(xe)?(n.consume(xe),d=4,u.interrupt?r:ye):c(xe)}function I(xe){return xe===45?(n.consume(xe),u.interrupt?r:ye):c(xe)}function O(xe){return xe===m.charCodeAt(x++)?(n.consume(xe),x===m.length?u.interrupt?r:ve:O):c(xe)}function N(xe){return Lx(xe)?(n.consume(xe),m=String.fromCharCode(xe),j):c(xe)}function j(xe){return xe===null||xe===47||xe===62||wv(xe)?xe!==47&&p&&QTt.includes(m.toLowerCase())?(d=1,u.interrupt?r(xe):ve(xe)):CJn.includes(m.toLowerCase())?(d=6,xe===47?(n.consume(xe),$):u.interrupt?r(xe):ve(xe)):(d=7,u.interrupt&&!u.parser.lazy[u.now().line]?c(xe):p?B(xe):L(xe)):xe===45||kb(xe)?(n.consume(xe),m+=String.fromCharCode(xe),j):c(xe)}function $(xe){return xe===62?(n.consume(xe),u.interrupt?r:ve):c(xe)}function L(xe){return td(xe)?(n.consume(xe),L):pe(xe)}function B(xe){return xe===47?(n.consume(xe),pe):xe===58||xe===95||Lx(xe)?(n.consume(xe),F):td(xe)?(n.consume(xe),B):pe(xe)}function F(xe){return xe===45||xe===46||xe===58||xe===95||kb(xe)?(n.consume(xe),F):X(xe)}function X(xe){return xe===61?(n.consume(xe),te):td(xe)?(n.consume(xe),X):B(xe)}function te(xe){return xe===null||xe===60||xe===61||xe===62||xe===96?c(xe):xe===34||xe===39?(n.consume(xe),E=xe,Z):td(xe)?(n.consume(xe),te):(E=null,H(xe))}function Z(xe){return xe===null||jo(xe)?c(xe):xe===E?(n.consume(xe),ce):(n.consume(xe),Z)}function H(xe){return xe===null||xe===34||xe===39||xe===60||xe===61||xe===62||xe===96||wv(xe)?X(xe):(n.consume(xe),H)}function ce(xe){return xe===47||xe===62||td(xe)?B(xe):c(xe)}function pe(xe){return xe===62?(n.consume(xe),fe):c(xe)}function fe(xe){return td(xe)?(n.consume(xe),fe):xe===null||jo(xe)?ve(xe):c(xe)}function ve(xe){return xe===45&&d===2?(n.consume(xe),et):xe===60&&d===1?(n.consume(xe),jt):xe===62&&d===4?(n.consume(xe),De):xe===63&&d===3?(n.consume(xe),ye):xe===93&&d===5?(n.consume(xe),Ve):jo(xe)&&(d===6||d===7)?n.check(TJn,De,Ge)(xe):xe===null||jo(xe)?Ge(xe):(n.consume(xe),ve)}function Ge(xe){return n.exit("htmlFlowData"),qe(xe)}function qe(xe){return xe===null?be(xe):jo(xe)?n.attempt({tokenize:Je,partial:!0},qe,be)(xe):(n.enter("htmlFlowData"),ve(xe))}function Je(xe,Jt,an){return An;function An(ir){return xe.enter("lineEnding"),xe.consume(ir),xe.exit("lineEnding"),Wn}function Wn(ir){return u.parser.lazy[u.now().line]?an(ir):Jt(ir)}}function et(xe){return xe===45?(n.consume(xe),ye):ve(xe)}function jt(xe){return xe===47?(n.consume(xe),m="",Me):ve(xe)}function Me(xe){return xe===62&&QTt.includes(m.toLowerCase())?(n.consume(xe),De):Lx(xe)&&m.length<8?(n.consume(xe),m+=String.fromCharCode(xe),Me):ve(xe)}function Ve(xe){return xe===93?(n.consume(xe),ye):ve(xe)}function ye(xe){return xe===62?(n.consume(xe),De):xe===45&&d===2?(n.consume(xe),ye):ve(xe)}function De(xe){return xe===null||jo(xe)?(n.exit("htmlFlowData"),be(xe)):(n.consume(xe),De)}function be(xe){return n.exit("htmlFlow"),r(xe)}}function OJn(n,r,c){return u;function u(d){return n.exit("htmlFlowData"),n.enter("lineEndingBlank"),n.consume(d),n.exit("lineEndingBlank"),n.attempt(Ofe,r,c)}}const _Jn={name:"htmlText",tokenize:MJn};function MJn(n,r,c){const u=this;let d,p,m,x;return E;function E(be){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(be),k}function k(be){return be===33?(n.consume(be),T):be===47?(n.consume(be),H):be===63?(n.consume(be),te):Lx(be)?(n.consume(be),fe):c(be)}function T(be){return be===45?(n.consume(be),P):be===91?(n.consume(be),p="CDATA[",m=0,$):Lx(be)?(n.consume(be),X):c(be)}function P(be){return be===45?(n.consume(be),I):c(be)}function I(be){return be===null||be===62?c(be):be===45?(n.consume(be),O):N(be)}function O(be){return be===null||be===62?c(be):N(be)}function N(be){return be===null?c(be):be===45?(n.consume(be),j):jo(be)?(x=N,Ve(be)):(n.consume(be),N)}function j(be){return be===45?(n.consume(be),De):N(be)}function $(be){return be===p.charCodeAt(m++)?(n.consume(be),m===p.length?L:$):c(be)}function L(be){return be===null?c(be):be===93?(n.consume(be),B):jo(be)?(x=L,Ve(be)):(n.consume(be),L)}function B(be){return be===93?(n.consume(be),F):L(be)}function F(be){return be===62?De(be):be===93?(n.consume(be),F):L(be)}function X(be){return be===null||be===62?De(be):jo(be)?(x=X,Ve(be)):(n.consume(be),X)}function te(be){return be===null?c(be):be===63?(n.consume(be),Z):jo(be)?(x=te,Ve(be)):(n.consume(be),te)}function Z(be){return be===62?De(be):te(be)}function H(be){return Lx(be)?(n.consume(be),ce):c(be)}function ce(be){return be===45||kb(be)?(n.consume(be),ce):pe(be)}function pe(be){return jo(be)?(x=pe,Ve(be)):td(be)?(n.consume(be),pe):De(be)}function fe(be){return be===45||kb(be)?(n.consume(be),fe):be===47||be===62||wv(be)?ve(be):c(be)}function ve(be){return be===47?(n.consume(be),De):be===58||be===95||Lx(be)?(n.consume(be),Ge):jo(be)?(x=ve,Ve(be)):td(be)?(n.consume(be),ve):De(be)}function Ge(be){return be===45||be===46||be===58||be===95||kb(be)?(n.consume(be),Ge):qe(be)}function qe(be){return be===61?(n.consume(be),Je):jo(be)?(x=qe,Ve(be)):td(be)?(n.consume(be),qe):ve(be)}function Je(be){return be===null||be===60||be===61||be===62||be===96?c(be):be===34||be===39?(n.consume(be),d=be,et):jo(be)?(x=Je,Ve(be)):td(be)?(n.consume(be),Je):(n.consume(be),d=void 0,Me)}function et(be){return be===d?(n.consume(be),jt):be===null?c(be):jo(be)?(x=et,Ve(be)):(n.consume(be),et)}function jt(be){return be===62||be===47||wv(be)?ve(be):c(be)}function Me(be){return be===null||be===34||be===39||be===60||be===61||be===96?c(be):be===62||wv(be)?ve(be):(n.consume(be),Me)}function Ve(be){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(be),n.exit("lineEnding"),Qc(n,ye,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ye(be){return n.enter("htmlTextData"),x(be)}function De(be){return be===62?(n.consume(be),n.exit("htmlTextData"),n.exit("htmlText"),r):c(be)}}const BNe={name:"labelEnd",tokenize:LJn,resolveTo:$Jn,resolveAll:RJn},DJn={tokenize:FJn},NJn={tokenize:BJn},jJn={tokenize:VJn};function RJn(n){let r=-1,c;for(;++r-1&&(m[0]=m[0].slice(u)),p>0&&m.push(n[d].slice(0,p))),m}function fer(n,r){let c=-1;const u=[];let d;for(;++c13&&c<32||c>126&&c<160||c>55295&&c<57344||c>64975&&c<65008||(c&65535)===65535||(c&65535)===65534||c>1114111?"\uFFFD":String.fromCharCode(c)}const Cer=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ier(n){return n.replace(Cer,Ter)}function Ter(n,r,c){if(r)return r;if(c.charCodeAt(0)===35){const d=c.charCodeAt(1),p=d===120||d===88;return DVt(c.slice(p?2:1),p?16:10)}return FNe(c)||n}const mOe={}.hasOwnProperty,Aer=function(n,r,c){return typeof r!="string"&&(c=r,r=void 0),Per(c)(ker(Ser(c).document().write(Eer()(n,r,!0))))};function Per(n={}){const r=NVt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:E(In),autolinkProtocol:Ge,autolinkEmail:Ge,atxHeading:E(Ie),blockQuote:E(on),characterEscape:Ge,characterReference:Ge,codeFenced:E(Ne),codeFencedFenceInfo:k,codeFencedFenceMeta:k,codeIndented:E(Ne,k),codeText:E(at,k),codeTextData:Ge,data:Ge,codeFlowValue:Ge,definition:E(ae),definitionDestinationString:k,definitionLabelString:k,definitionTitleString:k,emphasis:E(Ee),hardBreakEscape:E(tt),hardBreakTrailing:E(tt),htmlFlow:E(en,k),htmlFlowData:Ge,htmlText:E(en,k),htmlTextData:Ge,image:E(gn),label:k,link:E(In),listItem:E(Ur),listItemValue:j,listOrdered:E(cr,N),listUnordered:E(cr),paragraph:E(eo),reference:Wn,referenceString:k,resourceDestinationString:k,resourceTitleString:k,setextHeading:E(Ie),strong:E(Tr),thematicBreak:E(Se)},exit:{atxHeading:P(),atxHeadingSequence:ce,autolink:P(),autolinkEmail:ut,autolinkProtocol:Ze,blockQuote:P(),characterEscapeValue:qe,characterReferenceMarkerHexadecimal:Jn,characterReferenceMarkerNumeric:Jn,characterReferenceValue:Gr,codeFenced:P(F),codeFencedFence:B,codeFencedFenceInfo:$,codeFencedFenceMeta:L,codeFlowValue:qe,codeIndented:P(X),codeText:P(Ve),codeTextData:qe,data:qe,definition:P(),definitionDestinationString:H,definitionLabelString:te,definitionTitleString:Z,emphasis:P(),hardBreakEscape:P(et),hardBreakTrailing:P(et),htmlFlow:P(jt),htmlFlowData:qe,htmlText:P(Me),htmlTextData:qe,image:P(De),label:xe,labelText:be,lineEnding:Je,link:P(ye),listItem:P(),listOrdered:P(),listUnordered:P(),paragraph:P(),referenceString:ir,resourceDestinationString:Jt,resourceTitleString:an,resource:An,setextHeading:P(ve),setextHeadingLineSequence:fe,setextHeadingText:pe,strong:P(),thematicBreak:P()}},n.mdastExtensions||[]),c={};return u;function u(K){let ie={type:"root",children:[]};const ke=[ie],nt=[],Nt=[],un={stack:ke,tokenStack:nt,config:r,enter:T,exit:I,buffer:k,resume:O,setData:p,getData:m};let Hr=-1;for(;++Hr0){const Oo=nt[nt.length-1];(Oo[1]||eAt).call(un,void 0,Oo[0])}for(ie.position={start:x(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:x(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Hr=-1;++Hr{const u=this.data("settings");return Aer(c,Object.assign({},u,n,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Rd=function(n,r,c){var u={type:String(n)};return c==null&&(typeof r=="string"||Array.isArray(r))?c=r:Object.assign(u,r),Array.isArray(c)?u.children=c:c!=null&&(u.value=String(c)),u};const $ae={}.hasOwnProperty;function Mer(n,r){const c=r.data||{};return"value"in r&&!($ae.call(c,"hName")||$ae.call(c,"hProperties")||$ae.call(c,"hChildren"))?n.augment(r,Rd("text",r.value)):n(r,"div",q1(n,r))}function jVt(n,r,c){const u=r&&r.type;let d;if(!u)throw new Error("Expected node, got `"+r+"`");return $ae.call(n.handlers,u)?d=n.handlers[u]:n.passThrough&&n.passThrough.includes(u)?d=Der:d=n.unknownHandler,(typeof d=="function"?d:Mer)(n,r,c)}function Der(n,r){return"children"in r?{...r,children:q1(n,r)}:r}function q1(n,r){const c=[];if("children"in r){const u=r.children;let d=-1;for(;++d":""))+")"})),I;function I(){let O=[],N,j,$;if((!r||d(x,E,k[k.length-1]||null))&&(O=Ver(c(x,k)),O[0]===tAt))return O;if(x.children&&O[0]!==Fer)for(j=(u?x.children.length:-1)+p,$=k.concat(x);j>-1&&j-1?u.offset:null}}}function zer(n){return!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column}const nAt={}.hasOwnProperty;function Uer(n){const r=Object.create(null);if(!n||!n.type)throw new Error("mdast-util-definitions expected node");return $Vt(n,"definition",u=>{const d=rAt(u.identifier);d&&!nAt.call(r,d)&&(r[d]=u)}),c;function c(u){const d=rAt(u);return d&&nAt.call(r,d)?r[d]:null}}function rAt(n){return String(n||"").toUpperCase()}const Her={'"':"quot","&":"amp","<":"lt",">":"gt"};function qer(n){return n.replace(/["&<>]/g,r);function r(c){return"&"+Her[c]+";"}}function VVt(n,r){const c=qer(Wer(n||""));if(!r)return c;const u=c.indexOf(":"),d=c.indexOf("?"),p=c.indexOf("#"),m=c.indexOf("/");return u<0||m>-1&&u>m||d>-1&&u>d||p>-1&&u>p||r.test(c.slice(0,u))?c:""}function Wer(n){const r=[];let c=-1,u=0,d=0;for(;++c55295&&p<57344){const x=n.charCodeAt(c+1);p<56320&&x>56319&&x<57344?(m=String.fromCharCode(p,x),d=1):m="\uFFFD"}else m=String.fromCharCode(p);m&&(r.push(n.slice(u,c),encodeURIComponent(m)),u=c+d+1,m=""),d&&(c+=d,d=0)}return r.join("")+n.slice(u)}function hS(n,r){const c=[];let u=-1;for(r&&c.push(Rd("text",` +`));++u0&&c.push(Rd("text",` +`)),c}function Ger(n){let r=-1;const c=[];for(;++r1?"-"+x:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};x>1&&P.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(x)}]}),E.length>0&&E.push({type:"text",value:" "}),E.push(P)}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const P=k.children[k.children.length-1];P&&P.type==="text"?P.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...E)}else d.push(...E);const T={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+m},children:hS(d,!0)};u.position&&(T.position=u.position),c.push(T)}return c.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:JSON.parse(JSON.stringify(n.footnoteLabelProperties)),children:[Rd("text",n.footnoteLabel)]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:hS(c,!0)},{type:"text",value:` +`}]}}function Xer(n,r){return n(r,"blockquote",hS(q1(n,r),!0))}function Ker(n,r){return[n(r,"br"),Rd("text",` +`)]}function Yer(n,r){const c=r.value?r.value+` +`:"",u=r.lang&&r.lang.match(/^[^ \t]+(?=[ \t]|$)/),d={};u&&(d.className=["language-"+u]);const p=n(r,"code",d,[Rd("text",c)]);return r.meta&&(p.data={meta:r.meta}),n(r.position,"pre",[p])}function Qer(n,r){return n(r,"del",q1(n,r))}function Zer(n,r){return n(r,"em",q1(n,r))}function zVt(n,r){const c=String(r.identifier),u=VVt(c.toLowerCase()),d=n.footnoteOrder.indexOf(c);let p;d===-1?(n.footnoteOrder.push(c),n.footnoteCounts[c]=1,p=n.footnoteOrder.length):(n.footnoteCounts[c]++,p=d+1);const m=n.footnoteCounts[c];return n(r,"sup",[n(r.position,"a",{href:"#"+n.clobberPrefix+"fn-"+u,id:n.clobberPrefix+"fnref-"+u+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Rd("text",String(p))])])}function Jer(n,r){const c=n.footnoteById;let u=1;for(;u in c;)u++;const d=String(u);return c[d]={type:"footnoteDefinition",identifier:d,children:[{type:"paragraph",children:r.children}],position:r.position},zVt(n,{type:"footnoteReference",identifier:d,position:r.position})}function etr(n,r){return n(r,"h"+r.depth,q1(n,r))}function ttr(n,r){return n.dangerous?n.augment(r,Rd("raw",r.value)):null}var iAt={};function ntr(n){var r,c,u=iAt[n];if(u)return u;for(u=iAt[n]=[],r=0;r<128;r++)c=String.fromCharCode(r),/^[0-9a-z]$/i.test(c)?u.push(c):u.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r"u"&&(c=!0),x=ntr(r),u=0,d=n.length;u=55296&&p<=57343){if(p>=55296&&p<=56319&&u+1=56320&&m<=57343)){E+=encodeURIComponent(n[u]+n[u+1]),u++;continue}E+="%EF%BF%BD";continue}E+=encodeURIComponent(n[u])}return E}Mfe.defaultChars=";/?:@&=+$,-_.!~*'()#";Mfe.componentChars="-_.!~*'()";var Dfe=Mfe;function UVt(n,r){const c=r.referenceType;let u="]";if(c==="collapsed"?u+="[]":c==="full"&&(u+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return Rd("text","!["+r.alt+u);const d=q1(n,r),p=d[0];p&&p.type==="text"?p.value="["+p.value:d.unshift(Rd("text","["));const m=d[d.length-1];return m&&m.type==="text"?m.value+=u:d.push(Rd("text",u)),d}function rtr(n,r){const c=n.definition(r.identifier);if(!c)return UVt(n,r);const u={src:Dfe(c.url||""),alt:r.alt};return c.title!==null&&c.title!==void 0&&(u.title=c.title),n(r,"img",u)}function itr(n,r){const c={src:Dfe(r.url),alt:r.alt};return r.title!==null&&r.title!==void 0&&(c.title=r.title),n(r,"img",c)}function otr(n,r){return n(r,"code",[Rd("text",r.value.replace(/\r?\n|\r/g," "))])}function str(n,r){const c=n.definition(r.identifier);if(!c)return UVt(n,r);const u={href:Dfe(c.url||"")};return c.title!==null&&c.title!==void 0&&(u.title=c.title),n(r,"a",u,q1(n,r))}function atr(n,r){const c={href:Dfe(r.url)};return r.title!==null&&r.title!==void 0&&(c.title=r.title),n(r,"a",c,q1(n,r))}function ctr(n,r,c){const u=q1(n,r),d=c?utr(c):HVt(r),p={},m=[];if(typeof r.checked=="boolean"){let k;u[0]&&u[0].type==="element"&&u[0].tagName==="p"?k=u[0]:(k=n(null,"p",[]),u.unshift(k)),k.children.length>0&&k.children.unshift(Rd("text"," ")),k.children.unshift(n(null,"input",{type:"checkbox",checked:r.checked,disabled:!0})),p.className=["task-list-item"]}let x=-1;for(;++x1:r}function ltr(n,r){const c={},u=r.ordered?"ol":"ul",d=q1(n,r);let p=-1;for(typeof r.start=="number"&&r.start!==1&&(c.start=r.start);++p0,!0),u[0]),d=u.index+u[0].length,u=c.exec(r);return p.push(aAt(r.slice(d),d>0,!1)),p.join("")}function aAt(n,r,c){let u=0,d=n.length;if(r){let p=n.codePointAt(u);for(;p===oAt||p===sAt;)u++,p=n.codePointAt(u)}if(c){let p=n.codePointAt(d-1);for(;p===oAt||p===sAt;)d--,p=n.codePointAt(d-1)}return d>u?n.slice(u,d):""}function btr(n,r){return n.augment(r,Rd("text",gtr(String(r.value))))}function mtr(n,r){return n(r,"hr")}const vtr={blockquote:Xer,break:Ker,code:Yer,delete:Qer,emphasis:Zer,footnoteReference:zVt,footnote:Jer,heading:etr,html:ttr,imageReference:rtr,image:itr,inlineCode:otr,linkReference:str,link:atr,listItem:ctr,list:ltr,paragraph:ftr,root:dtr,strong:htr,table:ptr,text:btr,thematicBreak:mtr,toml:Xse,yaml:Xse,definition:Xse,footnoteDefinition:Xse};function Xse(){return null}const ytr={}.hasOwnProperty;function wtr(n,r){const c=r||{},u=c.allowDangerousHtml||!1,d={};return m.dangerous=u,m.clobberPrefix=c.clobberPrefix===void 0||c.clobberPrefix===null?"user-content-":c.clobberPrefix,m.footnoteLabel=c.footnoteLabel||"Footnotes",m.footnoteLabelTagName=c.footnoteLabelTagName||"h2",m.footnoteLabelProperties=c.footnoteLabelProperties||{id:"footnote-label",className:["sr-only"]},m.footnoteBackLabel=c.footnoteBackLabel||"Back to content",m.definition=Uer(n),m.footnoteById=d,m.footnoteOrder=[],m.footnoteCounts={},m.augment=p,m.handlers={...vtr,...c.handlers},m.unknownHandler=c.unknownHandler,m.passThrough=c.passThrough,$Vt(n,"footnoteDefinition",x=>{const E=String(x.identifier).toUpperCase();ytr.call(d,E)||(d[E]=x)}),m;function p(x,E){if(x&&"data"in x&&x.data){const k=x.data;k.hName&&(E.type!=="element"&&(E={type:"element",tagName:"",properties:{},children:[]}),E.tagName=k.hName),E.type==="element"&&k.hProperties&&(E.properties={...E.properties,...k.hProperties}),"children"in E&&E.children&&k.hChildren&&(E.children=k.hChildren)}if(x){const k="type"in x?x:{position:x};zer(k)||(E.position={start:LVt(k),end:FVt(k)})}return E}function m(x,E,k,T){return Array.isArray(k)&&(T=k,k={}),p(x,{type:"element",tagName:E,properties:k||{},children:T||[]})}}function qVt(n,r){const c=wtr(n,r),u=jVt(c,n,null),d=Ger(c);return d&&u.children.push(Rd("text",` +`),d),Array.isArray(u)?{type:"root",children:u}:u}const xtr=function(n,r){return n&&"run"in n?Etr(n,r):ktr(n||r)},Str=xtr;function Etr(n,r){return(c,u,d)=>{n.run(qVt(c,r),u,p=>{d(p)})}}function ktr(n){return r=>qVt(r,n)}class OW{constructor(r,c,u){this.property=r,this.normal=c,u&&(this.space=u)}}OW.prototype.property={};OW.prototype.normal={};OW.prototype.space=null;function WVt(n,r){const c={},u={};let d=-1;for(;++d4&&c.slice(0,4)==="data"&&Ptr.test(r)){if(r.charAt(4)==="-"){const p=r.slice(5).replace(uAt,Dtr);u="data"+p.charAt(0).toUpperCase()+p.slice(1)}else{const p=r.slice(4);if(!uAt.test(p)){let m=p.replace(Otr,Mtr);m.charAt(0)!=="-"&&(m="-"+m),r="data"+m}}d=VNe}return new d(u,r)}function Mtr(n){return"-"+n.toLowerCase()}function Dtr(n){return n.charAt(1).toUpperCase()}const lAt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ntr=WVt([KVt,XVt,ZVt,JVt,Ttr],"html"),jtr=WVt([KVt,XVt,ZVt,JVt,Atr],"svg"),ezt=function(n){if(n==null)return Ftr;if(typeof n=="string")return Ltr(n);if(typeof n=="object")return Array.isArray(n)?Rtr(n):$tr(n);if(typeof n=="function")return Nfe(n);throw new Error("Expected function, string, or object as test")};function Rtr(n){const r=[];let c=-1;for(;++c":""))+")"})),I;function I(){let O=[],N,j,$;if((!r||d(x,E,k[k.length-1]||null))&&(O=Utr(c(x,k)),O[0]===fAt))return O;if(x.children&&O[0]!==Vtr)for(j=(u?x.children.length:-1)+p,$=k.concat(x);j>-1&&j{Htr(r,"element",(c,u,d)=>{const p=d;let m;if(n.allowedElements?m=!n.allowedElements.includes(c.tagName):n.disallowedElements&&(m=n.disallowedElements.includes(c.tagName)),!m&&n.allowElement&&typeof u=="number"&&(m=!n.allowElement(c,u,p)),m&&typeof u=="number")return n.unwrapDisallowed&&c.children?p.children.splice(u,1,...c.children):p.children.splice(u,1),u})}}var tzt={exports:{}},Cc={};/** + * @license React + * react-is.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 zNe=Symbol.for("react.element"),UNe=Symbol.for("react.portal"),jfe=Symbol.for("react.fragment"),Rfe=Symbol.for("react.strict_mode"),$fe=Symbol.for("react.profiler"),Lfe=Symbol.for("react.provider"),Ffe=Symbol.for("react.context"),Wtr=Symbol.for("react.server_context"),Bfe=Symbol.for("react.forward_ref"),Vfe=Symbol.for("react.suspense"),zfe=Symbol.for("react.suspense_list"),Ufe=Symbol.for("react.memo"),Hfe=Symbol.for("react.lazy"),Gtr=Symbol.for("react.offscreen"),nzt;nzt=Symbol.for("react.module.reference");function Ov(n){if(typeof n=="object"&&n!==null){var r=n.$$typeof;switch(r){case zNe:switch(n=n.type,n){case jfe:case $fe:case Rfe:case Vfe:case zfe:return n;default:switch(n=n&&n.$$typeof,n){case Wtr:case Ffe:case Bfe:case Hfe:case Ufe:case Lfe:return n;default:return r}}case UNe:return r}}}Cc.ContextConsumer=Ffe;Cc.ContextProvider=Lfe;Cc.Element=zNe;Cc.ForwardRef=Bfe;Cc.Fragment=jfe;Cc.Lazy=Hfe;Cc.Memo=Ufe;Cc.Portal=UNe;Cc.Profiler=$fe;Cc.StrictMode=Rfe;Cc.Suspense=Vfe;Cc.SuspenseList=zfe;Cc.isAsyncMode=function(){return!1};Cc.isConcurrentMode=function(){return!1};Cc.isContextConsumer=function(n){return Ov(n)===Ffe};Cc.isContextProvider=function(n){return Ov(n)===Lfe};Cc.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===zNe};Cc.isForwardRef=function(n){return Ov(n)===Bfe};Cc.isFragment=function(n){return Ov(n)===jfe};Cc.isLazy=function(n){return Ov(n)===Hfe};Cc.isMemo=function(n){return Ov(n)===Ufe};Cc.isPortal=function(n){return Ov(n)===UNe};Cc.isProfiler=function(n){return Ov(n)===$fe};Cc.isStrictMode=function(n){return Ov(n)===Rfe};Cc.isSuspense=function(n){return Ov(n)===Vfe};Cc.isSuspenseList=function(n){return Ov(n)===zfe};Cc.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===jfe||n===$fe||n===Rfe||n===Vfe||n===zfe||n===Gtr||typeof n=="object"&&n!==null&&(n.$$typeof===Hfe||n.$$typeof===Ufe||n.$$typeof===Lfe||n.$$typeof===Ffe||n.$$typeof===Bfe||n.$$typeof===nzt||n.getModuleId!==void 0)};Cc.typeOf=Ov;(function(n){n.exports=Cc})(tzt);const Xtr=Fue(tzt.exports);function Ktr(n){var r=n&&typeof n=="object"&&n.type==="text"?n.value||"":n;return typeof r=="string"&&r.replace(/[ \t\n\f\r]/g,"")===""}function Ytr(n){return n.join(" ").trim()}function Qtr(n,r){var c=r||{};return n[n.length-1]===""&&(n=n.concat("")),n.join((c.padRight?" ":"")+","+(c.padLeft===!1?"":" ")).trim()}var dAt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ztr=/\n/g,Jtr=/^\s*/,enr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,tnr=/^:\s*/,nnr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,rnr=/^[;\s]*/,inr=/^\s+|\s+$/g,onr=` +`,hAt="/",pAt="*",J9="",snr="comment",anr="declaration",cnr=function(n,r){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];r=r||{};var c=1,u=1;function d(N){var j=N.match(Ztr);j&&(c+=j.length);var $=N.lastIndexOf(onr);u=~$?N.length-$:u+N.length}function p(){var N={line:c,column:u};return function(j){return j.position=new m(N),k(),j}}function m(N){this.start=N,this.end={line:c,column:u},this.source=r.source}m.prototype.content=n;function x(N){var j=new Error(r.source+":"+c+":"+u+": "+N);if(j.reason=N,j.filename=r.source,j.line=c,j.column=u,j.source=n,!r.silent)throw j}function E(N){var j=N.exec(n);if(!!j){var $=j[0];return d($),n=n.slice($.length),j}}function k(){E(Jtr)}function T(N){var j;for(N=N||[];j=P();)j!==!1&&N.push(j);return N}function P(){var N=p();if(!(hAt!=n.charAt(0)||pAt!=n.charAt(1))){for(var j=2;J9!=n.charAt(j)&&(pAt!=n.charAt(j)||hAt!=n.charAt(j+1));)++j;if(j+=2,J9===n.charAt(j-1))return x("End of comment missing");var $=n.slice(2,j-2);return u+=2,d($),n=n.slice(j),u+=2,N({type:snr,comment:$})}}function I(){var N=p(),j=E(enr);if(!!j){if(P(),!E(tnr))return x("property missing ':'");var $=E(nnr),L=N({type:anr,property:gAt(j[0].replace(dAt,J9)),value:$?gAt($[0].replace(dAt,J9)):J9});return E(rnr),L}}function O(){var N=[];T(N);for(var j;j=I();)j!==!1&&(N.push(j),T(N));return N}return k(),O()};function gAt(n){return n?n.replace(inr,J9):J9}var unr=cnr;function lnr(n,r){var c=null;if(!n||typeof n!="string")return c;for(var u,d=unr(n),p=typeof r=="function",m,x,E=0,k=d.length;E0?lt.createElement(I,x,T):lt.createElement(I,x)}function pnr(n){let r=-1;for(;++rString(r)).join("")}const bAt={}.hasOwnProperty,ynr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kse={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function HNe(n){for(const p in Kse)if(bAt.call(Kse,p)&&bAt.call(n,p)){const m=Kse[p];console.warn(`[react-markdown] Warning: please ${m.to?`use \`${m.to}\` instead of`:"remove"} \`${p}\` (see <${ynr}#${m.id}> for more info)`),delete Kse[p]}const r=AZn().use(_er).use(n.remarkPlugins||[]).use(Str,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(qtr,n),c=new pZn;typeof n.children=="string"?c.value=n.children:n.children!==void 0&&n.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${n.children}\`)`);const u=r.runSync(r.parse(c),c);if(u.type!=="root")throw new TypeError("Expected a `root` node");let d=z(Si,{children:rzt({options:n,schema:Ntr,listDepth:0},u)});return n.className&&(d=z("div",{className:n.className,children:d})),d}HNe.defaultProps={transformLinkUri:rZn};HNe.propTypes={children:Nn.exports.string,className:Nn.exports.string,allowElement:Nn.exports.func,allowedElements:Nn.exports.arrayOf(Nn.exports.string),disallowedElements:Nn.exports.arrayOf(Nn.exports.string),unwrapDisallowed:Nn.exports.bool,remarkPlugins:Nn.exports.arrayOf(Nn.exports.oneOfType([Nn.exports.object,Nn.exports.func,Nn.exports.arrayOf(Nn.exports.oneOfType([Nn.exports.bool,Nn.exports.string,Nn.exports.object,Nn.exports.func,Nn.exports.arrayOf(Nn.exports.any)]))])),rehypePlugins:Nn.exports.arrayOf(Nn.exports.oneOfType([Nn.exports.object,Nn.exports.func,Nn.exports.arrayOf(Nn.exports.oneOfType([Nn.exports.bool,Nn.exports.string,Nn.exports.object,Nn.exports.func,Nn.exports.arrayOf(Nn.exports.any)]))])),sourcePos:Nn.exports.bool,rawSourcePos:Nn.exports.bool,skipHtml:Nn.exports.bool,includeElementIndex:Nn.exports.bool,transformLinkUri:Nn.exports.oneOfType([Nn.exports.func,Nn.exports.bool]),linkTarget:Nn.exports.oneOfType([Nn.exports.func,Nn.exports.string]),transformImageUri:Nn.exports.func,components:Nn.exports.object};const wnr=Qt(HNe),xnr={ol:n=>z(MNt,{...n,ordered:void 0}),ul:n=>z(DNt,{...n,ordered:void 0}),p:({...n})=>z(Fi,{...n}),a:fq,blockquote:({...n})=>z(Fi,{paddingLeft:"2",borderLeftWidth:"2px",borderColor:"whiteAlpha.400",...n})},Snr={display:"flex",flexDirection:"column",gap:"2","h1, h2, h3":{fontSize:"md"},"h1, h2, h3, strong":{fontVariationSettings:"'wght' 700"},a:{color:"blue.300",_hover:{textDecoration:"underline"}},blockquote:{borderLeft:"2px solid currentColor",paddingLeft:"2"},li:{marginLeft:"4"},pre:{overflow:"hidden",textOverflow:"ellipsis"}},qNe=({children:n,components:r={},__css:c={}})=>z(wnr,{__css:{...Snr,...c},components:{...xnr,...r},children:n});function izt(n,r){U.exports.useLayoutEffect(()=>{const c=n.current;if(!c||!r)return;r(c.getBoundingClientRect());const u=new ResizeObserver(()=>{requestAnimationFrame(()=>{c.ownerDocument.contains(c)&&r(c.getBoundingClientRect())})});return u.observe(c),()=>{u.unobserve(c)}},[n,r])}const z9=({children:n})=>z(nl,{whiteSpace:"nowrap",textOverflow:"ellipsis",children:n}),tTe=n=>z(Tn,{height:"6px",width:"6px",borderRadius:"6px",bg:n.bg||"transparent",display:"inline-block",border:"1px",borderColor:"whiteAlpha.500"}),ozt=({eventType:n,guard:r})=>{const c=ya(u=>{if("invocationId"in n)return u.getInvocationById(n.invocationId)});return n.type==="state.done"?We(z9,{children:[z(tTe,{bg:"green.400"}),z(Fi,{as:"em",children:"onDone"})]}):n.type==="invocation.done"&&c?We(z9,{children:[z(tTe,{bg:"green.400"}),z("em",{children:"done:"})," ",z(Fi,{children:c.userIdOverride||c.src})]}):n.type==="invocation.error"&&c?We(z9,{children:[z(tTe,{bg:"orange.400"}),z("em",{children:"error:"})," ",z(Fi,{children:c.userIdOverride||c.src})]}):n.type==="after"?We(z9,{children:[z("em",{children:"after"})," ",isNaN(Number(n.delay))?z(Fi,{children:n.delay}):z(aN,{label:`${(+n.delay).toLocaleString("en-US")} ms`,children:z(Fi,{children:Xce(n.delay).toString()})})]}):n.type==="always"?r?null:z(z9,{children:z("em",{children:"always"})}):n.type==="wildcard"?z(z9,{children:z(Fi,{children:"*"})}):n.type==="named"?z(z9,{children:z(Fi,{children:n.eventType})}):null},Enr=({actions:n,description:r,isActiveInSimulation:c=!1,...u})=>{const{getColorModeValue:d}=ei();return We(Tn,{fontSize:"sm",borderBottomRadius:"2xl",overflow:"hidden",color:d(c?"whiteAlpha.800":"gray.600","gray.300"),_empty:{display:"none"},...u,children:[(n||[]).length>0&&z(V1,{py:"3",spacing:"1.5",children:n==null?void 0:n.map((p,m)=>z(EYn,{action:p,isActiveInSimulation:c},m))}),r&&z(Tn,{color:c?"whiteAlpha.700":d("gray.600","gray.400"),px:"3",pb:"3",children:z(Tn,{width:"max-content",maxWidth:"xs",fontSize:"sm",children:z(qNe,{children:r})})})]})};function knr({actions:n,description:r,edgeId:c,eventType:u,isActiveInSimulation:d,onLabelRect:p,selected:m,eventTypeData:x,style:E}){const k=lt.useRef(null),T=lt.useRef(null),P=lt.useRef(null),I=Zc(),O=LGn(),N=jw(),j=lt.useRef(null),$=lt.useRef(null),{getColorModeValue:L}=ei(),B=U.exports.useContext(mN);izt(T,lt.useCallback(Je=>{const et=ZDe(Je,B.current);p==null||p(et)},[]));const{sourceId:F,targetId:X,guard:te,edgeGuardText:Z,edgeIndex:H,edgeOrdinal:ce}=jd(c,Je=>{var Me;const et=Je.getGroup(),jt=Je.getEdgeGroupIndex();return{sourceId:Je.getNodeSource().getSerialisableId(),targetId:Je.target.getSerialisableId(),guard:Je.data.guard,edgeGuardText:Cnr({edgeIndex:jt,guard:(Me=Je.data.guard)==null?void 0:Me.type}),edgeIndex:jt,edgeOrdinal:et.length>1?jt+1:void 0}},Xo);mfe(k,{disabled:N,onDragStart:()=>{I.send({type:"selection.moveStart"})},onDrag:({delta:Je})=>{I.send({type:"selection.move",delta:Je})},onDragEnd:()=>{I.send({type:"selection.moveEnd"})}},B),MFt("edge",c,{labelInputRef:j,guardInputRef:$}),U.exports.useEffect(()=>Il.bind(k.current,{type:"pointerdown",listener:Je=>{d?(qce(Je,c),O.send({type:"SIMULATION.EVENT.CLICK",eventType:u,guardName:te==null?void 0:te.type})):N||m||(qce(Je,c),I.send({type:rLt(Je)?"select":"select.start",entity:{id:c,type:"edge"},mode:Je.shiftKey?"multi":"single"}))}}),[m,d,N,c,u,I,O,te==null?void 0:te.type]);const pe=jFt(c),fe=jd(c,(Je,et)=>{var jt;return(jt=LLt(Je,et))!=null?jt:[]},MD),ve=jd(c,Je=>{var et;return(et=FLt(Je))!=null?et:[]},MD),Ge=_k({value:u,focusRefOnKeyDownCommit:k,commitOnEsc:!0,onCommit:Je=>I.send({type:"edge.modify.eventType",edgeId:c,eventTypeData:{type:"named",eventType:Je}})}),qe=_k({value:(te==null?void 0:te.type)||"",focusRefOnKeyDownCommit:k,commitOnEsc:!0,onCommit:Je=>I.send({type:"edge.modify.guard",edgeId:c,guard:{type:Je}})});return z(Tn,{tabIndex:-1,ref:k,display:"grid","data-edge-id":c,userSelect:"none",pointerEvents:"auto",style:{outline:"none",...E},children:We(Tn,{ref:T,rounded:"2xl",background:d?L("primary.600","primary.600"):L(N?"gray.50":"gray.25","gray.900"),borderColor:L("gray.100","whiteAlpha.200"),sx:{"&:hover":d?{background:"primary.600"}:{}},paddingY:"0.5",paddingX:"1",borderWidth:L("2px","2px"),color:d?L("white","white"):N?L("gray.500","gray.400"):L("gray.800","gray.50"),...d&&{borderColor:L("primary.600","whiteAlpha.300"),borderWidth:"1px"},shadow:d?"md":"none",children:[z(yVt,{hidden:N,errors:fe,warnings:ve}),We(Tn,{"data-edge-active":d,"data-testname":`${u}#label`,"data-test-event-group-index":H,"data-full-testname":`${F}#${X}#${u}#label`,display:"flex",flexDir:"row",alignItems:"center",gap:"1",gridColumnGap:"1",ref:P,paddingX:"2",paddingY:"1",...n.length>0&&{borderBottom:L("1px","1px"),borderColor:d?"whiteAlpha.300":L("gray.100","gray.700")},children:[typeof ce=="number"&&z(dVn,{width:"4",height:"4",number:ce,fill:d?"var(--chakra-colors-gray-800)":L("white","var(--chakra-colors-gray-800)"),color:d?"white":N?L("gray.400","gray.400"):L("gray.800","white"),pointerEvents:"none"}),x.type==="named"?z(uOe,{pointerEvents:pe?"auto":"none",isDisabled:N,px:"1",textStyle:"semibold",fontSize:"md",onPointerDownCapture:Je=>{Je.stopPropagation()},ref:j,selectOnFocus:!0,...Ge}):z(ozt,{eventType:x,guard:Z}),Z&&We(Tn,{whiteSpace:"nowrap",fontSize:"xs",borderRadius:"full",display:"flex",flexDir:"row",alignItems:"center",gap:"1",ml:"1.5",children:[z(Fi,{as:"span",color:d?"whiteAlpha.700":L("gray.600","gray.400"),textStyle:"bold",children:Z}),z(uOe,{ref:$,textStyle:"semibold","data-test-edge-guard":te==null?void 0:te.type,pointerEvents:pe?"auto":"none",isDisabled:N,px:"1",selectOnFocus:!0,...qe})]})]}),z(Tn,{children:z(Enr,{actions:n,description:r,isActiveInSimulation:d})})]})})}function Cnr({edgeIndex:n,guard:r}){return n===0?r?"IF":void 0:r?"ELSE IF":"ELSE"}const mAt=n=>z(Tn,{as:"span",children:n.paths.map(r=>{const c=r.join(".");return z(Fi,{children:c},c)})}),Inr=()=>{const{getColorModeValue:n}=ei(),r=U.exports.useContext(r1),c=Al(r,d=>d.context.eventLog,Xo),u=Al(r,d=>{var p;return zn.toStatePaths((p=d.context.initialState)==null?void 0:p.value)},Xo);return We(ERt,{w:"full",size:"sm",children:[z(r$n,{children:We(Z9e,{children:[z(d9t,{paddingInline:"0",letterSpacing:"widest",children:"Event"}),z(d9t,{paddingInline:"0",letterSpacing:"widest",children:"State"})]})}),We(i$n,{children:[We(Z9e,{children:[z(hse,{paddingInline:"0",fontSize:"xs",children:"Start"}),z(hse,{paddingInline:"0",fontSize:"xs",children:z(Uc,{bg:n("transparent","gray.800"),leftIcon:z(zce,{}),pl:"1",size:"xs",variant:"gray",onClick:()=>{r.send({type:"SIMULATION.EVENTLOG.CLICK",index:0})},children:z(mAt,{paths:u})})})]}),c.map((d,p)=>We(Z9e,{fontSize:"xs",children:[We(hse,{paddingInline:"0",children:[z(ozt,{eventType:F$t(d.event.type)}),d.guardNamesToEnsurePass[0]&&We(Fi,{fontSize:"xs",children:["(",d.guardNamesToEnsurePass[0],")"]})]}),z(hse,{paddingInline:"0",children:z(Uc,{bg:n("transparent","gray.800"),leftIcon:z(zce,{}),pl:"1",size:"xs",variant:"gray",onClick:()=>{r.send({type:"SIMULATION.EVENTLOG.CLICK",index:p+1})},children:z(mAt,{paths:zn.toStatePaths(d.newState.value)})})})]},p))]})]})};function qc(){return qc=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}function xN(n,r){if(n==null)return{};var c=Anr(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}function Pnr(n){if(Array.isArray(n))return n}function Onr(n,r){var c=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(c!=null){var u=[],d=!0,p=!1,m,x;try{for(c=c.call(n);!(d=(m=c.next()).done)&&(u.push(m.value),!(r&&u.length===r));d=!0);}catch(E){p=!0,x=E}finally{try{!d&&c.return!=null&&c.return()}finally{if(p)throw x}}return u}}function xOe(n,r){(r==null||r>n.length)&&(r=n.length);for(var c=0,u=new Array(r);c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nnr(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function jnr(n,r){return r&&(typeof r=="object"||typeof r=="function")?r:Nnr(n)}function KNe(n){var r=Dnr();return function(){var u=vue(n),d;if(r){var p=vue(this).constructor;d=Reflect.construct(u,arguments,p)}else d=u.apply(this,arguments);return jnr(this,d)}}var Rnr=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],yue=function(){};function $nr(n,r){return r?r[0]==="-"?n+r:n+"__"+r:n}function Lnr(n,r,c){var u=[c];if(r&&n)for(var d in r)r.hasOwnProperty(d)&&r[d]&&u.push("".concat($nr(n,d)));return u.filter(function(p){return p}).map(function(p){return String(p).trim()}).join(" ")}var wAt=function(r){return Xnr(r)?r.filter(Boolean):SOe(r)==="object"&&r!==null?[r]:[]},azt=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var c=xN(r,Rnr);return Pu({},c)};function qfe(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function Fnr(n){return qfe(n)?window.innerHeight:n.clientHeight}function czt(n){return qfe(n)?window.pageYOffset:n.scrollTop}function wue(n,r){if(qfe(n)){window.scrollTo(0,r);return}n.scrollTop=r}function Bnr(n){var r=getComputedStyle(n),c=r.position==="absolute",u=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var d=n;d=d.parentElement;)if(r=getComputedStyle(d),!(c&&r.position==="static")&&u.test(r.overflow+r.overflowY+r.overflowX))return d;return document.documentElement}function Vnr(n,r,c,u){return c*((n=n/u-1)*n*n+1)+r}function Yse(n,r){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:yue,d=czt(n),p=r-d,m=10,x=0;function E(){x+=m;var k=Vnr(x,d,p,c);wue(n,k),xc.bottom?wue(n,Math.min(r.offsetTop+r.clientHeight-n.offsetHeight+d,n.scrollHeight)):u.top-d1?c-1:0),d=1;d=j)return{placement:"bottom",maxHeight:r};if(fe>=j&&!m)return p&&Yse(k,ve,qe),{placement:"bottom",maxHeight:r};if(!m&&fe>=u||m&&ce>=u){p&&Yse(k,ve,qe);var Je=m?ce-te:fe-te;return{placement:"bottom",maxHeight:Je}}if(d==="auto"||m){var et=r,jt=m?H:pe;return jt>=u&&(et=Math.min(jt-te-E.controlHeight,r)),{placement:"top",maxHeight:et}}if(d==="bottom")return p&&wue(k,ve),{placement:"bottom",maxHeight:r};break;case"top":if(H>=j)return{placement:"top",maxHeight:r};if(pe>=j&&!m)return p&&Yse(k,Ge,qe),{placement:"top",maxHeight:r};if(!m&&pe>=u||m&&H>=u){var Me=r;return(!m&&pe>=u||m&&H>=u)&&(Me=m?H-Z:pe-Z),p&&Yse(k,Ge,qe),{placement:"top",maxHeight:Me}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(d,'".'))}return T}function Qnr(n){var r={bottom:"top",top:"bottom"};return n?r[n]:"bottom"}var kOe=function(r){return r==="auto"?"bottom":r},Znr=function(r){var c,u=r.placement,d=r.theme,p=d.borderRadius,m=d.spacing,x=d.colors;return c={label:"menu"},eS(c,Qnr(u),"100%"),eS(c,"backgroundColor",x.neutral0),eS(c,"borderRadius",p),eS(c,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),eS(c,"marginBottom",m.menuGutter),eS(c,"marginTop",m.menuGutter),eS(c,"position","absolute"),eS(c,"width","100%"),eS(c,"zIndex",1),c},lzt=U.exports.createContext({getPortalPlacement:null}),fzt=function(n){XNe(c,n);var r=KNe(c);function c(){var u;WNe(this,c);for(var d=arguments.length,p=new Array(d),m=0;m1?"s":""," ").concat(p.join(","),", selected.");case"select-option":return m?"option ".concat(d," is disabled. Select another option."):"option ".concat(d,", selected.");default:return""}},onFocus:function(r){var c=r.context,u=r.focused,d=r.options,p=r.label,m=p===void 0?"":p,x=r.selectValue,E=r.isDisabled,k=r.isSelected,T=function(N,j){return N&&N.length?"".concat(N.indexOf(j)+1," of ").concat(N.length):""};if(c==="value"&&x)return"value ".concat(m," focused, ").concat(T(x,u),".");if(c==="menu"){var P=E?" disabled":"",I="".concat(k?"selected":"focused").concat(P);return"option ".concat(m," ").concat(I,", ").concat(T(d,u),".")}return""},onFilter:function(r){var c=r.inputValue,u=r.resultsMessage;return"".concat(u).concat(c?" for search term "+c:"",".")}},oir=function(r){var c=r.ariaSelection,u=r.focusedOption,d=r.focusedValue,p=r.focusableOptions,m=r.isFocused,x=r.selectValue,E=r.selectProps,k=r.id,T=E.ariaLiveMessages,P=E.getOptionLabel,I=E.inputValue,O=E.isMulti,N=E.isOptionDisabled,j=E.isSearchable,$=E.menuIsOpen,L=E.options,B=E.screenReaderStatus,F=E.tabSelectsValue,X=E["aria-label"],te=E["aria-live"],Z=U.exports.useMemo(function(){return Pu(Pu({},iir),T||{})},[T]),H=U.exports.useMemo(function(){var Je="";if(c&&Z.onChange){var et=c.option,jt=c.options,Me=c.removedValue,Ve=c.removedValues,ye=c.value,De=function(ir){return Array.isArray(ir)?null:ir},be=Me||et||De(ye),xe=be?P(be):"",Jt=jt||Ve||void 0,an=Jt?Jt.map(P):[],An=Pu({isDisabled:be&&N(be,x),label:xe,labels:an},c);Je=Z.onChange(An)}return Je},[c,Z,N,x,P]),ce=U.exports.useMemo(function(){var Je="",et=u||d,jt=!!(u&&x&&x.includes(u));if(et&&Z.onFocus){var Me={focused:et,label:P(et),isDisabled:N(et,x),isSelected:jt,options:L,context:et===u?"menu":"value",selectValue:x};Je=Z.onFocus(Me)}return Je},[u,d,P,N,Z,L,x]),pe=U.exports.useMemo(function(){var Je="";if($&&L.length&&Z.onFilter){var et=B({count:p.length});Je=Z.onFilter({inputValue:I,resultsMessage:et})}return Je},[p,I,$,Z,L,B]),fe=U.exports.useMemo(function(){var Je="";if(Z.guidance){var et=d?"value":$?"menu":"input";Je=Z.guidance({"aria-label":X,context:et,isDisabled:u&&N(u,x),isMulti:O,isSearchable:j,tabSelectsValue:F})}return Je},[X,u,d,O,N,j,$,Z,x,F]),ve="".concat(ce," ").concat(pe," ").concat(fe),Ge=ao(U.exports.Fragment,null,ao("span",{id:"aria-selection"},H),ao("span",{id:"aria-context"},ve)),qe=(c==null?void 0:c.action)==="initial-input-focus";return ao(U.exports.Fragment,null,ao(kAt,{id:k},qe&&Ge),ao(kAt,{"aria-live":te,"aria-atomic":"false","aria-relevant":"additions text"},m&&!qe&&Ge))},COe=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],sir=new RegExp("["+COe.map(function(n){return n.letters}).join("")+"]","g"),Szt={};for(var rTe=0;rTe-1}},lir=["innerRef"];function fir(n){var r=n.innerRef,c=xN(n,lir),u=Knr(c,"onExited","in","enter","exit","appear");return ao("input",qc({ref:r},u,{css:X_e({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var dir=function(r){r.preventDefault(),r.stopPropagation()};function hir(n){var r=n.isEnabled,c=n.onBottomArrive,u=n.onBottomLeave,d=n.onTopArrive,p=n.onTopLeave,m=U.exports.useRef(!1),x=U.exports.useRef(!1),E=U.exports.useRef(0),k=U.exports.useRef(null),T=U.exports.useCallback(function($,L){if(k.current!==null){var B=k.current,F=B.scrollTop,X=B.scrollHeight,te=B.clientHeight,Z=k.current,H=L>0,ce=X-te-F,pe=!1;ce>L&&m.current&&(u&&u($),m.current=!1),H&&x.current&&(p&&p($),x.current=!1),H&&L>ce?(c&&!m.current&&c($),Z.scrollTop=X,pe=!0,m.current=!0):!H&&-L>F&&(d&&!x.current&&d($),Z.scrollTop=0,pe=!0,x.current=!0),pe&&dir($)}},[c,u,d,p]),P=U.exports.useCallback(function($){T($,$.deltaY)},[T]),I=U.exports.useCallback(function($){E.current=$.changedTouches[0].clientY},[]),O=U.exports.useCallback(function($){var L=E.current-$.changedTouches[0].clientY;T($,L)},[T]),N=U.exports.useCallback(function($){if(!!$){var L=Wnr?{passive:!1}:!1;$.addEventListener("wheel",P,L),$.addEventListener("touchstart",I,L),$.addEventListener("touchmove",O,L)}},[O,I,P]),j=U.exports.useCallback(function($){!$||($.removeEventListener("wheel",P,!1),$.removeEventListener("touchstart",I,!1),$.removeEventListener("touchmove",O,!1))},[O,I,P]);return U.exports.useEffect(function(){if(!!r){var $=k.current;return N($),function(){j($)}}},[r,N,j]),function($){k.current=$}}var IAt=["boxSizing","height","overflow","paddingRight","position"],TAt={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function AAt(n){n.preventDefault()}function PAt(n){n.stopPropagation()}function OAt(){var n=this.scrollTop,r=this.scrollHeight,c=n+this.offsetHeight;n===0?this.scrollTop=1:c===r&&(this.scrollTop=n-1)}function _At(){return"ontouchstart"in window||navigator.maxTouchPoints}var MAt=!!(typeof window<"u"&&window.document&&window.document.createElement),xU=0,lM={capture:!1,passive:!1};function pir(n){var r=n.isEnabled,c=n.accountForScrollbars,u=c===void 0?!0:c,d=U.exports.useRef({}),p=U.exports.useRef(null),m=U.exports.useCallback(function(E){if(!!MAt){var k=document.body,T=k&&k.style;if(u&&IAt.forEach(function(N){var j=T&&T[N];d.current[N]=j}),u&&xU<1){var P=parseInt(d.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,O=window.innerWidth-I+P||0;Object.keys(TAt).forEach(function(N){var j=TAt[N];T&&(T[N]=j)}),T&&(T.paddingRight="".concat(O,"px"))}k&&_At()&&(k.addEventListener("touchmove",AAt,lM),E&&(E.addEventListener("touchstart",OAt,lM),E.addEventListener("touchmove",PAt,lM))),xU+=1}},[u]),x=U.exports.useCallback(function(E){if(!!MAt){var k=document.body,T=k&&k.style;xU=Math.max(xU-1,0),u&&xU<1&&IAt.forEach(function(P){var I=d.current[P];T&&(T[P]=I)}),k&&_At()&&(k.removeEventListener("touchmove",AAt,lM),E&&(E.removeEventListener("touchstart",OAt,lM),E.removeEventListener("touchmove",PAt,lM)))}},[u]);return U.exports.useEffect(function(){if(!!r){var E=p.current;return m(E),function(){x(E)}}},[r,m,x]),function(E){p.current=E}}var gir=function(){return document.activeElement&&document.activeElement.blur()},bir={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function mir(n){var r=n.children,c=n.lockEnabled,u=n.captureEnabled,d=u===void 0?!0:u,p=n.onBottomArrive,m=n.onBottomLeave,x=n.onTopArrive,E=n.onTopLeave,k=hir({isEnabled:d,onBottomArrive:p,onBottomLeave:m,onTopArrive:x,onTopLeave:E}),T=pir({isEnabled:c}),P=function(O){k(O),T(O)};return ao(U.exports.Fragment,null,c&&ao("div",{onClick:gir,css:bir}),r(P))}var vir=function(r){return r.label},yir=function(r){return r.label},wir=function(r){return r.value},xir=function(r){return!!r.isDisabled},Sir={clearIndicator:brr,container:srr,control:Srr,dropdownIndicator:prr,group:Crr,groupHeading:Trr,indicatorsContainer:lrr,indicatorSeparator:vrr,input:Orr,loadingIndicator:xrr,loadingMessage:rrr,menu:Znr,menuList:err,menuPortal:irr,multiValue:Nrr,multiValueLabel:jrr,multiValueRemove:Rrr,noOptionsMessage:nrr,option:Vrr,placeholder:Urr,singleValue:qrr,valueContainer:crr},Eir={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kir=4,kzt=4,Cir=38,Iir=kzt*2,Tir={baseUnit:kzt,controlHeight:Cir,menuGutter:Iir},sTe={borderRadius:kir,colors:Eir,spacing:Tir},Air={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xAt(),captureMenuScroll:!xAt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:uir(),formatGroupLabel:vir,getOptionLabel:yir,getOptionValue:wir,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:xir,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Hnr(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var c=r.count;return"".concat(c," result").concat(c!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function DAt(n,r,c,u){var d=Azt(n,r,c),p=Pzt(n,r,c),m=Tzt(n,r),x=xue(n,r);return{type:"option",data:r,isDisabled:d,isSelected:p,label:m,value:x,index:u}}function Czt(n,r){return n.options.map(function(c,u){if("options"in c){var d=c.options.map(function(m,x){return DAt(n,m,r,x)}).filter(function(m){return NAt(n,m)});return d.length>0?{type:"group",data:c,options:d,index:u}:void 0}var p=DAt(n,c,r,u);return NAt(n,p)?p:void 0}).filter(Gnr)}function Izt(n){return n.reduce(function(r,c){return c.type==="group"?r.push.apply(r,xzt(c.options.map(function(u){return u.data}))):r.push(c.data),r},[])}function Pir(n,r){return Izt(Czt(n,r))}function NAt(n,r){var c=n.inputValue,u=c===void 0?"":c,d=r.data,p=r.isSelected,m=r.label,x=r.value;return(!_zt(n)||!p)&&Ozt(n,{label:m,value:x,data:d},u)}function Oir(n,r){var c=n.focusedValue,u=n.selectValue,d=u.indexOf(c);if(d>-1){var p=r.indexOf(c);if(p>-1)return c;if(d-1?c:r[0]}var Tzt=function(r,c){return r.getOptionLabel(c)},xue=function(r,c){return r.getOptionValue(c)};function Azt(n,r,c){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(r,c):!1}function Pzt(n,r,c){if(c.indexOf(r)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(r,c);var u=xue(n,r);return c.some(function(d){return xue(n,d)===u})}function Ozt(n,r,c){return n.filterOption?n.filterOption(r,c):!0}var _zt=function(r){var c=r.hideSelectedOptions,u=r.isMulti;return c===void 0?u:c},Mir=1,Mzt=function(n){XNe(c,n);var r=KNe(c);function c(u){var d;return WNe(this,c),d=r.call(this,u),d.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},d.blockOptionHover=!1,d.isComposing=!1,d.commonProps=void 0,d.initialTouchX=0,d.initialTouchY=0,d.instancePrefix="",d.openAfterFocus=!1,d.scrollToFocusedOptionOnUpdate=!1,d.userIsDragging=void 0,d.controlRef=null,d.getControlRef=function(p){d.controlRef=p},d.focusedOptionRef=null,d.getFocusedOptionRef=function(p){d.focusedOptionRef=p},d.menuListRef=null,d.getMenuListRef=function(p){d.menuListRef=p},d.inputRef=null,d.getInputRef=function(p){d.inputRef=p},d.focus=d.focusInput,d.blur=d.blurInput,d.onChange=function(p,m){var x=d.props,E=x.onChange,k=x.name;m.name=k,d.ariaOnChange(p,m),E(p,m)},d.setValue=function(p,m,x){var E=d.props,k=E.closeMenuOnSelect,T=E.isMulti,P=E.inputValue;d.onInputChange("",{action:"set-value",prevInputValue:P}),k&&(d.setState({inputIsHiddenAfterUpdate:!T}),d.onMenuClose()),d.setState({clearFocusValueOnUpdate:!0}),d.onChange(p,{action:m,option:x})},d.selectOption=function(p){var m=d.props,x=m.blurInputOnSelect,E=m.isMulti,k=m.name,T=d.state.selectValue,P=E&&d.isOptionSelected(p,T),I=d.isOptionDisabled(p,T);if(P){var O=d.getOptionValue(p);d.setValue(T.filter(function(N){return d.getOptionValue(N)!==O}),"deselect-option",p)}else if(!I)E?d.setValue([].concat(xzt(T),[p]),"select-option",p):d.setValue(p,"select-option");else{d.ariaOnChange(p,{action:"select-option",option:p,name:k});return}x&&d.blurInput()},d.removeValue=function(p){var m=d.props.isMulti,x=d.state.selectValue,E=d.getOptionValue(p),k=x.filter(function(P){return d.getOptionValue(P)!==E}),T=Zse(m,k,k[0]||null);d.onChange(T,{action:"remove-value",removedValue:p}),d.focusInput()},d.clearValue=function(){var p=d.state.selectValue;d.onChange(Zse(d.props.isMulti,[],null),{action:"clear",removedValues:p})},d.popValue=function(){var p=d.props.isMulti,m=d.state.selectValue,x=m[m.length-1],E=m.slice(0,m.length-1),k=Zse(p,E,E[0]||null);d.onChange(k,{action:"pop-value",removedValue:x})},d.getValue=function(){return d.state.selectValue},d.cx=function(){for(var p=arguments.length,m=new Array(p),x=0;xT||k>T}},d.onTouchEnd=function(p){d.userIsDragging||(d.controlRef&&!d.controlRef.contains(p.target)&&d.menuListRef&&!d.menuListRef.contains(p.target)&&d.blurInput(),d.initialTouchX=0,d.initialTouchY=0)},d.onControlTouchEnd=function(p){d.userIsDragging||d.onControlMouseDown(p)},d.onClearIndicatorTouchEnd=function(p){d.userIsDragging||d.onClearIndicatorMouseDown(p)},d.onDropdownIndicatorTouchEnd=function(p){d.userIsDragging||d.onDropdownIndicatorMouseDown(p)},d.handleInputChange=function(p){var m=d.props.inputValue,x=p.currentTarget.value;d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange(x,{action:"input-change",prevInputValue:m}),d.props.menuIsOpen||d.onMenuOpen()},d.onInputFocus=function(p){d.props.onFocus&&d.props.onFocus(p),d.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(d.openAfterFocus||d.props.openMenuOnFocus)&&d.openMenu("first"),d.openAfterFocus=!1},d.onInputBlur=function(p){var m=d.props.inputValue;if(d.menuListRef&&d.menuListRef.contains(document.activeElement)){d.inputRef.focus();return}d.props.onBlur&&d.props.onBlur(p),d.onInputChange("",{action:"input-blur",prevInputValue:m}),d.onMenuClose(),d.setState({focusedValue:null,isFocused:!1})},d.onOptionHover=function(p){d.blockOptionHover||d.state.focusedOption===p||d.setState({focusedOption:p})},d.shouldHideSelectedOptions=function(){return _zt(d.props)},d.onKeyDown=function(p){var m=d.props,x=m.isMulti,E=m.backspaceRemovesValue,k=m.escapeClearsValue,T=m.inputValue,P=m.isClearable,I=m.isDisabled,O=m.menuIsOpen,N=m.onKeyDown,j=m.tabSelectsValue,$=m.openMenuOnFocus,L=d.state,B=L.focusedOption,F=L.focusedValue,X=L.selectValue;if(!I&&!(typeof N=="function"&&(N(p),p.defaultPrevented))){switch(d.blockOptionHover=!0,p.key){case"ArrowLeft":if(!x||T)return;d.focusValue("previous");break;case"ArrowRight":if(!x||T)return;d.focusValue("next");break;case"Delete":case"Backspace":if(T)return;if(F)d.removeValue(F);else{if(!E)return;x?d.popValue():P&&d.clearValue()}break;case"Tab":if(d.isComposing||p.shiftKey||!O||!j||!B||$&&d.isOptionSelected(B,X))return;d.selectOption(B);break;case"Enter":if(p.keyCode===229)break;if(O){if(!B||d.isComposing)return;d.selectOption(B);break}return;case"Escape":O?(d.setState({inputIsHiddenAfterUpdate:!1}),d.onInputChange("",{action:"menu-close",prevInputValue:T}),d.onMenuClose()):P&&k&&d.clearValue();break;case" ":if(T)return;if(!O){d.openMenu("first");break}if(!B)return;d.selectOption(B);break;case"ArrowUp":O?d.focusOption("up"):d.openMenu("last");break;case"ArrowDown":O?d.focusOption("down"):d.openMenu("first");break;case"PageUp":if(!O)return;d.focusOption("pageup");break;case"PageDown":if(!O)return;d.focusOption("pagedown");break;case"Home":if(!O)return;d.focusOption("first");break;case"End":if(!O)return;d.focusOption("last");break;default:return}p.preventDefault()}},d.instancePrefix="react-select-"+(d.props.instanceId||++Mir),d.state.selectValue=wAt(u.value),d}return GNe(c,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(d){var p=this.props,m=p.isDisabled,x=p.menuIsOpen,E=this.state.isFocused;(E&&!m&&d.isDisabled||E&&x&&!d.menuIsOpen)&&this.focusInput(),E&&m&&!d.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(znr(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(d,p){this.props.onInputChange(d,p)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(d){var p=this,m=this.state,x=m.selectValue,E=m.isFocused,k=this.buildFocusableOptions(),T=d==="first"?0:k.length-1;if(!this.props.isMulti){var P=k.indexOf(x[0]);P>-1&&(T=P)}this.scrollToFocusedOptionOnUpdate=!(E&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:k[T]},function(){return p.onMenuOpen()})}},{key:"focusValue",value:function(d){var p=this.state,m=p.selectValue,x=p.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var E=m.indexOf(x);x||(E=-1);var k=m.length-1,T=-1;if(!!m.length){switch(d){case"previous":E===0?T=0:E===-1?T=k:T=E-1;break;case"next":E>-1&&E0&&arguments[0]!==void 0?arguments[0]:"first",p=this.props.pageSize,m=this.state.focusedOption,x=this.getFocusableOptions();if(!!x.length){var E=0,k=x.indexOf(m);m||(k=-1),d==="up"?E=k>0?k-1:x.length-1:d==="down"?E=(k+1)%x.length:d==="pageup"?(E=k-p,E<0&&(E=0)):d==="pagedown"?(E=k+p,E>x.length-1&&(E=x.length-1)):d==="last"&&(E=x.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:x[E],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sTe):Pu(Pu({},sTe),this.props.theme):sTe}},{key:"getCommonProps",value:function(){var d=this.clearValue,p=this.cx,m=this.getStyles,x=this.getValue,E=this.selectOption,k=this.setValue,T=this.props,P=T.isMulti,I=T.isRtl,O=T.options,N=this.hasValue();return{clearValue:d,cx:p,getStyles:m,getValue:x,hasValue:N,isMulti:P,isRtl:I,options:O,selectOption:E,selectProps:T,setValue:k,theme:this.getTheme()}}},{key:"hasValue",value:function(){var d=this.state.selectValue;return d.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var d=this.props,p=d.isClearable,m=d.isMulti;return p===void 0?m:p}},{key:"isOptionDisabled",value:function(d,p){return Azt(this.props,d,p)}},{key:"isOptionSelected",value:function(d,p){return Pzt(this.props,d,p)}},{key:"filterOption",value:function(d,p){return Ozt(this.props,d,p)}},{key:"formatOptionLabel",value:function(d,p){if(typeof this.props.formatOptionLabel=="function"){var m=this.props.inputValue,x=this.state.selectValue;return this.props.formatOptionLabel(d,{context:p,inputValue:m,selectValue:x})}else return this.getOptionLabel(d)}},{key:"formatGroupLabel",value:function(d){return this.props.formatGroupLabel(d)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var d=this.props,p=d.isDisabled,m=d.isSearchable,x=d.inputId,E=d.inputValue,k=d.tabIndex,T=d.form,P=d.menuIsOpen,I=this.getComponents(),O=I.Input,N=this.state,j=N.inputIsHidden,$=N.ariaSelection,L=this.commonProps,B=x||this.getElementId("input"),F=Pu(Pu(Pu({"aria-autocomplete":"list","aria-expanded":P,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},P&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!m&&{"aria-readonly":!0}),this.hasValue()?($==null?void 0:$.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return m?z(O,{...L,autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:B,innerRef:this.getInputRef,isDisabled:p,isHidden:j,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:k,form:T,type:"text",value:E,...F}):z(fir,{id:B,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:yue,onFocus:this.onInputFocus,disabled:p,tabIndex:k,inputMode:"none",form:T,value:"",...F})}},{key:"renderPlaceholderOrValue",value:function(){var d=this,p=this.getComponents(),m=p.MultiValue,x=p.MultiValueContainer,E=p.MultiValueLabel,k=p.MultiValueRemove,T=p.SingleValue,P=p.Placeholder,I=this.commonProps,O=this.props,N=O.controlShouldRenderValue,j=O.isDisabled,$=O.isMulti,L=O.inputValue,B=O.placeholder,F=this.state,X=F.selectValue,te=F.focusedValue,Z=F.isFocused;if(!this.hasValue()||!N)return L?null:U.exports.createElement(P,{...I,key:"placeholder",isDisabled:j,isFocused:Z,innerProps:{id:this.getElementId("placeholder")}},B);if($)return X.map(function(ce,pe){var fe=ce===te,ve="".concat(d.getOptionLabel(ce),"-").concat(d.getOptionValue(ce));return U.exports.createElement(m,{...I,components:{Container:x,Label:E,Remove:k},isFocused:fe,isDisabled:j,key:ve,index:pe,removeProps:{onClick:function(){return d.removeValue(ce)},onTouchEnd:function(){return d.removeValue(ce)},onMouseDown:function(qe){qe.preventDefault()}},data:ce},d.formatOptionLabel(ce,"value"))});if(L)return null;var H=X[0];return z(T,{...I,data:H,isDisabled:j,children:this.formatOptionLabel(H,"value")})}},{key:"renderClearIndicator",value:function(){var d=this.getComponents(),p=d.ClearIndicator,m=this.commonProps,x=this.props,E=x.isDisabled,k=x.isLoading,T=this.state.isFocused;if(!this.isClearable()||!p||E||!this.hasValue()||k)return null;var P={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return z(p,{...m,innerProps:P,isFocused:T})}},{key:"renderLoadingIndicator",value:function(){var d=this.getComponents(),p=d.LoadingIndicator,m=this.commonProps,x=this.props,E=x.isDisabled,k=x.isLoading,T=this.state.isFocused;if(!p||!k)return null;var P={"aria-hidden":"true"};return z(p,{...m,innerProps:P,isDisabled:E,isFocused:T})}},{key:"renderIndicatorSeparator",value:function(){var d=this.getComponents(),p=d.DropdownIndicator,m=d.IndicatorSeparator;if(!p||!m)return null;var x=this.commonProps,E=this.props.isDisabled,k=this.state.isFocused;return z(m,{...x,isDisabled:E,isFocused:k})}},{key:"renderDropdownIndicator",value:function(){var d=this.getComponents(),p=d.DropdownIndicator;if(!p)return null;var m=this.commonProps,x=this.props.isDisabled,E=this.state.isFocused,k={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return z(p,{...m,innerProps:k,isDisabled:x,isFocused:E})}},{key:"renderMenu",value:function(){var d=this,p=this.getComponents(),m=p.Group,x=p.GroupHeading,E=p.Menu,k=p.MenuList,T=p.MenuPortal,P=p.LoadingMessage,I=p.NoOptionsMessage,O=p.Option,N=this.commonProps,j=this.state.focusedOption,$=this.props,L=$.captureMenuScroll,B=$.inputValue,F=$.isLoading,X=$.loadingMessage,te=$.minMenuHeight,Z=$.maxMenuHeight,H=$.menuIsOpen,ce=$.menuPlacement,pe=$.menuPosition,fe=$.menuPortalTarget,ve=$.menuShouldBlockScroll,Ge=$.menuShouldScrollIntoView,qe=$.noOptionsMessage,Je=$.onMenuScrollToTop,et=$.onMenuScrollToBottom;if(!H)return null;var jt=function(Jt,an){var An=Jt.type,Wn=Jt.data,ir=Jt.isDisabled,Jn=Jt.isSelected,Gr=Jt.label,Ze=Jt.value,ut=j===Wn,on=ir?void 0:function(){return d.onOptionHover(Wn)},Ne=ir?void 0:function(){return d.selectOption(Wn)},at="".concat(d.getElementId("option"),"-").concat(an),ae={id:at,onClick:Ne,onMouseMove:on,onMouseOver:on,tabIndex:-1};return U.exports.createElement(O,{...N,innerProps:ae,data:Wn,isDisabled:ir,isSelected:Jn,key:at,label:Gr,type:An,value:Ze,isFocused:ut,innerRef:ut?d.getFocusedOptionRef:void 0},d.formatOptionLabel(Jt.data,"menu"))},Me;if(this.hasOptions())Me=this.getCategorizedOptions().map(function(xe){if(xe.type==="group"){var Jt=xe.data,an=xe.options,An=xe.index,Wn="".concat(d.getElementId("group"),"-").concat(An),ir="".concat(Wn,"-heading");return U.exports.createElement(m,{...N,key:Wn,data:Jt,options:an,Heading:x,headingProps:{id:ir,data:xe.data},label:d.formatGroupLabel(xe.data)},xe.options.map(function(Jn){return jt(Jn,"".concat(An,"-").concat(Jn.index))}))}else if(xe.type==="option")return jt(xe,"".concat(xe.index))});else if(F){var Ve=X({inputValue:B});if(Ve===null)return null;Me=z(P,{...N,children:Ve})}else{var ye=qe({inputValue:B});if(ye===null)return null;Me=z(I,{...N,children:ye})}var De={minMenuHeight:te,maxMenuHeight:Z,menuPlacement:ce,menuPosition:pe,menuShouldScrollIntoView:Ge},be=z(fzt,{...N,...De,children:function(xe){var Jt=xe.ref,an=xe.placerProps,An=an.placement,Wn=an.maxHeight;return z(E,{...N,...De,innerRef:Jt,innerProps:{onMouseDown:d.onMenuMouseDown,onMouseMove:d.onMenuMouseMove,id:d.getElementId("listbox")},isLoading:F,placement:An,children:z(mir,{captureEnabled:L,onTopArrive:Je,onBottomArrive:et,lockEnabled:ve,children:function(ir){return z(k,{...N,innerRef:function(Gr){d.getMenuListRef(Gr),ir(Gr)},isLoading:F,maxHeight:Wn,focusedOption:j,children:Me})}})})}});return fe||pe==="fixed"?z(T,{...N,appendTo:fe,controlElement:this.controlRef,menuPlacement:ce,menuPosition:pe,children:be}):be}},{key:"renderFormField",value:function(){var d=this,p=this.props,m=p.delimiter,x=p.isDisabled,E=p.isMulti,k=p.name,T=this.state.selectValue;if(!(!k||x))if(E)if(m){var P=T.map(function(N){return d.getOptionValue(N)}).join(m);return z("input",{name:k,type:"hidden",value:P})}else{var I=T.length>0?T.map(function(N,j){return z("input",{name:k,type:"hidden",value:d.getOptionValue(N)},"i-".concat(j))}):z("input",{name:k,type:"hidden"});return z("div",{children:I})}else{var O=T[0]?this.getOptionValue(T[0]):"";return z("input",{name:k,type:"hidden",value:O})}}},{key:"renderLiveRegion",value:function(){var d=this.commonProps,p=this.state,m=p.ariaSelection,x=p.focusedOption,E=p.focusedValue,k=p.isFocused,T=p.selectValue,P=this.getFocusableOptions();return z(oir,{...d,id:this.getElementId("live-region"),ariaSelection:m,focusedOption:x,focusedValue:E,isFocused:k,selectValue:T,focusableOptions:P})}},{key:"render",value:function(){var d=this.getComponents(),p=d.Control,m=d.IndicatorsContainer,x=d.SelectContainer,E=d.ValueContainer,k=this.props,T=k.className,P=k.id,I=k.isDisabled,O=k.menuIsOpen,N=this.state.isFocused,j=this.commonProps=this.getCommonProps();return We(x,{...j,className:T,innerProps:{id:P,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:N,children:[this.renderLiveRegion(),We(p,{...j,innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:N,menuIsOpen:O,children:[We(E,{...j,isDisabled:I,children:[this.renderPlaceholderOrValue(),this.renderInput()]}),We(m,{...j,isDisabled:I,children:[this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator()]})]}),this.renderMenu(),this.renderFormField()]})}}],[{key:"getDerivedStateFromProps",value:function(d,p){var m=p.prevProps,x=p.clearFocusValueOnUpdate,E=p.inputIsHiddenAfterUpdate,k=p.ariaSelection,T=p.isFocused,P=p.prevWasFocused,I=d.options,O=d.value,N=d.menuIsOpen,j=d.inputValue,$=d.isMulti,L=wAt(O),B={};if(m&&(O!==m.value||I!==m.options||N!==m.menuIsOpen||j!==m.inputValue)){var F=N?Pir(d,L):[],X=x?Oir(p,L):null,te=_ir(p,F);B={selectValue:L,focusedOption:te,focusedValue:X,clearFocusValueOnUpdate:!1}}var Z=E!=null&&d!==m?{inputIsHidden:E,inputIsHiddenAfterUpdate:void 0}:{},H=k,ce=T&&P;return T&&!ce&&(H={value:Zse($,L,L[0]||null),options:L,action:"initial-input-focus"},ce=!P),(k==null?void 0:k.action)==="initial-input-focus"&&(H=null),Pu(Pu(Pu({},B),Z),{},{prevProps:d,ariaSelection:H,prevWasFocused:ce})}}]),c}(U.exports.Component);Mzt.defaultProps=Air;var Dir=U.exports.forwardRef(function(n,r){var c=Yrr(n);return z(Mzt,{ref:r,...c})});const Nir=Dir;var jir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.innerProps,m=r.isDisabled,x=r.isRtl,E=r.hasValue,k=r.selectProps.chakraStyles,T={position:"relative",direction:x?"rtl":void 0,pointerEvents:"auto"},P=k!=null&&k.container?k.container(T,r):T;return z(Tn,{...p,className:d({"--is-disabled":m,"--is-rtl":x,"--has-value":E},u),sx:P,children:c})},Rir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.isMulti,m=r.hasValue,x=r.innerProps,E=r.selectProps,k=E.size,T=E.chakraStyles,P={sm:"0.75rem",md:"1rem",lg:"1rem"},I={display:"flex",alignItems:"center",flex:1,padding:"0.125rem "+P[k||"md"],flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},O=T!=null&&T.valueContainer?T.valueContainer(I,r):I;return z(Tn,{...x,className:d({"value-container":!0,"value-container--is-multi":p,"value-container--has-value":m},u),sx:O,children:c})},$ir=function(r){var c=r.children,u=r.className,d=r.cx,p=r.innerProps,m=r.selectProps.chakraStyles,x={display:"flex",alignItems:"center",alignSelf:"stretch",flexShrink:0},E=m!=null&&m.indicatorsContainer?m.indicatorsContainer(x,r):x;return z(Tn,{...p,className:d({indicators:!0},u),sx:E,children:c})};function VD(){return VD=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Xir=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var c=Gir(r,Wir);return IOe({},c)},Kir=["innerRef","isDisabled","isHidden","inputClassName"];function _H(){return _H=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Qir=function(r){var c=r.className,u=r.cx,d=r.value,p=r.selectProps,m=p.chakraStyles,x=p.isReadOnly,E=p.isRequired,k=Xir(r),T=k.innerRef,P=k.isDisabled,I=k.isHidden,O=k.inputClassName,N=Yir(k,Kir),j={gridArea:"1 / 2",font:"inherit",minW:"2px",border:0,margin:0,outline:0},$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",_after:_H({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0},j)},L=m!=null&&m.inputContainer?m.inputContainer($,r):$,B=_H({label:"input",color:"inherit",background:0,opacity:I?0:1,width:"100%"},j),F=m!=null&&m.input?m.input(B,r):B;return lt.createElement(Tn,{className:u({"input-container":!0},c),"data-value":d||"",sx:L},lt.createElement(Qt.input,_H({className:u({input:!0},O),ref:T,sx:F,disabled:P,readOnly:x,"aria-readonly":x?!0:void 0,"aria-required":E?!0:void 0},N)))};const Zir=Qir;function zD(){return zD=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(c[d]=n[d]);return c}var Cor=function(r){var c,u=r.components,d=u===void 0?{}:u;r.theme;var p=r.size,m=p===void 0?"md":p,x=r.colorScheme,E=x===void 0?"gray":x,k=r.isDisabled,T=r.isInvalid,P=r.isReadOnly,I=r.isRequired,O=r.inputId,N=r.tagVariant,j=r.hasStickyGroupHeaders,$=j===void 0?!1:j,L=r.selectedOptionStyle,B=L===void 0?"color":L,F=r.selectedOptionColor,X=F===void 0?"blue":F,te=r.focusBorderColor,Z=r.errorBorderColor,H=r.chakraStyles,ce=H===void 0?{}:H,pe=r.onFocus,fe=r.onBlur,ve=kor(r,Eor),Ge=Fle({id:O,isDisabled:k,isInvalid:T,isRequired:I,isReadOnly:P,onFocus:pe,onBlur:fe}),qe=m,Je=["sm","md","lg"];Je.includes(m)||(qe="md");var et=N,jt=["subtle","solid","outline"];N!==void 0&&(jt.includes(N)||(et="subtle"));var Me=B,Ve=["color","check"];Ve.includes(B)||(Me="color");var ye=X;typeof X!="string"&&(ye="blue");var De=Sue({components:Sue({},Sor,d),colorScheme:E,size:qe,tagVariant:et,selectedOptionStyle:Me,selectedOptionColor:ye,hasStickyGroupHeaders:$,chakraStyles:ce,focusBorderColor:te,errorBorderColor:Z,onFocus:Ge.onFocus,onBlur:Ge.onBlur,isDisabled:Ge.disabled,isInvalid:!!Ge["aria-invalid"],inputId:Ge.id},ve,{"aria-invalid":((c=ve["aria-invalid"])!=null?c:Ge["aria-invalid"])?!0:void 0});return De};const Ior=Cor;var Tor=U.exports.forwardRef(function(n,r){var c=Ior(n);return z(Nir,{ref:r,...c})});const Aor=Tor,Por=sg({context:{entries:[]},on:{"entry.add":{actions:[Ji({entries:(n,r)=>{const c={...r.entry,id:`entry-${Math.random()}`};return[...n.entries,c]}}),wH({type:"updated"}),"focusLastRef"]},"entry.delete":{actions:[Ji({entries:(n,r)=>n.entries.filter(c=>c.id!==r.entryId)}),wH({type:"updated"})]},"entry.update":{actions:[Ji({entries:(n,r)=>n.entries.map(u=>u.id===r.entryId?{...u,...r.entry}:u)}),wH({type:"updated"})]},updated:{actions:"onChange"}}});function jAt(n){try{return JSON.parse(n)}catch{return n}}const Oor=n=>{const r=n!==void 0?JSON.stringify(n):"";return sg({context:{value:r,parsedValue:jAt(r)},on:{update:{actions:Ji({value:(c,u)=>u.value,parsedValue:(c,u)=>jAt(u.value)})}}})};function _or({value:n,onBlur:r,inputProps:c}){const[u,d]=Nw(()=>Oor(n)),{value:p,parsedValue:m}=u.context;return We(Tn,{display:"grid",css:{"> *":{gridArea:"1 / 1"}},_hover:{"&:not(:focus-within) > [data-json-type]":{opacity:1}},children:[z(Zi.Input,{...c,size:"sm",value:p,onChange:x=>d({type:"update",value:x.target.value}),onBlur:()=>{r==null||r(m),typeof m=="string"&&d({type:"update",value:JSON.stringify(m)})},style:{width:"100%"},fontFamily:"mono"}),z(Fi,{"data-json-type":!0,as:"span",fontSize:"xs",alignSelf:"center",justifySelf:"self-end",marginRight:"2",color:"white.100",background:"gray.600",paddingInline:"1",opacity:0,transition:"opacity 0.2s",zIndex:1,children:Mor(m)})]})}function Mor(n){return typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":Array.isArray(n)?"array":typeof n=="object"?"object":"string"}const Dor=(n,r)=>sg({context:{key:n,value:r},on:{update:{actions:[Ji((c,u)=>({...c,...u.entry})),wH({type:"updated"})]},updated:{cond:c=>c.key!==void 0&&c.value!==void 0,actions:"onChange"}}});function Nor({property:n,value:r,propertyLabel:c,valueLabel:u,onChange:d,onDelete:p,onKeyInputRef:m}){const{getColorModeValue:x}=ei(),[,E]=Nw(()=>Dor(n,r),{actions:{onChange:T=>{d([T.key,T.value])}}}),k=T=>{E({type:"update",entry:T})};return We(Tn,{as:"form",display:"grid",gridTemplateColumns:"1fr 2fr 1rem",gridAutoRows:"auto",gridColumnGap:"2",marginBottom:"2",children:[z(Tn,{children:z(Zi.Input,{ref:m,size:"sm",defaultValue:n,style:{width:"100%"},name:"key",onBlur:T=>{k({key:T.target.value})},placeholder:c})}),z(_or,{value:r,onBlur:T=>k({value:T}),inputProps:{display:"flex",gap:"2",alignItems:"center",name:"value",placeholder:u}}),p&&z(Ev,{"aria-label":"Delete",onClick:p,bg:x("transparent","transparent"),size:"xs",alignSelf:"center",children:z(wW,{})})]})}function Nzt({entries:n,buttonLabel:r="Add entry",keyLabel:c="Key",valueLabel:u="Value",onChange:d}){const p=U.exports.useRef(null),m=U.exports.useRef({}),[x,E]=Nw(Por,{context:{entries:n.map(([k,T])=>({id:`entry-${Math.random()}`,key:k,value:T}))},actions:{onChange:k=>{const T=k.entries.map(({key:P,value:I})=>[P,I]);d(T)},focusLastRef:k=>{const T=k.entries[k.entries.length-1].id;p.current=()=>m.current[T].focus()}}});return lW(()=>{if(p.current){const k=p.current;p.current=null,k()}}),We(Tn,{children:[We(Tn,{display:"grid",gridTemplateColumns:"1fr 2fr 1rem",fontSize:"xs",color:"gray.400",fontWeight:"md",marginBottom:"1",hidden:x.context.entries.length===0,children:[z("span",{children:c}),z("span",{children:u})]}),x.context.entries.map(({id:k,key:T,value:P})=>z(Nor,{onKeyInputRef:I=>{I?m.current[k]=I:delete m.current[k]},property:T,propertyLabel:"Key",value:P,onChange:([I,O])=>{E({type:"entry.update",entryId:k,entry:{key:I,value:O}})},onDelete:()=>{E({type:"entry.delete",entryId:k})}},k)),z(Uc,{variant:"gray",size:"sm",onClick:()=>{E({type:"entry.add",entry:{key:"",value:""}})},children:r})]})}var E7=n=>n.type==="checkbox",Eue=n=>n instanceof Date,xb=n=>n==null;const jzt=n=>typeof n=="object";var og=n=>!xb(n)&&!Array.isArray(n)&&jzt(n)&&!Eue(n),jor=n=>og(n)&&n.target?E7(n.target)?n.target.checked:n.target.value:n,Rzt=n=>n.substring(0,n.search(/.\d/))||n,$zt=(n,r)=>[...n].some(c=>Rzt(r)===c),Fq=n=>n.filter(Boolean),$p=n=>n===void 0,fi=(n,r,c)=>{if(og(n)&&r){const u=Fq(r.split(/[,[\].]+?/)).reduce((d,p)=>xb(d)?d:d[p],n);return $p(u)||u===n?$p(n[r])?c:n[r]:u}};const TOe={BLUR:"blur",CHANGE:"change"},Sw={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tS={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};var Wfe=(n,r)=>{const c=Object.assign({},n);return delete c[r],c};const Lzt=U.exports.createContext(null);Lzt.displayName="RHFContext";const Fzt=()=>U.exports.useContext(Lzt);var Bzt=(n,r,c,u=!0)=>{function d(m){return()=>{if(m in n)return r[m]!==Sw.all&&(r[m]=!u||Sw.all),c&&(c[m]=!0),n[m]}}const p={};for(const m in n)Object.defineProperty(p,m,{get:d(m)});return p},uv=n=>og(n)&&!Object.keys(n).length,Vzt=(n,r,c)=>{const u=Wfe(n,"name");return uv(u)||Object.keys(u).length>=Object.keys(r).length||Object.keys(u).find(d=>r[d]===(!c||Sw.all))},HU=n=>Array.isArray(n)?n:[n];function QNe({disabled:n,subject:r,callback:c}){const u=U.exports.useRef(r),d=U.exports.useRef();n?u.current&&(d.current&&d.current.unsubscribe(),u.current=d.current=void 0):(u.current||(u.current=r),!d.current&&u.current&&(d.current=u.current.subscribe({next:c}))),U.exports.useEffect(()=>()=>{d.current&&d.current.unsubscribe()},[])}function Ror(n){const r=Fzt(),{control:c=r.control,disabled:u,name:d}=n||{},[p,m]=U.exports.useState(c._formState),x=U.exports.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),E=U.exports.useRef(d);return E.current=d,QNe({disabled:u,callback:k=>(!E.current||!k.name||HU(E.current).includes(k.name))&&Vzt(k,x.current)&&m(Object.assign(Object.assign({},c._formState),k)),subject:c._subjects.state}),Bzt(p,c._proxyFormState,x.current,!1)}function $or(n){const r=Fzt(),{name:c,control:u=r.control,shouldUnregister:d}=n,[p,m]=U.exports.useState(fi(u._formValues,c,fi(u._defaultValues,c,n.defaultValue))),x=Ror({control:u||r.control,name:c}),E=U.exports.useRef(c);E.current=c,QNe({subject:u._subjects.control,callback:P=>(!P.name||E.current===P.name)&&m(fi(P.values,c))});const k=u.register(c,Object.assign(Object.assign({},n.rules),{value:p})),T=U.exports.useCallback((P,I)=>{const O=fi(u._fields,P);O&&(O._f.mount=I)},[u]);return U.exports.useEffect(()=>(T(c,!0),()=>{const P=u._shouldUnregister||d;($zt(u._names.array,c)?P&&!u._stateFlags.action:P)?u.unregister(c):T(c,!1)}),[c,u,d,T]),{field:{onChange:P=>{const I=jor(P);m(I),k.onChange({target:{value:I,name:c},type:TOe.CHANGE})},onBlur:()=>{k.onBlur({target:{value:p,name:c},type:TOe.BLUR})},name:c,value:p,ref:P=>{const I=fi(u._fields,c);P&&I&&P.focus&&(I._f.ref={focus:()=>P.focus(),setCustomValidity:O=>P.setCustomValidity(O),reportValidity:()=>P.reportValidity()})}},formState:x,fieldState:{invalid:!!fi(x.errors,c),isDirty:!!fi(x.dirtyFields,c),isTouched:!!fi(x.touchedFields,c),error:fi(x.errors,c)}}}const H7=n=>n.render($or(n));var Lor=(n,r,c,u,d)=>r?Object.assign(Object.assign({},c[n]),{types:Object.assign(Object.assign({},c[n]&&c[n].types?c[n].types:{}),{[u]:d||!0})}):{},zzt=n=>/^\w*$/.test(n),Uzt=n=>Fq(n.replace(/["|']|\]/g,"").split(/\.|\[/));function Qu(n,r,c){let u=-1;const d=zzt(r)?[r]:Uzt(r),p=d.length,m=p-1;for(;++u{for(const u of c||Object.keys(n)){const d=fi(n,u);if(d){const p=d._f,m=Wfe(d,"_f");if(p&&r(p.name)){if(p.ref.focus&&$p(p.ref.focus()))break;if(p.refs){p.refs[0].focus();break}}else og(m)&&AOe(m,r)}}};var aTe=(n,r)=>n.map((c={})=>Wfe(c,r));function POe(n){let r;const c=Array.isArray(n);if(n instanceof Date)r=new Date(n);else if(n instanceof Set)r=new Set(n);else if(c||og(n)){r=c?[]:{};for(const u in n)r[u]=POe(n[u])}else return n;return r}var Bq=n=>xb(n)||!jzt(n);function LM(n,r){if(Bq(n)||Bq(r)||Eue(n)||Eue(r))return n===r;const c=Object.keys(n),u=Object.keys(r);if(c.length!==u.length)return!1;for(const d of c){const p=n[d];if(!u.includes(d))return!1;if(d!=="ref"){const m=r[d];if((og(p)||Array.isArray(p))&&(og(m)||Array.isArray(m))?!LM(p,m):p!==m)return!1}}return!0}var RAt=n=>({isOnSubmit:!n||n===Sw.onSubmit,isOnBlur:n===Sw.onBlur,isOnChange:n===Sw.onChange,isOnAll:n===Sw.all,isOnTouch:n===Sw.onTouched}),UD=n=>typeof n=="boolean",ZNe=n=>n.type==="file",Hzt=n=>typeof n=="function",Lae=n=>n instanceof HTMLElement,qzt=n=>n.type==="select-multiple",JNe=n=>n.type==="radio",For=n=>JNe(n)||E7(n),pS=n=>typeof n=="string",$At=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u",LAt=n=>!Lae(n)||!document.contains(n);class Bor{constructor(){this.tearDowns=[]}add(r){this.tearDowns.push(r)}unsubscribe(){for(const r of this.tearDowns)r();this.tearDowns=[]}}class Vor{constructor(r,c){this.observer=r,this.closed=!1,c.add(()=>this.closed=!0)}next(r){this.closed||this.observer.next(r)}}class Jse{constructor(){this.observers=[]}next(r){for(const c of this.observers)c.next(r)}subscribe(r){const c=new Bor,u=new Vor(r,c);return this.observers.push(u),c}unsubscribe(){this.observers=[]}}function zor(n,r){const c=r.slice(0,-1).length;let u=0;for(;u0&&(p=n);++xog(I)&&!uv(I)||UD(I)).length)&&(p?delete p[P]:delete n[P]),p=E}}return n}const FAt={value:!1,isValid:!1},BAt={value:!0,isValid:!0};var Wzt=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(c=>c&&c.checked&&!c.disabled).map(c=>c.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!$p(n[0].attributes.value)?$p(n[0].value)||n[0].value===""?BAt:{value:n[0].value,isValid:!0}:BAt:FAt}return FAt},Gzt=(n,{valueAsNumber:r,valueAsDate:c,setValueAs:u})=>$p(n)?n:r?n===""?NaN:+n:c?new Date(n):u?u(n):n,Uor=n=>[...n].filter(({selected:r})=>r).map(({value:r})=>r);const VAt={isValid:!1,value:null};var Xzt=n=>Array.isArray(n)?n.reduce((r,c)=>c&&c.checked&&!c.disabled?{isValid:!0,value:c.value}:r,VAt):VAt;function cTe(n){const r=n.ref;if(!(n.refs?n.refs.every(c=>c.disabled):r.disabled))return ZNe(r)?r.files:JNe(r)?Xzt(n.refs).value:qzt(r)?Uor(r.options):E7(r)?Wzt(n.refs).value:Gzt($p(r.value)?n.ref.value:r.value,n)}var Hor=(n,r,c,u)=>{const d={};for(const p of n){const m=fi(r,p);m&&Qu(d,p,m._f)}return{criteriaMode:c,names:[...n],fields:d,shouldUseNativeValidation:u}},qor=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate);function Kzt(n,r){if(Bq(n)||Bq(r))return r;for(const c in r){const u=n[c],d=r[c];try{n[c]=og(u)&&og(d)||Array.isArray(u)&&Array.isArray(d)?Kzt(u,d):d}catch{}}return n}function OOe(n,r,c,u,d){let p=-1;for(;++pKzt(OOe(n,r,c.slice(0,n.length)),OOe(r,n,c.slice(0,n.length))),Wor=(n,r,c,u,d)=>d.isOnAll?!1:!c&&d.isOnTouch?!(r||n):(c?u.isOnBlur:d.isOnBlur)?!n:(c?u.isOnChange:d.isOnChange)?n:!0,lTe=(n,r)=>!Fq(fi(n,r,[])).length&&ov(n,r),Fae=n=>pS(n)||U.exports.isValidElement(n),Yzt=n=>n instanceof RegExp;function zAt(n,r,c="validate"){if(Fae(n)||Array.isArray(n)&&n.every(Fae)||UD(n)&&!n)return{type:c,message:Fae(n)?n:"",ref:r}}var fM=n=>og(n)&&!Yzt(n)?n:{value:n,message:""},UAt=async(n,r,c,u)=>{const{ref:d,refs:p,required:m,maxLength:x,minLength:E,min:k,max:T,pattern:P,validate:I,name:O,valueAsNumber:N,mount:j,disabled:$}=n._f;if(!j||$)return{};const L=p?p[0]:d,B=fe=>{u&&L.reportValidity&&(L.setCustomValidity(UD(fe)?"":fe||" "),L.reportValidity())},F={},X=JNe(d),te=E7(d),Z=X||te,H=(N||ZNe(d))&&!d.value||r===""||Array.isArray(r)&&!r.length,ce=Lor.bind(null,O,c,F),pe=(fe,ve,Ge,qe=tS.maxLength,Je=tS.minLength)=>{const et=fe?ve:Ge;F[O]=Object.assign({type:fe?qe:Je,message:et,ref:d},ce(fe?qe:Je,et))};if(m&&(!Z&&(H||xb(r))||UD(r)&&!r||te&&!Wzt(p).isValid||X&&!Xzt(p).isValid)){const{value:fe,message:ve}=Fae(m)?{value:!!m,message:m}:fM(m);if(fe&&(F[O]=Object.assign({type:tS.required,message:ve,ref:L},ce(tS.required,ve)),!c))return B(ve),F}if(!H&&(!xb(k)||!xb(T))){let fe,ve;const Ge=fM(T),qe=fM(k);if(isNaN(r)){const Je=d.valueAsDate||new Date(r);pS(Ge.value)&&(fe=Je>new Date(Ge.value)),pS(qe.value)&&(ve=JeGe.value),xb(qe.value)||(ve=Jefe.value,qe=!xb(ve.value)&&r.length"u";function Xor(n={}){let r=Object.assign(Object.assign({},HAt),n),c,u={isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}},d={},p=r.defaultValues||{},m=r.shouldUnregister?{}:POe(p),x={action:!1,mount:!1,watch:!1},E=0,k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},T={};const P={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},I={watch:new Jse,control:new Jse,array:new Jse,state:new Jse},O=RAt(r.mode),N=RAt(r.reValidateMode),j=r.criteriaMode===Sw.all,$=(Ze,ut)=>(...on)=>{clearTimeout(E),E=window.setTimeout(()=>Ze(...on),ut)},L=Ze=>k.watchAll||k.watch.has(Ze)||k.watch.has((Ze.match(/\w+/)||[])[0]),B=(Ze,ut)=>{Qu(u.errors,Ze,ut),I.state.next({errors:u.errors})},F=async(Ze,ut,on,Ne,at)=>{const ae=fi(u.errors,ut),Ee=P.isValid&&u.isValid!==on;if(n.delayError&&Ne?(c=c||$(B,n.delayError),c(ut,Ne)):(clearTimeout(E),Ne?Qu(u.errors,ut,Ne):ov(u.errors,ut)),((Ne?!LM(ae,Ne):ae)||!uv(at)||Ee)&&!Ze){const Ie=Object.assign(Object.assign(Object.assign({},at),Ee?{isValid:on}:{}),{errors:u.errors,name:ut});u=Object.assign(Object.assign({},u),Ie),I.state.next(Ie)}T[ut]--,P.isValidating&&!T[ut]&&(I.state.next({isValidating:!1}),T={})},X=(Ze,ut,on={},Ne)=>{const at=fi(d,Ze);let ae=ut;if(at){const Ee=at._f;Ee&&(Qu(m,Ze,Gzt(ut,Ee)),ae=$At&&Lae(Ee.ref)&&xb(ut)?"":ut,ZNe(Ee.ref)&&!pS(ae)?Ee.ref.files=ae:qzt(Ee.ref)?[...Ee.ref.options].forEach(Ie=>Ie.selected=ae.includes(Ie.value)):Ee.refs?E7(Ee.ref)?Ee.refs.length>1?Ee.refs.forEach(Ie=>Ie.checked=Array.isArray(ae)?!!ae.find(tt=>tt===Ie.value):ae===Ie.value):Ee.refs[0].checked=!!ae:Ee.refs.forEach(Ie=>Ie.checked=Ie.value===ae):Ee.ref.value=ae,Ne&&I.control.next({values:m,name:Ze}))}(on.shouldDirty||on.shouldTouch)&&te(Ze,ae,on.shouldTouch),on.shouldValidate&&Ve(Ze)},te=(Ze,ut,on,Ne=!0)=>{const at={name:Ze};let ae=!1;if(P.isDirty){const Ie=u.isDirty;u.isDirty=ve(),at.isDirty=u.isDirty,ae=Ie!==at.isDirty}if(P.dirtyFields&&!on){const Ie=fi(u.dirtyFields,Ze);!LM(fi(p,Ze),ut)?Qu(u.dirtyFields,Ze,!0):ov(u.dirtyFields,Ze),at.dirtyFields=u.dirtyFields,ae=ae||Ie!==fi(u.dirtyFields,Ze)}const Ee=fi(u.touchedFields,Ze);return on&&!Ee&&(Qu(u.touchedFields,Ze,on),at.touchedFields=u.touchedFields,ae=ae||P.touchedFields&&Ee!==on),ae&&Ne&&I.state.next(at),ae?at:{}},Z=async Ze=>r.resolver?await r.resolver(Object.assign({},m),r.context,Hor(Ze||k.mount,d,r.criteriaMode,r.shouldUseNativeValidation)):{},H=async Ze=>{const{errors:ut}=await Z();if(Ze)for(const on of Ze){const Ne=fi(ut,on);Ne?Qu(u.errors,on,Ne):ov(u.errors,on)}else u.errors=ut;return ut},ce=async(Ze,ut,on={valid:!0})=>{for(const Ne in Ze){const at=Ze[Ne];if(at){const ae=at._f,Ee=Wfe(at,"_f");if(ae){const Ie=await UAt(at,fi(m,ae.name),j,r.shouldUseNativeValidation);if(Ie[ae.name]&&(on.valid=!1,ut))break;ut||(Ie[ae.name]?Qu(u.errors,ae.name,Ie[ae.name]):ov(u.errors,ae.name))}Ee&&await ce(Ee,ut,on)}}return on.valid},pe=async Ze=>{const ut=Ze.target;let on=ut.name;const Ne=fi(d,on);if(Ne){let at,ae;const Ee=ut.type?cTe(Ne._f):ut.value,Ie=Ze.type===TOe.BLUR;Ie&&Ne._f.onBlur?Ne._f.onBlur(Ze):Ne._f.onChange&&Ne._f.onChange(Ze);const tt=!qor(Ne._f)&&!r.resolver&&!fi(u.errors,on)&&!Ne._f.deps||Wor(Ie,fi(u.touchedFields,on),u.isSubmitted,N,O),en=!Ie&&L(on);Qu(m,on,Ee);const gn=te(on,Ee,Ie,!1),In=!uv(gn)||en;if(!Ie&&I.watch.next({name:on,type:Ze.type}),tt)return In&&I.state.next(Object.assign({name:on},en?{}:gn));if(!Ie&&en&&I.state.next({}),T[on]=(T[on],1),P.isValidating&&I.state.next({isValidating:!0}),r.resolver){const{errors:cr}=await Z([on]);if(at=fi(cr,on),E7(ut)&&!at){const Ur=Rzt(on),eo=fi(d,Ur);if(Array.isArray(eo)&&eo.every(Tr=>Tr._f&&E7(Tr._f.ref))){const Tr=fi(cr,Ur,{});Tr.type&&(at=Tr),on=Ur}}ae=uv(cr)}else at=(await UAt(Ne,fi(m,on),j,r.shouldUseNativeValidation))[on],ae=await Ge(!0);Ne._f.deps&&Ve(Ne._f.deps),F(!1,on,ae,at,gn)}},fe=(Ze,ut,on)=>{const Ne=fi(d,Ze);if(Ne){const at=fi(m,Ze),ae=$p(at)?fi(p,Ze):at;$p(ae)||on&&on.defaultChecked||ut?Qu(m,Ze,ut?ae:cTe(Ne._f)):X(Ze,ae)}x.mount&&Ge()},ve=(Ze,ut)=>(Ze&&ut&&Qu(m,Ze,ut),!LM(Object.assign({},ye()),p)),Ge=async Ze=>{let ut=!1;return P.isValid&&(ut=r.resolver?uv((await Z()).errors):await ce(d,!0),!Ze&&ut!==u.isValid&&(u.isValid=ut,I.state.next({isValid:ut}))),ut},qe=(Ze,ut,on)=>Object.entries(ut).forEach(([Ne,at])=>{const ae=`${Ze}.${Ne}`,Ee=fi(d,ae);(k.array.has(Ze)||!Bq(at)||Ee&&!Ee._f)&&!Eue(at)?qe(ae,at,on):X(ae,at,on,!0)}),Je=(Ze,ut,on,Ne)=>{const at=Object.assign({},on||x.mount?m:$p(ut)?p:pS(Ze)?{[Ze]:ut}:ut);if(!Ze)return Ne&&(k.watchAll=!0),at;const ae=[];for(const Ee of HU(Ze))Ne&&k.watch.add(Ee),ae.push(fi(at,Ee));return Array.isArray(Ze)?ae:ae[0]},et=(Ze,ut,on,Ne,at=[],ae=!0,Ee=!0)=>{let Ie;if(x.action=!0,Ee&&fi(d,ut)&&(Ie=on(fi(d,ut),Ne.argA,Ne.argB),ae&&Qu(d,ut,Ie)),Array.isArray(fi(u.errors,ut))){const tt=on(fi(u.errors,ut),Ne.argA,Ne.argB);ae&&Qu(u.errors,ut,tt),lTe(u.errors,ut)}if(P.touchedFields&&fi(u.touchedFields,ut)){const tt=on(fi(u.touchedFields,ut),Ne.argA,Ne.argB);ae&&Qu(u.touchedFields,ut,tt),lTe(u.touchedFields,ut)}(P.dirtyFields||P.isDirty)&&(Qu(u.dirtyFields,ut,uTe(aTe(at,Ze),fi(p,ut,[]),fi(u.dirtyFields,ut,[]))),at&&Qu(u.dirtyFields,ut,uTe(aTe(at,Ze),fi(p,ut,[]),fi(u.dirtyFields,ut,[]))),lTe(u.dirtyFields,ut)),I.state.next({isDirty:ve(ut,aTe(at,Ze)),dirtyFields:u.dirtyFields,errors:u.errors,isValid:u.isValid})},jt=Ze=>fi(x.mount?m:p,Ze,[]),Me=(Ze,ut,on={})=>{const Ne=fi(d,Ze),at=k.array.has(Ze);Qu(m,Ze,ut),at?(I.array.next({name:Ze,values:m}),(P.isDirty||P.dirtyFields)&&on.shouldDirty&&(Qu(u.dirtyFields,Ze,uTe(ut,fi(p,Ze,[]),fi(u.dirtyFields,Ze,[]))),I.state.next({name:Ze,dirtyFields:u.dirtyFields,isDirty:ve(Ze,ut)}))):Ne&&!Ne._f&&!xb(ut)?qe(Ze,ut,on):X(Ze,ut,on,!0),L(Ze)&&I.state.next({}),I.watch.next({name:Ze})},Ve=async(Ze,ut={})=>{const on=HU(Ze);let Ne;if(I.state.next({isValidating:!0}),r.resolver){const at=await H($p(Ze)?Ze:on);Ne=Ze?on.every(ae=>!fi(at,ae)):uv(at)}else Ze?(Ne=(await Promise.all(on.map(async at=>{const ae=fi(d,at);return await ce(ae&&ae._f?{[at]:ae}:ae)}))).every(Boolean),Ge()):Ne=await ce(d);return I.state.next(Object.assign(Object.assign({},pS(Ze)?{name:Ze}:{}),{errors:u.errors,isValid:Ne,isValidating:!1})),ut.shouldFocus&&!Ne&&AOe(d,at=>fi(u.errors,at),Ze?on:k.mount),Ne},ye=Ze=>{const ut=Object.assign(Object.assign({},p),x.mount?m:{});return $p(Ze)?ut:pS(Ze)?fi(ut,Ze):Ze.map(on=>fi(ut,on))},De=Ze=>{Ze?HU(Ze).forEach(ut=>ov(u.errors,ut)):u.errors={},I.state.next({errors:u.errors})},be=(Ze,ut,on)=>{const Ne=(fi(d,Ze,{_f:{}})._f||{}).ref;Qu(u.errors,Ze,Object.assign(Object.assign({},ut),{ref:Ne})),I.state.next({name:Ze,errors:u.errors,isValid:!1}),on&&on.shouldFocus&&Ne&&Ne.focus&&Ne.focus()},xe=(Ze,ut)=>Hzt(Ze)?I.watch.subscribe({next:on=>Ze(Je(void 0,ut),on)}):Je(Ze,ut,!1,!0),Jt=(Ze,ut={})=>{for(const on of Ze?HU(Ze):k.mount)k.mount.delete(on),k.array.delete(on),fi(d,on)&&(ut.keepValue||(ov(d,on),ov(m,on)),!ut.keepError&&ov(u.errors,on),!ut.keepDirty&&ov(u.dirtyFields,on),!ut.keepTouched&&ov(u.touchedFields,on),!r.shouldUnregister&&!ut.keepDefaultValue&&ov(p,on));I.watch.next({}),I.state.next(Object.assign(Object.assign({},u),ut.keepDirty?{isDirty:ve()}:{})),!ut.keepIsValid&&Ge()},an=(Ze,ut,on)=>{An(Ze,on);let Ne=fi(d,Ze);const at=$p(ut.value)&&ut.querySelectorAll&&ut.querySelectorAll("input,select,textarea")[0]||ut,ae=For(at);at===Ne._f.ref||ae&&Fq(Ne._f.refs||[]).find(Ee=>Ee===at)||(Ne={_f:ae?Object.assign(Object.assign({},Ne._f),{refs:[...Fq(Ne._f.refs||[]).filter(Ee=>Lae(Ee)&&document.contains(Ee)),at],ref:{type:at.type,name:Ze}}):Object.assign(Object.assign({},Ne._f),{ref:at})},Qu(d,Ze,Ne),(!on||!on.disabled)&&fe(Ze,!1,at))},An=(Ze,ut={})=>{const on=fi(d,Ze);return Qu(d,Ze,{_f:Object.assign(Object.assign(Object.assign({},on&&on._f?on._f:{ref:{name:Ze}}),{name:Ze,mount:!0}),ut)}),k.mount.add(Ze),$p(ut.value)||Qu(m,Ze,ut.value),on&&UD(ut.disabled)&&Qu(m,Ze,ut.disabled?void 0:fi(m,Ze,cTe(on._f))),!on&&fe(Ze,!0),Gor?{name:Ze}:Object.assign(Object.assign({name:Ze},UD(ut.disabled)?{disabled:ut.disabled}:{}),{onChange:pe,onBlur:pe,ref:Ne=>{if(Ne)an(Ze,Ne,ut);else{const at=fi(d,Ze,{}),ae=r.shouldUnregister||ut.shouldUnregister;at._f&&(at._f.mount=!1),ae&&!($zt(k.array,Ze)&&x.action)&&k.unMount.add(Ze)}}})},Wn=(Ze,ut)=>async on=>{on&&(on.preventDefault&&on.preventDefault(),on.persist&&on.persist());let Ne=!0,at=Object.assign({},m);I.state.next({isSubmitting:!0});try{if(r.resolver){const{errors:ae,values:Ee}=await Z();u.errors=ae,at=Ee}else await ce(d);uv(u.errors)&&Object.keys(u.errors).every(ae=>fi(at,ae))?(I.state.next({errors:{},isSubmitting:!0}),await Ze(at,on)):(ut&&await ut(u.errors,on),r.shouldFocusError&&AOe(d,ae=>fi(u.errors,ae),k.mount))}catch(ae){throw Ne=!1,ae}finally{u.isSubmitted=!0,I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:uv(u.errors)&&Ne,submitCount:u.submitCount+1,errors:u.errors})}},ir=(Ze,ut={})=>{const on=Ze||p,Ne=POe(on);if(ut.keepValues||(m=n.shouldUnregister?{}:Ne),$At&&!ut.keepValues)for(const at of k.mount){const ae=fi(d,at);if(ae&&ae._f){const Ee=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;try{Lae(Ee)&&Ee.closest("form").reset();break}catch{}}}ut.keepDefaultValues||(p=Object.assign({},on)),ut.keepValues||(d={},I.control.next({values:ut.keepDefaultValues?p:Object.assign({},on)}),I.watch.next({}),I.array.next({values:Ne})),k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},I.state.next({submitCount:ut.keepSubmitCount?u.submitCount:0,isDirty:ut.keepDirty?u.isDirty:ut.keepDefaultValues?LM(Ze,p):!1,isSubmitted:ut.keepIsSubmitted?u.isSubmitted:!1,dirtyFields:ut.keepDirty?u.dirtyFields:{},touchedFields:ut.keepTouched?u.touchedFields:{},errors:ut.keepErrors?u.errors:{},isSubmitting:!1,isSubmitSuccessful:!1}),x.mount=!P.isValid||!!ut.keepIsValid,x.watch=!!n.shouldUnregister},Jn=Ze=>fi(d,Ze)._f.ref.focus();return{control:{register:An,unregister:Jt,_getWatch:Je,_getIsDirty:ve,_updateValid:Ge,_removeFields:()=>{for(const Ze of k.unMount){const ut=fi(d,Ze);ut&&(ut._f.refs?ut._f.refs.every(LAt):LAt(ut._f.ref))&&Jt(Ze)}k.unMount=new Set},_updateFieldArray:et,_getFieldArrayValue:jt,_subjects:I,_shouldUnregister:r.shouldUnregister,_proxyFormState:P,get _fields(){return d},set _fields(Ze){d=Ze},get _formValues(){return m},set _formValues(Ze){m=Ze},get _stateFlags(){return x},set _stateFlags(Ze){x=Ze},get _defaultValues(){return p},set _defaultValues(Ze){p=Ze},get _names(){return k},set _names(Ze){k=Ze},get _formState(){return u},set _formState(Ze){u=Ze},_updateProps:Ze=>{r=Object.assign(Object.assign({},HAt),Ze)}},trigger:Ve,register:An,handleSubmit:Wn,watch:xe,setValue:Me,getValues:ye,reset:ir,clearErrors:De,unregister:Jt,setError:be,setFocus:Jn}}function Gfe(n={}){const r=U.exports.useRef(),[c,u]=U.exports.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,errors:{}});r.current?r.current.control._updateProps(n):r.current=Object.assign(Object.assign({},Xor(n)),{formState:c});const d=r.current.control;return QNe({subject:d._subjects.state,callback:p=>{Vzt(p,d._proxyFormState,!0)&&(d._formState=Object.assign(Object.assign({},d._formState),p),u(Object.assign({},d._formState)))}}),U.exports.useEffect(()=>{d._stateFlags.mount||(d._proxyFormState.isValid&&d._updateValid(),d._stateFlags.mount=!0),d._stateFlags.watch&&(d._stateFlags.watch=!1,d._subjects.state.next({})),d._removeFields()}),r.current.formState=Bzt(c,d._proxyFormState),r.current}const HD=({onCancel:n,onSave:r})=>We(_w,{children:[z(Uc,{size:"sm",variant:"gray",type:"button",onClick:n,children:"Cancel"}),z(Uc,{size:"sm",...typeof r!="function"?{type:"submit"}:{onClick:r},children:"Save"})]}),Qzt=()=>{const n=Zc(),r=new Set;return n.snapshot.nodes.forEach(c=>{c.data.entry.forEach(u=>r.add(u.type)),c.data.exit.forEach(u=>r.add(u.type))}),n.snapshot.edges.forEach(c=>c.data.actions.forEach(u=>r.add(u.type))),Array.from(r).filter(c=>c!=="xstate.assign").sort()},Zzt=()=>{const n=Zc(),r=new Set,c=new Set;return n.snapshot.nodes.forEach(u=>{u.invocations.forEach(d=>{r.add(d.src),d.userIdOverride&&c.add(d.userIdOverride)})}),{src:Array.from(r).sort(),id:Array.from(c).sort()}},Jzt=({initialKey:n="",initialExpression:r="",onSubmit:c,onCancel:u})=>{const[d,p]=U.exports.useState(n),[m,x]=U.exports.useState(r);return We("form",{style:{display:"flex",flexDirection:"column",gap:"var(--chakra-sizes-4)"},onSubmit:E=>{E.preventDefault(),c({type:"xstate.assign",assignment:{[d]:m}})},children:[We(Vc,{flex:"1",alignItems:"stretch",gap:"2",textAlign:"left",position:"relative",role:"heading",children:[z(Zi.Input,{size:"sm",placeholder:"key",width:"80px",defaultValue:d,onChange:E=>{p(E.target.value)}}),z(Tn,{flex:"1",children:z(Zi.Input,{size:"sm",placeholder:"assignment",fontFamily:"mono",defaultValue:m,onChange:E=>{x(E.target.value)}})})]}),z(HD,{onCancel:u})]})},_Oe=n=>{const r=Gfe({}),c=Qzt();return yr.enabled?z(Tn,{paddingBlockEnd:"0",children:We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[z(Zi.Control,{label:"Type",children:z(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>z(xk,{options:c,autoFocus:!0,...u})})}),z(Tn,{marginBlockStart:"4",children:z(HD,{onCancel:n.onCancel})})]})}):We(F9.Tabs,{pr:"5",children:[We(F9.TabList,{children:[z(F9.Tab,{children:"Custom"}),z(F9.Tab,{children:"Assign"})]}),We(F9.TabPanels,{children:[z(F9.TabPanel,{paddingInline:"0",children:z(V1,{spacing:"4",children:We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[z(Zi.Control,{label:"Type",children:z(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>z(xk,{size:"sm",options:c,autoFocus:!0,...u})})}),z(Tn,{marginBlockStart:"4",children:z(HD,{onCancel:n.onCancel})})]})})}),z(F9.TabPanel,{paddingInline:"0",children:z(Jzt,{onSubmit:n.onSubmit,onCancel:n.onCancel})})]})]})},MOe=n=>{const r=Gfe({defaultValues:n.initialValues}),c=Qzt();if(a7(n.initialValues)&&!yr.enabled){const[u,d]=Object.entries(n.initialValues.assignment)[0];return We(Si,{children:[z(mv,{}),z(Tn,{pt:"4",pb:"4",pr:"2",children:z(Jzt,{onSubmit:n.onSubmit,onCancel:n.onCancel,initialKey:u,initialExpression:d})}),z(mv,{})]})}return We("form",{onSubmit:r.handleSubmit(({type:u})=>{n.onSubmit({type:u})}),children:[z(mv,{}),We(V1,{pt:"2",pb:"4",pr:"2",spacing:"4",children:[z(Zi.Control,{label:"Type",children:z(H7,{control:r.control,name:"type",rules:{required:"Type is required"},render:({field:u})=>z(xk,{size:"sm",options:c,autoFocus:!0,...u})})}),z(HD,{onCancel:n.onCancel})]}),z(mv,{})]})},Kor=n=>{const r=Gfe({}),{src:c,id:u}=Zzt();return z("form",{onSubmit:r.handleSubmit(d=>{n.onSubmit({userIdOverride:d.id,src:d.src,internalUniqueId:lzn(),jsImplementation:void 0})}),children:We(V1,{pt:"2",pb:"4",spacing:"2",pr:"5",children:[z(Zi.Control,{label:"Src",children:z(H7,{control:r.control,name:"src",rules:{required:"Src is required"},render:({field:d})=>z(xk,{size:"sm",options:c,autoFocus:!0,...d})})}),z(Zi.Control,{label:"Id",pb:"2",children:z(H7,{control:r.control,name:"id",render:({field:d})=>z(xk,{size:"sm",options:u,...d})})}),z(HD,{onCancel:n.onCancel})]})})},Yor=n=>{const r=Gfe({defaultValues:{id:n.initialValues.userIdOverride,src:n.initialValues.src}}),{src:c,id:u}=Zzt();return We("form",{onSubmit:r.handleSubmit(d=>{n.onSubmit({src:d.src,internalUniqueId:n.initialValues.internalUniqueId,userIdOverride:d.id,jsImplementation:n.initialValues.jsImplementation})}),children:[z(mv,{}),We(V1,{spacing:"4",pt:"2",pb:"4",pr:"2",children:[z(Zi.Control,{label:"Src",children:z(H7,{control:r.control,name:"src",rules:{required:"Src is required"},render:({field:d})=>z(xk,{size:"sm",options:c,autoFocus:!0,...d})})}),z(Zi.Control,{label:"Id",children:z(H7,{control:r.control,name:"id",render:({field:d})=>z(xk,{size:"sm",options:u,...d})})}),z(HD,{onCancel:n.onCancel})]}),z(mv,{})]})};function eUt(n,r,c){const u=d=>{const{getColorModeValue:p}=ei();return z(n,{...c(p),...d})};return u.displayName=r,u}const Qor=n=>{const{isOpen:r,isDisabled:c}=MOn(),{reduceMotion:u}=jle(),d=sMt("chakra-accordion__icon",n.className),p=aW(),[m,x]=U.exports.useState(!1);U.exports.useEffect(()=>{x(!0)},[]);const E={opacity:c?.4:1,transform:r?void 0:"rotate(-90deg)",transition:!m||u?void 0:"transform 0.1s",transformOrigin:"center",...p.icon};return z(To,{viewBox:"0 0 24 24","aria-hidden":!0,className:d,__css:E,...n,children:z("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})};function Zor(n){return n==="assign"}const Jor=n=>{const{getColorModeValue:r}=ei();return z(Tn,{border:"none",children:We(nl,{alignItems:"flex-start",paddingBottom:n.properties.length>1?"2":0,children:[z(V1,{spacing:"0.5",flex:"1",justifyContent:"center",alignItems:"flex-start",border:"none",minWidth:0,pt:"1",children:n.properties.map(c=>{const u=Zor(c.value);return We(Tn,{width:"full",children:[z(aN,{label:`${n.hideKeyByDefault?"":c.key+":"} ${c.value}`,openDelay:1e3,children:We(Fi,{fontSize:"xs",color:r("gray.600","gray.400"),width:"100%",noOfLines:1,textOverflow:"ellipsis",children:[n.hideKeyByDefault?null:We(Si,{children:[c.key,":"]}),z(Fi,{display:"inline",as:"span",color:u?r("gray.800","gray.400"):r("gray.800","gray.50"),textStyle:u?"bold":"medium",pl:n.hideKeyByDefault?0:"1.5",children:c.value})]},c.key)}),c.assignment&&z(Tn,{paddingTop:"0.5",paddingBottom:"2",w:"full",children:Object.entries(c.assignment).map(([d,p])=>We(nl,{spacing:"0",alignItems:"start",children:[We(Fi,{fontSize:"xs",color:r("gray.800","gray.400"),children:[d,":"]}),z(Fi,{as:"code",fontSize:"xs",color:r("gray.800","gray.50"),paddingLeft:"1.5",width:"full",children:p})]},d))})]},c.value)})}),We(V1,{spacing:"0",direction:"row",border:"none",children:[z(Ev,{"aria-label":"Delete",onClick:n.onDelete,bg:r("transparent","transparent"),size:"xs",isDisabled:n.deleteDisabled,children:z(wW,{})}),n.allowEdit&&z(Ev,{"aria-label":n.editButtonLabel,onClick:n.onEdit,bg:r("transparent","transparent"),size:"xs",isDisabled:n.editDisabled,children:z(QBn,{})})]})]})})},esr=({children:n})=>{if(!n)return null;const r=lt.Children.toArray(n);return z(Tn,{children:r.map((c,u)=>z(U.exports.Fragment,{children:c},u))})};function tsr(n){return lN({idBeingEdited:null},{events:{ADD:()=>({}),EDIT:u=>({id:u}),CANCEL:()=>({}),CONFIRM:u=>({entity:u}),REPORT_PANEL_OPEN:()=>({}),REPORT_PANEL_CLOSED:()=>({})}}).createMachine({id:"Inline edit machine",initial:"Panel Closed",states:{"Panel open":{initial:"idle",states:{idle:{on:{ADD:{actions:"openAccordionPanel",target:"#Inline edit machine.Panel open.addFormOpen"},EDIT:{actions:"assignIdBeingEdited",target:"#Inline edit machine.Panel open.editFormOpen"}}},editFormOpen:{on:{CANCEL:{target:"#Inline edit machine.Panel open.idle"},CONFIRM:{actions:"onEdit",target:"#Inline edit machine.Panel open.idle"}}},addFormOpen:{on:{CANCEL:{target:"#Inline edit machine.Panel open.idle"},CONFIRM:{actions:"onAdd",target:"#Inline edit machine.Panel open.idle"}}}},on:{REPORT_PANEL_CLOSED:{target:"#Inline edit machine.Panel Closed"}}},"Panel Closed":{on:{REPORT_PANEL_OPEN:{target:"#Inline edit machine.Panel open"},ADD:{actions:"openAccordionPanel",target:"#Inline edit machine.Panel open.addFormOpen"}}}}},{actions:{openAccordionPanel:()=>{n.openAccordionPanel()},assignIdBeingEdited:Ji((u,d)=>"id"in d?{idBeingEdited:d.id}:{})}})}function Bae(n){const[r,c]=Nw(()=>tsr({openAccordionPanel:n.openAccordionPanel}),{actions:{onEdit:(d,p)=>{"entity"in p&&n.onEdit(d.idBeingEdited,p.entity)},onAdd:(d,p)=>{"entity"in p&&n.onAdd(p.entity)}}}),{getColorModeValue:u}=ei();return lt.useEffect(()=>{n.isPanelOpen?c("REPORT_PANEL_OPEN"):c("REPORT_PANEL_CLOSED")},[n.isPanelOpen,c]),We(rsr,{children:[We(nl,{children:[We(nsr,{paddingInlineStart:"0",display:"flex",css:{gap:".5rem"},flex:"1",children:[z(Qor,{color:u("gray.300","gray.600")}),We(Tn,{flex:"1",textAlign:"left",fontSize:"sm",textStyle:"medium",children:[n.title," ",z(ANt,{variant:"subtle",marginLeft:"2",children:n.countInTitle})]})]}),z(Ev,{onClick:()=>{c("ADD"),n.openAccordionPanel()},isDisabled:!r.can("ADD"),rounded:"none",bg:u("transparent","transparent"),"aria-label":n.addButtonLabel,children:z(BDe,{})})]}),n.isPanelOpen&&(n.entities.length>0||r.matches("Panel open.addFormOpen"))&&We(Tn,{background:u("gray.25","blackAlpha.400"),paddingBottom:"2",paddingRight:"1",paddingTop:"2",paddingLeft:"4",borderRadius:"md",border:"1px",borderColor:u("gray.50","whiteAlpha.200"),children:[z(esr,{children:n.entities.map((d,p)=>{var m,x;return r.matches("Panel open.editFormOpen")&&d._id===r.context.idBeingEdited?z(n.editForm,{onSubmit:E=>c({type:"CONFIRM",entity:E}),onCancel:()=>c("CANCEL"),initialValues:d},d._id):z(Jor,{hideKeyByDefault:n.hideKeyByDefault,allowEdit:(x=(m=n.allowEdit)==null?void 0:m.call(n,d))!=null?x:!0,properties:n.getProperties(d),editButtonLabel:n.editButtonLabel,onDelete:()=>{n.onDelete(d._id)},onEdit:()=>c({type:"EDIT",id:d._id}),deleteDisabled:!r.can({type:"EDIT",id:d._id}),editDisabled:!r.can({type:"EDIT",id:d._id})},p)})}),r.matches("Panel open.addFormOpen")&&z(n.addForm,{onSubmit:d=>{c({type:"CONFIRM",entity:d})},onCancel:()=>c("CANCEL"),entities:n.entities},n.entities.length)]})]})}const nsr=eUt(kMe,"PanelAccordionButton",n=>({display:"flex",css:{gap:".5rem"},_hover:{background:n("gray.25","whiteAlpha.100")}})),rsr=eUt(CMe,"PanelAccordionItem",()=>({borderColor:"transparent"})),isr={"no-children":{form:["key","type","parent","description","meta"],accordion:["invoke","entry","exit","tags"]},"with-children":{form:["key","type","initial-state","parent","description","meta"],accordion:["invoke","entry","exit","tags"]},final:{form:["key","type","parent","description","meta"],accordion:["entry","exit","tags"]},history:{form:["key","type","history-type","parent","description","meta"],accordion:[]},parallel:{form:["key","type","parent","description","meta"],accordion:["invoke","entry","exit","tags"]}},osr=(n,r)=>{switch(n.type){case"normal":return r>0?"with-children":"no-children";default:return n.type}},ssr=({nodeId:n})=>{var I;const r=Zc(),{getColorModeValue:c}=ei(),u=Ew(n,O=>({data:O.data,node:O,type:O.data.type,invocations:O.invocations,nodesLength:O.nodes.length,nodeKeys:O.nodes.map(N=>N.data.key),edges:O.edges.map(N=>({id:N.uniqueId,eventType:N.data.eventTypeData}))}),Xo),d=osr(u.data,u.nodesLength),p=isr[d],[m,x]=U.exports.useState(p.accordion.map((O,N)=>N)||[]),E=Ew(n,O=>O.parent),k="12",T=_k({value:u.data.key,onCommit:O=>r.send({type:"node.modify.key",key:O,nodeId:n})}),P=_k({value:u.data.description||"",onCommit:O=>r.send({type:"node.modify.description",nodeId:n,description:O})});return z(V1,{paddingTop:"1",paddingBottom:"2",children:We(V1,{spacing:"4",children:[p.form.map(O=>{switch(O){case"key":return z(Zi.Control,{label:"Key",columns:!0,labelColumnWidth:k,children:z(Zi.Input,{size:"sm",...T})},"key");case"parent":return E?z(Zi.Control,{label:"Parent",columns:!0,labelColumnWidth:k,children:z(Aor,{size:"sm",useBasicStyles:!0,selectedOptionStyle:"check",focusBorderColor:c("blue.500","blue.500"),chakraStyles:{container:(N,j)=>({...N,bg:c("white",j.isFocused?"transparent":"#393A3F"),borderColor:c("gray.100","whiteAlpha.50"),borderRadius:8}),menu:N=>({...N,marginTop:1,bg:c("white","gray.700"),boxShadow:"lg",borderColor:c("gray.100","gray.400"),color:c("gray.800","white"),borderRadius:8}),menuList:N=>({...N,bg:"none"}),option:N=>({...N,fontSize:"sm",marginTop:0,marginBottom:0})},defaultValue:E,getOptionLabel:N=>N.getSerialisableId(),getOptionValue:N=>N.uniqueId,options:r.getSnapshot().nodes.filter(N=>N.uniqueId!==n&&!u.node.isAncestorOf(N)),onChange:N=>{!N||r.send({type:"node.parent.modify",nodeId:n,parentNodeId:N.uniqueId})}})},"parent"):null;case"description":return z(Zi.Control,{label:"Description",children:z(Zi.Textarea,{size:"sm",...P})},"description");case"type":return z(Zi.Control,{label:"Type",columns:!0,labelColumnWidth:k,children:We(Zi.Select,{value:u.type,onChange:N=>{r.send({type:"node.modify.type",nodeId:n,stateType:N.target.value})},size:"sm",maxWidth:"36",children:[z("option",{value:"normal",children:"Normal"}),z("option",{value:"parallel",children:"Parallel"}),z("option",{value:"history",children:"History"}),z("option",{value:"final",children:"Final"})]})},"state_type");case"history-type":return z(Zi.Control,{label:"History",columns:!0,labelColumnWidth:k,children:We(_w,{isAttached:!0,children:[z(Y0,{size:"sm",isActive:u.data.history==="shallow",onClick:()=>{u.data.history!=="shallow"&&r.send({type:"node.modify.history",nodeId:n,history:"shallow"})},color:c("gray.500","gray.300"),background:c("white","gray.800"),border:"1px",borderColor:c("gray.100","gray.700"),_active:{color:c("white","gray.50"),bg:c("blue.500","gray.700"),borderColor:c("transparent","gray.600")},cursor:u.data.history==="shallow"?"default":"pointer",children:"Shallow"}),z(Y0,{size:"sm",onClick:()=>{u.data.history!=="deep"&&r.send({type:"node.modify.history",nodeId:n,history:"deep"})},isActive:u.data.history==="deep",color:c("gray.500","gray.300"),background:c("white","gray.800"),border:"1px",borderColor:c("gray.100","gray.700"),_active:{color:c("white","gray.50"),bg:c("blue.500","gray.700"),borderColor:c("transparent","gray.600")},cursor:u.data.history==="deep"?"default":"pointer",children:"Deep"})]})},"history_type");case"initial-state":return z(Zi.Control,{label:"Initial state",columns:!0,children:z(Zi.Select,{size:"sm",value:u.data.initial,onChange:N=>{r.send({type:"node.setInitialState",nodeId:n,key:N.target.value})},children:u.nodeKeys.map(N=>z("option",{children:N},N))})},"initial_state");default:return null}}),p.accordion.length?We(Tn,{children:[z(iN,{color:c("gray.500","gray.400"),fontSize:"sm",mb:"0",children:"Effects"}),z(Rle,{allowMultiple:!0,index:m,onChange:O=>{x(O)},children:p.accordion.map((O,N)=>{const j=()=>{m.includes(N)&&x(L=>[...L,N])},$=m.includes(N);switch(O){case"invoke":return z(Bae,{isPanelOpen:$,addButtonLabel:"Add Invocation",addForm:Kor,editForm:Yor,entities:u.invocations.map((L,B)=>({...L,_id:B})),allowEdit:L=>!L.jsImplementation,getProperties:L=>[{key:"Source",value:L.jsImplementation?"Inline":L.src},{key:"Id",value:L.userIdOverride||""}],onAdd:L=>{r.send({type:"node.modify.invocations.add",nodeId:n,invokeDefinition:L})},onDelete:L=>{r.send({type:"node.modify.invocations.delete",nodeId:n,index:L})},onEdit:(L,B)=>{r.send({type:"node.modify.invocations.edit",nodeId:n,index:L,invokeDefinition:B})},openAccordionPanel:j,title:"Invoked actors",countInTitle:u.invocations.length,editButtonLabel:"Edit invoked actor"},N);case"entry":return z(Bae,{isPanelOpen:$,hideKeyByDefault:!0,getProperties:L=>[a7(L)?{key:"Type",assignment:L.assignment,value:"assign"}:{key:"Type",value:L.jsImplementation?"Inline":L.type}],allowEdit:L=>!Bx(L),addButtonLabel:"Add Entry Action",editButtonLabel:"Edit Entry Action",title:"Entry actions",countInTitle:u.data.entry.length,onAdd:L=>{r.send({type:"node.modify.actions.add",nodeId:n,actionType:"entry",action:L})},entities:u.data.entry.map((L,B)=>({...L,_id:B})),onEdit:(L,B)=>{r.send({type:"node.modify.actions.edit",nodeId:n,actionType:"entry",action:B,index:L})},onDelete:L=>{r.send({type:"node.modify.actions.delete",nodeId:n,actionType:"entry",index:L})},openAccordionPanel:j,addForm:_Oe,editForm:MOe},N);case"exit":return z(Bae,{allowEdit:L=>!Bx(L),isPanelOpen:$,hideKeyByDefault:!0,addButtonLabel:"Add Exit Action",editButtonLabel:"Edit Exit Action",getProperties:L=>[a7(L)?{key:"Type",assignment:L.assignment,value:"assign"}:{key:"Type",value:L.jsImplementation?"Inline":L.type}],title:"Exit actions",countInTitle:u.data.exit.length,onAdd:L=>{r.send({type:"node.modify.actions.add",nodeId:n,actionType:"exit",action:L})},entities:u.data.exit.map((L,B)=>({...L,_id:B})),onEdit:(L,B)=>{r.send({type:"node.modify.actions.edit",nodeId:n,actionType:"exit",action:B,index:L})},onDelete:L=>{r.send({type:"node.modify.actions.delete",nodeId:n,actionType:"exit",index:L})},openAccordionPanel:j,addForm:_Oe,editForm:MOe},N);case"tags":return null;default:return null}})})]}):null,!yr.enabled&&p.form.includes("meta")&&z(Zi.Control,{label:"Meta data",hideLabel:!0,children:z(Nzt,{entries:(I=u.data.metaEntries)!=null?I:[],buttonLabel:"Add meta data",keyLabel:"Meta key",valueLabel:"Meta value",onChange:O=>{r.send({type:"node.modify.meta",nodeId:n,metaEntries:O})}})})]})})},asr=()=>{const n=Zc(),r=new Set;return n.snapshot.edges.forEach(c=>{c.data.eventTypeData.type==="named"&&r.add(c.data.eventTypeData.eventType)}),{events:Array.from(r).sort()}},csr=sg({initial:"checking",on:{INVOKES_CHANGED:{target:".checking"},CHOOSE_AFTER:{target:".afterEvent",actions:Ji(n=>({value:{type:"after",delay:"500"}}))},CHOOSE_DONE_EVENT:{target:".doneEvent",cond:"canChooseInvoke",actions:"assignDoneInvokeEventToValue"},CHOOSE_DONE_STATE:{target:".doneStateEvent",cond:"canChooseDoneState",actions:"assignDoneStateEventToValue"},CHOOSE_ALWAYS_EVENT:{target:".alwaysEvent",actions:Ji(n=>({value:{type:"always"}}))},CHOOSE_ERROR_EVENT:{target:".errorEvent",cond:"canChooseInvoke",actions:"assignErrorEventToValue"},CHOOSE_NORMAL_EVENT:{target:".normalEvent",actions:Ji(n=>({value:{type:"named",eventType:"Event name"}}))},CHOOSE_WILDCARD:{target:".wildcardEvent",actions:Ji(n=>({value:{type:"wildcard"}}))},VALUE_CHANGED_IN_DIGRAPH:{target:".checking",actions:Ji((n,r)=>({value:r.value}))}},states:{checking:{always:[{cond:n=>n.value.type==="always",target:"alwaysEvent"},{cond:n=>n.value.type==="wildcard",target:"wildcardEvent"},{cond:n=>n.value.type==="after",target:"afterEvent"},{cond:n=>n.value.type==="invocation.done",target:"doneEvent"},{cond:n=>n.value.type==="invocation.error",target:"errorEvent"},{cond:n=>n.value.type==="state.done",target:"doneStateEvent"},{target:"normalEvent"}]},alwaysEvent:{},wildcardEvent:{},doneStateEvent:{},normalEvent:{on:{CHANGE:{actions:Ji((n,r)=>({value:{type:"named",eventType:r.value}}))}}},afterEvent:{on:{CHOOSE_AFTER_LENGTH:{actions:Ji((n,r)=>({value:{type:"after",delay:r.value}}))}}},errorEvent:{always:{cond:"noInvokes",target:"normalEvent"},on:{CHOOSE_INVOCATION:{actions:Ji((n,r)=>({value:{type:n.value.type,invocationId:r.id}}))}}},doneEvent:{always:{cond:"noInvokes",target:"normalEvent"},on:{CHOOSE_INVOCATION:{actions:Ji((n,r)=>({value:{type:n.value.type,invocationId:r.id}}))}}}}}),usr=n=>{const r=U.exports.useRef(null),{getColorModeValue:c}=ei(),{events:u}=asr(),d=Zc(),p=jd(n.edgeId,N=>{const j=N.getNodeSource();return{invokes:j.invocations,data:N.data,sourceUniqueId:j.uniqueId,sourceId:j.getSerialisableId(),eventTypes:oLt(N)}},Xo),m=jd(n.edgeId,N=>N.data.eventTypeData);U.exports.useEffect(()=>{k({type:"VALUE_CHANGED_IN_DIGRAPH",value:m})},[m]);const x=p.invokes,[E,k]=Nw(csr,{context:{value:m},guards:{canChooseDoneState:()=>p.eventTypes.includes("state.done"),noInvokes:()=>!p.eventTypes.includes("invocation.done"),canChooseInvoke:()=>p.eventTypes.includes("invocation.done")},actions:{assignDoneStateEventToValue:Ji(N=>({value:{type:"state.done"}})),assignErrorEventToValue:Ji(N=>({value:{type:"invocation.error",invocationId:Jh(x[0])}})),assignDoneInvokeEventToValue:Ji(N=>({value:{type:"invocation.done",invocationId:Jh(x[0])}}))}});U.exports.useEffect(()=>{k({type:"INVOKES_CHANGED"})},[x]);const T=ya(N=>p.data.guard?!1:N.edges.filter($=>!$.data.guard&&$.getNodeSource().uniqueId===p.sourceUniqueId&&Xo($.data.eventTypeData,E.context.value)).length>1);U.exports.useEffect(()=>{d.send({type:"edge.modify.eventType",edgeId:n.edgeId,eventTypeData:E.context.value})},[E.context.value,n.edgeId]);const P=jd(n.edgeId,N=>N.getNodeSource().getSerialisableId()),I=jd(n.edgeId,N=>N.getNodeSource().invocations,Xo),O="12";return We(Si,{children:[z(Zi.Control,{label:"Trigger",columns:!0,labelColumnWidth:O,error:T?E.matches("doneEvent")?"Two done events with the same invocation AND source are not allowed":E.matches("errorEvent")?"Two error events with the same invocation AND source are not allowed":E.matches("alwaysEvent")?"Two always events with the same source are not allowed":E.matches("doneStateEvent")?"Two state done events with the same source are not allowed":E.matches("wildcardEvent")?"Two wildcard events with the same source are not allowed":void 0:"",children:We(Zi.Select,{size:"sm",onChange:N=>{switch(N.target.value){case"after":k("CHOOSE_AFTER");break;case"doneState":k("CHOOSE_DONE_STATE");break;case"normal":k("CHOOSE_NORMAL_EVENT");break;case"done":k("CHOOSE_DONE_EVENT");break;case"error":k("CHOOSE_ERROR_EVENT");break;case"always":k("CHOOSE_ALWAYS_EVENT");break;case"wildcard":k("CHOOSE_WILDCARD");break}},value:E.matches("afterEvent")?"after":E.matches("doneEvent")?"done":E.matches("errorEvent")?"error":E.matches("alwaysEvent")?"always":E.matches("doneStateEvent")?"doneState":E.matches("wildcardEvent")?"wildcard":"normal",children:[E.can({type:"CHOOSE_NORMAL_EVENT"})&&z("option",{value:"normal",children:"Event"}),E.can({type:"CHOOSE_AFTER"})&&z("option",{value:"after",children:"After"}),E.can({type:"CHOOSE_ALWAYS_EVENT"})&&z("option",{value:"always",children:"Always"}),E.can({type:"CHOOSE_DONE_STATE"})&&z("option",{value:"doneState",children:"State Done Event"}),E.can({type:"CHOOSE_DONE_EVENT"})&&z("option",{value:"done",children:"Invocation Done Event"}),E.can({type:"CHOOSE_ERROR_EVENT"})&&z("option",{value:"error",children:"Invocation Error Event"}),E.can({type:"CHOOSE_WILDCARD"})&&z("option",{value:"wildcard",children:"Wildcard Event"})]})}),E.can({type:"CHANGE",value:""})&&"eventType"in E.context.value&&z(Zi.Control,{label:"Name",columns:!0,labelColumnWidth:O,error:T?"Multiple unguarded events from the same source with the same name are not allowed":void 0,children:z(xk,{ref:r,options:u.filter(N=>E.context.value.type!=="named"?!1:N!==E.context.value.eventType),value:E.context.value.eventType,onChange:N=>{k({type:"CHANGE",value:N.target.value})},size:"sm"})}),E.can({type:"CHOOSE_AFTER_LENGTH",value:"100"})&&"delay"in E.context.value&&z(Zi.Control,{label:"Delay",columns:!0,labelColumnWidth:O,error:T?"Two events with the same delay AND source are not allowed":void 0,children:z(Zi.Input,{ref:r,value:E.context.value.delay,onChange:N=>{k({type:"CHOOSE_AFTER_LENGTH",value:N.target.value})},size:"sm",maxWidth:"40"})}),E.can({type:"CHOOSE_INVOCATION",id:""})&&"invocationId"in E.context.value&&z(Zi.Control,{columns:!0,labelColumnWidth:O,label:"Actor",children:z(Zi.Select,{size:"sm",value:E.context.value.invocationId,ref:r,onChange:N=>{k({type:"CHOOSE_INVOCATION",id:N.target.value})},children:x.map(N=>We("option",{value:Jh(N),children:[N.src,N.userIdOverride?` (${N.userIdOverride})`:""]},Jh(N)))})}),z(Fi,{fontSize:"xs",pl:"16",color:c("gray.500","gray.400"),children:E.matches("afterEvent")?"delay"in E.context.value?`Taken after ${E.context.value.delay} milliseconds`:"Taken after a time in milliseconds":E.matches("doneEvent")?"Taken when an invocation completes":E.matches("errorEvent")?"Taken when an error occurs in an invocation":E.matches("alwaysEvent")?"Taken immediately":E.matches("doneStateEvent")?"Taken when the source state reaches a 'final' state":E.matches("wildcardEvent")?"Taken when any event is received":`Taken when the '${Hce(E.context.value,P,I.map(N=>({id:Jh(N)})))}' event is received`})]})},lsr=({edgeId:n})=>{var T;const{getColorModeValue:r}=ei(),c=Zc(),u=jd(n,P=>({uniqueId:P.uniqueId,sourceId:P.getNodeSource().getSerialisableId(),targetId:P.target.getSerialisableId(),graphNodeIds:P.graph.snapshot.nodes.map(I=>I.getSerialisableId()).sort((I,O)=>I.localeCompare(O)),guard:P.data.guard,internal:P.data.internal,data:P.data}),Xo),d=jd(n,P=>P.data.guard,Xo),[p,m]=U.exports.useState([0]),x="12",E=_k({value:(d==null?void 0:d.type)||"",onCommit:P=>c.send({type:"edge.modify.guard",edgeId:n,guard:{type:P}})}),k=_k({value:u.data.description||"",onCommit:P=>c.send({type:"edge.modify.description",edgeId:n,description:P})});return z(V1,{paddingTop:"1",paddingBottom:"2",children:We(V1,{spacing:"4",children:[z(usr,{edgeId:n},u.uniqueId),z(Zi.Control,{label:"Source",columns:!0,labelColumnWidth:x,children:z(Zi.Select,{value:u.sourceId,onChange:P=>{c.send({type:"edge.setSource",edgeId:n,source:P.target.value})},size:"sm",children:u.graphNodeIds.map(P=>z("option",{children:P},P))})},"source"),z(Zi.Control,{label:"Target",columns:!0,labelColumnWidth:x,children:z(Zi.Select,{value:u.targetId,onChange:P=>{c.send({type:"edge.setTarget",edgeId:n,target:P.target.value})},size:"sm",children:u.graphNodeIds.map(P=>z("option",{children:P},P))})},"target"),z(Zi.Control,{label:"Guard",columns:!0,labelColumnWidth:x,error:void 0,children:z(Zi.Input,{isDisabled:(d==null?void 0:d.jsImplementation)!==void 0,size:"sm",...E})},"guard"),z(Zi.Control,{label:"Internal",hideLabel:!0,columns:!0,labelColumnWidth:x,children:We(_w,{isAttached:!0,children:[z(Y0,{size:"sm",isActive:u.internal,onClick:()=>{u.internal||c.send({type:"edge.modify.internal",edgeId:n,internal:!0})},color:r("gray.500","gray.300"),background:r("white","gray.800"),border:"1px",borderColor:r("gray.100","gray.700"),_active:{color:r("white","gray.50"),bg:r("blue.500","gray.700"),borderColor:r("transparent","gray.600")},cursor:u.internal?"default":"pointer",children:"Internal"}),z(Y0,{size:"sm",onClick:()=>{!u.internal||c.send({type:"edge.modify.internal",edgeId:n,internal:!1})},isActive:!u.internal,color:r("gray.500","gray.300"),background:r("white","gray.800"),border:"1px",borderColor:r("gray.100","gray.700"),_active:{color:r("white","gray.50"),bg:r("blue.500","gray.700"),borderColor:r("transparent","gray.600")},cursor:u.internal?"pointer":"default",children:"External"})]})},"internal"),z(Zi.Control,{label:"Description",children:z(Zi.Textarea,{size:"sm",...k})},"description"),We(Tn,{children:[z(iN,{color:r("gray.500","gray.400"),fontSize:"sm",mb:"0",children:"Effects"}),z(Rle,{allowMultiple:!0,index:p,onChange:P=>{m(P)},children:z(Bae,{allowEdit:P=>!Bx(P),isPanelOpen:p.includes(0),addButtonLabel:"Add Action",editButtonLabel:"Edit Action",getProperties:P=>[f7(P)?{key:"Type",assignment:P.assignment,value:"assign"}:{key:"Type",value:P.jsImplementation?"Inline":P.type}],title:"Actions",hideKeyByDefault:!0,countInTitle:u.data.actions.length,onAdd:P=>{c.send({type:"edge.modify.actions.add",edgeId:n,action:P})},entities:u.data.actions.map((P,I)=>({...P,_id:I})),onEdit:(P,I)=>{c.send({type:"edge.modify.actions.edit",edgeId:n,action:I,index:P})},onDelete:P=>{c.send({type:"edge.modify.actions.delete",edgeId:n,index:P})},openAccordionPanel:()=>{p.includes(0)||m(P=>[...P,0])},addForm:_Oe,editForm:MOe})})]}),z(Zi.Control,{label:"Meta data",hideLabel:!0,children:z(Nzt,{entries:(T=u.data.metaEntries)!=null?T:[],buttonLabel:"Add meta data",keyLabel:"Meta key",valueLabel:"Meta value",onChange:P=>{c.send({type:"edge.modify.meta",edgeId:u.uniqueId,metaEntries:P})}})})]})})},Xfe=U.exports.createContext(null),fsr=({refs:n,index:r,children:c,label:u,Footer:d,Icon:p,onOpen:m,onClose:x,isOpen:E,autoClose:k=!1,size:T="xs"})=>{const{getColorModeValue:P}=ei();return z("li",{ref:I=>{n.current[r]=I},children:z(pDe,{placement:"left-start",isLazy:!0,lazyBehavior:"unmount",offset:[-30,15],returnFocusOnClose:!0,closeOnBlur:k,closeOnEsc:!0,onOpen:m,onClose:x,isOpen:E,children:({isOpen:I})=>We(Si,{children:[z(Dce,{children:z(Uc,{"aria-label":"Details view",variant:"light",size:"md",paddingX:"0",paddingY:"6",fontSize:"2xl",children:z(aN,{label:u,placement:"left",openDelay:500,children:z(Tn,{children:p})})})}),z(s3,{children:We(mDe,{borderWidth:I?1:0,bg:P("white","gray.800"),width:T,borderColor:P("gray.100","gray.700"),shadow:"md",children:[We(Tn,{position:"sticky",top:"0",bg:P("white","gray.800"),zIndex:"1",borderRadius:"inherit",children:[z(bDe,{zIndex:1,size:"md"}),z(vDe,{fontSize:"sm",textStyle:"bold",borderColor:P("gray.50","gray.700"),children:u})]}),z(gDe,{maxHeight:"calc(100vh - 96px - 30px - 96px)",overflowY:"auto",children:c}),d&&z(mRt,{children:d})]})})]})})})},dsr=lt.forwardRef(function(r,c){const u=CRt({...r,ref:c}),d=!!u["aria-selected"];return z(Uc,{_focus:{outlineOffset:0},variant:d?"primary":"gray",...u,children:u.children})}),fTe=[{label:"JSON",key:"json",icon:z(Fi,{as:"span",display:"block",bg:"transparent",width:"1rem",height:"1rem",children:"{ }"})},{label:"JavaScript",key:"js",icon:z(DYn,{width:"1rem",height:"1rem"})},{label:"TypeScript",key:"ts",icon:z(MYn,{width:"1rem",height:"1rem"})}],hsr=({selectedIndex:n,setSelectedIndex:r})=>{const c=U.exports.useContext(yUt),u=Zc(),{getColorModeValue:d}=ei(),{isLoading:p,codes:m}=FYn({graphActor:u,formatOptions:{printWidth:100}});return p?z(Tn,{children:"Loading"}):z(Si,{children:z(yDe,{p:"2",index:n,onChange:x=>{r(x)},children:We(yk,{alignItems:"stretch",gap:"4",children:[We(Vc,{justifyContent:"space-between",flex:"1",children:[z(wDe,{borderBottom:"0",children:z(_w,{isAttached:!0,size:"sm",children:fTe.map(x=>We(dsr,{display:"flex",gap:"2",children:[z(Fi,{as:"span",display:"block","aria-hidden":"true",children:x.icon}),z(Fi,{as:"span",display:"block",marginTop:"0.5!important",children:x.label})]},x.key))})}),We(_w,{isAttached:!0,children:[z(Uc,{size:"sm",variant:"light",paddingInlineEnd:"0",onClick:()=>{c==null||c.onOpen()},children:"Import"}),z(jYn,{variant:"light",text:m==null?void 0:m[fTe[n].key],width:"70px",paddingInlineEnd:"0"})]})]}),z(SDe,{children:fTe.map(x=>z(xDe,{p:"0",children:z(Tn,{as:"textarea",resize:"none",borderRadius:"md",width:"100%",height:"60vh",readOnly:!0,fontFamily:"mono",fontSize:"sm",padding:"3",value:m[x.key],bg:d("blackAlpha.100","whiteAlpha.100")})},x.key))})]})})})},psr=()=>{const{userMode:n}=U.exports.useContext(CW),r=U.exports.useRef(null),c=Zc(),[u,d]=U.exports.useState(0),[p,m]=U.exports.useState(""),[x,E]=U.exports.useState(""),k=U.exports.useRef([]),T=U.exports.useContext(r1),P=Al(T,L=>L.matches("simulating")?"sim":"edit"),{getColorModeValue:I}=ei(),O=ya(L=>Object.values(L.selection)[0],Xo),j=U.exports.useRef(P).current!==P;U.exports.useEffect(()=>{j&&E("")},[j,E]);const $={edit:[{label:O?O.type==="node"?"State details":"Transition details":"Machine details",Body:O?O.type==="node"?z(ssr,{nodeId:O.id},O.id):z(lsr,{edgeId:O.id},O.id):z(ZQn,{}),Icon:bVn},{label:"Context",Body:z(Xfe.Provider,{value:{panelRef:r,openPopoverId:p,onPopoverOpen(L){m(L)},onPopoverClose(){m("")}},children:z(Tn,{paddingBlockEnd:"4",children:z(QQn,{})})}),Footer:z(VYn,{onCommit:(L,B,F)=>{c.send({type:"context.addFieldByInferredType",key:L,expression:B,inferredType:F})}}),Icon:gVn,disabled:yr.enabled},{label:"Code",Body:z(hsr,{selectedIndex:u,setSelectedIndex:d}),autoClose:!1,size:"lg",Icon:mVn,disabled:yr.enabled}],sim:[{label:"Event log",Body:z(Inr,{}),Icon:L=>z(uVn,{width:"24px",height:"24px",...L}),autoClose:!1}]};return z(Tn,{as:"ul",listStyleType:"none",bg:I("white","gray.800"),borderWidth:"1px",borderRightWidth:"0",borderColor:I("gray.100","gray.700"),shadow:"md",borderLeftRadius:"md",padding:"2",height:"max-content",position:"absolute",right:"0",marginTop:n==="vscode"?"24":"16",ref:r,children:$[P].filter(L=>!L.disabled).map(({label:L,Body:B,Footer:F,Icon:X,autoClose:te,size:Z},H)=>z(fsr,{refs:k,index:H,label:L,Footer:F,size:Z,Icon:z(X,{color:H.toString()===x?I("blue.500","white"):I("gray.800","gray.300"),_hover:{color:H.toString()===x?I("blue.500","white"):I("gray.600","gray.200")}}),autoClose:te,onOpen:()=>{E(H.toString())},onClose:()=>{E("")},isOpen:x===H.toString(),children:B},H))})};function gsr(n){const{getColorModeValue:r}=ei(),{viewBox:c,cursorType:u}=n;return We("svg",{viewBox:`${c.minX} ${c.minY} ${c.width} ${c.height}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"100%",position:"fixed",top:0,left:0,cursor:u},children:[z("pattern",{id:"grid",width:"24",height:"24",x:0,y:0,patternUnits:"userSpaceOnUse",children:z("path",{d:"M 24 0 L 0 0 0 24",fill:"none",stroke:r("var(--chakra-colors-primary-grid_temp)","rgba(255,255,255,0.1)"),strokeWidth:"1"})}),z("rect",{width:c.width*2,height:c.height*2,x:c.minX-c.width/2,y:c.minY-c.height/2,fill:"url('#grid')",pointerEvents:"none"})]})}function bsr({edgeId:n}){return z(msr,{edgeId:n,css:{cursor:"pointer",path:{transition:"stroke 0.1s ease, fill 0.1s ease"}}})}function msr({edgeId:n,css:r}){const c=Zc(),u=ya(O=>Boolean(O.selection[n])),{position:d,description:p,actions:m}=jd(n,O=>({position:O.currentPosition,actions:O.data.actions,description:O.data.description}),Xo),x=jd(n,O=>O.getDisplayEventType()),E=jd(n,O=>O.data.eventTypeData,Xo),k=ya(O=>O.status==="movingSelection"),T=RFt(n),{getColorModeValue:P}=ei(),I=jw();return z(Tn,{css:r,opacity:u?1:"var(--default-entity-opacity, 1)",_hover:T?{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:P("primary.600","primary.600")},["marker path"]:{fill:P("primary.600","primary.600")}}:{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:P("gray.800","white")},["marker path"]:{fill:P("gray.800","white")},cursor:I?"default":"pointer"},children:z(knr,{actions:m,isActiveInSimulation:T,description:p||"",eventType:x,eventTypeData:E,onLabelRect:lt.useCallback(O=>{c.send({type:"edge.setSize",edgeId:n,size:O})},[n]),edgeId:n,selected:u&&!k,style:{position:"absolute",left:`${d.x}px`,top:`${d.y}px`}})})}function vsr(){const n=ya(r=>r.edges.map(c=>c.uniqueId),MD);return z(Si,{children:n.map(r=>z(bsr,{edgeId:r},r))})}const DOe=({id:n,pathProps:r})=>z("marker",{id:n,viewBox:"0 0 10 10",markerWidth:"5",markerHeight:"5",refX:"5",refY:"5",markerUnits:"strokeWidth",orient:"auto",children:z("path",{d:"M0,0 L0,10 L10,5 z",...r})}),NOe=5,dTe=5;function ysr(n,r){var c;return n.status==="movingAnchor"&&((c=n.tempAnchor)==null?void 0:c.type)==="source"&&n.tempAnchor.edgeId===r?n.tempAnchor.point:void 0}const wsr=Qt("g");function xsr(n,r){var c;return n.status==="movingAnchor"&&((c=n.tempAnchor)==null?void 0:c.type)==="target"&&n.tempAnchor.edgeId===r?n.tempAnchor.point:void 0}function Ssr(n){const{getColorModeValue:r}=ei(),c=jw(),u=RFt(n),d=ya(x=>Boolean(x.selection[n]));let p=r("var(--chakra-colors-gray-400)","var(--chakra-colors-gray-400)"),m=r("black","white");return c&&(u?(p=r("var(--chakra-colors-gray-800)","white"),m=r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)")):p=r("var(--chakra-colors-gray-300)","var(--chakra-colors-gray-400)")),d&&(p=r("var(--chakra-colors-gray-900)","var(--chakra-colors-gray-100)")),{stroke:p,hoverColor:m}}const Esr=({sourcePathData:n,targetPathData:r,radius:c=10,pathProps:u,hoverPathProps:d,sourcePathProps:p,targetPathProps:m,highlightPathProps:x})=>{const E=U.exports.useId(),k=U.exports.useId(),T=U.exports.useMemo(()=>n?u7(n.getSvgPath({radius:c})):void 0,[n,c]),P=U.exports.useMemo(()=>r?u7(r.getSvgPath({radius:c})):void 0,[r,c]),{zoom:I}=RS();return We(wsr,{"data-name":"edge-path-group",_hover:{'[data-name="edge-path-source"], [data-name="edge-path-target"]':{stroke:d==null?void 0:d.stroke},'[data-name="edge-path-target"]':{markerEnd:`url(#${k})`}},children:[We("defs",{children:[z(DOe,{id:E,pathProps:{fill:u==null?void 0:u.stroke}}),z(DOe,{id:k,pathProps:{fill:d==null?void 0:d.stroke}})]}),T&&z("path",{"data-name":"edge-path-source",d:T,fill:"none",strokeWidth:2,stroke:"white",strokeLinecap:"round",...u,...p}),P&&z("path",{"data-name":"edge-path-target",d:P,fill:"none",markerEnd:`url(#${E})`,strokeWidth:2,stroke:"white",...u,...m}),z("path",{d:[T,P].filter(Boolean).join(" "),stroke:"transparent",strokeWidth:12/(I!=null?I:1),fill:"none",onClick:u==null?void 0:u.onClick,pointerEvents:"stroke",strokeOpacity:0,...x})]})},ksr=({edgeId:n,radius:r,onClick:c,...u})=>{const{pathData:d,isSelected:p}=jd(n,(k,T)=>{const P=ysr(T,n),I=xsr(T,n),O=Boolean(T.selection[n]);return{pathData:k.getPathData({tempSourcePoint:P,tempTargetPoint:I}),isSelected:O}},Xo),m=jd(n,k=>k.getEdgeGroupIndex()),{stroke:x,hoverColor:E}=Ssr(n);return d?z(qk,{style:{opacity:p?1:"var(--default-entity-opacity, 1)"},children:z(Esr,{sourcePathData:d.sourcePathData,targetPathData:d.targetPathData,radius:r,pathProps:{stroke:x,...u},sourcePathProps:{strokeDasharray:m&&m>0?"1 5":void 0},targetPathProps:{display:"block"},hoverPathProps:{stroke:E},highlightPathProps:{onClick:c}})}):null},Csr=({edgeId:n})=>{const r=Zc(),c=jw();return z(ksr,{edgeId:n,onClick:()=>{c||r.send({type:"select",entity:{type:"edge",id:n},mode:"single"})}})};function Isr(){const n=ya(r=>r.edges.map(c=>c.uniqueId),MD);return z(Si,{children:n.map(r=>z(Csr,{edgeId:r},r))})}function jOe(n){const{x:r,y:c,width:u,height:d,...p}=n;return z("svg",{viewBox:`0 0 ${u} ${d}`,width:u,height:d,style:{position:"absolute",left:`${r}px`,top:`${c}px`,pointerEvents:"none",overflow:"visible"},children:z("rect",{width:u,height:d,pointerEvents:"auto",...p})})}function Tsr({serialisableId:n,left:r,top:c}){const u={x:r,y:c+dTe*2},d={x:r-NOe,y:c+dTe*2},p={x:d.x-NOe,y:d.y-dTe*2},m=U.exports.useId(),{getColorModeValue:x}=ei(),E=x("var(--chakra-colors-gray-800)","var(--chakra-colors-gray-400)");return z(qk,{children:We("g",{children:[z("defs",{children:z(DOe,{id:m,pathProps:{fill:E}})}),z("circle",{fill:E,r:"4",cx:p.x,cy:p.y}),z("path",{"data-testname":`${n}#initial`,strokeWidth:2,style:{transition:"stroke 0.3s",strokeDashoffset:"0",strokeDasharray:"1 1"},d:`M ${p.x},${p.y} Q ${p.x},${d.y} ${d.x},${d.y} L ${d.x+1}, ${d.y} M ${u.x},${u.y}`,stroke:E,fill:"none",markerEnd:`url(#${m})`,pathLength:1})]})})}const hTe=({prefix:n,color:r,children:c,...u})=>{const{getColorModeValue:d}=ei();return z(Tn,{display:"flex",flexDir:"row",alignItems:"baseline",style:{gap:"1ch"},...u,children:We(Fi,{width:"max-content",maxWidth:"xs",fontSize:"sm",children:[We(Fi,{as:"span",fontSize:"xs",textStyle:"semibold",whiteSpace:"nowrap",color:r,textTransform:"uppercase",children:[n," ",z(Fi,{as:"span",fontSize:"xs",textStyle:"semibold",whiteSpace:"nowrap",color:d("gray.300","gray.500"),textTransform:"uppercase",children:"/"})," "]}),c]})})},Asr=({style:n,nodeId:r})=>{const c=U.exports.useCallback(pe=>{x.send({type:"node.setSize",nodeId:r,size:ZDe(pe,k.current)})},[r]),u=yfe(r),d=U.exports.useRef(null),p=U.exports.useRef(null),m=jw(),x=Zc(),{getColorModeValue:E}=ei(),k=U.exports.useContext(mN),{nodeData:T,serializableId:P,isSelected:I,childrenRect:O,childStateCount:N}=Ew(r,pe=>{const fe=pe.uniqueId in pe.graph.snapshot.selection;return{nodeData:pe.data,serializableId:pe.getSerialisableId(),isSelected:fe,childrenRect:pe._rects.children,childStateCount:pe.config.nodes.length}},Xo),j=Ew(r,pe=>pe.data.entry,Xo),$=Ew(r,pe=>pe.data.exit,Xo),L=Ew(r,pe=>pe.invocations,Xo),B=jFt(r),{errors:F,warnings:X}=ya(pe=>{const fe=pe.getNodeByUniqueId(r);return fe?{errors:RLt(fe),warnings:$Lt(fe,pe)}:{errors:null,warnings:null}},Xo);MFt("node",r,{inputRef:p});const te=T.type==="final"?"final":T.type==="history"?T.history==="deep"?"deep history":"history":void 0;izt(d,c);const Z=tVt(T),H=j.length>0||$.length>0||L.length>0||T.description;mfe(d,{disabled:m,onDragStart:()=>{x.send({type:"selection.moveStart"})},onDrag:({delta:pe})=>{x.send({type:"selection.move",delta:pe})},onDragEnd:()=>{x.send({type:"selection.moveEnd"})}},k),U.exports.useEffect(()=>{if(!m)return Il.bind(d.current,{type:"pointerdown",listener:pe=>{I||x.send({type:rLt(pe)?"select":"select.start",entity:{id:r,type:"node"},mode:pe.shiftKey?"multi":"single"})}})},[I,x,r,m]);const ce=_k({value:T.key,focusRefOnKeyDownCommit:d,commitOnEsc:!0,onCommit:pe=>x.send({type:"node.modify.key",nodeId:r,key:pe})});return We(Tn,{tabIndex:-1,"data-testid":`node:${P}`,title:`#${P}${te?` (${te})`:""}`,"data-node-id":r,"data-node-active":u,style:{outline:"none",...n},ref:d,width:"auto",minWidth:O.width,userSelect:"none",color:u?E("gray.800","white"):m?E("gray.500","gray.400"):E("gray.800","gray.50"),borderBottom:N>0?"1px":"0",borderColor:m&&!u?E("gray.100","gray.800"):E("gray.100","gray.700"),children:[z(yVt,{hidden:m,errors:F,warnings:X}),We(nl,{paddingInline:"3",paddingBlock:"2",spacing:"3",alignItems:"flex-start",width:"max-content",maxWidth:"xl",children:[T.type&&["history","final"].includes(T.type)&&z(Z,{w:"6",h:"6",color:u?E("primary.600","white"):E("gray.600","gray.200"),mt:"1px",pointerEvents:"none"}),z(Zi.Control,{label:"Key",hideLabel:!0,children:z(uOe,{pointerEvents:B?"auto":"none",isDisabled:m,textStyle:"semibold",fontSize:"md",ref:p,onPointerDownCapture:pe=>{pe.stopPropagation()},selectOnFocus:!0,...ce})})]}),H&&z(Tn,{px:"3",children:z(mv,{mb:"3"})}),We(V1,{pb:"3",_empty:{display:"none"},spacing:"1.5",children:[j.map((pe,fe)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[z(E$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),z(hTe,{prefix:"entry","aria-label":`entry: ${pe.type}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:Bx(pe)?z("em",{children:"Inline"}):Rq(pe)})]},fe)),L.map((pe,fe)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[z(C$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),z(hTe,{prefix:"invoke","aria-label":`invoke: ${pe.src}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:pe.jsImplementation?z("em",{children:"Inline"}):We(Si,{children:[pe.src,pe.userIdOverride?` (${pe.userIdOverride})`:""]})})]},fe)),$.map((pe,fe)=>We(nl,{spacing:"3",px:"3",alignItems:"flex-start",mt:"2px",children:[z(k$t,{h:"5",w:"5",color:E("gray.600","gray.400"),pointerEvents:"none"}),z(hTe,{prefix:"exit","aria-label":`exit: ${pe.type}`,color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),children:Bx(pe)?z("em",{children:"Inline"}):Rq(pe)})]},fe))]}),T.description&&z(Tn,{color:u?E("gray.600","whiteAlpha.700"):m?E("gray.600","gray.400"):E("gray.600","gray.200"),px:"3",pb:"3",children:z(Tn,{width:"max-content",maxWidth:"md",fontSize:"sm",children:z(qNe,{children:T.description})})})]})},Psr=({nodeId:n})=>{const{getColorModeValue:r}=ei(),{userMode:c}=U.exports.useContext(CW),u=Ew(n,m=>{var T,P;const x=((T=m.parent)==null?void 0:T.data.initial)===m.data.key,E=Object.values(m.graph.snapshot.selection).some(I=>{if(I.type!=="edge")return;const O=m.graph.snapshot.getEdgeByUniqueId(I.id);if(!!O)return O.source===m||O.target===m}),k=((P=m.parent)==null?void 0:P.data.type)==="parallel";return{data:m.data,rects:m.currentRects,isInitial:x,isChildOfParallel:k,serialisableId:m.getSerialisableId(),uniqueId:m.uniqueId,isHighlighted:m.isHighlighted,childStateCount:m.config.nodes.length,edgeIsSelected:E}},Xo),d=yfe(n),p=jw();return We(Tn,{style:{transition:"opacity 0.1s ease"},opacity:u.edgeIsSelected?1:"var(--default-entity-opacity, 1)",children:[u.isInitial&&z(Tsr,{left:u.rects.family.left-NOe*2,top:u.rects.family.top,serialisableId:u.serialisableId}),z(Osr,{node:u}),z(jOe,{"data-node-id":`${u.serialisableId}#label`,"data-node-rect":"self","data-node-active":d,x:u.rects.self.x,y:u.rects.self.y,width:u.rects.self.width,height:u.rects.self.height,fill:d?u.childStateCount>0?r("white","var(--chakra-colors-gray-700)"):r("#F5FAFF","#0C113B"):p?r("var(--chakra-colors-gray-50)","var(--chakra-colors-gray-850)"):r("white","var(--chakra-colors-gray-700)")}),z("div",{style:{position:"absolute",left:`${u.rects.family.left}px`,top:`${u.rects.family.top}px`,overflow:"visible",color:r(d?"white":"inherit","white")},children:z(Asr,{nodeId:u.uniqueId})}),z(jOe,{"data-node-id":c==="screenshot"?"screenshot-root-id":void 0,pointerEvents:"none","data-node-rect":"family",fill:"transparent",style:r({filter:"drop-shadow( 0 0 0.01rem rgba(155,160,168,0.4))"},{filter:"drop-shadow( 0 0.3rem 0.5rem rgba(0, 0, 0, .4))"}),x:u.rects.family.left,y:u.rects.family.top,width:u.rects.family.width,height:u.rects.family.height,rx:2,ry:2,stroke:d?u.childStateCount>0?r("var(--chakra-colors-gray-100)","var(--chakra-colors-gray-700)"):r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)"):r("var(--chakra-colors-gray-100)","var(--chakra-colors-gray-700)"),strokeWidth:2,...u.isChildOfParallel&&{stroke:r("var(--chakra-colors-gray-600)","var(--chakra-colors-gray-400)"),strokeDasharray:"4px",strokeWidth:r("1px","inherit")},...u.isHighlighted&&{stroke:r("var(--chakra-colors-primary-600)","var(--chakra-colors-primary-600)"),strokeDasharray:"0px"}})]})};function Osr(n){const{getColorModeValue:r}=ei(),{node:c}=n;return z(Si,{children:z(jOe,{"data-node-id":`${c.serialisableId}#children`,"data-node-rect":"children",fill:r("#FAFBFC","var(--chakra-colors-gray-900)"),fillOpacity:.16,x:c.rects.children.left,y:c.rects.children.top,width:c.rects.family.width,height:c.rects.children.height,pointerEvents:"none"})})}function _sr(){const n=ya(r=>r.nodes,vPe);return z(Si,{children:n.map(r=>z(Psr,{nodeId:r.uniqueId},r.uniqueId))})}const Msr=U.exports.forwardRef(function(r,c){const{viewBox:u,children:d,...p}=r;return z(Tn,{...p,ref:c,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%"},children:z("div",{style:{position:"absolute",top:0,left:0,transform:`scale(${u.zoom}) translate(${-u.minX}px, ${-u.minY}px)`},children:d})})}),qAt=el*5,WAt=el*2,Dsr=()=>{const n=U.exports.useRef(null),{getColorModeValue:r}=ei(),c=ya(d=>{var p;return(p=d.tempEdge)==null?void 0:p.sourceSide}),u=ya(d=>{if(!d.tempEdge)return null;const{nodeId:p}=d.tempEdge,m=d.getNodeByUniqueId(p);if(!m||d.tempEdge.nodeId!==m.uniqueId||d.tempEdge.target===m)return null;const x=m.currentRects.family;let E=new Du({...d.tempEdge.targetPoint,width:jM,height:jM}),k=d.tempEdge.targetPoint,T=m;const P=T.graph.snapshot.getNodeRectDataAtPoint(k);P&&P.rectKey!=="family"&&(T=P.node,E=T.currentRects.family,k=void 0);const I=k?new Du({x:k.x,y:k.y,width:qAt,height:WAt}):void 0,O=Wce(x.centerSide(c!=null?c:"top")),N=Jce(I?{labelRect:x,toRect:I,otherRects:[],initialRay:O,endOffset:10,toSides:["top","bottom","left","right"]}:{labelRect:x,toRect:E,otherRects:[],initialRay:O,endOffset:10,toSides:["top","bottom","left","right"]}),j=new Aq({startPoint:O,endPoint:N.path[N.path.length-1],midPoints:N.path.slice(1,-1)});return{d:u7(j.getSvgPath({radius:10})),tempEdge:d.tempEdge}},Xo);return u?z(qk,{children:We("g",{"data-testname":"new-event-dragbox",children:[z("path",{stroke:r("#398ef1","#398ef1"),fill:"none",ref:n,d:u.d,strokeWidth:4,vectorEffect:"non-scaling-stroke"}),!u.tempEdge.target&&z("rect",{x:u.tempEdge.targetPoint.x,y:u.tempEdge.targetPoint.y,width:qAt,height:WAt,fill:r("#313238","#313238"),opacity:.5})]})}):null},Nsr=()=>{const{getColorModeValue:n}=ei(),{zoom:r}=RS(),c=ya(u=>{if(u.status!=="movingSelection")return[];const d=u.snapLines;return d?d.map(p=>p.direction==="x"?p.startRect.center.x>p.endRect.center.x?u7([["M",p.startRect.centerSide("right")],["L",p.endRect.centerSide("left")]]):u7([["M",p.startRect.centerSide("left")],["L",p.endRect.centerSide("right")]]):p.startRect.center.y>p.endRect.center.y?u7([["M",p.startRect.centerSide("bottom")],["L",p.endRect.centerSide("top")]]):u7([["M",p.startRect.centerSide("top")],["L",p.endRect.centerSide("bottom")]])):[]},MD);return z(qk,{children:c.map(u=>z("path",{d:u,stroke:n("var(--chakra-colors-primary-500)","var(--chakra-colors-primary-500)"),strokeWidth:2/r},u))})};var cc;(function(n){n.assertEqual=d=>d;function r(d){}n.assertIs=r;function c(d){throw new Error}n.assertNever=c,n.arrayToEnum=d=>{const p={};for(const m of d)p[m]=m;return p},n.getValidEnumValues=d=>{const p=n.objectKeys(d).filter(x=>typeof d[d[x]]!="number"),m={};for(const x of p)m[x]=d[x];return n.objectValues(m)},n.objectValues=d=>n.objectKeys(d).map(function(p){return d[p]}),n.objectKeys=typeof Object.keys=="function"?d=>Object.keys(d):d=>{const p=[];for(const m in d)Object.prototype.hasOwnProperty.call(d,m)&&p.push(m);return p},n.find=(d,p)=>{for(const m of d)if(p(m))return m},n.isInteger=typeof Number.isInteger=="function"?d=>Number.isInteger(d):d=>typeof d=="number"&&isFinite(d)&&Math.floor(d)===d;function u(d,p=" | "){return d.map(m=>typeof m=="string"?`'${m}'`:m).join(p)}n.joinValues=u,n.jsonStringifyReplacer=(d,p)=>typeof p=="bigint"?p.toString():p})(cc||(cc={}));const si=cc.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),XE=n=>{switch(typeof n){case"undefined":return si.undefined;case"string":return si.string;case"number":return isNaN(n)?si.nan:si.number;case"boolean":return si.boolean;case"function":return si.function;case"bigint":return si.bigint;case"object":return Array.isArray(n)?si.array:n===null?si.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?si.promise:typeof Map<"u"&&n instanceof Map?si.map:typeof Set<"u"&&n instanceof Set?si.set:typeof Date<"u"&&n instanceof Date?si.date:si.object;default:return si.unknown}},Yr=cc.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]),jsr=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class bS extends Error{constructor(r){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const c=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,c):this.__proto__=c,this.name="ZodError",this.issues=r}get errors(){return this.issues}format(r){const c=r||function(p){return p.message},u={_errors:[]},d=p=>{for(const m of p.issues)if(m.code==="invalid_union")m.unionErrors.map(d);else if(m.code==="invalid_return_type")d(m.returnTypeError);else if(m.code==="invalid_arguments")d(m.argumentsError);else if(m.path.length===0)u._errors.push(c(m));else{let x=u,E=0;for(;Ec.message){const c={},u=[];for(const d of this.issues)d.path.length>0?(c[d.path[0]]=c[d.path[0]]||[],c[d.path[0]].push(r(d))):u.push(r(d));return{formErrors:u,fieldErrors:c}}get formErrors(){return this.flatten()}}bS.create=n=>new bS(n);const Vq=(n,r)=>{let c;switch(n.code){case Yr.invalid_type:n.received===si.undefined?c="Required":c=`Expected ${n.expected}, received ${n.received}`;break;case Yr.invalid_literal:c=`Invalid literal value, expected ${JSON.stringify(n.expected,cc.jsonStringifyReplacer)}`;break;case Yr.unrecognized_keys:c=`Unrecognized key(s) in object: ${cc.joinValues(n.keys,", ")}`;break;case Yr.invalid_union:c="Invalid input";break;case Yr.invalid_union_discriminator:c=`Invalid discriminator value. Expected ${cc.joinValues(n.options)}`;break;case Yr.invalid_enum_value:c=`Invalid enum value. Expected ${cc.joinValues(n.options)}, received '${n.received}'`;break;case Yr.invalid_arguments:c="Invalid function arguments";break;case Yr.invalid_return_type:c="Invalid function return type";break;case Yr.invalid_date:c="Invalid date";break;case Yr.invalid_string:typeof n.validation=="object"?"startsWith"in n.validation?c=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?c=`Invalid input: must end with "${n.validation.endsWith}"`:cc.assertNever(n.validation):n.validation!=="regex"?c=`Invalid ${n.validation}`:c="Invalid";break;case Yr.too_small:n.type==="array"?c=`Array must contain ${n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?c=`String must contain ${n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?c=`Number must be greater than ${n.inclusive?"or equal to ":""}${n.minimum}`:n.type==="date"?c=`Date must be greater than ${n.inclusive?"or equal to ":""}${new Date(n.minimum)}`:c="Invalid input";break;case Yr.too_big:n.type==="array"?c=`Array must contain ${n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?c=`String must contain ${n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?c=`Number must be less than ${n.inclusive?"or equal to ":""}${n.maximum}`:n.type==="date"?c=`Date must be smaller than ${n.inclusive?"or equal to ":""}${new Date(n.maximum)}`:c="Invalid input";break;case Yr.custom:c="Invalid input";break;case Yr.invalid_intersection_types:c="Intersection results could not be merged";break;case Yr.not_multiple_of:c=`Number must be a multiple of ${n.multipleOf}`;break;default:c=r.defaultError,cc.assertNever(n)}return{message:c}};let tUt=Vq;function Rsr(n){tUt=n}function kue(){return tUt}const Cue=n=>{const{data:r,path:c,errorMaps:u,issueData:d}=n,p=[...c,...d.path||[]],m={...d,path:p};let x="";const E=u.filter(k=>!!k).slice().reverse();for(const k of E)x=k(m,{data:r,defaultError:x}).message;return{...d,path:p,message:d.message||x}},$sr=[];function qi(n,r){const c=Cue({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,kue(),Vq].filter(u=>!!u)});n.common.issues.push(c)}class Fp{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,c){const u=[];for(const d of c){if(d.status==="aborted")return fs;d.status==="dirty"&&r.dirty(),u.push(d.value)}return{status:r.value,value:u}}static async mergeObjectAsync(r,c){const u=[];for(const d of c)u.push({key:await d.key,value:await d.value});return Fp.mergeObjectSync(r,u)}static mergeObjectSync(r,c){const u={};for(const d of c){const{key:p,value:m}=d;if(p.status==="aborted"||m.status==="aborted")return fs;p.status==="dirty"&&r.dirty(),m.status==="dirty"&&r.dirty(),(typeof m.value<"u"||d.alwaysSet)&&(u[p.value]=m.value)}return{status:r.value,value:u}}}const fs=Object.freeze({status:"aborted"}),Lsr=n=>({status:"dirty",value:n}),Bp=n=>({status:"valid",value:n}),ROe=n=>n.status==="aborted",$Oe=n=>n.status==="dirty",Iue=n=>n.status==="valid",LOe=n=>typeof Promise!==void 0&&n instanceof Promise;var $a;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})($a||($a={}));class n3{constructor(r,c,u,d){this.parent=r,this.data=c,this._path=u,this._key=d}get path(){return this._path.concat(this._key)}}const GAt=(n,r)=>{if(Iue(r))return{success:!0,data:r.value};{if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");const c=new bS(n.common.issues);return{success:!1,error:c}}};function sa(n){if(!n)return{};const{errorMap:r,invalid_type_error:c,required_error:u,description:d}=n;if(r&&(c||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:d}:{errorMap:(m,x)=>m.code!=="invalid_type"?{message:x.defaultError}:typeof x.data>"u"?{message:u!=null?u:x.defaultError}:{message:c!=null?c:x.defaultError},description:d}}class ia{constructor(r){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(r){return XE(r.data)}_getOrReturnCtx(r,c){return c||{common:r.parent.common,data:r.data,parsedType:XE(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new Fp,ctx:{common:r.parent.common,data:r.data,parsedType:XE(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const c=this._parse(r);if(LOe(c))throw new Error("Synchronous parse encountered promise.");return c}_parseAsync(r){const c=this._parse(r);return Promise.resolve(c)}parse(r,c){const u=this.safeParse(r,c);if(u.success)return u.data;throw u.error}safeParse(r,c){var u;const d={common:{issues:[],async:(u=c==null?void 0:c.async)!==null&&u!==void 0?u:!1,contextualErrorMap:c==null?void 0:c.errorMap},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:XE(r)},p=this._parseSync({data:r,path:d.path,parent:d});return GAt(d,p)}async parseAsync(r,c){const u=await this.safeParseAsync(r,c);if(u.success)return u.data;throw u.error}async safeParseAsync(r,c){const u={common:{issues:[],contextualErrorMap:c==null?void 0:c.errorMap,async:!0},path:(c==null?void 0:c.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:XE(r)},d=this._parse({data:r,path:[],parent:u}),p=await(LOe(d)?d:Promise.resolve(d));return GAt(u,p)}refine(r,c){const u=d=>typeof c=="string"||typeof c>"u"?{message:c}:typeof c=="function"?c(d):c;return this._refinement((d,p)=>{const m=r(d),x=()=>p.addIssue({code:Yr.custom,...u(d)});return typeof Promise<"u"&&m instanceof Promise?m.then(E=>E?!0:(x(),!1)):m?!0:(x(),!1)})}refinement(r,c){return this._refinement((u,d)=>r(u)?!0:(d.addIssue(typeof c=="function"?c(u,d):c),!1))}_refinement(r){return new o3({schema:this,typeName:Ko.ZodEffects,effect:{type:"refinement",refinement:r}})}optional(){return Kx.create(this)}nullable(){return G7.create(this)}nullish(){return this.optional().nullable()}array(){return r3.create(this)}promise(){return GD.create(this)}or(r){return zq.create([this,r])}and(r){return Uq.create(this,r)}transform(r){return new o3({schema:this,typeName:Ko.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const c=typeof r=="function"?r:()=>r;return new eje({innerType:this,defaultValue:c,typeName:Ko.ZodDefault})}brand(){return new rUt({typeName:Ko.ZodBranded,type:this,...sa(void 0)})}describe(r){const c=this.constructor;return new c({...this._def,description:r})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Fsr=/^c[^\s-]{8,}$/i,Bsr=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Vsr=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class Mk extends ia{constructor(){super(...arguments),this._regex=(r,c,u)=>this.refinement(d=>r.test(d),{validation:c,code:Yr.invalid_string,...$a.errToObj(u)}),this.nonempty=r=>this.min(1,$a.errToObj(r)),this.trim=()=>new Mk({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(r){if(this._getType(r)!==si.string){const p=this._getOrReturnCtx(r);return qi(p,{code:Yr.invalid_type,expected:si.string,received:p.parsedType}),fs}const u=new Fp;let d;for(const p of this._def.checks)if(p.kind==="min")r.data.lengthp.value&&(d=this._getOrReturnCtx(r,d),qi(d,{code:Yr.too_big,maximum:p.value,type:"string",inclusive:!0,message:p.message}),u.dirty());else if(p.kind==="email")Vsr.test(r.data)||(d=this._getOrReturnCtx(r,d),qi(d,{validation:"email",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="uuid")Bsr.test(r.data)||(d=this._getOrReturnCtx(r,d),qi(d,{validation:"uuid",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="cuid")Fsr.test(r.data)||(d=this._getOrReturnCtx(r,d),qi(d,{validation:"cuid",code:Yr.invalid_string,message:p.message}),u.dirty());else if(p.kind==="url")try{new URL(r.data)}catch{d=this._getOrReturnCtx(r,d),qi(d,{validation:"url",code:Yr.invalid_string,message:p.message}),u.dirty()}else p.kind==="regex"?(p.regex.lastIndex=0,p.regex.test(r.data)||(d=this._getOrReturnCtx(r,d),qi(d,{validation:"regex",code:Yr.invalid_string,message:p.message}),u.dirty())):p.kind==="trim"?r.data=r.data.trim():p.kind==="startsWith"?r.data.startsWith(p.value)||(d=this._getOrReturnCtx(r,d),qi(d,{code:Yr.invalid_string,validation:{startsWith:p.value},message:p.message}),u.dirty()):p.kind==="endsWith"?r.data.endsWith(p.value)||(d=this._getOrReturnCtx(r,d),qi(d,{code:Yr.invalid_string,validation:{endsWith:p.value},message:p.message}),u.dirty()):cc.assertNever(p);return{status:u.value,value:r.data}}_addCheck(r){return new Mk({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...$a.errToObj(r)})}url(r){return this._addCheck({kind:"url",...$a.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...$a.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...$a.errToObj(r)})}regex(r,c){return this._addCheck({kind:"regex",regex:r,...$a.errToObj(c)})}startsWith(r,c){return this._addCheck({kind:"startsWith",value:r,...$a.errToObj(c)})}endsWith(r,c){return this._addCheck({kind:"endsWith",value:r,...$a.errToObj(c)})}min(r,c){return this._addCheck({kind:"min",value:r,...$a.errToObj(c)})}max(r,c){return this._addCheck({kind:"max",value:r,...$a.errToObj(c)})}length(r,c){return this.min(r,c).max(r,c)}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get minLength(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r}get maxLength(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuenew Mk({checks:[],typeName:Ko.ZodString,...sa(n)});function zsr(n,r){const c=(n.toString().split(".")[1]||"").length,u=(r.toString().split(".")[1]||"").length,d=c>u?c:u,p=parseInt(n.toFixed(d).replace(".","")),m=parseInt(r.toFixed(d).replace(".",""));return p%m/Math.pow(10,d)}class q7 extends ia{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._getType(r)!==si.number){const p=this._getOrReturnCtx(r);return qi(p,{code:Yr.invalid_type,expected:si.number,received:p.parsedType}),fs}let u;const d=new Fp;for(const p of this._def.checks)p.kind==="int"?cc.isInteger(r.data)||(u=this._getOrReturnCtx(r,u),qi(u,{code:Yr.invalid_type,expected:"integer",received:"float",message:p.message}),d.dirty()):p.kind==="min"?(p.inclusive?r.datap.value:r.data>=p.value)&&(u=this._getOrReturnCtx(r,u),qi(u,{code:Yr.too_big,maximum:p.value,type:"number",inclusive:p.inclusive,message:p.message}),d.dirty()):p.kind==="multipleOf"?zsr(r.data,p.value)!==0&&(u=this._getOrReturnCtx(r,u),qi(u,{code:Yr.not_multiple_of,multipleOf:p.value,message:p.message}),d.dirty()):cc.assertNever(p);return{status:d.value,value:r.data}}gte(r,c){return this.setLimit("min",r,!0,$a.toString(c))}gt(r,c){return this.setLimit("min",r,!1,$a.toString(c))}lte(r,c){return this.setLimit("max",r,!0,$a.toString(c))}lt(r,c){return this.setLimit("max",r,!1,$a.toString(c))}setLimit(r,c,u,d){return new q7({...this._def,checks:[...this._def.checks,{kind:r,value:c,inclusive:u,message:$a.toString(d)}]})}_addCheck(r){return new q7({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:$a.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$a.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$a.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$a.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$a.toString(r)})}multipleOf(r,c){return this._addCheck({kind:"multipleOf",value:r,message:$a.toString(c)})}get minValue(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r}get maxValue(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuer.kind==="int")}}q7.create=n=>new q7({checks:[],typeName:Ko.ZodNumber,...sa(n)});class Tue extends ia{_parse(r){if(this._getType(r)!==si.bigint){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.bigint,received:u.parsedType}),fs}return Bp(r.data)}}Tue.create=n=>new Tue({typeName:Ko.ZodBigInt,...sa(n)});class Aue extends ia{_parse(r){if(this._getType(r)!==si.boolean){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.boolean,received:u.parsedType}),fs}return Bp(r.data)}}Aue.create=n=>new Aue({typeName:Ko.ZodBoolean,...sa(n)});class qD extends ia{_parse(r){if(this._getType(r)!==si.date){const p=this._getOrReturnCtx(r);return qi(p,{code:Yr.invalid_type,expected:si.date,received:p.parsedType}),fs}if(isNaN(r.data.getTime())){const p=this._getOrReturnCtx(r);return qi(p,{code:Yr.invalid_date}),fs}const u=new Fp;let d;for(const p of this._def.checks)p.kind==="min"?r.data.getTime()p.value&&(d=this._getOrReturnCtx(r,d),qi(d,{code:Yr.too_big,message:p.message,inclusive:!0,maximum:p.value,type:"date"}),u.dirty()):cc.assertNever(p);return{status:u.value,value:new Date(r.data.getTime())}}_addCheck(r){return new qD({...this._def,checks:[...this._def.checks,r]})}min(r,c){return this._addCheck({kind:"min",value:r.getTime(),message:$a.toString(c)})}max(r,c){return this._addCheck({kind:"max",value:r.getTime(),message:$a.toString(c)})}get minDate(){let r=null;for(const c of this._def.checks)c.kind==="min"&&(r===null||c.value>r)&&(r=c.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const c of this._def.checks)c.kind==="max"&&(r===null||c.valuenew qD({checks:[],typeName:Ko.ZodDate,...sa(n)});class Pue extends ia{_parse(r){if(this._getType(r)!==si.undefined){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.undefined,received:u.parsedType}),fs}return Bp(r.data)}}Pue.create=n=>new Pue({typeName:Ko.ZodUndefined,...sa(n)});class Oue extends ia{_parse(r){if(this._getType(r)!==si.null){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.null,received:u.parsedType}),fs}return Bp(r.data)}}Oue.create=n=>new Oue({typeName:Ko.ZodNull,...sa(n)});class WD extends ia{constructor(){super(...arguments),this._any=!0}_parse(r){return Bp(r.data)}}WD.create=n=>new WD({typeName:Ko.ZodAny,...sa(n)});class k7 extends ia{constructor(){super(...arguments),this._unknown=!0}_parse(r){return Bp(r.data)}}k7.create=n=>new k7({typeName:Ko.ZodUnknown,...sa(n)});class AS extends ia{_parse(r){const c=this._getOrReturnCtx(r);return qi(c,{code:Yr.invalid_type,expected:si.never,received:c.parsedType}),fs}}AS.create=n=>new AS({typeName:Ko.ZodNever,...sa(n)});class _ue extends ia{_parse(r){if(this._getType(r)!==si.undefined){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.void,received:u.parsedType}),fs}return Bp(r.data)}}_ue.create=n=>new _ue({typeName:Ko.ZodVoid,...sa(n)});class r3 extends ia{_parse(r){const{ctx:c,status:u}=this._processInputParams(r),d=this._def;if(c.parsedType!==si.array)return qi(c,{code:Yr.invalid_type,expected:si.array,received:c.parsedType}),fs;if(d.minLength!==null&&c.data.lengthd.maxLength.value&&(qi(c,{code:Yr.too_big,maximum:d.maxLength.value,type:"array",inclusive:!0,message:d.maxLength.message}),u.dirty()),c.common.async)return Promise.all(c.data.map((m,x)=>d.type._parseAsync(new n3(c,m,c.path,x)))).then(m=>Fp.mergeArray(u,m));const p=c.data.map((m,x)=>d.type._parseSync(new n3(c,m,c.path,x)));return Fp.mergeArray(u,p)}get element(){return this._def.type}min(r,c){return new r3({...this._def,minLength:{value:r,message:$a.toString(c)}})}max(r,c){return new r3({...this._def,maxLength:{value:r,message:$a.toString(c)}})}length(r,c){return this.min(r,c).max(r,c)}nonempty(r){return this.min(1,r)}}r3.create=(n,r)=>new r3({type:n,minLength:null,maxLength:null,typeName:Ko.ZodArray,...sa(r)});var Mue;(function(n){n.mergeShapes=(r,c)=>({...r,...c})})(Mue||(Mue={}));const XAt=n=>r=>new Zu({...n,shape:()=>({...n.shape(),...r})});function vM(n){if(n instanceof Zu){const r={};for(const c in n.shape){const u=n.shape[c];r[c]=Kx.create(vM(u))}return new Zu({...n._def,shape:()=>r})}else return n instanceof r3?r3.create(vM(n.element)):n instanceof Kx?Kx.create(vM(n.unwrap())):n instanceof G7?G7.create(vM(n.unwrap())):n instanceof i3?i3.create(n.items.map(r=>vM(r))):n}class Zu extends ia{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=XAt(this._def),this.extend=XAt(this._def)}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),c=cc.objectKeys(r);return this._cached={shape:r,keys:c}}_parse(r){if(this._getType(r)!==si.object){const k=this._getOrReturnCtx(r);return qi(k,{code:Yr.invalid_type,expected:si.object,received:k.parsedType}),fs}const{status:u,ctx:d}=this._processInputParams(r),{shape:p,keys:m}=this._getCached(),x=[];if(!(this._def.catchall instanceof AS&&this._def.unknownKeys==="strip"))for(const k in d.data)m.includes(k)||x.push(k);const E=[];for(const k of m){const T=p[k],P=d.data[k];E.push({key:{status:"valid",value:k},value:T._parse(new n3(d,P,d.path,k)),alwaysSet:k in d.data})}if(this._def.catchall instanceof AS){const k=this._def.unknownKeys;if(k==="passthrough")for(const T of x)E.push({key:{status:"valid",value:T},value:{status:"valid",value:d.data[T]}});else if(k==="strict")x.length>0&&(qi(d,{code:Yr.unrecognized_keys,keys:x}),u.dirty());else if(k!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const k=this._def.catchall;for(const T of x){const P=d.data[T];E.push({key:{status:"valid",value:T},value:k._parse(new n3(d,P,d.path,T)),alwaysSet:T in d.data})}}return d.common.async?Promise.resolve().then(async()=>{const k=[];for(const T of E){const P=await T.key;k.push({key:P,value:await T.value,alwaysSet:T.alwaysSet})}return k}).then(k=>Fp.mergeObjectSync(u,k)):Fp.mergeObjectSync(u,E)}get shape(){return this._def.shape()}strict(r){return $a.errToObj,new Zu({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(c,u)=>{var d,p,m,x;const E=(m=(p=(d=this._def).errorMap)===null||p===void 0?void 0:p.call(d,c,u).message)!==null&&m!==void 0?m:u.defaultError;return c.code==="unrecognized_keys"?{message:(x=$a.errToObj(r).message)!==null&&x!==void 0?x:E}:{message:E}}}:{}})}strip(){return new Zu({...this._def,unknownKeys:"strip"})}passthrough(){return new Zu({...this._def,unknownKeys:"passthrough"})}setKey(r,c){return this.augment({[r]:c})}merge(r){return new Zu({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>Mue.mergeShapes(this._def.shape(),r._def.shape()),typeName:Ko.ZodObject})}catchall(r){return new Zu({...this._def,catchall:r})}pick(r){const c={};return cc.objectKeys(r).map(u=>{this.shape[u]&&(c[u]=this.shape[u])}),new Zu({...this._def,shape:()=>c})}omit(r){const c={};return cc.objectKeys(this.shape).map(u=>{cc.objectKeys(r).indexOf(u)===-1&&(c[u]=this.shape[u])}),new Zu({...this._def,shape:()=>c})}deepPartial(){return vM(this)}partial(r){const c={};if(r)return cc.objectKeys(this.shape).map(u=>{cc.objectKeys(r).indexOf(u)===-1?c[u]=this.shape[u]:c[u]=this.shape[u].optional()}),new Zu({...this._def,shape:()=>c});for(const u in this.shape){const d=this.shape[u];c[u]=d.optional()}return new Zu({...this._def,shape:()=>c})}required(){const r={};for(const c in this.shape){let d=this.shape[c];for(;d instanceof Kx;)d=d._def.innerType;r[c]=d}return new Zu({...this._def,shape:()=>r})}keyof(){return nUt(cc.objectKeys(this.shape))}}Zu.create=(n,r)=>new Zu({shape:()=>n,unknownKeys:"strip",catchall:AS.create(),typeName:Ko.ZodObject,...sa(r)});Zu.strictCreate=(n,r)=>new Zu({shape:()=>n,unknownKeys:"strict",catchall:AS.create(),typeName:Ko.ZodObject,...sa(r)});Zu.lazycreate=(n,r)=>new Zu({shape:n,unknownKeys:"strip",catchall:AS.create(),typeName:Ko.ZodObject,...sa(r)});class zq extends ia{_parse(r){const{ctx:c}=this._processInputParams(r),u=this._def.options;function d(p){for(const x of p)if(x.result.status==="valid")return x.result;for(const x of p)if(x.result.status==="dirty")return c.common.issues.push(...x.ctx.common.issues),x.result;const m=p.map(x=>new bS(x.ctx.common.issues));return qi(c,{code:Yr.invalid_union,unionErrors:m}),fs}if(c.common.async)return Promise.all(u.map(async p=>{const m={...c,common:{...c.common,issues:[]},parent:null};return{result:await p._parseAsync({data:c.data,path:c.path,parent:m}),ctx:m}})).then(d);{let p;const m=[];for(const E of u){const k={...c,common:{...c.common,issues:[]},parent:null},T=E._parseSync({data:c.data,path:c.path,parent:k});if(T.status==="valid")return T;T.status==="dirty"&&!p&&(p={result:T,ctx:k}),k.common.issues.length&&m.push(k.common.issues)}if(p)return c.common.issues.push(...p.ctx.common.issues),p.result;const x=m.map(E=>new bS(E));return qi(c,{code:Yr.invalid_union,unionErrors:x}),fs}}get options(){return this._def.options}}zq.create=(n,r)=>new zq({options:n,typeName:Ko.ZodUnion,...sa(r)});class Kfe extends ia{_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.object)return qi(c,{code:Yr.invalid_type,expected:si.object,received:c.parsedType}),fs;const u=this.discriminator,d=c.data[u],p=this.options.get(d);return p?c.common.async?p._parseAsync({data:c.data,path:c.path,parent:c}):p._parseSync({data:c.data,path:c.path,parent:c}):(qi(c,{code:Yr.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[u]}),fs)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(r,c,u){const d=new Map;try{c.forEach(p=>{const m=p.shape[r].value;d.set(m,p)})}catch{throw new Error("The discriminator value could not be extracted from all the provided schemas")}if(d.size!==c.length)throw new Error("Some of the discriminator values are not unique");return new Kfe({typeName:Ko.ZodDiscriminatedUnion,discriminator:r,options:d,...sa(u)})}}function FOe(n,r){const c=XE(n),u=XE(r);if(n===r)return{valid:!0,data:n};if(c===si.object&&u===si.object){const d=cc.objectKeys(r),p=cc.objectKeys(n).filter(x=>d.indexOf(x)!==-1),m={...n,...r};for(const x of p){const E=FOe(n[x],r[x]);if(!E.valid)return{valid:!1};m[x]=E.data}return{valid:!0,data:m}}else if(c===si.array&&u===si.array){if(n.length!==r.length)return{valid:!1};const d=[];for(let p=0;p{if(ROe(p)||ROe(m))return fs;const x=FOe(p.value,m.value);return x.valid?(($Oe(p)||$Oe(m))&&c.dirty(),{status:c.value,value:x.data}):(qi(u,{code:Yr.invalid_intersection_types}),fs)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([p,m])=>d(p,m)):d(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Uq.create=(n,r,c)=>new Uq({left:n,right:r,typeName:Ko.ZodIntersection,...sa(c)});class i3 extends ia{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.array)return qi(u,{code:Yr.invalid_type,expected:si.array,received:u.parsedType}),fs;if(u.data.lengththis._def.items.length&&(qi(u,{code:Yr.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),c.dirty());const p=u.data.map((m,x)=>{const E=this._def.items[x]||this._def.rest;return E?E._parse(new n3(u,m,u.path,x)):null}).filter(m=>!!m);return u.common.async?Promise.all(p).then(m=>Fp.mergeArray(c,m)):Fp.mergeArray(c,p)}get items(){return this._def.items}rest(r){return new i3({...this._def,rest:r})}}i3.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new i3({items:n,typeName:Ko.ZodTuple,rest:null,...sa(r)})};class Hq extends ia{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.object)return qi(u,{code:Yr.invalid_type,expected:si.object,received:u.parsedType}),fs;const d=[],p=this._def.keyType,m=this._def.valueType;for(const x in u.data)d.push({key:p._parse(new n3(u,x,u.path,x)),value:m._parse(new n3(u,u.data[x],u.path,x))});return u.common.async?Fp.mergeObjectAsync(c,d):Fp.mergeObjectSync(c,d)}get element(){return this._def.valueType}static create(r,c,u){return c instanceof ia?new Hq({keyType:r,valueType:c,typeName:Ko.ZodRecord,...sa(u)}):new Hq({keyType:Mk.create(),valueType:r,typeName:Ko.ZodRecord,...sa(c)})}}class Due extends ia{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.map)return qi(u,{code:Yr.invalid_type,expected:si.map,received:u.parsedType}),fs;const d=this._def.keyType,p=this._def.valueType,m=[...u.data.entries()].map(([x,E],k)=>({key:d._parse(new n3(u,x,u.path,[k,"key"])),value:p._parse(new n3(u,E,u.path,[k,"value"]))}));if(u.common.async){const x=new Map;return Promise.resolve().then(async()=>{for(const E of m){const k=await E.key,T=await E.value;if(k.status==="aborted"||T.status==="aborted")return fs;(k.status==="dirty"||T.status==="dirty")&&c.dirty(),x.set(k.value,T.value)}return{status:c.value,value:x}})}else{const x=new Map;for(const E of m){const k=E.key,T=E.value;if(k.status==="aborted"||T.status==="aborted")return fs;(k.status==="dirty"||T.status==="dirty")&&c.dirty(),x.set(k.value,T.value)}return{status:c.value,value:x}}}}Due.create=(n,r,c)=>new Due({valueType:r,keyType:n,typeName:Ko.ZodMap,...sa(c)});class W7 extends ia{_parse(r){const{status:c,ctx:u}=this._processInputParams(r);if(u.parsedType!==si.set)return qi(u,{code:Yr.invalid_type,expected:si.set,received:u.parsedType}),fs;const d=this._def;d.minSize!==null&&u.data.sized.maxSize.value&&(qi(u,{code:Yr.too_big,maximum:d.maxSize.value,type:"set",inclusive:!0,message:d.maxSize.message}),c.dirty());const p=this._def.valueType;function m(E){const k=new Set;for(const T of E){if(T.status==="aborted")return fs;T.status==="dirty"&&c.dirty(),k.add(T.value)}return{status:c.value,value:k}}const x=[...u.data.values()].map((E,k)=>p._parse(new n3(u,E,u.path,k)));return u.common.async?Promise.all(x).then(E=>m(E)):m(x)}min(r,c){return new W7({...this._def,minSize:{value:r,message:$a.toString(c)}})}max(r,c){return new W7({...this._def,maxSize:{value:r,message:$a.toString(c)}})}size(r,c){return this.min(r,c).max(r,c)}nonempty(r){return this.min(1,r)}}W7.create=(n,r)=>new W7({valueType:n,minSize:null,maxSize:null,typeName:Ko.ZodSet,...sa(r)});class cD extends ia{constructor(){super(...arguments),this.validate=this.implement}_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.function)return qi(c,{code:Yr.invalid_type,expected:si.function,received:c.parsedType}),fs;function u(x,E){return Cue({data:x,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,kue(),Vq].filter(k=>!!k),issueData:{code:Yr.invalid_arguments,argumentsError:E}})}function d(x,E){return Cue({data:x,path:c.path,errorMaps:[c.common.contextualErrorMap,c.schemaErrorMap,kue(),Vq].filter(k=>!!k),issueData:{code:Yr.invalid_return_type,returnTypeError:E}})}const p={errorMap:c.common.contextualErrorMap},m=c.data;return this._def.returns instanceof GD?Bp(async(...x)=>{const E=new bS([]),k=await this._def.args.parseAsync(x,p).catch(I=>{throw E.addIssue(u(x,I)),E}),T=await m(...k);return await this._def.returns._def.type.parseAsync(T,p).catch(I=>{throw E.addIssue(d(T,I)),E})}):Bp((...x)=>{const E=this._def.args.safeParse(x,p);if(!E.success)throw new bS([u(x,E.error)]);const k=m(...E.data),T=this._def.returns.safeParse(k,p);if(!T.success)throw new bS([d(k,T.error)]);return T.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...r){return new cD({...this._def,args:i3.create(r).rest(k7.create())})}returns(r){return new cD({...this._def,returns:r})}implement(r){return this.parse(r)}strictImplement(r){return this.parse(r)}static create(r,c,u){return new cD({args:r||i3.create([]).rest(k7.create()),returns:c||k7.create(),typeName:Ko.ZodFunction,...sa(u)})}}class Nue extends ia{get schema(){return this._def.getter()}_parse(r){const{ctx:c}=this._processInputParams(r);return this._def.getter()._parse({data:c.data,path:c.path,parent:c})}}Nue.create=(n,r)=>new Nue({getter:n,typeName:Ko.ZodLazy,...sa(r)});class jue extends ia{_parse(r){if(r.data!==this._def.value){const c=this._getOrReturnCtx(r);return qi(c,{code:Yr.invalid_literal,expected:this._def.value}),fs}return{status:"valid",value:r.data}}get value(){return this._def.value}}jue.create=(n,r)=>new jue({value:n,typeName:Ko.ZodLiteral,...sa(r)});function nUt(n,r){return new Yfe({values:n,typeName:Ko.ZodEnum,...sa(r)})}class Yfe extends ia{_parse(r){if(typeof r.data!="string"){const c=this._getOrReturnCtx(r),u=this._def.values;return qi(c,{expected:cc.joinValues(u),received:c.parsedType,code:Yr.invalid_type}),fs}if(this._def.values.indexOf(r.data)===-1){const c=this._getOrReturnCtx(r),u=this._def.values;return qi(c,{received:c.data,code:Yr.invalid_enum_value,options:u}),fs}return Bp(r.data)}get options(){return this._def.values}get enum(){const r={};for(const c of this._def.values)r[c]=c;return r}get Values(){const r={};for(const c of this._def.values)r[c]=c;return r}get Enum(){const r={};for(const c of this._def.values)r[c]=c;return r}}Yfe.create=nUt;class Rue extends ia{_parse(r){const c=cc.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(r);if(u.parsedType!==si.string&&u.parsedType!==si.number){const d=cc.objectValues(c);return qi(u,{expected:cc.joinValues(d),received:u.parsedType,code:Yr.invalid_type}),fs}if(c.indexOf(r.data)===-1){const d=cc.objectValues(c);return qi(u,{received:u.data,code:Yr.invalid_enum_value,options:d}),fs}return Bp(r.data)}get enum(){return this._def.values}}Rue.create=(n,r)=>new Rue({values:n,typeName:Ko.ZodNativeEnum,...sa(r)});class GD extends ia{_parse(r){const{ctx:c}=this._processInputParams(r);if(c.parsedType!==si.promise&&c.common.async===!1)return qi(c,{code:Yr.invalid_type,expected:si.promise,received:c.parsedType}),fs;const u=c.parsedType===si.promise?c.data:Promise.resolve(c.data);return Bp(u.then(d=>this._def.type.parseAsync(d,{path:c.path,errorMap:c.common.contextualErrorMap})))}}GD.create=(n,r)=>new GD({type:n,typeName:Ko.ZodPromise,...sa(r)});class o3 extends ia{innerType(){return this._def.schema}_parse(r){const{status:c,ctx:u}=this._processInputParams(r),d=this._def.effect||null;if(d.type==="preprocess"){const m=d.transform(u.data);return u.common.async?Promise.resolve(m).then(x=>this._def.schema._parseAsync({data:x,path:u.path,parent:u})):this._def.schema._parseSync({data:m,path:u.path,parent:u})}const p={addIssue:m=>{qi(u,m),m.fatal?c.abort():c.dirty()},get path(){return u.path}};if(p.addIssue=p.addIssue.bind(p),d.type==="refinement"){const m=x=>{const E=d.refinement(x,p);if(u.common.async)return Promise.resolve(E);if(E instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return x};if(u.common.async===!1){const x=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return x.status==="aborted"?fs:(x.status==="dirty"&&c.dirty(),m(x.value),{status:c.value,value:x.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(x=>x.status==="aborted"?fs:(x.status==="dirty"&&c.dirty(),m(x.value).then(()=>({status:c.value,value:x.value}))))}if(d.type==="transform")if(u.common.async===!1){const m=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!Iue(m))return m;const x=d.transform(m.value,p);if(x instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:c.value,value:x}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(m=>Iue(m)?Promise.resolve(d.transform(m.value,p)).then(x=>({status:c.value,value:x})):m);cc.assertNever(d)}}o3.create=(n,r,c)=>new o3({schema:n,typeName:Ko.ZodEffects,effect:r,...sa(c)});o3.createWithPreprocess=(n,r,c)=>new o3({schema:r,effect:{type:"preprocess",transform:n},typeName:Ko.ZodEffects,...sa(c)});class Kx extends ia{_parse(r){return this._getType(r)===si.undefined?Bp(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Kx.create=(n,r)=>new Kx({innerType:n,typeName:Ko.ZodOptional,...sa(r)});class G7 extends ia{_parse(r){return this._getType(r)===si.null?Bp(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}G7.create=(n,r)=>new G7({innerType:n,typeName:Ko.ZodNullable,...sa(r)});class eje extends ia{_parse(r){const{ctx:c}=this._processInputParams(r);let u=c.data;return c.parsedType===si.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:c.path,parent:c})}removeDefault(){return this._def.innerType}}eje.create=(n,r)=>new Kx({innerType:n,typeName:Ko.ZodOptional,...sa(r)});class $ue extends ia{_parse(r){if(this._getType(r)!==si.nan){const u=this._getOrReturnCtx(r);return qi(u,{code:Yr.invalid_type,expected:si.nan,received:u.parsedType}),fs}return{status:"valid",value:r.data}}}$ue.create=n=>new $ue({typeName:Ko.ZodNaN,...sa(n)});const Usr=Symbol("zod_brand");class rUt extends ia{_parse(r){const{ctx:c}=this._processInputParams(r),u=c.data;return this._def.type._parse({data:u,path:c.path,parent:c})}unwrap(){return this._def.type}}const iUt=(n,r={},c)=>n?WD.create().superRefine((u,d)=>{if(!n(u)){const p=typeof r=="function"?r(u):r,m=typeof p=="string"?{message:p}:p;d.addIssue({code:"custom",...m,fatal:c})}}):WD.create(),Hsr={object:Zu.lazycreate};var Ko;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded"})(Ko||(Ko={}));const qsr=(n,r={message:`Input not instance of ${n.name}`})=>iUt(c=>c instanceof n,r,!0),oUt=Mk.create,sUt=q7.create,Wsr=$ue.create,Gsr=Tue.create,aUt=Aue.create,Xsr=qD.create,Ksr=Pue.create,Ysr=Oue.create,Qsr=WD.create,Zsr=k7.create,Jsr=AS.create,ear=_ue.create,tar=r3.create,nar=Zu.create,rar=Zu.strictCreate,iar=zq.create,oar=Kfe.create,sar=Uq.create,aar=i3.create,car=Hq.create,uar=Due.create,lar=W7.create,far=cD.create,dar=Nue.create,har=jue.create,par=Yfe.create,gar=Rue.create,bar=GD.create,KAt=o3.create,mar=Kx.create,yar=G7.create,war=o3.createWithPreprocess,xar=()=>oUt().optional(),Sar=()=>sUt().optional(),Ear=()=>aUt().optional(),kar=fs;var pw=Object.freeze({__proto__:null,getParsedType:XE,ZodParsedType:si,defaultErrorMap:Vq,setErrorMap:Rsr,getErrorMap:kue,makeIssue:Cue,EMPTY_PATH:$sr,addIssueToContext:qi,ParseStatus:Fp,INVALID:fs,DIRTY:Lsr,OK:Bp,isAborted:ROe,isDirty:$Oe,isValid:Iue,isAsync:LOe,ZodType:ia,ZodString:Mk,ZodNumber:q7,ZodBigInt:Tue,ZodBoolean:Aue,ZodDate:qD,ZodUndefined:Pue,ZodNull:Oue,ZodAny:WD,ZodUnknown:k7,ZodNever:AS,ZodVoid:_ue,ZodArray:r3,get objectUtil(){return Mue},ZodObject:Zu,ZodUnion:zq,ZodDiscriminatedUnion:Kfe,ZodIntersection:Uq,ZodTuple:i3,ZodRecord:Hq,ZodMap:Due,ZodSet:W7,ZodFunction:cD,ZodLazy:Nue,ZodLiteral:jue,ZodEnum:Yfe,ZodNativeEnum:Rue,ZodPromise:GD,ZodEffects:o3,ZodTransformer:o3,ZodOptional:Kx,ZodNullable:G7,ZodDefault:eje,ZodNaN:$ue,BRAND:Usr,ZodBranded:rUt,custom:iUt,Schema:ia,ZodSchema:ia,late:Hsr,get ZodFirstPartyTypeKind(){return Ko},any:Qsr,array:tar,bigint:Gsr,boolean:aUt,date:Xsr,discriminatedUnion:oar,effect:KAt,enum:par,function:far,instanceof:qsr,intersection:sar,lazy:dar,literal:har,map:uar,nan:Wsr,nativeEnum:gar,never:Jsr,null:Ysr,nullable:yar,number:sUt,object:nar,oboolean:Ear,onumber:Sar,optional:mar,ostring:xar,preprocess:war,promise:bar,record:car,set:lar,strictObject:rar,string:oUt,transformer:KAt,tuple:aar,undefined:Ksr,union:iar,unknown:Zsr,void:ear,NEVER:kar,ZodIssueCode:Yr,quotelessJson:jsr,ZodError:bS});const Car=pw.object({minX:pw.number(),minY:pw.number(),width:pw.number(),height:pw.number(),initial:pw.optional(pw.object({minX:pw.number(),minY:pw.number(),width:pw.number(),height:pw.number()}))}),cUt=rfe()?window.localStorage:ife(),Iar="viewbox_cache",uUt=n=>`${Iar}#${n}`;function Tar(n,r){U.exports.useEffect(()=>{const c=setTimeout(()=>{cUt.setItem(n,JSON.stringify(r))},300);return()=>clearTimeout(c)},[n,r])}function Aar(n,r){Tar(uUt(n),r)}function Par(n){const r=[n.snapshot.id,n.snapshot.root.getSerialisableId()];for(const c of r)try{const u=uUt(c),d=cUt.getItem(u);if(d)return Car.parse(JSON.parse(d))}catch(u){console.error("error parsing viewBox",u)}}function Oar(n,r,c){return Math.max(r,Math.min(n,c))}const Nu={toVector(n,r){return n===void 0&&(n=r),Array.isArray(n)?n:[n,n]},add(n,r){return[n[0]+r[0],n[1]+r[1]]},sub(n,r){return[n[0]-r[0],n[1]-r[1]]},addTo(n,r){n[0]+=r[0],n[1]+=r[1]},subTo(n,r){n[0]-=r[0],n[1]-=r[1]}};function YAt(n,r,c){return r===0||Math.abs(r)===1/0?Math.pow(n,c*5):n*r*c/(r+c*n)}function QAt(n,r,c,u=.15){return u===0?Oar(n,r,c):nc?+YAt(n-c,c-r,u)+c:n}function _ar(n,[r,c],[u,d]){const[[p,m],[x,E]]=n;return[QAt(r,p,m,u),QAt(c,x,E,d)]}function Zf(n,r,c){return r in n?Object.defineProperty(n,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[r]=c,n}function ZAt(n,r){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),c.push.apply(c,u)}return c}function kl(n){for(var r=1;r{var c,u;return r.target===n.currentTarget||((c=n.currentTarget)===null||c===void 0||(u=c.contains)===null||u===void 0?void 0:u.call(c,r.target))})}function Far(n){return n.type==="touchend"||n.type==="touchcancel"?n.changedTouches:n.targetTouches}function dUt(n){return Qfe(n)?Far(n)[0]:n}function BOe(n,r){const c=r.clientX-n.clientX,u=r.clientY-n.clientY,d=(r.clientX+n.clientX)/2,p=(r.clientY+n.clientY)/2,m=Math.hypot(c,u);return{angle:-(Math.atan2(c,u)*180)/Math.PI,distance:m,origin:[d,p]}}function Bar(n){return Lar(n).map(r=>r.identifier)}function ePt(n,r){const[c,u]=Array.from(n.touches).filter(d=>r.includes(d.identifier));return BOe(c,u)}function pTe(n){const r=dUt(n);return Qfe(n)?r.identifier:r.pointerId}function XD(n){const r=dUt(n);return[r.clientX,r.clientY]}const tPt=40,nPt=800;function hUt(n){let{deltaX:r,deltaY:c,deltaMode:u}=n;return u===1?(r*=tPt,c*=tPt):u===2&&(r*=nPt,c*=nPt),[r,c]}function Var(n){var r,c;const{scrollX:u,scrollY:d,scrollLeft:p,scrollTop:m}=n.currentTarget;return[(r=u!=null?u:p)!==null&&r!==void 0?r:0,(c=d!=null?d:m)!==null&&c!==void 0?c:0]}function zar(n){const r={};if("buttons"in n&&(r.buttons=n.buttons),"shiftKey"in n){const{shiftKey:c,altKey:u,metaKey:d,ctrlKey:p}=n;Object.assign(r,{shiftKey:c,altKey:u,metaKey:d,ctrlKey:p})}return r}function Lue(n,...r){return typeof n=="function"?n(...r):n}function Uar(){}function Har(...n){return n.length===0?Uar:n.length===1?n[0]:function(){let r;for(const c of n)r=c.apply(this,arguments)||r;return r}}function rPt(n,r){return Object.assign({},r,n||{})}const qar=32;class pUt{constructor(r,c,u){this.ctrl=r,this.args=c,this.key=u,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:c,ingKey:u,args:d}=this;c[u]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=d,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const c=this.state,u=this.config;c._active||(this.reset(),this.computeInitial(),c._active=!0,c.target=r.target,c.currentTarget=r.currentTarget,c.lastOffset=u.from?Lue(u.from,c):c.offset,c.offset=c.lastOffset),c.startTime=c.timeStamp=r.timeStamp}computeValues(r){const c=this.state;c._values=r,c.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:c,config:u,shared:d}=this;c.args=this.args;let p=0;if(r&&(c.event=r,u.preventDefault&&r.cancelable&&c.event.preventDefault(),c.type=r.type,d.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,d.locked=!!document.pointerLockElement,Object.assign(d,zar(r)),d.down=d.pressed=d.buttons%2===1||d.touches>0,p=r.timeStamp-c.timeStamp,c.timeStamp=r.timeStamp,c.elapsedTime=c.timeStamp-c.startTime),c._active){const Z=c._delta.map(Math.abs);Nu.addTo(c._distance,Z)}this.axisIntent&&this.axisIntent(r);const[m,x]=c._movement,[E,k]=u.threshold,{_step:T,values:P}=c;if(u.hasCustomTransform?(T[0]===!1&&(T[0]=Math.abs(m)>=E&&P[0]),T[1]===!1&&(T[1]=Math.abs(x)>=k&&P[1])):(T[0]===!1&&(T[0]=Math.abs(m)>=E&&Math.sign(m)*E),T[1]===!1&&(T[1]=Math.abs(x)>=k&&Math.sign(x)*k)),c.intentional=T[0]!==!1||T[1]!==!1,!c.intentional)return;const I=[0,0];if(u.hasCustomTransform){const[Z,H]=P;I[0]=T[0]!==!1?Z-T[0]:0,I[1]=T[1]!==!1?H-T[1]:0}else I[0]=T[0]!==!1?m-T[0]:0,I[1]=T[1]!==!1?x-T[1]:0;this.restrictToAxis&&!c._blocked&&this.restrictToAxis(I);const O=c.offset,N=c._active&&!c._blocked||c.active;N&&(c.first=c._active&&!c.active,c.last=!c._active&&c.active,c.active=d[this.ingKey]=c._active,r&&(c.first&&("bounds"in u&&(c._bounds=Lue(u.bounds,c)),this.setup&&this.setup()),c.movement=I,this.computeOffset()));const[j,$]=c.offset,[[L,B],[F,X]]=c._bounds;c.overflow=[jB?1:0,$X?1:0],c._movementBound[0]=c.overflow[0]?c._movementBound[0]===!1?c._movement[0]:c._movementBound[0]:!1,c._movementBound[1]=c.overflow[1]?c._movementBound[1]===!1?c._movement[1]:c._movementBound[1]:!1;const te=c._active?u.rubberband||[0,0]:[0,0];if(c.offset=_ar(c._bounds,c.offset,te),c.delta=Nu.sub(c.offset,O),this.computeMovement(),N&&(!c.last||p>qar)){c.delta=Nu.sub(c.offset,O);const Z=c.delta.map(Math.abs);Nu.addTo(c.distance,Z),c.direction=c.delta.map(Math.sign),c._direction=c._delta.map(Math.sign),!c.first&&p>0&&(c.velocity=[Z[0]/p,Z[1]/p])}}emit(){const r=this.state,c=this.shared,u=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!u.triggerAllEvents)return;const d=this.handler(kl(kl(kl({},c),r),{},{[this.aliasKey]:r.values}));d!==void 0&&(r.memo=d)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function War([n,r],c){const u=Math.abs(n),d=Math.abs(r);if(u>d&&u>c)return"x";if(d>u&&d>c)return"y"}class _W extends pUt{constructor(...r){super(...r),Zf(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Nu.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Nu.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const c=this.state,u=this.config;if(!c.axis&&r){const d=typeof u.axisThreshold=="object"?u.axisThreshold[fUt(r)]:u.axisThreshold;c.axis=War(c._movement,d)}c._blocked=(u.lockDirection||!!u.axis)&&!c.axis||!!u.axis&&u.axis!==c.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const Gar=n=>n,iPt=.15,gUt={enabled(n=!0){return n},eventOptions(n,r,c){return kl(kl({},c.shared.eventOptions),n)},preventDefault(n=!1){return n},triggerAllEvents(n=!1){return n},rubberband(n=0){switch(n){case!0:return[iPt,iPt];case!1:return[0,0];default:return Nu.toVector(n)}},from(n){if(typeof n=="function")return n;if(n!=null)return Nu.toVector(n)},transform(n,r,c){const u=n||c.shared.transform;return this.hasCustomTransform=!!u,u||Gar},threshold(n){return Nu.toVector(n,0)}},Xar=0,cT=kl(kl({},gUt),{},{axis(n,r,{axis:c}){if(this.lockDirection=c==="lock",!this.lockDirection)return c},axisThreshold(n=Xar){return n},bounds(n={}){if(typeof n=="function")return p=>cT.bounds(n(p));if("current"in n)return()=>n.current;if(typeof HTMLElement=="function"&&n instanceof HTMLElement)return n;const{left:r=-1/0,right:c=1/0,top:u=-1/0,bottom:d=1/0}=n;return[[r,c],[u,d]]}}),eae=10,oPt={ArrowRight:(n=1)=>[eae*n,0],ArrowLeft:(n=1)=>[-eae*n,0],ArrowUp:(n=1)=>[0,-eae*n],ArrowDown:(n=1)=>[0,eae*n]};class Kar extends _W{constructor(...r){super(...r),Zf(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const c=r._bounds.getBoundingClientRect(),u=r.currentTarget.getBoundingClientRect(),d={left:c.left-u.left+r.offset[0],right:c.right-u.right+r.offset[0],top:c.top-u.top+r.offset[1],bottom:c.bottom-u.bottom+r.offset[1]};r._bounds=cT.bounds(d)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const c=this.config,u=this.state;if(r.buttons!=null&&(Array.isArray(c.pointerButtons)?!c.pointerButtons.includes(r.buttons):c.pointerButtons!==-1&&c.pointerButtons!==r.buttons))return;const d=this.ctrl.setEventIds(r);c.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(d&&d.size>1&&u._pointerActive)&&(this.start(r),this.setupPointer(r),u._pointerId=pTe(r),u._pointerActive=!0,this.computeValues(XD(r)),this.computeInitial(),c.preventScrollAxis&&fUt(r)!=="mouse"?(u._active=!1,this.setupScrollPrevention(r)):c.delay>0?(this.setupDelayTrigger(r),c.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const c=this.state;c._active=!0,c._preventScroll=!0,c._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const c=this.state,u=this.config;if(!c._pointerActive||c.type===r.type&&r.timeStamp===c.timeStamp)return;const d=pTe(r);if(c._pointerId!==void 0&&d!==c._pointerId)return;const p=XD(r);if(document.pointerLockElement===r.target?c._delta=[r.movementX,r.movementY]:(c._delta=Nu.sub(p,c._values),this.computeValues(p)),Nu.addTo(c._movement,c._delta),this.compute(r),c._delayed&&c.intentional){this.timeoutStore.remove("dragDelay"),c.active=!1,this.startPointerDrag(r);return}if(u.preventScrollAxis&&!c._preventScroll)if(c.axis)if(c.axis===u.preventScrollAxis||u.preventScrollAxis==="xy"){c._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{}const c=this.state,u=this.config;if(!c._active||!c._pointerActive)return;const d=pTe(r);if(c._pointerId!==void 0&&d!==c._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[p,m]=c._distance;if(c.tap=p<=u.tapsThreshold&&m<=u.tapsThreshold,c.tap&&u.filterTaps)c._force=!0;else{const[x,E]=c.direction,[k,T]=c.velocity,[P,I]=c.movement,[O,N]=u.swipe.velocity,[j,$]=u.swipe.distance,L=u.swipe.duration;c.elapsedTimeO&&Math.abs(P)>j&&(c.swipe[0]=x),Math.abs(T)>N&&Math.abs(I)>$&&(c.swipe[1]=E))}this.emit()}pointerClick(r){!this.state.tap&&r.detail>0&&(r.preventDefault(),r.stopPropagation())}setupPointer(r){const c=this.config,u=c.device;c.pointerLock&&r.currentTarget.requestPointerLock(),c.pointerCapture||(this.eventStore.add(this.sharedConfig.window,u,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,u,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,Yar(r);const c=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",c),this.eventStore.add(this.sharedConfig.window,"touch","cancel",c),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const c=oPt[r.key];if(c){const u=this.state,d=r.shiftKey?10:r.altKey?.1:1;this.start(r),u._delta=c(d),u._keyboardActive=!0,Nu.addTo(u._movement,u._delta),this.compute(r),this.emit()}}keyUp(r){r.key in oPt&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const c=this.config.device;r(c,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(c,"change",this.pointerMove.bind(this)),r(c,"end",this.pointerUp.bind(this)),r(c,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Yar(n){"persist"in n&&typeof n.persist=="function"&&n.persist()}const MW=typeof window<"u"&&window.document&&window.document.createElement;function Qar(){return MW&&"ontouchstart"in window}function sPt(){return Qar()||MW&&window.navigator.maxTouchPoints>1}function Zar(){return MW&&"onpointerdown"in window}function Jar(){return MW&&"exitPointerLock"in window.document}function ecr(){try{return"constructor"in GestureEvent}catch{return!1}}const pv={isBrowser:MW,gesture:ecr(),touch:sPt(),touchscreen:sPt(),pointer:Zar(),pointerLock:Jar()},tcr=250,ncr=180,rcr=.5,icr=50,ocr=250,aPt={mouse:0,touch:0,pen:8},scr=kl(kl({},cT),{},{device(n,r,{pointer:{touch:c=!1,lock:u=!1,mouse:d=!1}={}}){return this.pointerLock=u&&pv.pointerLock,pv.touch&&c?"touch":this.pointerLock?"mouse":pv.pointer&&!d?"pointer":pv.touch?"touch":"mouse"},preventScrollAxis(n,r,{preventScroll:c}){if(this.preventScrollDelay=typeof c=="number"?c:c||c===void 0&&n?tcr:void 0,!(!pv.touchscreen||c===!1))return n||(c!==void 0?"y":void 0)},pointerCapture(n,r,{pointer:{capture:c=!0,buttons:u=1}={}}){return this.pointerButtons=u,!this.pointerLock&&this.device==="pointer"&&c},keys(n=!0){return n},threshold(n,r,{filterTaps:c=!1,tapsThreshold:u=3,axis:d=void 0}){const p=Nu.toVector(n,c?u:d?1:0);return this.filterTaps=c,this.tapsThreshold=u,p},swipe({velocity:n=rcr,distance:r=icr,duration:c=ocr}={}){return{velocity:this.transform(Nu.toVector(n)),distance:this.transform(Nu.toVector(r)),duration:c}},delay(n=0){switch(n){case!0:return ncr;case!1:return 0;default:return n}},axisThreshold(n){return n?kl(kl({},aPt),n):aPt}});function bUt(n){const[r,c]=n.overflow,[u,d]=n._delta,[p,m]=n._direction;(r<0&&u>0&&p<0||r>0&&u<0&&p>0)&&(n._movement[0]=n._movementBound[0]),(c<0&&d>0&&m<0||c>0&&d<0&&m>0)&&(n._movement[1]=n._movementBound[1])}const acr=30,ccr=100;class ucr extends pUt{constructor(...r){super(...r),Zf(this,"ingKey","pinching"),Zf(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const r=this.state;r._touchIds=[],r.canceled=!1,r.cancel=this.cancel.bind(this),r.turns=0}computeOffset(){const{type:r,movement:c,lastOffset:u}=this.state;r==="wheel"?this.state.offset=Nu.add(c,u):this.state.offset=[(1+c[0])*u[0],c[1]+u[1]]}computeMovement(){const{offset:r,lastOffset:c}=this.state;this.state.movement=[r[0]/c[0],r[1]-c[1]]}axisIntent(){const r=this.state,[c,u]=r._movement;if(!r.axis){const d=Math.abs(c)*acr-Math.abs(u);d<0?r.axis="angle":d>0&&(r.axis="scale")}}restrictToAxis(r){this.config.lockDirection&&(this.state.axis==="scale"?r[1]=0:this.state.axis==="angle"&&(r[0]=0))}cancel(){const r=this.state;r.canceled||setTimeout(()=>{r.canceled=!0,r._active=!1,this.compute(),this.emit()},0)}touchStart(r){this.ctrl.setEventIds(r);const c=this.state,u=this.ctrl.touchIds;if(c._active&&c._touchIds.every(p=>u.has(p))||u.size<2)return;this.start(r),c._touchIds=Array.from(u).slice(0,2);const d=ePt(r,c._touchIds);this.pinchStart(r,d)}pointerStart(r){if(r.buttons!=null&&r.buttons%2!==1)return;this.ctrl.setEventIds(r),r.target.setPointerCapture(r.pointerId);const c=this.state,u=c._pointerEvents,d=this.ctrl.pointerIds;if(c._active&&Array.from(u.keys()).every(m=>d.has(m))||(u.size<2&&u.set(r.pointerId,r),c._pointerEvents.size<2))return;this.start(r);const p=BOe(...Array.from(u.values()));this.pinchStart(r,p)}pinchStart(r,c){const u=this.state;u.origin=c.origin,this.computeValues([c.distance,c.angle]),this.computeInitial(),this.compute(r),this.emit()}touchMove(r){if(!this.state._active)return;const c=ePt(r,this.state._touchIds);this.pinchMove(r,c)}pointerMove(r){const c=this.state._pointerEvents;if(c.has(r.pointerId)&&c.set(r.pointerId,r),!this.state._active)return;const u=BOe(...Array.from(c.values()));this.pinchMove(r,u)}pinchMove(r,c){const u=this.state,d=u._values[1],p=c.angle-d;let m=0;Math.abs(p)>270&&(m+=Math.sign(p)),this.computeValues([c.distance,c.angle-360*m]),u.origin=c.origin,u.turns=m,u._movement=[u._values[0]/u._initial[0]-1,u._values[1]-u._initial[1]],this.compute(r),this.emit()}touchEnd(r){this.ctrl.setEventIds(r),!!this.state._active&&this.state._touchIds.some(c=>!this.ctrl.touchIds.has(c))&&(this.state._active=!1,this.compute(r),this.emit())}pointerEnd(r){const c=this.state;this.ctrl.setEventIds(r);try{r.target.releasePointerCapture(r.pointerId)}catch{}c._pointerEvents.has(r.pointerId)&&c._pointerEvents.delete(r.pointerId),!!c._active&&c._pointerEvents.size<2&&(c._active=!1,this.compute(r),this.emit())}gestureStart(r){r.cancelable&&r.preventDefault();const c=this.state;c._active||(this.start(r),this.computeValues([r.scale,r.rotation]),c.origin=[r.clientX,r.clientY],this.compute(r),this.emit())}gestureMove(r){if(r.cancelable&&r.preventDefault(),!this.state._active)return;const c=this.state;this.computeValues([r.scale,r.rotation]),c.origin=[r.clientX,r.clientY];const u=c._movement;c._movement=[r.scale-1,r.rotation],c._delta=Nu.sub(c._movement,u),this.compute(r),this.emit()}gestureEnd(r){!this.state._active||(this.state._active=!1,this.compute(r),this.emit())}wheel(r){const c=this.config.modifierKey;c&&!r[c]||(this.state._active?this.wheelChange(r):this.wheelStart(r),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(r){this.start(r),this.wheelChange(r)}wheelChange(r){"uv"in r||r.cancelable&&r.preventDefault();const u=this.state;u._delta=[-hUt(r)[1]/ccr*u.offset[0],0],Nu.addTo(u._movement,u._delta),bUt(u),this.state.origin=[r.clientX,r.clientY],this.compute(r),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){const c=this.config.device;c&&(r(c,"start",this[c+"Start"].bind(this)),r(c,"change",this[c+"Move"].bind(this)),r(c,"end",this[c+"End"].bind(this)),r(c,"cancel",this[c+"End"].bind(this))),this.config.pinchOnWheel&&r("wheel","",this.wheel.bind(this),{passive:!1})}}const lcr=kl(kl({},gUt),{},{device(n,r,{shared:c,pointer:{touch:u=!1}={}}){if(c.target&&!pv.touch&&pv.gesture)return"gesture";if(pv.touch&&u)return"touch";if(pv.touchscreen){if(pv.pointer)return"pointer";if(pv.touch)return"touch"}},bounds(n,r,{scaleBounds:c={},angleBounds:u={}}){const d=m=>{const x=rPt(Lue(c,m),{min:-1/0,max:1/0});return[x.min,x.max]},p=m=>{const x=rPt(Lue(u,m),{min:-1/0,max:1/0});return[x.min,x.max]};return typeof c!="function"&&typeof u!="function"?[d(),p()]:m=>[d(m),p(m)]},threshold(n,r,c){return this.lockDirection=c.axis==="lock",Nu.toVector(n,this.lockDirection?[.1,3]:0)},modifierKey(n){return n===void 0?"ctrlKey":n},pinchOnWheel(n=!0){return n}});class fcr extends _W{constructor(...r){super(...r),Zf(this,"ingKey","moving")}move(r){this.config.mouseOnly&&r.pointerType!=="mouse"||(this.state._active?this.moveChange(r):this.moveStart(r),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(r){this.start(r),this.computeValues(XD(r)),this.compute(r),this.computeInitial(),this.emit()}moveChange(r){if(!this.state._active)return;const c=XD(r),u=this.state;u._delta=Nu.sub(c,u._values),Nu.addTo(u._movement,u._delta),this.computeValues(c),this.compute(r),this.emit()}moveEnd(r){!this.state._active||(this.state._active=!1,this.compute(r),this.emit())}bind(r){r("pointer","change",this.move.bind(this)),r("pointer","leave",this.moveEnd.bind(this))}}const dcr=kl(kl({},cT),{},{mouseOnly:(n=!0)=>n});class hcr extends _W{constructor(...r){super(...r),Zf(this,"ingKey","scrolling")}scroll(r){this.state._active||this.start(r),this.scrollChange(r),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(r){r.cancelable&&r.preventDefault();const c=this.state,u=Var(r);c._delta=Nu.sub(u,c._values),Nu.addTo(c._movement,c._delta),this.computeValues(u),this.compute(r),this.emit()}scrollEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){r("scroll","",this.scroll.bind(this))}}const pcr=cT;class gcr extends _W{constructor(...r){super(...r),Zf(this,"ingKey","wheeling")}wheel(r){this.state._active||this.start(r),this.wheelChange(r),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(r){const c=this.state;c._delta=hUt(r),Nu.addTo(c._movement,c._delta),bUt(c),this.compute(r),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){r("wheel","",this.wheel.bind(this))}}const bcr=cT;class mcr extends _W{constructor(...r){super(...r),Zf(this,"ingKey","hovering")}enter(r){this.config.mouseOnly&&r.pointerType!=="mouse"||(this.start(r),this.computeValues(XD(r)),this.compute(r),this.emit())}leave(r){if(this.config.mouseOnly&&r.pointerType!=="mouse")return;const c=this.state;if(!c._active)return;c._active=!1;const u=XD(r);c._movement=c._delta=Nu.sub(u,c._values),this.computeValues(u),this.compute(r),c.delta=c.movement,this.emit()}bind(r){r("pointer","enter",this.enter.bind(this)),r("pointer","leave",this.leave.bind(this))}}const vcr=kl(kl({},cT),{},{mouseOnly:(n=!0)=>n}),tje=new Map,VOe=new Map;function ycr(n){tje.set(n.key,n.engine),VOe.set(n.key,n.resolver)}const wcr={key:"drag",engine:Kar,resolver:scr},xcr={key:"hover",engine:mcr,resolver:vcr},Scr={key:"move",engine:fcr,resolver:dcr},Ecr={key:"pinch",engine:ucr,resolver:lcr},kcr={key:"scroll",engine:hcr,resolver:pcr},Ccr={key:"wheel",engine:gcr,resolver:bcr};function Icr(n,r){if(n==null)return{};var c={},u=Object.keys(n),d,p;for(p=0;p=0)&&(c[d]=n[d]);return c}function Tcr(n,r){if(n==null)return{};var c=Icr(n,r),u,d;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(n);for(d=0;d=0)&&(!Object.prototype.propertyIsEnumerable.call(n,u)||(c[u]=n[u]))}return c}const Acr={target(n){if(n)return()=>"current"in n?n.current:n},enabled(n=!0){return n},window(n=pv.isBrowser?window:void 0){return n},eventOptions({passive:n=!0,capture:r=!1}={}){return{passive:n,capture:r}},transform(n){return n}},Pcr=["target","eventOptions","window","enabled","transform"];function Vae(n={},r){const c={};for(const[u,d]of Object.entries(r))switch(typeof d){case"function":c[u]=d.call(c,n[u],u,n);break;case"object":c[u]=Vae(n[u],d);break;case"boolean":d&&(c[u]=n[u]);break}return c}function Ocr(n,r,c={}){const u=n,{target:d,eventOptions:p,window:m,enabled:x,transform:E}=u,k=Tcr(u,Pcr);if(c.shared=Vae({target:d,eventOptions:p,window:m,enabled:x,transform:E},Acr),r){const T=VOe.get(r);c[r]=Vae(kl({shared:c.shared},k),T)}else for(const T in k){const P=VOe.get(T);P&&(c[T]=Vae(kl({shared:c.shared},k[T]),P))}return c}class mUt{constructor(r,c){Zf(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=c}add(r,c,u,d,p){const m=this._listeners,x=$ar(c,u),E=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},k=kl(kl({},E),p);r.addEventListener(x,d,k);const T=()=>{r.removeEventListener(x,d,k),m.delete(T)};return m.add(T),T}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class _cr{constructor(){Zf(this,"_timeouts",new Map)}add(r,c,u=140,...d){this.remove(r),this._timeouts.set(r,window.setTimeout(c,u,...d))}remove(r){const c=this._timeouts.get(r);c&&window.clearTimeout(c)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}class Mcr{constructor(r){Zf(this,"gestures",new Set),Zf(this,"_targetEventStore",new mUt(this)),Zf(this,"gestureEventStores",{}),Zf(this,"gestureTimeoutStores",{}),Zf(this,"handlers",{}),Zf(this,"config",{}),Zf(this,"pointerIds",new Set),Zf(this,"touchIds",new Set),Zf(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Dcr(this,r)}setEventIds(r){if(Qfe(r))return this.touchIds=new Set(Bar(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,c){this.handlers=r,this.nativeHandlers=c}applyConfig(r,c){this.config=Ocr(r,c,this.config)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const c=this.config.shared,u={};let d;if(!(c.target&&(d=c.target(),!d))){if(c.enabled){for(const m of this.gestures){const x=this.config[m],E=cPt(u,x.eventOptions,!!d);if(x.enabled){const k=tje.get(m);new k(this,r,m).bind(E)}}const p=cPt(u,c.eventOptions,!!d);for(const m in this.nativeHandlers)p(m,"",x=>this.nativeHandlers[m](kl(kl({},this.state.shared),{},{event:x,args:r})),void 0,!0)}for(const p in u)u[p]=Har(...u[p]);if(!d)return u;for(const p in u){const{device:m,capture:x,passive:E}=Rar(p);this._targetEventStore.add(d,m,"",u[p],{capture:x,passive:E})}}}}function dM(n,r){n.gestures.add(r),n.gestureEventStores[r]=new mUt(n,r),n.gestureTimeoutStores[r]=new _cr}function Dcr(n,r){r.drag&&dM(n,"drag"),r.wheel&&dM(n,"wheel"),r.scroll&&dM(n,"scroll"),r.move&&dM(n,"move"),r.pinch&&dM(n,"pinch"),r.hover&&dM(n,"hover")}const cPt=(n,r,c)=>(u,d,p,m={},x=!1)=>{var E,k;const T=(E=m.capture)!==null&&E!==void 0?E:r.capture,P=(k=m.passive)!==null&&k!==void 0?k:r.passive;let I=x?u:Nar(u,d,T);c&&P&&(I+="Passive"),n[I]=n[I]||[],n[I].push(p)},Ncr=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function jcr(n){const r={},c={},u=new Set;for(let d in n)Ncr.test(d)?(u.add(RegExp.lastMatch),c[d]=n[d]):r[d]=n[d];return[c,r,u]}function hM(n,r,c,u,d,p){if(!n.has(c)||!tje.has(u))return;const m=c+"Start",x=c+"End",E=k=>{let T;return k.first&&m in r&&r[m](k),c in r&&(T=r[c](k)),k.last&&x in r&&r[x](k),T};d[u]=E,p[u]=p[u]||{}}function Rcr(n,r){const[c,u,d]=jcr(n),p={};return hM(d,c,"onDrag","drag",p,r),hM(d,c,"onWheel","wheel",p,r),hM(d,c,"onScroll","scroll",p,r),hM(d,c,"onPinch","pinch",p,r),hM(d,c,"onMove","move",p,r),hM(d,c,"onHover","hover",p,r),{handlers:p,config:r,nativeHandlers:u}}function $cr(n,r={},c,u){const d=lt.useMemo(()=>new Mcr(n),[]);if(d.applyHandlers(n,u),d.applyConfig(r,c),lt.useEffect(d.effect.bind(d)),lt.useEffect(()=>d.clean.bind(d),[]),r.target===void 0)return d.bind.bind(d)}function Lcr(n){return n.forEach(ycr),function(c,u){const{handlers:d,nativeHandlers:p,config:m}=Rcr(c,u||{});return $cr(d,m,void 0,p)}}function uPt(n,r){return Lcr([wcr,Ecr,kcr,Ccr,Scr,xcr])(n,r||{})}function Fcr(n,r){const c=vfe(),u=bN(d=>d?d.context.viewBox.zoom:1);uPt({onPinch:({origin:[d,p],offset:[m]})=>{if(!r.current||!n.current)return;const x=CS({x:d,y:p});c.send({type:"zoom.set",value:m,origin:Zx(x,r.current)})},onWheel:({event:d})=>{!r.current||!n.current||d.metaKey||d.ctrlKey||c.send({type:"viewbox.move",vector:Vzn(d)})}},{target:n,pinch:{scaleBounds:{min:.1,max:10},from:[u,0],modifierKey:"ctrlKey"}}),uPt({onPinch:({origin:[d,p],offset:[m]})=>{if(!r.current||!n.current)return;const x=CS({x:d,y:p});c.send({type:"zoom.set",value:m,origin:Zx(x,r.current)})}},{target:n,pinch:{scaleBounds:{min:.1,max:10},from:[u,0],modifierKey:"metaKey"}})}const Bcr=n=>n.context.viewBox,Vcr=n=>{switch(!0){case n.hasTag("grab"):return"grab";case n.hasTag("grabbing"):return"grabbing";default:return"auto"}},zcr=sg({initial:"selectable",invoke:{src:()=>n=>{const r=Il.bind(window,{type:"keydown",listener:u=>{const d=u.target;u.code==="Space"&&!TPe(d)&&n({type:"keydown.space"})}}),c=Il.bind(window,{type:"keyup",listener:u=>{const d=u.target;u.code==="Space"&&!TPe(d)&&n({type:"keyup.space"})}});return()=>{r(),c()}}},states:{selectable:{initial:"idle",states:{idle:{on:{"drag.start":"selecting"}},selecting:{entry:"deselectAll",on:{"drag.dragging":{actions:"select"},"drag.end":{target:"idle",actions:"endSelection"}}}},on:{"keydown.space":"pannable","pointerdown.middle":"pannable.panning"}},pannable:{initial:"idle",states:{idle:{on:{"drag.start":"panning"}},panning:{on:{"drag.dragging":{actions:"pan"},"drag.end":{target:"idle",actions:"endSelection"}}}},on:{"keyup.space":"selectable","pointerup.middle":"selectable"}}}});function Ucr({layoutInitialized:n}){const r=Zc(),c=U.exports.useContext(mN),u=U.exports.useRef(null),d=U.exports.useContext(r1),p=vfe(),m=U.exports.useRef(!0),x=Al(p,Bcr,Xo,$=>$.deferred?Sq.initialState:$.state),E=Al(p,Vcr,Xo,$=>$.deferred?Sq.initialState:$.state),k=bN($=>$.matches({mode:"pannable"}));U.exports.useLayoutEffect(()=>{const $=()=>{requestAnimationFrame(()=>{if(!c.current)return;const L=c.current.getBoundingClientRect();p.send({type:"SET_VIEWBOX_SIZE",width:L.width,height:L.height})})};return window.addEventListener("resize",$),$(),()=>{window.removeEventListener("resize",$)}},[p]),U.exports.useLayoutEffect(()=>{!c.current||!m.current||(m.current=!1,r.send({type:"entities.setSizes",nodeSizes:[...c.current.querySelectorAll("[data-node-id]")].map($=>({uniqueId:$.dataset.nodeId,size:$.getBoundingClientRect()})),edgeSizes:[...c.current.querySelectorAll("[data-edge-id]")].map($=>({uniqueId:$.dataset.edgeId,size:$.getBoundingClientRect()}))}))},[r,c]);const T=ya($=>$.id);U.exports.useLayoutEffect(()=>{const $=()=>{requestAnimationFrame(()=>{if(!c.current)return;const L=c.current.getBoundingClientRect();p.send({type:"SET_VIEWBOX_SIZE",width:L.width,height:L.height})})};return window.addEventListener("resize",$),$(),()=>{window.removeEventListener("resize",$)}},[p]),Aar(T,x),Fcr(u,c),mfe(u,{onDragStart:()=>{j.send({type:"drag.start"})},onDrag:$=>{j.send({type:"drag.dragging",initial:$.startPoint,current:$.dragPoint,dx:$.currentDelta.dx,dy:$.currentDelta.dy})},onDragEnd:()=>{j.send({type:"drag.end"})},onClick:()=>{r.send({type:"deselectAll"})}}),U.exports.useEffect(()=>{const $=p.subscribe(({event:L})=>{var B,F,X;switch(L.type){case"zoom.set":case"zoom.in":case"zoom.out":(B=so())==null||B.debouncedTrack(L.type);return;case"viewbox.move":(F=so())==null||F.debouncedTrack(L.type);return;case"selection.start":case"selection.end":(X=so())==null||X.track(`Canvas Interaction: ${L.type}`);return;default:return}});return()=>$.unsubscribe()},[p]);const P=ya($=>Object.values($.selection),Xo),I=ya($=>$.status),O=jw(),N=U.exports.useMemo(()=>We(Si,{children:[z(Isr,{}),z(_sr,{}),z(vsr,{}),z(Nsr,{}),z(Dsr,{}),z($Gn,{})]}),[]),j=yW(zcr,{actions:{deselectAll:()=>{r.send({type:"deselectAll"})},select:($,L)=>{if(!("initial"in L))return;const B=Zx(L.initial,c.current),F=Zx(L.current,c.current);d.send({type:"selectionBox.change",selectionBox:[B,F]})},endSelection:()=>{d.send({type:"selectionBox.change",selectionBox:null})},pan:($,L)=>{!("dx"in L)||!("dy"in L)||p.send({type:"viewbox.move",vector:l7({x:L.dx,y:L.dy})})}}});return U.exports.useEffect(()=>{Il.bindAll(u.current,[{type:"mousedown",listener:$=>{$.button===1&&j.send({type:"pointerdown.middle"})}},{type:"mouseup",listener:$=>{$.button===1&&j.send({type:"pointerup.middle"})}}])},[j]),We(Si,{children:[z(gsr,{viewBox:x,cursorType:E}),z(Msr,{"data-testid":"canvas",ref:u,viewBox:x,css:{cursor:E,pointerEvents:"auto","& > *":{pointerEvents:k?"none":"auto"},"--default-entity-opacity":I==="selected"&&P.some($=>$.type==="edge")?.5:1},sx:{"[data-edge-anchor-group]:hover":{"[data-edge-anchor]":{fill:"primary.600"}},"[data-node-anchor-group]:hover":{"[data-node-anchor]":{fill:"primary.600"},"[data-node-anchor-line]":{stroke:"white"}}},onPointerUp:()=>{r.send({type:"select.end"})},onDoubleClick:$=>{if($.target!==$.currentTarget||O)return;const L=jx($,c.current),B=r.getSnapshot().getNodeRectDataAtPoint(L);if(!B||B.rectKey==="family"){const F=new Du({x:L.x-Yf.width/2,y:L.y-Yf.height/2,width:Yf.width,height:Yf.height});r.send({type:"node.newChildNode",nodeId:B?B.node.uniqueId:r.getSnapshot().root.uniqueId,position:F})}},children:N}),z(Qt.svg,{ref:c,tabIndex:-1,"data-testname":"svg-canvas",viewBox:`${x.minX} ${x.minY} ${x.width} ${x.height}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"100%",position:"fixed",overflow:"visible",top:0,left:0,cursor:E,userSelect:"none",outline:"none",pointerEvents:"none"},opacity:n?"1":"0"})]})}const Hcr=n=>z(MS,{...n,as:"h1",fontSize:"sm"}),vUt=n=>z(MS,{...n,as:"h2",fontSize:"sm"}),qcr=n=>z(MS,{...n,as:"h3",fontSize:"sm",marginBlock:"2"}),Wcr=n=>z(MS,{...n,as:"h4",fontSize:"sm",marginBlock:"2"}),Gcr=n=>z(MS,{...n,as:"h4",fontSize:"sm",marginBlock:"2"}),Xcr=n=>z(Fi,{...n,as:"strong"}),Kcr=n=>z(Fi,{...n,as:"em"}),Ycr={h1:Hcr,h2:vUt,h3:qcr,h4:Wcr,h5:Gcr,strong:Xcr,em:Kcr,a:n=>z(fq,{...n,target:"_blank"}),img:n=>z(hNt,{...n,alt:n.alt,display:"block",maxWidth:"100%",__css:{"&:not([data-has-loaded])":{border:"1px solid"}},onLoad:r=>{r.target.setAttribute("data-has-loaded","true")},src:`https://raw.githubusercontent.com/statelyai/assets/main/copy/tutorials/${n.src}`})},lPt=U.exports.memo(function(r){const{getColorModeValue:c}=ei();return z(qNe,{components:Ycr,__css:{"& h1, & h2, & h3, & h4, & strong":{fontVariationSettings:"'wght' 600",fontSize:"inherit"},"& h1, & h2, & h3, & h4, & h5":{color:c("gray.900","gray.100")},"& h3":{borderTop:"solid 1px",borderTopColor:c("gray.100","gray.600"),paddingTop:"4"},"& h4":{marginBottom:"0"},"& a":{color:c("blue.500","blue.300"),textDecoration:"underline"},"& p":{color:c("gray.800","gray.300")},"& li":{color:c("gray.800","gray.300"),marginLeft:"1"}},...r})},()=>!0),Qcr={"What is a state machine?":`State machines help us model how a process goes from state to state when an event occurs. + + State machines are useful in software development because they help us capture all the states, events and transitions between them. Using state machines makes it easier to find impossible states and spot undesirable transitions. + + State machines model your application logic. Below is the logic for a video player. When the video is Played, it is opened into fullscreen mode. When the video is stopped, it closes out of fullscreen mode. When the video player is in fullscreen mode, it can be _Playing_ or _Paused_. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](what-is-a-state-machine/what-is-a-state-machine-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=dbcfca1c-075d-4cd6-a865-efcbd7be1544). + + [Read more about state machines in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/) + + ### What is a statechart? + + Statecharts are fancy state machines used to model more complex logic. + + Statecharts are a visual extension to state machines that use boxes and arrows, much like flowcharts and sequence diagrams. Statecharts add extra features not available in ordinary state machines, including hierarchy (parent states), concurrency (parallel states) and communication (actors). + + When you make a state machine in the Stately Studio, it\u2019s also a statechart! + + [Watch the \u2018What are state machines and statecharts?\u2019 video (1m 5s)](https://www.youtube.com/watch?v=Aixi0e53qAE). + + [Read more about statecharts in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/)`,States:`A state describes the machine\u2019s status or mode, which could be as simple as *Paused* and *Playing*. A state machine can only be in one state at a time. + + ![Video player state machine with an initial Paused state and a Playing state.](states/states-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=741f69fd-7f01-4932-9407-6871e225bb6d). + + The rounded rectangle boxes are states. These states are \u201Cfinite\u201D; the machine can only move through the states you\u2019ve pre-defined. + + [Watch the \u2018What are states?\u2019 video (52s)](https://www.youtube.com/watch?v=z-6yhmSWUcc). + + ### How to create a state + + 1. Select your machine or an existing state. + 2. Create a new state inside your machine or existing state: + - Use the **+ State** button that appears above the selected state, or: + - Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. + - Double-click inside your machine or an existing state. + + [Read more about states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#states)`,"Initial state":`When a state machine starts, it enters the **initial state** first. A machine can only have one top-level initial state; if there were multiple initial states, the machine wouldn\u2019t know where to start! + + The filled circle with an arrow icon represents the initial state. + + In our video player, paused is the initial state because the video player is paused by default and requires user interaction to start playing. + + ![State machine with an initial state of Paused, transitioning through a Play event to the Playing state. From the Playing state back to the Paused state is a Pause event.](initial-states/initial-state-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=3ebc8874-2294-480b-a06e-74845337cd8d). + + [Watch the \u2018What are initial states?\u2019 tutorial video (1m 16s)](https://www.youtube.com/watch?v=goCpmgyrjL0). + + ### How to change the initial state + + Each new machine or parent state will set the first new state as its initial state by default. + + #### Using the **quick actions** menu: + + 1. Select the state you wish to make the new initial state. + 2. Right-click the state to bring up the **quick actions** menu. + 3. Choose **Mark as initial state** from the **quick actions** menu. + + #### Using the **State details** panel: + + 1. Select the parent state or parent machine. + 2. Open the **State details** panel from the right tool menu. + 3. Choose the desired initial state from the Initial state dropdown menu. + + [Read more about initial states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#initial-state)`,"Events and transitions":`A machine moves from state to state through **transitions**. Transitions are caused by events; when an event happens, the machine transitions to the next state. + + Transitions are \u201Cdeterministic\u201D; each combination of state and event always points to the same next state. + + The arrows are transitions, and the rounded rectangles on the arrow\u2019s lines are events. Each transition has a **source** state which comes before the transition, and a **target** state, which comes after the transition. The transition\u2019s arrow starts from the source state and points to the target state. + + ![A video player state machine with an initial Paused State and a Playing state. The Play event transitions from Paused to Playing. The Pause event transitions from Playing to Paused.](transitions-and-events/transitions-and-events-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=9630e3b7-9f8e-4dc9-8b55-661f854d28b7). + + In the video player machine above, the events are *PLAY* and *PAUSE*. The *Play* event transitions from the *Paused* state to the *Playing* state. The *Pause* event transitions from the *Playing* state to the *Paused* state. + + [Watch the \u2018Transitions and events\u2019 tutorial video (1m 50s)](https://www.youtube.com/watch?v=0qgP4RZyq58). + + ### How to add a transition and event + + 1. Select an existing state. + 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. + + ### How to change the source and target states for a transition or event + + First select the transition or event you want to change. Then\u2026 + + #### Using the **Transition details** panel + + 1. Select the transition or event you wish to change. + 2. Open the **Transition details** panel from the right tool menu. + 3. Choose a new source state from the **Source** dropdown options. + 4. Choose a new target state from the **Target** dropdown options. + + #### Dragging the transition handles + + 1. Select the transition or event you want to change. + 2. Drag the transition\u2019s handle connected to the source state to connect it to a new source state. + 3. Drag the transition\u2019s handle connected to the target state to connect it to a new target state. + + ### How to switch the source and target states for a transition or event + + 1. Select the transition or event. + 2. Right-click the state to bring up the **quick actions** menu. + 3. Choose **Switch source and target** from the **quick actions** menu. + + [Read more about states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#transitions-and-events)`,"Parent and child states":`States can contain more states, also known as **child states**. These child states are only active when the parent state is active. + + Child states are nested inside their parent states. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](parent-states/parent-states-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=9ba5377c-aab3-4465-8909-4eea499622fa). + + In the video player above, the *Opened* state is a parent state to the *Playing*, *Paused*, and *Stopped* states. These states, their transitions, and their events are nested inside the *Opened* state. + + [Watch the \u2018Parent and child states\u2019 tutorial video (1m 6s)](https://www.youtube.com/watch?v=aUhEdeIf_mQ). + + ### How to add a child state + + First, select your machine or an existing state where you want to create the child state. Then\u2026 + + - Use the **+ State** button that appears above the selected state to create a nested child state. Or\u2026 + - If a state already contains child states, you can double-click inside the parent state to create another child state. + + ### How to change the parent state of a child state + + Using the **State details** panel: + + 1. Select the child state you want to reparent. + 2. Open the **State details** panel from the right tool menu. + 3. Choose your desired new parent from the **Parent** dropdown menu. + + [Read more about parent and child states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#compound-states)`,"Parallel states":`A parallel state is a parent state separated into multiple regions of child states, where each region is active simultaneously. + + A dashed line borders each region. + + ![A state machine containing two region states with dashed borders around the outside. The first region is the video state which is active at the same time as the audio state, and contains a playing and stopped state, with stop and play events. The other region is an audio state, which is active at the same time as the video state, and has muted and unmuted states, and unmute and mute events.](parallel-states/parallel-states-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=733de338-26cb-40a5-a0b5-b76bfc0405c3). + + In the video player machine above, the video and audio states are active at the same time, which means the following combinations of states can happen simultaneously: + + - video playing, audio muted + - video playing, audio unmuted + - video stopped, audio muted + - video stopped, audio unmuted + + [Watch the \u2018What are parallel states?\u2019 video (54s)](https://www.youtube.com/watch?v=CWwgT1TbI4c). + + ### How to make a state a parallel state + + First, select the parent state you want to set as a parallel state. Then\u2026 + + #### Using the **quick actions** menu: + + 1. Right-click the state to bring up the **quick actions** menu. + 2. Choose **Parallel** from the **Type** options. + + #### Using the **State details** panel: + + 1. Select the parent state you want to set as the parallel state. + 2. Open the **State details** panel from the right tool menu. + 3. Choose **Parallel** from the **Type** dropdown menu. + + [Read more about parallel states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#compound-states)`,"Final states":`When a machine reaches the final state, it can no longer receive any events, and anything running inside it is canceled and cleaned up. The box with a surrounding border icon represents the final state. + + A machine can have multiple final states or no final states. + + In the video player below, *Stopped* is the final child state in the *Opened* state. When the video player is *Stopped*, the video player moves to its *Closed* state. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped, represented by an icon alongside the Stopped label of a square with a double border. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](final-states/final-state-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=c6f8ca35-25e3-4fc6-b4fe-c9994715852e). + + [Watch the \u2018What are final states?\u2019 video (55s)](https://www.youtube.com/watch?v=wqW8Gz4NYDc). + + ### How to make a state a final state + + First, select the state you want to set as the final state. + + #### Using the **quick actions** menu + + 1. Right-click the state to bring up the **quick actions** menu. + 2. Choose **Final** from the **Type** options. + + #### Using the **State details** panel + + 1. Select the state you want to set as the final state. + 2. Open the **State details** panel from the right tool menu. + 3. Choose **Final** from the **Type** dropdown menu. + + [Read more about final states in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#final-state)`,"History states":`A history state returns the parent state to its most recently active child state. The box with an **H** inside represents the history state. + + The history state can be deep or shallow: + + - A shallow history state remembers the immediate child\u2019s state. + - A deep history state remembers the deepest active state or states inside its child states. + + ### How to make a state a history state + + First, select the state you want to set as a history state for the parent state. Then\u2026 + + #### Using the **quick actions** menu + + 1. Right-click the state to bring up the **quick actions** menu. + 2. Choose **History** from the **Type** options. + + #### Using the **State details** panel + + 1. Select the state you want to set as the final state. + 2. Open the **State details** panel from the right tool menu. + 3. Choose **History** from the **Type** dropdown menu. + 4. Use the **History** toggle that appears when the state has a **History Type** to choose between **Shallow** and **Deep** history options. + + [Read more about history states in our docs](https://xstate.js.org/docs/guides/history.html#history) + `,Guards:`A **guard** is a condition that the machine checks when it goes through an event. If the condition is true, the machine follows the transition to the next state. If the condition is false, the machine follows the rest of the conditions to the next state. Any transition can be a guarded transition. + + Guards are numbered in the order they are checked and labeled with \u201Cif\u201D or \u201Celse if\u201D along with their condition. Multiple guards on the same events are connected with a dotted line. + + ## How to add a guard to an event + + First, select the event where you want to add a guard. Then\u2026 + + #### Using the **+ Transition** button + + 1. Use the **+ Transition** button to replace your event with a guarded transition. + 2. Name your guard by replacing the **New guard** text inside the event. + + #### Using the **quick actions** menu + + 1. Right-click the event to bring up the **quick actions** menu. + 2. Choose **Add guard** from the options in the **quick actions** menu to replace your event with a guarded transition. + 3. Name your guard by replacing the **New guard** text inside the event. + + #### Using the **Transition details** panel + + 1. Open the **Transition details** panel from the right tool menu. + 2. Use the **Guard** text input to name your guard and replace your event with a guarded transition. + + Use the **+ Transition** button to create more guards on the same transition. + + [Read more about guards in our docs](https://xstate.js.org/docs/guides/guards.html#guards-condition-functions)`,"Entry and exit actions":` + While the statechart is running, it can execute other effects called actions. + +An action can be fired upon entry or exit of a state. Actions are \u201Cfire-and-forget effects\u201D; once the machine has fired the action, it moves on and forgets the action. You can also fire actions on transitions. + +You can fire multiple entry and exit actions on a state. Top-level final states cannot have exit actions, since the machine is stopped and no further transitions can occur. + +![Entry and exit actions video player](entry-and-exit-actions/entry-and-exit-actions-2022-10-24-small.png) + +[View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=222e2d7a-0ed6-4f2c-843a-e6646d717000). + +In our video player, we have entry and exit actions on the Playing state. We use the entry action of playVideo to fire an effect playing the video on entry to the Playing state. We use the exit action of pauseVideo to fire an effect pausing the video when the Playing state is exited. + +[Watch the \u2018Entry actions and exit actions\u2019 tutorial video (2m 19s)](https://www.youtube.com/watch?v=5DAkwzNQ5a0). + +### How to add an entry action to a state + +1. Select the state you want to have an entry action. +2. Open the **State details** panel from the right tool menu. +3. Use the **+** icon alongside the **Entry actions** to add a new action. +4. Use the **Custom** tab under **Entry actions** to input the **type** for the entry action. +5. Use the **Assign** tab under **Entry actions** to assign **key** and **assignment** pairs to the entry action. +6. Save the entry action using the **Save** button. + +### How to add an exit action to a state + +1. Select the state you want to have an exit action. +2. Open the **State details** panel from the right tool menu. +3. Use the **+** icon alongside the **Exit actions** to add a new action. +4. Use the **Custom** tab under **Exit actions** to input the **type** for the exit action. +5. Use the **Assign** tab under **Exit actions** to assign **key** and **assignment** pairs to the exit action. +6. Save the entry action using the **Save** button. + +[Read more about entry and exit actions in our docs](https://xstate.js.org/docs/guides/actions.html#actions)`,"Eventless (always) transitions":`**Eventless transitions** are transitions without events. These transitions are *always* taken after any transition in their state is enabled. No event is necessary to trigger the transition. + + Eventless transitions are labeled \u201Calways\u201D and often referred to as \u201Calways\u201D transitions. + + ### How to make an event into an eventless transition + + First, select the event you want to replace with an eventless transition. Then\u2026 + + #### Using the **quick actions** menu + + 1. Right-click the state to bring up the **quick actions** menu. + 2. Choose **Always** from the **Event type** options. + + #### Using the **Transition details** panel + + 1. Open the **Transition details** panel from the right tool menu. + 2. Choose **Always** from the **Event type** dropdown menu. + + [Read more about eventless transitions in our docs](https://xstate.js.org/docs/guides/transitions.html#eventless-always-transitions)`,"Delayed (after) transitions":`**Delayed transitions** are transitions that only happen after a specified interval of time. If another event happens before the end of the timer, the transition doesn\u2019t complete. Delayed transitions are handy if you need to build timeouts and intervals into your application logic. + + Delayed transitions are labeled \u201Cafter\u201D and often referred to as \u201Cafter\u201D transitions. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](delayed-transitions/delayed-transition-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=5671366b-05cf-43f5-a09a-b88373ea27c1). + + In a video player, we might want the video to be *Closed* out of fullscreen mode a few seconds after the video has *Stopped*, instead of closing the fullscreen mode suddenly as soon as the video is stopped. The eventless transition above transitions from the *Stopped* state to the *Closed* state after 5 seconds. + + [Watch the \u2018Delayed (after) transitions\u2019 tutorial video (1m 17s)](https://www.youtube.com/watch?v=5RE_eazRhrw). + + ### How to make an event into a delayed transition + + First, select the event you want to replace with a delayed transition. Then\u2026 + + #### Using the **quick actions** menu + + 1. Right-click the event to bring up the **quick actions** menu. + 2. Choose **After** from the **Event type** options. + 3. Use the **Transition details** panel to change the delay time. + + #### Using the **Transition details** panel + + 1. Open the **Transition details** panel from the right tool menu. + 2. Choose **After** from the **Event type** dropdown menu. + 3. Specify the delay time in milliseconds using the **Delay** text input. + + [Read more about delayed transitions in our docs](https://xstate.js.org/docs/guides/introduction-to-state-machines-and-statecharts/#delayed-transitions)`,"State done event":`A **state done event** transitions from a parent state when one of its child states reaches its final state. State done events are labeled \u201ConDone.\u201D + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s an onDone event from the parent Opened state back to the Closed state.](state-done-events/state-done-event-2022-10-24-small.png) + + In the video player above, when the video player reaches the *Stopped* state, the *Opened* state transitions through the *onDone* state done event to the *Closed* state. + + [Watch the \u2018What are state done events?\u2019 video (1m 16s)](https://www.youtube.com/watch?v=3laC3gWBLnM). + + ### How to add a state done event to a parent state + + 1. Check the final child state has its state type set to **Final**. If the parent state doesn\u2019t contain a final child state, the state done event type will not be available for transitions from the parent state. + 2. Select the parent state. + 3. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. + 4. Select the newly-created event. Then\u2026 + + #### Using the **quick actions** menu + + 1. Right-click the state to bring up the **quick actions** menu. + 2. Choose **State done event** from the **Event type** options. + + #### Using the **Transition details** panel + + 1. Open the **Transition details** panel from the right tool menu. + 2. Choose **State done event** from the **Event type** dropdown menu. + + [Read more about state done events in our docs](https://xstate.js.org/docs/guides/states.html#state-methods-and-properties)`,"Self transitions":`A **self-transition** starts and ends in the same state. + + Self-transitions can be used to restart a state. + + ### How to make an event into a self-transition + + #### Using the **quick actions** menu + + 1. Right-click the event to bring up the **quick actions** menu. + 2. Choose **Make self transition** from the **quick actions** menu. + + #### Dragging the transition arrow + + 1. Select the event. + 2. Grab the circular handle at the arrow end of the transition and drag the handle to connect it back to the source state. + + [Read more about self-transitions in our docs](https://xstate.js.org/docs/guides/transitions.html#self-transitions)`,"Invoked actors":`When you run a statechart, it becomes an actor: a running process that can receive messages, send messages and change its behavior based on the messages it receives, which can cause effects outside of the actor. + + An invoked actor is an actor that can execute its own actions and communicate with the machine. These invoked actors are started in a state and stopped when the state is exited. + + Invoked actors are are labeled on their invoking state with \u201CInvoke /\u201D followed by the actor\u2019s source name and ID. + + You can invoke multiple actors on a single state. Top-level final states cannot have invoked actors. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](invoked-actors/invoked-actors-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=66f77051-089e-4b0a-9fa9-42e1f7598135). + + In the video player above, the *startVideo* actor is invoked when the video player is in the *Opened* state. + + [Watch the \u2018What are invoked actors?\u2019 video (1m 58s)](https://www.youtube.com/watch?v=TRMS8NYKWnA). + + ### How to invoke actors on a state + + 1. Select the state you want to invoke an actor. + 2. Open the **State details** panel from the right tool menu. + 3. Use the **+** icon alongside the **Invoked actors** to add a new action. + 4. Add the source for the actor using the **src** text input. + 5. Add the ID for the actor using the **ID** text input. + 6. Save the invoked actor using the **Save** button. + + [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,"Invoke done events":`An **invoke done event** transitions from a state once its invocation has been completed. An invoke done event is labeled \u201Cdone:\u201D followed by the invocation\u2019s ID. + + ### How to create invoke done events + + 1. Select the state with an invoked actor where you want to add an invoke done event. + 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. + 3. The newly-created event will automatically be created as an invoke done event. + + You can also change an existing event into an invoked done event using the **quick actions** menu: + + 1. Select the existing event you wish to change into an invoke done event. + 2. Right-click the state to bring up the **quick actions** menu. + 3. Choose **Invocation done event** from the **Event type** options. + + [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,"Invoke error events":`An **invoke error event** transitions from a state when an error occurs in its invocation. An invoke error event is labeled \u201Cerror:\u201D followed by the invocation\u2019s ID. + + ### How to create invoke error events + + 1. Select the state with an invoked actor where you want to add an invoke error event. + 2. Drag from the handles on the left, right and bottom sides of the selected state, and release to create a connecting transition, event and new state. + 3. The newly-created event will automatically be created as an invoke done event. + 4. When an invoke done event already exists from that state, creating another event will automatically create that event as an invoke error event. + + You can also change an existing event into an invoked error event using the **quick actions** menu: + + 1. Select the existing event you wish to change into an invoke error event. + 2. Right-click the state to bring up the **quick actions** menu. + 3. Choose **Invocation error event** from the **Event type** options. + + [Read more about actors in our docs](https://xstate.js.org/docs/about/concepts.html#actor-model)`,Descriptions:`You can add descriptions to state and event nodes to describe their purpose and share related notes with your team. Descriptions support markdown formatting, including links and images. + + The machine object will include your descriptions in the state or event's \`description\` when you export your statecharts to JSON. + + ![Video player state machine containing closed and opened states. On the Play event, the Closed state transitions to the Opened state. The Opened state invokes a startVideo actor and has a description of \u201CThe video player should be in full-screen mode.\u201D The Opened state contains Playing and Paused states, which are transitioned between using the Pause and Play events. There\u2019s a Stop event from the Opened state that transitions to the final state of Stopped. There\u2019s a delayed transition from the Stopped state back to the Closed state after 5 seconds.](descriptions/descriptions-2022-10-24-small.png) + + [View this machine in the Stately Studio](https://stately.ai/registry/editor/e13bef2b-bb13-4465-96ac-0bc25340688e?machineId=574ede8a-a328-40fe-a4f9-c80fffb2c30a). + + In the video player above, the text \u201CThe video player should be in full-screen mode\u201D is a description of the *Opened* event. + + [Watch the \u2018Using descriptions\u2019 video (1m 34s)](https://www.youtube.com/watch?v=qflVEMsCrEE). + + ### How to add a description to a state + + 1. Select the state. + 2. Open the **State details** panel from the right tool menu. + 3. Write your state\u2019s description in the **Description** text area. + + ### How to add a description to an event + + 1. Select the event. + 2. Open the **Transition details** panel from the right tool menu. + 3. Write your event\u2019s description in the **Description** text area. + + [Find out more about descriptions from our office hours](https://www.youtube.com/watch?v=pLU4IOiWW0U&t=142s)`},Zcr=Qt(H1.div,{shouldForwardProp:n=>vD(n)||n==="children"}),Jcr=({isOpen:n,onClose:r,openKeyboardShortcutsModal:c})=>{const{getColorModeValue:u}=ei(),[d,p]=U.exports.useState();return z(Zcr,{layout:!0,transition:{type:"tween",duration:"0.2",delay:"0.1",ease:n?"easeOut":"easeIn"},style:{position:n?"relative":"absolute",left:n?0:"100%"},h:"full",w:"22.5rem",children:We(Tn,{h:"full",bg:u("white","gray.900"),borderRightWidth:"1px",borderLeftWidth:"1px",borderColor:u("gray.100","gray.700"),display:"grid",gridTemplateRows:"auto 1fr auto",children:[We(Tn,{as:"header",paddingInline:"3",paddingBlock:"1",borderBottomColor:u("gray.100","gray.700"),borderBottomWidth:"1px",alignItems:"center",display:"flex",justifyContent:"space-between",children:[z(Fi,{as:"h1",color:u("","white"),fontWeight:"600",fontSize:"sm",sx:{"&":{fontVariationSettings:'"wght" 600'}},children:"Help"}),z(uW,{onClick:r})]}),z(Tn,{overflowY:"auto",children:We(Tn,{display:"flex",flexDirection:"column",gap:"4",flex:"1",overflowY:"auto",paddingBlock:"2",fontSize:"sm",sx:{"& h1, & h2, & h3, & strong":{fontVariationSettings:"'wght' 600"},"& a":{color:"blue.300",_hover:{textDecoration:"underline"}},"& li":{marginLeft:"4"}},children:[z(vUt,{paddingInline:"5",children:"Stately Studio tutorials"}),z(Tn,{paddingInline:"5",color:u("","gray.400"),children:z(lPt,{children:"The Stately Studio supports everything you need to build state machines and statecharts visually. We hope you find the following tutorials help you learn more about the statecharts concepts and using the Stately Studio. If you have further questions or want to discuss modeling with other statecharts fans, [join our Discord community](https://discord.gg/xstate) or [chat with us live in our next office hours](https://youtube.com/c/statelyai)."})}),z(Rle,{onChange:m=>{p(m)},index:d,allowMultiple:!0,paddingInline:"0",children:Object.entries(Qcr).map(([m,x],E)=>We(CMe,{borderBottom:"none",borderColor:u("gray.100","gray.700"),children:[z(MS,{as:"h3",children:We(kMe,{bg:u("white","gray.800"),_hover:{bg:u("gray.50","gray.700")},fontWeight:"600",paddingInline:"3",sx:{"&":{fontVariationSettings:'"wght" 600'}},children:[z(Tn,{flex:"1",textAlign:"left",children:m}),z(cNt,{})]})}),z(uNt,{paddingInline:"5",pb:4,children:z(lPt,{children:x})})]},E))})]})}),z(Tn,{as:"footer",paddingInline:"3",paddingBlock:"2",justifyContent:"flex-start",borderTopWidth:"1px",borderTopColor:u("gray.100","gray.700"),fontSize:"sm",children:We(Ule,{children:[z(Cae,{children:z(Uc,{paddingInline:"0",variant:"light",onClick:c,width:"full",justifyContent:"flex-start",fontSize:"sm",children:We(nl,{alignItems:"center",children:[z(cVn,{}),z(Fi,{as:"span",children:"Keyboard Shortcuts"})]})})}),z(Cae,{children:z(fq,{href:"https://github.com/statelyai/studio-issues/issues/new",target:"_blank",height:"40px",display:"flex",children:We(nl,{alignItems:"center",children:[z(xVn,{}),z(Fi,{as:"span",children:"Report an issue"})]})})}),z(Cae,{children:z(fq,{href:"https://statelyai.canny.io/editor",target:"_blank",height:"40px",display:"flex",children:We(nl,{alignItems:"center",children:[z(A$t,{}),z(Fi,{as:"span",children:"Give feedback"})]})})})]})})]})})},eur=()=>{const n=Zc(),{getColorModeValue:r}=ei(),{canUndo:c,canRedo:u}=ya(({undoStack:d})=>({canUndo:d.canUndo(),canRedo:d.canRedo()}),Xo);return We(_w,{isAttached:!0,children:[z(Uc,{variant:"gray",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),onClick:()=>{n.send({type:"undo"})},pl:"2",leftIcon:z(yVn,{height:"5",width:"5"}),textStyle:"semibold",fontSize:"sm",isDisabled:!c,children:"Undo"}),z(Uc,{variant:"gray",bg:r("gray.50","gray.800"),_hover:{bg:r("gray.100","gray.700")},onClick:()=>{n.send({type:"redo"})},px:"2",title:"Redo",textStyle:"semibold",shadow:"sm",border:"1px",borderColor:r("gray.100","gray.700"),isDisabled:!u,children:z(zce,{height:"5",width:"5"})})]})};function tur(n){U.exports.useEffect(()=>{const r=c=>{c.target===document.activeElement&&c.target.tabIndex!==-1||n(c.key)};return Il.bind(window,{type:"keydown",listener:r})})}const fPt=2,yUt=lt.createContext(null),nur=({topElement:n,userMode:r})=>{const c=Zc(),u=U.exports.useContext(r1),d=Al(u,I=>{if(I.matches("editing"))return"editing";if(I.matches("simulating"))return"simulating";throw new Error("Unknown canvas mode.")}),{getColorModeValue:p}=ei(),[m]=Nw(KGn,{services:{listenToGraphAutolayoutStatus:()=>I=>c.subscribe(N=>{if(N.autolayoutStatus==="autolayout-performed"&&(I({type:"autolayout performed"}),r==="screenshot")){const j=document.querySelector('[data-node-id="screenshot-root-id"]');j&&j.setAttribute("data-node-id","screenshot-root-ready")}}).unsubscribe},guards:{isAutolayoutNeeded:()=>c.getSnapshot().autolayoutStatus==="autolayout-needed"}}),x=vfe(),E=bN(I=>I.context.viewBox),k=B9e(),T=B9e(),P=B9e();return z(Tn,{isolation:"isolate",display:"flex",height:"100%",overflow:"hidden",children:We(yUt.Provider,{value:P,children:[z(PYn,{topElement:n}),We(WGn,{padding:fPt,zIndex:-1,minHeight:0,flexGrow:1,children:[z(Ucr,{layoutInitialized:!!m.done}),z("div",{"data-portalid":"selection-popover"})]}),z(nl,{position:"absolute",right:2,bottom:2,padding:fPt,width:"full",justifyContent:"flex-end",pointerEvents:"none",children:We(nl,{spacing:5,pointerEvents:"auto",children:[!Rzn(E).containsRect(c.snapshot.root.currentRects.family)&&z(Uc,{onClick:()=>{x.send({type:"fit_to_content"})},children:"Back to content"}),d==="editing"&&hHn("SHOW_AUTOLAYOUT_BUTTON")&&z(Uc,{variant:"gray",bg:p("gray.50","gray.800"),_hover:{bg:p("gray.100","gray.700")},shadow:"sm",border:"1px",borderColor:p("gray.100","gray.700"),fontSize:"sm",textStyle:"semibold",onClick:()=>{c.send({type:"autolayout"})},"aria-label":"Layout",children:"Autolayout"}),We(nl,{spacing:0,children:[d==="editing"&&z(eur,{}),d==="simulating"&&z(Uc,{variant:"gray",textStyle:"semibold",bg:p("gray.50","gray.800"),_hover:{bg:p("gray.100","gray.700")},pl:"3",leftIcon:z(vVn,{color:p("gray.800","gray.200")}),onClick:()=>u.send({type:"SIMULATION.RESET"}),children:"Reset"})]}),z(zGn,{}),!yr.enabled&&r!=="screenshot"&&z(Uc,{fontSize:"2xl",rounded:"full",as:Uc,color:p("white","white"),bg:p("primary.500","primary.500"),_hover:{bg:p("primary.600","primary.600")},_active:{bg:p("primary.600","primary.600")},padding:"0",onClick:()=>{k.onToggle()},children:z(zDe,{shadow:"sm"})})]})}),z(psr,{},k.isOpen.toString()+P.isOpen.toString()),!yr.enabled&&r!=="screenshot"&&We(Si,{children:[z(Jcr,{isOpen:k.isOpen,onClose:k.onClose,openKeyboardShortcutsModal:T.onOpen}),z(SYn,{onClose:T.onClose,isOpen:T.isOpen}),z(xYn,{onClose:P.onClose,isOpen:P.isOpen})]})]})})};function rur({selectedMachine:n,canvasOpts:r,children:c,requiresAutolayout:u=!1,onDefinitionRelatedChange:d,onNodeSelected:p,userMode:m,projectName:x,ownerName:E}){const k=V$t(PFt),{definition:T,name:P,id:I}=n;U.exports.useEffect(()=>{var F,X,te,Z;switch(m){case"web":(F=so())==null||F.track("Opening Editor From Web");break;case"vscode":(X=so())==null||X.track("Opening Editor From VS Code");break;case"web-playground":(te=so())==null||te.track("Opening Editor From Web Playground");break;case"screenshot":(Z=so())==null||Z.track("Creating Screenshot");break}},[m]);const O=U.exports.useRef(null);iur();const N=U.exports.useMemo(()=>XGn(T,P,u,()=>{var F;return(F=j.current)!=null?F:QDe},m,I),[T]),j=U.exports.useRef(Par(N)),$=yW(()=>OHn({graphActor:N,ref:O,canvasOpts:r,initialViewBox:j.current?new DD(j.current):void 0})),L=Al($,F=>F.children.canvasInteractions);U.exports.useEffect(()=>L.subscribe(F=>{j.current=F.context.viewBox}).unsubscribe,[L]),U.exports.useEffect(()=>{$.send({type:"GRAPH_ACTOR_UPDATED",actor:N})},[N,$]),tur(F=>{(F==="Delete"||F==="Backspace")&&$.send("KEY.DELETE")});const B=lt.useRef(null);return U.exports.useEffect(()=>N.subscribe(X=>{X.effects.forEach(te=>{switch(te.type){case"reportChange":{d==null||d(X,I);break}case"node.selected":{p==null||p(te.nodeId);break}case"fitToContent":{L.send({type:"fit_to_content"});break}case"node.focus":{B.current=k.focus("node",te.nodeId);break}case"edge.focus":{if(te.field==="guard"){B.current=k.focus("edge_guard",te.edgeId);break}B.current=k.focus("edge_label",te.edgeId);break}}})}).unsubscribe,[k,N,d,L,p,I]),U.exports.useEffect(()=>{if(B.current){const F=B.current;B.current=null,F()}}),z(CW.Provider,{value:{userMode:m,ownerName:E,projectName:x,selectedMachine:n},children:z(r1.Provider,{value:$,children:z(DFt.Provider,{value:N,children:z(mN.Provider,{value:O,children:z(TGn,{value:k,children:c})})})})})}function iur(){lW(()=>{const n=u=>{const d=u.style.getPropertyValue("overscroll-behavior"),p=u.style.getPropertyPriority("overscroll-behavior");return u.style.setProperty("overscroll-behavior","none","important"),()=>{d?u.style.setProperty("overscroll-behavior",d,p):u.style.removeProperty("overscroll-behavior")}},r=n(document.body),c=n(document.documentElement);return()=>{r(),c()}},[])}const our=()=>{const n=U.exports.useContext(r1),r=Al(n,u=>u.context.leftPanel),{getColorModeValue:c}=ei();return z(Ev,{onClick:()=>{var u;n.send({type:"leftPanel.toggle"}),(u=so())==null||u.track("Toggle left panel")},rounded:"none",bg:r?c("gray.100","gray.800"):c("transparent","transparent"),_hover:{bg:r?c("gray.200","gray.700"):c("gray.50","gray.800")},"aria-label":"Toggle sidebar",title:"Toggle sidebar",size:"lg",borderRight:"1px solid",borderColor:c("gray.200","gray.700"),color:c("gray.800","gray.50"),h:"full",children:r?z(hVn,{}):z(pVn,{})})},dPt=({name:n,onClick:r,active:c})=>{const{getColorModeValue:u}=ei();return We(Uc,{h:"full",rounded:"none",variant:"light",onClick:r,color:c?u("gray.800","white"):u("gray.500","gray.300"),children:[z(Fi,{px:1,textStyle:c?"bold":void 0,children:n}),z(Tn,{as:"span",display:"block",position:"absolute",bottom:"0",left:"2",right:"2",h:1,borderRadius:"md",bg:c?u("primary.500","white"):"transparent",justifySelf:"flex-end"})]})},sur=({viewOnly:n=!0,small:r})=>{const c=U.exports.useContext(r1),[u]=oFn(c);return We(_w,{spacing:0,h:"full",justifyContent:"center",size:r?"sm":"md",children:[z(dPt,{name:n?"View":"Edit",onClick:()=>c.send({type:"mode.edit"}),active:u.matches("editing")}),z(dPt,{name:"Simulate",onClick:()=>c.send({type:"mode.simulate"}),active:u.matches("simulating")})]})},aur=()=>{const{getColorModeValue:n}=ei();return z(Vc,{position:"absolute",zIndex:2,top:"3",w:"100vw",h:"10",justifyContent:"center",pointerEvents:"none",children:We(nl,{background:n("white","gray.800"),border:"1px solid",borderColor:n("gray.100","whiteAlpha.200"),rounded:"md",spacing:"0",pointerEvents:"auto",children:[z(our,{}),z(Tn,{px:"2",h:"full",children:z(sur,{small:!0,viewOnly:!1})})]})})},cur={query:Object.fromEntries(new URLSearchParams(window.location.search)),push:()=>{throw new Error("`router.push` used in VS Code extension is a mistake")},replace:()=>{throw new Error("`router.replace` used in VS Code extension is a mistake")},get pathname(){throw new Error("reading `router.pathname` in VS Code extension is likely a mistake")},get asPath(){throw new Error("reading `router.asPath` in VS Code extension is likely a mistake")},isReady:!0},uur=cur;function lur(){const[n]=U.exports.useState(AHn),[r,c]=U.exports.useState(),[u,d]=U.exports.useState(()=>{const{config:x,layout:E,implementations:k}=yr.params;return W9t(x!=null?x:{},E,k)});U.exports.useEffect(()=>Il.bind(window,{type:"message",listener:x=>{try{if(x.data.type==="DISPLAY_ERROR"){const E=x.data;c(E.error)}if(x.data.type==="UPDATE_CONFIG"){c(void 0);const E=x.data,k=E.config,T=qDe.parse(E.layoutString),P=W9t(k,T,E.implementations);d(P)}}catch(E){console.error(E),c(Qzn(E)?E.message:"Unknown error")}}}),[]);const p=V$t(()=>{const{themeKind:x}=yr.params;return typeof x!="string"||!["dark","light"].includes(x)?i7e:{...i7e,config:{...i7e.config,initialColorMode:x}}}),m={definition:u.digraph,id:"vscode-extension",name:u.digraph.rootNode.data.key,status:"Snapshot",projectId:"vscode-extension",forkParentId:null,createdAt:new Date,updatedAt:new Date,hasParallelStatesFeature:!1,hasFinalStatesFeature:!1,hasHistoryStatesFeature:!1,hasInvokeFeature:!1,hasEntryActionsFeature:!1,hasExitActionsFeature:!1,hasGuardsFeature:!1,numberOfStates:3,lastEditedById:"vscode-extension"};return We(V$n,{theme:p,children:[z(Qq,{styles:[{"@font-face":{fontFamily:"Inter",fontWeight:"100 1000",fontDisplay:"swap",fontStyle:"normal",fontNamedInstance:"Regular",src:"url('Inter-roman.var.woff2') format('woff2')"}},{"@font-face":{fontFamily:"Inter",fontWeight:"100 1000",fontDisplay:"swap",fontStyle:"italic",fontNamedInstance:"Italic",src:"url('Inter-italic.var.woff2') format('woff2')"}}]}),z(B$t.Provider,{value:uur,children:z(rur,{onNodeSelected:yr.selectNode,requiresAutolayout:u.requiresAutolayout,canvasOpts:{leftPanelDefaultOpen:n},userMode:"vscode",selectedMachine:m,children:We(Tn,{width:"full",height:"100vh",children:[z(Tn,{pos:"absolute",zIndex:100,w:"full",my:"2",pointerEvents:r?"auto":"none",children:z(oNt,{in:r!==void 0,children:We(TMe,{status:"error",variant:"solid",children:[z(AMe,{}),r]})})}),z(aur,{}),z(nur,{})]})})})]})}P_t(document.getElementById("root")).render(z(lur,{})); diff --git a/apps/extension/client/bundled-editor/index.html b/apps/extension/client/bundled-editor/index.html index 72065192..137c3b32 100644 --- a/apps/extension/client/bundled-editor/index.html +++ b/apps/extension/client/bundled-editor/index.html @@ -4,7 +4,7 @@ Stately Studio - +
diff --git a/packages/machine-extractor/src/MachineExtractResult.ts b/packages/machine-extractor/src/MachineExtractResult.ts index 4da1659d..a2bb80e8 100644 --- a/packages/machine-extractor/src/MachineExtractResult.ts +++ b/packages/machine-extractor/src/MachineExtractResult.ts @@ -73,7 +73,11 @@ export type MachineEdit = | { type: 'remove_state'; path: string[] } | { type: 'rename_state'; path: string[]; name: string } | { type: 'reparent_state'; path: string[]; newParentPath: string[] } - | { type: 'set_initial_state'; path: string[]; initialState: string } + | { + type: 'set_initial_state'; + path: string[]; + initialState?: string | undefined; + } | { type: 'set_state_id'; path: string[]; id?: string } | { type: 'set_state_type'; @@ -947,9 +951,6 @@ export class MachineExtractResult { if (edit.path.length === 0) { throw new Error(`Root state can't be moved.`); } - if (edit.newParentPath.length === 0) { - throw new Error(`State can't be moved to the root.`); - } if ( arePathsEqual( edit.path, @@ -1127,7 +1128,16 @@ export class MachineExtractResult { edit.path, ); - setProperty(stateObj, 'initial', b.stringLiteral(edit.initialState)); + if (typeof edit.initialState === 'string') { + setProperty( + stateObj, + 'initial', + b.stringLiteral(edit.initialState), + ); + } else { + removeProperty(stateObj, 'initial'); + } + break; } case 'set_state_id': { @@ -2388,8 +2398,14 @@ function getBestTargetDescriptor( return `.${targetPath.slice(sourcePath.length).join('.')}`; } + const isTargetingAncestor = arePathsEqual( + sourcePath.slice(0, targetPath.length), + targetPath, + ); + if ( - // this transition targets a state within the renamed sibling + !isTargetingAncestor && + // this transition might target a state within the renamed sibling // we can't just update the segment to the empty string as that would result in targeting own descendant targetPath[0] !== '' && arePathsEqual( diff --git a/packages/machine-extractor/src/__tests__/modifications/rename_state.test.ts b/packages/machine-extractor/src/__tests__/modifications/rename_state.test.ts index a4f6672d..a0bfe01b 100644 --- a/packages/machine-extractor/src/__tests__/modifications/rename_state.test.ts +++ b/packages/machine-extractor/src/__tests__/modifications/rename_state.test.ts @@ -1225,7 +1225,6 @@ describe('rename_state', () => { }) `); - debugger; expect( modifiableMachine.modify([ { diff --git a/packages/machine-extractor/src/__tests__/modifications/reparent_state.test.ts b/packages/machine-extractor/src/__tests__/modifications/reparent_state.test.ts index 1d7b1f35..de762586 100644 --- a/packages/machine-extractor/src/__tests__/modifications/reparent_state.test.ts +++ b/packages/machine-extractor/src/__tests__/modifications/reparent_state.test.ts @@ -4,10 +4,6 @@ import { extractMachinesFromFile } from '../../extractMachinesFromFile'; const getModifiableMachine = (code: string) => extractMachinesFromFile(outdent.string(code))!.machines[0]!; -// TODO: change *some* targets within the moved state -// TODO: change some targets targeting the moved state (or its decendants) -// TODO: remove initial if it got moved? - describe('reparent_state', () => { it('should be possible to move a state to a sibling of the parent', () => { const modifiableMachine = getModifiableMachine(` @@ -690,4 +686,74 @@ describe('reparent_state', () => { }" `); }); + + it(`should be possible to move a state to the root`, () => { + const modifiableMachine = getModifiableMachine(` + createMachine({ + states: { + a: { + states: { + a1: {}, + } + }, + } + }) + `); + + expect( + modifiableMachine.modify([ + { + type: 'reparent_state', + path: ['a', 'a1'], + newParentPath: [], + }, + ]).configEdit.newText, + ).toMatchInlineSnapshot(` + "{ + states: { + a: {}, + a1: {} + } + }" + `); + }); + + it(`should update the target descriptor correctly when moving a state to lie within the target`, () => { + const modifiableMachine = getModifiableMachine(` + createMachine({ + states: { + a: { + on: { + FOO: 'b' + } + }, + b: {} + } + }) + `); + + expect( + modifiableMachine.modify([ + { + type: 'reparent_state', + path: ['a'], + newParentPath: ['b'], + }, + ]).configEdit.newText, + ).toMatchInlineSnapshot(` + "{ + states: { + b: { + states: { + a: { + on: { + FOO: "#(machine).b" + } + } + } + } + } + }" + `); + }); }); diff --git a/packages/machine-extractor/src/__tests__/modifications/set_initial_state.test.ts b/packages/machine-extractor/src/__tests__/modifications/set_initial_state.test.ts index f2e62d92..a33653be 100644 --- a/packages/machine-extractor/src/__tests__/modifications/set_initial_state.test.ts +++ b/packages/machine-extractor/src/__tests__/modifications/set_initial_state.test.ts @@ -104,4 +104,70 @@ describe('set_initial_state', () => { }" `); }); + + it('should be able to remove an initial state from a root', () => { + const modifiableMachine = getModifiableMachine(` + createMachine({ + initial: 'foo', + states: { + foo: {}, + bar: {}, + }, + }) + `); + + expect( + modifiableMachine.modify([ + { + type: 'set_initial_state', + path: [], + initialState: undefined, + }, + ]).configEdit.newText, + ).toMatchInlineSnapshot(` + "{ + states: { + foo: {}, + bar: {}, + } + }" + `); + }); + + it('should be able to remove an initial state from a nested state', () => { + const modifiableMachine = getModifiableMachine(` + createMachine({ + initial: 'foo', + states: { + foo: { + initial: 'bar', + states: { + bar: {}, + } + }, + }, + }) + `); + + expect( + modifiableMachine.modify([ + { + type: 'set_initial_state', + path: ['foo'], + initialState: undefined, + }, + ]).configEdit.newText, + ).toMatchInlineSnapshot(` + "{ + initial: 'foo', + states: { + foo: { + states: { + bar: {}, + } + }, + }, + }" + `); + }); });