Compare commits

...
2 Commits
Author SHA1 Message Date
Home Assistant Version Control 9cf15e8480 3 files 2026-09-02 17:25:54 +00:00
Home Assistant Version Control 96984f8a7c 20 files 2026-09-02 17:25:42 +00:00
23 changed files with 601 additions and 468 deletions

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@
},
{
"id": "6ad5d0d7a4c9435a85476e49d22d4df4",
"url": "/hacsfiles/versatile-thermostat-ui-card/versatile-thermostat-ui-card.js?hacstag=714354847320",
"url": "/hacsfiles/versatile-thermostat-ui-card/versatile-thermostat-ui-card.js?hacstag=714354847330",
"type": "module"
},
{
+1 -1
View File
@@ -1,7 +1,7 @@
{
"domain": "cafe",
"name": "C.A.F.E.",
"version": "0.7.0",
"version": "0.9.0",
"codeowners": [],
"config_flow": true,
"dependencies": ["frontend", "http"],
@@ -1,4 +1,4 @@
var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Zf=(n,i,s)=>pCn(n,typeof i!="symbol"?i+"":i,s);function gCn(n,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const d in c)if(d!=="default"&&!(d in n)){const g=Object.getOwnPropertyDescriptor(c,d);g&&Object.defineProperty(n,d,g.get?g:{enumerable:!0,get:()=>c[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const g of d)if(g.type==="childList")for(const b of g.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&c(b)}).observe(document,{childList:!0,subtree:!0});function s(d){const g={};return d.integrity&&(g.integrity=d.integrity),d.referrerPolicy&&(g.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?g.credentials="include":d.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function c(d){if(d.ep)return;d.ep=!0;const g=s(d);fetch(d.href,g)}})();var C5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Y$t={exports:{}},Nse={},J$t={exports:{}},Os={};/**
var wCn=Object.defineProperty;var yCn=(n,i,s)=>i in n?wCn(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Zf=(n,i,s)=>yCn(n,typeof i!="symbol"?i+"":i,s);function vCn(n,i){for(var s=0;s<i.length;s++){const u=i[s];if(typeof u!="string"&&!Array.isArray(u)){for(const d in u)if(d!=="default"&&!(d in n)){const g=Object.getOwnPropertyDescriptor(u,d);g&&Object.defineProperty(n,d,g.get?g:{enumerable:!0,get:()=>u[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const g of d)if(g.type==="childList")for(const b of g.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&u(b)}).observe(document,{childList:!0,subtree:!0});function s(d){const g={};return d.integrity&&(g.integrity=d.integrity),d.referrerPolicy&&(g.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?g.credentials="include":d.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function u(d){if(d.ep)return;d.ep=!0;const g=s(d);fetch(d.href,g)}})();var C5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Q$t={exports:{}},Nse={},eBt={exports:{}},Os={};/**
* @license React
* react.production.min.js
*
@@ -6,7 +6,7 @@ var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,con
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gz=Symbol.for("react.element"),bCn=Symbol.for("react.portal"),mCn=Symbol.for("react.fragment"),wCn=Symbol.for("react.strict_mode"),yCn=Symbol.for("react.profiler"),vCn=Symbol.for("react.provider"),ECn=Symbol.for("react.context"),SCn=Symbol.for("react.forward_ref"),TCn=Symbol.for("react.suspense"),ACn=Symbol.for("react.memo"),_Cn=Symbol.for("react.lazy"),KLt=Symbol.iterator;function xCn(n){return n===null||typeof n!="object"?null:(n=KLt&&n[KLt]||n["@@iterator"],typeof n=="function"?n:null)}var X$t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z$t=Object.assign,Q$t={};function DM(n,i,s){this.props=n,this.context=i,this.refs=Q$t,this.updater=s||X$t}DM.prototype.isReactComponent={};DM.prototype.setState=function(n,i){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,i,"setState")};DM.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function eBt(){}eBt.prototype=DM.prototype;function xLe(n,i,s){this.props=n,this.context=i,this.refs=Q$t,this.updater=s||X$t}var kLe=xLe.prototype=new eBt;kLe.constructor=xLe;Z$t(kLe,DM.prototype);kLe.isPureReactComponent=!0;var YLt=Array.isArray,tBt=Object.prototype.hasOwnProperty,NLe={current:null},nBt={key:!0,ref:!0,__self:!0,__source:!0};function rBt(n,i,s){var c,d={},g=null,b=null;if(i!=null)for(c in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)tBt.call(i,c)&&!nBt.hasOwnProperty(c)&&(d[c]=i[c]);var w=arguments.length-2;if(w===1)d.children=s;else if(1<w){for(var E=Array(w),S=0;S<w;S++)E[S]=arguments[S+2];d.children=E}if(n&&n.defaultProps)for(c in w=n.defaultProps,w)d[c]===void 0&&(d[c]=w[c]);return{$$typeof:gz,type:n,key:g,ref:b,props:d,_owner:NLe.current}}function kCn(n,i){return{$$typeof:gz,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function CLe(n){return typeof n=="object"&&n!==null&&n.$$typeof===gz}function NCn(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(s){return i[s]})}var JLt=/\/+/g;function aCe(n,i){return typeof n=="object"&&n!==null&&n.key!=null?NCn(""+n.key):i.toString(36)}function Fie(n,i,s,c,d){var g=typeof n;(g==="undefined"||g==="boolean")&&(n=null);var b=!1;if(n===null)b=!0;else switch(g){case"string":case"number":b=!0;break;case"object":switch(n.$$typeof){case gz:case bCn:b=!0}}if(b)return b=n,d=d(b),n=c===""?"."+aCe(b,0):c,YLt(d)?(s="",n!=null&&(s=n.replace(JLt,"$&/")+"/"),Fie(d,i,s,"",function(S){return S})):d!=null&&(CLe(d)&&(d=kCn(d,s+(!d.key||b&&b.key===d.key?"":(""+d.key).replace(JLt,"$&/")+"/")+n)),i.push(d)),1;if(b=0,c=c===""?".":c+":",YLt(n))for(var w=0;w<n.length;w++){g=n[w];var E=c+aCe(g,w);b+=Fie(g,i,s,E,d)}else if(E=xCn(n),typeof E=="function")for(n=E.call(n),w=0;!(g=n.next()).done;)g=g.value,E=c+aCe(g,w++),b+=Fie(g,i,s,E,d);else if(g==="object")throw i=String(n),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return b}function Wre(n,i,s){if(n==null)return n;var c=[],d=0;return Fie(n,c,"","",function(g){return i.call(s,g,d++)}),c}function CCn(n){if(n._status===-1){var i=n._result;i=i(),i.then(function(s){(n._status===0||n._status===-1)&&(n._status=1,n._result=s)},function(s){(n._status===0||n._status===-1)&&(n._status=2,n._result=s)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)return n._result.default;throw n._result}var qg={current:null},$ie={transition:null},ICn={ReactCurrentDispatcher:qg,ReactCurrentBatchConfig:$ie,ReactCurrentOwner:NLe};function iBt(){throw Error("act(...) is not supported in production builds of React.")}Os.Children={map:Wre,forEach:function(n,i,s){Wre(n,function(){i.apply(this,arguments)},s)},count:function(n){var i=0;return Wre(n,function(){i++}),i},toArray:function(n){return Wre(n,function(i){return i})||[]},only:function(n){if(!CLe(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Os.Component=DM;Os.Fragment=mCn;Os.Profiler=yCn;Os.PureComponent=xLe;Os.StrictMode=wCn;Os.Suspense=TCn;Os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ICn;Os.act=iBt;Os.cloneElement=function(n,i,s){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var c=Z$t({},n.props),d=n.key,g=n.ref,b=n._owner;if(i!=null){if(i.ref!==void 0&&(g=i.ref,b=NLe.current),i.key!==void 0&&(d=""+i.key),n.type&&n.type.defaultProps)var w=n.type.defaultProps;for(E in i)tBt.call(i,E)&&!nBt.hasOwnProperty(E)&&(c[E]=i[E]===void 0&&w!==void 0?w[E]:i[E])}var E=arguments.length-2;if(E===1)c.children=s;else if(1<E){w=Array(E);for(var S=0;S<E;S++)w[S]=arguments[S+2];c.children=w}return{$$typeof:gz,type:n.type,key:d,ref:g,props:c,_owner:b}};Os.createCoLine truncated
*/var bz=Symbol.for("react.element"),ECn=Symbol.for("react.portal"),SCn=Symbol.for("react.fragment"),TCn=Symbol.for("react.strict_mode"),ACn=Symbol.for("react.profiler"),_Cn=Symbol.for("react.provider"),xCn=Symbol.for("react.context"),kCn=Symbol.for("react.forward_ref"),NCn=Symbol.for("react.suspense"),CCn=Symbol.for("react.memo"),ICn=Symbol.for("react.lazy"),YDt=Symbol.iterator;function RCn(n){return n===null||typeof n!="object"?null:(n=YDt&&n[YDt]||n["@@iterator"],typeof n=="function"?n:null)}var tBt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nBt=Object.assign,rBt={};function LM(n,i,s){this.props=n,this.context=i,this.refs=rBt,this.updater=s||tBt}LM.prototype.isReactComponent={};LM.prototype.setState=function(n,i){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,i,"setState")};LM.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function iBt(){}iBt.prototype=LM.prototype;function xDe(n,i,s){this.props=n,this.context=i,this.refs=rBt,this.updater=s||tBt}var kDe=xDe.prototype=new iBt;kDe.constructor=xDe;nBt(kDe,LM.prototype);kDe.isPureReactComponent=!0;var JDt=Array.isArray,oBt=Object.prototype.hasOwnProperty,NDe={current:null},sBt={key:!0,ref:!0,__self:!0,__source:!0};function aBt(n,i,s){var u,d={},g=null,b=null;if(i!=null)for(u in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)oBt.call(i,u)&&!sBt.hasOwnProperty(u)&&(d[u]=i[u]);var w=arguments.length-2;if(w===1)d.children=s;else if(1<w){for(var E=Array(w),S=0;S<w;S++)E[S]=arguments[S+2];d.children=E}if(n&&n.defaultProps)for(u in w=n.defaultProps,w)d[u]===void 0&&(d[u]=w[u]);return{$$typeof:bz,type:n,key:g,ref:b,props:d,_owner:NDe.current}}function OCn(n,i){return{$$typeof:bz,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function CDe(n){return typeof n=="object"&&n!==null&&n.$$typeof===bz}function LCn(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(s){return i[s]})}var XDt=/\/+/g;function aCe(n,i){return typeof n=="object"&&n!==null&&n.key!=null?LCn(""+n.key):i.toString(36)}function $ie(n,i,s,u,d){var g=typeof n;(g==="undefined"||g==="boolean")&&(n=null);var b=!1;if(n===null)b=!0;else switch(g){case"string":case"number":b=!0;break;case"object":switch(n.$$typeof){case bz:case ECn:b=!0}}if(b)return b=n,d=d(b),n=u===""?"."+aCe(b,0):u,JDt(d)?(s="",n!=null&&(s=n.replace(XDt,"$&/")+"/"),$ie(d,i,s,"",function(S){return S})):d!=null&&(CDe(d)&&(d=OCn(d,s+(!d.key||b&&b.key===d.key?"":(""+d.key).replace(XDt,"$&/")+"/")+n)),i.push(d)),1;if(b=0,u=u===""?".":u+":",JDt(n))for(var w=0;w<n.length;w++){g=n[w];var E=u+aCe(g,w);b+=$ie(g,i,s,E,d)}else if(E=RCn(n),typeof E=="function")for(n=E.call(n),w=0;!(g=n.next()).done;)g=g.value,E=u+aCe(g,w++),b+=$ie(g,i,s,E,d);else if(g==="object")throw i=String(n),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return b}function Kre(n,i,s){if(n==null)return n;var u=[],d=0;return $ie(n,u,"","",function(g){return i.call(s,g,d++)}),u}function DCn(n){if(n._status===-1){var i=n._result;i=i(),i.then(function(s){(n._status===0||n._status===-1)&&(n._status=1,n._result=s)},function(s){(n._status===0||n._status===-1)&&(n._status=2,n._result=s)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)return n._result.default;throw n._result}var qg={current:null},Bie={transition:null},MCn={ReactCurrentDispatcher:qg,ReactCurrentBatchConfig:Bie,ReactCurrentOwner:NDe};function uBt(){throw Error("act(...) is not supported in production builds of React.")}Os.Children={map:Kre,forEach:function(n,i,s){Kre(n,function(){i.apply(this,arguments)},s)},count:function(n){var i=0;return Kre(n,function(){i++}),i},toArray:function(n){return Kre(n,function(i){return i})||[]},only:function(n){if(!CDe(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Os.Component=LM;Os.Fragment=SCn;Os.Profiler=ACn;Os.PureComponent=xDe;Os.StrictMode=TCn;Os.Suspense=NCn;Os.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MCn;Os.act=uBt;Os.cloneElement=function(n,i,s){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var u=nBt({},n.props),d=n.key,g=n.ref,b=n._owner;if(i!=null){if(i.ref!==void 0&&(g=i.ref,b=NDe.current),i.key!==void 0&&(d=""+i.key),n.type&&n.type.defaultProps)var w=n.type.defaultProps;for(E in i)oBt.call(i,E)&&!sBt.hasOwnProperty(E)&&(u[E]=i[E]===void 0&&w!==void 0?w[E]:i[E])}var E=arguments.length-2;if(E===1)u.children=s;else if(1<E){w=Array(E);for(var S=0;S<E;S++)w[S]=arguments[S+2];u.children=w}return{$$typeof:bz,type:n.type,key:d,ref:g,props:u,_owner:b}};Os.createCoLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
@@ -14,7 +14,7 @@ var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,con
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var RCn=H,OCn=Symbol.for("react.element"),DCn=Symbol.for("react.fragment"),LCn=Object.prototype.hasOwnProperty,MCn=RCn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,PCn={key:!0,ref:!0,__self:!0,__source:!0};function oBt(n,i,s){var c,d={},g=null,b=null;s!==void 0&&(g=""+s),i.key!==void 0&&(g=""+i.key),i.ref!==void 0&&(b=i.ref);for(c in i)LCn.call(i,c)&&!PCn.hasOwnProperty(c)&&(d[c]=i[c]);if(n&&n.defaultProps)for(c in i=n.defaultProps,i)d[c]===void 0&&(d[c]=i[c]);return{$$typeof:OCn,type:n,key:g,ref:b,props:d,_owner:MCn.current}}Nse.Fragment=DCn;Nse.jsx=oBt;Nse.jsxs=oBt;Y$t.exports=Nse;var I=Y$t.exports,doe={},sBt={exports:{}},Gm={},aBt={exports:{}},uBt={};/**
*/var PCn=H,jCn=Symbol.for("react.element"),FCn=Symbol.for("react.fragment"),$Cn=Object.prototype.hasOwnProperty,BCn=PCn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,UCn={key:!0,ref:!0,__self:!0,__source:!0};function cBt(n,i,s){var u,d={},g=null,b=null;s!==void 0&&(g=""+s),i.key!==void 0&&(g=""+i.key),i.ref!==void 0&&(b=i.ref);for(u in i)$Cn.call(i,u)&&!UCn.hasOwnProperty(u)&&(d[u]=i[u]);if(n&&n.defaultProps)for(u in i=n.defaultProps,i)d[u]===void 0&&(d[u]=i[u]);return{$$typeof:jCn,type:n,key:g,ref:b,props:d,_owner:BCn.current}}Nse.Fragment=FCn;Nse.jsx=cBt;Nse.jsxs=cBt;Q$t.exports=Nse;var I=Q$t.exports,foe={},lBt={exports:{}},Gm={},dBt={exports:{}},fBt={};/**
* @license React
* scheduler.production.min.js
*
@@ -22,7 +22,7 @@ var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,con
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(n){function i(Ae,xe){var We=Ae.length;Ae.push(xe);e:for(;0<We;){var dt=We-1>>>1,Ue=Ae[dt];if(0<d(Ue,xe))Ae[dt]=xe,Ae[We]=Ue,We=dt;else break e}}function s(Ae){return Ae.length===0?null:Ae[0]}function c(Ae){if(Ae.length===0)return null;var xe=Ae[0],We=Ae.pop();if(We!==xe){Ae[0]=We;e:for(var dt=0,Ue=Ae.length,bt=Ue>>>1;dt<bt;){var kt=2*(dt+1)-1,ht=Ae[kt],Xt=kt+1,vt=Ae[Xt];if(0>d(ht,We))Xt<Ue&&0>d(vt,ht)?(Ae[dt]=vt,Ae[Xt]=We,dt=Xt):(Ae[dt]=ht,Ae[kt]=We,dt=kt);else if(Xt<Ue&&0>d(vt,We))Ae[dt]=vt,Ae[Xt]=We,dt=Xt;else break e}}return xe}function d(Ae,xe){var We=Ae.sortIndex-xe.sortIndex;return We!==0?We:Ae.id-xe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var b=Date,w=b.now();n.unstable_now=function(){return b.now()-w}}var E=[],S=[],x=1,A=null,C=3,R=!1,L=!1,D=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(Ae){for(var xe=s(S);xe!==null;){if(xe.callback===null)c(S);else if(xe.startTime<=Ae)c(S),xe.sortIndex=xe.expirationTime,i(E,xe);else break;xe=s(S)}}function G(Ae){if(D=!1,P(Ae),!L)if(s(E)!==null)L=!0,Se(ee);else{var xe=s(S);xe!==null&&Le(G,xe.startTime-Ae)}}function ee(Ae,xe){L=!1,D&&(D=!1,$(ie),ie=-1),R=!0;var We=C;try{for(P(xe),A=s(E);A!==null&&(!(A.expirationTime>xe)||Ae&&!le());){var dt=A.callback;if(typeof dt=="function"){A.callback=null,C=A.priorityLevel;var Ue=dt(A.expirationTime<=xe);xe=n.unstable_now(),typeof Ue=="function"?A.callback=Ue:A===s(E)&&c(E),P(xe)}else c(E);A=s(E)}if(A!==null)var bt=!0;else{var kt=s(S);kt!==null&&Le(G,kt.startTime-xe),bt=!1}return bt}finally{A=null,C=We,R=!1}}var re=!1,Q=null,ie=-1,pe=5,me=-1;function le(){return!(n.unstable_now()-me<pe)}function fe(){if(Q!==null){var Ae=n.unstable_now();me=Ae;var xe=!0;try{xe=Q(!0,Ae)}finally{xe?K():(re=!1,Q=null)}}else re=!1}var K;if(typeof j=="function")K=function(){j(fe)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Oe=he.port2;he.port1.onmessage=fe,K=function(){Oe.postMessage(null)}}else K=function(){B(fe,0)};function Se(Ae){Q=Ae,re||(re=!0,K())}function Le(Ae,xe){ie=B(function(){Ae(n.unstable_now())},xe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ae){Ae.callback=null},n.unstable_continueExecution=function(){L||R||(L=!0,Se(ee))},n.unstable_forceFrameRate=function(Ae){0>Ae||125<Ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<Ae?Math.floor(1e3/Ae):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_getFirstCallbackNode=function(){return s(E)},n.unstable_next=function(Ae){switch(C){case 1:case 2:case 3:var xe=3;break;default:xe=C}var We=C;C=xe;try{return Ae()}finally{C=We}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Ae,xe){switch(Ae){case 1:case 2:case 3:case 4:case 5:break;default:Ae=3}var We=C;C=Ae;try{return xe()}finally{C=We}},n.unstable_scheduleCallback=function(Ae,xe,We){var dt=n.unstable_now();switch(typeof We=="object"&&We!==null?(We=We.delay,We=typeof We=="number"&&0<We?dt+We:dt):We=dt,Ae){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=We+Ue,Ae={id:x++,callback:xe,priorityLevel:Ae,startTime:We,expirationTime:Ue,sortIndex:-1},We>dt?(Ae.sortIndex=We,i(S,Ae),s(E)===null&&Ae===s(S)&&(D?($(ie),ie=-1):D=!0,Le(G,We-dt))):(Ae.sortIndex=Ue,i(E,Ae),L||R||(L=!0,Se(ee))),Ae},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(Ae){var xe=C;return function(){var We=C;C=xe;try{return Ae.apply(this,arguments)}finally{C=We}}}})(uBt);aBt.exports=uBt;var jCn=aBt.exports;/**
*/(function(n){function i(Ae,xe){var We=Ae.length;Ae.push(xe);e:for(;0<We;){var dt=We-1>>>1,Ue=Ae[dt];if(0<d(Ue,xe))Ae[dt]=xe,Ae[We]=Ue,We=dt;else break e}}function s(Ae){return Ae.length===0?null:Ae[0]}function u(Ae){if(Ae.length===0)return null;var xe=Ae[0],We=Ae.pop();if(We!==xe){Ae[0]=We;e:for(var dt=0,Ue=Ae.length,bt=Ue>>>1;dt<bt;){var kt=2*(dt+1)-1,ht=Ae[kt],Xt=kt+1,vt=Ae[Xt];if(0>d(ht,We))Xt<Ue&&0>d(vt,ht)?(Ae[dt]=vt,Ae[Xt]=We,dt=Xt):(Ae[dt]=ht,Ae[kt]=We,dt=kt);else if(Xt<Ue&&0>d(vt,We))Ae[dt]=vt,Ae[Xt]=We,dt=Xt;else break e}}return xe}function d(Ae,xe){var We=Ae.sortIndex-xe.sortIndex;return We!==0?We:Ae.id-xe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var b=Date,w=b.now();n.unstable_now=function(){return b.now()-w}}var E=[],S=[],x=1,A=null,C=3,R=!1,D=!1,L=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(Ae){for(var xe=s(S);xe!==null;){if(xe.callback===null)u(S);else if(xe.startTime<=Ae)u(S),xe.sortIndex=xe.expirationTime,i(E,xe);else break;xe=s(S)}}function G(Ae){if(L=!1,P(Ae),!D)if(s(E)!==null)D=!0,Se(ee);else{var xe=s(S);xe!==null&&De(G,xe.startTime-Ae)}}function ee(Ae,xe){D=!1,L&&(L=!1,$(ie),ie=-1),R=!0;var We=C;try{for(P(xe),A=s(E);A!==null&&(!(A.expirationTime>xe)||Ae&&!ce());){var dt=A.callback;if(typeof dt=="function"){A.callback=null,C=A.priorityLevel;var Ue=dt(A.expirationTime<=xe);xe=n.unstable_now(),typeof Ue=="function"?A.callback=Ue:A===s(E)&&u(E),P(xe)}else u(E);A=s(E)}if(A!==null)var bt=!0;else{var kt=s(S);kt!==null&&De(G,kt.startTime-xe),bt=!1}return bt}finally{A=null,C=We,R=!1}}var ne=!1,Q=null,ie=-1,he=5,ge=-1;function ce(){return!(n.unstable_now()-ge<he)}function fe(){if(Q!==null){var Ae=n.unstable_now();ge=Ae;var xe=!0;try{xe=Q(!0,Ae)}finally{xe?K():(ne=!1,Q=null)}}else ne=!1}var K;if(typeof j=="function")K=function(){j(fe)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,Oe=pe.port2;pe.port1.onmessage=fe,K=function(){Oe.postMessage(null)}}else K=function(){B(fe,0)};function Se(Ae){Q=Ae,ne||(ne=!0,K())}function De(Ae,xe){ie=B(function(){Ae(n.unstable_now())},xe)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ae){Ae.callback=null},n.unstable_continueExecution=function(){D||R||(D=!0,Se(ee))},n.unstable_forceFrameRate=function(Ae){0>Ae||125<Ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<Ae?Math.floor(1e3/Ae):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_getFirstCallbackNode=function(){return s(E)},n.unstable_next=function(Ae){switch(C){case 1:case 2:case 3:var xe=3;break;default:xe=C}var We=C;C=xe;try{return Ae()}finally{C=We}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Ae,xe){switch(Ae){case 1:case 2:case 3:case 4:case 5:break;default:Ae=3}var We=C;C=Ae;try{return xe()}finally{C=We}},n.unstable_scheduleCallback=function(Ae,xe,We){var dt=n.unstable_now();switch(typeof We=="object"&&We!==null?(We=We.delay,We=typeof We=="number"&&0<We?dt+We:dt):We=dt,Ae){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=We+Ue,Ae={id:x++,callback:xe,priorityLevel:Ae,startTime:We,expirationTime:Ue,sortIndex:-1},We>dt?(Ae.sortIndex=We,i(S,Ae),s(E)===null&&Ae===s(S)&&(L?($(ie),ie=-1):L=!0,De(G,We-dt))):(Ae.sortIndex=Ue,i(E,Ae),D||R||(D=!0,Se(ee))),Ae},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(Ae){var xe=C;return function(){var We=C;C=xe;try{return Ae.apply(this,arguments)}finally{C=We}}}})(fBt);dBt.exports=fBt;var HCn=dBt.exports;/**
* @license React
* react-dom.production.min.js
*
@@ -30,14 +30,14 @@ var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,con
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var FCn=H,Hm=jCn;function ir(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cBt=new Set,xH={};function AR(n,i){dM(n,i),dM(n+"Capture",i)}function dM(n,i){for(xH[n]=i,n=0;n<i.length;n++)cBt.add(i[n])}var gA=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c6e=Object.prototype.hasOwnProperty,$Cn=/^[: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]*$/,XLt={},ZLt={};function BCn(n){return c6e.call(ZLt,n)?!0:c6e.call(XLt,n)?!1:$Cn.test(n)?ZLt[n]=!0:(XLt[n]=!0,!1)}function UCn(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function HCn(n,i,s,c){if(i===null||typeof i>"u"||UCn(n,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function Vg(n,i,s,c,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var Uh={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Uh[n]=new Vg(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];Uh[i]=new Vg(i,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Uh[n]=new Vg(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Uh[n]=new Vg(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){Uh[n]=new Vg(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Uh[n]=new Vg(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Uh[n]=new Vg(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Uh[n]=new Vg(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Uh[n]=new Vg(n,5,!1,n.toLowerCase(),null,!1,!1)});var RLe=/[\-:]([a-z])/g;function OLe(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 i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!1,!1)});Uh.xlinkHref=new Vg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!0,!0)});function DLe(n,i,s,c){var d=Uh.hasOwnProperty(i)?Uh[i]:null;(d!==null?d.type!==0:c||!(2<i. Line truncated
`+uCe+n}var cCe=!1;function lCe(n,i){if(!n||cCe)return"";cCe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(S){var c=S}Reflect.construct(n,[],i)}else{try{i.call()}catch(S){c=S}n.call(i.prototype)}else{try{throw Error()}catch(S){c=S}n()}}catch(S){if(S&&c&&typeof S.stack=="string"){for(var d=S.stack.split(`
`),g=c.stack.split(`
*/var zCn=H,Hm=HCn;function ir(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var hBt=new Set,xH={};function AR(n,i){dM(n,i),dM(n+"Capture",i)}function dM(n,i){for(xH[n]=i,n=0;n<i.length;n++)hBt.add(i[n])}var gA=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c6e=Object.prototype.hasOwnProperty,GCn=/^[: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]*$/,ZDt={},QDt={};function qCn(n){return c6e.call(QDt,n)?!0:c6e.call(ZDt,n)?!1:GCn.test(n)?QDt[n]=!0:(ZDt[n]=!0,!1)}function VCn(n,i,s,u){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function WCn(n,i,s,u){if(i===null||typeof i>"u"||VCn(n,i,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function Vg(n,i,s,u,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var Uh={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Uh[n]=new Vg(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];Uh[i]=new Vg(i,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Uh[n]=new Vg(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Uh[n]=new Vg(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){Uh[n]=new Vg(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Uh[n]=new Vg(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Uh[n]=new Vg(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Uh[n]=new Vg(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Uh[n]=new Vg(n,5,!1,n.toLowerCase(),null,!1,!1)});var RDe=/[\-:]([a-z])/g;function ODe(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 i=n.replace(RDe,ODe);Uh[i]=new Vg(i,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(RDe,ODe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(RDe,ODe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!1,!1)});Uh.xlinkHref=new Vg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!0,!0)});function LDe(n,i,s,u){var d=Uh.hasOwnProperty(i)?Uh[i]:null;(d!==null?d.type!==0:u||!(2<i. Line truncated
`+uCe+n}var cCe=!1;function lCe(n,i){if(!n||cCe)return"";cCe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(S){var u=S}Reflect.construct(n,[],i)}else{try{i.call()}catch(S){u=S}n.call(i.prototype)}else{try{throw Error()}catch(S){u=S}n()}}catch(S){if(S&&u&&typeof S.stack=="string"){for(var d=S.stack.split(`
`),g=u.stack.split(`
`),b=d.length-1,w=g.length-1;1<=b&&0<=w&&d[b]!==g[w];)w--;for(;1<=b&&0<=w;b--,w--)if(d[b]!==g[w]){if(b!==1||w!==1)do if(b--,w--,0>w||d[b]!==g[w]){var E=`
`+d[b].replace(" at new "," at ");return n.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",n.displayName)),E}while(1<=b&&0<=w);break}}}finally{cCe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?VU(n):""}function zCn(n){switch(n.tag){case 5:return VU(n.type);case 16:return VU("Lazy");case 13:return VU("Suspense");case 19:return VU("SuspenseList");case 0:case 2:case 15:return n=lCe(n.type,!1),n;case 11:return n=lCe(n.type.render,!1),n;case 1:return n=lCe(n.type,!0),n;default:return""}}function h6e(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 R5:return"Fragment";case I5:return"Portal";case l6e:return"Profiler";case LLe:return"StrictMode";case d6e:return"Suspense";case f6e:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case dBt:return(n.displayName||"Context")+".Consumer";case lBt:return(n._context.displayName||"Context")+".Provider";case MLe:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case PLe:return i=n.displayName||null,i!==null?i:h6e(n.type)||"Memo";case Pk:i=n._payload,n=n._init;try{return h6e(n(i))}catch{}}return null}function GCn(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h6e(i);case 8:return i===LLe?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function nN(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function hBt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function qCn(n){var i=hBt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){c=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Yre(n){n._valueTracker||(n._valueTracker=qCn(n))}function pBt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=hBt(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function foe(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 p6e(n,i){var s=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function e5t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=nN(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function gBt(n,i){i=i.checked,i!=null&&DLe(n,"checked",i,!1)}function g6e(n,i){gBt(n,i);var s=nN(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?b6e(n,i.type,s):i.hasOwnProperty("defaultValue")&&b6e(n,i.type,nN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function t5t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function b6e(n,i,s){(i!=="number"||foe(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var WU=Array.isArray;function Y5(n,i,s,c){if(n=n.options,i){i={};for(var d=0;d<s.length;d++)i["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=i.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&c&&(n[s].defaultSelected=!0)}else{for(s=""+nN(s),i=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,c&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.s Line truncated
`).replace(t4n,"")}function rie(n,i,s){if(i=A5t(i),A5t(n)!==i&&s)throw Error(ir(425))}function voe(){}var I6e=null,R6e=null;function O6e(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var D6e=typeof setTimeout=="function"?setTimeout:void 0,n4n=typeof clearTimeout=="function"?clearTimeout:void 0,_5t=typeof Promise=="function"?Promise:void 0,r4n=typeof queueMicrotask=="function"?queueMicrotask:typeof _5t<"u"?function(n){return _5t.resolve(null).then(n).catch(i4n)}:D6e;function i4n(n){setTimeout(function(){throw n})}function TCe(n,i){var s=i,c=0;do{var d=s.nextSibling;if(n.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(c===0){n.removeChild(d),RH(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=d}while(s);RH(i)}function Yk(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function x5t(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var MM=Math.random().toString(36).slice(2),R2="__reactFiber$"+MM,PH="__reactProps$"+MM,bA="__reactContainer$"+MM,L6e="__reactEvents$"+MM,o4n="__reactListeners$"+MM,s4n="__reactHandles$"+MM;function Y4(n){var i=n[R2];if(i)return i;for(var s=n.parentNode;s;){if(i=s[bA]||s[R2]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=x5t(n);n!==null;){if(s=n[R2])return s;n=x5t(n)}return i}n=s,s=n.parentNode}return null}function wz(n){return n=n[R2]||n[bA],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function M5(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(ir(33))}function Dse(n){return n[PH]||null}var M6e=[],P5=-1;function wN(n){return{current:n}}function dc(n){0>P5||(n.current=M6e[P5],M6e[P5]=null,P5--)}function Wu(n,i){P5++,M6e[P5]=n.current,n.current=i}var rN={},Up=wN(rN),cb=wN(!1),oR=rN;function fM(n,i){var s=n.type.contextTypes;if(!s)return rN;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in s)d[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function lb(n){return n=n.childContextTypes,n!=null}function Eoe(){dc(cb),dc(Up)}function k5t(n,i,s){if(Up.current!==rN)throw Error(ir(168));Wu(Up,i),Wu(cb,s)}function rUt(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var d in c)if(!(d in i))throw Error(ir(108,GCn(n)||"Unknown",d));return fl({},s,c)}function Soe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||rN,oR=Up.current,Wu(Up,n),Wu(cb,cb.current),!0}function N5t(n,i,s){var c=n.stateNode;if(!c)throw Error(ir(169));s?(n=rUt(n,i,oR),c.__reactInternalMemoizedMergedChildContext=n,dc(cb),dc(Up),Wu(Up,n)):dc(cb),Wu(cb,s)}var oA=null,Lse=!1,ACe=!1;function iUt(n){oA===null?oA=[n]:oA.push(n)}function a4n(n){Lse=!0,iUt(n)}function yN(){if(!ACe&&oA!==null){ACe=!0;var n=0,i=cu;try{var s=oA;for(cu=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}oA=null,Lse=!1}catch(d){throw oA!==null&&(oA=oA.slice(n+1)),CBt(FLe,yN),d}finally{cu=i,ACe=!1}}return null}var j5=[],F5=0,Toe=null,Aoe=0,bw=[],mw=0,sR=null,uA=1,cA="";function q4(n,i){j5[F5++]=Aoe,j5[F5++]=Toe,Toe=n,Aoe=i}function oUt(n,i,s){bw[mw++]=uA,bw[mw++]=cA,bw[mw++]=sR,sR=n;var c=uA;n=cA;var d=32-Dv(c)-1;c&=~(1<<d),s+=1;var g=32-Dv(i)+d;if(30<g){var b=d-d%5;g=(c&(1<<b)-1).toString(32),c>>=b,d-=b,uA=1<<32-Dv(i)+d|s<<d|c,cA=g+n}else uA=1<<g|s<<d|c,cA=n}function WLe(n){n.return!==null&&(q4(n,1),oUt(n,1,0))}function KLe(n){for(;n===Toe;)Toe=j5[--F5],j5[F5]=null,Aoe=j5[--F5],j5[F5]=null;for(;n===sR;)sR=bw[--mw],bw[mw]=null,cA=bw[--mw],bw[mw]=null,uA=bw[--mw],bw[mw]=null}var Bm=null,Fm=null,Dc=!1,Cv=null;function sUt(n,i){var s=yw(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function C5t(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Bm=n,Fm=Yk(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Bm=n,Fm=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=sR!==null?{id:uA,overflow:cA}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=yw(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Bm=n,Fm=null,!0):!1;default:return!1}}function P6e(n){return(n.mode&1)!==0&&(n.flags&128)===0}function j6e(n){if(Dc){var i=Fm;if(i){var s=i;if(!C5t(n,i)){if(P6e(n))throw Error(ir(418));i=Yk(s.nextSibling);var c=Bm;i&&C5t(n,i)?sUt(c,s):(n.flags=n.flags&-4097|2,Dc=!1,Bm=n)}}else{if(P6e(n))thr Line truncated
`+d[b].replace(" at new "," at ");return n.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",n.displayName)),E}while(1<=b&&0<=w);break}}}finally{cCe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?VU(n):""}function KCn(n){switch(n.tag){case 5:return VU(n.type);case 16:return VU("Lazy");case 13:return VU("Suspense");case 19:return VU("SuspenseList");case 0:case 2:case 15:return n=lCe(n.type,!1),n;case 11:return n=lCe(n.type.render,!1),n;case 1:return n=lCe(n.type,!0),n;default:return""}}function h6e(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 R5:return"Fragment";case I5:return"Portal";case l6e:return"Profiler";case DDe:return"StrictMode";case d6e:return"Suspense";case f6e:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gBt:return(n.displayName||"Context")+".Consumer";case pBt:return(n._context.displayName||"Context")+".Provider";case MDe:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case PDe:return i=n.displayName||null,i!==null?i:h6e(n.type)||"Memo";case Pk:i=n._payload,n=n._init;try{return h6e(n(i))}catch{}}return null}function YCn(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h6e(i);case 8:return i===DDe?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function nN(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function mBt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function JCn(n){var i=mBt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){u=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(b){u=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Jre(n){n._valueTracker||(n._valueTracker=JCn(n))}function wBt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),u="";return n&&(u=mBt(n)?n.checked?"true":"false":n.value),n=u,n!==s?(i.setValue(n),!0):!1}function hoe(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 p6e(n,i){var s=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function t5t(n,i){var s=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;s=nN(i.value!=null?i.value:s),n._wrapperState={initialChecked:u,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function yBt(n,i){i=i.checked,i!=null&&LDe(n,"checked",i,!1)}function g6e(n,i){yBt(n,i);var s=nN(i.value),u=i.type;if(s!=null)u==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?b6e(n,i.type,s):i.hasOwnProperty("defaultValue")&&b6e(n,i.type,nN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function n5t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function b6e(n,i,s){(i!=="number"||hoe(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var WU=Array.isArray;function Y5(n,i,s,u){if(n=n.options,i){i={};for(var d=0;d<s.length;d++)i["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=i.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&u&&(n[s].defaultSelected=!0)}else{for(s=""+nN(s),i=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.s Line truncated
`).replace(s4n,"")}function iie(n,i,s){if(i=_5t(i),_5t(n)!==i&&s)throw Error(ir(425))}function Eoe(){}var I6e=null,R6e=null;function O6e(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var L6e=typeof setTimeout=="function"?setTimeout:void 0,a4n=typeof clearTimeout=="function"?clearTimeout:void 0,x5t=typeof Promise=="function"?Promise:void 0,u4n=typeof queueMicrotask=="function"?queueMicrotask:typeof x5t<"u"?function(n){return x5t.resolve(null).then(n).catch(c4n)}:L6e;function c4n(n){setTimeout(function(){throw n})}function TCe(n,i){var s=i,u=0;do{var d=s.nextSibling;if(n.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(u===0){n.removeChild(d),RH(i);return}u--}else s!=="$"&&s!=="$?"&&s!=="$!"||u++;s=d}while(s);RH(i)}function Yk(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function k5t(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var MM=Math.random().toString(36).slice(2),R2="__reactFiber$"+MM,PH="__reactProps$"+MM,bA="__reactContainer$"+MM,D6e="__reactEvents$"+MM,l4n="__reactListeners$"+MM,d4n="__reactHandles$"+MM;function Y4(n){var i=n[R2];if(i)return i;for(var s=n.parentNode;s;){if(i=s[bA]||s[R2]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=k5t(n);n!==null;){if(s=n[R2])return s;n=k5t(n)}return i}n=s,s=n.parentNode}return null}function yz(n){return n=n[R2]||n[bA],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function M5(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(ir(33))}function Lse(n){return n[PH]||null}var M6e=[],P5=-1;function wN(n){return{current:n}}function dc(n){0>P5||(n.current=M6e[P5],M6e[P5]=null,P5--)}function Wu(n,i){P5++,M6e[P5]=n.current,n.current=i}var rN={},Up=wN(rN),cb=wN(!1),oR=rN;function fM(n,i){var s=n.type.contextTypes;if(!s)return rN;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in s)d[g]=i[g];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function lb(n){return n=n.childContextTypes,n!=null}function Soe(){dc(cb),dc(Up)}function N5t(n,i,s){if(Up.current!==rN)throw Error(ir(168));Wu(Up,i),Wu(cb,s)}function aUt(n,i,s){var u=n.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return s;u=u.getChildContext();for(var d in u)if(!(d in i))throw Error(ir(108,YCn(n)||"Unknown",d));return fl({},s,u)}function Toe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||rN,oR=Up.current,Wu(Up,n),Wu(cb,cb.current),!0}function C5t(n,i,s){var u=n.stateNode;if(!u)throw Error(ir(169));s?(n=aUt(n,i,oR),u.__reactInternalMemoizedMergedChildContext=n,dc(cb),dc(Up),Wu(Up,n)):dc(cb),Wu(cb,s)}var oA=null,Dse=!1,ACe=!1;function uUt(n){oA===null?oA=[n]:oA.push(n)}function f4n(n){Dse=!0,uUt(n)}function yN(){if(!ACe&&oA!==null){ACe=!0;var n=0,i=cu;try{var s=oA;for(cu=1;n<s.length;n++){var u=s[n];do u=u(!0);while(u!==null)}oA=null,Dse=!1}catch(d){throw oA!==null&&(oA=oA.slice(n+1)),LBt(FDe,yN),d}finally{cu=i,ACe=!1}}return null}var j5=[],F5=0,Aoe=null,_oe=0,bw=[],mw=0,sR=null,uA=1,cA="";function q4(n,i){j5[F5++]=_oe,j5[F5++]=Aoe,Aoe=n,_oe=i}function cUt(n,i,s){bw[mw++]=uA,bw[mw++]=cA,bw[mw++]=sR,sR=n;var u=uA;n=cA;var d=32-Lv(u)-1;u&=~(1<<d),s+=1;var g=32-Lv(i)+d;if(30<g){var b=d-d%5;g=(u&(1<<b)-1).toString(32),u>>=b,d-=b,uA=1<<32-Lv(i)+d|s<<d|u,cA=g+n}else uA=1<<g|s<<d|u,cA=n}function WDe(n){n.return!==null&&(q4(n,1),cUt(n,1,0))}function KDe(n){for(;n===Aoe;)Aoe=j5[--F5],j5[F5]=null,_oe=j5[--F5],j5[F5]=null;for(;n===sR;)sR=bw[--mw],bw[mw]=null,cA=bw[--mw],bw[mw]=null,uA=bw[--mw],bw[mw]=null}var Bm=null,Fm=null,Lc=!1,Cv=null;function lUt(n,i){var s=yw(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function I5t(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Bm=n,Fm=Yk(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Bm=n,Fm=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=sR!==null?{id:uA,overflow:cA}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=yw(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Bm=n,Fm=null,!0):!1;default:return!1}}function P6e(n){return(n.mode&1)!==0&&(n.flags&128)===0}function j6e(n){if(Lc){var i=Fm;if(i){var s=i;if(!I5t(n,i)){if(P6e(n))throw Error(ir(418));i=Yk(s.nextSibling);var u=Bm;i&&I5t(n,i)?lUt(u,s):(n.flags=n.flags&-4097|2,Lc=!1,Bm=n)}}else{if(P6e(n))thr Line truncated
Error generating stack: `+g.message+`
`+g.stack}return{value:n,source:i,stack:d,digest:null}}function CCe(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function U6e(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var b4n=typeof WeakMap=="function"?WeakMap:Map;function DUt(n,i,s){s=hA(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){Ooe||(Ooe=!0,X6e=c),U6e(n,i)},s}function LUt(n,i,s){s=hA(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=i.value;s.payload=function(){return c(d)},s.callback=function(){U6e(n,i)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){U6e(n,i),typeof c!="function"&&(Xk===null?Xk=new Set([this]):Xk.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),s}function F5t(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new b4n;var d=new Set;c.set(i,d)}else d=c.get(i),d===void 0&&(d=new Set,c.set(i,d));d.has(s)||(d.add(s),n=I4n.bind(null,n,i,s),i.then(n,n))}function $5t(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function B5t(n,i,s,c,d){return n.mode&1?(n.flags|=65536,n.lanes=d,n):(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=hA(-1,1),i.tag=2,Jk(s,i,1))),s.lanes|=1),n)}var m4n=AA.ReactCurrentOwner,sb=!1;function Bg(n,i,s,c){i.child=n===null?cUt(i,null,s,c):pM(i,n.child,s,c)}function U5t(n,i,s,c,d){s=s.render;var g=i.ref;return Q5(i,d),c=o5e(n,i,s,c,g,d),s=s5e(),n!==null&&!sb?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~d,wA(n,i,d)):(Dc&&s&&WLe(i),i.flags|=1,Bg(n,i,c,d),i.child)}function H5t(n,i,s,c,d){if(n===null){var g=s.type;return typeof g=="function"&&!b5e(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=g,MUt(n,i,g,c,d)):(n=Yie(s.type,null,c,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!(n.lanes&d)){var b=g.memoizedProps;if(s=s.compare,s=s!==null?s:DH,s(b,c)&&n.ref===i.ref)return wA(n,i,d)}return i.flags|=1,n=Qk(g,c),n.ref=i.ref,n.return=i,i.child=n}function MUt(n,i,s,c,d){if(n!==null){var g=n.memoizedProps;if(DH(g,c)&&n.ref===i.ref)if(sb=!1,i.pendingProps=c=g,(n.lanes&d)!==0)n.flags&131072&&(sb=!0);else return i.lanes=n.lanes,wA(n,i,d)}return H6e(n,i,s,c,d)}function PUt(n,i,s){var c=i.pendingProps,d=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wu(U5,Lm),Lm|=s;else{if(!(s&1073741824))return n=g!==null?g.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,Wu(U5,Lm),Lm|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=g!==null?g.baseLanes:s,Wu(U5,Lm),Lm|=c}else g!==null?(c=g.baseLanes|s,i.memoizedState=null):c=s,Wu(U5,Lm),Lm|=c;return Bg(n,i,d,s),i.child}function jUt(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function H6e(n,i,s,c,d){var g=lb(s)?oR:Up.current;return g=fM(i,g),Q5(i,d),s=o5e(n,i,s,c,g,d),c=s5e(),n!==null&&!sb?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~d,wA(n,i,d)):(Dc&&c&&WLe(i),i.flags|=1,Bg(n,i,s,d),i.child)}function z5t(n,i,s,c,d){if(lb(s)){var g=!0;Soe(i)}else g=!1;if(Q5(i,d),i.stateNode===null)Vie(n,i),OUt(i,s,c),B6e(i,s,c,d),c=!0;else if(n===null){var b=i.stateNode,w=i.memoizedProps;b.props=w;var E=b.context,S=s.contextType;typeof S=="object"&&S!==null?S=Tw(S):(S=lb(s)?oR:Up.current,S=fM(i,S));var x=s.getDerivedStateFromProps,A=typeof x=="function"||typeof b.getSnapshotBeforeUpdate=="function";A||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==c||E!==S)&&j5t(i,b,c,S),jk=!1;var C=i.memoizedState;b.state=C,koe(i,c,b,d),E=i.memoizedState,w!==c||C!==E||cb.current||jk?(typeof x=="function"&&($6e(i,s,x,c),E=i.memoizedState),(w=jk||P5t(i,s,w,c,C,E,S))?(A||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=E),b.props=c,b.state=E,b.context=S,c=w):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{b=i.stateNode,dUt(n,i),w=i.memoizedProps,S=i.type===i.elementType?w:xv(i.type,w),b.props=S,A=i.pendingProps,C=b.context,E=s.contextType,typeof E=="object"&&E!==null?E=Tw(E):(E=lb(s)?oR:Up.current,E=fM(i,E));var R=s.getDerivedStateFromProps;(x=typeof R=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==A||C!==E)&&j5t(i,b,c,E),jk=!1,C=i.memoized Line truncated
`+g.stack}return{value:n,source:i,stack:d,digest:null}}function CCe(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function U6e(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var E4n=typeof WeakMap=="function"?WeakMap:Map;function jUt(n,i,s){s=hA(-1,s),s.tag=3,s.payload={element:null};var u=i.value;return s.callback=function(){Loe||(Loe=!0,X6e=u),U6e(n,i)},s}function FUt(n,i,s){s=hA(-1,s),s.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;s.payload=function(){return u(d)},s.callback=function(){U6e(n,i)}}var g=n.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){U6e(n,i),typeof u!="function"&&(Xk===null?Xk=new Set([this]):Xk.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),s}function $5t(n,i,s){var u=n.pingCache;if(u===null){u=n.pingCache=new E4n;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(s)||(d.add(s),n=M4n.bind(null,n,i,s),i.then(n,n))}function B5t(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function U5t(n,i,s,u,d){return n.mode&1?(n.flags|=65536,n.lanes=d,n):(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=hA(-1,1),i.tag=2,Jk(s,i,1))),s.lanes|=1),n)}var S4n=AA.ReactCurrentOwner,sb=!1;function Bg(n,i,s,u){i.child=n===null?hUt(i,null,s,u):pM(i,n.child,s,u)}function H5t(n,i,s,u,d){s=s.render;var g=i.ref;return Q5(i,d),u=o5e(n,i,s,u,g,d),s=s5e(),n!==null&&!sb?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~d,wA(n,i,d)):(Lc&&s&&WDe(i),i.flags|=1,Bg(n,i,u,d),i.child)}function z5t(n,i,s,u,d){if(n===null){var g=s.type;return typeof g=="function"&&!b5e(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=g,$Ut(n,i,g,u,d)):(n=Jie(s.type,null,u,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!(n.lanes&d)){var b=g.memoizedProps;if(s=s.compare,s=s!==null?s:LH,s(b,u)&&n.ref===i.ref)return wA(n,i,d)}return i.flags|=1,n=Qk(g,u),n.ref=i.ref,n.return=i,i.child=n}function $Ut(n,i,s,u,d){if(n!==null){var g=n.memoizedProps;if(LH(g,u)&&n.ref===i.ref)if(sb=!1,i.pendingProps=u=g,(n.lanes&d)!==0)n.flags&131072&&(sb=!0);else return i.lanes=n.lanes,wA(n,i,d)}return H6e(n,i,s,u,d)}function BUt(n,i,s){var u=i.pendingProps,d=u.children,g=n!==null?n.memoizedState:null;if(u.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wu(U5,Dm),Dm|=s;else{if(!(s&1073741824))return n=g!==null?g.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,Wu(U5,Dm),Dm|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=g!==null?g.baseLanes:s,Wu(U5,Dm),Dm|=u}else g!==null?(u=g.baseLanes|s,i.memoizedState=null):u=s,Wu(U5,Dm),Dm|=u;return Bg(n,i,d,s),i.child}function UUt(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function H6e(n,i,s,u,d){var g=lb(s)?oR:Up.current;return g=fM(i,g),Q5(i,d),s=o5e(n,i,s,u,g,d),u=s5e(),n!==null&&!sb?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~d,wA(n,i,d)):(Lc&&u&&WDe(i),i.flags|=1,Bg(n,i,s,d),i.child)}function G5t(n,i,s,u,d){if(lb(s)){var g=!0;Toe(i)}else g=!1;if(Q5(i,d),i.stateNode===null)Wie(n,i),PUt(i,s,u),B6e(i,s,u,d),u=!0;else if(n===null){var b=i.stateNode,w=i.memoizedProps;b.props=w;var E=b.context,S=s.contextType;typeof S=="object"&&S!==null?S=Tw(S):(S=lb(s)?oR:Up.current,S=fM(i,S));var x=s.getDerivedStateFromProps,A=typeof x=="function"||typeof b.getSnapshotBeforeUpdate=="function";A||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==u||E!==S)&&F5t(i,b,u,S),jk=!1;var C=i.memoizedState;b.state=C,Noe(i,u,b,d),E=i.memoizedState,w!==u||C!==E||cb.current||jk?(typeof x=="function"&&($6e(i,s,x,u),E=i.memoizedState),(w=jk||j5t(i,s,w,u,C,E,S))?(A||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=E),b.props=u,b.state=E,b.context=S,u=w):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{b=i.stateNode,gUt(n,i),w=i.memoizedProps,S=i.type===i.elementType?w:xv(i.type,w),b.props=S,A=i.pendingProps,C=b.context,E=s.contextType,typeof E=="object"&&E!==null?E=Tw(E):(E=lb(s)?oR:Up.current,E=fM(i,E));var R=s.getDerivedStateFromProps;(x=typeof R=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==A||C!==E)&&F5t(i,b,u,E),jk=!1,C=i.memoized Line truncated
* @license React
* use-sync-external-store-shim.production.js
*
@@ -45,7 +45,7 @@ Error generating stack: `+g.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wM=H;function vRn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var ERn=typeof Object.is=="function"?Object.is:vRn,SRn=wM.useState,TRn=wM.useEffect,ARn=wM.useLayoutEffect,_Rn=wM.useDebugValue;function xRn(n,i){var s=i(),c=SRn({inst:{value:s,getSnapshot:i}}),d=c[0].inst,g=c[1];return ARn(function(){d.value=s,d.getSnapshot=i,PCe(d)&&g({inst:d})},[n,s,i]),TRn(function(){return PCe(d)&&g({inst:d}),n(function(){PCe(d)&&g({inst:d})})},[n]),_Rn(s),s}function PCe(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!ERn(n,s)}catch{return!0}}function kRn(n,i){return i()}var NRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kRn:xRn;bHt.useSyncExternalStore=wM.useSyncExternalStore!==void 0?wM.useSyncExternalStore:NRn;gHt.exports=bHt;var mHt=gHt.exports;const CRn=(n,i)=>lR(i)?i:cRn(i)&&lR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,IRn={t:CRn,ready:!1},RRn=()=>()=>{},ps=(n,i={})=>{var pe,me,le;const{i18n:s}=i,{i18n:c,defaultNS:d}=H.useContext(pHt)||{},g=s||c||mRn();g&&!g.reportNamespaces&&(g.reportNamespaces=new yRn),g||dHt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=H.useMemo(()=>{var fe;return{...gRn(),...(fe=g==null?void 0:g.options)==null?void 0:fe.react,...i}},[g,i]),{useSuspense:w,keyPrefix:E}=b,S=n||d||((pe=g==null?void 0:g.options)==null?void 0:pe.defaultNS),x=lR(S)?[S]:S||["translation"],A=H.useMemo(()=>x,x);(le=(me=g==null?void 0:g.reportNamespaces)==null?void 0:me.addUsedNamespaces)==null||le.call(me,A);const C=H.useRef(0),R=H.useCallback(fe=>{if(!g)return RRn;const{bindI18n:K,bindI18nStore:he}=b,Oe=()=>{C.current+=1,fe()};return K&&g.on(K,Oe),he&&g.store.on(he,Oe),()=>{K&&K.split(" ").forEach(Se=>g.off(Se,Oe)),he&&he.split(" ").forEach(Se=>g.store.off(Se,Oe))}},[g,b]),L=H.useRef(),D=H.useCallback(()=>{if(!g)return IRn;const fe=!!(g.isInitialized||g.initializedStoreOnce)&&A.every(Ae=>uRn(Ae,g,b)),K=i.lng||g.language,he=C.current,Oe=L.current;if(Oe&&Oe.ready===fe&&Oe.lng===K&&Oe.keyPrefix===E&&Oe.revision===he)return Oe;const Le={t:g.getFixedT(K,b.nsMode==="fallback"?A:A[0],E),ready:fe,lng:K,keyPrefix:E,revision:he};return L.current=Le,Le},[g,A,E,b,i.lng]),[B,$]=H.useState(0),{t:j,ready:P}=mHt.useSyncExternalStore(R,D,D);H.useEffect(()=>{if(g&&!P&&!w){const fe=()=>$(K=>K+1);i.lng?mMt(g,i.lng,A,fe):iDe(g,A,fe)}},[g,i.lng,A,P,w,B]);const G=g||{},ee=H.useRef(null),re=H.useRef(),Q=fe=>{const K=Object.getOwnPropertyDescriptors(fe);K.__original&&delete K.__original;const he=Object.create(Object.getPrototypeOf(fe),K);if(!Object.prototype.hasOwnProperty.call(he,"__original"))try{Object.defineProperty(he,"__original",{value:fe,writable:!1,enumerable:!1,configurable:!1})}catch{}return he},ie=H.useMemo(()=>{const fe=G,K=fe==null?void 0:fe.language;let he=fe;fe&&(ee.current&&ee.current.__original===fe?re.current!==K?(he=Q(fe),ee.current=he,re.current=K):he=ee.current:(he=Q(fe),ee.current=he,re.current=K));const Oe=[j,he,P];return Oe.t=j,Oe.i18n=he,Oe.ready=P,Oe},[j,G,P,G.resolvedLanguage,G.language,G.languages]);if(g&&w&&!P)throw new Promise(fe=>{const K=()=>fe();i.lng?mMt(g,i.lng,A,K):iDe(g,A,K)});return ie};function wMt({i18n:n,defaultNS:i,children:s}){const c=H.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return H.createElement(pHt.Provider,{value:c},s)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let s=0,c;s<n.length;s++)(c=Bd(n[s]))!==""&&(i+=(i&&" ")+c);else for(let s in n)n[s]&&(i+=(i&&" ")+s);return i}var ORn={value:()=>{}};function qse(){for(var n=0,i=arguments.length,s={},c;n<i;++n){if(!(c=arguments[n]+"")||c in s||/[\s.]/.test(c))throw new Error("illegal type: "+c);s[c]=[]}return new Xie(s)}function Xie(n){this._=n}function DRn(n,i){return n.trim().split(/^|\s+/).map(function(s){var c="",d=s.indexOf(".");if(d>=0&&(c=s.slice(d+1),s=s.slice(0,d)),s&&!i.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:c}})}Xie.prototype=qse.prototype={constructor:Xie,on:function(n,i){var s=this._,c=DRn(n+"",s),d,g=-1,b=c.length;if(arguments.length<2){for(;++g<b;)if((d=(n=c[g]).type)&&(d=LRn(s[d],n.name)))return d;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++g<b;)if(d=(n=c[g]).type)s[d]=yMt(s[d],n.name,i);else if(i==null)for(d in s)s[d]=yMt(s[d],n.name,null);return this},copy:function(){var n={},i=this._;for(var s in i)n[s]=i[s].slice();return new Xie(n)},call:function(n,i){if((d=arguments.length-2)>0)for(var s=new Array(d),c=0,d,g;c<d;++c)s[c]=arguments[c+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(g=this._[n],c=0,d=g.length;c<d;++c)g[c].value.apply(i,s)},apply:function(n,i,s){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var c=this._[n],d=0,g=c.length;d<g;++d)c[d].value.apply(i,s)}};function LRn(n,i){for(var s=0,c=n.length,d;s<c;++s)if((d=n[s]).name===i)return d.value}function yMt(n,i,s){for(var c=0,d=n.length;Line truncated
*/var wM=H;function _Rn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var xRn=typeof Object.is=="function"?Object.is:_Rn,kRn=wM.useState,NRn=wM.useEffect,CRn=wM.useLayoutEffect,IRn=wM.useDebugValue;function RRn(n,i){var s=i(),u=kRn({inst:{value:s,getSnapshot:i}}),d=u[0].inst,g=u[1];return CRn(function(){d.value=s,d.getSnapshot=i,PCe(d)&&g({inst:d})},[n,s,i]),NRn(function(){return PCe(d)&&g({inst:d}),n(function(){PCe(d)&&g({inst:d})})},[n]),IRn(s),s}function PCe(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!xRn(n,s)}catch{return!0}}function ORn(n,i){return i()}var LRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ORn:RRn;vHt.useSyncExternalStore=wM.useSyncExternalStore!==void 0?wM.useSyncExternalStore:LRn;yHt.exports=vHt;var EHt=yHt.exports;const DRn=(n,i)=>lR(i)?i:pRn(i)&&lR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,MRn={t:DRn,ready:!1},PRn=()=>()=>{},ps=(n,i={})=>{var he,ge,ce;const{i18n:s}=i,{i18n:u,defaultNS:d}=H.useContext(wHt)||{},g=s||u||SRn();g&&!g.reportNamespaces&&(g.reportNamespaces=new ARn),g||gHt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=H.useMemo(()=>{var fe;return{...vRn(),...(fe=g==null?void 0:g.options)==null?void 0:fe.react,...i}},[g,i]),{useSuspense:w,keyPrefix:E}=b,S=n||d||((he=g==null?void 0:g.options)==null?void 0:he.defaultNS),x=lR(S)?[S]:S||["translation"],A=H.useMemo(()=>x,x);(ce=(ge=g==null?void 0:g.reportNamespaces)==null?void 0:ge.addUsedNamespaces)==null||ce.call(ge,A);const C=H.useRef(0),R=H.useCallback(fe=>{if(!g)return PRn;const{bindI18n:K,bindI18nStore:pe}=b,Oe=()=>{C.current+=1,fe()};return K&&g.on(K,Oe),pe&&g.store.on(pe,Oe),()=>{K&&K.split(" ").forEach(Se=>g.off(Se,Oe)),pe&&pe.split(" ").forEach(Se=>g.store.off(Se,Oe))}},[g,b]),D=H.useRef(),L=H.useCallback(()=>{if(!g)return MRn;const fe=!!(g.isInitialized||g.initializedStoreOnce)&&A.every(Ae=>hRn(Ae,g,b)),K=i.lng||g.language,pe=C.current,Oe=D.current;if(Oe&&Oe.ready===fe&&Oe.lng===K&&Oe.keyPrefix===E&&Oe.revision===pe)return Oe;const De={t:g.getFixedT(K,b.nsMode==="fallback"?A:A[0],E),ready:fe,lng:K,keyPrefix:E,revision:pe};return D.current=De,De},[g,A,E,b,i.lng]),[B,$]=H.useState(0),{t:j,ready:P}=EHt.useSyncExternalStore(R,L,L);H.useEffect(()=>{if(g&&!P&&!w){const fe=()=>$(K=>K+1);i.lng?wMt(g,i.lng,A,fe):iLe(g,A,fe)}},[g,i.lng,A,P,w,B]);const G=g||{},ee=H.useRef(null),ne=H.useRef(),Q=fe=>{const K=Object.getOwnPropertyDescriptors(fe);K.__original&&delete K.__original;const pe=Object.create(Object.getPrototypeOf(fe),K);if(!Object.prototype.hasOwnProperty.call(pe,"__original"))try{Object.defineProperty(pe,"__original",{value:fe,writable:!1,enumerable:!1,configurable:!1})}catch{}return pe},ie=H.useMemo(()=>{const fe=G,K=fe==null?void 0:fe.language;let pe=fe;fe&&(ee.current&&ee.current.__original===fe?ne.current!==K?(pe=Q(fe),ee.current=pe,ne.current=K):pe=ee.current:(pe=Q(fe),ee.current=pe,ne.current=K));const Oe=[j,pe,P];return Oe.t=j,Oe.i18n=pe,Oe.ready=P,Oe},[j,G,P,G.resolvedLanguage,G.language,G.languages]);if(g&&w&&!P)throw new Promise(fe=>{const K=()=>fe();i.lng?wMt(g,i.lng,A,K):iLe(g,A,K)});return ie};function yMt({i18n:n,defaultNS:i,children:s}){const u=H.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return H.createElement(wHt.Provider,{value:u},s)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let s=0,u;s<n.length;s++)(u=Bd(n[s]))!==""&&(i+=(i&&" ")+u);else for(let s in n)n[s]&&(i+=(i&&" ")+s);return i}var jRn={value:()=>{}};function qse(){for(var n=0,i=arguments.length,s={},u;n<i;++n){if(!(u=arguments[n]+"")||u in s||/[\s.]/.test(u))throw new Error("illegal type: "+u);s[u]=[]}return new Zie(s)}function Zie(n){this._=n}function FRn(n,i){return n.trim().split(/^|\s+/).map(function(s){var u="",d=s.indexOf(".");if(d>=0&&(u=s.slice(d+1),s=s.slice(0,d)),s&&!i.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:u}})}Zie.prototype=qse.prototype={constructor:Zie,on:function(n,i){var s=this._,u=FRn(n+"",s),d,g=-1,b=u.length;if(arguments.length<2){for(;++g<b;)if((d=(n=u[g]).type)&&(d=$Rn(s[d],n.name)))return d;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++g<b;)if(d=(n=u[g]).type)s[d]=vMt(s[d],n.name,i);else if(i==null)for(d in s)s[d]=vMt(s[d],n.name,null);return this},copy:function(){var n={},i=this._;for(var s in i)n[s]=i[s].slice();return new Zie(n)},call:function(n,i){if((d=arguments.length-2)>0)for(var s=new Array(d),u=0,d,g;u<d;++u)s[u]=arguments[u+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(g=this._[n],u=0,d=g.length;u<d;++u)g[u].value.apply(i,s)},apply:function(n,i,s){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var u=this._[n],d=0,g=u.length;d<g;++d)u[d].value.apply(i,s)}};function $Rn(n,i){for(var s=0,u=n.length,d;s<u;++s)if((d=n[s]).name===i)return d.value}function vMt(n,i,s){for(var u=0,d=n.length;Line truncated
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
@@ -53,459 +53,459 @@ Error generating stack: `+g.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qse=H,c5n=mHt;function l5n(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var d5n=typeof Object.is=="function"?Object.is:l5n,f5n=c5n.useSyncExternalStore,h5n=Qse.useRef,p5n=Qse.useEffect,g5n=Qse.useMemo,b5n=Qse.useDebugValue;_zt.useSyncExternalStoreWithSelector=function(n,i,s,c,d){var g=h5n(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=g5n(function(){function E(R){if(!S){if(S=!0,x=R,R=c(R),d!==void 0&&b.hasValue){var L=b.value;if(d(L,R))return A=L}return A=R}if(L=A,d5n(x,R))return L;var D=c(R);return d!==void 0&&d(L,D)?(x=R,L):(x=R,A=D)}var S=!1,x,A,C=s===void 0?null:s;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,s,c,d]);var w=f5n(n,g[0],g[1]);return p5n(function(){b.hasValue=!0,b.value=w},[w]),b5n(w),w};Azt.exports=_zt;var m5n=Azt.exports;const w5n=TR(m5n),y5n={},XMt=n=>{let i;const s=new Set,c=(x,A)=>{const C=typeof x=="function"?x(i):x;if(!Object.is(C,i)){const R=i;i=A??(typeof C!="object"||C===null)?C:Object.assign({},i,C),s.forEach(L=>L(i,R))}},d=()=>i,E={setState:c,getState:d,getInitialState:()=>S,subscribe:x=>(s.add(x),()=>s.delete(x)),destroy:()=>{(y5n?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},S=i=n(c,d,E);return E},v5n=n=>n?XMt(n):XMt,{useDebugValue:E5n}=Hn,{useSyncExternalStoreWithSelector:S5n}=w5n,T5n=n=>n;function xzt(n,i=T5n,s){const c=S5n(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,s);return E5n(c),c}const ZMt=(n,i)=>{const s=v5n(n),c=(d,g=i)=>xzt(s,d,g);return Object.assign(c,s),c},A5n=(n,i)=>n?ZMt(n,i):ZMt;function Lc(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[c,d]of n)if(!Object.is(d,i.get(c)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const c of n)if(!i.has(c))return!1;return!0}const s=Object.keys(n);if(s.length!==Object.keys(i).length)return!1;for(const c of s)if(!Object.prototype.hasOwnProperty.call(i,c)||!Object.is(n[c],i[c]))return!1;return!0}const eae=H.createContext(null),_5n=eae.Provider,kzt=z2.error001();function Js(n,i){const s=H.useContext(eae);if(s===null)throw new Error(kzt);return xzt(s,n,i)}function Mc(){const n=H.useContext(eae);if(n===null)throw new Error(kzt);return H.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const QMt={display:"none"},x5n={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Nzt="react-flow__node-desc",Czt="react-flow__edge-desc",k5n="react-flow__aria-live",N5n=n=>n.ariaLiveMessage,C5n=n=>n.ariaLabelConfig;function I5n({rfId:n}){const i=Js(N5n);return I.jsx("div",{id:`${k5n}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:x5n,children:i})}function R5n({rfId:n,disableKeyboardA11y:i}){const s=Js(C5n);return I.jsxs(I.Fragment,{children:[I.jsx("div",{id:`${Nzt}-${n}`,style:QMt,children:i?s["node.a11yDescription.default"]:s["node.a11yDescription.keyboardDisabled"]}),I.jsx("div",{id:`${Czt}-${n}`,style:QMt,children:s["edge.a11yDescription.default"]}),!i&&I.jsx(I5n,{rfId:n})]})}const gR=H.forwardRef(({position:n="top-left",children:i,className:s,style:c,...d},g)=>{const b=`${n}`.split("-");return I.jsx("div",{className:Bd(["react-flow__panel",s,...b]),style:c,ref:g,...d,children:i})});gR.displayName="Panel";function O5n({proOptions:n,position:i="bottom-right"}){return n!=null&&n.hideAttribution?null:I.jsx(gR,{position:i,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:I.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const D5n=n=>{const i=[],s=[];for(const[,c]of n.nodeLookup)c.selected&&i.push(c.internals.userNode);for(const[,c]of n.edgeLookup)c.selected&&s.push(c);return{selectedNodes:i,selectedEdges:s}},wie=n=>n.id;function L5n(n,i){return Lc(n.selectedNodes.map(wie),i.selectedNodes.map(wie))&&Lc(n.selectedEdges.map(wie),i.selectedEdges.map(wie))}function M5n({onSelectionChange:n}){const i=Mc(),{selectedNodes:s,selectedEdges:c}=Js(D5n,L5n);return H.useEffect(()=>{const d={nodes:s,edges:c};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[s,c,n]),null}const P5n=n=>!!n.onSelectionChangeHandlers;function j5n({onSelectionChange:n}){const i=Js(P5n);return n||i?I.jsx(M5n,{onSelectionChange:n}):null}const Izt=[0,0],F5n={x:0,y:0,zoom:1},$5n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodLine truncated
*/var Qse=H,p5n=EHt;function g5n(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var b5n=typeof Object.is=="function"?Object.is:g5n,m5n=p5n.useSyncExternalStore,w5n=Qse.useRef,y5n=Qse.useEffect,v5n=Qse.useMemo,E5n=Qse.useDebugValue;Czt.useSyncExternalStoreWithSelector=function(n,i,s,u,d){var g=w5n(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=v5n(function(){function E(R){if(!S){if(S=!0,x=R,R=u(R),d!==void 0&&b.hasValue){var D=b.value;if(d(D,R))return A=D}return A=R}if(D=A,b5n(x,R))return D;var L=u(R);return d!==void 0&&d(D,L)?(x=R,D):(x=R,A=L)}var S=!1,x,A,C=s===void 0?null:s;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,s,u,d]);var w=m5n(n,g[0],g[1]);return y5n(function(){b.hasValue=!0,b.value=w},[w]),E5n(w),w};Nzt.exports=Czt;var S5n=Nzt.exports;const T5n=TR(S5n),A5n={},ZMt=n=>{let i;const s=new Set,u=(x,A)=>{const C=typeof x=="function"?x(i):x;if(!Object.is(C,i)){const R=i;i=A??(typeof C!="object"||C===null)?C:Object.assign({},i,C),s.forEach(D=>D(i,R))}},d=()=>i,E={setState:u,getState:d,getInitialState:()=>S,subscribe:x=>(s.add(x),()=>s.delete(x)),destroy:()=>{(A5n?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},S=i=n(u,d,E);return E},_5n=n=>n?ZMt(n):ZMt,{useDebugValue:x5n}=Hn,{useSyncExternalStoreWithSelector:k5n}=T5n,N5n=n=>n;function Izt(n,i=N5n,s){const u=k5n(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,s);return x5n(u),u}const QMt=(n,i)=>{const s=_5n(n),u=(d,g=i)=>Izt(s,d,g);return Object.assign(u,s),u},C5n=(n,i)=>n?QMt(n,i):QMt;function Dc(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[u,d]of n)if(!Object.is(d,i.get(u)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const u of n)if(!i.has(u))return!1;return!0}const s=Object.keys(n);if(s.length!==Object.keys(i).length)return!1;for(const u of s)if(!Object.prototype.hasOwnProperty.call(i,u)||!Object.is(n[u],i[u]))return!1;return!0}const eae=H.createContext(null),I5n=eae.Provider,Rzt=z2.error001();function Js(n,i){const s=H.useContext(eae);if(s===null)throw new Error(Rzt);return Izt(s,n,i)}function Mc(){const n=H.useContext(eae);if(n===null)throw new Error(Rzt);return H.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const e9t={display:"none"},R5n={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Ozt="react-flow__node-desc",Lzt="react-flow__edge-desc",O5n="react-flow__aria-live",L5n=n=>n.ariaLiveMessage,D5n=n=>n.ariaLabelConfig;function M5n({rfId:n}){const i=Js(L5n);return I.jsx("div",{id:`${O5n}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:R5n,children:i})}function P5n({rfId:n,disableKeyboardA11y:i}){const s=Js(D5n);return I.jsxs(I.Fragment,{children:[I.jsx("div",{id:`${Ozt}-${n}`,style:e9t,children:i?s["node.a11yDescription.default"]:s["node.a11yDescription.keyboardDisabled"]}),I.jsx("div",{id:`${Lzt}-${n}`,style:e9t,children:s["edge.a11yDescription.default"]}),!i&&I.jsx(M5n,{rfId:n})]})}const gR=H.forwardRef(({position:n="top-left",children:i,className:s,style:u,...d},g)=>{const b=`${n}`.split("-");return I.jsx("div",{className:Bd(["react-flow__panel",s,...b]),style:u,ref:g,...d,children:i})});gR.displayName="Panel";function j5n({proOptions:n,position:i="bottom-right"}){return n!=null&&n.hideAttribution?null:I.jsx(gR,{position:i,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:I.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const F5n=n=>{const i=[],s=[];for(const[,u]of n.nodeLookup)u.selected&&i.push(u.internals.userNode);for(const[,u]of n.edgeLookup)u.selected&&s.push(u);return{selectedNodes:i,selectedEdges:s}},yie=n=>n.id;function $5n(n,i){return Dc(n.selectedNodes.map(yie),i.selectedNodes.map(yie))&&Dc(n.selectedEdges.map(yie),i.selectedEdges.map(yie))}function B5n({onSelectionChange:n}){const i=Mc(),{selectedNodes:s,selectedEdges:u}=Js(F5n,$5n);return H.useEffect(()=>{const d={nodes:s,edges:u};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[s,u,n]),null}const U5n=n=>!!n.onSelectionChangeHandlers;function H5n({onSelectionChange:n}){const i=Js(U5n);return n||i?I.jsx(B5n,{onSelectionChange:n}):null}const Dzt=[0,0],z5n={x:0,y:0,zoom:1},G5n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodLine truncated
`).replace(`
`,`
+`).split(`
`)),x=S.reduce((A,C)=>A.concat(...C),[]);return[S,x]}return[[],[]]},[n]);return H.useEffect(()=>{const E=(i==null?void 0:i.target)??r9t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const x=R=>{var B,$;if(d.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!d.current||d.current&&!S)&&szt(R))return!1;const D=o9t(R.code,w);if(g.current.add(R[D]),i9t(b,g.current,!1)){const j=(($=(B=R.composedPath)==null?void 0:B.call(R))==null?void 0:$[0])||R.target,P=(j==null?void 0:j.nodeName)==="BUTTON"||(j==null?void 0:j.nodeName)==="A";i.preventDefault!==!1&&(d.current||!P)&&R.preventDefault(),c(!0)}},A=R=>{const L=o9t(R.code,w);i9t(b,g.current,!0)?(c(!1),g.current.clear()):g.current.delete(R[L]),R.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),c(!1)};return E==null||E.addEventListener("keydown",x),E==null||E.addEventListener("keyup",A),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",x),E==null||E.removeEventListener("keyup",A),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,c]),s}function i9t(n,i,s){return n.filter(c=>s||c.length===i.size).some(c=>c.every(d=>i.has(d)))}function o9t(n,i){return i.includes(n)?"code":"key"}const z5n=()=>{const n=Mc();return H.useMemo(()=>({zoomIn:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomOut:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1/1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomTo:(i,s)=>{const{panZoom:c}=n.getState();return c?c.scaleTo(i,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,s)=>{const{transform:[c,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??c,y:i.y??d,zoom:i.zoom??g},s),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,s,c]=n.getState().transform;return{x:i,y:s,zoom:c}},setCenter:async(i,s,c)=>n.getState().setCenter(i,s,c),fitBounds:async(i,s)=>{const{width:c,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=I5e(i,c,d,g,b,(s==null?void 0:s.padding)??.1);return w?(await w.setViewport(E,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(i,s={})=>{const{transform:c,snapGrid:d,snapToGrid:g,domNode:b}=n.getState();if(!b)return i;const{x:w,y:E}=b.getBoundingClientRect(),S={x:i.x-w,y:i.y-E},x=s.snapGrid??d,A=s.snapToGrid??g;return _z(S,c,A,x)},flowToScreenPosition:i=>{const{transform:s,domNode:c}=n.getState();if(!c)return i;const{x:d,y:g}=c.getBoundingClientRect(),b=Voe(i,s);return{x:b.x+d,y:b.y+g}}}),[])};function Rzt(n,i){const s=[],c=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")c.set(g.id,[g]);else{const b=c.get(g.id);b?b.push(g):c.set(g.id,[g])}for(const g of i){const b=c.get(g.id);if(!b){s.push(g);continue}if(b[0].type==="remove")continue;if(b[0].type==="replace"){s.push({...b[0].item});continue}const w={...g};for(const E of b)G5n(E,w);s.push(w)}return d.length&&d.forEach(g=>{g.index!==void 0?s.splice(g.index,0,{...g.item}):s.push({...g.item})}),s}function G5n(n,i){switch(n.type){case"select":{i.selected=n.selected;break}case"position":{typeof n.position<"u"&&(i.position=n.position),typeof n.dragging<"u"&&(i.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(i.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(i.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(i.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(i.resizing=n.resizing);break}}}function Ozt(n,i){return Rzt(n,i)}function Dzt(n,i){return Rzt(n,i)}function W4(n,i){return{id:n,type:"select",selected:i}}function z5(n,i=new Set,s=!1){const c=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(s&&(g.selected=b),c.push(W4(g.id,b)))}return c}function s9t({items:n=[],lookup:i}){var d;const s=[],c=new Map(n.map(g=>[g.id,g]));for(const[g,b]of n.entries()){const w=i.get(b.id),E=((d=w==null?void 0:w.internals)==null?void 0:d.userNode)??w;E!==void 0&&E!==b&&s.push({id:b.id,item:b,type:"replace"}),E===void 0&&s.push({item:b,type:"add",index:g})}for(const[g]of i)c.get(g)===void 0&&s.push({id:g,type:"remove"});return s}function a9t(n){return{id:n.id,type:"remove"}}const u9t=n=>dLn(n),q5n=n=>ZHt(n);function Lzt(n){return H.forwardRef(n)}const V5n=typeof window<"u"?H.useLayoutEffect:H.useEffect;function c9t(n){const[i,s]=H.useState(BigInt(0)),[c]=H.useState(()=>W5n(()=>s(d=>d+BigInt(1))));return V5n(()=>{const d=c.get();d.length&&(n(d),c.reset())},[i]),c}function W5n(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:s=>{i.push(s),n()}}}const Mzt=H.createContext(null);function K5n({children:n}){const i=Mc(),s=H.useCallback(w=>{const{nodes Line truncated
M${ie.x},${ie.y}h${ie.width}v${ie.height}h${-ie.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}aGt.displayName="MiniMap";const P9n=H.memo(aGt),j9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,F9n={[_M.Line]:"right",[_M.Handle]:"bottom-right"};function $9n({nodeId:n,position:i,variant:s=_M.Handle,className:c,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:x=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:C,autoScale:R=!0,shouldResize:L,onResizeStart:D,onResize:B,onResizeEnd:$}){const j=Fzt(),P=typeof n=="string"?n:j,G=Mc(),ee=H.useRef(null),re=s===_M.Handle,Q=Js(H.useCallback(j9n(re&&R),[re,R]),Lc),ie=H.useRef(null),pe=i??F9n[s];H.useEffect(()=>{if(!(!ee.current||!P))return ie.current||(ie.current=u5n({domNode:ee.current,nodeId:P,getStoreItems:()=>{const{nodeLookup:le,transform:fe,snapGrid:K,snapToGrid:he,nodeOrigin:Oe,domNode:Se}=G.getState();return{nodeLookup:le,transform:fe,snapGrid:K,snapToGrid:he,nodeOrigin:Oe,paneDomNode:Se}},onChange:(le,fe)=>{const{triggerNodeChanges:K,nodeLookup:he,parentLookup:Oe,nodeOrigin:Se}=G.getState(),Le=[],Ae={x:le.x,y:le.y},xe=he.get(P);if(xe&&xe.expandParent&&xe.parentId){const We=xe.origin??Se,dt=le.width??xe.measured.width??0,Ue=le.height??xe.measured.height??0,bt={id:xe.id,parentId:xe.parentId,rect:{width:dt,height:Ue,...izt({x:le.x??xe.position.x,y:le.y??xe.position.y},{width:dt,height:Ue},xe.parentId,he,We)}},kt=P5e([bt],he,Oe,Se);Le.push(...kt),Ae.x=le.x?Math.max(We[0]*dt,le.x):void 0,Ae.y=le.y?Math.max(We[1]*Ue,le.y):void 0}if(Ae.x!==void 0&&Ae.y!==void 0){const We={id:P,type:"position",position:{...Ae}};Le.push(We)}if(le.width!==void 0&&le.height!==void 0){const dt={id:P,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:le.width,height:le.height}};Le.push(dt)}for(const We of fe){const dt={...We,type:"position"};Le.push(dt)}K(Le)},onEnd:({width:le,height:fe})=>{const K={id:P,type:"dimensions",resizing:!1,dimensions:{width:le,height:fe}};G.getState().triggerNodeChanges([K])}})),ie.current.update({controlPosition:pe,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:x},keepAspectRatio:A,resizeDirection:C,onResizeStart:D,onResize:B,onResizeEnd:$,shouldResize:L}),()=>{var le;(le=ie.current)==null||le.destroy()}},[pe,w,E,S,x,A,D,B,$,L]);const me=pe.split("-");return I.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...me,s,c]),ref:ee,style:{...d,scale:Q,...b&&{[re?"backgroundColor":"borderColor"]:b}},children:g})}H.memo($9n);/**
`)),x=S.reduce((A,C)=>A.concat(...C),[]);return[S,x]}return[[],[]]},[n]);return H.useEffect(()=>{const E=(i==null?void 0:i.target)??i9t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const x=R=>{var B,$;if(d.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!d.current||d.current&&!S)&&lzt(R))return!1;const L=s9t(R.code,w);if(g.current.add(R[L]),o9t(b,g.current,!1)){const j=(($=(B=R.composedPath)==null?void 0:B.call(R))==null?void 0:$[0])||R.target,P=(j==null?void 0:j.nodeName)==="BUTTON"||(j==null?void 0:j.nodeName)==="A";i.preventDefault!==!1&&(d.current||!P)&&R.preventDefault(),u(!0)}},A=R=>{const D=s9t(R.code,w);o9t(b,g.current,!0)?(u(!1),g.current.clear()):g.current.delete(R[D]),R.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),u(!1)};return E==null||E.addEventListener("keydown",x),E==null||E.addEventListener("keyup",A),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",x),E==null||E.removeEventListener("keyup",A),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,u]),s}function o9t(n,i,s){return n.filter(u=>s||u.length===i.size).some(u=>u.every(d=>i.has(d)))}function s9t(n,i){return i.includes(n)?"code":"key"}const K5n=()=>{const n=Mc();return H.useMemo(()=>({zoomIn:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomOut:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1/1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomTo:(i,s)=>{const{panZoom:u}=n.getState();return u?u.scaleTo(i,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,s)=>{const{transform:[u,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??u,y:i.y??d,zoom:i.zoom??g},s),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,s,u]=n.getState().transform;return{x:i,y:s,zoom:u}},setCenter:async(i,s,u)=>n.getState().setCenter(i,s,u),fitBounds:async(i,s)=>{const{width:u,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=I5e(i,u,d,g,b,(s==null?void 0:s.padding)??.1);return w?(await w.setViewport(E,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(i,s={})=>{const{transform:u,snapGrid:d,snapToGrid:g,domNode:b}=n.getState();if(!b)return i;const{x:w,y:E}=b.getBoundingClientRect(),S={x:i.x-w,y:i.y-E},x=s.snapGrid??d,A=s.snapToGrid??g;return xz(S,u,A,x)},flowToScreenPosition:i=>{const{transform:s,domNode:u}=n.getState();if(!u)return i;const{x:d,y:g}=u.getBoundingClientRect(),b=Woe(i,s);return{x:b.x+d,y:b.y+g}}}),[])};function Mzt(n,i){const s=[],u=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")u.set(g.id,[g]);else{const b=u.get(g.id);b?b.push(g):u.set(g.id,[g])}for(const g of i){const b=u.get(g.id);if(!b){s.push(g);continue}if(b[0].type==="remove")continue;if(b[0].type==="replace"){s.push({...b[0].item});continue}const w={...g};for(const E of b)Y5n(E,w);s.push(w)}return d.length&&d.forEach(g=>{g.index!==void 0?s.splice(g.index,0,{...g.item}):s.push({...g.item})}),s}function Y5n(n,i){switch(n.type){case"select":{i.selected=n.selected;break}case"position":{typeof n.position<"u"&&(i.position=n.position),typeof n.dragging<"u"&&(i.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(i.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(i.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(i.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(i.resizing=n.resizing);break}}}function Pzt(n,i){return Mzt(n,i)}function jzt(n,i){return Mzt(n,i)}function W4(n,i){return{id:n,type:"select",selected:i}}function z5(n,i=new Set,s=!1){const u=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(s&&(g.selected=b),u.push(W4(g.id,b)))}return u}function a9t({items:n=[],lookup:i}){var d;const s=[],u=new Map(n.map(g=>[g.id,g]));for(const[g,b]of n.entries()){const w=i.get(b.id),E=((d=w==null?void 0:w.internals)==null?void 0:d.userNode)??w;E!==void 0&&E!==b&&s.push({id:b.id,item:b,type:"replace"}),E===void 0&&s.push({item:b,type:"add",index:g})}for(const[g]of i)u.get(g)===void 0&&s.push({id:g,type:"remove"});return s}function u9t(n){return{id:n.id,type:"remove"}}const c9t=n=>bDn(n),J5n=n=>nzt(n);function Fzt(n){return H.forwardRef(n)}const X5n=typeof window<"u"?H.useLayoutEffect:H.useEffect;function l9t(n){const[i,s]=H.useState(BigInt(0)),[u]=H.useState(()=>Z5n(()=>s(d=>d+BigInt(1))));return X5n(()=>{const d=u.get();d.length&&(n(d),u.reset())},[i]),u}function Z5n(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:s=>{i.push(s),n()}}}const $zt=H.createContext(null);function Q5n({children:n}){const i=Mc(),s=H.useCallback(w=>{const{nodes Line truncated
M${ie.x},${ie.y}h${ie.width}v${ie.height}h${-ie.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}dGt.displayName="MiniMap";const U9n=H.memo(dGt),H9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,z9n={[_M.Line]:"right",[_M.Handle]:"bottom-right"};function G9n({nodeId:n,position:i,variant:s=_M.Handle,className:u,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:x=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:C,autoScale:R=!0,shouldResize:D,onResizeStart:L,onResize:B,onResizeEnd:$}){const j=Hzt(),P=typeof n=="string"?n:j,G=Mc(),ee=H.useRef(null),ne=s===_M.Handle,Q=Js(H.useCallback(H9n(ne&&R),[ne,R]),Dc),ie=H.useRef(null),he=i??z9n[s];H.useEffect(()=>{if(!(!ee.current||!P))return ie.current||(ie.current=h5n({domNode:ee.current,nodeId:P,getStoreItems:()=>{const{nodeLookup:ce,transform:fe,snapGrid:K,snapToGrid:pe,nodeOrigin:Oe,domNode:Se}=G.getState();return{nodeLookup:ce,transform:fe,snapGrid:K,snapToGrid:pe,nodeOrigin:Oe,paneDomNode:Se}},onChange:(ce,fe)=>{const{triggerNodeChanges:K,nodeLookup:pe,parentLookup:Oe,nodeOrigin:Se}=G.getState(),De=[],Ae={x:ce.x,y:ce.y},xe=pe.get(P);if(xe&&xe.expandParent&&xe.parentId){const We=xe.origin??Se,dt=ce.width??xe.measured.width??0,Ue=ce.height??xe.measured.height??0,bt={id:xe.id,parentId:xe.parentId,rect:{width:dt,height:Ue,...uzt({x:ce.x??xe.position.x,y:ce.y??xe.position.y},{width:dt,height:Ue},xe.parentId,pe,We)}},kt=P5e([bt],pe,Oe,Se);De.push(...kt),Ae.x=ce.x?Math.max(We[0]*dt,ce.x):void 0,Ae.y=ce.y?Math.max(We[1]*Ue,ce.y):void 0}if(Ae.x!==void 0&&Ae.y!==void 0){const We={id:P,type:"position",position:{...Ae}};De.push(We)}if(ce.width!==void 0&&ce.height!==void 0){const dt={id:P,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:ce.width,height:ce.height}};De.push(dt)}for(const We of fe){const dt={...We,type:"position"};De.push(dt)}K(De)},onEnd:({width:ce,height:fe})=>{const K={id:P,type:"dimensions",resizing:!1,dimensions:{width:ce,height:fe}};G.getState().triggerNodeChanges([K])}})),ie.current.update({controlPosition:he,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:x},keepAspectRatio:A,resizeDirection:C,onResizeStart:L,onResize:B,onResizeEnd:$,shouldResize:D}),()=>{var ce;(ce=ie.current)==null||ce.destroy()}},[he,w,E,S,x,A,L,B,$,D]);const ge=he.split("-");return I.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...ge,s,u]),ref:ee,style:{...d,scale:Q,...b&&{[ne?"backgroundColor":"borderColor"]:b}},children:g})}H.memo(G9n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uGt=(...n)=>n.filter((i,s,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===s).join(" ").trim();/**
*/const fGt=(...n)=>n.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).join(" ").trim();/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const B9n=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
*/const q9n=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const U9n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,c)=>c?c.toUpperCase():s.toLowerCase());/**
*/const V9n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.toLowerCase());/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S9t=n=>{const i=U9n(n);return i.charAt(0).toUpperCase()+i.slice(1)};/**
*/const T9t=n=>{const i=V9n(n);return i.charAt(0).toUpperCase()+i.slice(1)};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var H9n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
*/var W9n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z9n=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
*/const K9n=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G9n=H.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:d="",children:g,iconNode:b,...w},E)=>H.createElement("svg",{ref:E,...H9n,width:i,height:i,stroke:n,strokeWidth:c?Number(s)*24/Number(i):s,className:uGt("lucide",d),...!g&&!z9n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,x])=>H.createElement(S,x)),...Array.isArray(g)?g:[g]]));/**
*/const Y9n=H.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:d="",children:g,iconNode:b,...w},E)=>H.createElement("svg",{ref:E,...W9n,width:i,height:i,stroke:n,strokeWidth:u?Number(s)*24/Number(i):s,className:fGt("lucide",d),...!g&&!K9n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,x])=>H.createElement(S,x)),...Array.isArray(g)?g:[g]]));/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _i=(n,i)=>{const s=H.forwardRef(({className:c,...d},g)=>H.createElement(G9n,{ref:g,iconNode:i,className:uGt(`lucide-${B9n(S9t(n))}`,`lucide-${n}`,c),...d}));return s.displayName=S9t(n),s};/**
*/const _i=(n,i)=>{const s=H.forwardRef(({className:u,...d},g)=>H.createElement(Y9n,{ref:g,iconNode:i,className:fGt(`lucide-${q9n(T9t(n))}`,`lucide-${n}`,u),...d}));return s.displayName=T9t(n),s};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q9n=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],V9n=_i("align-end-horizontal",q9n);/**
*/const J9n=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],X9n=_i("align-end-horizontal",J9n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W9n=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],K9n=_i("align-end-vertical",W9n);/**
*/const Z9n=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],Q9n=_i("align-end-vertical",Z9n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Y9n=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],J9n=_i("align-start-horizontal",Y9n);/**
*/const e8n=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],t8n=_i("align-start-horizontal",e8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X9n=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],Z9n=_i("align-start-vertical",X9n);/**
*/const n8n=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],r8n=_i("align-start-vertical",n8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q9n=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],e8n=_i("arrow-down",Q9n);/**
*/const i8n=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],o8n=_i("arrow-down",i8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t8n=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],n8n=_i("arrow-left",t8n);/**
*/const s8n=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],a8n=_i("arrow-left",s8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r8n=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],i8n=_i("arrow-up-down",r8n);/**
*/const u8n=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],c8n=_i("arrow-up-down",u8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o8n=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],s8n=_i("arrow-up",o8n);/**
*/const l8n=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],d8n=_i("arrow-up",l8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],iN=_i("ban",a8n);/**
*/const f8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],iN=_i("ban",f8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u8n=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1",key:"11gii7"}],["path",{d:"M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z",key:"bju7h4"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],c8n=_i("brush-cleaning",u8n);/**
*/const h8n=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1",key:"11gii7"}],["path",{d:"M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z",key:"bju7h4"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],p8n=_i("brush-cleaning",h8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l8n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oN=_i("check",l8n);/**
*/const g8n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oN=_i("check",g8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d8n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nae=_i("chevron-down",d8n);/**
*/const b8n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nae=_i("chevron-down",b8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f8n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],h8n=_i("chevron-right",f8n);/**
*/const m8n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],w8n=_i("chevron-right",m8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p8n=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],g8n=_i("chevron-up",p8n);/**
*/const y8n=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],v8n=_i("chevron-up",y8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b8n=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],cGt=_i("chevrons-up-down",b8n);/**
*/const E8n=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],hGt=_i("chevrons-up-down",E8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_w=_i("circle-alert",m8n);/**
*/const S8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_w=_i("circle-alert",S8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w8n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],lGt=_i("circle-check-big",w8n);/**
*/const T8n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],pGt=_i("circle-check-big",T8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y8n=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],v8n=_i("circle-play",y8n);/**
*/const A8n=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_8n=_i("circle-play",A8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],S8n=_i("circle",E8n);/**
*/const x8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],k8n=_i("circle",x8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T8n=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],A8n=_i("clipboard",T8n);/**
*/const N8n=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],C8n=_i("clipboard",N8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],F5e=_i("clock",_8n);/**
*/const I8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],F5e=_i("clock",I8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x8n=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],k8n=_i("copy-plus",x8n);/**
*/const R8n=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],O8n=_i("copy-plus",R8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N8n=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$5e=_i("copy",N8n);/**
*/const L8n=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$5e=_i("copy",L8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C8n=[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],dGt=_i("diamond-plus",C8n);/**
*/const D8n=[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],gGt=_i("diamond-plus",D8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I8n=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],T9t=_i("download",I8n);/**
*/const M8n=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],A9t=_i("download",M8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R8n=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],O8n=_i("external-link",R8n);/**
*/const P8n=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],j8n=_i("external-link",P8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],L8n=_i("file-code",D8n);/**
*/const F8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],$8n=_i("file-code",F8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],P8n=_i("file-down",M8n);/**
*/const B8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],U8n=_i("file-down",B8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],F8n=_i("file-up",j8n);/**
*/const H8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],z8n=_i("file-up",H8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $8n=[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]],B8n=_i("folder-open-dot",$8n);/**
*/const G8n=[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]],q8n=_i("folder-open-dot",G8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const U8n=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],fGt=_i("git-branch",U8n);/**
*/const V8n=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],B5e=_i("git-branch",V8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const H8n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],z8n=_i("history",H8n);/**
*/const W8n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],K8n=_i("history",W8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G8n=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],hGt=_i("hourglass",G8n);/**
*/const Y8n=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],bGt=_i("hourglass",Y8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q8n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],V8n=_i("layers",q8n);/**
*/const J8n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],X8n=_i("layers",J8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W8n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QH=_i("loader-circle",W8n);/**
*/const Z8n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QH=_i("loader-circle",Z8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K8n=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Y8n=_i("menu",K8n);/**
*/const Q8n=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ePn=_i("menu",Q8n);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J8n=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],X8n=_i("mouse-pointer-click",J8n);/**
*/const tPn=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],nPn=_i("mouse-pointer-click",tPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z8n=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Q8n=_i("octagon-x",Z8n);/**
*/const rPn=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],iPn=_i("octagon-x",rPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ePn=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rae=_i("play",ePn);/**
*/const oPn=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rae=_i("play",oPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tPn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iae=_i("plus",tPn);/**
*/const sPn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iae=_i("plus",sPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nPn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],rPn=_i("redo-2",nPn);/**
*/const aPn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],uPn=_i("redo-2",aPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iPn=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],pGt=_i("rotate-ccw",iPn);/**
*/const cPn=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],mGt=_i("rotate-ccw",cPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oPn=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],gGt=_i("save",oPn);/**
*/const lPn=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],wGt=_i("save",lPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sPn=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],aPn=_i("scissors",sPn);/**
*/const dPn=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],fPn=_i("scissors",dPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uPn=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bGt=_i("search",uPn);/**
*/const hPn=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yGt=_i("search",hPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cPn=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lPn=_i("settings",cPn);/**
*/const pPn=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gPn=_i("settings",pPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],mGt=_i("square",dPn);/**
*/const bPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],vGt=_i("square",bPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fPn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],A9t=_i("toggle-left",fPn);/**
*/const mPn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],_9t=_i("toggle-left",mPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hPn=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],PM=_i("trash-2",hPn);/**
*/const wPn=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],PM=_i("trash-2",wPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pPn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_9t=_i("triangle-alert",pPn);/**
*/const yPn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],x9t=_i("triangle-alert",yPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gPn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],bPn=_i("undo-2",gPn);/**
*/const vPn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],EPn=_i("undo-2",vPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mPn=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],wPn=_i("unplug",mPn);/**
*/const SPn=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],TPn=_i("unplug",SPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yPn=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],vPn=_i("upload",yPn);/**
*/const APn=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],_Pn=_i("upload",APn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EPn=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],wGt=_i("variable",EPn);/**
*/const xPn=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],EGt=_i("variable",xPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SPn=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],TPn=_i("wifi",SPn);/**
*/const kPn=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],NPn=_i("wifi",kPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const APn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oae=_i("x",APn);/**
*/const CPn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oae=_i("x",CPn);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _Pn=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],yGt=_i("zap",_Pn),xPn=H.createContext(null),VCe={didCatch:!1,error:null};let kPn=class extends H.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=VCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var c,d;const{error:s}=this.state;s!==null&&((d=(c=this.props).onReset)==null||d.call(c,{args:i,reason:"imperative-api"}),this.setState(VCe))}componentDidCatch(i,s){var c,d;(d=(c=this.props).onError)==null||d.call(c,i,s)}componentDidUpdate(i,s){var g,b;const{didCatch:c}=this.state,{resetKeys:d}=this.props;c&&s.error!==null&&NPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(VCe))}render(){const{children:i,fallbackRender:s,FallbackComponent:c,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")w=s(E);else if(c)w=H.createElement(c,E);else if(d!==void 0)w=d;else throw b}return H.createElement(xPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function NPn(n=[],i=[]){return n.length!==i.length||n.some((s,c)=>!Object.is(s,i[c]))}function CPn(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const IPn=n=>{switch(n){case"success":return DPn;case"info":return MPn;case"warning":return LPn;case"error":return PPn;default:return null}},RPn=Array(12).fill(0),OPn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},RPn.map((s,c)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),DPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),MPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),jPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Hn.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Hn.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FPn=()=>{const[n,i]=Hn.useState(document.hidden);return Hn.useEffect(()=>{const s=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let yDe=1;class $Pn{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const s=this.subscribers.indexOf(i);this.subscribers.splice(s,1)}),this.publish=i=>{this.subscribers.forEach(s=>s(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var s;const{message:c,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:yDe++,b=this.toasts.find(E=>E.id===g),w=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(g)&&this.dismissedToasts.delete(g),b?this.toasts=this.toasts.map(E=>E.id===g?(this.publish({...E,...i,id:g,title:c}),{...E,...i,id:g,dismissible:w,title:c}):E):this.addToast({title:c,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimaLine truncated
.`.concat(qjn,` {
overflow: hidden `).concat(c,`;
padding-right: `).concat(w,"px ").concat(c,`;
*/const IPn=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],SGt=_i("zap",IPn),RPn=H.createContext(null),VCe={didCatch:!1,error:null};let OPn=class extends H.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=VCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var u,d;const{error:s}=this.state;s!==null&&((d=(u=this.props).onReset)==null||d.call(u,{args:i,reason:"imperative-api"}),this.setState(VCe))}componentDidCatch(i,s){var u,d;(d=(u=this.props).onError)==null||d.call(u,i,s)}componentDidUpdate(i,s){var g,b;const{didCatch:u}=this.state,{resetKeys:d}=this.props;u&&s.error!==null&&LPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(VCe))}render(){const{children:i,fallbackRender:s,FallbackComponent:u,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")w=s(E);else if(u)w=H.createElement(u,E);else if(d!==void 0)w=d;else throw b}return H.createElement(RPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function LPn(n=[],i=[]){return n.length!==i.length||n.some((s,u)=>!Object.is(s,i[u]))}function DPn(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const MPn=n=>{switch(n){case"success":return FPn;case"info":return BPn;case"warning":return $Pn;case"error":return UPn;default:return null}},PPn=Array(12).fill(0),jPn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},PPn.map((s,u)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${u}`})))),FPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),$Pn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),BPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),UPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Hn.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Hn.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zPn=()=>{const[n,i]=Hn.useState(document.hidden);return Hn.useEffect(()=>{const s=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let yLe=1;class GPn{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const s=this.subscribers.indexOf(i);this.subscribers.splice(s,1)}),this.publish=i=>{this.subscribers.forEach(s=>s(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var s;const{message:u,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:yLe++,b=this.toasts.find(E=>E.id===g),w=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(g)&&this.dismissedToasts.delete(g),b?this.toasts=this.toasts.map(E=>E.id===g?(this.publish({...E,...i,id:g,title:u}),{...E,...i,id:g,dismissible:w,title:u}):E):this.addToast({title:u,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimaLine truncated
.`.concat(Jjn,` {
overflow: hidden `).concat(u,`;
padding-right: `).concat(w,"px ").concat(u,`;
}
body[`).concat(rM,`] {
overflow: hidden `).concat(c,`;
overflow: hidden `).concat(u,`;
overscroll-behavior: contain;
`).concat([i&&"position: relative ".concat(c,";"),s==="margin"&&`
`).concat([i&&"position: relative ".concat(u,";"),s==="margin"&&`
padding-left: `.concat(d,`px;
padding-top: `).concat(g,`px;
padding-right: `).concat(b,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(w,"px ").concat(c,`;
`),s==="padding"&&"padding-right: ".concat(w,"px ").concat(c,";")].filter(Boolean).join(""),`
}
.`).concat(noe,` {
right: `).concat(w,"px ").concat(c,`;
margin-right: `).concat(w,"px ").concat(u,`;
`),s==="padding"&&"padding-right: ".concat(w,"px ").concat(u,";")].filter(Boolean).join(""),`
}
.`).concat(roe,` {
margin-right: `).concat(w,"px ").concat(c,`;
right: `).concat(w,"px ").concat(u,`;
}
.`).concat(noe," .").concat(noe,` {
right: 0 `).concat(c,`;
.`).concat(ioe,` {
margin-right: `).concat(w,"px ").concat(u,`;
}
.`).concat(roe," .").concat(roe,` {
margin-right: 0 `).concat(c,`;
right: 0 `).concat(u,`;
}
.`).concat(ioe," .").concat(ioe,` {
margin-right: 0 `).concat(u,`;
}
body[`).concat(rM,`] {
`).concat(Vjn,": ").concat(w,`px;
`).concat(Xjn,": ").concat(w,`px;
}
`)},$9t=function(){var n=parseInt(document.body.getAttribute(rM)||"0",10);return isFinite(n)?n:0},d7n=function(){H.useEffect(function(){return document.body.setAttribute(rM,($9t()+1).toString()),function(){var n=$9t()-1;n<=0?document.body.removeAttribute(rM):document.body.setAttribute(rM,n.toString())}},[])},f7n=function(n){var i=n.noRelative,s=n.noImportant,c=n.gapMode,d=c===void 0?"margin":c;d7n();var g=H.useMemo(function(){return u7n(d)},[d]);return H.createElement(c7n,{styles:l7n(g,!i,d,s?"":"!important")})},SDe=!1;if(typeof window<"u")try{var Sie=Object.defineProperty({},"passive",{get:function(){return SDe=!0,!0}});window.addEventListener("test",Sie,Sie),window.removeEventListener("test",Sie,Sie)}catch{SDe=!1}var w5=SDe?{passive:!1}:!1,h7n=function(n){return n.tagName==="TEXTAREA"},CGt=function(n,i){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!h7n(n)&&s[i]==="visible")},p7n=function(n){return CGt(n,"overflowY")},g7n=function(n){return CGt(n,"overflowX")},B9t=function(n,i){var s=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=IGt(n,c);if(d){var g=RGt(n,c),b=g[1],w=g[2];if(b>w)return!0}c=c.parentNode}while(c&&c!==s.body);return!1},b7n=function(n){var i=n.scrollTop,s=n.scrollHeight,c=n.clientHeight;return[i,s,c]},m7n=function(n){var i=n.scrollLeft,s=n.scrollWidth,c=n.clientWidth;return[i,s,c]},IGt=function(n,i){return n==="v"?p7n(i):g7n(i)},RGt=function(n,i){return n==="v"?b7n(i):m7n(i)},w7n=function(n,i){return n==="h"&&i==="rtl"?-1:1},y7n=function(n,i,s,c,d){var g=w7n(n,window.getComputedStyle(i).direction),b=g*c,w=s.target,E=i.contains(w),S=!1,x=b>0,A=0,C=0;do{if(!w)break;var R=RGt(n,w),L=R[0],D=R[1],B=R[2],$=D-B-g*L;(L||$)&&IGt(n,w)&&(A+=$,C+=L);var j=w.parentNode;w=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(x&&Math.abs(A)<1||!x&&Math.abs(C)<1)&&(S=!0),S},Tie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},U9t=function(n){return[n.deltaX,n.deltaY]},H9t=function(n){return n&&"current"in n?n.current:n},v7n=function(n,i){return n[0]===i[0]&&n[1]===i[1]},E7n=function(n){return`
`)},B9t=function(){var n=parseInt(document.body.getAttribute(rM)||"0",10);return isFinite(n)?n:0},b7n=function(){H.useEffect(function(){return document.body.setAttribute(rM,(B9t()+1).toString()),function(){var n=B9t()-1;n<=0?document.body.removeAttribute(rM):document.body.setAttribute(rM,n.toString())}},[])},m7n=function(n){var i=n.noRelative,s=n.noImportant,u=n.gapMode,d=u===void 0?"margin":u;b7n();var g=H.useMemo(function(){return h7n(d)},[d]);return H.createElement(p7n,{styles:g7n(g,!i,d,s?"":"!important")})},SLe=!1;if(typeof window<"u")try{var Tie=Object.defineProperty({},"passive",{get:function(){return SLe=!0,!0}});window.addEventListener("test",Tie,Tie),window.removeEventListener("test",Tie,Tie)}catch{SLe=!1}var w5=SLe?{passive:!1}:!1,w7n=function(n){return n.tagName==="TEXTAREA"},OGt=function(n,i){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!w7n(n)&&s[i]==="visible")},y7n=function(n){return OGt(n,"overflowY")},v7n=function(n){return OGt(n,"overflowX")},U9t=function(n,i){var s=i.ownerDocument,u=i;do{typeof ShadowRoot<"u"&&u instanceof ShadowRoot&&(u=u.host);var d=LGt(n,u);if(d){var g=DGt(n,u),b=g[1],w=g[2];if(b>w)return!0}u=u.parentNode}while(u&&u!==s.body);return!1},E7n=function(n){var i=n.scrollTop,s=n.scrollHeight,u=n.clientHeight;return[i,s,u]},S7n=function(n){var i=n.scrollLeft,s=n.scrollWidth,u=n.clientWidth;return[i,s,u]},LGt=function(n,i){return n==="v"?y7n(i):v7n(i)},DGt=function(n,i){return n==="v"?E7n(i):S7n(i)},T7n=function(n,i){return n==="h"&&i==="rtl"?-1:1},A7n=function(n,i,s,u,d){var g=T7n(n,window.getComputedStyle(i).direction),b=g*u,w=s.target,E=i.contains(w),S=!1,x=b>0,A=0,C=0;do{if(!w)break;var R=DGt(n,w),D=R[0],L=R[1],B=R[2],$=L-B-g*D;(D||$)&&LGt(n,w)&&(A+=$,C+=D);var j=w.parentNode;w=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(x&&Math.abs(A)<1||!x&&Math.abs(C)<1)&&(S=!0),S},Aie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},H9t=function(n){return[n.deltaX,n.deltaY]},z9t=function(n){return n&&"current"in n?n.current:n},_7n=function(n,i){return n[0]===i[0]&&n[1]===i[1]},x7n=function(n){return`
.block-interactivity-`.concat(n,` {pointer-events: none;}
.allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},S7n=0,y5=[];function T7n(n){var i=H.useRef([]),s=H.useRef([0,0]),c=H.useRef(),d=H.useState(S7n++)[0],g=H.useState(NGt)[0],b=H.useRef(n);H.useEffect(function(){b.current=n},[n]),H.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var D=Gjn([n.lockRef.current],(n.shards||[]).map(H9t),!0).filter(Boolean);return D.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),D.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=H.useCallback(function(D,B){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!b.current.allowPinchZoom;var $=Tie(D),j=s.current,P="deltaX"in D?D.deltaX:j[0]-$[0],G="deltaY"in D?D.deltaY:j[1]-$[1],ee,re=D.target,Q=Math.abs(P)>Math.abs(G)?"h":"v";if("touches"in D&&Q==="h"&&re.type==="range")return!1;var ie=window.getSelection(),pe=ie&&ie.anchorNode,me=pe?pe===re||pe.contains(re):!1;if(me)return!1;var le=B9t(Q,re);if(!le)return!0;if(le?ee=Q:(ee=Q==="v"?"h":"v",le=B9t(Q,re)),!le)return!1;if(!c.current&&"changedTouches"in D&&(P||G)&&(c.current=ee),!ee)return!0;var fe=c.current||ee;return y7n(fe,B,D,fe==="h"?P:G)},[]),E=H.useCallback(function(D){var B=D;if(!(!y5.length||y5[y5.length-1]!==g)){var $="deltaY"in B?U9t(B):Tie(B),j=i.current.filter(function(ee){return ee.name===B.type&&(ee.target===B.target||B.target===ee.shadowParent)&&v7n(ee.delta,$)})[0];if(j&&j.should){B.cancelable&&B.preventDefault();return}if(!j){var P=(b.current.shards||[]).map(H9t).filter(Boolean).filter(function(ee){return ee.contains(B.target)}),G=P.length>0?w(B,P[0]):!b.current.noIsolation;G&&B.cancelable&&B.preventDefault()}}},[]),S=H.useCallback(function(D,B,$,j){var P={name:D,delta:B,target:$,should:j,shadowParent:A7n($)};i.current.push(P),setTimeout(function(){i.current=i.current.filter(function(G){return G!==P})},1)},[]),x=H.useCallback(function(D){s.current=Tie(D),c.current=void 0},[]),A=H.useCallback(function(D){S(D.type,U9t(D),D.target,w(D,n.lockRef.current))},[]),C=H.useCallback(function(D){S(D.type,Tie(D),D.target,w(D,n.lockRef.current))},[]);H.useEffect(function(){return y5.push(g),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:C}),document.addEventListener("wheel",E,w5),document.addEventListener("touchmove",E,w5),document.addEventListener("touchstart",x,w5),function(){y5=y5.filter(function(D){return D!==g}),document.removeEventListener("wheel",E,w5),document.removeEventListener("touchmove",E,w5),document.removeEventListener("touchstart",x,w5)}},[]);var R=n.removeScrollBar,L=n.inert;return H.createElement(H.Fragment,null,L?H.createElement(g,{styles:E7n(d)}):null,R?H.createElement(f7n,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function A7n(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const _7n=Qjn(kGt,T7n);var Iz=H.forwardRef(function(n,i){return H.createElement(aae,O2({},n,{ref:i,sideCar:_7n}))});Iz.classNames=aae.classNames;var x7n=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},v5=new WeakMap,Aie=new WeakMap,_ie={},tIe=0,OGt=function(n){return n&&(n.host||OGt(n.parentNode))},k7n=function(n,i){return i.map(function(s){if(n.contains(s))return s;var c=OGt(s);return c&&n.contains(c)?c:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},N7n=function(n,i,s,c){var d=k7n(i,Array.isArray(n)?n:[n]);_ie[s]||(_ie[s]=new WeakMap);var g=_ie[s],b=[],w=new Set,E=new Set(d),S=function(A){!A||w.has(A)||(w.add(A),S(A.parentNode))};d.forEach(S);var x=function(A){!A||E.has(A)||Array.prototype.forEach.call(A.children,function(C){if(w.has(C))x(C);else try{var R=C.getAttribute(c),L=R!==null&&R!=="false",D=(v5.get(C)||0)+1,B=(g.get(C)||0)+1;v5.set(C,D),g.set(C,B),b.push(C),D===1&&L&&Aie.set(C,!0),B===1&&C.setAttribute(s,"true"),L||C.setAttribute(c,"true")}catch($){console.error("aria-hidden: cannot operate on ",C,$)}})};return x(i),w.clear(),tIe++,function(){b.forEach(function(A){var C=v5.get(A)-1,R=g.get(A)-1;v5.set(A,C),g.set(A,R),C||(Aie.has(A)||A.removeAttribute(c),Aie.delete(A)),R||A.removeAttribute(s)}),tIe--,tIe||(v5=new WeakMap,v5=new WeakMap,Aie=new WeakMap,_ie={})}},uae=function(n,i,s){s===void 0&&(s="data-aria-hidden");var c=Array.from(Array.isArray(n)?n:[n]),d=x7n(n);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),N7n(c,d,s,"aria-hidden")):function(){return null}};function C7n(n){const i=I7n(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(O7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});retu Line truncated
`)},k7n=0,y5=[];function N7n(n){var i=H.useRef([]),s=H.useRef([0,0]),u=H.useRef(),d=H.useState(k7n++)[0],g=H.useState(RGt)[0],b=H.useRef(n);H.useEffect(function(){b.current=n},[n]),H.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var L=Yjn([n.lockRef.current],(n.shards||[]).map(z9t),!0).filter(Boolean);return L.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),L.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=H.useCallback(function(L,B){if("touches"in L&&L.touches.length===2||L.type==="wheel"&&L.ctrlKey)return!b.current.allowPinchZoom;var $=Aie(L),j=s.current,P="deltaX"in L?L.deltaX:j[0]-$[0],G="deltaY"in L?L.deltaY:j[1]-$[1],ee,ne=L.target,Q=Math.abs(P)>Math.abs(G)?"h":"v";if("touches"in L&&Q==="h"&&ne.type==="range")return!1;var ie=window.getSelection(),he=ie&&ie.anchorNode,ge=he?he===ne||he.contains(ne):!1;if(ge)return!1;var ce=U9t(Q,ne);if(!ce)return!0;if(ce?ee=Q:(ee=Q==="v"?"h":"v",ce=U9t(Q,ne)),!ce)return!1;if(!u.current&&"changedTouches"in L&&(P||G)&&(u.current=ee),!ee)return!0;var fe=u.current||ee;return A7n(fe,B,L,fe==="h"?P:G)},[]),E=H.useCallback(function(L){var B=L;if(!(!y5.length||y5[y5.length-1]!==g)){var $="deltaY"in B?H9t(B):Aie(B),j=i.current.filter(function(ee){return ee.name===B.type&&(ee.target===B.target||B.target===ee.shadowParent)&&_7n(ee.delta,$)})[0];if(j&&j.should){B.cancelable&&B.preventDefault();return}if(!j){var P=(b.current.shards||[]).map(z9t).filter(Boolean).filter(function(ee){return ee.contains(B.target)}),G=P.length>0?w(B,P[0]):!b.current.noIsolation;G&&B.cancelable&&B.preventDefault()}}},[]),S=H.useCallback(function(L,B,$,j){var P={name:L,delta:B,target:$,should:j,shadowParent:C7n($)};i.current.push(P),setTimeout(function(){i.current=i.current.filter(function(G){return G!==P})},1)},[]),x=H.useCallback(function(L){s.current=Aie(L),u.current=void 0},[]),A=H.useCallback(function(L){S(L.type,H9t(L),L.target,w(L,n.lockRef.current))},[]),C=H.useCallback(function(L){S(L.type,Aie(L),L.target,w(L,n.lockRef.current))},[]);H.useEffect(function(){return y5.push(g),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:C}),document.addEventListener("wheel",E,w5),document.addEventListener("touchmove",E,w5),document.addEventListener("touchstart",x,w5),function(){y5=y5.filter(function(L){return L!==g}),document.removeEventListener("wheel",E,w5),document.removeEventListener("touchmove",E,w5),document.removeEventListener("touchstart",x,w5)}},[]);var R=n.removeScrollBar,D=n.inert;return H.createElement(H.Fragment,null,D?H.createElement(g,{styles:x7n(d)}):null,R?H.createElement(m7n,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function C7n(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const I7n=i7n(IGt,N7n);var Rz=H.forwardRef(function(n,i){return H.createElement(aae,O2({},n,{ref:i,sideCar:I7n}))});Rz.classNames=aae.classNames;var R7n=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},v5=new WeakMap,_ie=new WeakMap,xie={},tIe=0,MGt=function(n){return n&&(n.host||MGt(n.parentNode))},O7n=function(n,i){return i.map(function(s){if(n.contains(s))return s;var u=MGt(s);return u&&n.contains(u)?u:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},L7n=function(n,i,s,u){var d=O7n(i,Array.isArray(n)?n:[n]);xie[s]||(xie[s]=new WeakMap);var g=xie[s],b=[],w=new Set,E=new Set(d),S=function(A){!A||w.has(A)||(w.add(A),S(A.parentNode))};d.forEach(S);var x=function(A){!A||E.has(A)||Array.prototype.forEach.call(A.children,function(C){if(w.has(C))x(C);else try{var R=C.getAttribute(u),D=R!==null&&R!=="false",L=(v5.get(C)||0)+1,B=(g.get(C)||0)+1;v5.set(C,L),g.set(C,B),b.push(C),L===1&&D&&_ie.set(C,!0),B===1&&C.setAttribute(s,"true"),D||C.setAttribute(u,"true")}catch($){console.error("aria-hidden: cannot operate on ",C,$)}})};return x(i),w.clear(),tIe++,function(){b.forEach(function(A){var C=v5.get(A)-1,R=g.get(A)-1;v5.set(A,C),g.set(A,R),C||(_ie.has(A)||A.removeAttribute(u),_ie.delete(A)),R||A.removeAttribute(s)}),tIe--,tIe||(v5=new WeakMap,v5=new WeakMap,_ie=new WeakMap,xie={})}},uae=function(n,i,s){s===void 0&&(s="data-aria-hidden");var u=Array.from(Array.isArray(n)?n:[n]),d=R7n(n);return d?(u.push.apply(u,Array.from(d.querySelectorAll("[aria-live], script"))),L7n(u,d,s,"aria-hidden")):function(){return null}};function D7n(n){const i=M7n(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(j7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});retu Line truncated
If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return H.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},z7n="DialogDescriptionWarning",G7n=({contentRef:n,descriptionId:i})=>{const c=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WGt(z7n).contentName}}.`;return H.useEffect(()=>{var g;const d=(g=n.current)==null?void 0:g.getAttribute("aria-describedby");i&&d&&(document.getElementById(i)||console.warn(c))},[c,n,i]),null},KGt=LGt,YGt=jGt,z5e=FGt,G5e=$Gt,JGt=UGt,XGt=zGt,q7n=qGt,V7n=Symbol.for("react.lazy"),Joe=ILe[" use ".trim().toString()];function W7n(n){return typeof n=="object"&&n!==null&&"then"in n}function ZGt(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===V7n&&"_payload"in n&&W7n(n._payload)}function lae(n){const i=Y7n(n),s=H.forwardRef((c,d)=>{let{children:g,...b}=c;ZGt(g)&&typeof Joe=="function"&&(g=Joe(g._payload));const w=H.Children.toArray(g),E=w.find(X7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}var K7n=lae("Slot");function Y7n(n){const i=H.forwardRef((s,c)=>{let{children:d,...g}=s;if(ZGt(d)&&typeof Joe=="function"&&(d=Joe(d._payload)),H.isValidElement(d)){const b=Q7n(d),w=Z7n(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var J7n=Symbol("radix.slottable");function X7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===J7n}function Z7n(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Q7n(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var eFn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vN=eFn.reduce((n,i)=>{const s=lae(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),BU='[cmdk-group=""]',nIe='[cmdk-group-items=""]',tFn='[cmdk-group-heading=""]',QGt='[cmdk-item=""]',z9t=`${QGt}:not([aria-disabled="true"])`,TDe="cmdk-item-select",A5="data-value",nFn=(n,i,s)=>ljn(n,i,s),eqt=H.createContext(void 0),Rz=()=>H.useContext(eqt),tqt=H.createContext(void 0),q5e=()=>H.useContext(tqt),nqt=H.createContext(void 0),rqt=H.forwardRef((n,i)=>{let s=_5(()=>{var Ue,bt;return{search:"",value:(bt=(Ue=n.value)!=null?Ue:n.defaultValue)!=null?bt:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=_5(()=>new Set),d=_5(()=>new Map),g=_5(()=>new Map),b=_5(()=>new Set),w=iqt(n),{label:E,children:S,value:x,onValueChange:A,filter:C,shouldFilter:R,loop:L,disablePointerSelection:D=!1,vimBindings:B=!0,...$}=n,j=Bh(),P=Bh(),G=Bh(),ee=H.useRef(null),re=hFn();mR(()=>{if(x!==void 0){let Ue=x.trim();s.current.value=Ue,Q.emit()}},[x]),mR(()=>{re(6,K)},[]);let Q=H.useMemo(()=>({subscribe:Ue=>(b.current.add(Ue),()=>b.current.delete(Ue)),snapshot:()=>s.current,setState:(Ue,bt,kt)=>{var ht,Xt,vt,Ct;if(!Object.is(s.current[Ue],bt)){if(s.current[Ue]=bt,Ue==="search")fe(),me(),re(1,le);else if(Ue==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ft=document.getElementById(G);Ft?Ft.focus():(ht=document.getElementById(j))==null||ht.focus()}if(re(7,()=>{var Ft;s.current.selectedItemId=(Ft=he())==null?void 0:Ft.id,Q.emit()}),kt||re(5,K),((Xt=w.current)==null?void 0:Xt.value)!==void 0){let Ft=bt??"";(Ct=(vt=w.current).onValueChange)==null||Ct.call(vt,Ft);return}}Q.emit()}},emit:()=>{b.current.forEach(Ue=>Ue())}}),[]),ie=H.useMemo(()=>({value:(Ue,bt,kt)=>{var ht;bt!==((ht=g.current.get(Ue))==null?void 0:ht.value)&&(g.current.set(Ue,{value:bt,keywords:kt}),s.current.filtered.items.set(Ue,pe(bt,kt)),re(2,()=>{me(),Q.emit()}))},item:(Ue,bt)=>(c.current.add(Ue),bt&&(d.current.has(bt)?d.current.get(bt).add(Ue):d.current.set(bt,new Set([Ue]))),re(3,()=>{fe(),me(),s.current.value||le(),Q.emit()}),()=>{g.current.delete(Ue),c.current.delete(Ue),s.current.filtered.items.delete(Ue);let kt=he();re(4,()=>{fe(),(kt==null?void 0:kt.getAttribute("id"))===Ue&&le(),Q.emit()})}),group:Ue=>(d.current.has(Ue)||d.current.set(Ue,new Set),()=>{g.current.delete(Ue) Line truncated
`).filter(b=>b),d=Math.min(...c.map(b=>b.length-b.trimStart().length)),g=c.map(b=>b.slice(d)).map(b=>" ".repeat(this.indent*2)+b);for(const b of g)this.content.push(b)}compile(){const i=Function,s=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...s,d.join(`
`))}}const RHn={major:4,minor:3,patch:5},Ku=cn("$ZodType",(n,i)=>{var d;var s;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=RHn;const c=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&c.unshift(n);for(const g of c)for(const b of g._zod.onattach)b(n);if(c.length===0)(s=n._zod).deferred??(s.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let x=G5(w),A;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(x)continue;const R=w.issues.length,L=C._zod.check(w);if(L instanceof Promise&&(S==null?void 0:S.async)===!1)throw new sM;if(A||L instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await L,w.issues.length!==R&&(x||(x=G5(w,R)))});else{if(w.issues.length===R)continue;x||(x=G5(w,R))}}return A?A.then(()=>w):w},b=(w,E,S)=>{if(G5(w))return w.aborted=!0,w;const x=g(E,c,S);if(x instanceof Promise){if(S.async===!1)throw new sM;return x.then(A=>n._zod.parse(A,S))}return n._zod.parse(x,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const x=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return x instanceof Promise?x.then(A=>b(A,w,E)):b(x,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new sM;return S.then(x=>g(x,c,E))}return g(S,c,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=PUn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return jUn(n,g).then(E=>{var S;return E.success?{value:E.data}:{issues:(S=E.error)==null?void 0:S.issues}})}},vendor:"zod",version:1}))}),hMe=cn("$ZodString",(n,i)=>{var s;Ku.init(n,i),n._zod.pattern=[...((s=n==null?void 0:n._zod.bag)==null?void 0:s.patterns)??[]].pop()??fHn(n._zod.bag),n._zod.parse=(c,d)=>{if(i.coerce)try{c.value=String(c.value)}catch{}return typeof c.value=="string"||c.issues.push({expected:"string",code:"invalid_type",input:c.value,inst:n}),c}}),Pc=cn("$ZodStringFormat",(n,i)=>{Nae.init(n,i),hMe.init(n,i)}),OHn=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=QUn),Pc.init(n,i)}),DHn=cn("$ZodUUID",(n,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=f8t(c))}else i.pattern??(i.pattern=f8t());Pc.init(n,i)}),LHn=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=eHn),Pc.init(n,i)}),MHn=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{try{const c=s.value.trim(),d=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:s.value,inst:n,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:s.value,inst:n,continue:!i.abort})),i.normalize?s.value=d.href:s.value=c;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:n,continue:!i.abort})}}}),PHn=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=nHn()),Pc.init(n,i)}),jHn=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=XUn),Pc.init(n,i)}),FHn=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=VUn),Pc.init(n,i)}),$Hn=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=WUn),Pc.init(n,i)}),BHn=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=KUn),Pc.init(n,i)}),UHn=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=YUn),Pc.init(n,i)}),HHn=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=JUn),Pc.init(n,i)}),zHn=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=dHn(i)),Pc.init(n,i)}),GHn=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=cHn),Pc.init(n,i)}),qHn=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=lHn(i)),Pc.init(n,i)}),VHn=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=ZUn),Pc.init(n,i)}),WHn=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=rHn),Pc.init(n,i),n._zod.bag.format="ipv4"}),KHn=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=iHn),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:n,continue:!i.abort})}}}),YHn=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=oHn),Pc.init(n,i)}),JHn=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=sHn),Pc.init(n,i),n._zod.check=s=>{const c=s.value.split("/");try{if(c.length!==2)throw new Error;const[d,g]=c;if(!g)throw new Error;const b=Number(g);if(`${b}`!==g)throw new Error;if(b<0||b>128)throw new Error;new URL(`http://[${d}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:n,continue:!i.abort})}}});function yVt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const XHn=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=aHn),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=s=>{yVt(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst: Line truncated
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return H.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},K7n="DialogDescriptionWarning",Y7n=({contentRef:n,descriptionId:i})=>{const u=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JGt(K7n).contentName}}.`;return H.useEffect(()=>{var g;const d=(g=n.current)==null?void 0:g.getAttribute("aria-describedby");i&&d&&(document.getElementById(i)||console.warn(u))},[u,n,i]),null},XGt=jGt,ZGt=BGt,G5e=UGt,q5e=HGt,QGt=GGt,eqt=VGt,J7n=KGt,X7n=Symbol.for("react.lazy"),Xoe=IDe[" use ".trim().toString()];function Z7n(n){return typeof n=="object"&&n!==null&&"then"in n}function tqt(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===X7n&&"_payload"in n&&Z7n(n._payload)}function lae(n){const i=eFn(n),s=H.forwardRef((u,d)=>{let{children:g,...b}=u;tqt(g)&&typeof Xoe=="function"&&(g=Xoe(g._payload));const w=H.Children.toArray(g),E=w.find(nFn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}var Q7n=lae("Slot");function eFn(n){const i=H.forwardRef((s,u)=>{let{children:d,...g}=s;if(tqt(d)&&typeof Xoe=="function"&&(d=Xoe(d._payload)),H.isValidElement(d)){const b=iFn(d),w=rFn(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var tFn=Symbol("radix.slottable");function nFn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===tFn}function rFn(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function iFn(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var oFn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vN=oFn.reduce((n,i)=>{const s=lae(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{}),BU='[cmdk-group=""]',nIe='[cmdk-group-items=""]',sFn='[cmdk-group-heading=""]',nqt='[cmdk-item=""]',G9t=`${nqt}:not([aria-disabled="true"])`,TLe="cmdk-item-select",A5="data-value",aFn=(n,i,s)=>gjn(n,i,s),rqt=H.createContext(void 0),Oz=()=>H.useContext(rqt),iqt=H.createContext(void 0),V5e=()=>H.useContext(iqt),oqt=H.createContext(void 0),sqt=H.forwardRef((n,i)=>{let s=_5(()=>{var Ue,bt;return{search:"",value:(bt=(Ue=n.value)!=null?Ue:n.defaultValue)!=null?bt:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=_5(()=>new Set),d=_5(()=>new Map),g=_5(()=>new Map),b=_5(()=>new Set),w=aqt(n),{label:E,children:S,value:x,onValueChange:A,filter:C,shouldFilter:R,loop:D,disablePointerSelection:L=!1,vimBindings:B=!0,...$}=n,j=Bh(),P=Bh(),G=Bh(),ee=H.useRef(null),ne=wFn();mR(()=>{if(x!==void 0){let Ue=x.trim();s.current.value=Ue,Q.emit()}},[x]),mR(()=>{ne(6,K)},[]);let Q=H.useMemo(()=>({subscribe:Ue=>(b.current.add(Ue),()=>b.current.delete(Ue)),snapshot:()=>s.current,setState:(Ue,bt,kt)=>{var ht,Xt,vt,Ct;if(!Object.is(s.current[Ue],bt)){if(s.current[Ue]=bt,Ue==="search")fe(),ge(),ne(1,ce);else if(Ue==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ft=document.getElementById(G);Ft?Ft.focus():(ht=document.getElementById(j))==null||ht.focus()}if(ne(7,()=>{var Ft;s.current.selectedItemId=(Ft=pe())==null?void 0:Ft.id,Q.emit()}),kt||ne(5,K),((Xt=w.current)==null?void 0:Xt.value)!==void 0){let Ft=bt??"";(Ct=(vt=w.current).onValueChange)==null||Ct.call(vt,Ft);return}}Q.emit()}},emit:()=>{b.current.forEach(Ue=>Ue())}}),[]),ie=H.useMemo(()=>({value:(Ue,bt,kt)=>{var ht;bt!==((ht=g.current.get(Ue))==null?void 0:ht.value)&&(g.current.set(Ue,{value:bt,keywords:kt}),s.current.filtered.items.set(Ue,he(bt,kt)),ne(2,()=>{ge(),Q.emit()}))},item:(Ue,bt)=>(u.current.add(Ue),bt&&(d.current.has(bt)?d.current.get(bt).add(Ue):d.current.set(bt,new Set([Ue]))),ne(3,()=>{fe(),ge(),s.current.value||ce(),Q.emit()}),()=>{g.current.delete(Ue),u.current.delete(Ue),s.current.filtered.items.delete(Ue);let kt=pe();ne(4,()=>{fe(),(kt==null?void 0:kt.getAttribute("id"))===Ue&&ce(),Q.emit()})}),group:Ue=>(d.current.has(Ue)||d.current.set(Ue,new Set),()=>{g.current.delete(Ue) Line truncated
`).filter(b=>b),d=Math.min(...u.map(b=>b.length-b.trimStart().length)),g=u.map(b=>b.slice(d)).map(b=>" ".repeat(this.indent*2)+b);for(const b of g)this.content.push(b)}compile(){const i=Function,s=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...s,d.join(`
`))}}const PHn={major:4,minor:3,patch:5},Ku=cn("$ZodType",(n,i)=>{var d;var s;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=PHn;const u=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&u.unshift(n);for(const g of u)for(const b of g._zod.onattach)b(n);if(u.length===0)(s=n._zod).deferred??(s.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let x=G5(w),A;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(x)continue;const R=w.issues.length,D=C._zod.check(w);if(D instanceof Promise&&(S==null?void 0:S.async)===!1)throw new sM;if(A||D instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await D,w.issues.length!==R&&(x||(x=G5(w,R)))});else{if(w.issues.length===R)continue;x||(x=G5(w,R))}}return A?A.then(()=>w):w},b=(w,E,S)=>{if(G5(w))return w.aborted=!0,w;const x=g(E,u,S);if(x instanceof Promise){if(S.async===!1)throw new sM;return x.then(A=>n._zod.parse(A,S))}return n._zod.parse(x,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const x=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return x instanceof Promise?x.then(A=>b(A,w,E)):b(x,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new sM;return S.then(x=>g(x,u,E))}return g(S,u,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=UUn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return HUn(n,g).then(E=>{var S;return E.success?{value:E.data}:{issues:(S=E.error)==null?void 0:S.issues}})}},vendor:"zod",version:1}))}),pMe=cn("$ZodString",(n,i)=>{var s;Ku.init(n,i),n._zod.pattern=[...((s=n==null?void 0:n._zod.bag)==null?void 0:s.patterns)??[]].pop()??mHn(n._zod.bag),n._zod.parse=(u,d)=>{if(i.coerce)try{u.value=String(u.value)}catch{}return typeof u.value=="string"||u.issues.push({expected:"string",code:"invalid_type",input:u.value,inst:n}),u}}),Pc=cn("$ZodStringFormat",(n,i)=>{Nae.init(n,i),pMe.init(n,i)}),jHn=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=iHn),Pc.init(n,i)}),FHn=cn("$ZodUUID",(n,i)=>{if(i.version){const u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(u===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=h8t(u))}else i.pattern??(i.pattern=h8t());Pc.init(n,i)}),$Hn=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=oHn),Pc.init(n,i)}),BHn=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{try{const u=s.value.trim(),d=new URL(u);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:s.value,inst:n,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:s.value,inst:n,continue:!i.abort})),i.normalize?s.value=d.href:s.value=u;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:n,continue:!i.abort})}}}),UHn=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=aHn()),Pc.init(n,i)}),HHn=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=nHn),Pc.init(n,i)}),zHn=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=XUn),Pc.init(n,i)}),GHn=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=ZUn),Pc.init(n,i)}),qHn=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=QUn),Pc.init(n,i)}),VHn=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=eHn),Pc.init(n,i)}),WHn=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=tHn),Pc.init(n,i)}),KHn=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=bHn(i)),Pc.init(n,i)}),YHn=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=pHn),Pc.init(n,i)}),JHn=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=gHn(i)),Pc.init(n,i)}),XHn=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=rHn),Pc.init(n,i)}),ZHn=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=uHn),Pc.init(n,i),n._zod.bag.format="ipv4"}),QHn=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=cHn),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:n,continue:!i.abort})}}}),ezn=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=lHn),Pc.init(n,i)}),tzn=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=dHn),Pc.init(n,i),n._zod.check=s=>{const u=s.value.split("/");try{if(u.length!==2)throw new Error;const[d,g]=u;if(!g)throw new Error;const b=Number(g);if(`${b}`!==g)throw new Error;if(b<0||b>128)throw new Error;new URL(`http://[${d}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:n,continue:!i.abort})}}});function SVt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const nzn=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=fHn),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=s=>{SVt(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst: Line truncated
if (${ee}.issues.length) {
if (${re} in input) {
if (${ne} in input) {
payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
...iss,
path: iss.path ? [${re}, ...iss.path] : [${re}]
path: iss.path ? [${ne}, ...iss.path] : [${ne}]
})));
}
}
if (${ee}.value === undefined) {
if (${re} in input) {
newResult[${re}] = undefined;
if (${ne} in input) {
newResult[${ne}] = undefined;
}
} else {
newResult[${re}] = ${ee}.value;
newResult[${ne}] = ${ee}.value;
}
`):R.write(`
if (${ee}.issues.length) {
payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
...iss,
path: iss.path ? [${re}, ...iss.path] : [${re}]
path: iss.path ? [${ne}, ...iss.path] : [${ne}]
})));
}
if (${ee}.value === undefined) {
if (${re} in input) {
newResult[${re}] = undefined;
if (${ne} in input) {
newResult[${ne}] = undefined;
}
} else {
newResult[${re}] = ${ee}.value;
newResult[${ne}] = ${ee}.value;
}
`)}R.write("payload.value = newResult;"),R.write("return payload;");const j=R.compile();return(G,ee)=>j(C,G,ee)};let g;const b=iz,w=!oVt.jitless,S=w&&TUn.value,x=i.catchall;let A;n._zod.parse=(C,R)=>{A??(A=c.value);const L=C.value;return b(L)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),x?SVt([],L,C,R,A,n):C):s(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:L,inst:n}),C)}});function p8t(n,i,s,c){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!G5(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:s,errors:n.map(g=>g.issues.map(b=>pN(b,c,hN())))}),i)}const TVt=cn("$ZodUnion",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.options.some(d=>d._zod.optin==="optional")?"optional":void 0),Ys(n._zod,"optout",()=>i.options.some(d=>d._zod.optout==="optional")?"optional":void 0),Ys(n._zod,"values",()=>{if(i.options.every(d=>d._zod.values))return new Set(i.options.flatMap(d=>Array.from(d._zod.values)))}),Ys(n._zod,"pattern",()=>{if(i.options.every(d=>d._zod.pattern)){const d=i.options.map(g=>g._zod.pattern);return new RegExp(`^(${d.map(g=>cMe(g.source)).join("|")})$`)}});const s=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(s)return c(d,g);let b=!1;const w=[];for(const E of i.options){const S=E._zod.run({value:d.value,issues:[]},g);if(S instanceof Promise)w.push(S),b=!0;else{if(S.issues.length===0)return S;w.push(S)}}return b?Promise.all(w).then(E=>p8t(E,d,n,g)):p8t(w,d,n,g)}}),fzn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,TVt.init(n,i);const s=n._zod.parse;Ys(n._zod,"propValues",()=>{const d={};for(const g of i.options){const b=g._zod.propValues;if(!b||Object.keys(b).length===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(g)}"`);for(const[w,E]of Object.entries(b)){d[w]||(d[w]=new Set);for(const S of E)d[w].add(S)}}return d});const c=_ae(()=>{var b;const d=i.options,g=new Map;for(const w of d){const E=(b=w._zod.propValues)==null?void 0:b[i.discriminator];if(!E||E.size===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(w)}"`);for(const S of E){if(g.has(S))throw new Error(`Duplicate discriminator value "${String(S)}"`);g.set(S,w)}}return g});n._zod.parse=(d,g)=>{const b=d.value;if(!iz(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=c.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?s(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),hzn=cn("$ZodIntersection",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{const d=s.value,g=i.left._zod.run({value:d,issues:[]},c),b=i.right._zod.run({value:d,issues:[]},c);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>g8t(s,E,S)):g8t(s,g,b)}});function MDe(n,i){if(n===i)return{valid:!0,data:n};if(n instanceof Date&&i instanceof Date&&+n==+i)return{valid:!0,data:n};if(NM(n)&&NM(i)){const s=Object.keys(i),c=Object.keys(n).filter(g=>s.indexOf(g)!==-1),d={...n,...i};for(const g of c){const b=MDe(n[g],i[g]);if(!b.valid)return{valid:!1,mergeErrorPath:[g,...b.mergeErrorPath]};d[g]=b.data}return{valid:!0,data:d}}if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let c=0;c<n.length;c++){const d=n[c],g=i[c],b=MDe(d,g);if(!b.valid)return{valid:!1,mergeErrorPath:[c,...b.mergeErrorPath]};s.push(b.data)}return{valid:!0,data:s}}return{valid:!1,mergeErrorPath:[]}}function g8t(n,i,s){const c=new Map;let d;for(const w of i.issues)if(w.code==="unrecognized_keys"){d??(d=w);for(const E of w.keys)c.has(E)||c.set(E,{}),c.get(E).l=!0}else n.issues.push(w);for(const w of s.issues)if(w.code==="unrecognized_keys")for(const E of w.keys)c.has(E)||c.set(E,{}),c.get(E).r=!0;else n.issues.push(w);const g=[...c].filter(([,w])=>w.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),G5(n))return n;const b=MDe(i.value,s.value);if(!b.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const pzn=cn("$ZodRecord",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{const d=s.value;if(!NM(d))return s.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),s;const g=[],b=i.keyType._zod.values;if(b){s.value={};const w=new Set;for(const S of b)if(typeof S=="string"||typeof S=="number"||typeof S=="symbol"){w.add(typeof S=="number"?S.toString():S);const x=i.valueType._zod.run({value:d[S],issues:[]},c);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(S,A.issues)),s.value[S]=A.value})):(x.issues.length&&s.issues.push(...q5(S,x.issues)),s.value[S]=x.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&s.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{s.value={};for Line truncated
`)}R.write("payload.value = newResult;"),R.write("return payload;");const j=R.compile();return(G,ee)=>j(C,G,ee)};let g;const b=oz,w=!uVt.jitless,S=w&&NUn.value,x=i.catchall;let A;n._zod.parse=(C,R)=>{A??(A=u.value);const D=C.value;return b(D)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),x?_Vt([],D,C,R,A,n):C):s(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:D,inst:n}),C)}});function g8t(n,i,s,u){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!G5(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:s,errors:n.map(g=>g.issues.map(b=>pN(b,u,hN())))}),i)}const xVt=cn("$ZodUnion",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.options.some(d=>d._zod.optin==="optional")?"optional":void 0),Ys(n._zod,"optout",()=>i.options.some(d=>d._zod.optout==="optional")?"optional":void 0),Ys(n._zod,"values",()=>{if(i.options.every(d=>d._zod.values))return new Set(i.options.flatMap(d=>Array.from(d._zod.values)))}),Ys(n._zod,"pattern",()=>{if(i.options.every(d=>d._zod.pattern)){const d=i.options.map(g=>g._zod.pattern);return new RegExp(`^(${d.map(g=>lMe(g.source)).join("|")})$`)}});const s=i.options.length===1,u=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(s)return u(d,g);let b=!1;const w=[];for(const E of i.options){const S=E._zod.run({value:d.value,issues:[]},g);if(S instanceof Promise)w.push(S),b=!0;else{if(S.issues.length===0)return S;w.push(S)}}return b?Promise.all(w).then(E=>g8t(E,d,n,g)):g8t(w,d,n,g)}}),mzn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,xVt.init(n,i);const s=n._zod.parse;Ys(n._zod,"propValues",()=>{const d={};for(const g of i.options){const b=g._zod.propValues;if(!b||Object.keys(b).length===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(g)}"`);for(const[w,E]of Object.entries(b)){d[w]||(d[w]=new Set);for(const S of E)d[w].add(S)}}return d});const u=_ae(()=>{var b;const d=i.options,g=new Map;for(const w of d){const E=(b=w._zod.propValues)==null?void 0:b[i.discriminator];if(!E||E.size===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(w)}"`);for(const S of E){if(g.has(S))throw new Error(`Duplicate discriminator value "${String(S)}"`);g.set(S,w)}}return g});n._zod.parse=(d,g)=>{const b=d.value;if(!oz(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=u.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?s(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),wzn=cn("$ZodIntersection",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{const d=s.value,g=i.left._zod.run({value:d,issues:[]},u),b=i.right._zod.run({value:d,issues:[]},u);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>b8t(s,E,S)):b8t(s,g,b)}});function MLe(n,i){if(n===i)return{valid:!0,data:n};if(n instanceof Date&&i instanceof Date&&+n==+i)return{valid:!0,data:n};if(NM(n)&&NM(i)){const s=Object.keys(i),u=Object.keys(n).filter(g=>s.indexOf(g)!==-1),d={...n,...i};for(const g of u){const b=MLe(n[g],i[g]);if(!b.valid)return{valid:!1,mergeErrorPath:[g,...b.mergeErrorPath]};d[g]=b.data}return{valid:!0,data:d}}if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let u=0;u<n.length;u++){const d=n[u],g=i[u],b=MLe(d,g);if(!b.valid)return{valid:!1,mergeErrorPath:[u,...b.mergeErrorPath]};s.push(b.data)}return{valid:!0,data:s}}return{valid:!1,mergeErrorPath:[]}}function b8t(n,i,s){const u=new Map;let d;for(const w of i.issues)if(w.code==="unrecognized_keys"){d??(d=w);for(const E of w.keys)u.has(E)||u.set(E,{}),u.get(E).l=!0}else n.issues.push(w);for(const w of s.issues)if(w.code==="unrecognized_keys")for(const E of w.keys)u.has(E)||u.set(E,{}),u.get(E).r=!0;else n.issues.push(w);const g=[...u].filter(([,w])=>w.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),G5(n))return n;const b=MLe(i.value,s.value);if(!b.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const yzn=cn("$ZodRecord",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,u)=>{const d=s.value;if(!NM(d))return s.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),s;const g=[],b=i.keyType._zod.values;if(b){s.value={};const w=new Set;for(const S of b)if(typeof S=="string"||typeof S=="number"||typeof S=="symbol"){w.add(typeof S=="number"?S.toString():S);const x=i.valueType._zod.run({value:d[S],issues:[]},u);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(S,A.issues)),s.value[S]=A.value})):(x.issues.length&&s.issues.push(...q5(S,x.issues)),s.value[S]=x.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&s.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{s.value={};for Line truncated
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of n.seen.entries()){const A=x[1];if(i===x[0]){g(x);continue}if(n.external){const R=(E=n.external.registry.get(x[0]))==null?void 0:E.id;if(i!==x[0]&&R){g(x);continue}}if((S=n.metadataRegistry.get(x[0]))==null?void 0:S.id){g(x);continue}if(A.cycle){g(x);continue}if(A.count>1&&n.reused==="ref"){g(x);continue}}}function CVt(n,i){var b,w,E;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=S=>{const x=n.seen.get(S);if(x.ref===null)return;const A=x.def??x.schema,C={...A},R=x.ref;if(x.ref=null,R){c(R);const D=n.seen.get(R),B=D.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(A.allOf=A.allOf??[],A.allOf.push(B)):Object.assign(A,B),Object.assign(A,C),S._zod.parent===R)for(const j in A)j==="$ref"||j==="allOf"||j in C||delete A[j];if(B.$ref)for(const j in A)j==="$ref"||j==="allOf"||j in D.def&&JSON.stringify(A[j])===JSON.stringify(D.def[j])&&delete A[j]}const L=S._zod.parent;if(L&&L!==R){c(L);const D=n.seen.get(L);if(D!=null&&D.schema.$ref&&(A.$ref=D.schema.$ref,D.def))for(const B in A)B==="$ref"||B==="allOf"||B in D.def&&JSON.stringify(A[B])===JSON.stringify(D.def[B])&&delete A[B]}n.override({zodSchema:S,jsonSchema:A,path:x.path??[]})};for(const S of[...n.seen.entries()].reverse())c(S[0]);const d={};if(n.target==="draft-2020-12"?d.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?d.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?d.$schema="http://json-schema.org/draft-04/schema#":n.target,(b=n.external)!=null&&b.uri){const S=(w=n.external.registry.get(i))==null?void 0:w.id;if(!S)throw new Error("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,s.def??s.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const x=S[1];x.def&&x.defId&&(g[x.defId]=x.def)}n.external||Object.keys(g).length>0&&(n.target==="draft-2020-12"?d.$defs=g:d.definitions=g);try{const S=JSON.parse(JSON.stringify(d));return Object.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:sse(i,"input",n.processors),output:sse(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function $g(n,i){const s=i??{seen:new Set};if(s.seen.has(n))return!1;s.seen.add(n);const c=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return $g(c.element,s);if(c.type==="set")return $g(c.valueType,s);if(c.type==="lazy")return $g(c.getter(),s);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return $g(c.innerType,s);if(c.type==="intersection")return $g(c.left,s)||$g(c.right,s);if(c.type==="record"||c.type==="map")return $g(c.keyType,s)||$g(c.valueType,s);if(c.type==="pipe")return $g(c.in,s)||$g(c.out,s);if(c.type==="object"){for(const d in c.shape)if($g(c.shape[d],s))return!0;return!1}if(c.type==="union"){for(const d of c.options)if($g(d,s))return!0;return!1}if(c.type==="tuple"){for(const d of c.items)if($g(d,s))return!0;return!!(c.rest&&$g(c.rest,s))}return!1}const AGn=(n,i={})=>s=>{const c=kVt({...s,processors:i});return gd(n,c),NVt(c,n),CVt(c,n)},sse=(n,i,s={})=>c=>{const{libraryOptions:d,target:g}=c??{},b=kVt({...d??{},target:g,io:i,processors:s});return gd(n,b),NVt(b,n),CVt(b,n)},_Gn={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},xGn=(n,i,s,c)=>{const d=s;d.type="string";const{minimum:g,maximum:b,format:w,patterns:E,contentEncoding:S}=n._zod.bag;if(typeof g=="number"&&(d.minLength=g),typeof b=="number"&&(d.maxLength=b),w&&(d.format=_Gn[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const x=[...E];x.length===1?d.pattern=x[0].source:x.length>1&&(d.allOf=[...x.map(A=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}},kGn=(n,i,s,c)=>{const d=s,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:x}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof x=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=x,d.exclusiveMinimum=!0):d.exclusiveMinimum=x),typeof g=="number"&&(d.minimum=g,typeof x=="number"&&i.target!=="draft-04"&&(x>=g?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof b=="number"&&(d.maximum=b,typeof S=="number"&&i.target!=="draft-04"&&(S<=b?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E)},NGn=(n,i,s,c)=>{s.type="boolean"},CGn=(n,i,s,c)=>{i.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},IGn=(n,i,s,c)=>{s.not={}},RGn=(n,i,s,c)=>{},OGn=(n,i,s,c)=Line truncated
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of n.seen.entries()){const A=x[1];if(i===x[0]){g(x);continue}if(n.external){const R=(E=n.external.registry.get(x[0]))==null?void 0:E.id;if(i!==x[0]&&R){g(x);continue}}if((S=n.metadataRegistry.get(x[0]))==null?void 0:S.id){g(x);continue}if(A.cycle){g(x);continue}if(A.count>1&&n.reused==="ref"){g(x);continue}}}function OVt(n,i){var b,w,E;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const u=S=>{const x=n.seen.get(S);if(x.ref===null)return;const A=x.def??x.schema,C={...A},R=x.ref;if(x.ref=null,R){u(R);const L=n.seen.get(R),B=L.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(A.allOf=A.allOf??[],A.allOf.push(B)):Object.assign(A,B),Object.assign(A,C),S._zod.parent===R)for(const j in A)j==="$ref"||j==="allOf"||j in C||delete A[j];if(B.$ref)for(const j in A)j==="$ref"||j==="allOf"||j in L.def&&JSON.stringify(A[j])===JSON.stringify(L.def[j])&&delete A[j]}const D=S._zod.parent;if(D&&D!==R){u(D);const L=n.seen.get(D);if(L!=null&&L.schema.$ref&&(A.$ref=L.schema.$ref,L.def))for(const B in A)B==="$ref"||B==="allOf"||B in L.def&&JSON.stringify(A[B])===JSON.stringify(L.def[B])&&delete A[B]}n.override({zodSchema:S,jsonSchema:A,path:x.path??[]})};for(const S of[...n.seen.entries()].reverse())u(S[0]);const d={};if(n.target==="draft-2020-12"?d.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?d.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?d.$schema="http://json-schema.org/draft-04/schema#":n.target,(b=n.external)!=null&&b.uri){const S=(w=n.external.registry.get(i))==null?void 0:w.id;if(!S)throw new Error("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,s.def??s.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const x=S[1];x.def&&x.defId&&(g[x.defId]=x.def)}n.external||Object.keys(g).length>0&&(n.target==="draft-2020-12"?d.$defs=g:d.definitions=g);try{const S=JSON.parse(JSON.stringify(d));return Object.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:sse(i,"input",n.processors),output:sse(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function $g(n,i){const s=i??{seen:new Set};if(s.seen.has(n))return!1;s.seen.add(n);const u=n._zod.def;if(u.type==="transform")return!0;if(u.type==="array")return $g(u.element,s);if(u.type==="set")return $g(u.valueType,s);if(u.type==="lazy")return $g(u.getter(),s);if(u.type==="promise"||u.type==="optional"||u.type==="nonoptional"||u.type==="nullable"||u.type==="readonly"||u.type==="default"||u.type==="prefault")return $g(u.innerType,s);if(u.type==="intersection")return $g(u.left,s)||$g(u.right,s);if(u.type==="record"||u.type==="map")return $g(u.keyType,s)||$g(u.valueType,s);if(u.type==="pipe")return $g(u.in,s)||$g(u.out,s);if(u.type==="object"){for(const d in u.shape)if($g(u.shape[d],s))return!0;return!1}if(u.type==="union"){for(const d of u.options)if($g(d,s))return!0;return!1}if(u.type==="tuple"){for(const d of u.items)if($g(d,s))return!0;return!!(u.rest&&$g(u.rest,s))}return!1}const CGn=(n,i={})=>s=>{const u=IVt({...s,processors:i});return gd(n,u),RVt(u,n),OVt(u,n)},sse=(n,i,s={})=>u=>{const{libraryOptions:d,target:g}=u??{},b=IVt({...d??{},target:g,io:i,processors:s});return gd(n,b),RVt(b,n),OVt(b,n)},IGn={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},RGn=(n,i,s,u)=>{const d=s;d.type="string";const{minimum:g,maximum:b,format:w,patterns:E,contentEncoding:S}=n._zod.bag;if(typeof g=="number"&&(d.minLength=g),typeof b=="number"&&(d.maxLength=b),w&&(d.format=IGn[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const x=[...E];x.length===1?d.pattern=x[0].source:x.length>1&&(d.allOf=[...x.map(A=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}},OGn=(n,i,s,u)=>{const d=s,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:x}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof x=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=x,d.exclusiveMinimum=!0):d.exclusiveMinimum=x),typeof g=="number"&&(d.minimum=g,typeof x=="number"&&i.target!=="draft-04"&&(x>=g?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof b=="number"&&(d.maximum=b,typeof S=="number"&&i.target!=="draft-04"&&(S<=b?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E)},LGn=(n,i,s,u)=>{s.type="boolean"},DGn=(n,i,s,u)=>{i.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},MGn=(n,i,s,u)=>{s.not={}},PGn=(n,i,s,u)=>{},jGn=(n,i,s,u)=Line truncated
`+n.mark.snippet),c+" "+s):c}function sz(n,i){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=i,this.message=xWt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}sz.prototype=Object.create(Error.prototype);sz.prototype.constructor=sz;sz.prototype.toString=function(i){return this.name+": "+xWt(this,i)};var ib=sz;function FOe(n,i,s,c,d){var g="",b="",w=Math.floor(d/2)-1;return c-i>w&&(g=" ... ",i=c-w+g.length),s-c>w&&(b=" ...",s=c+w-b.length),{str:g+n.slice(i,s).replace(/\t/g,"→")+b,pos:c-i+g.length}}function $Oe(n,i){return vf.repeat(" ",i-n.length)+n}function bJn(n,i){if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var s=/\r?\n|\r|\0/g,c=[0],d=[],g,b=-1;g=s.exec(n.buffer);)d.push(g.index),c.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=c.length-2);b<0&&(b=c.length-1);var w="",E,S,x=Math.min(n.line+i.linesAfter,d.length).toString().length,A=i.maxLength-(i.indent+x+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=FOe(n.buffer,c[b-E],d[b-E],n.position-(c[b]-c[b-E]),A),w=vf.repeat(" ",i.indent)+$Oe((n.line-E+1).toString(),x)+" | "+S.str+`
`+w;for(S=FOe(n.buffer,c[b],d[b],n.position,A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+1).toString(),x)+" | "+S.str+`
`+n.mark.snippet),u+" "+s):u}function az(n,i){Error.call(this),this.name="YAMLException",this.reason=n,this.mark=i,this.message=RWt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}az.prototype=Object.create(Error.prototype);az.prototype.constructor=az;az.prototype.toString=function(i){return this.name+": "+RWt(this,i)};var ib=az;function FOe(n,i,s,u,d){var g="",b="",w=Math.floor(d/2)-1;return u-i>w&&(g=" ... ",i=u-w+g.length),s-u>w&&(b=" ...",s=u+w-b.length),{str:g+n.slice(i,s).replace(/\t/g,"→")+b,pos:u-i+g.length}}function $Oe(n,i){return vf.repeat(" ",i-n.length)+n}function EJn(n,i){if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var s=/\r?\n|\r|\0/g,u=[0],d=[],g,b=-1;g=s.exec(n.buffer);)d.push(g.index),u.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=u.length-2);b<0&&(b=u.length-1);var w="",E,S,x=Math.min(n.line+i.linesAfter,d.length).toString().length,A=i.maxLength-(i.indent+x+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=FOe(n.buffer,u[b-E],d[b-E],n.position-(u[b]-u[b-E]),A),w=vf.repeat(" ",i.indent)+$Oe((n.line-E+1).toString(),x)+" | "+S.str+`
`+w;for(S=FOe(n.buffer,u[b],d[b],n.position,A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+1).toString(),x)+" | "+S.str+`
`,w+=vf.repeat("-",i.indent+x+3+S.pos)+`^
`,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=FOe(n.buffer,c[b+E],d[b+E],n.position-(c[b]-c[b+E]),A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+E+1).toString(),x)+" | "+S.str+`
`;return w.replace(/\n$/,"")}var mJn=bJn,wJn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yJn=["scalar","sequence","mapping"];function vJn(n){var i={};return n!==null&&Object.keys(n).forEach(function(s){n[s].forEach(function(c){i[String(c)]=s})}),i}function EJn(n,i){if(i=i||{},Object.keys(i).forEach(function(s){if(wJn.indexOf(s)===-1)throw new ib('Unknown option "'+s+'" is met in definition of "'+n+'" YAML type.')}),this.options=i,this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(s){return s},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=vJn(i.styleAliases||null),yJn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var Bp=EJn;function SFt(n,i){var s=[];return n[i].forEach(function(c){var d=s.length;s.forEach(function(g,b){g.tag===c.tag&&g.kind===c.kind&&g.multi===c.multi&&(d=b)}),s[d]=c}),s}function SJn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,s;function c(d){d.multi?(n.multi[d.kind].push(d),n.multi.fallback.push(d)):n[d.kind][d.tag]=n.fallback[d.tag]=d}for(i=0,s=arguments.length;i<s;i+=1)arguments[i].forEach(c);return n}function jDe(n){return this.extend(n)}jDe.prototype.extend=function(i){var s=[],c=[];if(i instanceof Bp)c.push(i);else if(Array.isArray(i))c=c.concat(i);else if(i&&(Array.isArray(i.implicit)||Array.isArray(i.explicit)))i.implicit&&(s=s.concat(i.implicit)),i.explicit&&(c=c.concat(i.explicit));else throw new ib("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(g){if(!(g instanceof Bp))throw new ib("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(g.loadKind&&g.loadKind!=="scalar")throw new ib("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(g.multi)throw new ib("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),c.forEach(function(g){if(!(g instanceof Bp))throw new ib("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var d=Object.create(jDe.prototype);return d.implicit=(this.implicit||[]).concat(s),d.explicit=(this.explicit||[]).concat(c),d.compiledImplicit=SFt(d,"implicit"),d.compiledExplicit=SFt(d,"explicit"),d.compiledTypeMap=SJn(d.compiledImplicit,d.compiledExplicit),d};var TJn=jDe,AJn=new Bp("tag:yaml.org,2002:str",{kind:"scalar",construct:function(n){return n!==null?n:""}}),_Jn=new Bp("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(n){return n!==null?n:[]}}),xJn=new Bp("tag:yaml.org,2002:map",{kind:"mapping",construct:function(n){return n!==null?n:{}}}),kJn=new TJn({explicit:[AJn,_Jn,xJn]});function NJn(n){if(n===null)return!0;var i=n.length;return i===1&&n==="~"||i===4&&(n==="null"||n==="Null"||n==="NULL")}function CJn(){return null}function IJn(n){return n===null}var RJn=new Bp("tag:yaml.org,2002:null",{kind:"scalar",resolve:NJn,construct:CJn,predicate:IJn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function OJn(n){if(n===null)return!1;var i=n.length;return i===4&&(n==="true"||n==="True"||n==="TRUE")||i===5&&(n==="false"||n==="False"||n==="FALSE")}function DJn(n){return n==="true"||n==="True"||n==="TRUE"}function LJn(n){return Object.prototype.toString.call(n)==="[object Boolean]"}var MJn=new Bp("tag:yaml.org,2002:bool",{kind:"scalar",resolve:OJn,construct:DJn,predicate:LJn,represent:{lowercase:function(n){return n?"true":"false"},uppercase:function(n){return n?"TRUE":"FALSE"},camelcase:function(n){return n?"True":"False"}},defaultStyle:"lowercase"});function PJn(n){return 48<=n&&n<=57||65<=n&&n<=70||97<=n&&n<=102}function jJn(n){return 48<=n&&n<=55}function FJn(n){return 48<=n&&n<=57}function $Jn(n){if(n===null)return!1;var i=n.length,s=0,c=!1,d;if(!i)return!1;if(d=n[s],(d==="-"||d==="+")&&(d=n[++s]),d==="0"){if(s+1===i)return!0;if(d=n[++s],d==="b"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(d!=="0"&&d!=="1")return!1;c=!0}return c&&d!=="_"}if(d==="x"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(!PJn(n.charCodeAt(s)))return!1;c=!0}return c&&d!=="_"}if(d==="o"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(!jJn(n.charCodeAt(s)))return!1;c=!0}return c&&d!=="_"}}if(d==="_")return!1;for(;s<i;s++)if(d=n[s],d!=="_"){if(!FJn(n.charCodeAt(s)))return!1;c=!0}return!(!c||d==="_")}function BJn(n){var i=n,s=1,c;if(i.indexOf("_")!==-1&&(i=i.replace(/_/g,"")),c=i[0],(c==="-"||c==="+")&&(c==="-"&&(s=-1),i=i.slice(1),c=i[0]),i==="0")retur Line truncated
\r`;function iXn(n){if(n===null)return!1;var i,s,c=0,d=n.length,g=PMe;for(s=0;s<d;s++)if(i=g.indexOf(n.charAt(s)),!(i>64)){if(i<0)return!1;c+=6}return c%8===0}function oXn(n){var i,s,c=n.replace(/[\r\n=]/g,""),d=c.length,g=PMe,b=0,w=[];for(i=0;i<d;i++)i%4===0&&i&&(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(c.charAt(i));return s=d%4*6,s===0?(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)):s===18?(w.push(b>>10&255),w.push(b>>2&255)):s===12&&w.push(b>>4&255),new Uint8Array(w)}function sXn(n){var i="",s=0,c,d,g=n.length,b=PMe;for(c=0;c<g;c++)c%3===0&&c&&(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]),s=(s<<8)+n[c];return d=g%3,d===0?(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]):d===2?(i+=b[s>>10&63],i+=b[s>>4&63],i+=b[s<<2&63],i+=b[64]):d===1&&(i+=b[s>>2&63],i+=b[s<<4&63],i+=b[64],i+=b[64]),i}function aXn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var uXn=new Bp("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iXn,construct:oXn,predicate:aXn,represent:sXn}),cXn=Object.prototype.hasOwnProperty,lXn=Object.prototype.toString;function dXn(n){if(n===null)return!0;var i=[],s,c,d,g,b,w=n;for(s=0,c=w.length;s<c;s+=1){if(d=w[s],b=!1,lXn.call(d)!=="[object Object]")return!1;for(g in d)if(cXn.call(d,g))if(!b)b=!0;else return!1;if(!b)return!1;if(i.indexOf(g)===-1)i.push(g);else return!1}return!0}function fXn(n){return n!==null?n:[]}var hXn=new Bp("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dXn,construct:fXn}),pXn=Object.prototype.toString;function gXn(n){if(n===null)return!0;var i,s,c,d,g,b=n;for(g=new Array(b.length),i=0,s=b.length;i<s;i+=1){if(c=b[i],pXn.call(c)!=="[object Object]"||(d=Object.keys(c),d.length!==1))return!1;g[i]=[d[0],c[d[0]]]}return!0}function bXn(n){if(n===null)return[];var i,s,c,d,g,b=n;for(g=new Array(b.length),i=0,s=b.length;i<s;i+=1)c=b[i],d=Object.keys(c),g[i]=[d[0],c[d[0]]];return g}var mXn=new Bp("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gXn,construct:bXn}),wXn=Object.prototype.hasOwnProperty;function yXn(n){if(n===null)return!0;var i,s=n;for(i in s)if(wXn.call(s,i)&&s[i]!==null)return!1;return!0}function vXn(n){return n!==null?n:{}}var EXn=new Bp("tag:yaml.org,2002:set",{kind:"mapping",resolve:yXn,construct:vXn}),CWt=XJn.extend({implicit:[tXn,rXn],explicit:[uXn,hXn,mXn,EXn]}),bN=Object.prototype.hasOwnProperty,lse=1,IWt=2,RWt=3,dse=4,BOe=1,SXn=2,TFt=3,TXn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AXn=/[\x85\u2028\u2029]/,_Xn=/[,\[\]\{\}]/,OWt=/^(?:!|!!|![a-z\-]+!)$/i,DWt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function AFt(n){return Object.prototype.toString.call(n)}function U2(n){return n===10||n===13}function rR(n){return n===9||n===32}function ub(n){return n===9||n===32||n===10||n===13}function V5(n){return n===44||n===91||n===93||n===123||n===125}function xXn(n){var i;return 48<=n&&n<=57?n-48:(i=n|32,97<=i&&i<=102?i-97+10:-1)}function kXn(n){return n===120?2:n===117?4:n===85?8:0}function NXn(n){return 48<=n&&n<=57?n-48:-1}function _Ft(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
`:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"…":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function CXn(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function LWt(n,i,s){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):n[i]=s}var MWt=new Array(256),PWt=new Array(256);for(var E5=0;E5<256;E5++)MWt[E5]=_Ft(E5)?1:0,PWt[E5]=_Ft(E5);function IXn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||CWt,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jWt(n,i){var s={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return s.snippet=mJn(s),new ib(i,s)}function ki(n,i){throw jWt(n,i)}function fse(n,i){n.onWarning&&n.onWarning.call(null,jWt(n,i))}var xFt={YAML:function(i,s,c){var d,g,b;i.version!==null&&ki(i,"duplication of %YAML directive"),c.length!==1&&ki(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[0]),d===null&&ki(i,"ill-formed argument of the YAML directive"),g=parseInt(d[1],10),b=parseInt(d[2],10),g!==1&&ki(i,"unacceptable YAML version of the document"),i.version=c[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&fse(i,"unsupported YAML version of the document")},TAG:function(i,s,c){var d,g;c.length!==2&&ki(i,"TAG directive accepts exactly two arguments"),d=c[0],g=c[1],OWt.test(d)||ki(i,"ill-formed tag handle (first argument) of the TAG directive"),bN.call(i.tagMap,d)&&ki(i,'there is a previously declared suffix for "'+d+'" tag handle'),DWt.test(g)||ki(i,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{ki(i,"tag prefix is malformed: "+g)}i.tagMap[d]=g}};function eN(n,i,s,c){var d,g,b,w;if(i<s){if(w=n.input.slice(i,s),c)for(d=0,g=w.length;d<g;d+=1)b=w.charCodeAt(d),b===9||32<=b&&b<=1114111||ki(n,"expected valid JSON character");else TXn.test(w)&&ki(n,"the stream contains non-printable characters");n.result+=w}}function kFt(n,i,s,c){var d,g,b,w;for(vf.isObject(s)||ki(n,"cannot merge mappings; the provided source object is unacceptable"),d=Object.keys(s),b=0,w=d.length;b<w;b+=1)g=d[b],bN.call(i,g)||(LWt(i,g,s[g]),c[g]=!0)}function W5(n,i,s,c,d,g,b,w,E){var S,x;if(Array.isArray(d))for(d=Array.prototype.slice.call(d),S=0,x=d.length;S<x;S+=1)Array.isArray(d[S])&&ki(n,"nested arrays are not supported inside keys"),typeof d=="object"&&AFt(d[S])==="[object Object]"&&(d[S]="[object Object]");if(typeof d=="object"&&AFt(d)==="[object Object]"&&(d="[object Object]"),d=String(d),i===null&&(i={}),c==="tag:yaml.org,2002:merge")if(Array.isArray(g))for(S=0,x=g.length;S<x;S+=1)kFt(n,i,g[S],s);else kFt(n,i,g,s);else!n.json&&!bN.call(s,d)&&bN.call(i,d)&&(n.line=b||n.line,n.lineStart=w||n.lineStart,n.position=E||n.position,ki(n,"duplicated mapping key")),LWt(i,d,g),delete s[d];return i}function jMe(n){var i;i=n.input.charCodeAt(n.position),i===10?n.position++:i===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):ki(n,"a line break is expected"),n.line+=1,n.lineStart=n.position,n.firstTabInLine=-1}function $d(n,i,s){for(var c=0,d=n.input.charCodeAt(n.position);d!==0;){for(;rR(d);)d===9&&n.firstTabInLine===-1&&(n.firstTabInLine=n.position),d=n.input.charCodeAt(++n.position);if(i&&d===35)do d=n.input.charCodeAt(++n.position);while(d!==10&&d!==13&&d!==0);if(U2(d))for(jMe(n),d=n.input.charCodeAt(n.position),c++,n.lineIndent=0;d===32;)n.lineIndent++,d=n.input.charCodeAt(++n.position);else break}return s!==-1&&c!==0&&n.lineIndent<s&&fse(n,"deficient indentation"),c}function Hae(n){var i=n.position,s;return s=n.input.charCodeAt(i),!!((s===45||s===46)&&s===n.input.charCodeAt(i+1)&&s===n.input.charCodeAt(i+2)&&(i+=3,s=n.input.charCodeAt(i),s===0||ub(s)))}function FMe(n,i){i===1?n.result+=" ":i>1&&(n.result+=vf.repeat(`
`,i-1))}function RXn(n,i,s){var c,d,g,b,w,E,S,x,A=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||V5(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d)))return!1;for(n.kind="scalar",n.result="",g=b=n.position,w=!1;R!==0;){if(R===58){if(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d))break}else if(R===35){if(c=n.input.charCodeAt(n.position-1),ub(c))break}else{if(n.position===n.lineStart&&Hae(n)||s&&V5(R))break;if(U2(R))if(E=n.line,S=n.lineStart,x=n.lineIndent,$d(n,!1,-1),n.lineIndent>=i){w=!0,R=n.input.charCodeAt(n.position);continue}else{n.position=b,n.line=E,n.lineStart=S,n.lineIndent=x;break}}w&&(eN(n,g,b,!1),FMe(n,n.line-E),g=b=n.position,w=!1),rR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return eN(n,g,b,!1),n.result?!0:(n.kind=A,n.result=C,!1)}function OXn(n,i){var s,c,d;if(s=n.input.charCodeAt(n.position),s!==39)return!1;for(n.kind="scalar",n.result="",n.position++,c=d=n.position;(s=n.input.charCodeAt(n.position))!==0;)if(s===39)if(eN(n,c,n.position,!0),s=n.input.charCodeAt(++n.position),s===39)c=n.position,n.position++,d=n.position;else return!0;else U2(s)?(eN(n,c,d,!0),FMe(n,$d(n,!1,i)),c=d=n.position):n.position===n.lineStart&&Hae(n)?ki(n,"unexpected end of the document within a single quoted scalar"):(n.position++,d=n.position);ki(n,"unexpected end of the stream within a single quoted scalar")}function DXn(n,i){var s,c,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,s=c=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return eN(n,s,n.position,!0),n.position++,!0;if(w===92){if(eN(n,s,n.position,!0),w=n.input.charCodeAt(++n.position),U2(w))$d(n,!1,i);else if(w<256&&MWt[w])n.result+=PWt[w],n.position++;else if((b=kXn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=xXn(w))>=0?g=(g<<4)+b:ki(n,"expected hexadecimal character");n.result+=CXn(g),n.position++}else ki(n,"unknown escape sequence");s=c=n.position}else U2(w)?(eN(n,s,c,!0),FMe(n,$d(n,!1,i)),s=c=n.position):n.position===n.lineStart&&Hae(n)?ki(n,"unexpected end of the document within a double quoted scalar"):(n.position++,c=n.position)}ki(n,"unexpected end of the stream within a double quoted scalar")}function LXn(n,i){var s=!0,c,d,g,b=n.tag,w,E=n.anchor,S,x,A,C,R,L=Object.create(null),D,B,$,j;if(j=n.input.charCodeAt(n.position),j===91)x=93,R=!1,w=[];else if(j===123)x=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),j=n.input.charCodeAt(++n.position);j!==0;){if($d(n,!0,i),j=n.input.charCodeAt(n.position),j===x)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;s?j===44&&ki(n,"expected the node content, but found ','"):ki(n,"missed comma between flow collection entries"),B=D=$=null,A=C=!1,j===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(A=C=!0,n.position++,$d(n,!0,i))),c=n.line,d=n.lineStart,g=n.position,IM(n,i,lse,!1,!0),B=n.tag,D=n.result,$d(n,!0,i),j=n.input.charCodeAt(n.position),(C||n.line===c)&&j===58&&(A=!0,j=n.input.charCodeAt(++n.position),$d(n,!0,i),IM(n,i,lse,!1,!0),$=n.result),R?W5(n,w,L,B,D,$,c,d,g):A?w.push(W5(n,null,L,B,D,$,c,d,g)):w.push(D),$d(n,!0,i),j=n.input.charCodeAt(n.position),j===44?(s=!0,j=n.input.charCodeAt(++n.position)):s=!1}ki(n,"unexpected end of the stream within a flow collection")}function MXn(n,i){var s,c,d=BOe,g=!1,b=!1,w=i,E=0,S=!1,x,A;if(A=n.input.charCodeAt(n.position),A===124)c=!1;else if(A===62)c=!0;else return!1;for(n.kind="scalar",n.result="";A!==0;)if(A=n.input.charCodeAt(++n.position),A===43||A===45)BOe===d?d=A===43?TFt:SXn:ki(n,"repeat of a chomping mode identifier");else if((x=NXn(A))>=0)x===0?ki(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?ki(n,"repeat of an indentation width identifier"):(w=i+x-1,b=!0);else break;if(rR(A)){do A=n.input.charCodeAt(++n.position);while(rR(A));if(A===35)do A=n.input.charCodeAt(++n.position);while(!U2(A)&&A!==0)}for(;A!==0;){for(jMe(n),n.lineIndent=0,A=n.input.charCodeAt(n.position);(!b||n.lineIndent<w)&&A===32;)n.lineIndent++,A=n.input.charCodeAt(++n.position);if(!b&&n.lineIndent>w&&(w=n.lineIndent),U2(A)){E++;continue}if(n.lineIndent<w){d===TFt?n.result+=vf.repeat(`
`,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=FOe(n.buffer,u[b+E],d[b+E],n.position-(u[b]-u[b+E]),A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+E+1).toString(),x)+" | "+S.str+`
`;return w.replace(/\n$/,"")}var SJn=EJn,TJn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AJn=["scalar","sequence","mapping"];function _Jn(n){var i={};return n!==null&&Object.keys(n).forEach(function(s){n[s].forEach(function(u){i[String(u)]=s})}),i}function xJn(n,i){if(i=i||{},Object.keys(i).forEach(function(s){if(TJn.indexOf(s)===-1)throw new ib('Unknown option "'+s+'" is met in definition of "'+n+'" YAML type.')}),this.options=i,this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(s){return s},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=_Jn(i.styleAliases||null),AJn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var Bp=xJn;function TFt(n,i){var s=[];return n[i].forEach(function(u){var d=s.length;s.forEach(function(g,b){g.tag===u.tag&&g.kind===u.kind&&g.multi===u.multi&&(d=b)}),s[d]=u}),s}function kJn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,s;function u(d){d.multi?(n.multi[d.kind].push(d),n.multi.fallback.push(d)):n[d.kind][d.tag]=n.fallback[d.tag]=d}for(i=0,s=arguments.length;i<s;i+=1)arguments[i].forEach(u);return n}function jLe(n){return this.extend(n)}jLe.prototype.extend=function(i){var s=[],u=[];if(i instanceof Bp)u.push(i);else if(Array.isArray(i))u=u.concat(i);else if(i&&(Array.isArray(i.implicit)||Array.isArray(i.explicit)))i.implicit&&(s=s.concat(i.implicit)),i.explicit&&(u=u.concat(i.explicit));else throw new ib("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(g){if(!(g instanceof Bp))throw new ib("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(g.loadKind&&g.loadKind!=="scalar")throw new ib("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(g.multi)throw new ib("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(g){if(!(g instanceof Bp))throw new ib("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var d=Object.create(jLe.prototype);return d.implicit=(this.implicit||[]).concat(s),d.explicit=(this.explicit||[]).concat(u),d.compiledImplicit=TFt(d,"implicit"),d.compiledExplicit=TFt(d,"explicit"),d.compiledTypeMap=kJn(d.compiledImplicit,d.compiledExplicit),d};var NJn=jLe,CJn=new Bp("tag:yaml.org,2002:str",{kind:"scalar",construct:function(n){return n!==null?n:""}}),IJn=new Bp("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(n){return n!==null?n:[]}}),RJn=new Bp("tag:yaml.org,2002:map",{kind:"mapping",construct:function(n){return n!==null?n:{}}}),OJn=new NJn({explicit:[CJn,IJn,RJn]});function LJn(n){if(n===null)return!0;var i=n.length;return i===1&&n==="~"||i===4&&(n==="null"||n==="Null"||n==="NULL")}function DJn(){return null}function MJn(n){return n===null}var PJn=new Bp("tag:yaml.org,2002:null",{kind:"scalar",resolve:LJn,construct:DJn,predicate:MJn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function jJn(n){if(n===null)return!1;var i=n.length;return i===4&&(n==="true"||n==="True"||n==="TRUE")||i===5&&(n==="false"||n==="False"||n==="FALSE")}function FJn(n){return n==="true"||n==="True"||n==="TRUE"}function $Jn(n){return Object.prototype.toString.call(n)==="[object Boolean]"}var BJn=new Bp("tag:yaml.org,2002:bool",{kind:"scalar",resolve:jJn,construct:FJn,predicate:$Jn,represent:{lowercase:function(n){return n?"true":"false"},uppercase:function(n){return n?"TRUE":"FALSE"},camelcase:function(n){return n?"True":"False"}},defaultStyle:"lowercase"});function UJn(n){return 48<=n&&n<=57||65<=n&&n<=70||97<=n&&n<=102}function HJn(n){return 48<=n&&n<=55}function zJn(n){return 48<=n&&n<=57}function GJn(n){if(n===null)return!1;var i=n.length,s=0,u=!1,d;if(!i)return!1;if(d=n[s],(d==="-"||d==="+")&&(d=n[++s]),d==="0"){if(s+1===i)return!0;if(d=n[++s],d==="b"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(d!=="0"&&d!=="1")return!1;u=!0}return u&&d!=="_"}if(d==="x"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(!UJn(n.charCodeAt(s)))return!1;u=!0}return u&&d!=="_"}if(d==="o"){for(s++;s<i;s++)if(d=n[s],d!=="_"){if(!HJn(n.charCodeAt(s)))return!1;u=!0}return u&&d!=="_"}}if(d==="_")return!1;for(;s<i;s++)if(d=n[s],d!=="_"){if(!zJn(n.charCodeAt(s)))return!1;u=!0}return!(!u||d==="_")}function qJn(n){var i=n,s=1,u;if(i.indexOf("_")!==-1&&(i=i.replace(/_/g,"")),u=i[0],(u==="-"||u==="+")&&(u==="-"&&(s=-1),i=i.slice(1),u=i[0]),i==="0")retur Line truncated
\r`;function cXn(n){if(n===null)return!1;var i,s,u=0,d=n.length,g=jMe;for(s=0;s<d;s++)if(i=g.indexOf(n.charAt(s)),!(i>64)){if(i<0)return!1;u+=6}return u%8===0}function lXn(n){var i,s,u=n.replace(/[\r\n=]/g,""),d=u.length,g=jMe,b=0,w=[];for(i=0;i<d;i++)i%4===0&&i&&(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(u.charAt(i));return s=d%4*6,s===0?(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)):s===18?(w.push(b>>10&255),w.push(b>>2&255)):s===12&&w.push(b>>4&255),new Uint8Array(w)}function dXn(n){var i="",s=0,u,d,g=n.length,b=jMe;for(u=0;u<g;u++)u%3===0&&u&&(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]),s=(s<<8)+n[u];return d=g%3,d===0?(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]):d===2?(i+=b[s>>10&63],i+=b[s>>4&63],i+=b[s<<2&63],i+=b[64]):d===1&&(i+=b[s>>2&63],i+=b[s<<4&63],i+=b[64],i+=b[64]),i}function fXn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var hXn=new Bp("tag:yaml.org,2002:binary",{kind:"scalar",resolve:cXn,construct:lXn,predicate:fXn,represent:dXn}),pXn=Object.prototype.hasOwnProperty,gXn=Object.prototype.toString;function bXn(n){if(n===null)return!0;var i=[],s,u,d,g,b,w=n;for(s=0,u=w.length;s<u;s+=1){if(d=w[s],b=!1,gXn.call(d)!=="[object Object]")return!1;for(g in d)if(pXn.call(d,g))if(!b)b=!0;else return!1;if(!b)return!1;if(i.indexOf(g)===-1)i.push(g);else return!1}return!0}function mXn(n){return n!==null?n:[]}var wXn=new Bp("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bXn,construct:mXn}),yXn=Object.prototype.toString;function vXn(n){if(n===null)return!0;var i,s,u,d,g,b=n;for(g=new Array(b.length),i=0,s=b.length;i<s;i+=1){if(u=b[i],yXn.call(u)!=="[object Object]"||(d=Object.keys(u),d.length!==1))return!1;g[i]=[d[0],u[d[0]]]}return!0}function EXn(n){if(n===null)return[];var i,s,u,d,g,b=n;for(g=new Array(b.length),i=0,s=b.length;i<s;i+=1)u=b[i],d=Object.keys(u),g[i]=[d[0],u[d[0]]];return g}var SXn=new Bp("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:vXn,construct:EXn}),TXn=Object.prototype.hasOwnProperty;function AXn(n){if(n===null)return!0;var i,s=n;for(i in s)if(TXn.call(s,i)&&s[i]!==null)return!1;return!0}function _Xn(n){return n!==null?n:{}}var xXn=new Bp("tag:yaml.org,2002:set",{kind:"mapping",resolve:AXn,construct:_Xn}),DWt=nXn.extend({implicit:[sXn,uXn],explicit:[hXn,wXn,SXn,xXn]}),bN=Object.prototype.hasOwnProperty,lse=1,MWt=2,PWt=3,dse=4,BOe=1,kXn=2,AFt=3,NXn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CXn=/[\x85\u2028\u2029]/,IXn=/[,\[\]\{\}]/,jWt=/^(?:!|!!|![a-z\-]+!)$/i,FWt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _Ft(n){return Object.prototype.toString.call(n)}function U2(n){return n===10||n===13}function rR(n){return n===9||n===32}function ub(n){return n===9||n===32||n===10||n===13}function V5(n){return n===44||n===91||n===93||n===123||n===125}function RXn(n){var i;return 48<=n&&n<=57?n-48:(i=n|32,97<=i&&i<=102?i-97+10:-1)}function OXn(n){return n===120?2:n===117?4:n===85?8:0}function LXn(n){return 48<=n&&n<=57?n-48:-1}function xFt(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
`:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"…":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function DXn(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function $Wt(n,i,s){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):n[i]=s}var BWt=new Array(256),UWt=new Array(256);for(var E5=0;E5<256;E5++)BWt[E5]=xFt(E5)?1:0,UWt[E5]=xFt(E5);function MXn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||DWt,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function HWt(n,i){var s={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return s.snippet=SJn(s),new ib(i,s)}function Ni(n,i){throw HWt(n,i)}function fse(n,i){n.onWarning&&n.onWarning.call(null,HWt(n,i))}var kFt={YAML:function(i,s,u){var d,g,b;i.version!==null&&Ni(i,"duplication of %YAML directive"),u.length!==1&&Ni(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(u[0]),d===null&&Ni(i,"ill-formed argument of the YAML directive"),g=parseInt(d[1],10),b=parseInt(d[2],10),g!==1&&Ni(i,"unacceptable YAML version of the document"),i.version=u[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&fse(i,"unsupported YAML version of the document")},TAG:function(i,s,u){var d,g;u.length!==2&&Ni(i,"TAG directive accepts exactly two arguments"),d=u[0],g=u[1],jWt.test(d)||Ni(i,"ill-formed tag handle (first argument) of the TAG directive"),bN.call(i.tagMap,d)&&Ni(i,'there is a previously declared suffix for "'+d+'" tag handle'),FWt.test(g)||Ni(i,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{Ni(i,"tag prefix is malformed: "+g)}i.tagMap[d]=g}};function eN(n,i,s,u){var d,g,b,w;if(i<s){if(w=n.input.slice(i,s),u)for(d=0,g=w.length;d<g;d+=1)b=w.charCodeAt(d),b===9||32<=b&&b<=1114111||Ni(n,"expected valid JSON character");else NXn.test(w)&&Ni(n,"the stream contains non-printable characters");n.result+=w}}function NFt(n,i,s,u){var d,g,b,w;for(vf.isObject(s)||Ni(n,"cannot merge mappings; the provided source object is unacceptable"),d=Object.keys(s),b=0,w=d.length;b<w;b+=1)g=d[b],bN.call(i,g)||($Wt(i,g,s[g]),u[g]=!0)}function W5(n,i,s,u,d,g,b,w,E){var S,x;if(Array.isArray(d))for(d=Array.prototype.slice.call(d),S=0,x=d.length;S<x;S+=1)Array.isArray(d[S])&&Ni(n,"nested arrays are not supported inside keys"),typeof d=="object"&&_Ft(d[S])==="[object Object]"&&(d[S]="[object Object]");if(typeof d=="object"&&_Ft(d)==="[object Object]"&&(d="[object Object]"),d=String(d),i===null&&(i={}),u==="tag:yaml.org,2002:merge")if(Array.isArray(g))for(S=0,x=g.length;S<x;S+=1)NFt(n,i,g[S],s);else NFt(n,i,g,s);else!n.json&&!bN.call(s,d)&&bN.call(i,d)&&(n.line=b||n.line,n.lineStart=w||n.lineStart,n.position=E||n.position,Ni(n,"duplicated mapping key")),$Wt(i,d,g),delete s[d];return i}function FMe(n){var i;i=n.input.charCodeAt(n.position),i===10?n.position++:i===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):Ni(n,"a line break is expected"),n.line+=1,n.lineStart=n.position,n.firstTabInLine=-1}function $d(n,i,s){for(var u=0,d=n.input.charCodeAt(n.position);d!==0;){for(;rR(d);)d===9&&n.firstTabInLine===-1&&(n.firstTabInLine=n.position),d=n.input.charCodeAt(++n.position);if(i&&d===35)do d=n.input.charCodeAt(++n.position);while(d!==10&&d!==13&&d!==0);if(U2(d))for(FMe(n),d=n.input.charCodeAt(n.position),u++,n.lineIndent=0;d===32;)n.lineIndent++,d=n.input.charCodeAt(++n.position);else break}return s!==-1&&u!==0&&n.lineIndent<s&&fse(n,"deficient indentation"),u}function Hae(n){var i=n.position,s;return s=n.input.charCodeAt(i),!!((s===45||s===46)&&s===n.input.charCodeAt(i+1)&&s===n.input.charCodeAt(i+2)&&(i+=3,s=n.input.charCodeAt(i),s===0||ub(s)))}function $Me(n,i){i===1?n.result+=" ":i>1&&(n.result+=vf.repeat(`
`,i-1))}function PXn(n,i,s){var u,d,g,b,w,E,S,x,A=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||V5(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d)))return!1;for(n.kind="scalar",n.result="",g=b=n.position,w=!1;R!==0;){if(R===58){if(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d))break}else if(R===35){if(u=n.input.charCodeAt(n.position-1),ub(u))break}else{if(n.position===n.lineStart&&Hae(n)||s&&V5(R))break;if(U2(R))if(E=n.line,S=n.lineStart,x=n.lineIndent,$d(n,!1,-1),n.lineIndent>=i){w=!0,R=n.input.charCodeAt(n.position);continue}else{n.position=b,n.line=E,n.lineStart=S,n.lineIndent=x;break}}w&&(eN(n,g,b,!1),$Me(n,n.line-E),g=b=n.position,w=!1),rR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return eN(n,g,b,!1),n.result?!0:(n.kind=A,n.result=C,!1)}function jXn(n,i){var s,u,d;if(s=n.input.charCodeAt(n.position),s!==39)return!1;for(n.kind="scalar",n.result="",n.position++,u=d=n.position;(s=n.input.charCodeAt(n.position))!==0;)if(s===39)if(eN(n,u,n.position,!0),s=n.input.charCodeAt(++n.position),s===39)u=n.position,n.position++,d=n.position;else return!0;else U2(s)?(eN(n,u,d,!0),$Me(n,$d(n,!1,i)),u=d=n.position):n.position===n.lineStart&&Hae(n)?Ni(n,"unexpected end of the document within a single quoted scalar"):(n.position++,d=n.position);Ni(n,"unexpected end of the stream within a single quoted scalar")}function FXn(n,i){var s,u,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,s=u=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return eN(n,s,n.position,!0),n.position++,!0;if(w===92){if(eN(n,s,n.position,!0),w=n.input.charCodeAt(++n.position),U2(w))$d(n,!1,i);else if(w<256&&BWt[w])n.result+=UWt[w],n.position++;else if((b=OXn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=RXn(w))>=0?g=(g<<4)+b:Ni(n,"expected hexadecimal character");n.result+=DXn(g),n.position++}else Ni(n,"unknown escape sequence");s=u=n.position}else U2(w)?(eN(n,s,u,!0),$Me(n,$d(n,!1,i)),s=u=n.position):n.position===n.lineStart&&Hae(n)?Ni(n,"unexpected end of the document within a double quoted scalar"):(n.position++,u=n.position)}Ni(n,"unexpected end of the stream within a double quoted scalar")}function $Xn(n,i){var s=!0,u,d,g,b=n.tag,w,E=n.anchor,S,x,A,C,R,D=Object.create(null),L,B,$,j;if(j=n.input.charCodeAt(n.position),j===91)x=93,R=!1,w=[];else if(j===123)x=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),j=n.input.charCodeAt(++n.position);j!==0;){if($d(n,!0,i),j=n.input.charCodeAt(n.position),j===x)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;s?j===44&&Ni(n,"expected the node content, but found ','"):Ni(n,"missed comma between flow collection entries"),B=L=$=null,A=C=!1,j===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(A=C=!0,n.position++,$d(n,!0,i))),u=n.line,d=n.lineStart,g=n.position,IM(n,i,lse,!1,!0),B=n.tag,L=n.result,$d(n,!0,i),j=n.input.charCodeAt(n.position),(C||n.line===u)&&j===58&&(A=!0,j=n.input.charCodeAt(++n.position),$d(n,!0,i),IM(n,i,lse,!1,!0),$=n.result),R?W5(n,w,D,B,L,$,u,d,g):A?w.push(W5(n,null,D,B,L,$,u,d,g)):w.push(L),$d(n,!0,i),j=n.input.charCodeAt(n.position),j===44?(s=!0,j=n.input.charCodeAt(++n.position)):s=!1}Ni(n,"unexpected end of the stream within a flow collection")}function BXn(n,i){var s,u,d=BOe,g=!1,b=!1,w=i,E=0,S=!1,x,A;if(A=n.input.charCodeAt(n.position),A===124)u=!1;else if(A===62)u=!0;else return!1;for(n.kind="scalar",n.result="";A!==0;)if(A=n.input.charCodeAt(++n.position),A===43||A===45)BOe===d?d=A===43?AFt:kXn:Ni(n,"repeat of a chomping mode identifier");else if((x=LXn(A))>=0)x===0?Ni(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?Ni(n,"repeat of an indentation width identifier"):(w=i+x-1,b=!0);else break;if(rR(A)){do A=n.input.charCodeAt(++n.position);while(rR(A));if(A===35)do A=n.input.charCodeAt(++n.position);while(!U2(A)&&A!==0)}for(;A!==0;){for(FMe(n),n.lineIndent=0,A=n.input.charCodeAt(n.position);(!b||n.lineIndent<w)&&A===32;)n.lineIndent++,A=n.input.charCodeAt(++n.position);if(!b&&n.lineIndent>w&&(w=n.lineIndent),U2(A)){E++;continue}if(n.lineIndent<w){d===AFt?n.result+=vf.repeat(`
`,g?1+E:E):d===BOe&&g&&(n.result+=`
`);break}for(c?rR(A)?(S=!0,n.result+=vf.repeat(`
`);break}for(u?rR(A)?(S=!0,n.result+=vf.repeat(`
`,g?1+E:E)):S?(S=!1,n.result+=vf.repeat(`
`,E+1)):E===0?g&&(n.result+=" "):n.result+=vf.repeat(`
`,E):n.result+=vf.repeat(`
`,g?1+E:E),g=!0,b=!0,E=0,s=n.position;!U2(A)&&A!==0;)A=n.input.charCodeAt(++n.position);eN(n,s,n.position,!1)}return!0}function NFt(n,i){var s,c=n.tag,d=n.anchor,g=[],b,w=!1,E;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=g),E=n.input.charCodeAt(n.position);E!==0&&(n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,ki(n,"tab characters must not be used in indentation")),!(E!==45||(b=n.input.charCodeAt(n.position+1),!ub(b))));){if(w=!0,n.position++,$d(n,!0,-1)&&n.lineIndent<=i){g.push(null),E=n.input.charCodeAt(n.position);continue}if(s=n.line,IM(n,i,RWt,!1,!0),g.push(n.result),$d(n,!0,-1),E=n.input.charCodeAt(n.position),(n.line===s||n.lineIndent>i)&&E!==0)ki(n,"bad indentation of a sequence entry");else if(n.lineIndent<i)break}return w?(n.tag=c,n.anchor=d,n.kind="sequence",n.result=g,!0):!1}function PXn(n,i,s){var c,d,g,b,w,E,S=n.tag,x=n.anchor,A={},C=Object.create(null),R=null,L=null,D=null,B=!1,$=!1,j;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=A),j=n.input.charCodeAt(n.position);j!==0;){if(!B&&n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,ki(n,"tab characters must not be used in indentation")),c=n.input.charCodeAt(n.position+1),g=n.line,(j===63||j===58)&&ub(c))j===63?(B&&(W5(n,A,C,R,L,null,b,w,E),R=L=D=null),$=!0,B=!0,d=!0):B?(B=!1,d=!0):ki(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,j=c;else{if(b=n.line,w=n.lineStart,E=n.position,!IM(n,s,IWt,!1,!0))break;if(n.line===g){for(j=n.input.charCodeAt(n.position);rR(j);)j=n.input.charCodeAt(++n.position);if(j===58)j=n.input.charCodeAt(++n.position),ub(j)||ki(n,"a whitespace character is expected after the key-value separator within a block mapping"),B&&(W5(n,A,C,R,L,null,b,w,E),R=L=D=null),$=!0,B=!1,d=!1,R=n.tag,L=n.result;else if($)ki(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=S,n.anchor=x,!0}else if($)ki(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=S,n.anchor=x,!0}if((n.line===g||n.lineIndent>i)&&(B&&(b=n.line,w=n.lineStart,E=n.position),IM(n,i,dse,!0,d)&&(B?L=n.result:D=n.result),B||(W5(n,A,C,R,L,D,b,w,E),R=L=D=null),$d(n,!0,-1),j=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&j!==0)ki(n,"bad indentation of a mapping entry");else if(n.lineIndent<i)break}return B&&W5(n,A,C,R,L,null,b,w,E),$&&(n.tag=S,n.anchor=x,n.kind="mapping",n.result=A),$}function jXn(n){var i,s=!1,c=!1,d,g,b;if(b=n.input.charCodeAt(n.position),b!==33)return!1;if(n.tag!==null&&ki(n,"duplication of a tag property"),b=n.input.charCodeAt(++n.position),b===60?(s=!0,b=n.input.charCodeAt(++n.position)):b===33?(c=!0,d="!!",b=n.input.charCodeAt(++n.position)):d="!",i=n.position,s){do b=n.input.charCodeAt(++n.position);while(b!==0&&b!==62);n.position<n.length?(g=n.input.slice(i,n.position),b=n.input.charCodeAt(++n.position)):ki(n,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!ub(b);)b===33&&(c?ki(n,"tag suffix cannot contain exclamation marks"):(d=n.input.slice(i-1,n.position+1),OWt.test(d)||ki(n,"named tag handle cannot contain such characters"),c=!0,i=n.position+1)),b=n.input.charCodeAt(++n.position);g=n.input.slice(i,n.position),_Xn.test(g)&&ki(n,"tag suffix cannot contain flow indicator characters")}g&&!DWt.test(g)&&ki(n,"tag name cannot contain such characters: "+g);try{g=decodeURIComponent(g)}catch{ki(n,"tag name is malformed: "+g)}return s?n.tag=g:bN.call(n.tagMap,d)?n.tag=n.tagMap[d]+g:d==="!"?n.tag="!"+g:d==="!!"?n.tag="tag:yaml.org,2002:"+g:ki(n,'undeclared tag handle "'+d+'"'),!0}function FXn(n){var i,s;if(s=n.input.charCodeAt(n.position),s!==38)return!1;for(n.anchor!==null&&ki(n,"duplication of an anchor property"),s=n.input.charCodeAt(++n.position),i=n.position;s!==0&&!ub(s)&&!V5(s);)s=n.input.charCodeAt(++n.position);return n.position===i&&ki(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(i,n.position),!0}function $Xn(n){var i,s,c;if(c=n.input.charCodeAt(n.position),c!==42)return!1;for(c=n.input.charCodeAt(++n.position),i=n.position;c!==0&&!ub(c)&&!V5(c);)c=n.input.charCodeAt(++n.position);return n.position===i&&ki(n,"name of an alias node must contain at least one character"),s=n.input.slice(i,n.position),bN.call(n.anchorMap,s)||ki(n,'unidentified alias "'+s+'"'),n.result=n.anchorMap[s],$d(n,!0,-1),!0}function IM(n,i,s,c,d){var g,b,w,E=1,S=!1,x=!1,A,C,R,L,D,B;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,g=b=w=dse===s||RWt===s,c&&$d(n,!0,-1)&&(S=!0,n.lineIndent>i?E=1:n.lineIndent===i?E=0:n.lineIndent<i&&(E=-1)),E===1)for(;jXn(n)||FXn(n);)$d(n,!0,-1)?(S=!0,w=g,n.lineIndent>i?E=1:n.lineIndent===i?E=0:n.lineIndent<i&&(E=-1)):w=!1;if(w&&(w=S||d),(E===1||dse===s)&&(lse===s||IWt===s?D=i:D=i+1,B=n.position-n.lineStart,E===1?w&&(NFt(n,B)||PXn(n,B,D))||LXn(n,D)?x=!0:(b&&MXn(n,D)||OXn(n,D)||DXn(n,D)?x=!0:$Xn(n)?(x=!0,(n.tag!==null Line truncated
`),n.charCodeAt(0)===65279&&(n=n.slice(1)));var s=new IXn(n,i),c=n.indexOf("\0");for(c!==-1&&(s.position=c,ki(s,"null byte is not allowed in input")),s.input+="\0";s.input.charCodeAt(s.position)===32;)s.lineIndent+=1,s.position+=1;for(;s.position<s.length-1;)BXn(s);return s.documents}function HXn(n,i){var s=UXn(n,i);if(s.length!==0){if(s.length===1)return s[0];throw new ib("expected a single document in the stream, but found more")}}var zXn=HXn,GXn={load:zXn},FWt=Object.prototype.toString,$Wt=Object.prototype.hasOwnProperty,$Me=65279,qXn=9,az=10,VXn=13,WXn=32,KXn=33,YXn=34,FDe=35,JXn=37,XXn=38,ZXn=39,QXn=42,BWt=44,eZn=45,hse=58,tZn=61,nZn=62,rZn=63,iZn=64,UWt=91,HWt=93,oZn=96,zWt=123,sZn=124,GWt=125,qp={};qp[0]="\\0";qp[7]="\\a";qp[8]="\\b";qp[9]="\\t";qp[10]="\\n";qp[11]="\\v";qp[12]="\\f";qp[13]="\\r";qp[27]="\\e";qp[34]='\\"';qp[92]="\\\\";qp[133]="\\N";qp[160]="\\_";qp[8232]="\\L";qp[8233]="\\P";var aZn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],uZn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function cZn(n,i){var s,c,d,g,b,w,E;if(i===null)return{};for(s={},c=Object.keys(i),d=0,g=c.length;d<g;d+=1)b=c[d],w=String(i[b]),b.slice(0,2)==="!!"&&(b="tag:yaml.org,2002:"+b.slice(2)),E=n.compiledTypeMap.fallback[b],E&&$Wt.call(E.styleAliases,w)&&(w=E.styleAliases[w]),s[b]=w;return s}function lZn(n){var i,s,c;if(i=n.toString(16).toUpperCase(),n<=255)s="x",c=2;else if(n<=65535)s="u",c=4;else if(n<=4294967295)s="U",c=8;else throw new ib("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+s+vf.repeat("0",c-i.length)+i}var dZn=1,uz=2;function fZn(n){this.schema=n.schema||CWt,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=vf.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=cZn(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?uz:dZn,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function CFt(n,i){for(var s=vf.repeat(" ",i),c=0,d=-1,g="",b,w=n.length;c<w;)d=n.indexOf(`
`,c),d===-1?(b=n.slice(c),c=w):(b=n.slice(c,d+1),c=d+1),b.length&&b!==`
`&&(g+=s),g+=b;return g}function $De(n,i){return`
`+vf.repeat(" ",n.indent*i)}function hZn(n,i){var s,c,d;for(s=0,c=n.implicitTypes.length;s<c;s+=1)if(d=n.implicitTypes[s],d.resolve(i))return!0;return!1}function pse(n){return n===WXn||n===qXn}function cz(n){return 32<=n&&n<=126||161<=n&&n<=55295&&n!==8232&&n!==8233||57344<=n&&n<=65533&&n!==$Me||65536<=n&&n<=1114111}function IFt(n){return cz(n)&&n!==$Me&&n!==VXn&&n!==az}function RFt(n,i,s){var c=IFt(n),d=c&&!pse(n);return(s?c:c&&n!==BWt&&n!==UWt&&n!==HWt&&n!==zWt&&n!==GWt)&&n!==FDe&&!(i===hse&&!d)||IFt(i)&&!pse(i)&&n===FDe||i===hse&&d}function pZn(n){return cz(n)&&n!==$Me&&!pse(n)&&n!==eZn&&n!==rZn&&n!==hse&&n!==BWt&&n!==UWt&&n!==HWt&&n!==zWt&&n!==GWt&&n!==FDe&&n!==XXn&&n!==QXn&&n!==KXn&&n!==sZn&&n!==tZn&&n!==nZn&&n!==ZXn&&n!==YXn&&n!==JXn&&n!==iZn&&n!==oZn}function gZn(n){return!pse(n)&&n!==hse}function rH(n,i){var s=n.charCodeAt(i),c;return s>=55296&&s<=56319&&i+1<n.length&&(c=n.charCodeAt(i+1),c>=56320&&c<=57343)?(s-55296)*1024+c-56320+65536:s}function qWt(n){var i=/^\n* /;return i.test(n)}var VWt=1,BDe=2,WWt=3,KWt=4,x5=5;function bZn(n,i,s,c,d,g,b,w){var E,S=0,x=null,A=!1,C=!1,R=c!==-1,L=-1,D=pZn(rH(n,0))&&gZn(rH(n,n.length-1));if(i||b)for(E=0;E<n.length;S>=65536?E+=2:E++){if(S=rH(n,E),!cz(S))return x5;D=D&&RFt(S,x,w),x=S}else{for(E=0;E<n.length;S>=65536?E+=2:E++){if(S=rH(n,E),S===az)A=!0,R&&(C=C||E-L-1>c&&n[L+1]!==" ",L=E);else if(!cz(S))return x5;D=D&&RFt(S,x,w),x=S}C=C||R&&E-L-1>c&&n[L+1]!==" "}return!A&&!C?D&&!b&&!d(n)?VWt:g===uz?x5:BDe:s>9&&qWt(n)?x5:b?g===uz?x5:BDe:C?KWt:WWt}function mZn(n,i,s,c,d){n.dump=function(){if(i.length===0)return n.quotingType===uz?'""':"''";if(!n.noCompatMode&&(aZn.indexOf(i)!==-1||uZn.test(i)))return n.quotingType===uz?'"'+i+'"':"'"+i+"'";var g=n.indent*Math.max(1,s),b=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),w=c||n.flowLevel>-1&&s>=n.flowLevel;function E(S){return hZn(n,S)}switch(bZn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!c,d)){case VWt:return i;case BDe:return"'"+i.replace(/'/g,"''")+"'";case WWt:return"|"+OFt(i,n.indent)+DFt(CFt(i,g));case KWt:return">"+OFt(i,n.indent)+DFt(CFt(wZn(i,b),g));case x5:return'"'+yZn(i)+'"';default:throw new ib("impossible error: invalid scalar style")}}()}function OFt(n,i){var s=qWt(n)?String(i):"",c=n[n.length-1]===`
`,d=c&&(n[n.length-2]===`
`,g?1+E:E),g=!0,b=!0,E=0,s=n.position;!U2(A)&&A!==0;)A=n.input.charCodeAt(++n.position);eN(n,s,n.position,!1)}return!0}function CFt(n,i){var s,u=n.tag,d=n.anchor,g=[],b,w=!1,E;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=g),E=n.input.charCodeAt(n.position);E!==0&&(n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,Ni(n,"tab characters must not be used in indentation")),!(E!==45||(b=n.input.charCodeAt(n.position+1),!ub(b))));){if(w=!0,n.position++,$d(n,!0,-1)&&n.lineIndent<=i){g.push(null),E=n.input.charCodeAt(n.position);continue}if(s=n.line,IM(n,i,PWt,!1,!0),g.push(n.result),$d(n,!0,-1),E=n.input.charCodeAt(n.position),(n.line===s||n.lineIndent>i)&&E!==0)Ni(n,"bad indentation of a sequence entry");else if(n.lineIndent<i)break}return w?(n.tag=u,n.anchor=d,n.kind="sequence",n.result=g,!0):!1}function UXn(n,i,s){var u,d,g,b,w,E,S=n.tag,x=n.anchor,A={},C=Object.create(null),R=null,D=null,L=null,B=!1,$=!1,j;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=A),j=n.input.charCodeAt(n.position);j!==0;){if(!B&&n.firstTabInLine!==-1&&(n.position=n.firstTabInLine,Ni(n,"tab characters must not be used in indentation")),u=n.input.charCodeAt(n.position+1),g=n.line,(j===63||j===58)&&ub(u))j===63?(B&&(W5(n,A,C,R,D,null,b,w,E),R=D=L=null),$=!0,B=!0,d=!0):B?(B=!1,d=!0):Ni(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,j=u;else{if(b=n.line,w=n.lineStart,E=n.position,!IM(n,s,MWt,!1,!0))break;if(n.line===g){for(j=n.input.charCodeAt(n.position);rR(j);)j=n.input.charCodeAt(++n.position);if(j===58)j=n.input.charCodeAt(++n.position),ub(j)||Ni(n,"a whitespace character is expected after the key-value separator within a block mapping"),B&&(W5(n,A,C,R,D,null,b,w,E),R=D=L=null),$=!0,B=!1,d=!1,R=n.tag,D=n.result;else if($)Ni(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=S,n.anchor=x,!0}else if($)Ni(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=S,n.anchor=x,!0}if((n.line===g||n.lineIndent>i)&&(B&&(b=n.line,w=n.lineStart,E=n.position),IM(n,i,dse,!0,d)&&(B?D=n.result:L=n.result),B||(W5(n,A,C,R,D,L,b,w,E),R=D=L=null),$d(n,!0,-1),j=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&j!==0)Ni(n,"bad indentation of a mapping entry");else if(n.lineIndent<i)break}return B&&W5(n,A,C,R,D,null,b,w,E),$&&(n.tag=S,n.anchor=x,n.kind="mapping",n.result=A),$}function HXn(n){var i,s=!1,u=!1,d,g,b;if(b=n.input.charCodeAt(n.position),b!==33)return!1;if(n.tag!==null&&Ni(n,"duplication of a tag property"),b=n.input.charCodeAt(++n.position),b===60?(s=!0,b=n.input.charCodeAt(++n.position)):b===33?(u=!0,d="!!",b=n.input.charCodeAt(++n.position)):d="!",i=n.position,s){do b=n.input.charCodeAt(++n.position);while(b!==0&&b!==62);n.position<n.length?(g=n.input.slice(i,n.position),b=n.input.charCodeAt(++n.position)):Ni(n,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!ub(b);)b===33&&(u?Ni(n,"tag suffix cannot contain exclamation marks"):(d=n.input.slice(i-1,n.position+1),jWt.test(d)||Ni(n,"named tag handle cannot contain such characters"),u=!0,i=n.position+1)),b=n.input.charCodeAt(++n.position);g=n.input.slice(i,n.position),IXn.test(g)&&Ni(n,"tag suffix cannot contain flow indicator characters")}g&&!FWt.test(g)&&Ni(n,"tag name cannot contain such characters: "+g);try{g=decodeURIComponent(g)}catch{Ni(n,"tag name is malformed: "+g)}return s?n.tag=g:bN.call(n.tagMap,d)?n.tag=n.tagMap[d]+g:d==="!"?n.tag="!"+g:d==="!!"?n.tag="tag:yaml.org,2002:"+g:Ni(n,'undeclared tag handle "'+d+'"'),!0}function zXn(n){var i,s;if(s=n.input.charCodeAt(n.position),s!==38)return!1;for(n.anchor!==null&&Ni(n,"duplication of an anchor property"),s=n.input.charCodeAt(++n.position),i=n.position;s!==0&&!ub(s)&&!V5(s);)s=n.input.charCodeAt(++n.position);return n.position===i&&Ni(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(i,n.position),!0}function GXn(n){var i,s,u;if(u=n.input.charCodeAt(n.position),u!==42)return!1;for(u=n.input.charCodeAt(++n.position),i=n.position;u!==0&&!ub(u)&&!V5(u);)u=n.input.charCodeAt(++n.position);return n.position===i&&Ni(n,"name of an alias node must contain at least one character"),s=n.input.slice(i,n.position),bN.call(n.anchorMap,s)||Ni(n,'unidentified alias "'+s+'"'),n.result=n.anchorMap[s],$d(n,!0,-1),!0}function IM(n,i,s,u,d){var g,b,w,E=1,S=!1,x=!1,A,C,R,D,L,B;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,g=b=w=dse===s||PWt===s,u&&$d(n,!0,-1)&&(S=!0,n.lineIndent>i?E=1:n.lineIndent===i?E=0:n.lineIndent<i&&(E=-1)),E===1)for(;HXn(n)||zXn(n);)$d(n,!0,-1)?(S=!0,w=g,n.lineIndent>i?E=1:n.lineIndent===i?E=0:n.lineIndent<i&&(E=-1)):w=!1;if(w&&(w=S||d),(E===1||dse===s)&&(lse===s||MWt===s?L=i:L=i+1,B=n.position-n.lineStart,E===1?w&&(CFt(n,B)||UXn(n,B,L))||$Xn(n,L)?x=!0:(b&&BXn(n,L)||jXn(n,L)||FXn(n,L)?x=!0:GXn(n)?(x=!0,(n.tag!==null Line truncated
`),n.charCodeAt(0)===65279&&(n=n.slice(1)));var s=new MXn(n,i),u=n.indexOf("\0");for(u!==-1&&(s.position=u,Ni(s,"null byte is not allowed in input")),s.input+="\0";s.input.charCodeAt(s.position)===32;)s.lineIndent+=1,s.position+=1;for(;s.position<s.length-1;)qXn(s);return s.documents}function WXn(n,i){var s=VXn(n,i);if(s.length!==0){if(s.length===1)return s[0];throw new ib("expected a single document in the stream, but found more")}}var KXn=WXn,YXn={load:KXn},zWt=Object.prototype.toString,GWt=Object.prototype.hasOwnProperty,BMe=65279,JXn=9,uz=10,XXn=13,ZXn=32,QXn=33,eZn=34,FLe=35,tZn=37,nZn=38,rZn=39,iZn=42,qWt=44,oZn=45,hse=58,sZn=61,aZn=62,uZn=63,cZn=64,VWt=91,WWt=93,lZn=96,KWt=123,dZn=124,YWt=125,qp={};qp[0]="\\0";qp[7]="\\a";qp[8]="\\b";qp[9]="\\t";qp[10]="\\n";qp[11]="\\v";qp[12]="\\f";qp[13]="\\r";qp[27]="\\e";qp[34]='\\"';qp[92]="\\\\";qp[133]="\\N";qp[160]="\\_";qp[8232]="\\L";qp[8233]="\\P";var fZn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hZn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function pZn(n,i){var s,u,d,g,b,w,E;if(i===null)return{};for(s={},u=Object.keys(i),d=0,g=u.length;d<g;d+=1)b=u[d],w=String(i[b]),b.slice(0,2)==="!!"&&(b="tag:yaml.org,2002:"+b.slice(2)),E=n.compiledTypeMap.fallback[b],E&&GWt.call(E.styleAliases,w)&&(w=E.styleAliases[w]),s[b]=w;return s}function gZn(n){var i,s,u;if(i=n.toString(16).toUpperCase(),n<=255)s="x",u=2;else if(n<=65535)s="u",u=4;else if(n<=4294967295)s="U",u=8;else throw new ib("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+s+vf.repeat("0",u-i.length)+i}var bZn=1,cz=2;function mZn(n){this.schema=n.schema||DWt,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=vf.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=pZn(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?cz:bZn,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function IFt(n,i){for(var s=vf.repeat(" ",i),u=0,d=-1,g="",b,w=n.length;u<w;)d=n.indexOf(`
`,u),d===-1?(b=n.slice(u),u=w):(b=n.slice(u,d+1),u=d+1),b.length&&b!==`
`&&(g+=s),g+=b;return g}function $Le(n,i){return`
`+vf.repeat(" ",n.indent*i)}function wZn(n,i){var s,u,d;for(s=0,u=n.implicitTypes.length;s<u;s+=1)if(d=n.implicitTypes[s],d.resolve(i))return!0;return!1}function pse(n){return n===ZXn||n===JXn}function lz(n){return 32<=n&&n<=126||161<=n&&n<=55295&&n!==8232&&n!==8233||57344<=n&&n<=65533&&n!==BMe||65536<=n&&n<=1114111}function RFt(n){return lz(n)&&n!==BMe&&n!==XXn&&n!==uz}function OFt(n,i,s){var u=RFt(n),d=u&&!pse(n);return(s?u:u&&n!==qWt&&n!==VWt&&n!==WWt&&n!==KWt&&n!==YWt)&&n!==FLe&&!(i===hse&&!d)||RFt(i)&&!pse(i)&&n===FLe||i===hse&&d}function yZn(n){return lz(n)&&n!==BMe&&!pse(n)&&n!==oZn&&n!==uZn&&n!==hse&&n!==qWt&&n!==VWt&&n!==WWt&&n!==KWt&&n!==YWt&&n!==FLe&&n!==nZn&&n!==iZn&&n!==QXn&&n!==dZn&&n!==sZn&&n!==aZn&&n!==rZn&&n!==eZn&&n!==tZn&&n!==cZn&&n!==lZn}function vZn(n){return!pse(n)&&n!==hse}function rH(n,i){var s=n.charCodeAt(i),u;return s>=55296&&s<=56319&&i+1<n.length&&(u=n.charCodeAt(i+1),u>=56320&&u<=57343)?(s-55296)*1024+u-56320+65536:s}function JWt(n){var i=/^\n* /;return i.test(n)}var XWt=1,BLe=2,ZWt=3,QWt=4,x5=5;function EZn(n,i,s,u,d,g,b,w){var E,S=0,x=null,A=!1,C=!1,R=u!==-1,D=-1,L=yZn(rH(n,0))&&vZn(rH(n,n.length-1));if(i||b)for(E=0;E<n.length;S>=65536?E+=2:E++){if(S=rH(n,E),!lz(S))return x5;L=L&&OFt(S,x,w),x=S}else{for(E=0;E<n.length;S>=65536?E+=2:E++){if(S=rH(n,E),S===uz)A=!0,R&&(C=C||E-D-1>u&&n[D+1]!==" ",D=E);else if(!lz(S))return x5;L=L&&OFt(S,x,w),x=S}C=C||R&&E-D-1>u&&n[D+1]!==" "}return!A&&!C?L&&!b&&!d(n)?XWt:g===cz?x5:BLe:s>9&&JWt(n)?x5:b?g===cz?x5:BLe:C?QWt:ZWt}function SZn(n,i,s,u,d){n.dump=function(){if(i.length===0)return n.quotingType===cz?'""':"''";if(!n.noCompatMode&&(fZn.indexOf(i)!==-1||hZn.test(i)))return n.quotingType===cz?'"'+i+'"':"'"+i+"'";var g=n.indent*Math.max(1,s),b=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),w=u||n.flowLevel>-1&&s>=n.flowLevel;function E(S){return wZn(n,S)}switch(EZn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!u,d)){case XWt:return i;case BLe:return"'"+i.replace(/'/g,"''")+"'";case ZWt:return"|"+LFt(i,n.indent)+DFt(IFt(i,g));case QWt:return">"+LFt(i,n.indent)+DFt(IFt(TZn(i,b),g));case x5:return'"'+AZn(i)+'"';default:throw new ib("impossible error: invalid scalar style")}}()}function LFt(n,i){var s=JWt(n)?String(i):"",u=n[n.length-1]===`
`,d=u&&(n[n.length-2]===`
`||n===`
`),g=d?"+":c?"":"-";return s+g+`
`),g=d?"+":u?"":"-";return s+g+`
`}function DFt(n){return n[n.length-1]===`
`?n.slice(0,-1):n}function wZn(n,i){for(var s=/(\n+)([^\n]*)/g,c=function(){var S=n.indexOf(`
`);return S=S!==-1?S:n.length,s.lastIndex=S,LFt(n.slice(0,S),i)}(),d=n[0]===`
`||n[0]===" ",g,b;b=s.exec(n);){var w=b[1],E=b[2];g=E[0]===" ",c+=w+(!d&&!g&&E!==""?`
`:"")+LFt(E,i),d=g}return c}function LFt(n,i){if(n===""||n[0]===" ")return n;for(var s=/ [^ ]/g,c,d=0,g,b=0,w=0,E="";c=s.exec(n);)w=c.index,w-d>i&&(g=b>d?b:w,E+=`
`?n.slice(0,-1):n}function TZn(n,i){for(var s=/(\n+)([^\n]*)/g,u=function(){var S=n.indexOf(`
`);return S=S!==-1?S:n.length,s.lastIndex=S,MFt(n.slice(0,S),i)}(),d=n[0]===`
`||n[0]===" ",g,b;b=s.exec(n);){var w=b[1],E=b[2];g=E[0]===" ",u+=w+(!d&&!g&&E!==""?`
`:"")+MFt(E,i),d=g}return u}function MFt(n,i){if(n===""||n[0]===" ")return n;for(var s=/ [^ ]/g,u,d=0,g,b=0,w=0,E="";u=s.exec(n);)w=u.index,w-d>i&&(g=b>d?b:w,E+=`
`+n.slice(d,g),d=g+1),b=w;return E+=`
`,n.length-d>i&&b>d?E+=n.slice(d,b)+`
`+n.slice(b+1):E+=n.slice(d),E.slice(1)}function yZn(n){for(var i="",s=0,c,d=0;d<n.length;s>=65536?d+=2:d++)s=rH(n,d),c=qp[s],!c&&cz(s)?(i+=n[d],s>=65536&&(i+=n[d+1])):i+=c||lZn(s);return i}function vZn(n,i,s){var c="",d=n.tag,g,b,w;for(g=0,b=s.length;g<b;g+=1)w=s[g],n.replacer&&(w=n.replacer.call(s,String(g),w)),(TA(n,i,w,!1,!1)||typeof w>"u"&&TA(n,i,null,!1,!1))&&(c!==""&&(c+=","+(n.condenseFlow?"":" ")),c+=n.dump);n.tag=d,n.dump="["+c+"]"}function MFt(n,i,s,c){var d="",g=n.tag,b,w,E;for(b=0,w=s.length;b<w;b+=1)E=s[b],n.replacer&&(E=n.replacer.call(s,String(b),E)),(TA(n,i+1,E,!0,!0,!1,!0)||typeof E>"u"&&TA(n,i+1,null,!0,!0,!1,!0))&&((!c||d!=="")&&(d+=$De(n,i)),n.dump&&az===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function EZn(n,i,s){var c="",d=n.tag,g=Object.keys(s),b,w,E,S,x;for(b=0,w=g.length;b<w;b+=1)x="",c!==""&&(x+=", "),n.condenseFlow&&(x+='"'),E=g[b],S=s[E],n.replacer&&(S=n.replacer.call(s,E,S)),TA(n,i,E,!1,!1)&&(n.dump.length>1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),TA(n,i,S,!1,!1)&&(x+=n.dump,c+=x));n.tag=d,n.dump="{"+c+"}"}function SZn(n,i,s,c){var d="",g=n.tag,b=Object.keys(s),w,E,S,x,A,C;if(n.sortKeys===!0)b.sort();else if(typeof n.sortKeys=="function")b.sort(n.sortKeys);else if(n.sortKeys)throw new ib("sortKeys must be a boolean or a function");for(w=0,E=b.length;w<E;w+=1)C="",(!c||d!=="")&&(C+=$De(n,i)),S=b[w],x=s[S],n.replacer&&(x=n.replacer.call(s,S,x)),TA(n,i+1,S,!0,!0,!0)&&(A=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024,A&&(n.dump&&az===n.dump.charCodeAt(0)?C+="?":C+="? "),C+=n.dump,A&&(C+=$De(n,i)),TA(n,i+1,x,!0,A)&&(n.dump&&az===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function PFt(n,i,s){var c,d,g,b,w,E;for(d=s?n.explicitTypes:n.implicitTypes,g=0,b=d.length;g<b;g+=1)if(w=d[g],(w.instanceOf||w.predicate)&&(!w.instanceOf||typeof i=="object"&&i instanceof w.instanceOf)&&(!w.predicate||w.predicate(i))){if(s?w.multi&&w.representName?n.tag=w.representName(i):n.tag=w.tag:n.tag="?",w.represent){if(E=n.styleMap[w.tag]||w.defaultStyle,FWt.call(w.represent)==="[object Function]")c=w.represent(i,E);else if($Wt.call(w.represent,E))c=w.represent[E](i,E);else throw new ib("!<"+w.tag+'> tag resolver accepts not "'+E+'" style');n.dump=c}return!0}return!1}function TA(n,i,s,c,d,g,b){n.tag=null,n.dump=s,PFt(n,s,!1)||PFt(n,s,!0);var w=FWt.call(n.dump),E=c,S;c&&(c=n.flowLevel<0||n.flowLevel>i);var x=w==="[object Object]"||w==="[object Array]",A,C;if(x&&(A=n.duplicates.indexOf(s),C=A!==-1),(n.tag!==null&&n.tag!=="?"||C||n.indent!==2&&i>0)&&(d=!1),C&&n.usedDuplicates[A])n.dump="*ref_"+A;else{if(x&&C&&!n.usedDuplicates[A]&&(n.usedDuplicates[A]=!0),w==="[object Object]")c&&Object.keys(n.dump).length!==0?(SZn(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(EZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object Array]")c&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?MFt(n,i-1,n.dump,d):MFt(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(vZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&mZn(n,n.dump,i,g,E);else{if(w==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new ib("unacceptable kind of an object to dump "+w)}n.tag!==null&&n.tag!=="?"&&(S=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21"),n.tag[0]==="!"?S="!"+S:S.slice(0,18)==="tag:yaml.org,2002:"?S="!!"+S.slice(18):S="!<"+S+">",n.dump=S+" "+n.dump)}return!0}function TZn(n,i){var s=[],c=[],d,g;for(UDe(n,s,c),d=0,g=c.length;d<g;d+=1)i.duplicates.push(s[c[d]]);i.usedDuplicates=new Array(g)}function UDe(n,i,s){var c,d,g;if(n!==null&&typeof n=="object")if(d=i.indexOf(n),d!==-1)s.indexOf(d)===-1&&s.push(d);else if(i.push(n),Array.isArray(n))for(d=0,g=n.length;d<g;d+=1)UDe(n[d],i,s);else for(c=Object.keys(n),d=0,g=c.length;d<g;d+=1)UDe(n[c[d]],i,s)}function AZn(n,i){i=i||{};var s=new fZn(i);s.noRefs||TZn(n,s);var c=n;return s.replacer&&(c=s.replacer.call({"":c},"",c)),TA(s,0,c,!0,!0)?s.dump+`
`:""}var _Zn=AZn,xZn={dump:_Zn},kZn=GXn.load,gse=xZn.dump;const Mh=[];for(let n=0;n<256;++n)Mh.push((n+256).toString(16).slice(1));function NZn(n,i=0){return(Mh[n[i+0]]+Mh[n[i+1]]+Mh[n[i+2]]+Mh[n[i+3]]+"-"+Mh[n[i+4]]+Mh[n[i+5]]+"-"+Mh[n[i+6]]+Mh[n[i+7]]+"-"+Mh[n[i+8]]+Mh[n[i+9]]+"-"+Mh[n[i+10]]+Mh[n[i+11]]+Mh[n[i+12]]+Mh[n[i+13]]+Mh[n[i+14]]+Mh[n[i+15]]).toLowerCase()}let UOe;const CZn=new Uint8Array(16);function IZn(){if(!UOe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");UOe=crypto.getRandomValues.bind(crypto)}return UOe(CZn)}const RZn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jFt={randomUUID:RZn};function OZn(n,i,s){var d;n=n||{};const c=n.random??((d=n.rng)==null?void 0:d.call(n))??IZn();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,NZn(c)}function DZn(n,i,s){return jFt.randomUUID&&!n?jFt.randomUUID():OZn(n)}let LZn=0;function FFt(n,i){return`${n}_${Date.now()}_${i}_${LZn++}`}function MZn(){return DZn()}function PZn(n,i){return`e-${n}-${i}-${Date.now()}`}var YWt={exports:{}};(function(n,i){(function(s){n.exports=s()})(function(){return function(){function s(c,d,g){function b(S,x){if(!d[S]){if(!c[S]){var A=typeof QU=="function"&&QU;if(!x&&A)return A(S,!0);if(w)return w(S,!0);var C=new Error("Cannot find module '"+S+"'");throw C.code="MODULE_NOT_FOUND",C}var R=d[S]={exports:{}};c[S][0].call(R.exports,function(L){var D=c[S][1][L];return b(D||L)},R,R.exports,s,c,d,g)}return d[S].exports}for(var w=typeof QU=="function"&&QU,E=0;E<g.length;E++)b(g[E]);return b}return s}()({1:[function(s,c,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;function g(C){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},g(C)}function b(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function w(C,R){for(var L=0;L<R.length;L++){var D=R[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,S(D.key),D)}}function E(C,R,L){return R&&w(C.prototype,R),Object.defineProperty(C,"prototype",{writable:!1}),C}function S(C){var R=x(C,"string");return g(R)=="symbol"?R:R+""}function x(C,R){if(g(C)!="object"||!C)return C;var L=C[Symbol.toPrimitive];if(L!==void 0){var D=L.call(C,R);if(g(D)!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}d.default=function(){function C(){var R=this,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=L.defaultLayoutOptions,B=D===void 0?{}:D,$=L.algorithms,j=$===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:$,P=L.workerFactory,G=L.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof G>"u"&&typeof P>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ee=P;typeof G<"u"&&typeof P>"u"&&(ee=function(ie){return new Worker(ie)});var re=ee(G);if(typeof re.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new A(re),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(Q){return R.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=D.layoutOptions,$=B===void 0?this.defaultLayoutOptions:B,j=D.logging,P=j===void 0?!1:j,G=D.measureExecutionTime,ee=G===void 0?!1:G;return L?this.worker.postMessage({cmd:"layout",graph:L,layoutOptions:$,options:{logging:P,measureExecutionTime:ee}}):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&&this.worker.terminate()}}])}();var A=function(){function C(R){var L=this;if(b(this,C),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(D){setTimeout(function(){L.receive(L,D)},0)}}return E(C,[{key:"postMessage",value:function(L){var D=this.id||0;this.id=D+1,L.id=D;var B=this;return new Promise(function($,j){B.resolvers[D]=function(P,G){P?(B.convertGwtStyleError(P),j(P)):$(G)},B.worker.postMessage(L)})}},{key:"receive",value:function(L,D){var B=D.data,$=L.resolvers[B.id];$&&(delete L.resolvers[B.id],B.error?$(B.error):$(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.w Line truncated
`,Qa(co(e,t[0])))>=0;)++t[0]}function qdt(e,t){A2e=new Vm,tkt=t,vI=e,l(vI.b,68),kpe(vI,A2e,null),Ovt(vI)}function G3(){G3=K,uee=new Iq("XY",0),aee=new Iq("X",1),cee=new Iq("Y",2)}function Za(){Za=K,Nd=new Cq("TOP",0),M1=new Cq(px,1),rd=new Cq(vwe,2)}function lp(){lp=K,dL=new Pq(_d,0),ZE=new Pq("TOP",1),kT=new Pq(vwe,2)}function g6(){g6=K,Ute=new Ple("INPUT_ORDER",0),Hte=new Ple("PORT_DEGREE",1)}function m_(){m_=K,KEe=Ua(Hu,Hu,524287),Y_t=Ua(0,0,ED),YEe=qW(1),qW(2),JEe=qW(0)}function Bpe(e){var t;return t=HS(Vt(e,32)),t==null&&(Ha(e),t=HS(Vt(e,32))),t}function Upe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Vdt(e){(this.q?this.q:(At(),At(),xh)).zc(e.q?e.q:(At(),At(),xh))}function Wdt(e,t){va(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Kdt(e,t){gu(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Ydt(e,t){Hb(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Jdt(e,t){Ub(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Zdn(e,t){AS(l(l(e.f,19).mf((_n(),bk)),103))&&Tgt(She(l(e.f,19)),t)}function sK(e,t){var r;return r=Ur(e.d,t),r>=0?s7(e,r,!0,!0):O0(e,t,!0)}function uj(e,t){var r;return r=e.bd(t),r>=0?(e.ed(r),!0):!1}function aK(e,t,r){var o;return o=e.g[t],w3(e,t,e.Xi(t,r)),e.Pi(t,r,o),e.Li(),o}function uK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==YAt,e.d=t),e.e}function cK(e,t){var r;for(kn(e),kn(t),r=!1;t.Ob();)r=r|e.Ec(t.Pb());return r}function bs(e,t){var r,o;return y1(e),o=new Epe(t,e.a),r=new Uit(o),new Et(e,r)}function Wd(e,t){var r;return r=l(Ht(e.e,t),395),r?(prt(e,r),r.e):null}function Qdn(e,t){var r,o,a;a=t.c.i,r=l(Ht(e.f,a),60),o=r.d.c-r.e.c,yge(t.a,o,0)}function bh(e,t,r){var o,a;for(o=10,a=0;a<r-1;a++)t<o&&(e.a+="0"),o*=10;e.a+=t}function Hpe(e,t){var r;for(++e.d,++e.c[t],r=t+1;r<e.a.length;)++e.a[r],r+=r&-r}function lK(e){var t;return t=e.b.c.length==0?null:ze(e.b,0),t!=null&&yK(e,0),t}function efn(e){switch(e.g){case 0:return sr;case 1:return Qi;default:return 0}}function tfn(e){return hbe(e,(m_(),JEe))<0?-ztn(k_(e)):e.l+e.m*fT+e.h*nm}function Xdt(e){var t,r;return t=e/60|0,r=e%60,r==0?""+t:""+t+":"+(""+r)}function ay(e,t){var r=e.a[t],o=(LK(),HQ)[typeof r];return o?o(r):n1e(typeof r)}function nfn(e,t){return ae(t,104)&&l(t,20).Bb&No?new oV(t,e):new A_(t,e)}function rfn(e,t){return ae(t,104)&&l(t,20).Bb&No?new oV(t,e):new A_(t,e)}function ifn(e,t,r){return yS(new Me(r.e.a+r.f.a/2,r.e.b+r.f.b/2),e)==(Mt(t),t)}function zpe(e){if(!e.c)throw Y(new vs);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Zdt(e){if(!e.e)throw Y(new vs);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function Qdt(e,t,r,o){if(!e)throw Y(new jt(CC(t,Z(X(Ii,1),Rt,1,5,[r,o]))))}function eft(){eft=K,wDt=yn((He(),Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt])))}function tft(){tft=K,oDt=yn((vi(),Z(X(E4,1),Ce,87,0,[hf,fs,as,ff,il])))}function nft(){nft=K,$kt=yn((Vi(),Z(X(z2e,1),Ce,364,0,[id,kh,la,da,Ho])))}function q3(){q3=K,Wkt=new oG,Kkt=new s9,qkt=new sG,Vkt=new aG,Ykt=new uG}function cj(){cj=K,iee=new xle("EADES",0),w$=new xle("FRUCHTERMAN_REINGOLD",1)}function rft(e){this.g=e,this.f=new je,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function ift(e,t,r,o){fr(),Km.call(this,26),this.c=e,this.a=t,this.d=r,this.b=o}function ofn(e,t){var r,o;for(o=t.c,r=o+1;r<=t.f;r++)e.a[r]>e.a[o]&&(o=r);return o}function oft(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function sfn(e,t){var r;return r=x0(e.e.c,t.e.c),r==0?yr(e.e.d,t.e.d):r}function sft(e){var t;return t=l(F(e,(Ie(),ew)),318),t?t.a==e:!1}function aft(e){var t;return t=l(F(e,(Ie(),ew)),318),t?t.i==e:!1}function uft(e,t){return t==(IV(),IV(),uxt)?e.toLocaleLowerCase():e.toLowerCase()}function b6(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function afn(e){var t,r;if(e.a){r=null;do t=e.a,e.a=null,r=_mt(t,r);while(e.a);e.a=r}}function ufn(e){var t,r;if(e.b){r=null;do t=e.b,e.b=null,r=_mt(t,r);while(e.b);e.b=r}}function cfn(e,t){var r;for(r=0;e.e!=e.i.gc();)xsn(t,rn(e),Re(r)),r!=sr&&++r}function dK(e,t){var r;return r=l(Ht(e.a,t),151),r||(r=new Q2,Jn(e.a,t,r)),r}function lfn(e,t,r){var o;return o=e.a.e[l(t.a,9).p]-e.a.e[l(r.a,9).p],go(GO(o))}function Nt(e,t){var r;return r=(e.i==null&&Ff(e),e.i),t>=0&&t<r.length?r[t]:null}function Gpe(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(np(e),e.o)}function lj(e){return Ea(e,sr)>0?sr:Ea(e,Qi)<0?Qi:Dn(e)}function Kl(e,t,r){var o;if(t==null)throw Y(new rS);return o=op(e,t),xln(e,t,r),o}function cft(e,t){return Mt(t),Zfe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function lft(e){this.b=new je,this.a=new je,this.c=new je,this.d=new je,this.e=e}function dft(e,t,r){G8.call(this),qpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function dfn(){return zt(),Z(X(bee,1),Ce,252,0,[Xr,gi,mi,_a,ta,af,rL,AI])}function fft(){fft=K,gDt=yn((vE(),Z(X(_4,1),Ce,260,0,[V1,WL,KNe,A4,YNe])))}function hft(){hft=K,A6t=yn((Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])))}function pft(){pft=K,SNt=yn((yy(),Z(X(ENt,1),Ce,372,0,[sL,q$,V$,G$,z$])))}fun Line truncated
`)}return t&&(t.stack||r(e[eX]))}function C1e(e,t){switch(t){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return Tge(e,t)}function I1e(e,t){switch(t){case 3:Ub(e,0);return;case 4:Hb(e,0);return;case 5:va(e,0);return;case 6:gu(e,0);return}r1e(e,t)}function s1n(e){switch(e.g){case 0:return new xze;case 1:return new kze;default:throw Y(new jt(MZ+(e.f!=null?e.f:""+e.g)))}}function Ngt(e){switch(e.g){case 0:return new _ze;case 1:return new Nze;default:throw Y(new jt(jX+(e.f!=null?e.f:""+e.g)))}}function a1n(e){switch(e.g){case 1:return new wze;case 2:return new sit;default:throw Y(new jt(MZ+(e.f!=null?e.f:""+e.g)))}}function Cgt(e){switch(e.g){case 0:return new Hce;case 1:return new $Ze;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function k0(e,t){switch(t.g){case 1:return _S(e.j,(bu(),J2e));case 2:return _S(e.j,(bu(),Z2e));default:return At(),At(),Co}}function Igt(e,t){var r,o;if(t){for(r=0;r<e.i;++r)if(o=l(e.g[r],374),o.kj(t))return!1;return Tn(e,t)}else return!1}function R1e(e){var t,r,o,a;for(t=new Eb,a=new Gv(e.b.Jc());a.b.Ob();)o=l(a.b.Pb(),697),r=wyn(o),Nsn(t,t.a.length,r);return t.a}function Yj(e){var t;return e.Db&64?iC(e):(t=new ml(iC(e)),t.a+=" (instanceClassName: ",Vo(t,e.D),t.a+=")",t.a)}function O1e(e,t){var r;return e.i>0&&(t.length<e.i&&(r=y6(rc(t).c,e.i),t=r),ua(e.g,0,t,0,e.i)),t.length>e.i&&ii(t,e.i,null),t}function u1n(e,t,r){var o,a;return o=ue(e.p[t.i.p])+ue(e.d[t.i.p])+t.n.b+t.a.b,a=ue(e.p[r.i.p])+ue(e.d[r.i.p])+r.n.b+r.a.b,a-o}function Ur(e,t){var r,o,a;if(r=(e.i==null&&Ff(e),e.i),o=t.Jj(),o!=-1){for(a=r.length;o<a;++o)if(r[o]==t)return o}return-1}function aY(e,t){var r,o,a;return e.f>0?(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=rwt(e,a,o,t),r!=-1):!1}function Jj(e){var t,r,o,a;for(a=0,r=0,o=e.length;r<o;r++)t=(Yt(r,e.length),e.charCodeAt(r)),t<64&&(a=Of(a,fh(1,t)));return a}function c1n(e){var t,r,o,a,u;for(r=l(e.g,686),o=e.i-1;o>=0;--o)for(t=r[o],a=0;a<o;++a)if(u=r[a],Zyt(e,t,u)){ZS(e,o);break}}function F6(e,t){var r,o,a,u;for(u=za(e.e.Ah(),t),r=l(e.g,123),a=0;a<e.i;++a)if(o=r[a],u.$l(o.Jk()))return!1;return!0}function Rgt(e,t){var r,o;if(o=new IA(e.a.$c(t,!0)),o.a.gc()<=1)throw Y(new rS);return r=o.a.ec().Jc(),r.Pb(),l(r.Pb(),41)}function l1n(e,t,r){var o,a;for(o=Gi(r,$o),a=0;Ea(o,0)!=0&&a<t;a++)o=Ao(o,Gi(e[a],$o)),e[a]=Dn(o),o=u0(o,32);return Dn(o)}function Xj(e,t){ude();var r,o;return r=jO((L9(),L9(),bI)),o=null,t==r&&(o=l(wa(WEe,e),622)),o||(o=new Mst(e),t==r&&ns(WEe,e,o)),o}function Ogt(e){qw();var t;return t=new So(l(e.e.mf((_n(),b2)),8)),e.B.Gc((Uu(),Tk))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function d1n(e){nj(),l(e.mf((_n(),G1)),185).Gc((Uu(),hU))&&(l(e.mf(cv),185).Ec((xu(),KT)),l(e.mf(G1),185).Kc(hU))}function Dgt(e){var t,r;t=e.d==(eT(),Wx),r=xbe(e),t&&!r||!t&&r?Te(e.a,(Be(),Kf),(mh(),FL)):Te(e.a,(Be(),Kf),(mh(),jL))}function f1n(e){var t,r,o,a;for(o=Gyn(e),xi(o,rNt),a=e.d,a.c.length=0,r=new V(o);r.a<r.c.c.length;)t=l(q(r),458),li(a,t.b)}function uY(){uY=K,W9(),TB=(Be(),vm),MIt=Wl(Z(X(ore,1),tve,149,0,[vL,od,o2,ym,ev,_te,ok,sk,xte,GI,Qy,$1,tv]))}function h1n(e,t){var r;return r=l(Au(e,ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),r.Oc(Iot(r.gc()))}function Td(e,t){var r,o,a;return e.f>0&&(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r)?r.kd():null}function Lgt(e,t){var r,o,a;return ae(t,45)?(r=l(t,45),o=r.jd(),a=py(e.Pc(),o),rp(a,r.kd())&&(a!=null||e.Pc()._b(o))):!1}function Pa(e,t,r){var o,a,u;return e.Nj()?(o=e.i,u=e.Oj(),D6(e,o,t),a=e.Gj(3,null,t,o,u),r?r.lj(a):r=a):D6(e,e.i,t),r}function p1n(e,t,r){var o,a;return o=new cp(e.e,4,10,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function g1n(e,t,r){var o,a;return o=new cp(e.e,3,10,null,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),gg(e,t),!1),r?r.lj(o):r=o,r}function Mgt(e){wy();var t;return(e.q?e.q:(At(),At(),xh))._b((Be(),ow))?t=l(F(e,ow),205):t=l(F(ji(e),zI),205),t}function v1(e){jf();var t,r;return r=Dn(e),t=Dn(Rb(e,32)),t!=0?new sct(r,t):r>10||r<0?new ap(1,r):txt[r]}function Pgt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!l(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function jgt(e,t,r){kft(),FZe.call(this),this.a=Yw(Axt,[Pe,wwe],[599,219],0,[b$,eee],2),this.c=new wS,this.g=e,this.f=t,this.d=r}function Fgt(e){this.e=we(Rn,Qn,30,e.length,15,1),this.c=we(uu,Ad,30,e.length,16,1),this.b=we(uu,Ad,30,e.length,16,1),this.f=0}function b1n(e){var t,r;for(e.j=we(Ki,Jo,30,e.p.c.length,15,1),r=new V(e.p);r.a<r.c.c.length;)t=l(q(r),9),e.j[t.p]=t.o.b/e.i}function $gt(e,t){var r,o;e.a=Ao(e.a,1),e.c=b.Math.min(e.c,t),e.b=b.Math.max(e.b,t),e.d+=t,r=t-e.f,o=e.e+r,e.f=o-e.e-r,e.e=o}function m1n(e,t){t.Tg("Min Size Postprocessing",1),Vn(e,(yh(),iv),b.Math.max(ue(ce(ve(e,iv))),ue(ce(ve(e,u4))))),t.Ug()}function Bgt(e,t){e.Vj();try{e.d._c(e.e++,t),e.f=e.d.j,e.g=-1}catch(r){throw r=ci(r),ae(r,99)?Y(new $c):Y(r)}}function cY(){cY=K,$re=new lqe,R3e=new dqe,O3e=new fqe,D3e=new hqe,L3e=new pqe,M3e=new gqe,P3e=new bqe,j3e=new mqe,F3e=new Line truncated
`+n.slice(b+1):E+=n.slice(d),E.slice(1)}function AZn(n){for(var i="",s=0,u,d=0;d<n.length;s>=65536?d+=2:d++)s=rH(n,d),u=qp[s],!u&&lz(s)?(i+=n[d],s>=65536&&(i+=n[d+1])):i+=u||gZn(s);return i}function _Zn(n,i,s){var u="",d=n.tag,g,b,w;for(g=0,b=s.length;g<b;g+=1)w=s[g],n.replacer&&(w=n.replacer.call(s,String(g),w)),(TA(n,i,w,!1,!1)||typeof w>"u"&&TA(n,i,null,!1,!1))&&(u!==""&&(u+=","+(n.condenseFlow?"":" ")),u+=n.dump);n.tag=d,n.dump="["+u+"]"}function PFt(n,i,s,u){var d="",g=n.tag,b,w,E;for(b=0,w=s.length;b<w;b+=1)E=s[b],n.replacer&&(E=n.replacer.call(s,String(b),E)),(TA(n,i+1,E,!0,!0,!1,!0)||typeof E>"u"&&TA(n,i+1,null,!0,!0,!1,!0))&&((!u||d!=="")&&(d+=$Le(n,i)),n.dump&&uz===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function xZn(n,i,s){var u="",d=n.tag,g=Object.keys(s),b,w,E,S,x;for(b=0,w=g.length;b<w;b+=1)x="",u!==""&&(x+=", "),n.condenseFlow&&(x+='"'),E=g[b],S=s[E],n.replacer&&(S=n.replacer.call(s,E,S)),TA(n,i,E,!1,!1)&&(n.dump.length>1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),TA(n,i,S,!1,!1)&&(x+=n.dump,u+=x));n.tag=d,n.dump="{"+u+"}"}function kZn(n,i,s,u){var d="",g=n.tag,b=Object.keys(s),w,E,S,x,A,C;if(n.sortKeys===!0)b.sort();else if(typeof n.sortKeys=="function")b.sort(n.sortKeys);else if(n.sortKeys)throw new ib("sortKeys must be a boolean or a function");for(w=0,E=b.length;w<E;w+=1)C="",(!u||d!=="")&&(C+=$Le(n,i)),S=b[w],x=s[S],n.replacer&&(x=n.replacer.call(s,S,x)),TA(n,i+1,S,!0,!0,!0)&&(A=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024,A&&(n.dump&&uz===n.dump.charCodeAt(0)?C+="?":C+="? "),C+=n.dump,A&&(C+=$Le(n,i)),TA(n,i+1,x,!0,A)&&(n.dump&&uz===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function jFt(n,i,s){var u,d,g,b,w,E;for(d=s?n.explicitTypes:n.implicitTypes,g=0,b=d.length;g<b;g+=1)if(w=d[g],(w.instanceOf||w.predicate)&&(!w.instanceOf||typeof i=="object"&&i instanceof w.instanceOf)&&(!w.predicate||w.predicate(i))){if(s?w.multi&&w.representName?n.tag=w.representName(i):n.tag=w.tag:n.tag="?",w.represent){if(E=n.styleMap[w.tag]||w.defaultStyle,zWt.call(w.represent)==="[object Function]")u=w.represent(i,E);else if(GWt.call(w.represent,E))u=w.represent[E](i,E);else throw new ib("!<"+w.tag+'> tag resolver accepts not "'+E+'" style');n.dump=u}return!0}return!1}function TA(n,i,s,u,d,g,b){n.tag=null,n.dump=s,jFt(n,s,!1)||jFt(n,s,!0);var w=zWt.call(n.dump),E=u,S;u&&(u=n.flowLevel<0||n.flowLevel>i);var x=w==="[object Object]"||w==="[object Array]",A,C;if(x&&(A=n.duplicates.indexOf(s),C=A!==-1),(n.tag!==null&&n.tag!=="?"||C||n.indent!==2&&i>0)&&(d=!1),C&&n.usedDuplicates[A])n.dump="*ref_"+A;else{if(x&&C&&!n.usedDuplicates[A]&&(n.usedDuplicates[A]=!0),w==="[object Object]")u&&Object.keys(n.dump).length!==0?(kZn(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(xZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object Array]")u&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?PFt(n,i-1,n.dump,d):PFt(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(_Zn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&SZn(n,n.dump,i,g,E);else{if(w==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new ib("unacceptable kind of an object to dump "+w)}n.tag!==null&&n.tag!=="?"&&(S=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21"),n.tag[0]==="!"?S="!"+S:S.slice(0,18)==="tag:yaml.org,2002:"?S="!!"+S.slice(18):S="!<"+S+">",n.dump=S+" "+n.dump)}return!0}function NZn(n,i){var s=[],u=[],d,g;for(ULe(n,s,u),d=0,g=u.length;d<g;d+=1)i.duplicates.push(s[u[d]]);i.usedDuplicates=new Array(g)}function ULe(n,i,s){var u,d,g;if(n!==null&&typeof n=="object")if(d=i.indexOf(n),d!==-1)s.indexOf(d)===-1&&s.push(d);else if(i.push(n),Array.isArray(n))for(d=0,g=n.length;d<g;d+=1)ULe(n[d],i,s);else for(u=Object.keys(n),d=0,g=u.length;d<g;d+=1)ULe(n[u[d]],i,s)}function CZn(n,i){i=i||{};var s=new mZn(i);s.noRefs||NZn(n,s);var u=n;return s.replacer&&(u=s.replacer.call({"":u},"",u)),TA(s,0,u,!0,!0)?s.dump+`
`:""}var IZn=CZn,RZn={dump:IZn},OZn=YXn.load,gse=RZn.dump;const Mh=[];for(let n=0;n<256;++n)Mh.push((n+256).toString(16).slice(1));function LZn(n,i=0){return(Mh[n[i+0]]+Mh[n[i+1]]+Mh[n[i+2]]+Mh[n[i+3]]+"-"+Mh[n[i+4]]+Mh[n[i+5]]+"-"+Mh[n[i+6]]+Mh[n[i+7]]+"-"+Mh[n[i+8]]+Mh[n[i+9]]+"-"+Mh[n[i+10]]+Mh[n[i+11]]+Mh[n[i+12]]+Mh[n[i+13]]+Mh[n[i+14]]+Mh[n[i+15]]).toLowerCase()}let UOe;const DZn=new Uint8Array(16);function MZn(){if(!UOe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");UOe=crypto.getRandomValues.bind(crypto)}return UOe(DZn)}const PZn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),FFt={randomUUID:PZn};function jZn(n,i,s){var d;n=n||{};const u=n.random??((d=n.rng)==null?void 0:d.call(n))??MZn();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,LZn(u)}function FZn(n,i,s){return FFt.randomUUID&&!n?FFt.randomUUID():jZn(n)}let $Zn=0;function $Ft(n,i){return`${n}_${Date.now()}_${i}_${$Zn++}`}function BZn(){return FZn()}function UZn(n,i){return`e-${n}-${i}-${Date.now()}`}var eKt={exports:{}};(function(n,i){(function(s){n.exports=s()})(function(){return function(){function s(u,d,g){function b(S,x){if(!d[S]){if(!u[S]){var A=typeof QU=="function"&&QU;if(!x&&A)return A(S,!0);if(w)return w(S,!0);var C=new Error("Cannot find module '"+S+"'");throw C.code="MODULE_NOT_FOUND",C}var R=d[S]={exports:{}};u[S][0].call(R.exports,function(D){var L=u[S][1][D];return b(L||D)},R,R.exports,s,u,d,g)}return d[S].exports}for(var w=typeof QU=="function"&&QU,E=0;E<g.length;E++)b(g[E]);return b}return s}()({1:[function(s,u,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;function g(C){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},g(C)}function b(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function w(C,R){for(var D=0;D<R.length;D++){var L=R[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(C,S(L.key),L)}}function E(C,R,D){return R&&w(C.prototype,R),Object.defineProperty(C,"prototype",{writable:!1}),C}function S(C){var R=x(C,"string");return g(R)=="symbol"?R:R+""}function x(C,R){if(g(C)!="object"||!C)return C;var D=C[Symbol.toPrimitive];if(D!==void 0){var L=D.call(C,R);if(g(L)!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}d.default=function(){function C(){var R=this,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=D.defaultLayoutOptions,B=L===void 0?{}:L,$=D.algorithms,j=$===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:$,P=D.workerFactory,G=D.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof G>"u"&&typeof P>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ee=P;typeof G<"u"&&typeof P>"u"&&(ee=function(ie){return new Worker(ie)});var ne=ee(G);if(typeof ne.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new A(ne),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(Q){return R.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(D){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=L.layoutOptions,$=B===void 0?this.defaultLayoutOptions:B,j=L.logging,P=j===void 0?!1:j,G=L.measureExecutionTime,ee=G===void 0?!1:G;return D?this.worker.postMessage({cmd:"layout",graph:D,layoutOptions:$,options:{logging:P,measureExecutionTime:ee}}):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&&this.worker.terminate()}}])}();var A=function(){function C(R){var D=this;if(b(this,C),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(L){setTimeout(function(){D.receive(D,L)},0)}}return E(C,[{key:"postMessage",value:function(D){var L=this.id||0;this.id=L+1,D.id=L;var B=this;return new Promise(function($,j){B.resolvers[L]=function(P,G){P?(B.convertGwtStyleError(P),j(P)):$(G)},B.worker.postMessage(D)})}},{key:"receive",value:function(D,L){var B=L.data,$=D.resolvers[B.id];$&&(delete D.resolvers[B.id],B.error?$(B.error):$(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.w Line truncated
`,Qa(co(e,t[0])))>=0;)++t[0]}function Vdt(e,t){A2e=new Vm,nkt=t,vI=e,l(vI.b,68),kpe(vI,A2e,null),Lvt(vI)}function G3(){G3=K,cee=new Rq("XY",0),uee=new Rq("X",1),lee=new Rq("Y",2)}function Za(){Za=K,Nd=new Iq("TOP",0),M1=new Iq(px,1),rd=new Iq(vwe,2)}function lp(){lp=K,dD=new jq(_d,0),ZE=new jq("TOP",1),kT=new jq(vwe,2)}function g6(){g6=K,Hte=new Ple("INPUT_ORDER",0),zte=new Ple("PORT_DEGREE",1)}function m_(){m_=K,KEe=Ua(Hu,Hu,524287),J_t=Ua(0,0,EL),YEe=VW(1),VW(2),JEe=VW(0)}function Bpe(e){var t;return t=HS(Vt(e,32)),t==null&&(Ha(e),t=HS(Vt(e,32))),t}function Upe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Wdt(e){(this.q?this.q:(At(),At(),xh)).zc(e.q?e.q:(At(),At(),xh))}function Kdt(e,t){va(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Ydt(e,t){gu(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Jdt(e,t){Hb(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Xdt(e,t){Ub(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function rfn(e,t){AS(l(l(e.f,19).mf((_n(),bk)),103))&&Agt(She(l(e.f,19)),t)}function aK(e,t){var r;return r=Ur(e.d,t),r>=0?s7(e,r,!0,!0):O0(e,t,!0)}function uj(e,t){var r;return r=e.bd(t),r>=0?(e.ed(r),!0):!1}function uK(e,t,r){var o;return o=e.g[t],w3(e,t,e.Xi(t,r)),e.Pi(t,r,o),e.Li(),o}function cK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==JAt,e.d=t),e.e}function lK(e,t){var r;for(kn(e),kn(t),r=!1;t.Ob();)r=r|e.Ec(t.Pb());return r}function bs(e,t){var r,o;return y1(e),o=new Epe(t,e.a),r=new Hit(o),new Et(e,r)}function Wd(e,t){var r;return r=l(Ht(e.e,t),395),r?(grt(e,r),r.e):null}function ifn(e,t){var r,o,a;a=t.c.i,r=l(Ht(e.f,a),60),o=r.d.c-r.e.c,yge(t.a,o,0)}function bh(e,t,r){var o,a;for(o=10,a=0;a<r-1;a++)t<o&&(e.a+="0"),o*=10;e.a+=t}function Hpe(e,t){var r;for(++e.d,++e.c[t],r=t+1;r<e.a.length;)++e.a[r],r+=r&-r}function dK(e){var t;return t=e.b.c.length==0?null:ze(e.b,0),t!=null&&vK(e,0),t}function ofn(e){switch(e.g){case 0:return sr;case 1:return Qi;default:return 0}}function sfn(e){return hbe(e,(m_(),JEe))<0?-Ktn(k_(e)):e.l+e.m*fT+e.h*nm}function Zdt(e){var t,r;return t=e/60|0,r=e%60,r==0?""+t:""+t+":"+(""+r)}function ay(e,t){var r=e.a[t],o=(MK(),zQ)[typeof r];return o?o(r):n1e(typeof r)}function afn(e,t){return ae(t,104)&&l(t,20).Bb&Co?new sV(t,e):new A_(t,e)}function ufn(e,t){return ae(t,104)&&l(t,20).Bb&Co?new sV(t,e):new A_(t,e)}function cfn(e,t,r){return yS(new Me(r.e.a+r.f.a/2,r.e.b+r.f.b/2),e)==(Mt(t),t)}function zpe(e){if(!e.c)throw Y(new vs);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Qdt(e){if(!e.e)throw Y(new vs);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function eft(e,t,r,o){if(!e)throw Y(new jt(CC(t,Z(X(Ri,1),Rt,1,5,[r,o]))))}function tft(){tft=K,yLt=yn((He(),Z(X(Ro,1),ea,64,0,[Is,Wt,Qt,dn,Kt])))}function nft(){nft=K,sLt=yn((vi(),Z(X(E4,1),Ce,87,0,[hf,fs,as,ff,il])))}function rft(){rft=K,Bkt=yn((Vi(),Z(X(z2e,1),Ce,364,0,[id,kh,la,da,Ho])))}function q3(){q3=K,Kkt=new sG,Ykt=new s9,Vkt=new aG,Wkt=new uG,Jkt=new cG}function cj(){cj=K,oee=new xle("EADES",0),w$=new xle("FRUCHTERMAN_REINGOLD",1)}function ift(e){this.g=e,this.f=new je,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function oft(e,t,r,o){fr(),Km.call(this,26),this.c=e,this.a=t,this.d=r,this.b=o}function lfn(e,t){var r,o;for(o=t.c,r=o+1;r<=t.f;r++)e.a[r]>e.a[o]&&(o=r);return o}function sft(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function dfn(e,t){var r;return r=x0(e.e.c,t.e.c),r==0?yr(e.e.d,t.e.d):r}function aft(e){var t;return t=l(F(e,(Ie(),ew)),318),t?t.a==e:!1}function uft(e){var t;return t=l(F(e,(Ie(),ew)),318),t?t.i==e:!1}function cft(e,t){return t==(RV(),RV(),cxt)?e.toLocaleLowerCase():e.toLowerCase()}function b6(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function ffn(e){var t,r;if(e.a){r=null;do t=e.a,e.a=null,r=xmt(t,r);while(e.a);e.a=r}}function hfn(e){var t,r;if(e.b){r=null;do t=e.b,e.b=null,r=xmt(t,r);while(e.b);e.b=r}}function pfn(e,t){var r;for(r=0;e.e!=e.i.gc();)Rsn(t,rn(e),Re(r)),r!=sr&&++r}function fK(e,t){var r;return r=l(Ht(e.a,t),151),r||(r=new Q2,Jn(e.a,t,r)),r}function gfn(e,t,r){var o;return o=e.a.e[l(t.a,9).p]-e.a.e[l(r.a,9).p],go(GO(o))}function Nt(e,t){var r;return r=(e.i==null&&Ff(e),e.i),t>=0&&t<r.length?r[t]:null}function Gpe(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(np(e),e.o)}function lj(e){return Ea(e,sr)>0?sr:Ea(e,Qi)<0?Qi:Ln(e)}function Kl(e,t,r){var o;if(t==null)throw Y(new rS);return o=op(e,t),Rln(e,t,r),o}function lft(e,t){return Mt(t),Zfe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function dft(e){this.b=new je,this.a=new je,this.c=new je,this.d=new je,this.e=e}function fft(e,t,r){G8.call(this),qpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function bfn(){return zt(),Z(X(mee,1),Ce,252,0,[Xr,gi,mi,_a,ta,af,rD,AI])}function hft(){hft=K,bLt=yn((vE(),Z(X(_4,1),Ce,260,0,[V1,WD,KNe,A4,YNe])))}function pft(){pft=K,_6t=yn((Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])))}function gft(){gft=K,TNt=yn((yy(),Z(X(SNt,1),Ce,372,0,[sD,q$,V$,G$,z$])))}fun Line truncated
`)}return t&&(t.stack||r(e[tX]))}function C1e(e,t){switch(t){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return Tge(e,t)}function I1e(e,t){switch(t){case 3:Ub(e,0);return;case 4:Hb(e,0);return;case 5:va(e,0);return;case 6:gu(e,0);return}r1e(e,t)}function d1n(e){switch(e.g){case 0:return new kze;case 1:return new Nze;default:throw Y(new jt(PZ+(e.f!=null?e.f:""+e.g)))}}function Cgt(e){switch(e.g){case 0:return new xze;case 1:return new Cze;default:throw Y(new jt(FX+(e.f!=null?e.f:""+e.g)))}}function f1n(e){switch(e.g){case 1:return new yze;case 2:return new ait;default:throw Y(new jt(PZ+(e.f!=null?e.f:""+e.g)))}}function Igt(e){switch(e.g){case 0:return new Hce;case 1:return new BZe;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function k0(e,t){switch(t.g){case 1:return _S(e.j,(bu(),J2e));case 2:return _S(e.j,(bu(),Z2e));default:return At(),At(),Io}}function Rgt(e,t){var r,o;if(t){for(r=0;r<e.i;++r)if(o=l(e.g[r],374),o.kj(t))return!1;return Tn(e,t)}else return!1}function R1e(e){var t,r,o,a;for(t=new Eb,a=new Gv(e.b.Jc());a.b.Ob();)o=l(a.b.Pb(),697),r=Tyn(o),Lsn(t,t.a.length,r);return t.a}function Yj(e){var t;return e.Db&64?iC(e):(t=new ml(iC(e)),t.a+=" (instanceClassName: ",Vo(t,e.D),t.a+=")",t.a)}function O1e(e,t){var r;return e.i>0&&(t.length<e.i&&(r=y6(rc(t).c,e.i),t=r),ua(e.g,0,t,0,e.i)),t.length>e.i&&ii(t,e.i,null),t}function h1n(e,t,r){var o,a;return o=ue(e.p[t.i.p])+ue(e.d[t.i.p])+t.n.b+t.a.b,a=ue(e.p[r.i.p])+ue(e.d[r.i.p])+r.n.b+r.a.b,a-o}function Ur(e,t){var r,o,a;if(r=(e.i==null&&Ff(e),e.i),o=t.Jj(),o!=-1){for(a=r.length;o<a;++o)if(r[o]==t)return o}return-1}function uY(e,t){var r,o,a;return e.f>0?(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=iwt(e,a,o,t),r!=-1):!1}function Jj(e){var t,r,o,a;for(a=0,r=0,o=e.length;r<o;r++)t=(Yt(r,e.length),e.charCodeAt(r)),t<64&&(a=Of(a,fh(1,t)));return a}function p1n(e){var t,r,o,a,c;for(r=l(e.g,686),o=e.i-1;o>=0;--o)for(t=r[o],a=0;a<o;++a)if(c=r[a],Qyt(e,t,c)){ZS(e,o);break}}function F6(e,t){var r,o,a,c;for(c=za(e.e.Ah(),t),r=l(e.g,123),a=0;a<e.i;++a)if(o=r[a],c.$l(o.Jk()))return!1;return!0}function Ogt(e,t){var r,o;if(o=new IA(e.a.$c(t,!0)),o.a.gc()<=1)throw Y(new rS);return r=o.a.ec().Jc(),r.Pb(),l(r.Pb(),41)}function g1n(e,t,r){var o,a;for(o=Gi(r,$o),a=0;Ea(o,0)!=0&&a<t;a++)o=Ao(o,Gi(e[a],$o)),e[a]=Ln(o),o=u0(o,32);return Ln(o)}function Xj(e,t){ude();var r,o;return r=jO((D9(),D9(),bI)),o=null,t==r&&(o=l(wa(WEe,e),622)),o||(o=new Pst(e),t==r&&ns(WEe,e,o)),o}function Lgt(e){qw();var t;return t=new So(l(e.e.mf((_n(),b2)),8)),e.B.Gc((Uu(),Tk))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function b1n(e){nj(),l(e.mf((_n(),G1)),185).Gc((Uu(),hU))&&(l(e.mf(cv),185).Ec((xu(),KT)),l(e.mf(G1),185).Kc(hU))}function Dgt(e){var t,r;t=e.d==(eT(),Wx),r=xbe(e),t&&!r||!t&&r?Te(e.a,(Be(),Kf),(mh(),FD)):Te(e.a,(Be(),Kf),(mh(),jD))}function m1n(e){var t,r,o,a;for(o=Yyn(e),xi(o,iNt),a=e.d,a.c.length=0,r=new V(o);r.a<r.c.c.length;)t=l(q(r),458),li(a,t.b)}function cY(){cY=K,W9(),TB=(Be(),vm),PIt=Wl(Z(X(sre,1),tve,149,0,[vD,od,o2,ym,ev,xte,ok,sk,kte,GI,Qy,$1,tv]))}function w1n(e,t){var r;return r=l(Au(e,ju(new Qo,new ls,new Ci,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),r.Oc(Rot(r.gc()))}function Td(e,t){var r,o,a;return e.f>0&&(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r)?r.kd():null}function Mgt(e,t){var r,o,a;return ae(t,45)?(r=l(t,45),o=r.jd(),a=py(e.Pc(),o),rp(a,r.kd())&&(a!=null||e.Pc()._b(o))):!1}function Pa(e,t,r){var o,a,c;return e.Nj()?(o=e.i,c=e.Oj(),L6(e,o,t),a=e.Gj(3,null,t,o,c),r?r.lj(a):r=a):L6(e,e.i,t),r}function y1n(e,t,r){var o,a;return o=new cp(e.e,4,10,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function v1n(e,t,r){var o,a;return o=new cp(e.e,3,10,null,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),gg(e,t),!1),r?r.lj(o):r=o,r}function Pgt(e){wy();var t;return(e.q?e.q:(At(),At(),xh))._b((Be(),ow))?t=l(F(e,ow),205):t=l(F(ji(e),zI),205),t}function v1(e){jf();var t,r;return r=Ln(e),t=Ln(Rb(e,32)),t!=0?new act(r,t):r>10||r<0?new ap(1,r):nxt[r]}function jgt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!l(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function Fgt(e,t,r){Nft(),$Ze.call(this),this.a=Yw(_xt,[Pe,wwe],[599,219],0,[b$,tee],2),this.c=new wS,this.g=e,this.f=t,this.d=r}function $gt(e){this.e=we(Rn,Qn,30,e.length,15,1),this.c=we(uu,Ad,30,e.length,16,1),this.b=we(uu,Ad,30,e.length,16,1),this.f=0}function E1n(e){var t,r;for(e.j=we(Ki,Jo,30,e.p.c.length,15,1),r=new V(e.p);r.a<r.c.c.length;)t=l(q(r),9),e.j[t.p]=t.o.b/e.i}function Bgt(e,t){var r,o;e.a=Ao(e.a,1),e.c=b.Math.min(e.c,t),e.b=b.Math.max(e.b,t),e.d+=t,r=t-e.f,o=e.e+r,e.f=o-e.e-r,e.e=o}function S1n(e,t){t.Tg("Min Size Postprocessing",1),Vn(e,(yh(),iv),b.Math.max(ue(le(ve(e,iv))),ue(le(ve(e,u4))))),t.Ug()}function Ugt(e,t){e.Vj();try{e.d._c(e.e++,t),e.f=e.d.j,e.g=-1}catch(r){throw r=ci(r),ae(r,99)?Y(new $c):Y(r)}}function lY(){lY=K,Bre=new dqe,R3e=new fqe,O3e=new hqe,L3e=new pqe,D3e=new gqe,M3e=new bqe,P3e=new mqe,j3e=new wqe,F3e=new Line truncated
`;return r.substring(0,o.length)==o&&(r=r.substring(o.length)),r.split(`
`)}return[]}function umn(e){var t;return t=(nht(),J_t),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 Z1t(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=Pge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),uht(e,t,o),e.a=t,e.b=0):Mw(e.a,r),e.c=o)}function cmn(e,t){var r;return r=e.b,r.nf((_n(),zu))?r.$f()==(He(),Kt)?-r.Kf().a-ue(ce(r.mf(zu))):t+ue(ce(r.mf(zu))):r.$f()==(He(),Kt)?-r.Kf().a:t}function z6(e){var t;return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:(t=wW(e),t??""+(e.c?_s(e.c.a,e,0):-1))}function p7(e){var t;return e.f.c.length!=0&&l(ze(e.f,0),70).a?l(ze(e.f,0),70).a:(t=wW(e),t??""+(e.i?_s(e.i.j,e,0):-1))}function lmn(e,t){var r,o;if(t<0||t>=e.gc())return null;for(r=t;r<e.gc();++r)if(o=l(e.Xb(r),134),r==e.gc()-1||!o.o)return new ko(Re(r),o);return null}function tbe(e){var t,r,o,a,u;for(u=0,a=Li,o=0,r=new V(e.a);r.a<r.c.c.length;)t=l(q(r),175),u+=t.r+(o>0?e.c:0),a=b.Math.max(a,t.d),++o;e.e=u,e.b=a}function dmn(e){var t,r;if(!e.b)for(e.b=$P(l(e.f,127).jh().i),r=new tn(l(e.f,127).jh());r.e!=r.i.gc();)t=l(rn(r),158),Fe(e.b,new uq(t));return e.b}function fmn(e,t){var r,o,a;if(t.dc())return JA(),JA(),c5;for(r=new pit(e,t.gc()),a=new tn(e);a.e!=a.i.gc();)o=rn(a),t.Gc(o)&&Tn(r,o);return r}function nbe(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),e.o):(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),s6(e.o)):s7(e,t,r,o)}function PY(e){var t,r;if(e.rb)for(t=0,r=e.rb.i;t<r;++t)OO(oe(e.rb,t));if(e.vb)for(t=0,r=e.vb.i;t<r;++t)OO(oe(e.vb,t));_3((mu(),ao),e),e.Bb|=1}function Mr(e,t,r,o,a,u,f,p,m,y,v,T,N,O){return $mt(e,t,o,null,a,u,f,p,m,y,N,!0,O),b1e(e,v),ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),2),r&&hge(e,r),g1e(e,T),e}function hmn(e){var t,r;if(e==null)return null;r=0;try{r=Ec(e,Qi,sr)&Ei}catch(o){if(o=ci(o),ae(o,133))t=aj(e),r=t[0];else throw Y(o)}return A6(r)}function pmn(e){var t,r;if(e==null)return null;r=0;try{r=Ec(e,Qi,sr)&Ei}catch(o){if(o=ci(o),ae(o,133))t=aj(e),r=t[0];else throw Y(o)}return A6(r)}function gmn(e,t){var r,o,a;return a=e.h-t.h,a<0||(r=e.l-t.l,o=e.m-t.m+(r>>22),a+=o>>22,a<0)?!1:(e.l=r&Hu,e.m=o&Hu,e.h=a&Ep,!0)}function jY(e,t,r,o,a,u,f){var p,m;return!(t.Re()&&(m=e.a.Le(r,o),m<0||!a&&m==0)||t.Se()&&(p=e.a.Le(r,u),p>0||!f&&p==0))}function bmn(e,t){N_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return iY(t,FSe)-iY(e,FSe);case 4:return iY(e,jSe)-iY(t,jSe)}return 0}function mmn(e){switch(e.g){case 0:return Hee;case 1:return zee;case 2:return Gee;case 3:return qee;case 4:return Y$;case 5:return Vee;default:return null}}function os(e,t,r){var o,a;return o=(a=new nq,Yb(a,t),Ma(a,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),a),a),cg(o,0),cy(o,1),pg(o,!0),hg(o,!0),o}function ZS(e,t){var r,o;if(t>=e.i)throw Y(new iV(t,e.i));return++e.j,r=e.g[t],o=e.i-t-1,o>0&&ua(e.g,t+1,e.g,t,o),ii(e.g,--e.i,null),e.Oi(t,r),e.Li(),r}function Q1t(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function wmn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.a<a.c.c.length;)for(o=q(a),r=new V(e.b);r.a<r.c.c.length;)t=l(q(r),690),t._e(o)}function ymn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.a<a.c.c.length;)for(o=q(a),r=new V(e.b);r.a<r.c.c.length;)t=l(q(r),378),t._e(o)}function vmn(e){var t,r,o,a,u;for(a=sr,u=null,o=new V(e.d);o.a<o.c.c.length;)r=l(q(o),220),r.d.j^r.e.j&&(t=r.e.e-r.d.e-r.a,t<a&&(a=t,u=r));return u}function rbe(){rbe=K,Nkt=new pt(kwe,(Lt(),!1)),_kt=new pt(Nwe,100),M2e=(G3(),uee),xkt=new pt(Cwe,M2e),kkt=new pt(Iwe,Hf),Ckt=new pt(Rwe,Re(sr))}function ebt(e,t){var r,o,a;for(o=new $t(qt(Lf(e).a.Jc(),new D));an(o);)return r=l(en(o),17),a=l(t.Kb(r),9),new v9(kn(a.n.b+a.o.b/2));return BN(),BN(),DQ}function tbt(e,t,r){var o,a,u,f,p,m,y,v;for(y=0,a=e.a[t],u=0,f=a.length;u<f;++u)for(o=a[u],v=oC(o,r),m=v.Jc();m.Ob();)p=l(m.Pb(),12),Jn(e.f,p,Re(y++))}function nbt(e,t,r){var o,a,u,f;if(r)for(a=r.a.length,o=new Ib(a),f=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);f.Ob();)u=l(f.Pb(),15),yt(e,t,nT(ay(r,u.a)))}function rbt(e,t,r){var o,a,u,f;if(r)for(a=r.a.length,o=new Ib(a),f=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);f.Ob();)u=l(f.Pb(),15),yt(e,t,nT(ay(r,u.a)))}function ibe(e){S1();var t;return t=l(pC(kS(e.k),we(Io,ea,64,2,0,1)),128),g_(t,0,t.length,null),t[0]==(He(),Wt)&&t[1]==Kt&&(ii(t,0,Kt),ii(t,1,Wt)),t}function ibt(e,t,r){var o,a,u;return a=Z2n(e,t,r),u=Xme(e,a),tK(e.b),MW(e,t,r),At(),xi(a,new xJe(e)),o=Xme(e,a),tK(e.b),MW(e,r,t),new ko(Re(u),Re(o))}function obt(){obt=K,E4t=$n(new ui,(Vi(),Ho),(Zi(),_I)),OB=new Pr("linearSegments.inputPrio",Re(0)),DB=new Pr("linearSegments.outputPrio",Re(0))}function Emn(e){var t,r,o,a;for(r=0,t=0,a=new tn(e);a.e!=a.i.gc();)o=l(rn(a),19),r=b.Math.max(o.g+o.i,r),t=b.Math.max(o.f+o.j,t);return new Me(r,t)}function Smn(e,t){var r,o,a,u;for(u=0,o=new V(e);o.a<o.c.c.length;)r=l(q(o),19),u+=b.Math.pow(r.g*r.f-t,2);return a=b.Math.sqrt(u/(e.c.length-1)),a}function vc(){vc=K,VL=new E8("UNKNOWN",0),Ih=new E8("ABOVE",1),q1=new E8("BELOW" Line truncated
\r\f]+`);try{R4=Z(X(lCn,1),Rt,2093,0,[new eO((ude(),Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",jO((L9(),L9(),bI))))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm",jO(bI))),new eO(Xj("yyyy-MM-dd",jO(bI)))])}catch(e){if(e=ci(e),!ae(e,81))throw Y(e)}}function __n(e){var t,r,o,a,u,f,p;for(r=null,p=null,o=l(F(e.b,(Be(),mte)),349),o==(nC(),AL)&&(r=new je,p=new je),f=new V(e.d);f.a<f.c.c.length;)if(u=l(q(f),108),a=u.i,!!a)switch(u.e.g){case 0:t=l(U3(new fS(u.b)),64),o==AL&&t==(He(),Wt)?Ot(r.c,u):o==AL&&t==(He(),dn)?Ot(p.c,u):Xvn(u,t);break;case 1:E2n(u);break;case 2:case 3:FTn(u);break;case 4:Ryn(u)}r&&(r.c.length==0||lvt(r,(He(),Wt)),p.c.length==0||lvt(p,(He(),dn)))}function x_n(e,t){var r,o,a,u;if(a=Bu(e.d,1)!=0,o=m0e(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||be(F(t.j,(Be(),Ch)))===be((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oD(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Lt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Lt(),!1)),Te(t.j,e2,!0)),r=m0e(e,t);do{if(bge(e),r==0)return 0;a=!a,u=r,oD(e,t,a,!1),r=m0e(e,t)}while(u>r);return u}function yvt(e,t){var r,o,a,u;if(a=Bu(e.d,1)!=0,o=x7(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||be(F(t.j,(Be(),Ch)))===be((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oD(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Lt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Lt(),!1)),Te(t.j,e2,!0)),r=x7(e,t);do{if(bge(e),r==0)return 0;a=!a,u=r,oD(e,t,a,!1),r=x7(e,t)}while(u>r);return u}function k_n(e,t,r){var o,a,u,f,p;if(o=l(F(e,(Be(),pte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(p=new V(e.a);p.a<p.c.c.length;)f=l(q(p),9),f.k==(zt(),mi)&&(a=l(F(f,Hs),64),a==(He(),Qt)?f.n.a+=r.a-t.a:a==dn&&(f.n.b+=r.b-t.b));u=e.d,e.f.a=r.a-u.b-u.c,e.f.b=r.b-u.d-u.a}function N_n(e,t,r){var o,a,u,f,p;if(o=l(F(e,(Be(),pte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(f=new V(e.a);f.a<f.c.c.length;)u=l(q(f),9),u.k==(zt(),mi)&&(a=l(F(u,Hs),64),a==(He(),Qt)?u.n.a+=r.a-t.a:a==dn&&(u.n.b+=r.b-t.b));p=e.d,e.f.a=r.a-p.b-p.c,e.f.b=r.b-p.d-p.a}function C_n(e){var t,r,o,a,u,f,p,m,y,v,T,N;for(t=_0t(e),v=(p=new Xh(t).a.vc().Jc(),new T9(p));v.a.Ob();){for(y=(a=l(v.a.Pb(),45),l(a.jd(),9)),T=0,N=0,T=y.d.d,N=y.o.b+y.d.a,e.d[y.p]=0,r=y;(u=e.a[r.p])!=y;)o=D1n(r,u),m=0,e.c==(If(),kg)?m=o.d.n.b+o.d.a.b-o.c.n.b-o.c.a.b:m=o.c.n.b+o.c.a.b-o.d.n.b-o.d.a.b,f=ue(e.d[r.p])+m,e.d[u.p]=f,T=b.Math.max(T,u.d.d-f),N=b.Math.max(N,f+u.o.b+u.d.a),r=u;r=y;do e.d[r.p]=ue(e.d[r.p])+T,r=e.a[r.p];while(r!=y);e.b[y.p]=T+N}}function O0e(e,t,r,o){var a,u,f,p,m,y,v,T,N;return m=Di(new Me(r.a,r.b),e),y=m.a*t.b-m.b*t.a,v=t.a*o.b-t.b*o.a,T=(m.a*o.b-m.b*o.a)/v,N=y/v,v==0?y==0?(a=br(new Me(r.a,r.b),tp(new Me(o.a,o.b),.5)),u=f1(e,a),f=f1(br(new Me(e.a,e.b),t),a),p=b.Math.sqrt(o.a*o.a+o.b*o.b)*.5,u<f&&u<=p?new Me(e.a,e.b):f<=p?br(new Me(e.a,e.b),t):null):null:T>=0&&T<=1&&N>=0&&N<=1?br(new Me(e.a,e.b),tp(new Me(t.a,t.b),T)):null}function MC(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=0,f=e.t,a=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,Fe(e.n,new MP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a<v.c.c.length;)y=l(q(v),19),u+y.g+(p>0?e.i:0)>t&&m>0&&(u=0,f+=m+e.i,a=b.Math.max(a,N),o+=m+e.i,m=0,N=0,r&&(++T,Fe(e.n,new MP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&Z1e(l(ze(e.n,T),211),y),u+=y.g+(p>0?e.i:0),++p;return a=b.Math.max(a,N),o+=m,r&&(e.r=a,e.d=o,tbe(e.j)),new ql(e.s,e.t,a,o)}function V7(e){var t,r,o;return r=be(ve(e,(Be(),jT)))===be((tD(),$ee))||be(ve(e,jT))===be(Lee)||be(ve(e,jT))===be(Mee)||be(ve(e,jT))===be(jee)||be(ve(e,jT))===be(Bee)||be(ve(e,jT))===be(uL),o=be(ve(e,gB))===be((rD(),Ite))||be(ve(e,gB))===be(Ote)||be(ve(e,wL))===be((_1(),ak))||be(ve(e,wL))===be((_1(),KI)),t=be(ve(e,Ch))!==be((bp(),B1))||Ye(Ke(ve(e,tk)))||be(ve(e,jI))!==be((YS(),TI))||ue(ce(ve(e,bL)))!=0||ue(ce(ve(e,dte)))!=0,r||o||t}function CE(e){var t,r,o,a,u,f,p,m;if(!e.a){if(e.o=null,m=new eZe(e),t=new oqe,r=L4,p=r.a.yc(e,r),p==null){for(f=new tn(ds(e));f.e!=f.i.gc();)u=l(rn(f),29),ti(m,CE(u));r.a.Ac(e)!=null,r.a.gc()==0}for(a=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));a.e!=a.i.gc();)o=l(rn(a),182),ae(o,336)&&Tn(t,l(o,38));hy(t),e.k=new mot(e,(l(oe(Ne((a1(),Ut).o),7),20),t.i),t.g),ti(m,e.k),hy(m),e.a=new Qv((l(oe(Ne(Ut.o),4),20),m.i),m.g),Pu(e).b&=-2}return e.a}function I_n(e){var t,r,o,a,u,f,p,m,y,v,T,N;if(p=e.d,T=l(F(e,(Ie(),MT)),16),t=l(F(e,NT),16),!(!T&&!t)){if(u=ue(ce(by(e,(Be(),Ate)))),f=ue(ce(by(e,HAe))),N=0,T){for(y=0,a=T.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),N+=o.o.a;N+=u*(T.gc()-1),p.d+=y+f}if(r=0,t){for(y=0,a=t.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),r+=o.o.a;r+=u*(t.gc()-1),p.a+=y+f}m=b.M Line truncated
\r\r `),ns(E2,kQ,o),ns(_k,kQ,xy(o)),o=new bc(4),$6(o,N_t),ns(E2,gI,o),ns(_k,gI,xy(o)),o=new bc(4),$6(o,N_t),ns(E2,gI,o),ns(_k,gI,xy(o)),o=new bc(4),$6(o,C_t),Ny(o,l(wa(E2,gI),122)),ns(E2,xQ,o),ns(_k,xQ,xy(o)),o=new bc(4),$6(o,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),ns(E2,NQ,o),ns(_k,NQ,xy(o)),o=new bc(4),$6(o,C_t),Sa(o,95,95),Sa(o,58,58),ns(E2,CQ,o),ns(_k,CQ,xy(o))),r=l(wa(t?E2:_k,e),140),r}function KEt(e){n0(e,new Qb(gq(iO(Qm(Jm(Zm(Xm(new vb,Bt),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new yUe),Bt),xr((sT(),Dre),Z(X(s5,1),Ce,235,0,[yU,o5,i5,Ore,wU,mU]))))),De(e,Bt,Sye,Ge(Ate)),De(e,Bt,Tye,Ge(HAe)),De(e,Bt,Aye,Ge(vL)),De(e,Bt,_ye,Ge(od)),De(e,Bt,LX,Ge(o2)),De(e,Bt,SZ,Ge(ym)),De(e,Bt,xye,Ge(ev)),De(e,Bt,kye,Ge(ok)),De(e,Bt,Nye,Ge(sk)),De(e,Bt,Cye,Ge(_te)),De(e,Bt,$0,Ge(vm)),De(e,Bt,Iye,Ge(xte)),De(e,Bt,Rye,Ge(GI)),De(e,Bt,Oye,Ge(EB)),De(e,Bt,eye,Ge(yL)),De(e,Bt,nye,Ge(Qy)),De(e,Bt,tye,Ge($1)),De(e,Bt,rye,Ge(tv)),De(e,Bt,CD,Re(0)),De(e,Bt,iye,Ge(ik)),De(e,Bt,oye,Ge(UAe)),De(e,Bt,sye,Ge(FT)),De(e,Bt,Sp,Ge(XAe)),De(e,Bt,EF,Ge(GAe)),De(e,Bt,SF,Ge(qAe)),De(e,Bt,ZC,Ge(Nte)),De(e,Bt,iZ,Ge(VAe)),De(e,Bt,oZ,Ge(WAe)),De(e,Bt,TF,Ge(SB)),De(e,Bt,AF,Ge(Cte)),De(e,Bt,_F,Ge(YAe)),De(e,Bt,xF,Ge(KAe)),De(e,Bt,sZ,Ge(JAe)),De(e,Bt,aZ,Ge(IAe)),De(e,Bt,uZ,Ge(vte)),De(e,Bt,cZ,Ge(bB)),De(e,Bt,lZ,Ge(Ete)),De(e,Bt,ZX,Ge(ow)),De(e,Bt,QX,Ge(zI)),De(e,Bt,wF,Ge(wte)),De(e,Bt,yF,Ge(yAe)),De(e,Bt,RD,Ge(OIt)),De(e,Bt,OD,Ge(DIt)),De(e,Bt,DD,Ge(RIt)),De(e,Bt,LD,Ge(IIt)),De(e,Bt,U0,zAe),De(e,Bt,B0,PAe),De(e,Bt,BD,bAe),De(e,Bt,Dye,0),De(e,Bt,cF,Re(1)),De(e,Bt,mx,bx),De(e,Bt,Lye,Ge(wm)),De(e,Bt,lF,Ge(Zr)),De(e,Bt,Mye,Ge(rk)),De(e,Bt,UD,Ge(vIt)),De(e,Bt,Pye,Ge(Kf)),De(e,Bt,NF,Ge(Wy)),De(e,Bt,WC,(Lt(),!0)),De(e,Bt,jye,Ge(Ky)),De(e,Bt,Fye,Ge(bm)),De(e,Bt,ME,Ge(mm)),De(e,Bt,bT,Ge(vB)),De(e,Bt,vx,Ge(Tte)),De(e,Bt,TZ,gAe),De(e,Bt,Ex,Ge(iw)),De(e,Bt,$ye,Ge(wB)),De(e,Bt,Sx,Ge(Xy)),De(e,Bt,Bye,Ge(xIt)),De(e,Bt,Uye,Ge($Ae)),De(e,Bt,Hye,FAe),De(e,Bt,zye,Ge(TIt)),De(e,Bt,Gye,Ge(AIt)),De(e,Bt,qye,Ge(_It)),De(e,Bt,Vye,Ge(SIt)),De(e,Bt,Uwe,Ge(kte)),De(e,Bt,FD,Ge(gB)),De(e,Bt,zX,Ge(wL)),De(e,Bt,Bwe,Ge(qI)),De(e,Bt,zwe,Ge(Cs)),De(e,Bt,jD,Ge(jT)),De(e,Bt,XC,Ge(BI)),De(e,Bt,Vwe,Ge(tk)),De(e,Bt,Xwe,Ge(fAe)),De(e,Bt,KX,Ge(gte)),De(e,Bt,bF,Ge(mL)),De(e,Bt,WX,Ge(bte)),De(e,Bt,Pwe,Ge(RAe)),De(e,Bt,jwe,Ge(OAe)),De(e,Bt,gF,Ge(_Ae)),De(e,Bt,PE,Ge(yB)),De(e,Bt,JX,Ge(Ste)),De(e,Bt,Mwe,Ge(yte)),De(e,Bt,XX,Ge(LAe)),De(e,Bt,Zwe,Ge(wAe)),De(e,Bt,Qwe,Ge(mte)),De(e,Bt,CF,Ge(pte)),De(e,Bt,YX,Ge(DAe)),De(e,Bt,aye,Ge(cB)),De(e,Bt,uye,Ge(uAe)),De(e,Bt,tZ,Ge(uB)),De(e,Bt,vF,Ge(SAe)),De(e,Bt,nZ,Ge(EAe)),De(e,Bt,rZ,Ge(TAe)),De(e,Bt,mT,Ge(nk)),De(e,Bt,Wye,Ge(ss)),De(e,Bt,Kye,Ge(_g)),De(e,Bt,Yye,Ge(Yf)),De(e,Bt,ID,Ge(i2)),De(e,Bt,VX,Ge(hAe)),De(e,Bt,Jye,Ge(xg)),De(e,Bt,Xye,Ge(PI)),De(e,Bt,Zye,Ge(pB)),De(e,Bt,Qye,Ge(sw)),De(e,Bt,AZ,Ge(jAe)),De(e,Bt,_Z,Ge(Yy)),De(e,Bt,UX,Ge(kAe)),De(e,Bt,HX,Ge(NAe)),De(e,Bt,IF,Ge(Zy)),De(e,Bt,Fwe,Ge(lte)),De(e Line truncated
`,tSt=`)]}"' \r
`,nSt="The given string contains parts that cannot be parsed as numbers.",PD="org.eclipse.elk.core.math",rSt={3:1,4:1,125:1,216:1,419:1},iSt={3:1,4:1,100:1,216:1,419:1},Eg="org.eclipse.elk.alg.layered.graph.transform",oSt="ElkGraphImporter",sSt="ElkGraphImporter/lambda$1$Type",aSt="ElkGraphImporter/lambda$2$Type",uSt="ElkGraphImporter/lambda$4$Type",Zt="org.eclipse.elk.alg.layered.intermediate",cSt="Node margin calculation",lSt="ONE_SIDED_GREEDY_SWITCH",dSt="TWO_SIDED_GREEDY_SWITCH",jX="No implementation is available for the layout processor ",FX="IntermediateProcessorStrategy",$X="Node '",fSt="FIRST_SEPARATE",hSt="LAST_SEPARATE",pSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",YC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",JC={223:1},yT="org.eclipse.elk.alg.layered.intermediate.loops",Ac="org.eclipse.elk.alg.layered.intermediate.loops.ordering",C1="org.eclipse.elk.alg.layered.intermediate.loops.routing",pF="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",$s="org.eclipse.elk.alg.layered.options",BX="INTERACTIVE",Dwe="GREEDY",gSt="DEPTH_FIRST",bSt="EDGE_LENGTH",mSt="SELF_LOOPS",wSt="firstTryWithInitialOrder",Lwe="org.eclipse.elk.layered.directionCongruency",Mwe="org.eclipse.elk.layered.feedbackEdges",gF="org.eclipse.elk.layered.interactiveReferencePoint",Pwe="org.eclipse.elk.layered.mergeEdges",jwe="org.eclipse.elk.layered.mergeHierarchyEdges",Fwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",$we="org.eclipse.elk.layered.portSortingStrategy",Bwe="org.eclipse.elk.layered.thoroughness",Uwe="org.eclipse.elk.layered.unnecessaryBendpoints",Hwe="org.eclipse.elk.layered.generatePositionAndLayerIds",jD="org.eclipse.elk.layered.cycleBreaking.strategy",FD="org.eclipse.elk.layered.layering.strategy",zwe="org.eclipse.elk.layered.layering.layerConstraint",Gwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",qwe="org.eclipse.elk.layered.layering.layerId",UX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",HX="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",zX="org.eclipse.elk.layered.layering.nodePromotion.strategy",GX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",qX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",XC="org.eclipse.elk.layered.crossingMinimization.strategy",Vwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",VX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",WX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Wwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Kwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Ywe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Jwe="org.eclipse.elk.layered.crossingMinimization.positionId",Xwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",KX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",bF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",mF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",YX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",JX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",XX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",ZX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",QX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Zwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Qwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",wF="org.eclipse.elk.layered.edgeRouting.splines.mode",yF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",eZ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",eye="org.eclipse.elk.layered.spacing.baseValue",tye="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",nye="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",rye="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",iye="org.eclipse.elk.layered.priority.direction",oye="org.eclipse.elk.layered.priority.shortness",sye="org.eclipse.elk.layered.priority.straightness",tZ="org.eclipse.elk.layered.compaction.connectedComponents",aye="org.eclipse.elk.layered.compaction.postCompaction.strategy",uye="org.eclipse.elk.layered.compaction.postCompaction.constraints",vF="org.eclipse.elk.layered.highDegreeNodes.treatment",nZ="org.eclipse.elk.layered.highDegreeNodes.threshold",rZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Sp="org.eclipse.elk.layered.wrapping.strategy",EF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",SF="org.eclipse.elk.layered.wrapping.correctionFactor",ZC="org.eclipse.elk.layered.wrapping.cutting.strategy",iZ="org.eclipse.elk.layered.wrapping.cutting.cuts",oZ="org.eclipse.elk.layered.wrapping.cut Line truncated
`)}return[]}function hmn(e){var t;return t=(rht(),X_t),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 Q1t(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=Pge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),cht(e,t,o),e.a=t,e.b=0):Mw(e.a,r),e.c=o)}function pmn(e,t){var r;return r=e.b,r.nf((_n(),zu))?r.$f()==(He(),Kt)?-r.Kf().a-ue(le(r.mf(zu))):t+ue(le(r.mf(zu))):r.$f()==(He(),Kt)?-r.Kf().a:t}function z6(e){var t;return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:(t=yW(e),t??""+(e.c?_s(e.c.a,e,0):-1))}function p7(e){var t;return e.f.c.length!=0&&l(ze(e.f,0),70).a?l(ze(e.f,0),70).a:(t=yW(e),t??""+(e.i?_s(e.i.j,e,0):-1))}function gmn(e,t){var r,o;if(t<0||t>=e.gc())return null;for(r=t;r<e.gc();++r)if(o=l(e.Xb(r),134),r==e.gc()-1||!o.o)return new No(Re(r),o);return null}function tbe(e){var t,r,o,a,c;for(c=0,a=Di,o=0,r=new V(e.a);r.a<r.c.c.length;)t=l(q(r),175),c+=t.r+(o>0?e.c:0),a=b.Math.max(a,t.d),++o;e.e=c,e.b=a}function bmn(e){var t,r;if(!e.b)for(e.b=$P(l(e.f,127).jh().i),r=new tn(l(e.f,127).jh());r.e!=r.i.gc();)t=l(rn(r),158),Fe(e.b,new cq(t));return e.b}function mmn(e,t){var r,o,a;if(t.dc())return JA(),JA(),c5;for(r=new git(e,t.gc()),a=new tn(e);a.e!=a.i.gc();)o=rn(a),t.Gc(o)&&Tn(r,o);return r}function nbe(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),e.o):(!e.o&&(e.o=new pu((Qs(),Lh),Rg,e,0)),s6(e.o)):s7(e,t,r,o)}function jY(e){var t,r;if(e.rb)for(t=0,r=e.rb.i;t<r;++t)OO(oe(e.rb,t));if(e.vb)for(t=0,r=e.vb.i;t<r;++t)OO(oe(e.vb,t));_3((mu(),ao),e),e.Bb|=1}function Mr(e,t,r,o,a,c,f,p,m,y,v,T,N,O){return Bmt(e,t,o,null,a,c,f,p,m,y,N,!0,O),b1e(e,v),ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),2),r&&hge(e,r),g1e(e,T),e}function wmn(e){var t,r;if(e==null)return null;r=0;try{r=Ec(e,Qi,sr)&Ei}catch(o){if(o=ci(o),ae(o,133))t=aj(e),r=t[0];else throw Y(o)}return A6(r)}function ymn(e){var t,r;if(e==null)return null;r=0;try{r=Ec(e,Qi,sr)&Ei}catch(o){if(o=ci(o),ae(o,133))t=aj(e),r=t[0];else throw Y(o)}return A6(r)}function vmn(e,t){var r,o,a;return a=e.h-t.h,a<0||(r=e.l-t.l,o=e.m-t.m+(r>>22),a+=o>>22,a<0)?!1:(e.l=r&Hu,e.m=o&Hu,e.h=a&Ep,!0)}function FY(e,t,r,o,a,c,f){var p,m;return!(t.Re()&&(m=e.a.Le(r,o),m<0||!a&&m==0)||t.Se()&&(p=e.a.Le(r,c),p>0||!f&&p==0))}function Emn(e,t){N_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return oY(t,FSe)-oY(e,FSe);case 4:return oY(e,jSe)-oY(t,jSe)}return 0}function Smn(e){switch(e.g){case 0:return zee;case 1:return Gee;case 2:return qee;case 3:return Vee;case 4:return Y$;case 5:return Wee;default:return null}}function os(e,t,r){var o,a;return o=(a=new rq,Yb(a,t),Ma(a,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),a),a),cg(o,0),cy(o,1),pg(o,!0),hg(o,!0),o}function ZS(e,t){var r,o;if(t>=e.i)throw Y(new oV(t,e.i));return++e.j,r=e.g[t],o=e.i-t-1,o>0&&ua(e.g,t+1,e.g,t,o),ii(e.g,--e.i,null),e.Oi(t,r),e.Li(),r}function ebt(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Po(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Tmn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.a<a.c.c.length;)for(o=q(a),r=new V(e.b);r.a<r.c.c.length;)t=l(q(r),690),t._e(o)}function Amn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.a<a.c.c.length;)for(o=q(a),r=new V(e.b);r.a<r.c.c.length;)t=l(q(r),378),t._e(o)}function _mn(e){var t,r,o,a,c;for(a=sr,c=null,o=new V(e.d);o.a<o.c.c.length;)r=l(q(o),220),r.d.j^r.e.j&&(t=r.e.e-r.d.e-r.a,t<a&&(a=t,c=r));return c}function rbe(){rbe=K,Ckt=new pt(kwe,(Dt(),!1)),xkt=new pt(Nwe,100),M2e=(G3(),cee),kkt=new pt(Cwe,M2e),Nkt=new pt(Iwe,Hf),Ikt=new pt(Rwe,Re(sr))}function tbt(e,t){var r,o,a;for(o=new $t(qt(Df(e).a.Jc(),new L));an(o);)return r=l(en(o),17),a=l(t.Kb(r),9),new v9(kn(a.n.b+a.o.b/2));return BN(),BN(),DQ}function nbt(e,t,r){var o,a,c,f,p,m,y,v;for(y=0,a=e.a[t],c=0,f=a.length;c<f;++c)for(o=a[c],v=oC(o,r),m=v.Jc();m.Ob();)p=l(m.Pb(),12),Jn(e.f,p,Re(y++))}function rbt(e,t,r){var o,a,c,f;if(r)for(a=r.a.length,o=new Ib(a),f=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);f.Ob();)c=l(f.Pb(),15),yt(e,t,nT(ay(r,c.a)))}function ibt(e,t,r){var o,a,c,f;if(r)for(a=r.a.length,o=new Ib(a),f=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);f.Ob();)c=l(f.Pb(),15),yt(e,t,nT(ay(r,c.a)))}function ibe(e){S1();var t;return t=l(pC(kS(e.k),we(Ro,ea,64,2,0,1)),128),g_(t,0,t.length,null),t[0]==(He(),Wt)&&t[1]==Kt&&(ii(t,0,Kt),ii(t,1,Wt)),t}function obt(e,t,r){var o,a,c;return a=rSn(e,t,r),c=Xme(e,a),nK(e.b),PW(e,t,r),At(),xi(a,new kJe(e)),o=Xme(e,a),nK(e.b),PW(e,r,t),new No(Re(c),Re(o))}function sbt(){sbt=K,S4t=$n(new ui,(Vi(),Ho),(Zi(),_I)),OB=new Pr("linearSegments.inputPrio",Re(0)),LB=new Pr("linearSegments.outputPrio",Re(0))}function xmn(e){var t,r,o,a;for(r=0,t=0,a=new tn(e);a.e!=a.i.gc();)o=l(rn(a),19),r=b.Math.max(o.g+o.i,r),t=b.Math.max(o.f+o.j,t);return new Me(r,t)}function kmn(e,t){var r,o,a,c;for(c=0,o=new V(e);o.a<o.c.c.length;)r=l(q(o),19),c+=b.Math.pow(r.g*r.f-t,2);return a=b.Math.sqrt(c/(e.c.length-1)),a}function vc(){vc=K,VD=new E8("UNKNOWN",0),Ih=new E8("ABOVE",1),q1=new E8("BELOW" Line truncated
\r\f]+`);try{R4=Z(X(gCn,1),Rt,2093,0,[new eO((ude(),Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",jO((D9(),D9(),bI))))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm",jO(bI))),new eO(Xj("yyyy-MM-dd",jO(bI)))])}catch(e){if(e=ci(e),!ae(e,81))throw Y(e)}}function I_n(e){var t,r,o,a,c,f,p;for(r=null,p=null,o=l(F(e.b,(Be(),wte)),349),o==(nC(),AD)&&(r=new je,p=new je),f=new V(e.d);f.a<f.c.c.length;)if(c=l(q(f),108),a=c.i,!!a)switch(c.e.g){case 0:t=l(U3(new fS(c.b)),64),o==AD&&t==(He(),Wt)?Ot(r.c,c):o==AD&&t==(He(),dn)?Ot(p.c,c):nEn(c,t);break;case 1:x2n(c);break;case 2:case 3:zTn(c);break;case 4:Pyn(c)}r&&(r.c.length==0||dvt(r,(He(),Wt)),p.c.length==0||dvt(p,(He(),dn)))}function R_n(e,t){var r,o,a,c;if(a=Bu(e.d,1)!=0,o=m0e(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||me(F(t.j,(Be(),Ch)))===me((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oL(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Dt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Dt(),!1)),Te(t.j,e2,!0)),r=m0e(e,t);do{if(bge(e),r==0)return 0;a=!a,c=r,oL(e,t,a,!1),r=m0e(e,t)}while(c>r);return c}function vvt(e,t){var r,o,a,c;if(a=Bu(e.d,1)!=0,o=x7(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||me(F(t.j,(Be(),Ch)))===me((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oL(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Dt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Dt(),!1)),Te(t.j,e2,!0)),r=x7(e,t);do{if(bge(e),r==0)return 0;a=!a,c=r,oL(e,t,a,!1),r=x7(e,t)}while(c>r);return c}function O_n(e,t,r){var o,a,c,f,p;if(o=l(F(e,(Be(),gte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(p=new V(e.a);p.a<p.c.c.length;)f=l(q(p),9),f.k==(zt(),mi)&&(a=l(F(f,Hs),64),a==(He(),Qt)?f.n.a+=r.a-t.a:a==dn&&(f.n.b+=r.b-t.b));c=e.d,e.f.a=r.a-c.b-c.c,e.f.b=r.b-c.d-c.a}function L_n(e,t,r){var o,a,c,f,p;if(o=l(F(e,(Be(),gte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(f=new V(e.a);f.a<f.c.c.length;)c=l(q(f),9),c.k==(zt(),mi)&&(a=l(F(c,Hs),64),a==(He(),Qt)?c.n.a+=r.a-t.a:a==dn&&(c.n.b+=r.b-t.b));p=e.d,e.f.a=r.a-p.b-p.c,e.f.b=r.b-p.d-p.a}function D_n(e){var t,r,o,a,c,f,p,m,y,v,T,N;for(t=x0t(e),v=(p=new Xh(t).a.vc().Jc(),new T9(p));v.a.Ob();){for(y=(a=l(v.a.Pb(),45),l(a.jd(),9)),T=0,N=0,T=y.d.d,N=y.o.b+y.d.a,e.d[y.p]=0,r=y;(c=e.a[r.p])!=y;)o=F1n(r,c),m=0,e.c==(If(),kg)?m=o.d.n.b+o.d.a.b-o.c.n.b-o.c.a.b:m=o.c.n.b+o.c.a.b-o.d.n.b-o.d.a.b,f=ue(e.d[r.p])+m,e.d[c.p]=f,T=b.Math.max(T,c.d.d-f),N=b.Math.max(N,f+c.o.b+c.d.a),r=c;r=y;do e.d[r.p]=ue(e.d[r.p])+T,r=e.a[r.p];while(r!=y);e.b[y.p]=T+N}}function O0e(e,t,r,o){var a,c,f,p,m,y,v,T,N;return m=Li(new Me(r.a,r.b),e),y=m.a*t.b-m.b*t.a,v=t.a*o.b-t.b*o.a,T=(m.a*o.b-m.b*o.a)/v,N=y/v,v==0?y==0?(a=br(new Me(r.a,r.b),tp(new Me(o.a,o.b),.5)),c=f1(e,a),f=f1(br(new Me(e.a,e.b),t),a),p=b.Math.sqrt(o.a*o.a+o.b*o.b)*.5,c<f&&c<=p?new Me(e.a,e.b):f<=p?br(new Me(e.a,e.b),t):null):null:T>=0&&T<=1&&N>=0&&N<=1?br(new Me(e.a,e.b),tp(new Me(t.a,t.b),T)):null}function MC(e,t,r){var o,a,c,f,p,m,y,v,T,N;for(c=0,f=e.t,a=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,Fe(e.n,new MP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a<v.c.c.length;)y=l(q(v),19),c+y.g+(p>0?e.i:0)>t&&m>0&&(c=0,f+=m+e.i,a=b.Math.max(a,N),o+=m+e.i,m=0,N=0,r&&(++T,Fe(e.n,new MP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&Z1e(l(ze(e.n,T),211),y),c+=y.g+(p>0?e.i:0),++p;return a=b.Math.max(a,N),o+=m,r&&(e.r=a,e.d=o,tbe(e.j)),new ql(e.s,e.t,a,o)}function V7(e){var t,r,o;return r=me(ve(e,(Be(),jT)))===me((tL(),Bee))||me(ve(e,jT))===me(Mee)||me(ve(e,jT))===me(Pee)||me(ve(e,jT))===me(Fee)||me(ve(e,jT))===me(Uee)||me(ve(e,jT))===me(uD),o=me(ve(e,gB))===me((rL(),Rte))||me(ve(e,gB))===me(Lte)||me(ve(e,wD))===me((_1(),ak))||me(ve(e,wD))===me((_1(),KI)),t=me(ve(e,Ch))!==me((bp(),B1))||Ye(Ke(ve(e,tk)))||me(ve(e,jI))!==me((YS(),TI))||ue(le(ve(e,bD)))!=0||ue(le(ve(e,fte)))!=0,r||o||t}function CE(e){var t,r,o,a,c,f,p,m;if(!e.a){if(e.o=null,m=new tZe(e),t=new sqe,r=D4,p=r.a.yc(e,r),p==null){for(f=new tn(ds(e));f.e!=f.i.gc();)c=l(rn(f),29),ti(m,CE(c));r.a.Ac(e)!=null,r.a.gc()==0}for(a=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));a.e!=a.i.gc();)o=l(rn(a),182),ae(o,336)&&Tn(t,l(o,38));hy(t),e.k=new wot(e,(l(oe(Ne((a1(),Ut).o),7),20),t.i),t.g),ti(m,e.k),hy(m),e.a=new Qv((l(oe(Ne(Ut.o),4),20),m.i),m.g),Pu(e).b&=-2}return e.a}function M_n(e){var t,r,o,a,c,f,p,m,y,v,T,N;if(p=e.d,T=l(F(e,(Ie(),MT)),16),t=l(F(e,NT),16),!(!T&&!t)){if(c=ue(le(by(e,(Be(),_te)))),f=ue(le(by(e,HAe))),N=0,T){for(y=0,a=T.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),N+=o.o.a;N+=c*(T.gc()-1),p.d+=y+f}if(r=0,t){for(y=0,a=t.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),r+=o.o.a;r+=c*(t.gc()-1),p.a+=y+f}m=b.M Line truncated
\r\r `),ns(E2,NQ,o),ns(_k,NQ,xy(o)),o=new bc(4),$6(o,C_t),ns(E2,gI,o),ns(_k,gI,xy(o)),o=new bc(4),$6(o,C_t),ns(E2,gI,o),ns(_k,gI,xy(o)),o=new bc(4),$6(o,I_t),Ny(o,l(wa(E2,gI),122)),ns(E2,kQ,o),ns(_k,kQ,xy(o)),o=new bc(4),$6(o,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),ns(E2,CQ,o),ns(_k,CQ,xy(o)),o=new bc(4),$6(o,I_t),Sa(o,95,95),Sa(o,58,58),ns(E2,IQ,o),ns(_k,IQ,xy(o))),r=l(wa(t?E2:_k,e),140),r}function YEt(e){n0(e,new Qb(bq(iO(Qm(Jm(Zm(Xm(new vb,Bt),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new vUe),Bt),xr((sT(),Dre),Z(X(s5,1),Ce,235,0,[yU,o5,i5,Lre,wU,mU]))))),Le(e,Bt,Sye,Ge(_te)),Le(e,Bt,Tye,Ge(HAe)),Le(e,Bt,Aye,Ge(vD)),Le(e,Bt,_ye,Ge(od)),Le(e,Bt,MX,Ge(o2)),Le(e,Bt,TZ,Ge(ym)),Le(e,Bt,xye,Ge(ev)),Le(e,Bt,kye,Ge(ok)),Le(e,Bt,Nye,Ge(sk)),Le(e,Bt,Cye,Ge(xte)),Le(e,Bt,$0,Ge(vm)),Le(e,Bt,Iye,Ge(kte)),Le(e,Bt,Rye,Ge(GI)),Le(e,Bt,Oye,Ge(EB)),Le(e,Bt,eye,Ge(yD)),Le(e,Bt,nye,Ge(Qy)),Le(e,Bt,tye,Ge($1)),Le(e,Bt,rye,Ge(tv)),Le(e,Bt,CL,Re(0)),Le(e,Bt,iye,Ge(ik)),Le(e,Bt,oye,Ge(UAe)),Le(e,Bt,sye,Ge(FT)),Le(e,Bt,Sp,Ge(XAe)),Le(e,Bt,EF,Ge(GAe)),Le(e,Bt,SF,Ge(qAe)),Le(e,Bt,ZC,Ge(Cte)),Le(e,Bt,oZ,Ge(VAe)),Le(e,Bt,sZ,Ge(WAe)),Le(e,Bt,TF,Ge(SB)),Le(e,Bt,AF,Ge(Ite)),Le(e,Bt,_F,Ge(YAe)),Le(e,Bt,xF,Ge(KAe)),Le(e,Bt,aZ,Ge(JAe)),Le(e,Bt,uZ,Ge(IAe)),Le(e,Bt,cZ,Ge(Ete)),Le(e,Bt,lZ,Ge(bB)),Le(e,Bt,dZ,Ge(Ste)),Le(e,Bt,QX,Ge(ow)),Le(e,Bt,eZ,Ge(zI)),Le(e,Bt,wF,Ge(yte)),Le(e,Bt,yF,Ge(yAe)),Le(e,Bt,RL,Ge(LIt)),Le(e,Bt,OL,Ge(DIt)),Le(e,Bt,LL,Ge(OIt)),Le(e,Bt,DL,Ge(RIt)),Le(e,Bt,U0,zAe),Le(e,Bt,B0,PAe),Le(e,Bt,BL,bAe),Le(e,Bt,Lye,0),Le(e,Bt,cF,Re(1)),Le(e,Bt,mx,bx),Le(e,Bt,Dye,Ge(wm)),Le(e,Bt,lF,Ge(Zr)),Le(e,Bt,Mye,Ge(rk)),Le(e,Bt,UL,Ge(EIt)),Le(e,Bt,Pye,Ge(Kf)),Le(e,Bt,NF,Ge(Wy)),Le(e,Bt,WC,(Dt(),!0)),Le(e,Bt,jye,Ge(Ky)),Le(e,Bt,Fye,Ge(bm)),Le(e,Bt,ME,Ge(mm)),Le(e,Bt,bT,Ge(vB)),Le(e,Bt,vx,Ge(Ate)),Le(e,Bt,AZ,gAe),Le(e,Bt,Ex,Ge(iw)),Le(e,Bt,$ye,Ge(wB)),Le(e,Bt,Sx,Ge(Xy)),Le(e,Bt,Bye,Ge(kIt)),Le(e,Bt,Uye,Ge($Ae)),Le(e,Bt,Hye,FAe),Le(e,Bt,zye,Ge(AIt)),Le(e,Bt,Gye,Ge(_It)),Le(e,Bt,qye,Ge(xIt)),Le(e,Bt,Vye,Ge(TIt)),Le(e,Bt,Uwe,Ge(Nte)),Le(e,Bt,FL,Ge(gB)),Le(e,Bt,GX,Ge(wD)),Le(e,Bt,Bwe,Ge(qI)),Le(e,Bt,zwe,Ge(Cs)),Le(e,Bt,jL,Ge(jT)),Le(e,Bt,XC,Ge(BI)),Le(e,Bt,Vwe,Ge(tk)),Le(e,Bt,Xwe,Ge(fAe)),Le(e,Bt,YX,Ge(bte)),Le(e,Bt,bF,Ge(mD)),Le(e,Bt,KX,Ge(mte)),Le(e,Bt,Pwe,Ge(RAe)),Le(e,Bt,jwe,Ge(OAe)),Le(e,Bt,gF,Ge(_Ae)),Le(e,Bt,PE,Ge(yB)),Le(e,Bt,XX,Ge(Tte)),Le(e,Bt,Mwe,Ge(vte)),Le(e,Bt,ZX,Ge(DAe)),Le(e,Bt,Zwe,Ge(wAe)),Le(e,Bt,Qwe,Ge(wte)),Le(e,Bt,CF,Ge(gte)),Le(e,Bt,JX,Ge(LAe)),Le(e,Bt,aye,Ge(cB)),Le(e,Bt,uye,Ge(uAe)),Le(e,Bt,nZ,Ge(uB)),Le(e,Bt,vF,Ge(SAe)),Le(e,Bt,rZ,Ge(EAe)),Le(e,Bt,iZ,Ge(TAe)),Le(e,Bt,mT,Ge(nk)),Le(e,Bt,Wye,Ge(ss)),Le(e,Bt,Kye,Ge(_g)),Le(e,Bt,Yye,Ge(Yf)),Le(e,Bt,IL,Ge(i2)),Le(e,Bt,WX,Ge(hAe)),Le(e,Bt,Jye,Ge(xg)),Le(e,Bt,Xye,Ge(PI)),Le(e,Bt,Zye,Ge(pB)),Le(e,Bt,Qye,Ge(sw)),Le(e,Bt,_Z,Ge(jAe)),Le(e,Bt,xZ,Ge(Yy)),Le(e,Bt,HX,Ge(kAe)),Le(e,Bt,zX,Ge(NAe)),Le(e,Bt,IF,Ge(Zy)),Le(e,Bt,Fwe,Ge(dte)),Le(e Line truncated
`,nSt=`)]}"' \r
`,rSt="The given string contains parts that cannot be parsed as numbers.",PL="org.eclipse.elk.core.math",iSt={3:1,4:1,125:1,216:1,419:1},oSt={3:1,4:1,100:1,216:1,419:1},Eg="org.eclipse.elk.alg.layered.graph.transform",sSt="ElkGraphImporter",aSt="ElkGraphImporter/lambda$1$Type",uSt="ElkGraphImporter/lambda$2$Type",cSt="ElkGraphImporter/lambda$4$Type",Zt="org.eclipse.elk.alg.layered.intermediate",lSt="Node margin calculation",dSt="ONE_SIDED_GREEDY_SWITCH",fSt="TWO_SIDED_GREEDY_SWITCH",FX="No implementation is available for the layout processor ",$X="IntermediateProcessorStrategy",BX="Node '",hSt="FIRST_SEPARATE",pSt="LAST_SEPARATE",gSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",YC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",JC={223:1},yT="org.eclipse.elk.alg.layered.intermediate.loops",Ac="org.eclipse.elk.alg.layered.intermediate.loops.ordering",C1="org.eclipse.elk.alg.layered.intermediate.loops.routing",pF="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",$s="org.eclipse.elk.alg.layered.options",UX="INTERACTIVE",Lwe="GREEDY",bSt="DEPTH_FIRST",mSt="EDGE_LENGTH",wSt="SELF_LOOPS",ySt="firstTryWithInitialOrder",Dwe="org.eclipse.elk.layered.directionCongruency",Mwe="org.eclipse.elk.layered.feedbackEdges",gF="org.eclipse.elk.layered.interactiveReferencePoint",Pwe="org.eclipse.elk.layered.mergeEdges",jwe="org.eclipse.elk.layered.mergeHierarchyEdges",Fwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",$we="org.eclipse.elk.layered.portSortingStrategy",Bwe="org.eclipse.elk.layered.thoroughness",Uwe="org.eclipse.elk.layered.unnecessaryBendpoints",Hwe="org.eclipse.elk.layered.generatePositionAndLayerIds",jL="org.eclipse.elk.layered.cycleBreaking.strategy",FL="org.eclipse.elk.layered.layering.strategy",zwe="org.eclipse.elk.layered.layering.layerConstraint",Gwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",qwe="org.eclipse.elk.layered.layering.layerId",HX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",zX="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",GX="org.eclipse.elk.layered.layering.nodePromotion.strategy",qX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",VX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",XC="org.eclipse.elk.layered.crossingMinimization.strategy",Vwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",WX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",KX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Wwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Kwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Ywe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Jwe="org.eclipse.elk.layered.crossingMinimization.positionId",Xwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",YX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",bF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",mF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",JX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",XX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",ZX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",QX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",eZ="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Zwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Qwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",wF="org.eclipse.elk.layered.edgeRouting.splines.mode",yF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",tZ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",eye="org.eclipse.elk.layered.spacing.baseValue",tye="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",nye="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",rye="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",iye="org.eclipse.elk.layered.priority.direction",oye="org.eclipse.elk.layered.priority.shortness",sye="org.eclipse.elk.layered.priority.straightness",nZ="org.eclipse.elk.layered.compaction.connectedComponents",aye="org.eclipse.elk.layered.compaction.postCompaction.strategy",uye="org.eclipse.elk.layered.compaction.postCompaction.constraints",vF="org.eclipse.elk.layered.highDegreeNodes.treatment",rZ="org.eclipse.elk.layered.highDegreeNodes.threshold",iZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Sp="org.eclipse.elk.layered.wrapping.strategy",EF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",SF="org.eclipse.elk.layered.wrapping.correctionFactor",ZC="org.eclipse.elk.layered.wrapping.cutting.strategy",oZ="org.eclipse.elk.layered.wrapping.cutting.cuts",sZ="org.eclipse.elk.layered.wrapping.cut Line truncated
start=`,ba(t,this.i),t.a+=`
end=`,ba(t,this.a),t.a+=`
nodeStartEdge=`,ba(t,this.e),t.a+=`
@@ -514,28 +514,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
startInLayerDummy=`,ba(t,this.k),t.a+=`
startInLayerEdge=`,ba(t,this.n),t.a+=`
endInLayerDummy=`,ba(t,this.b),t.a+=`
endInLayerEdge=`,ba(t,this.c),t.a},k(zf,"BreakingPointInserter/BPInfo",318),_(657,1,{657:1},vJe),h.a=!1,h.b=0,h.c=0,k(zf,"BreakingPointInserter/Cut",657),_(1523,1,kr,hUe),h.If=function(t,r){n2n(l(t,37),r)},k(zf,"BreakingPointProcessor",1523),_(1524,1,Mn,lUe),h.Mb=function(t){return sft(l(t,9))},k(zf,"BreakingPointProcessor/0methodref$isEnd$Type",1524),_(1525,1,Mn,pUe),h.Mb=function(t){return aft(l(t,9))},k(zf,"BreakingPointProcessor/1methodref$isStart$Type",1525),_(1526,1,kr,gUe),h.If=function(t,r){_2n(this,l(t,37),r)},k(zf,"BreakingPointRemover",1526),_(1527,1,nn,bUe),h.Ad=function(t){l(t,134).k=!0},k(zf,"BreakingPointRemover/lambda$0$Type",1527),_(805,1,{},kme),h.b=0,h.e=0,h.f=0,h.j=0,k(zf,"GraphStats",805),_(806,1,{},Lue),h.Te=function(t,r){return b.Math.max(ue(ce(t)),ue(ce(r)))},k(zf,"GraphStats/0methodref$max$Type",806),_(807,1,{},Mue),h.Te=function(t,r){return b.Math.max(ue(ce(t)),ue(ce(r)))},k(zf,"GraphStats/2methodref$max$Type",807),_(1709,1,{},mUe),h.Te=function(t,r){return pin(ce(t),ce(r))},k(zf,"GraphStats/lambda$1$Type",1709),_(1710,1,{},dJe),h.Kb=function(t){return f1t(this.a,l(t,26))},k(zf,"GraphStats/lambda$2$Type",1710),_(1711,1,{},fJe),h.Kb=function(t){return bwt(this.a,l(t,26))},k(zf,"GraphStats/lambda$6$Type",1711),_(808,1,{},Pue),h.mg=function(t,r){var o;return o=l(F(t,(Be(),VAe)),16),o||(At(),At(),Co)},h.ng=function(){return!1},k(zf,"ICutIndexCalculator/ManualCutIndexCalculator",808),_(810,1,{},jue),h.mg=function(t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee;for(Ee=(r.n==null&&$1t(r),r.n),y=(r.d==null&&$1t(r),r.d),de=we(Ki,Jo,30,Ee.length,15,1),de[0]=Ee[0],ne=Ee[0],v=1;v<Ee.length;v++)de[v]=de[v-1]+Ee[v],ne+=Ee[v];for(u=gmt(r)-1,p=l(F(t,(Be(),WAe)),15).a,a=Li,o=new je,O=b.Math.max(0,u-p);O<=b.Math.min(r.f-1,u+p);O++){if(z=ne/(O+1),J=0,T=1,f=new je,se=Li,N=0,m=0,U=y[0],O==0)se=ne,m=(r.g==null&&(r.g=wht(r,new Mue)),ue(r.g));else{for(;T<r.f;)de[T-1]-J>=z&&(Fe(f,Re(T)),se=b.Math.max(se,de[T-1]-N),m+=U,J+=de[T-1]-J,N=de[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}M=b.Math.min(1/se,1/r.b/m),M>a&&(a=M,o=f)}return o},h.ng=function(){return!1},k(zf,"MSDCutIndexHeuristic",810),_(1664,1,kr,wUe),h.If=function(t,r){f_n(l(t,37),r)},k(zf,"SingleEdgeGraphWrapper",1664),_(233,23,{3:1,34:1,23:1,233:1},n3);var KE,Wx,Kx,zy,xI,YE,Yx=fn($s,"CenterEdgeLabelPlacementStrategy",233,bn,Ndn,Rrn),CNt;_(427,23,{3:1,34:1,23:1,427:1},Rle);var BSe,Oee,USe=fn($s,"ConstraintCalculationStrategy",427,bn,Kan,Irn),INt;_(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},l8),h.bg=function(){return twt(this)},h.og=function(){return twt(this)};var aL,kI,HSe,zSe,GSe=fn($s,"CrossingMinimizationStrategy",302,bn,iln,Lrn),RNt;_(351,23,{3:1,34:1,23:1,351:1},Oq);var qSe,Dee,W$,VSe=fn($s,"CuttingStrategy",351,bn,qun,Mrn),ONt;_(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return syt(this)},h.og=function(){return syt(this)};var Lee,WSe,Mee,Pee,jee,Fee,$ee,Bee,uL,KSe=fn($s,"CycleBreakingStrategy",268,bn,$fn,Prn),DNt;_(424,23,{3:1,34:1,23:1,424:1},Ole);var K$,YSe,JSe=fn($s,"DirectionCongruency",424,bn,Yan,jrn),LNt;_(452,23,{3:1,34:1,23:1,452:1},Dq);var Jx,Uee,JE,MNt=fn($s,"EdgeConstraint",452,bn,Vun,Frn),PNt;_(286,23,{3:1,34:1,23:1,286:1},r3);var Hee,zee,Gee,qee,Y$,Vee,XSe=fn($s,"EdgeLabelSideSelection",286,bn,_dn,$rn),jNt;_(479,23,{3:1,34:1,23:1,479:1},Dle);var J$,ZSe,QSe=fn($s,"EdgeStraighteningStrategy",479,bn,Jan,Brn),FNt;_(284,23,{3:1,34:1,23:1,284:1},i3);var Wee,eTe,tTe,X$,nTe,rTe,iTe=fn($s,"FixedAlignment",284,bn,xdn,Urn),$Nt;_(285,23,{3:1,34:1,23:1,285:1},o3);var oTe,sTe,aTe,uTe,NI,cTe,lTe=fn($s,"GraphCompactionStrategy",285,bn,kdn,Hrn),BNt;_(262,23,{3:1,34:1,23:1,262:1},Fw);var Xx,Z$,Zx,rl,CI,Q$,Qx,XE,eB,II,Kee=fn($s,"GraphProperties",262,bn,shn,zrn),UNt;_(303,23,{3:1,34:1,23:1,303:1},Lq);var cL,Yee,Jee,Xee=fn($s,"GreedySwitchType",303,bn,Gun,Grn),HNt;_(330,23,{3:1,34:1,23:1,330:1},Mq);var Gy,dTe,lL,Zee=fn($s,"GroupOrderStrategy",330,bn,Hun,qrn),zNt;_(316,23,{3:1,34:1,23:1,316:1},Pq);var kT,dL,ZE,GNt=fn($s,"InLayerConstraint",316,bn,zun,Vrn),qNt;_(425,23,{3:1,34:1,23:1,425:1},Lle);var Qee,fTe,hTe=fn($s,"InteractiveReferencePoint",425,bn,qan,Wrn),VNt,pTe,NT,ew,fL,tB,gTe,bTe,nB,mTe,CT,rB,RI,IT,_p,ete,iB,Hs,wTe,j1,xa,tte,nte,hL,hm,tw,RT,yTe,WNt,OT,pL,qy,Cd,Nl,rte,QE,F1,Cr,mr,vTe,ETe,STe,TTe,ATe,ite,oB,Nu,nw,ote,DT,OI,Ag,e2,rw,t2,n2,ek,pm,_Te,ste,ate,DI,LT,sB,MT,r2;_(166,23,{3:1,34:1,23:1,166:1},bO);var LI,xp,MI,gm,gL,xTe=fn($s,"LayerConstraint",166,bn,Qln,Krn),KNt;_(428,23,{3:1,34:1,23:1,428:1},Mle);var ute,cte,kTe=fn($s,"LayerUnzippingStrategy",428,bn,Van,Yrn),YNt;_(851,1,td,IWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Lwe),""),"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."),BTe),(A1(),$r)),JSe),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mwe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by Line truncated
`;for(r=An(this.a,0);r.b!=r.d.c;)t=l(Sn(r),65),u+=(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t))+`
`;return u};var tCn=k(eI,"TGraph",121);_(640,497,{3:1,497:1,640:1,105:1,151:1}),k(eI,"TShape",640),_(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},FK),h.Ib=function(){return Fb(this)};var MB=k(eI,"TNode",41);_(239,1,Eh,Qh),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},k(eI,"TNode/2",239),_(335,1,Wi,qv),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return oO(this.a)},h.Qb=function(){fK(this.a)},k(eI,"TNode/2/1",335),_(1910,1,kr,xHe),h.If=function(t,r){b3n(this,l(t,121),r)},k(Aa,"CompactionProcessor",1910),_(1911,1,Un,KJe),h.Le=function(t,r){return Chn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$0$Type",1911),_(1912,1,Mn,Ltt),h.Mb=function(t){return Han(this.b,this.a,l(t,49))},h.a=0,h.b=0,k(Aa,"CompactionProcessor/lambda$1$Type",1912),_(1921,1,Un,kHe),h.Le=function(t,r){return Rsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$10$Type",1921),_(1922,1,Un,NHe),h.Le=function(t,r){return Jtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$11$Type",1922),_(1923,1,Un,CHe),h.Le=function(t,r){return Osn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$12$Type",1923),_(1913,1,Mn,YJe),h.Mb=function(t){return Ptn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$2$Type",1913),_(1914,1,Mn,JJe),h.Mb=function(t){return jtn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$3$Type",1914),_(1915,1,Mn,IHe),h.Mb=function(t){return l(t,41).c.indexOf(DF)==-1},k(Aa,"CompactionProcessor/lambda$4$Type",1915),_(1916,1,{},XJe),h.Kb=function(t){return Bcn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$5$Type",1916),_(1917,1,{},ZJe),h.Kb=function(t){return Ydn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$6$Type",1917),_(1918,1,Un,QJe),h.Le=function(t,r){return idn(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$7$Type",1918),_(1919,1,Un,eXe),h.Le=function(t,r){return odn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$8$Type",1919),_(1920,1,Un,RHe),h.Le=function(t,r){return Xtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$9$Type",1920),_(1908,1,kr,OHe),h.If=function(t,r){cTn(l(t,121),r)},k(Aa,"DirectionProcessor",1908),_(k1,1,kr,xit),h.If=function(t,r){CAn(this,l(t,121),r)},k(Aa,"FanProcessor",k1),_(1263,1,kr,DHe),h.If=function(t,r){Xwt(l(t,121),r)},k(Aa,"GraphBoundsProcessor",1263),_(1264,1,{},LHe),h.We=function(t){return l(t,41).e.a},k(Aa,"GraphBoundsProcessor/lambda$0$Type",1264),_(1265,1,{},MHe),h.We=function(t){return l(t,41).e.b},k(Aa,"GraphBoundsProcessor/lambda$1$Type",1265),_(1266,1,{},PHe),h.We=function(t){return men(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$2$Type",1266),_(1267,1,{},jHe),h.We=function(t){return wen(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$3$Type",1267),_(265,23,{3:1,34:1,23:1,265:1,177:1},r0),h.bg=function(){switch(this.g){case 0:return new ZZe;case 1:return new xit;case 2:return new XZe;case 3:return new HHe;case 4:return new $He;case 8:return new FHe;case 5:return new OHe;case 6:return new GHe;case 7:return new xHe;case 9:return new DHe;case 10:return new qHe;default:throw Y(new jt(jX+(this.f!=null?this.f:""+this.g)))}};var I_e,R_e,O_e,D_e,L_e,M_e,P_e,j_e,F_e,$_e,Jte,nCn=fn(Aa,FX,265,bn,Rht,min),Z4t;_(1907,1,kr,FHe),h.If=function(t,r){pNn(l(t,121),r)},k(Aa,"LevelCoordinatesProcessor",1907),_(1905,1,kr,$He),h.If=function(t,r){D2n(this,l(t,121),r)},h.a=0,k(Aa,"LevelHeightProcessor",1905),_(1906,1,Eh,BHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"LevelHeightProcessor/1",1906),_(1901,1,kr,XZe),h.If=function(t,r){VSn(this,l(t,121),r)},k(Aa,"LevelProcessor",1901),_(1902,1,Mn,UHe),h.Mb=function(t){return Ye(Ke(F(l(t,41),(Nr(),z1))))},k(Aa,"LevelProcessor/lambda$0$Type",1902),_(1903,1,kr,HHe),h.If=function(t,r){Fyn(this,l(t,121),r)},h.a=0,k(Aa,"NeighborsProcessor",1903),_(1904,1,Eh,zHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"NeighborsProcessor/1",1904),_(1909,1,kr,GHe),h.If=function(t,r){kAn(this,l(t,121),r)},h.a=0,k(Aa,"NodePositionProcessor",1909),_(1899,1,kr,ZZe),h.If=function(t,r){pxn(this,l(t,121),r)},k(Aa,"RootProcessor",1899),_(1924,1,kr,qHe),h.If=function(t,r){Sbn(l(t,121),r)},k(Aa,"Untreeifyer",1924),_(386,23,{3:1,34:1,23:1,386:1},qq);var kL,Xte,B_e,U_e=fn(HD,"EdgeRoutingMode",386,bn,ecn,win),Q4t,NL,ck,Zte,H_e,z_e,Qte,ene,G_e,tne,q_e,nne,r4,rne,PB,jB,sd,Id,lk,i4,o4,Ng,V_e,eRt,ine,z1,CL,IL;_(854,1,td,JWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sve),""),USt),"Turns on Tree c Line truncated
`),u.length!=2)throw Y(new jt("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=vy(Ey(u[0])),this.b=vy(Ey(u[1]))}catch(f){throw f=ci(f),ae(f,133)?(o=f,Y(new jt(nSt+o))):Y(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=k(PD,"KVector",8);_(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Lu,B9,Yrt),h.Nc=function(){return Npn(this)},h.ag=function(t){var r,o,a,u,f,p;a=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),tc(this);try{for(o=0,f=0,u=0,p=0;o<a.length;)a[o]!=null&&Ey(a[o]).length>0&&(f%2==0?u=vy(a[o]):p=vy(a[o]),f>0&&f%2!=0&&Gn(this,new Me(u,p)),++f),++o}catch(m){throw m=ci(m),ae(m,133)?(r=m,Y(new jt("The given string does not match the expected format for vectors."+r))):Y(m)}},h.Ib=function(){var t,r,o;for(t=new fc("("),r=An(this,0);r.b!=r.d.c;)o=l(Sn(r),8),zn(t,o.a+","+o.b),r.b!=r.d.c&&(t.a+="; ");return(t.a+=")",t).a};var Hke=k(PD,"KVectorChain",79);_(259,23,{3:1,34:1,23:1,259:1},s3);var sre,eU,tU,jL,FL,nU,zke=fn(Fa,"Alignment",259,bn,Rdn,Jin),k6t;_(984,1,td,uKe),h.tf=function(t){Uyt(t)};var Gke,are,N6t,qke,Vke,C6t,Wke,I6t,R6t,Kke,Yke,O6t;k(Fa,"BoxLayouterOptions",984),_(985,1,{},IGe),h.uf=function(){var t;return t=new DGe,t},h.vf=function(t){},k(Fa,"BoxLayouterOptions/BoxFactory",985),_(300,23,{3:1,34:1,23:1,300:1},a3);var g4,ure,b4,m4,w4,cre,lre=fn(Fa,"ContentAlignment",300,bn,Idn,Xin),D6t;_(696,1,td,que),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,hTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),HT)),Je),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,pTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),sCn),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Jke),$r),zke),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,rEe),""),"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."),lf),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CF),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Zke),UT),lre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UD),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Qke),$r),E4),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,BD),""),"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."),nNe),$r),Tre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tEe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,NF),""),"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`."),iNe),$r),WNe),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,B0),""),"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."),gNe),lf),K2e),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wx),""),"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),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RF),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yx),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node l Line truncated
endInLayerEdge=`,ba(t,this.c),t.a},k(zf,"BreakingPointInserter/BPInfo",318),_(657,1,{657:1},EJe),h.a=!1,h.b=0,h.c=0,k(zf,"BreakingPointInserter/Cut",657),_(1523,1,kr,pUe),h.If=function(t,r){a2n(l(t,37),r)},k(zf,"BreakingPointProcessor",1523),_(1524,1,Mn,dUe),h.Mb=function(t){return aft(l(t,9))},k(zf,"BreakingPointProcessor/0methodref$isEnd$Type",1524),_(1525,1,Mn,gUe),h.Mb=function(t){return uft(l(t,9))},k(zf,"BreakingPointProcessor/1methodref$isStart$Type",1525),_(1526,1,kr,bUe),h.If=function(t,r){I2n(this,l(t,37),r)},k(zf,"BreakingPointRemover",1526),_(1527,1,nn,mUe),h.Ad=function(t){l(t,134).k=!0},k(zf,"BreakingPointRemover/lambda$0$Type",1527),_(805,1,{},kme),h.b=0,h.e=0,h.f=0,h.j=0,k(zf,"GraphStats",805),_(806,1,{},Due),h.Te=function(t,r){return b.Math.max(ue(le(t)),ue(le(r)))},k(zf,"GraphStats/0methodref$max$Type",806),_(807,1,{},Mue),h.Te=function(t,r){return b.Math.max(ue(le(t)),ue(le(r)))},k(zf,"GraphStats/2methodref$max$Type",807),_(1709,1,{},wUe),h.Te=function(t,r){return yin(le(t),le(r))},k(zf,"GraphStats/lambda$1$Type",1709),_(1710,1,{},fJe),h.Kb=function(t){return h1t(this.a,l(t,26))},k(zf,"GraphStats/lambda$2$Type",1710),_(1711,1,{},hJe),h.Kb=function(t){return mwt(this.a,l(t,26))},k(zf,"GraphStats/lambda$6$Type",1711),_(808,1,{},Pue),h.mg=function(t,r){var o;return o=l(F(t,(Be(),VAe)),16),o||(At(),At(),Io)},h.ng=function(){return!1},k(zf,"ICutIndexCalculator/ManualCutIndexCalculator",808),_(810,1,{},jue),h.mg=function(t,r){var o,a,c,f,p,m,y,v,T,N,O,M,U,z,J,re,se,de,Ee;for(Ee=(r.n==null&&B1t(r),r.n),y=(r.d==null&&B1t(r),r.d),de=we(Ki,Jo,30,Ee.length,15,1),de[0]=Ee[0],re=Ee[0],v=1;v<Ee.length;v++)de[v]=de[v-1]+Ee[v],re+=Ee[v];for(c=bmt(r)-1,p=l(F(t,(Be(),WAe)),15).a,a=Di,o=new je,O=b.Math.max(0,c-p);O<=b.Math.min(r.f-1,c+p);O++){if(z=re/(O+1),J=0,T=1,f=new je,se=Di,N=0,m=0,U=y[0],O==0)se=re,m=(r.g==null&&(r.g=yht(r,new Mue)),ue(r.g));else{for(;T<r.f;)de[T-1]-J>=z&&(Fe(f,Re(T)),se=b.Math.max(se,de[T-1]-N),m+=U,J+=de[T-1]-J,N=de[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}M=b.Math.min(1/se,1/r.b/m),M>a&&(a=M,o=f)}return o},h.ng=function(){return!1},k(zf,"MSDCutIndexHeuristic",810),_(1664,1,kr,yUe),h.If=function(t,r){m_n(l(t,37),r)},k(zf,"SingleEdgeGraphWrapper",1664),_(233,23,{3:1,34:1,23:1,233:1},n3);var KE,Wx,Kx,zy,xI,YE,Yx=fn($s,"CenterEdgeLabelPlacementStrategy",233,bn,Ldn,Prn),INt;_(427,23,{3:1,34:1,23:1,427:1},Rle);var BSe,Lee,USe=fn($s,"ConstraintCalculationStrategy",427,bn,Qan,Mrn),RNt;_(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},l8),h.bg=function(){return nwt(this)},h.og=function(){return nwt(this)};var aD,kI,HSe,zSe,GSe=fn($s,"CrossingMinimizationStrategy",302,bn,cln,$rn),ONt;_(351,23,{3:1,34:1,23:1,351:1},Lq);var qSe,Dee,W$,VSe=fn($s,"CuttingStrategy",351,bn,Jun,Brn),LNt;_(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return ayt(this)},h.og=function(){return ayt(this)};var Mee,WSe,Pee,jee,Fee,$ee,Bee,Uee,uD,KSe=fn($s,"CycleBreakingStrategy",268,bn,Gfn,Urn),DNt;_(424,23,{3:1,34:1,23:1,424:1},Ole);var K$,YSe,JSe=fn($s,"DirectionCongruency",424,bn,eun,Hrn),MNt;_(452,23,{3:1,34:1,23:1,452:1},Dq);var Jx,Hee,JE,PNt=fn($s,"EdgeConstraint",452,bn,Xun,zrn),jNt;_(286,23,{3:1,34:1,23:1,286:1},r3);var zee,Gee,qee,Vee,Y$,Wee,XSe=fn($s,"EdgeLabelSideSelection",286,bn,Idn,Grn),FNt;_(479,23,{3:1,34:1,23:1,479:1},Lle);var J$,ZSe,QSe=fn($s,"EdgeStraighteningStrategy",479,bn,tun,qrn),$Nt;_(284,23,{3:1,34:1,23:1,284:1},i3);var Kee,eTe,tTe,X$,nTe,rTe,iTe=fn($s,"FixedAlignment",284,bn,Rdn,Vrn),BNt;_(285,23,{3:1,34:1,23:1,285:1},o3);var oTe,sTe,aTe,uTe,NI,cTe,lTe=fn($s,"GraphCompactionStrategy",285,bn,Odn,Wrn),UNt;_(262,23,{3:1,34:1,23:1,262:1},Fw);var Xx,Z$,Zx,rl,CI,Q$,Qx,XE,eB,II,Yee=fn($s,"GraphProperties",262,bn,dhn,Krn),HNt;_(303,23,{3:1,34:1,23:1,303:1},Mq);var cD,Jee,Xee,Zee=fn($s,"GreedySwitchType",303,bn,Yun,Yrn),zNt;_(330,23,{3:1,34:1,23:1,330:1},Pq);var Gy,dTe,lD,Qee=fn($s,"GroupOrderStrategy",330,bn,Wun,Jrn),GNt;_(316,23,{3:1,34:1,23:1,316:1},jq);var kT,dD,ZE,qNt=fn($s,"InLayerConstraint",316,bn,Kun,Xrn),VNt;_(425,23,{3:1,34:1,23:1,425:1},Dle);var ete,fTe,hTe=fn($s,"InteractiveReferencePoint",425,bn,Jan,Zrn),WNt,pTe,NT,ew,fD,tB,gTe,bTe,nB,mTe,CT,rB,RI,IT,_p,tte,iB,Hs,wTe,j1,xa,nte,rte,hD,hm,tw,RT,yTe,KNt,OT,pD,qy,Cd,Nl,ite,QE,F1,Cr,mr,vTe,ETe,STe,TTe,ATe,ote,oB,Nu,nw,ste,LT,OI,Ag,e2,rw,t2,n2,ek,pm,_Te,ate,ute,LI,DT,sB,MT,r2;_(166,23,{3:1,34:1,23:1,166:1},bO);var DI,xp,MI,gm,gD,xTe=fn($s,"LayerConstraint",166,bn,idn,Qrn),YNt;_(428,23,{3:1,34:1,23:1,428:1},Mle);var cte,lte,kTe=fn($s,"LayerUnzippingStrategy",428,bn,Xan,ein),JNt;_(851,1,td,RWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Dwe),""),"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."),BTe),(A1(),$r)),JSe),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mwe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by Line truncated
`;for(r=An(this.a,0);r.b!=r.d.c;)t=l(Sn(r),65),c+=(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t))+`
`;return c};var sCn=k(eI,"TGraph",121);_(640,497,{3:1,497:1,640:1,105:1,151:1}),k(eI,"TShape",640),_(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},$K),h.Ib=function(){return Fb(this)};var MB=k(eI,"TNode",41);_(239,1,Eh,Qh),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},k(eI,"TNode/2",239),_(335,1,Wi,qv),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return oO(this.a)},h.Qb=function(){hK(this.a)},k(eI,"TNode/2/1",335),_(1910,1,kr,kHe),h.If=function(t,r){E3n(this,l(t,121),r)},k(Aa,"CompactionProcessor",1910),_(1911,1,Un,YJe),h.Le=function(t,r){return Dhn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$0$Type",1911),_(1912,1,Mn,Mtt),h.Mb=function(t){return Wan(this.b,this.a,l(t,49))},h.a=0,h.b=0,k(Aa,"CompactionProcessor/lambda$1$Type",1912),_(1921,1,Un,NHe),h.Le=function(t,r){return Psn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$10$Type",1921),_(1922,1,Un,CHe),h.Le=function(t,r){return tnn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$11$Type",1922),_(1923,1,Un,IHe),h.Le=function(t,r){return jsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$12$Type",1923),_(1913,1,Mn,JJe),h.Mb=function(t){return Utn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$2$Type",1913),_(1914,1,Mn,XJe),h.Mb=function(t){return Htn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$3$Type",1914),_(1915,1,Mn,RHe),h.Mb=function(t){return l(t,41).c.indexOf(LF)==-1},k(Aa,"CompactionProcessor/lambda$4$Type",1915),_(1916,1,{},ZJe),h.Kb=function(t){return qcn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$5$Type",1916),_(1917,1,{},QJe),h.Kb=function(t){return efn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$6$Type",1917),_(1918,1,Un,eXe),h.Le=function(t,r){return cdn(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$7$Type",1918),_(1919,1,Un,tXe),h.Le=function(t,r){return ldn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$8$Type",1919),_(1920,1,Un,OHe),h.Le=function(t,r){return nnn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$9$Type",1920),_(1908,1,kr,LHe),h.If=function(t,r){pTn(l(t,121),r)},k(Aa,"DirectionProcessor",1908),_(k1,1,kr,kit),h.If=function(t,r){DAn(this,l(t,121),r)},k(Aa,"FanProcessor",k1),_(1263,1,kr,DHe),h.If=function(t,r){Zwt(l(t,121),r)},k(Aa,"GraphBoundsProcessor",1263),_(1264,1,{},MHe),h.We=function(t){return l(t,41).e.a},k(Aa,"GraphBoundsProcessor/lambda$0$Type",1264),_(1265,1,{},PHe),h.We=function(t){return l(t,41).e.b},k(Aa,"GraphBoundsProcessor/lambda$1$Type",1265),_(1266,1,{},jHe),h.We=function(t){return Sen(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$2$Type",1266),_(1267,1,{},FHe),h.We=function(t){return Ten(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$3$Type",1267),_(265,23,{3:1,34:1,23:1,265:1,177:1},r0),h.bg=function(){switch(this.g){case 0:return new QZe;case 1:return new kit;case 2:return new ZZe;case 3:return new zHe;case 4:return new BHe;case 8:return new $He;case 5:return new LHe;case 6:return new qHe;case 7:return new kHe;case 9:return new DHe;case 10:return new VHe;default:throw Y(new jt(FX+(this.f!=null?this.f:""+this.g)))}};var I_e,R_e,O_e,L_e,D_e,M_e,P_e,j_e,F_e,$_e,Xte,aCn=fn(Aa,$X,265,bn,Oht,Sin),Q4t;_(1907,1,kr,$He),h.If=function(t,r){yNn(l(t,121),r)},k(Aa,"LevelCoordinatesProcessor",1907),_(1905,1,kr,BHe),h.If=function(t,r){F2n(this,l(t,121),r)},h.a=0,k(Aa,"LevelHeightProcessor",1905),_(1906,1,Eh,UHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"LevelHeightProcessor/1",1906),_(1901,1,kr,ZZe),h.If=function(t,r){XSn(this,l(t,121),r)},k(Aa,"LevelProcessor",1901),_(1902,1,Mn,HHe),h.Mb=function(t){return Ye(Ke(F(l(t,41),(Nr(),z1))))},k(Aa,"LevelProcessor/lambda$0$Type",1902),_(1903,1,kr,zHe),h.If=function(t,r){zyn(this,l(t,121),r)},h.a=0,k(Aa,"NeighborsProcessor",1903),_(1904,1,Eh,GHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"NeighborsProcessor/1",1904),_(1909,1,kr,qHe),h.If=function(t,r){OAn(this,l(t,121),r)},h.a=0,k(Aa,"NodePositionProcessor",1909),_(1899,1,kr,QZe),h.If=function(t,r){yxn(this,l(t,121),r)},k(Aa,"RootProcessor",1899),_(1924,1,kr,VHe),h.If=function(t,r){kbn(l(t,121),r)},k(Aa,"Untreeifyer",1924),_(386,23,{3:1,34:1,23:1,386:1},Vq);var kD,Zte,B_e,U_e=fn(HL,"EdgeRoutingMode",386,bn,ocn,Tin),eRt,ND,ck,Qte,H_e,z_e,ene,tne,G_e,nne,q_e,rne,r4,ine,PB,jB,sd,Id,lk,i4,o4,Ng,V_e,tRt,one,z1,CD,ID;_(854,1,td,XWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sve),""),HSt),"Turns on Tree c Line truncated
`),c.length!=2)throw Y(new jt("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=vy(Ey(c[0])),this.b=vy(Ey(c[1]))}catch(f){throw f=ci(f),ae(f,133)?(o=f,Y(new jt(rSt+o))):Y(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=k(PL,"KVector",8);_(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Du,B9,Jrt),h.Nc=function(){return Lpn(this)},h.ag=function(t){var r,o,a,c,f,p;a=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),tc(this);try{for(o=0,f=0,c=0,p=0;o<a.length;)a[o]!=null&&Ey(a[o]).length>0&&(f%2==0?c=vy(a[o]):p=vy(a[o]),f>0&&f%2!=0&&Gn(this,new Me(c,p)),++f),++o}catch(m){throw m=ci(m),ae(m,133)?(r=m,Y(new jt("The given string does not match the expected format for vectors."+r))):Y(m)}},h.Ib=function(){var t,r,o;for(t=new fc("("),r=An(this,0);r.b!=r.d.c;)o=l(Sn(r),8),zn(t,o.a+","+o.b),r.b!=r.d.c&&(t.a+="; ");return(t.a+=")",t).a};var Hke=k(PL,"KVectorChain",79);_(259,23,{3:1,34:1,23:1,259:1},s3);var are,eU,tU,jD,FD,nU,zke=fn(Fa,"Alignment",259,bn,Pdn,ton),N6t;_(984,1,td,cKe),h.tf=function(t){Hyt(t)};var Gke,ure,C6t,qke,Vke,I6t,Wke,R6t,O6t,Kke,Yke,L6t;k(Fa,"BoxLayouterOptions",984),_(985,1,{},RGe),h.uf=function(){var t;return t=new DGe,t},h.vf=function(t){},k(Fa,"BoxLayouterOptions/BoxFactory",985),_(300,23,{3:1,34:1,23:1,300:1},a3);var g4,cre,b4,m4,w4,lre,dre=fn(Fa,"ContentAlignment",300,bn,Mdn,non),D6t;_(696,1,td,que),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,pTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),HT)),Je),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,gTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),dCn),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Jke),$r),zke),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,rEe),""),"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."),lf),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CF),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Zke),UT),dre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UL),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Dt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,AZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Qke),$r),E4),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,BL),""),"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."),nNe),$r),Are),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tEe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,NF),""),"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`."),iNe),$r),WNe),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,B0),""),"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."),gNe),lf),K2e),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wx),""),"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),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RF),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yx),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node l Line truncated
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!G.workerFactory){var Q=s("./elk-worker.min.js"),ie=Q.Worker;G.workerFactory=function(pe){return new ie(pe)}}return E(this,j,[G])}return R(j,$),b(j)}(D);Object.defineProperty(c.exports,"__esModule",{value:!0}),c.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,c,d){var g=typeof Worker<"u"?Worker:void 0;c.exports=g},{}]},{},[3])(3)})})(YWt);var jZn=YWt.exports;const FZn=TR(jZn),$Zn=new FZn;async function BZn(n,i){try{const s=n.map(b=>({id:b.id,width:HZn(b.type),height:zZn(b.type)})),c=i.map(b=>({id:b.id,sources:[b.source],targets:[b.target]})),d={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"100","elk.spacing.edgeNode":"40","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s,edges:c},g=await $Zn.layout(d);return n.map(b=>{var E;const w=(E=g.children)==null?void 0:E.find(S=>S.id===b.id);return w&&w.x!==void 0&&w.y!==void 0?{...b,position:{x:w.x,y:w.y}}:b})}catch{return UZn(n)}}function UZn(n){return n.map((b,w)=>{const E=w%3,S=Math.floor(w/3);return{...b,position:{x:100+E*300,y:100+S*150}}})}function HZn(n){switch(n){case"trigger":return 200;case"condition":return 220;case"action":return 200;case"delay":return 180;case"wait":return 180;default:return 200}}function zZn(n){switch(n){case"trigger":return 80;case"condition":return 100;case"action":return 80;case"delay":return 70;case"wait":return 70;default:return 80}}function GZn(n){return typeof n=="object"&&n!==null&&"delay"in n&&(typeof n.delay=="string"||typeof n.delay=="number"||typeof n.delay=="object"&&n.delay!==null)}const JWt={hours:60*60*1e3,minutes:60*1e3,seconds:1e3,milliseconds:1};function HDe(n){return typeof n=="number"&&Number.isFinite(n)}function qZn(n){const i=n.trim(),s=/^\{\{\s*([\s\S]*?)\s*\}\}$/.exec(i);return s?s[1].trim():i}function VZn(n){if(HDe(n))return String(n);if(typeof n!="string"||n.trim()==="")return null;const i=n.trim(),s=Number(i);return Number.isFinite(s)?String(s):`(${qZn(i)})`}function WZn(n){const i=Object.entries(JWt).flatMap(([w,E])=>{const S=VZn(n[w]);return S?E===1?[S]:[`(${S}) * ${E}`]:[]}),s=i.length>0?i.join(" + "):"0",c=`(${s}) // 3600000`,d=`((${s}) % 3600000) // 60000`,g=`((${s}) % 60000) // 1000`,b=`(${s}) % 1000`;return Object.prototype.hasOwnProperty.call(n,"milliseconds")?`{{ '%02d:%02d:%02d.%03d' | format(${c}, ${d}, ${g}, ${b}) }}`:`{{ '%02d:%02d:%02d' | format(${c}, ${d}, ${g}) }}`}function KZn(n){if(typeof n=="string")return n;if(HDe(n))return String(n);if(typeof n!="object"||n===null)return"";const i=n,s={};let c=!1;for(const d of Object.keys(JWt)){const g=i[d];if(g!==void 0){if(HDe(g)){s[d]=g;continue}if(typeof g=="string"&&g.trim()!==""){const b=Number(g.trim());Number.isFinite(b)?s[d]=b:c=!0;continue}c=!0}}return c?WZn(i):s}function YZn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function JZn(n){return typeof n=="object"&&n!==null&&"choose"in n}function XZn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function ZZn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function QZn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function eQn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function tQn(n){return typeof n=="object"&&n!==null&&"variables"in n&&typeof n.variables=="object"&&!("service"in n)&&!("action"in n)&&!("delay"in n)&&!("wait_template"in n)&&!("choose"in n)&&!("if"in n)}function nQn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function rQn(n){return typeof n=="object"&&n!==null&&"stop"in n}function iQn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function oQn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const k5=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function zDe(n){return n.map(i=>sQn(i))}function sQn(n){const{condition:i,conditions:s,...c}=n,d=i||"template",g=k5.includes(d)?d:"template",b=Array.isArray(s)?zDe(s):void 0;return{...c,condition:g,conditions:b}}class aQn{async parse(i){const s=[];try{let c=kZn(i);if(Array.isArray(c)){if(c.length===0)return{success:!1,errors:["Empty automation array"],warnings:s,hadMetadata:!1};c=c[0]}if(!c||typeof c!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:s,hadMetadata:!1};const d=this.extractMetadata(c),g=d!==null,b=this.extractUserVariables(c),w=c;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:s,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:x,edges:A}=S?this.parseStateMachineStructure(w,s,E):this.parseA Line truncated
... Falling back to non-web worker version.`);if(!G.workerFactory){var Q=s("./elk-worker.min.js"),ie=Q.Worker;G.workerFactory=function(he){return new ie(he)}}return E(this,j,[G])}return R(j,$),b(j)}(L);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,u,d){var g=typeof Worker<"u"?Worker:void 0;u.exports=g},{}]},{},[3])(3)})})(eKt);var HZn=eKt.exports;const zZn=TR(HZn),GZn=new zZn;async function qZn(n,i){try{const s=n.map(b=>({id:b.id,width:WZn(b.type),height:KZn(b.type)})),u=i.map(b=>({id:b.id,sources:[b.source],targets:[b.target]})),d={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"100","elk.spacing.edgeNode":"40","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s,edges:u},g=await GZn.layout(d);return n.map(b=>{var E;const w=(E=g.children)==null?void 0:E.find(S=>S.id===b.id);return w&&w.x!==void 0&&w.y!==void 0?{...b,position:{x:w.x,y:w.y}}:b})}catch{return VZn(n)}}function VZn(n){return n.map((b,w)=>{const E=w%3,S=Math.floor(w/3);return{...b,position:{x:100+E*300,y:100+S*150}}})}function WZn(n){switch(n){case"trigger":return 200;case"condition":return 220;case"action":return 200;case"delay":return 180;case"wait":return 180;default:return 200}}function KZn(n){switch(n){case"trigger":return 80;case"condition":return 100;case"action":return 80;case"delay":return 70;case"wait":return 70;default:return 80}}function YZn(n){return typeof n=="object"&&n!==null&&"delay"in n&&(typeof n.delay=="string"||typeof n.delay=="number"||typeof n.delay=="object"&&n.delay!==null)}const tKt={hours:60*60*1e3,minutes:60*1e3,seconds:1e3,milliseconds:1};function HLe(n){return typeof n=="number"&&Number.isFinite(n)}function JZn(n){const i=n.trim(),s=/^\{\{\s*([\s\S]*?)\s*\}\}$/.exec(i);return s?s[1].trim():i}function XZn(n){if(HLe(n))return String(n);if(typeof n!="string"||n.trim()==="")return null;const i=n.trim(),s=Number(i);return Number.isFinite(s)?String(s):`(${JZn(i)})`}function ZZn(n){const i=Object.entries(tKt).flatMap(([w,E])=>{const S=XZn(n[w]);return S?E===1?[S]:[`(${S}) * ${E}`]:[]}),s=i.length>0?i.join(" + "):"0",u=`(${s}) // 3600000`,d=`((${s}) % 3600000) // 60000`,g=`((${s}) % 60000) // 1000`,b=`(${s}) % 1000`;return Object.hasOwn(n,"milliseconds")?`{{ '%02d:%02d:%02d.%03d' | format(${u}, ${d}, ${g}, ${b}) }}`:`{{ '%02d:%02d:%02d' | format(${u}, ${d}, ${g}) }}`}function QZn(n){if(typeof n=="string")return n;if(HLe(n))return String(n);if(typeof n!="object"||n===null)return"";const i=n,s={};let u=!1;for(const d of Object.keys(tKt)){const g=i[d];if(g!==void 0){if(HLe(g)){s[d]=g;continue}if(typeof g=="string"&&g.trim()!==""){const b=Number(g.trim());Number.isFinite(b)?s[d]=b:u=!0;continue}u=!0}}return u?ZZn(i):s}function eQn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function tQn(n){return typeof n=="object"&&n!==null&&"choose"in n}function nQn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function rQn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function iQn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function oQn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function sQn(n){return typeof n=="object"&&n!==null&&"variables"in n&&typeof n.variables=="object"&&!("service"in n)&&!("action"in n)&&!("delay"in n)&&!("wait_template"in n)&&!("choose"in n)&&!("if"in n)}function aQn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function uQn(n){return typeof n=="object"&&n!==null&&"stop"in n}function cQn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function lQn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const k5=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function zLe(n){return n.map(i=>dQn(i))}function dQn(n){const{condition:i,conditions:s,...u}=n,d=i||"template",g=k5.includes(d)?d:"template",b=Array.isArray(s)?zLe(s):void 0;return{...u,condition:g,conditions:b}}class fQn{async parse(i){const s=[];try{let u=OZn(i);if(Array.isArray(u)){if(u.length===0)return{success:!1,errors:["Empty automation array"],warnings:s,hadMetadata:!1};u=u[0]}if(!u||typeof u!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:s,hadMetadata:!1};const d=this.extractMetadata(u),g=d!==null,b=this.extractUserVariables(u),w=u;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:s,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:x,edges:A}=S?this.parseStateMachineStructure(w,s,E):this.parseAutomationStructure(w,s, Line truncated
Data: ${JSON.stringify(ie==null?void 0:ie.data,null,2)}`}return`Schema path: ${ee.path.join(".")}
Message: ${ee.message}${re?`
${re}`:""}`});return console.error("Zod validation error details:",G),{success:!1,errors:G,warnings:s,hadMetadata:g}}const P=UVt(j.data);return P.valid?{success:!0,graph:j.data,warnings:s,hadMetadata:g}:{success:!1,errors:P.errors,warnings:s,hadMetadata:g}}catch(c){return console.error("YAML parsing error:",c),console.error("YAML string:",i),{success:!1,errors:[c instanceof Error?c.message:"Unknown parsing error"],warnings:s,hadMetadata:!1}}}extractMetadata(i){try{let s;if(typeof i.variables=="object"&&i.variables!==null&&(s=i.variables),s&&typeof s=="object"&&"_cafe_metadata"in s&&typeof s._cafe_metadata=="object"&&s._cafe_metadata!==null){const c=s._cafe_metadata,d=$Vt.safeParse(c);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const s={};if(typeof i.variables=="object"&&i.variables!==null){const c=i.variables;for(const[d,g]of Object.entries(c))d!=="_cafe_metadata"&&(s[d]=g)}return s}detectStateMachineFormat(i){const s=i.actions||i.action;if(!Array.isArray(s))return!1;let c=!1,d=!1;for(const g of s){const b=g;if(b.variables){const w=b.variables;"current_node"in w&&"flow_context"in w&&(c=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const x=S;if(Array.isArray(x.choose)){d=!0;break}}}}return c&&d}parseStateMachineStructure(i,s,c){const d=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))return s.push("No actions found in automation"),{nodes:d,edges:g};let w=null;const E=new Map;for(const j of b){const P=j;if(P.variables){const G=P.variables;typeof G.current_node=="string"&&G.current_node!=="END"&&(w=G.current_node)}if(P.repeat){const ee=P.repeat.sequence;if(Array.isArray(ee))for(const re of ee){const Q=re;if(Array.isArray(Q.choose))for(const ie of Q.choose){const pe=this.parseStateMachineChooseBlock(ie);pe&&E.set(pe.nodeId,pe)}}}}const S=new Map;for(const[j,P]of E){if(!/^__parallel_trigger_\d+$/.test(j))continue;const G=this.parseInlineParallelBranches(P.parallelItems??[],E);G.length>0&&S.set(j,G),E.delete(j)}const x=new Set(E.keys()),A=c.filter(j=>!x.has(j));let C=0,R=0;const L=j=>C<A.length?A[C++]:FFt(j,R++),D=i.triggers||i.trigger;if(!D)return s.push("No triggers found in automation"),{nodes:d,edges:g};const B=Array.isArray(D)?D:[D],$=this.parseTriggers(B,s,L);d.push(...$);for(const[j,P]of E)switch(P.nodeType){case"condition":d.push({id:j,type:"condition",position:{x:0,y:0},data:P.data});break;case"action":d.push({id:j,type:"action",position:{x:0,y:0},data:P.data});break;case"delay":d.push({id:j,type:"delay",position:{x:0,y:0},data:P.data});break;case"wait":d.push({id:j,type:"wait",position:{x:0,y:0},data:P.data});break}if(w){const j=this.parseEntryNodeTemplate(w);if(j&&j.size>0)for(let P=0;P<$.length;P++){const G=j.get(P);if(G){const ee=S.get(G);if(ee)for(const re of ee)g.push(this.createEdge($[P].id,re));else g.push(this.createEdge($[P].id,G))}}else for(const P of $)g.push(this.createEdge(P.id,w))}for(const[j,P]of E)P.trueTarget&&P.trueTarget!=="END"&&g.push({id:`edge-${j}-${P.trueTarget}`,source:j,target:P.trueTarget,sourceHandle:P.nodeType==="condition"||P.falseTarget?"true":void 0}),P.falseTarget&&P.falseTarget!=="END"&&g.push({id:`edge-${j}-${P.falseTarget}`,source:j,target:P.falseTarget,sourceHandle:"false"});return{nodes:d,edges:g}}parseEntryNodeTemplate(i){if(!i.includes("{%")||!i.includes("trigger.idx"))return null;const s=new Map,c=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(c);for(const b of d){const w=parseInt(b[1],10),E=b[2].trim();s.set(w,E)}const g=i.match(/{%\s*else\s*%}\s*([^{%]+?)(?={%|$)/);if(g&&s.size>0){const b=Math.max(...s.keys());s.set(b+1,g[1].trim())}return s.size>0?s:null}parseInlineParallelBranches(i,s){const c=[];let d=0;const g=b=>`inline_${b}_${d++}`;for(const b of i){const w=b,E=w.alias,S=E==null?void 0:E.match(/^parallel_branch:(.+)$/);if(S){const A=S[1];c.push(A),Array.isArray(w.sequence)?this.parseInlineActionList(w.sequence,A,s,g):this.parseInlineActionItem(w,A,s,g);continue}if((w.service??w.action)==="system_log.write"){const A=w.data,C=A==null?void 0:A.message;if(C){const R=C.match(/^Node:\s*(.+)$/);R&&c.push(R[1])}}}return c}parseInlineActionList(i,s,c,d){let g=null;for(let b=0;b<i.length;b++){const w=i[b],{nodeId:E}=this.extractCafeNodeId(w.alias),S=b===0?s:E??d(this.inferInlineNodeType(w));if(g){const x=c.get(g);x&&x.nodeType!=="condition"&&(x.trueTarget=S)}this.parseInlineActionItem(w,S,c,d),g=S}}parseInlineActionItem(i,s,c,d){const g=i.alias,{cleanAlias:b}=this.extractCafeNodeId(g),w=b!=null&&b.startsWith("parallel_branch:")?void 0:b;if(i.if&&Array.isArray(i.if)){const x={...i.if[0]??{}};w&&(x.alias=w);let A=null,C=null;const R=i.then;if(R&&R.length>0){const{nodeId:D}=this.extractCafeNodeId(R[0].alias),B=D??d(this.inferInlineNodeType(R[0]));A=B,this.parseInlineActionList(R,B,c,d)}const L=i.else;if(L&&L.length>0){const{nodeId:D}=this.extractCafeNodeId(L[0].alias),B=D??d(this.inferInlineNodeType(L[0]));C=B,this.parseInlineActionList(L,B,c,d)}c.set(s,{nodLine truncated
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(Q8n,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||d("nodes:types.stop")}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[I.jsx("div",{className:"font-medium opacity-70",children:d(L?"nodes:actions.stopError":"nodes:actions.stopExecution")}),R&&I.jsx("div",{className:"truncate opacity-75 italic",children:R})]})]}):I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-green-200 p-1",children:I.jsx(rae,{className:"h-4 w-4 text-green-700"})}),I.jsx("span",{className:"font-semibold text-green-900 text-sm",children:s.alias||($?s.event:B)||"Action"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-green-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-green-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:$?I.jsx("span",{className:"opacity-60",children:d("nodes:actions.fireEvent")}):I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"opacity-60",children:[D,"."]}),B]})}),P&&I.jsx("div",{className:"truncate opacity-75",children:P})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),ber=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State",numeric_state:"Numeric",template:"Template",time:"Time",zone:"Zone",sun:"Sun",and:"AND",or:"OR",not:"NOT",device:"Device",trigger:"Trigger"};return I.jsxs("div",{className:Sr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-blue-500 !border-blue-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-blue-200 p-1",children:I.jsx(fGt,{className:"h-4 w-4 text-blue-700"})}),I.jsx("span",{className:"font-semibold text-blue-900 text-sm",children:s.alias||A[s.condition]||"Condition"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-blue-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:A[s.condition]||s.condition}),s.entity_id&&I.jsx("div",{className:"truncate opacity-75",children:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id}),s.state&&I.jsxs("div",{className:"opacity-75",children:["= ",s.state]}),s.above!=null&&I.jsxs("div",{className:"opacity-75",children:["> ",s.above]}),s.below!=null&&I.jsxs("div",{className:"opacity-75",children:["< ",s.below]}),s.after&&I.jsxs("div",{className:"opacity-75",children:["after: ",s.after]}),s.before&&I.jsxs("div",{className:"opacity-75",children:["before: ",s.before]}),s.zone&&I.jsxs("div",{className:"opacity-75",children:["zone: ",s.zone]}),s.attribute&&I.jsxs("div",{className:"opacity-75",children:["attr: ",s.attribute]}),s.for&&I.jsxs("div",{className:"opacity-75",children:["for: ",typeof s.for=="string"?s.for:`${s.for.hours||0}h ${s.for.minutes||0}m ${s.for.seconds||0}s`]}),s.template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.template.slice(0,30),"..."]}),s.value_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.value_template.slice(0,30),"..."]}),typeof s.id=="string"&&I.jsxs("div",{className:"opacity-75",children:["id: ",s.id]}),Array.isArray(s.conditions)&&s.conditions.length>0&&I.jsx("div",{className:"opacity-75",children:Jie("nodes:conditions.nestedConditions",{count:s.conditions.length})})]}),I.jsx($h,{type:"source",position:qr.Right,id:"true",style:{top:"30%"},className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsx($h,{type:"source",position:qr.Right,id:"false",style:{top:"70%"},className:"!w-3 !h-3 !bg-red-500 !border-red-700"}),I.jsx("div",{className:"absolute top-[30%] right-[-40px] -translate-y-1/2 transform rounded border border-green-200 bg-white px-1 py-0.5 font-medium text-[10px] text-green-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Jie("nodes:conditions.yes")}),I.jsx("div",{className:"absolute top-[70%] right-[-36px] -translate-y-1/2 transform rounded border border-red-200 bg-white px-1 py-0.5 font-medium text-[10px] text-red-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Jie("nodes:conditions.no")})]})});function sKt(n){if(!n)return"";if(typeof n=="string")return n;if(typeof n=="object"){const i=[];return n.hours&&i.push(`${n.hours}h`),n.minutes&&i.push(`${n.minutes}m`),n.seconds&&i.push(`${n.seconds}s`),n.milliseconds&&i.push(`${n.milliseconds}ms`),i.join(" ")||"0s"}return String(n)}const mer=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=sKt(s.delay);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-purple-200 p-1",children:I.jsx(F5e,{className:"h-4 w-4 text-purple-700"})}),I.jsx("span",{className:"font-semibold text-purple-900 text-sm",children:s.alias||"Delay"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-purple-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-purple-700 text-xs",children:I.jsx("div",{className:"font-mono",children:A})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"})]})}),wer=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=Object.keys(s.variables||{}).length;return I.jsxs("div",{className:Sr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-cyan-200 p-1",children:I.jsx(wGt,{className:"h-4 w-4 text-cyan-700"})}),I.jsx("span",{className:"font-semibold text-cyan-900 text-sm",children:s.alias||"Set Variables"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-cyan-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-cyan-700 text-xs",children:I.jsx("div",{className:"font-medium opacity-75",children:Jie("nodes:variables.variableCount",{count:A})})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),yer=H.memo(function({id:i,data:s,selected:c}){const d=Do(L=>L.activeNodeId),g=Do(L=>L.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State Change",time:"Time",time_pattern:"Time Pattern",event:"Event",mqtt:"MQTT",webhook:"Webhook",sun:"Sun",zone:"Zone",numeric_state:"Numeric State",template:"Template",homeassistant:"Home Assistant",device:"Device"},R=(()=>{const L=s.trigger;switch(L){case"device":return{title:s.alias||"Device Trigger",subtitle:s.type?`${s.domain||"device"}: ${s.type}`:"Device",detail:s.device_id?`Device: ${String(s.device_id).substring(0,8)}...`:null};case"state":return{title:s.alias||"State Change",subtitle:Array.isArray(s.entity_id)?`${s.entity_id.length} entities:
${s.entity_id.join(", ")}`:s.entity_id||"State",detail:s.to?`to: ${s.to}`:null};case"numeric_state":return{title:s.alias||"Numeric State",subtitle:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id||"Numeric State",detail:s.above||s.below?`${s.above?`>${s.above}`:""}${s.above&&s.below?" ":""}${s.below?`<${s.below}`:""}`:null};case"event":return{title:s.alias||"Event",subtitle:A[L],detail:s.event_type||null};case"time":return{title:s.alias||"Time",subtitle:A[L],detail:s.at||null};case"sun":return{title:s.alias||"Sun",subtitle:A[L],detail:s.event?`${s.event}${s.offset?` ${s.offset}`:""}`:null};case"mqtt":return{title:s.alias||"MQTT",subtitle:A[L],detail:s.topic||null};case"webhook":return{title:s.alias||"Webhook",subtitle:A[L],detail:s.webhook_id||null};case"zone":return{title:s.alias||"Zone",subtitle:A[L],detail:s.zone||(Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id)||null};default:return{title:s.alias||A[L]||"Trigger",subtitle:A[L]||L,detail:null}}})();return I.jsxs("div",{className:Sr("relative min-w-[180px] max-w-[300px] rounded-lg border-2 border-amber-400 bg-amber-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-amber-200 p-1",children:I.jsx(yGt,{className:"h-4 w-4 text-amber-700"})}),I.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:R.title}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-amber-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-amber-700 text-xs",children:[I.jsx("div",{className:"line-clamp-2 truncate whitespace-pre-line font-medium",children:R.subtitle}),R.detail&&I.jsx("div",{className:"truncate opacity-75",children:String(R.detail)})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-amber-500 !border-amber-700"})]})}),ver=H.memo(function({id:i,data:s,selected:c}){const{t:d}=ps(["common","nodes"]),g=Do(R=>R.activeNodeId),b=Do(R=>R.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=sKt(s.timeout);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(hGt,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||"Wait for"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[s.wait_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.wait_template.slice(0,30),"..."]}),s.wait_for_trigger&&I.jsx("div",{className:"truncate text-[10px] opacity-75",children:d("nodes:wait.waitsForNTrigger",{count:s.wait_for_trigger.length})}),C&&I.jsxs("div",{className:"opacity-75",children:[d("nodes:wait.timeoutLabel")," ",C]})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"})]})});var Eer=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ser=Eer.reduce((n,i)=>{const s=lae(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),Ter="Separator",KFt="horizontal",Aer=["horizontal","vertical"],aKt=H.forwardRef((n,i)=>{const{decorative:s,orientation:c=KFt,...d}=n,g=_er(c)?c:KFt,w=s?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return I.jsx(Ser.div,{"data-orientation":g,...w,...d,ref:i})});aKt.displayName=Ter;function _er(n){return Aer.includes(n)}var uKt=aKt;const Pz=H.forwardRef(({className:n,orientation:i="horizontal",decorative:s=!0,...c},d)=>I.jsx(uKt,{ref:d,decorative:s,orientation:i,className:Sr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...c}));Pz.displayName=uKt.displayName;function xer(){const{undo:n,redo:i,canUndo:s,canRedo:c}=QWt(Do.temporal,tKt(b=>({undo:b.undo,redo:b.redo,canUndo:b.pastStates.length>0,canRedo:b.futureStates.length>0}))),d=H.useCallback(()=>{n(),Do.getState().validateAllNodes()},[n]),g=H.useCallback(()=>{i(),Do.getState().validateAllNodes()},[i]);return{undo:d,redo:g,canUndo:s,canRedo:c}}function UMe(){var i;const n=navigator;return(i=n.userAgentData)!=null&&i.platform?n.userAgentData.platform==="macOS":/Mac|iPhone|iPod|iPad/.test(navigator.platform)||/Macintosh/.test(navigator.userAgent)}function ker(n){return{name:"align-bottom",icon:V9n,tooltip:n("toolbar.alignBottom"),shortcut:"ctrl+shift+b",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.y+(g.height||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s-(g.height||0)}}:g);i.setNodes(d)}}}function Ner(n){return{name:"align-left",icon:Z9n,tooltip:n("toolbar.alignLeft"),shortcut:"ctrl+shift+l",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.x)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s}}:g);i.setNodes(d)}}}function Cer(n){return{name:"align-right",icon:K9n,tooltip:n("toolbar.alignRight"),shortcut:"ctrl+shift+r",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.x+(g.width||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s-(g.width||0)}}:g);i.setNodes(d)}}}function Ier(n){return{name:"align-top",icon:J9n,tooltip:n("toolbar.alignTop"),shortcut:"ctrl+shift+t",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.y)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s}}:g);i.setNodes(d)}}}function cKt(n){const i=n.selectedNodes.map(c=>c.id),s=n.edges.filter(c=>i.includes(c.source)&&i.includes(c.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:s})),n.setPasteCount(0)}function lKt(n,i,s){const c=(s.pasteCount||0)+1;s.setPasteCount(c);const d=50*c,g=new Map,b=s.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=Xoe(E.type??"node");return g.set(E.id,S),{...E,selected:!0,id:S,position:{x:E.position.x+d,y:E.position.y+d}}});if(s.setNodes([...b,...w]),i.length>0){const E=i.map(S=>({...S,id:`edge-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,source:g.get(S.source)??S.source,target:g.get(S.target)??S.target}));s.setEdges([...s.edges,...E])}}function Rer(n){ret Line truncated
`))||s("errors:import.parseFailed"));ee(On.graph),setTimeout(()=>{Q({padding:.2,duration:300})},50),j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.success(s("dialogs:import.importSuccess",{name:ht.friendly_name||ht.automation_id}))}else j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.warning(s("dialogs:import.openedWarning",{name:ht.friendly_name||ht.automation_id}),{description:s("dialogs:import.openedWarningDescription")});i()}catch(vt){console.error("C.A.F.E.: Failed to open automation:",vt),N2.error(s("dialogs:import.importFailed",{message:vt.message}))}},dt=()=>{me.length===1&&K(()=>{We(me[0])})},Ue=ht=>{const Xt=ht.map(vt=>vt.friendly_name).filter(Boolean);return Xt.length===0?s("dialogs:import.defaultMergedName"):Xt.length<=2?Xt.join(" + "):`${Xt[0]} + ${Xt.length-1} more`},bt=async()=>{if(!(me.length<2))try{const ht=Mv(D,B);if(!ht.isConnected())throw new Error(s("errors:connection.noConnection"));const Xt=await ht.getAutomationConfigsBatch(me.map(Ft=>Ft.automation_id)),vt=[];for(const Ft of me){let On=Xt[Ft.automation_id];if(On||(On=await ht.getAutomationConfigWithFallback(Ft.automation_id,Ft.friendly_name)),!On)throw new Error(s("dialogs:import.mergeFailedMissingConfig",{name:Ft.friendly_name}));const Zn=gse(On,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Yn=await GDe.fromYaml(Zn);if(!Yn.success||!Yn.graph)throw new Error(s("dialogs:import.mergeFailedInvalidYaml",{name:Ft.friendly_name}));vt.push({graph:Yn.graph,automationId:Ft.automation_id,entityId:Ft.entity_id,alias:Ft.friendly_name||Ft.automation_id})}const Ct=ftr(vt);ee(Ct),j(Ue(me)),P(null),x(new Set),setTimeout(()=>{Q({padding:.2,duration:300})},50),N2.success(s("dialogs:import.mergeSuccess",{count:me.length})),i()}catch(ht){console.error("C.A.F.E.: Failed to merge automations:",ht),N2.error(s("dialogs:import.mergeFailed",{message:ht.message}))}},kt=ht=>{if(!ht)return s("dialogs:import.never");const Xt=new Date(ht),Ct=new Date().getTime()-Xt.getTime(),Ft=Math.floor(Ct/(1e3*60)),On=Math.floor(Ft/60),Zn=Math.floor(On/24);return Ft<1?s("dialogs:import.justNow"):Ft<60?s("dialogs:import.minutesAgo",{count:Ft}):On<24?s("dialogs:import.hoursAgo",{count:On}):Zn<7?s("dialogs:import.daysAgo",{count:Zn}):Xt.toLocaleDateString()};return n?I.jsxs(wR,{open:n,onOpenChange:i,children:[I.jsxs(aN,{className:"flex max-h-[90vh] max-w-4xl flex-col",children:[I.jsx(uN,{className:"space-y-3",children:I.jsxs("div",{className:"flex items-center justify-between pr-8",children:[I.jsxs("div",{children:[I.jsx(cN,{children:s("dialogs:import.title")}),I.jsx(lN,{children:s("dialogs:import.descriptionFull")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(Ri,{variant:"outline",onClick:me.length===1?dt:()=>K(()=>void bt()),disabled:me.length===0,children:[me.length>1?I.jsx(V8n,{className:"mr-2 h-4 w-4"}):I.jsx(T9t,{className:"mr-2 h-4 w-4"}),me.length>1?s("dialogs:import.openTogether"):s("dialogs:import.openSingle")]}),I.jsxs(Ri,{onClick:()=>{K(()=>{G(),j(s("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[I.jsx(dGt,{className:"mr-2 h-4 w-4"}),s("dialogs:import.createNew")]})]})]})}),I.jsxs("div",{className:"flex min-h-0 flex-col",children:[I.jsxs("div",{className:"relative mb-4",children:[I.jsx(bGt,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),I.jsx(Na,{type:"text",placeholder:s("dialogs:import.searchPlaceholder"),value:c,onChange:ht=>d(ht.target.value),className:"pl-10"})]}),I.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-t-md",children:I.jsxs("div",{className:"min-w-full",children:[I.jsx("div",{className:"sticky top-0 z-20 bg-background before:absolute before:-top-px before:right-0 before:left-0 before:h-px before:bg-background",children:I.jsxs("div",{className:"flex",children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center border-b bg-muted px-2 py-2",children:I.jsx(YDe,{checked:le,onCheckedChange:xe,title:s(le?"dialogs:import.unselectAll":"dialogs:import.selectAll")})}),I.jsxs("button",{type:"button",onClick:()=>Se("name"),className:"flex-1 cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.name"),Le("name")]}),I.jsxs("button",{type:"button",onClick:()=>Se("lastTriggered"),className:"w-[120px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.lastTriggered"),Le("lastTriggered")]}),I.jsxs("button",{type:"button",onClick:()=>Se("enabled"),className:"w-[80px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.enabled"),Le("enabled")]}),I.jsx("div",{className:"w-[60px] border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground Line truncated
Message: ${ee.message}${ne?`
${ne}`:""}`});return console.error("Zod validation error details:",G),{success:!1,errors:G,warnings:s,hadMetadata:g}}const P=GVt(j.data);return P.valid?{success:!0,graph:j.data,warnings:s,hadMetadata:g}:{success:!1,errors:P.errors,warnings:s,hadMetadata:g}}catch(u){return console.error("YAML parsing error:",u),console.error("YAML string:",i),{success:!1,errors:[u instanceof Error?u.message:"Unknown parsing error"],warnings:s,hadMetadata:!1}}}extractMetadata(i){try{let s;if(typeof i.variables=="object"&&i.variables!==null&&(s=i.variables),s&&typeof s=="object"&&"_cafe_metadata"in s&&typeof s._cafe_metadata=="object"&&s._cafe_metadata!==null){const u=s._cafe_metadata,d=HVt.safeParse(u);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const s={};if(typeof i.variables=="object"&&i.variables!==null){const u=i.variables;for(const[d,g]of Object.entries(u))d!=="_cafe_metadata"&&(s[d]=g)}return s}detectStateMachineFormat(i){const s=i.actions||i.action;if(!Array.isArray(s))return!1;let u=!1,d=!1;for(const g of s){const b=g;if(b.variables){const w=b.variables;"current_node"in w&&"flow_context"in w&&(u=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const x=S;if(Array.isArray(x.choose)){d=!0;break}}}}return u&&d}parseStateMachineStructure(i,s,u){const d=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))return s.push("No actions found in automation"),{nodes:d,edges:g};let w=null;const E=new Map;for(const G of b){const ee=G;if(ee.variables){const ne=ee.variables;typeof ne.current_node=="string"&&ne.current_node!=="END"&&(w=ne.current_node)}if(ee.repeat){const Q=ee.repeat.sequence;if(Array.isArray(Q))for(const ie of Q){const he=ie;if(Array.isArray(he.choose))for(const ge of he.choose){const ce=this.parseStateMachineChooseBlock(ge);ce&&E.set(ce.nodeId,ce)}}}}const S=/^__parallel_(trigger_\d+|cond_.+__(?:true|false))$/,x=new Map;for(const[G,ee]of E){if(!S.test(G))continue;const ne=this.parseInlineParallelBranches(ee.parallelItems??[],E);ne.length>0&&x.set(G,ne),E.delete(G)}const A=this.resolveParallelFanOuts(E),C=new Set(E.keys()),R=u.filter(G=>!C.has(G));let D=0,L=0;const B=G=>D<R.length?R[D++]:$Ft(G,L++),$=i.triggers||i.trigger;if(!$)return s.push("No triggers found in automation"),{nodes:d,edges:g};const j=Array.isArray($)?$:[$],P=this.parseTriggers(j,s,B);d.push(...P);for(const[G,ee]of E)switch(ee.nodeType){case"condition":d.push({id:G,type:"condition",position:{x:0,y:0},data:ee.data});break;case"action":d.push({id:G,type:"action",position:{x:0,y:0},data:ee.data});break;case"delay":d.push({id:G,type:"delay",position:{x:0,y:0},data:ee.data});break;case"wait":d.push({id:G,type:"wait",position:{x:0,y:0},data:ee.data});break;case"set_variables":d.push({id:G,type:"set_variables",position:{x:0,y:0},data:ee.data});break}if(w){const G=this.parseEntryNodeTemplate(w);if(G&&G.size>0)for(let ee=0;ee<P.length;ee++){const ne=G.get(ee);if(ne){const Q=x.get(ne);if(Q)for(const ie of Q)g.push(this.createEdge(P[ee].id,ie));else g.push(this.createEdge(P[ee].id,ne))}}else{const ee=x.get(w);for(const ne of P)if(ee)for(const Q of ee)g.push(this.createEdge(ne.id,Q));else g.push(this.createEdge(ne.id,w))}}for(const[G,ee]of E)g.push(...this.buildTransitionEdges(G,ee,x,A));return{nodes:d,edges:g}}buildTransitionEdges(i,s,u,d){const g=[],b=(w,E)=>{for(const S of u.get(w)??[w])g.push({id:`edge-${i}-${S}`,source:i,target:S,sourceHandle:E})};if(s.trueTarget&&s.trueTarget!=="END"){const w=s.nodeType==="condition"||s.falseTarget;b(s.trueTarget,w?"true":void 0)}s.falseTarget&&s.falseTarget!=="END"&&b(s.falseTarget,"false");for(const w of d.get(i)??[])g.push(this.createEdge(i,w));return g}parseEntryNodeTemplate(i){if(!i.includes("{%")||!i.includes("trigger.idx"))return null;const s=new Map,u=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(u);for(const b of d){const w=parseInt(b[1],10),E=b[2].trim();s.set(w,E)}const g=i.match(/{%\s*else\s*%}\s*([^{%]+?)(?={%|$)/);if(g&&s.size>0){const b=Math.max(...s.keys());s.set(b+1,g[1].trim())}return s.size>0?s:null}resolveParallelFanOuts(i){const s=new Map,u=new Set;let d=!0;for(;d;){d=!1;for(const[g,b]of[...i]){if(!b.parallelItems||b.parallelItems.length===0||u.has(g))continue;u.add(g),d=!0;const w=this.parseInlineParallelBranches(b.parallelItems,i);w.length>0&&s.set(g,w)}}return s}parseInlineParallelBranches(i,s){const u=[];let d=0;const g=b=>`inline_${b}_${d++}`;for(const b of i){const w=b,E=w.alias,S=E==null?void 0:E.match(/^parallel_branch:(.+)$/);if(S){const A=S[1];u.push(A),Array.isArray(w.sequence)?this.parseInlineActionList(w.sequence,A,s,g):this.parseInlineActionItem(w,A,s,g);continue}if((w.service??w.action)==="system_log.write"){const A=w.data,C=A==null?void 0:A.message;if(C){const R=C.match(/^Node:\s*(.+)$/);R&&u.push(R[1])}}}return u}parseInlineActionList(i,s,u,d){let g=null;for(let b=0;b<i.length;b++){const w=i[b];if(Array.isArray(w.parallel)&&w.alias===void 0){const x=g?u.get(g):void 0;x&&(x.parallelLine truncated
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(iPn,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||d("nodes:types.stop")}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[I.jsx("div",{className:"font-medium opacity-70",children:d(D?"nodes:actions.stopError":"nodes:actions.stopExecution")}),R&&I.jsx("div",{className:"truncate opacity-75 italic",children:R})]})]}):I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-green-200 p-1",children:I.jsx(rae,{className:"h-4 w-4 text-green-700"})}),I.jsx("span",{className:"font-semibold text-green-900 text-sm",children:s.alias||($?s.event:B)||"Action"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-green-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-green-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:$?I.jsx("span",{className:"opacity-60",children:d("nodes:actions.fireEvent")}):I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"opacity-60",children:[L,"."]}),B]})}),P&&I.jsx("div",{className:"truncate opacity-75",children:P})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),Ter=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State",numeric_state:"Numeric",template:"Template",time:"Time",zone:"Zone",sun:"Sun",and:"AND",or:"OR",not:"NOT",device:"Device",trigger:"Trigger"};return I.jsxs("div",{className:Sr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-blue-500 !border-blue-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-blue-200 p-1",children:I.jsx(B5e,{className:"h-4 w-4 text-blue-700"})}),I.jsx("span",{className:"font-semibold text-blue-900 text-sm",children:s.alias||A[s.condition]||"Condition"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-blue-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:A[s.condition]||s.condition}),s.entity_id&&I.jsx("div",{className:"truncate opacity-75",children:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id}),s.state&&I.jsxs("div",{className:"opacity-75",children:["= ",s.state]}),s.above!=null&&I.jsxs("div",{className:"opacity-75",children:["> ",s.above]}),s.below!=null&&I.jsxs("div",{className:"opacity-75",children:["< ",s.below]}),s.after&&I.jsxs("div",{className:"opacity-75",children:["after: ",s.after]}),s.before&&I.jsxs("div",{className:"opacity-75",children:["before: ",s.before]}),s.zone&&I.jsxs("div",{className:"opacity-75",children:["zone: ",s.zone]}),s.attribute&&I.jsxs("div",{className:"opacity-75",children:["attr: ",s.attribute]}),s.for&&I.jsxs("div",{className:"opacity-75",children:["for: ",typeof s.for=="string"?s.for:`${s.for.hours||0}h ${s.for.minutes||0}m ${s.for.seconds||0}s`]}),s.template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.template.slice(0,30),"..."]}),s.value_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.value_template.slice(0,30),"..."]}),typeof s.id=="string"&&I.jsxs("div",{className:"opacity-75",children:["id: ",s.id]}),Array.isArray(s.conditions)&&s.conditions.length>0&&I.jsx("div",{className:"opacity-75",children:Xie("nodes:conditions.nestedConditions",{count:s.conditions.length})})]}),I.jsx($h,{type:"source",position:qr.Right,id:"true",style:{top:"30%"},className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsx($h,{type:"source",position:qr.Right,id:"false",style:{top:"70%"},className:"!w-3 !h-3 !bg-red-500 !border-red-700"}),I.jsx("div",{className:"absolute top-[30%] right-[-40px] -translate-y-1/2 transform rounded border border-green-200 bg-white px-1 py-0.5 font-medium text-[10px] text-green-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Xie("nodes:conditions.yes")}),I.jsx("div",{className:"absolute top-[70%] right-[-36px] -translate-y-1/2 transform rounded border border-red-200 bg-white px-1 py-0.5 font-medium text-[10px] text-red-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Xie("nodes:conditions.no")})]})});function dKt(n){if(!n)return"";if(typeof n=="string")return n;if(typeof n=="object"){const i=[];return n.hours&&i.push(`${n.hours}h`),n.minutes&&i.push(`${n.minutes}m`),n.seconds&&i.push(`${n.seconds}s`),n.milliseconds&&i.push(`${n.milliseconds}ms`),i.join(" ")||"0s"}return String(n)}const Aer=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=dKt(s.delay);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-purple-200 p-1",children:I.jsx(F5e,{className:"h-4 w-4 text-purple-700"})}),I.jsx("span",{className:"font-semibold text-purple-900 text-sm",children:s.alias||"Delay"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-purple-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-purple-700 text-xs",children:I.jsx("div",{className:"font-mono",children:A})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"})]})}),_er=H.memo(function({id:i,data:s,selected:u}){const d=ko(C=>C.activeNodeId),g=ko(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=Object.keys(s.variables||{}).length;return I.jsxs("div",{className:Sr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-cyan-200 p-1",children:I.jsx(EGt,{className:"h-4 w-4 text-cyan-700"})}),I.jsx("span",{className:"font-semibold text-cyan-900 text-sm",children:s.alias||"Set Variables"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-cyan-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-cyan-700 text-xs",children:I.jsx("div",{className:"font-medium opacity-75",children:Xie("nodes:variables.variableCount",{count:A})})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),xer=H.memo(function({id:i,data:s,selected:u}){const d=ko(D=>D.activeNodeId),g=ko(D=>D.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State Change",time:"Time",time_pattern:"Time Pattern",event:"Event",mqtt:"MQTT",webhook:"Webhook",sun:"Sun",zone:"Zone",numeric_state:"Numeric State",template:"Template",homeassistant:"Home Assistant",device:"Device"},R=(()=>{const D=s.trigger;switch(D){case"device":return{title:s.alias||"Device Trigger",subtitle:s.type?`${s.domain||"device"}: ${s.type}`:"Device",detail:s.device_id?`Device: ${String(s.device_id).substring(0,8)}...`:null};case"state":return{title:s.alias||"State Change",subtitle:Array.isArray(s.entity_id)?`${s.entity_id.length} entities:
${s.entity_id.join(", ")}`:s.entity_id||"State",detail:s.to?`to: ${s.to}`:null};case"numeric_state":return{title:s.alias||"Numeric State",subtitle:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id||"Numeric State",detail:s.above||s.below?`${s.above?`>${s.above}`:""}${s.above&&s.below?" ":""}${s.below?`<${s.below}`:""}`:null};case"event":return{title:s.alias||"Event",subtitle:A[D],detail:s.event_type||null};case"time":return{title:s.alias||"Time",subtitle:A[D],detail:s.at||null};case"sun":return{title:s.alias||"Sun",subtitle:A[D],detail:s.event?`${s.event}${s.offset?` ${s.offset}`:""}`:null};case"mqtt":return{title:s.alias||"MQTT",subtitle:A[D],detail:s.topic||null};case"webhook":return{title:s.alias||"Webhook",subtitle:A[D],detail:s.webhook_id||null};case"zone":return{title:s.alias||"Zone",subtitle:A[D],detail:s.zone||(Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id)||null};default:return{title:s.alias||A[D]||"Trigger",subtitle:A[D]||D,detail:null}}})();return I.jsxs("div",{className:Sr("relative min-w-[180px] max-w-[300px] rounded-lg border-2 border-amber-400 bg-amber-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-amber-200 p-1",children:I.jsx(SGt,{className:"h-4 w-4 text-amber-700"})}),I.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:R.title}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-amber-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-amber-700 text-xs",children:[I.jsx("div",{className:"line-clamp-2 truncate whitespace-pre-line font-medium",children:R.subtitle}),R.detail&&I.jsx("div",{className:"truncate opacity-75",children:String(R.detail)})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-amber-500 !border-amber-700"})]})}),ker=H.memo(function({id:i,data:s,selected:u}){const{t:d}=ps(["common","nodes"]),g=ko(R=>R.activeNodeId),b=ko(R=>R.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=dKt(s.timeout);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",u&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(`
`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(bGt,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||"Wait for"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[s.wait_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.wait_template.slice(0,30),"..."]}),s.wait_for_trigger&&I.jsx("div",{className:"truncate text-[10px] opacity-75",children:d("nodes:wait.waitsForNTrigger",{count:s.wait_for_trigger.length})}),C&&I.jsxs("div",{className:"opacity-75",children:[d("nodes:wait.timeoutLabel")," ",C]})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"})]})});var Ner=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cer=Ner.reduce((n,i)=>{const s=lae(`Primitive.${i}`),u=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return u.displayName=`Primitive.${i}`,{...n,[i]:u}},{}),Ier="Separator",ZFt="horizontal",Rer=["horizontal","vertical"],fKt=H.forwardRef((n,i)=>{const{decorative:s,orientation:u=ZFt,...d}=n,g=Oer(u)?u:ZFt,w=s?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return I.jsx(Cer.div,{"data-orientation":g,...w,...d,ref:i})});fKt.displayName=Ier;function Oer(n){return Rer.includes(n)}var hKt=fKt;const jz=H.forwardRef(({className:n,orientation:i="horizontal",decorative:s=!0,...u},d)=>I.jsx(hKt,{ref:d,decorative:s,orientation:i,className:Sr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...u}));jz.displayName=hKt.displayName;function Ler(){const{undo:n,redo:i,canUndo:s,canRedo:u}=iKt(ko.temporal,sKt(b=>({undo:b.undo,redo:b.redo,canUndo:b.pastStates.length>0,canRedo:b.futureStates.length>0}))),d=H.useCallback(()=>{n(),ko.getState().validateAllNodes()},[n]),g=H.useCallback(()=>{i(),ko.getState().validateAllNodes()},[i]);return{undo:d,redo:g,canUndo:s,canRedo:u}}function HMe(){var i;const n=navigator;return(i=n.userAgentData)!=null&&i.platform?n.userAgentData.platform==="macOS":/Mac|iPhone|iPod|iPad/.test(navigator.platform)||/Macintosh/.test(navigator.userAgent)}function Der(n){return{name:"align-bottom",icon:X9n,tooltip:n("toolbar.alignBottom"),shortcut:"ctrl+shift+b",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.y+(g.height||0))),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,y:s-(g.height||0)}}:g);i.setNodes(d)}}}function Mer(n){return{name:"align-left",icon:r8n,tooltip:n("toolbar.alignLeft"),shortcut:"ctrl+shift+l",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.x)),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,x:s}}:g);i.setNodes(d)}}}function Per(n){return{name:"align-right",icon:Q9n,tooltip:n("toolbar.alignRight"),shortcut:"ctrl+shift+r",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.x+(g.width||0))),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,x:s-(g.width||0)}}:g);i.setNodes(d)}}}function jer(n){return{name:"align-top",icon:t8n,tooltip:n("toolbar.alignTop"),shortcut:"ctrl+shift+t",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.y)),u=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>u.includes(g.id)?{...g,position:{...g.position,y:s}}:g);i.setNodes(d)}}}function pKt(n){const i=n.selectedNodes.map(u=>u.id),s=n.edges.filter(u=>i.includes(u.source)&&i.includes(u.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:s})),n.setPasteCount(0)}function gKt(n,i,s){const u=(s.pasteCount||0)+1;s.setPasteCount(u);const d=50*u,g=new Map,b=s.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=ez(E.type??"node");return g.set(E.id,S),{...E,selected:!0,id:S,position:{x:E.position.x+d,y:E.position.y+d}}});if(s.setNodes([...b,...w]),i.length>0){const E=i.map(S=>({...S,id:`edge-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,source:g.get(S.source)??S.source,target:g.get(S.target)??S.target}));s.setEdges([...s.edges,...E])}}function Fer(n){retu Line truncated
`))||s("errors:import.parseFailed"));ee(On.graph),setTimeout(()=>{Q({padding:.2,duration:300})},50),j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.success(s("dialogs:import.importSuccess",{name:ht.friendly_name||ht.automation_id}))}else j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.warning(s("dialogs:import.openedWarning",{name:ht.friendly_name||ht.automation_id}),{description:s("dialogs:import.openedWarningDescription")});i()}catch(vt){console.error("C.A.F.E.: Failed to open automation:",vt),N2.error(s("dialogs:import.importFailed",{message:vt.message}))}},dt=()=>{ge.length===1&&K(()=>{We(ge[0])})},Ue=ht=>{const Xt=ht.map(vt=>vt.friendly_name).filter(Boolean);return Xt.length===0?s("dialogs:import.defaultMergedName"):Xt.length<=2?Xt.join(" + "):`${Xt[0]} + ${Xt.length-1} more`},bt=async()=>{if(!(ge.length<2))try{const ht=Mv(L,B);if(!ht.isConnected())throw new Error(s("errors:connection.noConnection"));const Xt=await ht.getAutomationConfigsBatch(ge.map(Ft=>Ft.automation_id)),vt=[];for(const Ft of ge){let On=Xt[Ft.automation_id];if(On||(On=await ht.getAutomationConfigWithFallback(Ft.automation_id,Ft.friendly_name)),!On)throw new Error(s("dialogs:import.mergeFailedMissingConfig",{name:Ft.friendly_name}));const Zn=gse(On,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Yn=await GLe.fromYaml(Zn);if(!Yn.success||!Yn.graph)throw new Error(s("dialogs:import.mergeFailedInvalidYaml",{name:Ft.friendly_name}));vt.push({graph:Yn.graph,automationId:Ft.automation_id,entityId:Ft.entity_id,alias:Ft.friendly_name||Ft.automation_id})}const Ct=ytr(vt);ee(Ct),j(Ue(ge)),P(null),x(new Set),setTimeout(()=>{Q({padding:.2,duration:300})},50),N2.success(s("dialogs:import.mergeSuccess",{count:ge.length})),i()}catch(ht){console.error("C.A.F.E.: Failed to merge automations:",ht),N2.error(s("dialogs:import.mergeFailed",{message:ht.message}))}},kt=ht=>{if(!ht)return s("dialogs:import.never");const Xt=new Date(ht),Ct=new Date().getTime()-Xt.getTime(),Ft=Math.floor(Ct/(1e3*60)),On=Math.floor(Ft/60),Zn=Math.floor(On/24);return Ft<1?s("dialogs:import.justNow"):Ft<60?s("dialogs:import.minutesAgo",{count:Ft}):On<24?s("dialogs:import.hoursAgo",{count:On}):Zn<7?s("dialogs:import.daysAgo",{count:Zn}):Xt.toLocaleDateString()};return n?I.jsxs(wR,{open:n,onOpenChange:i,children:[I.jsxs(aN,{className:"flex max-h-[90vh] max-w-4xl flex-col",children:[I.jsx(uN,{className:"space-y-3",children:I.jsxs("div",{className:"flex items-center justify-between pr-8",children:[I.jsxs("div",{children:[I.jsx(cN,{children:s("dialogs:import.title")}),I.jsx(lN,{children:s("dialogs:import.descriptionFull")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(ki,{variant:"outline",onClick:ge.length===1?dt:()=>K(()=>void bt()),disabled:ge.length===0,children:[ge.length>1?I.jsx(X8n,{className:"mr-2 h-4 w-4"}):I.jsx(A9t,{className:"mr-2 h-4 w-4"}),ge.length>1?s("dialogs:import.openTogether"):s("dialogs:import.openSingle")]}),I.jsxs(ki,{onClick:()=>{K(()=>{G(),j(s("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[I.jsx(gGt,{className:"mr-2 h-4 w-4"}),s("dialogs:import.createNew")]})]})]})}),I.jsxs("div",{className:"flex min-h-0 flex-col",children:[I.jsxs("div",{className:"relative mb-4",children:[I.jsx(yGt,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),I.jsx(Na,{type:"text",placeholder:s("dialogs:import.searchPlaceholder"),value:u,onChange:ht=>d(ht.target.value),className:"pl-10"})]}),I.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-t-md",children:I.jsxs("div",{className:"min-w-full",children:[I.jsx("div",{className:"sticky top-0 z-20 bg-background before:absolute before:-top-px before:right-0 before:left-0 before:h-px before:bg-background",children:I.jsxs("div",{className:"flex",children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center border-b bg-muted px-2 py-2",children:I.jsx(YLe,{checked:ce,onCheckedChange:xe,title:s(ce?"dialogs:import.unselectAll":"dialogs:import.selectAll")})}),I.jsxs("button",{type:"button",onClick:()=>Se("name"),className:"flex-1 cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.name"),De("name")]}),I.jsxs("button",{type:"button",onClick:()=>Se("lastTriggered"),className:"w-[120px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.lastTriggered"),De("lastTriggered")]}),I.jsxs("button",{type:"button",onClick:()=>Se("enabled"),className:"w-[80px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.enabled"),De("enabled")]}),I.jsx("div",{className:"w-[60px] border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground Line truncated
cors_allowed_origins:
- https://my-home-assistant.example.com`})]})}),I.jsx(Ri,{variant:"link",asChild:!0,className:"h-auto p-0 text-sm",children:I.jsxs("a",{href:"https://www.home-assistant.io/docs/authentication/#your-account-profile",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1",children:[I.jsx(O8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),I.jsxs("div",{className:"flex items-center justify-between pt-4",children:[I.jsx(Ri,{variant:"destructive",onClick:D,size:"sm",children:d("dialogs:settings.disconnect")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(Ri,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),I.jsx(Ri,{onClick:L,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function Etr({isOpen:n,onClose:i,onImportSuccess:s}){const{t:c}=ps(["common","dialogs"]),[d,g]=H.useState(""),[b,w]=H.useState(!1),[E,S]=H.useState(null),[x,A]=H.useState([]),{fromFlowGraph:C}=Do(),{fitView:R}=kR();if(!n)return null;const L=async()=>{var B;w(!0),S(null),A([]);try{const $=await GDe.fromYaml(d);if(!$.success){S(((B=$.errors)==null?void 0:B.join(`
`))||"Failed to parse YAML. Please check the format."),w(!1);return}$.warnings.length>0&&(Ef.warn("Import warnings:",$.warnings),A($.warnings)),$.graph&&(C($.graph),setTimeout(()=>{R({padding:.2,duration:300})},50),setTimeout(()=>{s==null||s(),D()},1e3))}catch($){S($ instanceof Error?$.message:"Unknown error occurred")}finally{w(!1)}},D=()=>{g(""),S(null),A([]),i()};return I.jsx(wR,{open:n,onOpenChange:()=>D(),children:I.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:c("dialogs:importYaml.title")}),I.jsx(lN,{children:c("dialogs:importYaml.description")})]}),I.jsxs("div",{className:"flex-1 space-y-4",children:[I.jsx($v,{value:d,onChange:B=>g(B.target.value),placeholder:`alias: My Automation
- https://my-home-assistant.example.com`})]})}),I.jsx(ki,{variant:"link",asChild:!0,className:"h-auto p-0 text-sm",children:I.jsxs("a",{href:"https://www.home-assistant.io/docs/authentication/#your-account-profile",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1",children:[I.jsx(j8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),I.jsxs("div",{className:"flex items-center justify-between pt-4",children:[I.jsx(ki,{variant:"destructive",onClick:L,size:"sm",children:d("dialogs:settings.disconnect")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(ki,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),I.jsx(ki,{onClick:D,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function Ntr({isOpen:n,onClose:i,onImportSuccess:s}){const{t:u}=ps(["common","dialogs"]),[d,g]=H.useState(""),[b,w]=H.useState(!1),[E,S]=H.useState(null),[x,A]=H.useState([]),{fromFlowGraph:C}=ko(),{fitView:R}=kR();if(!n)return null;const D=async()=>{var B;w(!0),S(null),A([]);try{const $=await GLe.fromYaml(d);if(!$.success){S(((B=$.errors)==null?void 0:B.join(`
`))||"Failed to parse YAML. Please check the format."),w(!1);return}$.warnings.length>0&&(Ef.warn("Import warnings:",$.warnings),A($.warnings)),$.graph&&(C($.graph),setTimeout(()=>{R({padding:.2,duration:300})},50),setTimeout(()=>{s==null||s(),L()},1e3))}catch($){S($ instanceof Error?$.message:"Unknown error occurred")}finally{w(!1)}},L=()=>{g(""),S(null),A([]),i()};return I.jsx(wR,{open:n,onOpenChange:()=>L(),children:I.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:u("dialogs:importYaml.title")}),I.jsx(lN,{children:u("dialogs:importYaml.description")})]}),I.jsxs("div",{className:"flex-1 space-y-4",children:[I.jsx($v,{value:d,onChange:B=>g(B.target.value),placeholder:`alias: My Automation
description: An example automation
trigger:
- platform: state
@@ -544,8 +544,8 @@ trigger:
action:
- service: notify.mobile_app
data:
message: "Light turned on!"`,className:"h-64 resize-none font-mono text-sm",disabled:b}),E&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{className:"font-medium",children:[c("dialogs:importYaml.importFailed"),I.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),x.length>0&&I.jsxs(dA,{children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{children:[I.jsx("p",{className:"mb-1 font-medium",children:c("dialogs:importYaml.warnings")}),I.jsx("ul",{className:"space-y-1 text-xs",children:x.map((B,$)=>I.jsxs("li",{children:["•"," ",B]},`warning-${$}-${B.slice(0,20)}`))})]})]}),b&&!E&&I.jsxs(dA,{children:[I.jsx(lGt,{className:"h-4 w-4"}),I.jsx(fA,{children:c("dialogs:importYaml.successLoading")})]}),I.jsx(dA,{children:I.jsxs(fA,{className:"text-xs",children:[I.jsx("strong",{children:c("dialogs:importYaml.tipLabel")})," ",c("dialogs:importYaml.tipText")]})})]}),I.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[I.jsx(Ri,{variant:"outline",onClick:D,disabled:b,children:c("buttons.cancel")}),I.jsxs(Ri,{onClick:L,disabled:!d.trim()||b,children:[I.jsx(vPn,{className:"mr-2 h-4 w-4"}),c(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}function H2({message:n}){return n?I.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-red-600 text-xs",children:[I.jsx(_w,{className:"h-3 w-3 flex-shrink-0"}),I.jsx("span",{children:n})]}):null}function Po({label:n,required:i,description:s,children:c}){return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[n,i&&I.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),c,s&&I.jsx("p",{className:"text-muted-foreground text-xs",children:s})]})}const YFt={common:["id","alias","enabled","_conditionId"],trigger:["trigger","entity_id","to","from","for","at","event_type","event_data","event","offset","above","below","value_template","template","webhook_id","zone","topic","payload","hours","minutes","seconds","device_id","domain","type","subtype"],condition:["condition","entity_id","state","attribute","above","below","value_template","template","after","before","weekday","device_id","domain","type","subtype","zone","condition","for","conditions"],action:["service","data","target","response_variable","stop","error","entity_id","action","metadata"],delay:["delay"],wait:["wait_template","timeout","wait_for_trigger","continue_on_timeout"],set_variables:["variables"]};function JFt(n,i=[]){const s=[...YFt.common,...YFt[n]||[]];return new Set([...s,...i])}function mse(n,[i,s]){return Math.min(s,Math.max(i,n))}function XFt(n){const i=Str(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Atr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Str(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=xtr(d),w=_tr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Ttr=Symbol("radix.slottable");function Atr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Ttr}function _tr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function xtr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Wae(n){const i=n+"CollectionProvider",[s,c]=xw(i),[d,g]=s(i,{collectionRef:{current:null},itemMap:new Map}),b=D=>{const{scope:B,children:$}=D,j=Hn.useRef(null),P=Hn.useRef(new Map).current;return I.jsx(d,{scope:B,itemMap:P,collectionRef:j,children:$})};b.displayName=i;const w=n+"CollectionSlot",E=XFt(w),S=Hn.forwardRef((D,B)=>{const{scope:$,children:j}=D,P=g(w,$),G=hs(B,P.collectionRef);return I.jsx(E,{ref:G,children:j})});S.displayName=w;const x=n+"CollectionItemSlot",A="data-radix-collection-item",C=XFt(x),R=Hn.forwardRef((D,B)=>{const{scope:$,children:j,...P}=D,G=Hn.useRef(null),ee=hs(B,G),re=g(x,$);return Hn.useEffect(()=>(re.itemMap.set(G,{ref:G,...P}),()=>void re.itemMap.delete(G))),I.jsx(C,{[A]:"",ref:ee,children:j})});R.displayName=x;function L(D){const B=g(n+"CollectionConsumer",D);return Hn.useCallback(()=>{const j=B.collectionRef.current;if(!j)return[];const Line truncated
`,i);return c===-1?s:s===-1||s+1===c?c:s<c?s:c}const Vir={svg:"http://www.w3.org/2000/svg"},RJt={}.hasOwnProperty,Wir=Object.prototype;function Kir(n,i){const s=i||{};return o9e({file:s.file||void 0,location:!1,schema:s.space==="svg"?Hz:rue,verbose:s.verbose||!1},n)}function o9e(n,i){let s;switch(i.nodeName){case"#comment":{const c=i;return s={type:"comment",value:c.data},ooe(n,c,s),s}case"#document":case"#document-fragment":{const c=i,d="mode"in c?c.mode==="quirks"||c.mode==="limited-quirks":!1;if(s={type:"root",children:OJt(n,i.childNodes),data:{quirksMode:d}},n.file&&n.location){const g=String(n.file),b=qir(g),w=b.toPoint(0),E=b.toPoint(g.length);s.position={start:w,end:E}}return s}case"#documentType":{const c=i;return s={type:"doctype"},ooe(n,c,s),s}case"#text":{const c=i;return s={type:"text",value:c.value},ooe(n,c,s),s}default:return s=Yir(n,i),s}}function OJt(n,i){let s=-1;const c=[];for(;++s<i.length;){const d=o9e(n,i[s]);c.push(d)}return c}function Yir(n,i){const s=n.schema;n.schema=i.namespaceURI===Vir.svg?Hz:rue;let c=-1;const d={};for(;++c<i.attrs.length;){const w=i.attrs[c],E=(w.prefix?w.prefix+":":"")+w.name;RJt.call(Wir,E)||(d[E]=w.value)}const b=(n.schema.space==="svg"?Gir:zir)(i.tagName,d,OJt(n,i.childNodes));if(ooe(n,i,b),b.tagName==="template"){const w=i,E=w.sourceCodeLocation,S=E&&E.startTag&&K5(E.startTag),x=E&&E.endTag&&K5(E.endTag),A=o9e(n,w.content);S&&x&&n.file&&(A.position={start:S.end,end:x.start}),b.content=A}return n.schema=s,b}function ooe(n,i,s){if("sourceCodeLocation"in i&&i.sourceCodeLocation&&n.file){const c=Jir(n,s,i.sourceCodeLocation);c&&(n.location=!0,s.position=c)}}function Jir(n,i,s){const c=K5(s);if(i.type==="element"){const d=i.children[i.children.length-1];if(c&&!s.endTag&&d&&d.position&&d.position.end&&(c.end=Object.assign({},d.position.end)),n.verbose){const g={};let b;if(s.attrs)for(b in s.attrs)RJt.call(s.attrs,b)&&(g[i9e(n.schema,b).property]=K5(s.attrs[b]));s.startTag;const w=K5(s.startTag),E=s.endTag?K5(s.endTag):void 0,S={opening:w};E&&(S.closing=E),S.properties=g,i.data={position:S}}}return c}function K5(n){const i=s$t({line:n.startLine,column:n.startCol,offset:n.startOffset}),s=s$t({line:n.endLine,column:n.endCol,offset:n.endOffset});return i||s?{start:i,end:s}:void 0}function s$t(n){return n.line&&n.column?n:void 0}const Xir=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Oc="�";var $e;(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($e||($e={}));const tb={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function DJt(n){return n>=55296&&n<=57343}function Zir(n){return n>=56320&&n<=57343}function Qir(n,i){return(n-55296)*1024+9216+i}function LJt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function MJt(n){return n>=64976&&n<=65007||Xir.has(n)}var sn;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected- Line truncated
message: "Light turned on!"`,className:"h-64 resize-none font-mono text-sm",disabled:b}),E&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{className:"font-medium",children:[u("dialogs:importYaml.importFailed"),I.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),x.length>0&&I.jsxs(dA,{children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{children:[I.jsx("p",{className:"mb-1 font-medium",children:u("dialogs:importYaml.warnings")}),I.jsx("ul",{className:"space-y-1 text-xs",children:x.map((B,$)=>I.jsxs("li",{children:["•"," ",B]},`warning-${$}-${B.slice(0,20)}`))})]})]}),b&&!E&&I.jsxs(dA,{children:[I.jsx(pGt,{className:"h-4 w-4"}),I.jsx(fA,{children:u("dialogs:importYaml.successLoading")})]}),I.jsx(dA,{children:I.jsxs(fA,{className:"text-xs",children:[I.jsx("strong",{children:u("dialogs:importYaml.tipLabel")})," ",u("dialogs:importYaml.tipText")]})})]}),I.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[I.jsx(ki,{variant:"outline",onClick:L,disabled:b,children:u("buttons.cancel")}),I.jsxs(ki,{onClick:D,disabled:!d.trim()||b,children:[I.jsx(_Pn,{className:"mr-2 h-4 w-4"}),u(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}function H2({message:n}){return n?I.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-red-600 text-xs",children:[I.jsx(_w,{className:"h-3 w-3 flex-shrink-0"}),I.jsx("span",{children:n})]}):null}function Lo({label:n,required:i,description:s,children:u}){return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[n,i&&I.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),u,s&&I.jsx("p",{className:"text-muted-foreground text-xs",children:s})]})}const QFt={common:["id","alias","enabled","_conditionId"],trigger:["trigger","entity_id","to","from","for","at","event_type","event_data","event","offset","above","below","value_template","template","webhook_id","zone","topic","payload","hours","minutes","seconds","device_id","domain","type","subtype"],condition:["condition","entity_id","state","attribute","above","below","value_template","template","after","before","weekday","device_id","domain","type","subtype","zone","condition","for","conditions"],action:["service","data","target","response_variable","stop","error","entity_id","action","metadata"],delay:["delay"],wait:["wait_template","timeout","wait_for_trigger","continue_on_timeout"],set_variables:["variables"]};function e$t(n,i=[]){const s=[...QFt.common,...QFt[n]||[]];return new Set([...s,...i])}function mse(n,[i,s]){return Math.min(s,Math.max(i,n))}function t$t(n){const i=Ctr(n),s=H.forwardRef((u,d)=>{const{children:g,...b}=u,w=H.Children.toArray(g),E=w.find(Rtr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Ctr(n){const i=H.forwardRef((s,u)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Ltr(d),w=Otr(g,d.props);return d.type!==H.Fragment&&(w.ref=u?zg(u,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Itr=Symbol("radix.slottable");function Rtr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Itr}function Otr(n,i){const s={...i};for(const u in i){const d=n[u],g=i[u];/^on[A-Z]/.test(u)?d&&g?s[u]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[u]=d):u==="style"?s[u]={...d,...g}:u==="className"&&(s[u]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Ltr(n){var u,d;let i=(u=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:u.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Wae(n){const i=n+"CollectionProvider",[s,u]=xw(i),[d,g]=s(i,{collectionRef:{current:null},itemMap:new Map}),b=L=>{const{scope:B,children:$}=L,j=Hn.useRef(null),P=Hn.useRef(new Map).current;return I.jsx(d,{scope:B,itemMap:P,collectionRef:j,children:$})};b.displayName=i;const w=n+"CollectionSlot",E=t$t(w),S=Hn.forwardRef((L,B)=>{const{scope:$,children:j}=L,P=g(w,$),G=hs(B,P.collectionRef);return I.jsx(E,{ref:G,children:j})});S.displayName=w;const x=n+"CollectionItemSlot",A="data-radix-collection-item",C=t$t(x),R=Hn.forwardRef((L,B)=>{const{scope:$,children:j,...P}=L,G=Hn.useRef(null),ee=hs(B,G),ne=g(x,$);return Hn.useEffect(()=>(ne.itemMap.set(G,{ref:G,...P}),()=>void ne.itemMap.delete(G))),I.jsx(C,{[A]:"",ref:ee,children:j})});R.displayName=x;function D(L){const B=g(n+"CollectionConsumer",L);return Hn.useCallback(()=>{const j=B.collectionRef.current;if(!j)return[];const Line truncated
`,i);return u===-1?s:s===-1||s+1===u?u:s<u?s:u}const Qir={svg:"http://www.w3.org/2000/svg"},PJt={}.hasOwnProperty,eor=Object.prototype;function tor(n,i){const s=i||{};return s9e({file:s.file||void 0,location:!1,schema:s.space==="svg"?zz:rue,verbose:s.verbose||!1},n)}function s9e(n,i){let s;switch(i.nodeName){case"#comment":{const u=i;return s={type:"comment",value:u.data},soe(n,u,s),s}case"#document":case"#document-fragment":{const u=i,d="mode"in u?u.mode==="quirks"||u.mode==="limited-quirks":!1;if(s={type:"root",children:jJt(n,i.childNodes),data:{quirksMode:d}},n.file&&n.location){const g=String(n.file),b=Zir(g),w=b.toPoint(0),E=b.toPoint(g.length);s.position={start:w,end:E}}return s}case"#documentType":{const u=i;return s={type:"doctype"},soe(n,u,s),s}case"#text":{const u=i;return s={type:"text",value:u.value},soe(n,u,s),s}default:return s=nor(n,i),s}}function jJt(n,i){let s=-1;const u=[];for(;++s<i.length;){const d=s9e(n,i[s]);u.push(d)}return u}function nor(n,i){const s=n.schema;n.schema=i.namespaceURI===Qir.svg?zz:rue;let u=-1;const d={};for(;++u<i.attrs.length;){const w=i.attrs[u],E=(w.prefix?w.prefix+":":"")+w.name;PJt.call(eor,E)||(d[E]=w.value)}const b=(n.schema.space==="svg"?Xir:Jir)(i.tagName,d,jJt(n,i.childNodes));if(soe(n,i,b),b.tagName==="template"){const w=i,E=w.sourceCodeLocation,S=E&&E.startTag&&K5(E.startTag),x=E&&E.endTag&&K5(E.endTag),A=s9e(n,w.content);S&&x&&n.file&&(A.position={start:S.end,end:x.start}),b.content=A}return n.schema=s,b}function soe(n,i,s){if("sourceCodeLocation"in i&&i.sourceCodeLocation&&n.file){const u=ror(n,s,i.sourceCodeLocation);u&&(n.location=!0,s.position=u)}}function ror(n,i,s){const u=K5(s);if(i.type==="element"){const d=i.children[i.children.length-1];if(u&&!s.endTag&&d&&d.position&&d.position.end&&(u.end=Object.assign({},d.position.end)),n.verbose){const g={};let b;if(s.attrs)for(b in s.attrs)PJt.call(s.attrs,b)&&(g[o9e(n.schema,b).property]=K5(s.attrs[b]));s.startTag;const w=K5(s.startTag),E=s.endTag?K5(s.endTag):void 0,S={opening:w};E&&(S.closing=E),S.properties=g,i.data={position:S}}}return u}function K5(n){const i=l$t({line:n.startLine,column:n.startCol,offset:n.startOffset}),s=l$t({line:n.endLine,column:n.endCol,offset:n.endOffset});return i||s?{start:i,end:s}:void 0}function l$t(n){return n.line&&n.column?n:void 0}const ior=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Oc="�";var $e;(function(n){n[n.EOF=-1]="EOF",n[n.NULL=0]="NULL",n[n.TABULATION=9]="TABULATION",n[n.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",n[n.LINE_FEED=10]="LINE_FEED",n[n.FORM_FEED=12]="FORM_FEED",n[n.SPACE=32]="SPACE",n[n.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",n[n.QUOTATION_MARK=34]="QUOTATION_MARK",n[n.AMPERSAND=38]="AMPERSAND",n[n.APOSTROPHE=39]="APOSTROPHE",n[n.HYPHEN_MINUS=45]="HYPHEN_MINUS",n[n.SOLIDUS=47]="SOLIDUS",n[n.DIGIT_0=48]="DIGIT_0",n[n.DIGIT_9=57]="DIGIT_9",n[n.SEMICOLON=59]="SEMICOLON",n[n.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",n[n.EQUALS_SIGN=61]="EQUALS_SIGN",n[n.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",n[n.QUESTION_MARK=63]="QUESTION_MARK",n[n.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",n[n.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",n[n.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",n[n.GRAVE_ACCENT=96]="GRAVE_ACCENT",n[n.LATIN_SMALL_A=97]="LATIN_SMALL_A",n[n.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})($e||($e={}));const tb={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function FJt(n){return n>=55296&&n<=57343}function oor(n){return n>=56320&&n<=57343}function sor(n,i){return(n-55296)*1024+9216+i}function $Jt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function BJt(n){return n>=64976&&n<=65007||ior.has(n)}var sn;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected- Line truncated
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
@@ -553,21 +553,21 @@ action:
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function zur(n,i,s,c){const d=c.schema,g=d.space==="svg"?!1:c.settings.omitOptionalTags;let b=d.space==="svg"?c.settings.closeEmptyElements:c.settings.voids.includes(n.tagName.toLowerCase());const w=[];let E;d.space==="html"&&n.tagName==="svg"&&(c.schema=Hz);const S=Gur(c,n.properties),x=c.all(d.space==="html"&&n.tagName==="template"?n.content:n);return c.schema=d,x&&(b=!1),(S||!g||!jur(n,i,s))&&(w.push("<",n.tagName,S?" "+S:""),b&&(d.space==="svg"||c.settings.closeSelfClosing)&&(E=S.charAt(S.length-1),(!c.settings.tightSelfClosing||E==="/"||E&&E!=='"'&&E!=="'")&&w.push(" "),w.push("/")),w.push(">")),w.push(x),!b&&(!g||!d9e(n,i,s))&&w.push("</"+n.tagName+">"),w.join("")}function Gur(n,i){const s=[];let c=-1,d;if(i){for(d in i)if(i[d]!==null&&i[d]!==void 0){const g=qur(n,d,i[d]);g&&s.push(g)}}for(;++c<s.length;){const g=n.settings.tightAttributes?s[c].charAt(s[c].length-1):void 0;c!==s.length-1&&g!=='"'&&g!=="'"&&(s[c]+=" ")}return s.join("")}function qur(n,i,s){const c=i9e(n.schema,i),d=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,g=n.settings.allowDangerousCharacters?0:1;let b=n.quote,w;if(c.overloadedBoolean&&(s===c.attribute||s==="")?s=!0:(c.boolean||c.overloadedBoolean)&&(typeof s!="string"||s===c.attribute||s==="")&&(s=!!s),s==null||s===!1||typeof s=="number"&&Number.isNaN(s))return"";const E=cM(c.attribute,Object.assign({},n.settings.characterReferences,{subset:Lie.name[d][g]}));return s===!0||(s=Array.isArray(s)?(c.commaSeparated?Mir:jir)(s,{padLeft:!n.settings.tightCommaSeparatedLists}):String(s),n.settings.collapseEmptyAttributes&&!s)?E:(n.settings.preferUnquoted&&(w=cM(s,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:Lie.unquoted[d][g]}))),w!==s&&(n.settings.quoteSmart&&T$t(s,b)>T$t(s,n.alternative)&&(b=n.alternative),w=b+cM(s,Object.assign({},n.settings.characterReferences,{subset:(b==="'"?Lie.single:Lie.double)[d][g],attribute:!0}))+b),E+(w&&"="+w))}const Vur=["<","&"];function fXt(n,i,s,c){return s&&s.type==="element"&&(s.tagName==="script"||s.tagName==="style")?n.value:cM(n.value,Object.assign({},c.settings.characterReferences,{subset:Vur}))}function Wur(n,i,s,c){return c.settings.allowDangerousHtml?n.value:fXt(n,i,s,c)}function Kur(n,i,s,c){return c.all(n)}const Yur=tur("type",{invalid:Jur,unknown:Xur,handlers:{comment:vur,doctype:Eur,element:zur,raw:Wur,root:Kur,text:fXt}});function Jur(n){throw new Error("Expected node, not `"+n+"`")}function Xur(n){const i=n;throw new Error("Cannot compile unknown node `"+i.type+"`")}const Zur={},Qur={},ecr=[];function tcr(n,i){const s=i||Zur,c=s.quote||'"',d=c==='"'?"'":'"';if(c!=='"'&&c!=="'")throw new Error("Invalid quote `"+c+"`, expected `'` or `\"`");return{one:ncr,all:rcr,settings:{omitOptionalTags:s.omitOptionalTags||!1,allowParseErrors:s.allowParseErrors||!1,allowDangerousCharacters:s.allowDangerousCharacters||!1,quoteSmart:s.quoteSmart||!1,preferUnquoted:s.preferUnquoted||!1,tightAttributes:s.tightAttributes||!1,upperDoctype:s.upperDoctype||!1,tightDoctype:s.tightDoctype||!1,bogusComments:s.bogusComments||!1,tightCommaSeparatedLists:s.tightCommaSeparatedLists||!1,tightSelfClosing:s.tightSelfClosing||!1,collapseEmptyAttributes:s.collapseEmptyAttributes||!1,allowDangerousHtml:s.allowDangerousHtml||!1,voids:s.voids||eur,characterReferences:s.characterReferences||Qur,closeSelfClosing:s.closeSelfClosing||!1,closeEmptyElements:s.closeEmptyElements||!1},schema:s.space==="svg"?Hz:rue,quote:c,alternative:d}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function ncr(n,i,s){return Yur(n,i,s,this)}function rcr(n){const i=[],s=n&&n.children||ecr;let c=-1;for(;++c<s.length;)i[c]=this.one(s[c],c,n);return i.join("")}function icr(n){const i=this,s={...i.data("settings"),...n};i.compiler=c;function c(d){return tcr(d,s)}}function k$t(n){if(n)throw n}var aoe=Object.prototype.hasOwnProperty,hXt=Object.prototype.toString,N$t=Object.defineProperty,C$t=Object.getOwnPropertyDescriptor,I$t=function(i){return typeof Array.isArray=="function"?Array.isArray(i):hXt.call(i)==="[object Array]"},R$t=function(i){if(!i||hXt.call(i)!=="[object Object]")return!1;var s=aoe.call(i,"constructor"),c=i.constructor&&i.constructor.prototype&&aoe.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!s&&!c)return!1;var d;for(d in i);return typeof d>"u"||aoe.call(i,d)},O$t=function(i,s){N$t&&s.name==="__proto__"?N$t(i,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):i[s.name]=s.newValue},D$t=function(i,s){if(s==="__proto__")if(aoe.call(i,s)){if(C$t)return C$t(i,s).value}else return;return i[s]},ocr=function n(){var i,s,c,d,g,b,w=arguments[0],E=1,S=arguments.length,x=!1;for(typeof w=="boolean"&&(x=w,w=arguments[1]||{},E=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});E<S;++E)if(i=arguments[E],i!=null)for(sLine truncated
`){i++;break}return i}getIndentText(){var i=this.getLineStartNumber(),s=this.getSelectedValue(i),c="";return s.replace(/(^(\s)+)/,(d,g)=>c=g),c}lineStarInstert(i){if(i){var s=this.start,c=this.getLineStartNumber(),d=this.getSelectedValue(c);this.position(c,this.end).insertText(d.split(`
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Jur(n,i,s,u){const d=u.schema,g=d.space==="svg"?!1:u.settings.omitOptionalTags;let b=d.space==="svg"?u.settings.closeEmptyElements:u.settings.voids.includes(n.tagName.toLowerCase());const w=[];let E;d.space==="html"&&n.tagName==="svg"&&(u.schema=zz);const S=Xur(u,n.properties),x=u.all(d.space==="html"&&n.tagName==="template"?n.content:n);return u.schema=d,x&&(b=!1),(S||!g||!Gur(n,i,s))&&(w.push("<",n.tagName,S?" "+S:""),b&&(d.space==="svg"||u.settings.closeSelfClosing)&&(E=S.charAt(S.length-1),(!u.settings.tightSelfClosing||E==="/"||E&&E!=='"'&&E!=="'")&&w.push(" "),w.push("/")),w.push(">")),w.push(x),!b&&(!g||!f9e(n,i,s))&&w.push("</"+n.tagName+">"),w.join("")}function Xur(n,i){const s=[];let u=-1,d;if(i){for(d in i)if(i[d]!==null&&i[d]!==void 0){const g=Zur(n,d,i[d]);g&&s.push(g)}}for(;++u<s.length;){const g=n.settings.tightAttributes?s[u].charAt(s[u].length-1):void 0;u!==s.length-1&&g!=='"'&&g!=="'"&&(s[u]+=" ")}return s.join("")}function Zur(n,i,s){const u=o9e(n.schema,i),d=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,g=n.settings.allowDangerousCharacters?0:1;let b=n.quote,w;if(u.overloadedBoolean&&(s===u.attribute||s==="")?s=!0:(u.boolean||u.overloadedBoolean)&&(typeof s!="string"||s===u.attribute||s==="")&&(s=!!s),s==null||s===!1||typeof s=="number"&&Number.isNaN(s))return"";const E=cM(u.attribute,Object.assign({},n.settings.characterReferences,{subset:Mie.name[d][g]}));return s===!0||(s=Array.isArray(s)?(u.commaSeparated?Hir:Gir)(s,{padLeft:!n.settings.tightCommaSeparatedLists}):String(s),n.settings.collapseEmptyAttributes&&!s)?E:(n.settings.preferUnquoted&&(w=cM(s,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:Mie.unquoted[d][g]}))),w!==s&&(n.settings.quoteSmart&&k$t(s,b)>k$t(s,n.alternative)&&(b=n.alternative),w=b+cM(s,Object.assign({},n.settings.characterReferences,{subset:(b==="'"?Mie.single:Mie.double)[d][g],attribute:!0}))+b),E+(w&&"="+w))}const Qur=["<","&"];function mXt(n,i,s,u){return s&&s.type==="element"&&(s.tagName==="script"||s.tagName==="style")?n.value:cM(n.value,Object.assign({},u.settings.characterReferences,{subset:Qur}))}function ecr(n,i,s,u){return u.settings.allowDangerousHtml?n.value:mXt(n,i,s,u)}function tcr(n,i,s,u){return u.all(n)}const ncr=uur("type",{invalid:rcr,unknown:icr,handlers:{comment:kur,doctype:Nur,element:Jur,raw:ecr,root:tcr,text:mXt}});function rcr(n){throw new Error("Expected node, not `"+n+"`")}function icr(n){const i=n;throw new Error("Cannot compile unknown node `"+i.type+"`")}const ocr={},scr={},acr=[];function ucr(n,i){const s=i||ocr,u=s.quote||'"',d=u==='"'?"'":'"';if(u!=='"'&&u!=="'")throw new Error("Invalid quote `"+u+"`, expected `'` or `\"`");return{one:ccr,all:lcr,settings:{omitOptionalTags:s.omitOptionalTags||!1,allowParseErrors:s.allowParseErrors||!1,allowDangerousCharacters:s.allowDangerousCharacters||!1,quoteSmart:s.quoteSmart||!1,preferUnquoted:s.preferUnquoted||!1,tightAttributes:s.tightAttributes||!1,upperDoctype:s.upperDoctype||!1,tightDoctype:s.tightDoctype||!1,bogusComments:s.bogusComments||!1,tightCommaSeparatedLists:s.tightCommaSeparatedLists||!1,tightSelfClosing:s.tightSelfClosing||!1,collapseEmptyAttributes:s.collapseEmptyAttributes||!1,allowDangerousHtml:s.allowDangerousHtml||!1,voids:s.voids||aur,characterReferences:s.characterReferences||scr,closeSelfClosing:s.closeSelfClosing||!1,closeEmptyElements:s.closeEmptyElements||!1},schema:s.space==="svg"?zz:rue,quote:u,alternative:d}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function ccr(n,i,s){return ncr(n,i,s,this)}function lcr(n){const i=[],s=n&&n.children||acr;let u=-1;for(;++u<s.length;)i[u]=this.one(s[u],u,n);return i.join("")}function dcr(n){const i=this,s={...i.data("settings"),...n};i.compiler=u;function u(d){return ucr(d,s)}}function R$t(n){if(n)throw n}var uoe=Object.prototype.hasOwnProperty,wXt=Object.prototype.toString,O$t=Object.defineProperty,L$t=Object.getOwnPropertyDescriptor,D$t=function(i){return typeof Array.isArray=="function"?Array.isArray(i):wXt.call(i)==="[object Array]"},M$t=function(i){if(!i||wXt.call(i)!=="[object Object]")return!1;var s=uoe.call(i,"constructor"),u=i.constructor&&i.constructor.prototype&&uoe.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!s&&!u)return!1;var d;for(d in i);return typeof d>"u"||uoe.call(i,d)},P$t=function(i,s){O$t&&s.name==="__proto__"?O$t(i,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):i[s.name]=s.newValue},j$t=function(i,s){if(s==="__proto__")if(uoe.call(i,s)){if(L$t)return L$t(i,s).value}else return;return i[s]},fcr=function n(){var i,s,u,d,g,b,w=arguments[0],E=1,S=arguments.length,x=!1;for(typeof w=="boolean"&&(x=w,w=arguments[1]||{},E=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});E<S;++E)if(i=arguments[E],i!=null)for(sLine truncated
`){i++;break}return i}getIndentText(){var i=this.getLineStartNumber(),s=this.getSelectedValue(i),u="";return s.replace(/(^(\s)+)/,(d,g)=>u=g),u}lineStarInstert(i){if(i){var s=this.start,u=this.getLineStartNumber(),d=this.getSelectedValue(u);this.position(u,this.end).insertText(d.split(`
`).map(g=>i+g).join(`
`)).position(s+i.length,this.end)}return this}lineStarRemove(i){if(i){var s=this.start,c=this.getLineStartNumber(),d=this.getSelectedValue(c),g=new RegExp("^"+i,"g"),b=s-i.length;g.test(d)||(b=s),this.position(c,this.end).insertText(d.split(`
`)).position(s+i.length,this.end)}return this}lineStarRemove(i){if(i){var s=this.start,u=this.getLineStartNumber(),d=this.getSelectedValue(u),g=new RegExp("^"+i,"g"),b=s-i.length;g.test(d)||(b=s),this.position(u,this.end).insertText(d.split(`
`).map(w=>w.replace(g,"")).join(`
`)).position(b,this.end)}}notifyChange(){var i=new Event("input",{bubbles:!0,cancelable:!1});this.elm.dispatchEvent(i)}}function wcr(n,i){i===void 0&&(i=2);var s=new mcr(n.target),c=(n.code||n.nativeEvent.code).toLocaleLowerCase(),d=" ".repeat(i);if(c==="tab")s6e(n),s.start===s.end?n.shiftKey?s.lineStarRemove(d):s.insertText(d).position(s.start+i,s.end+i):s.getSelectedValue().indexOf(`
`)).position(b,this.end)}}notifyChange(){var i=new Event("input",{bubbles:!0,cancelable:!1});this.elm.dispatchEvent(i)}}function _cr(n,i){i===void 0&&(i=2);var s=new Acr(n.target),u=(n.code||n.nativeEvent.code).toLocaleLowerCase(),d=" ".repeat(i);if(u==="tab")s6e(n),s.start===s.end?n.shiftKey?s.lineStarRemove(d):s.insertText(d).position(s.start+i,s.end+i):s.getSelectedValue().indexOf(`
`)>-1&&n.shiftKey?s.lineStarRemove(d):s.getSelectedValue().indexOf(`
`)>-1?s.lineStarInstert(d):s.insertText(d).position(s.start+i,s.end),s.notifyChange();else if(c==="enter"){s6e(n);var g=`
`+s.getIndentText();s.insertText(g).position(s.start+g.length,s.start+g.length),s.notifyChange()}else if(c&&/^(quote|backquote|bracketleft|digit9|comma)$/.test(c)&&s.getSelectedValue()){s6e(n);var b=s.getSelectedValue(),w="";switch(c){case"quote":w="'"+b+"'",n.shiftKey&&(w='"'+b+'"');break;case"backquote":w="`"+b+"`";break;case"bracketleft":w="["+b+"]",n.shiftKey&&(w="{"+b+"}");break;case"digit9":w="("+b+")";break;case"comma":w="<"+b+">";break}s.insertText(w),s.notifyChange()}}var ycr={position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},vcr={position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",opacity:.8,overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},P$t={margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word",outline:0},Ecr=["prefixCls","value","padding","minHeight","placeholder","language","data-color-mode","className","style","rehypePlugins","onChange","indentWidth"];const Scr=Hn.forwardRef((n,i)=>{var{prefixCls:s="w-tc-editor",padding:c=10,minHeight:d=16,placeholder:g,language:b,"data-color-mode":w,className:E,style:S,rehypePlugins:x,onChange:A,indentWidth:C=2}=n,R=SJt(n,Ecr),[L,D]=H.useState(n.value||"");H.useEffect(()=>D(n.value||""),[n.value]);var B=H.useRef(null);H.useImperativeHandle(i,()=>B.current,[B]);var $={paddingTop:c,paddingRight:c,paddingBottom:c,paddingLeft:c},j=H.useMemo(()=>gcr("<pre aria-hidden=true><code "+(b&&L?'class="language-'+b+'"':"")+" >"+bcr(String(L||""))+"</code><br /></pre>",x),[L,b,x]),P=H.useMemo(()=>I.jsx("div",{style:Hk({},P$t,$,{minHeight:d}),className:s+"-preview "+(b?"language-"+b:""),dangerouslySetInnerHTML:{__html:j}}),[s,b,j]),G=Q=>{D(Q.target.value),A&&A(Q)},ee=Q=>{R.readOnly||(!R.onKeyDown||R.onKeyDown(Q)!==!1)&&wcr(Q,C)},re=Hk({autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off"},R,{placeholder:g,onKeyDown:ee,style:Hk({},P$t,vcr,$,{minHeight:d},g&&!L?{WebkitTextFillColor:"inherit"}:{}),onChange:G,className:s+"-text",value:L});return I.jsxs("div",{style:Hk({},ycr,S),className:s+" "+(E||""),"data-color-mode":w,children:[I.jsx("textarea",Hk({},re,{ref:B})),P]})}),h9e=function(n){if(n==null)return xcr;if(typeof n=="function")return cue(n);if(typeof n=="object")return Array.isArray(n)?Tcr(n):Acr(n);if(typeof n=="string")return _cr(n);throw new Error("Expected function, string, or object as test")};function Tcr(n){const i=[];let s=-1;for(;++s<n.length;)i[s]=h9e(n[s]);return cue(c);function c(...d){let g=-1;for(;++g<i.length;)if(i[g].apply(this,d))return!0;return!1}}function Acr(n){const i=n;return cue(s);function s(c){const d=c;let g;for(g in n)if(d[g]!==i[g])return!1;return!0}}function _cr(n){return cue(i);function i(s){return s&&s.type===n}}function cue(n){return i;function i(s,c,d){return!!(kcr(s)&&n.call(this,s,typeof c=="number"?c:void 0,d||void 0))}}function xcr(){return!0}function kcr(n){return n!==null&&typeof n=="object"&&"type"in n}const pXt=[],Ncr=!0,j$t=!1,Ccr="skip";function Icr(n,i,s,c){let d;typeof i=="function"&&typeof s!="function"?(c=s,s=i):d=i;const g=h9e(d),b=c?-1:1;w(n,void 0,[])();function w(E,S,x){const A=E&&typeof E=="object"?E:{};if(typeof A.type=="string"){const R=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(E.type+(R?"<"+R+">":""))+")"})}return C;function C(){let R=pXt,L,D,B;if((!i||g(E,S,x[x.length-1]||void 0))&&(R=Rcr(s(E,x)),R[0]===j$t))return R;if("children"in E&&E.children){const $=E;if($.children&&R[0]!==Ccr)for(D=(c?$.children.length:-1)+b,B=x.concat($);D>-1&&D<$.children.length;){const j=$.children[D];if(L=w(j,D,B)(),L[0]===j$t)return L;D=typeof L[1]=="number"?L[1]:D+b}}return R}}}function Rcr(n){return Array.isArray(n)?n:typeof n=="number"?[Ncr,n]:n==null?pXt:[n]}function Ocr(n,i,s,c){let d,g,b;g=i,b=s,d=c,Icr(n,g,w,d);function w(E,S){const x=S[S.length-1],A=x?x.children.indexOf(E):void 0;return b(E,A,x)}}function Pie(n){return"children"in n?gXt(n):"value"in n?n.value:""}function Dcr(n){return n.type==="text"?n.value:"children"in n?gXt(n):""}function gXt(n){let i=-1;const s=[];for(;++i<n.children.length;)s[i]=Dcr(n.children[i]);return s.join("")}const Lcr={}.hasOwnProperty;function Mcr(n,i,s){const c=h9e(i),d=i&&typeof i=="object"&&"cascade"in i?i.cascade:void 0,g=d??!0;return b(n);function b(w,E,S){const x=[];if(!c(w,E,S))return;if(Pcr(w)){let R=-1;for(;++R<w.children.length;){const L=b(w.children[R],R,w);L&&x.push(L)}if(g&&w.children.length>0&&x.length===0)return}const A={};let C;for(C in w)Lcr.call(w,C)&&(A[C]=C==="children"?x:w[C]);return A}}function Pcr(n){r Line truncated
`)>-1?s.lineStarInstert(d):s.insertText(d).position(s.start+i,s.end),s.notifyChange();else if(u==="enter"){s6e(n);var g=`
`+s.getIndentText();s.insertText(g).position(s.start+g.length,s.start+g.length),s.notifyChange()}else if(u&&/^(quote|backquote|bracketleft|digit9|comma)$/.test(u)&&s.getSelectedValue()){s6e(n);var b=s.getSelectedValue(),w="";switch(u){case"quote":w="'"+b+"'",n.shiftKey&&(w='"'+b+'"');break;case"backquote":w="`"+b+"`";break;case"bracketleft":w="["+b+"]",n.shiftKey&&(w="{"+b+"}");break;case"digit9":w="("+b+")";break;case"comma":w="<"+b+">";break}s.insertText(w),s.notifyChange()}}var xcr={position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},kcr={position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",opacity:.8,overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},B$t={margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word",outline:0},Ncr=["prefixCls","value","padding","minHeight","placeholder","language","data-color-mode","className","style","rehypePlugins","onChange","indentWidth"];const Ccr=Hn.forwardRef((n,i)=>{var{prefixCls:s="w-tc-editor",padding:u=10,minHeight:d=16,placeholder:g,language:b,"data-color-mode":w,className:E,style:S,rehypePlugins:x,onChange:A,indentWidth:C=2}=n,R=kJt(n,Ncr),[D,L]=H.useState(n.value||"");H.useEffect(()=>L(n.value||""),[n.value]);var B=H.useRef(null);H.useImperativeHandle(i,()=>B.current,[B]);var $={paddingTop:u,paddingRight:u,paddingBottom:u,paddingLeft:u},j=H.useMemo(()=>Scr("<pre aria-hidden=true><code "+(b&&D?'class="language-'+b+'"':"")+" >"+Tcr(String(D||""))+"</code><br /></pre>",x),[D,b,x]),P=H.useMemo(()=>I.jsx("div",{style:Hk({},B$t,$,{minHeight:d}),className:s+"-preview "+(b?"language-"+b:""),dangerouslySetInnerHTML:{__html:j}}),[s,b,j]),G=Q=>{L(Q.target.value),A&&A(Q)},ee=Q=>{R.readOnly||(!R.onKeyDown||R.onKeyDown(Q)!==!1)&&_cr(Q,C)},ne=Hk({autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off"},R,{placeholder:g,onKeyDown:ee,style:Hk({},B$t,kcr,$,{minHeight:d},g&&!D?{WebkitTextFillColor:"inherit"}:{}),onChange:G,className:s+"-text",value:D});return I.jsxs("div",{style:Hk({},xcr,S),className:s+" "+(E||""),"data-color-mode":w,children:[I.jsx("textarea",Hk({},ne,{ref:B})),P]})}),p9e=function(n){if(n==null)return Lcr;if(typeof n=="function")return cue(n);if(typeof n=="object")return Array.isArray(n)?Icr(n):Rcr(n);if(typeof n=="string")return Ocr(n);throw new Error("Expected function, string, or object as test")};function Icr(n){const i=[];let s=-1;for(;++s<n.length;)i[s]=p9e(n[s]);return cue(u);function u(...d){let g=-1;for(;++g<i.length;)if(i[g].apply(this,d))return!0;return!1}}function Rcr(n){const i=n;return cue(s);function s(u){const d=u;let g;for(g in n)if(d[g]!==i[g])return!1;return!0}}function Ocr(n){return cue(i);function i(s){return s&&s.type===n}}function cue(n){return i;function i(s,u,d){return!!(Dcr(s)&&n.call(this,s,typeof u=="number"?u:void 0,d||void 0))}}function Lcr(){return!0}function Dcr(n){return n!==null&&typeof n=="object"&&"type"in n}const yXt=[],Mcr=!0,U$t=!1,Pcr="skip";function jcr(n,i,s,u){let d;typeof i=="function"&&typeof s!="function"?(u=s,s=i):d=i;const g=p9e(d),b=u?-1:1;w(n,void 0,[])();function w(E,S,x){const A=E&&typeof E=="object"?E:{};if(typeof A.type=="string"){const R=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(E.type+(R?"<"+R+">":""))+")"})}return C;function C(){let R=yXt,D,L,B;if((!i||g(E,S,x[x.length-1]||void 0))&&(R=Fcr(s(E,x)),R[0]===U$t))return R;if("children"in E&&E.children){const $=E;if($.children&&R[0]!==Pcr)for(L=(u?$.children.length:-1)+b,B=x.concat($);L>-1&&L<$.children.length;){const j=$.children[L];if(D=w(j,L,B)(),D[0]===U$t)return D;L=typeof D[1]=="number"?D[1]:L+b}}return R}}}function Fcr(n){return Array.isArray(n)?n:typeof n=="number"?[Mcr,n]:n==null?yXt:[n]}function $cr(n,i,s,u){let d,g,b;g=i,b=s,d=u,jcr(n,g,w,d);function w(E,S){const x=S[S.length-1],A=x?x.children.indexOf(E):void 0;return b(E,A,x)}}function jie(n){return"children"in n?vXt(n):"value"in n?n.value:""}function Bcr(n){return n.type==="text"?n.value:"children"in n?vXt(n):""}function vXt(n){let i=-1;const s=[];for(;++i<n.children.length;)s[i]=Bcr(n.children[i]);return s.join("")}const Ucr={}.hasOwnProperty;function Hcr(n,i,s){const u=p9e(i),d=i&&typeof i=="object"&&"cascade"in i?i.cascade:void 0,g=d??!0;return b(n);function b(w,E,S){const x=[];if(!u(w,E,S))return;if(zcr(w)){let R=-1;for(;++R<w.children.length;){const D=b(w.children[R],R,w);D&&x.push(D)}if(g&&w.children.length>0&&x.length===0)return}const A={};let C;for(C in w)Ucr.call(w,C)&&(A[C]=C==="children"?x:w[C]);return A}}function zcr(n){r Line truncated
?|
|(?![\\s\\S])))+`,"m"),alias:g,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(c)[0]}}}}),Object.defineProperty(i.languages.diff,"PREFIXES",{value:s})})(n)}fue.displayName="go";fue.aliases=[];function fue(n){n.register(Ds),n.languages.go=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),n.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete n.languages.go["class-name"]}hue.displayName="ini";hue.aliases=[];function hue(n){n.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}BR.displayName="java";BR.aliases=[];function BR(n){n.register(Ds),function(i){var s=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,c=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,d={pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};i.languages.java=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[d,{pattern:RegExp(/(^|[^\w.])/.source+c+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:d.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+c+/[A-Z]\w*\b/.source),lookbehind:!0,inside:d.inside}],keyword:s,function:[i.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),i.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":d,keyword:s,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+c+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:d.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+c+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:d.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return s.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(n)}pue.displayName="regex";pue.aliases=[];function pue(n){(function(i){var s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},c=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,d={pattern:/\.|\\[wsLine truncated
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+c+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:s,quoted:{pattern:RegExp(/(^|\s)/.source+c),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(n)}eG.displayName="t4-templating";eG.aliases=[];function eG(n){(function(i){function s(d,g,b){return{pattern:RegExp("<#"+d+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+d+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:g,alias:b}}}}function c(d){var g=i.languages[d],b="language-"+d;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:s("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:s("=",g,b),"class-feature":s("\\+",g,b),standard:s("",g,b)}}}}i.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:c})})(n)}T7e.displayName="t4-cs";T7e.aliases=["t4"];function T7e(n){n.register($R),n.register(eG),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}A7e.displayName="t4-vb";A7e.aliases=[];function A7e(n){n.register(eG),n.register(Jz),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}_7e.displayName="tap";_7e.aliases=[];function _7e(n){n.register(Wz),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}x7e.displayName="tcl";x7e.aliases=[];function x7e(n){n.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}k7e.displayName="tt2";k7e.aliases=[];function k7e(n){n.register(Ds),n.register(Vh),function(i){i.languages.tt2=i.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),i.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),i.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),i.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete i.languages.tt2.string,i.hooks.add("before-tokenize",function(s){var c=/\[%[\s\S]+?%\]/g;i.languages["markup-templating"].buildPlaceholders(s,"tt2",c)}),i.hooks.add("after-tokenize",function(s){i.languages["markup-templating"].tokenizePlaceholders(s,"tt2")})}(n)}N7e.displayName="toml";N7e.aliases=[];function N7e(n){(function(i){var s=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function c(d){return d.replace(/__/g,function(){return s})}i.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(c(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ylr=function(n){return function(i){return i===void 0&&(i={}),function(c,d){if(d&&!c.registered(d))throw new Error('The default language "'+d+'" is not registered with refractor.')}(n,i.defaultLanguage),function(c){Ocr(c,"element",s)};function s(c,d,g){var b,w;if(g&&g.tagName==="pre"&&c.tagName==="code"){var E=(c==null||(b=c.data)==null?void 0:b.meta)||(c==null||(w=c.properties)==null?void 0:w.metastring)||"";c.properties.className?typeof c.properties.className=="boolean"?c.properties.className=[]:Array.isArray(c.properties.className)||(c.properties.className=[c.properties.className]):c.properties.className=[];var S,x,A=function(ee){for(var re,Q=u6e(ee.properties.className);!(re=Q()).done;){var ie=re.value;if(ie.slice(0,9)==="language-")return ie.slice(9).toLowerCase()}return null}(c);if(!A&&i.defaultLanguage&&c.properties.className.push("language-"+(A=i.defaultLanguage)),c.properties.className.push("code-highlight"),A)try{var C,R;R=(C=A)!=null&&C.includes("diff-")?A.split("-")[1]:A,S=n.highlight(Pie(c),R),g.properties.className=(g.properties.className||[]).concat("language-"+R)}catch(ee){if(!i.ignoreMissing||!/Unknown language/.test(ee.message))throw ee;S=c}else S=c;S.children=(x=1,function ee(re){return re.reduce(function(Q,ie){if(ie.type==="text"){var pe=ie.value,me=(pe.match(/\n/g)||"").length;if(me===0)ie.position={start:{line:x,column:1},end:{line:x,column:1}},Q.push(ie);else for(var le,fe=pe.split(`
`),K=u6e(fe.entries());!(le=K()).done;){var he=le.value,Oe=he[0],Se=he[1];Q.push({type:"text",value:Oe===fe.length-1?Se:Se+`
`,position:{start:{line:x+Oe,column:1},end:{line:x+Oe,column:1}}})}return x+=me,Q}if(Object.prototype.hasOwnProperty.call(ie,"children")){var Le=x;return ie.children=ee(ie.children),Q.push(ie),ie.position={start:{line:Le,column:1},end:{line:x,column:1}},Q}return Q.push(ie),Q},[])})(S.children),S.position=S.children.length>0?{start:{line:S.children[0].position.start.line,column:0},end:{line:S.children[S.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var L,D=function(ee){var re=/{([\d,-]+)}/,Q=ee.split(",").map(function(me){return me.trim()}).join();if(re.test(Q)){var ie=re.exec(Q)[1],pe=Fcr(ie);return function(me){return pe.includes(me+1)}}return function(){return!1}}(E),B=function(ee){var re=SLe(/showLineNumbers=(\d+)/i,{lines:1});if(re.test(ee)){var Q=re.exec(ee);return Number(Q.groups.lines)}return 1}(E),$=function(ee){for(var re=new Array(ee),Q=0;Q<ee;Q++)re[Q]={type:"element",tagName:"span",properties:{className:[]},children:[]};return re}(S.position.end.line),j=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],P=function(){var ee,re,Q=L.value,ie=Q[0],pe=Q[1];pe.properties.className=["code-line"];var me=Mcr(S,function(le){return le.position.start.line<=ie+1&&le.position.end.line>=ie+1});pe.children=me.children,!E.toLowerCase().includes("showLineNumbers".toLowerCase())&&!i.showLineNumbers||j.some(function(le){return E.toLowerCase().includes(le)})||(pe.properties.line=[(ie+B).toString()],pe.properties.className.push("line-number")),D(ie)&&pe.properties.className.push("highlight-line"),(A==="diff"||(ee=A)!=null&&ee.includes("diff-"))&&Pie(pe).substring(0,1)==="-"?pe.properties.className.push("deleted"):(A==="diff"||(re=A)!=null&&re.includes("diff-"))&&Pie(pe).substring(0,1)==="+"&&pe.properties.className.push("inserted")},G=u6e($.entries());!(L=G()).done;)P();$.length>0&&Pie($[$.length-1]).trim()===""&&$.pop(),c.children=$}}}},vlr=ylr(_e),Elr=["rehypePlugins"];const Slr=Hn.forwardRef((n,i)=>{var{rehypePlugins:s=[[vlr,{ignoreMissing:!0}]]}=n,c=SJt(n,Elr);return I.jsx(Scr,Hk({},c,{rehypePlugins:s,ref:i}))});function Tlr({yaml:n,errors:i,warnings:s,onYamlChange:c}){const d=Do(w=>w.fromFlowGraph),g=zae();H.useEffect(()=>{},[]);const b=async w=>{const E=w.target.value;c&&c(E);try{const x=await new RM().fromYaml(E);if(!x.success||!x.graph)return;d(x.graph)}catch{}};return I.jsxs("div",{className:"flex h-full flex-col",children:[I.jsx(Slr,{value:n,language:"yaml",placeholder:"Enter YAML...",onChange:b,"data-color-mode":g?"dark":"light",padding:12,style:{fontFamily:"ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace",fontSize:13,height:"100%",resize:"none",whiteSpace:"pre-wrap",overflow:"auto"}}),i&&i.length>0&&I.jsx("div",{className:"border-red-200 border-t bg-red-50 px-3 py-2 text-red-600 text-xs",children:i.join(`
|(?![\\s\\S])))+`,"m"),alias:g,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(u)[0]}}}}),Object.defineProperty(i.languages.diff,"PREFIXES",{value:s})})(n)}fue.displayName="go";fue.aliases=[];function fue(n){n.register(Ls),n.languages.go=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),n.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete n.languages.go["class-name"]}hue.displayName="ini";hue.aliases=[];function hue(n){n.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}BR.displayName="java";BR.aliases=[];function BR(n){n.register(Ls),function(i){var s=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,u=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,d={pattern:RegExp(/(^|[^\w.])/.source+u+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};i.languages.java=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[d,{pattern:RegExp(/(^|[^\w.])/.source+u+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:d.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+u+/[A-Z]\w*\b/.source),lookbehind:!0,inside:d.inside}],keyword:s,function:[i.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),i.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":d,keyword:s,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+u+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:d.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+u+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:d.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return s.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(n)}pue.displayName="regex";pue.aliases=[];function pue(n){(function(i){var s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},u=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,d={pattern:/\.|\\[wsLine truncated
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+u+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:s,quoted:{pattern:RegExp(/(^|\s)/.source+u),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(n)}tG.displayName="t4-templating";tG.aliases=[];function tG(n){(function(i){function s(d,g,b){return{pattern:RegExp("<#"+d+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+d+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:g,alias:b}}}}function u(d){var g=i.languages[d],b="language-"+d;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:s("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:s("=",g,b),"class-feature":s("\\+",g,b),standard:s("",g,b)}}}}i.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:u})})(n)}A7e.displayName="t4-cs";A7e.aliases=["t4"];function A7e(n){n.register($R),n.register(tG),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}_7e.displayName="t4-vb";_7e.aliases=[];function _7e(n){n.register(tG),n.register(Xz),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}x7e.displayName="tap";x7e.aliases=[];function x7e(n){n.register(Kz),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}k7e.displayName="tcl";k7e.aliases=[];function k7e(n){n.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}N7e.displayName="tt2";N7e.aliases=[];function N7e(n){n.register(Ls),n.register(Vh),function(i){i.languages.tt2=i.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),i.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),i.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),i.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete i.languages.tt2.string,i.hooks.add("before-tokenize",function(s){var u=/\[%[\s\S]+?%\]/g;i.languages["markup-templating"].buildPlaceholders(s,"tt2",u)}),i.hooks.add("after-tokenize",function(s){i.languages["markup-templating"].tokenizePlaceholders(s,"tt2")})}(n)}C7e.displayName="toml";C7e.aliases=[];function C7e(n){(function(i){var s=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function u(d){return d.replace(/__/g,function(){return s})}i.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(u(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xlr=function(n){return function(i){return i===void 0&&(i={}),function(u,d){if(d&&!u.registered(d))throw new Error('The default language "'+d+'" is not registered with refractor.')}(n,i.defaultLanguage),function(u){$cr(u,"element",s)};function s(u,d,g){var b,w;if(g&&g.tagName==="pre"&&u.tagName==="code"){var E=(u==null||(b=u.data)==null?void 0:b.meta)||(u==null||(w=u.properties)==null?void 0:w.metastring)||"";u.properties.className?typeof u.properties.className=="boolean"?u.properties.className=[]:Array.isArray(u.properties.className)||(u.properties.className=[u.properties.className]):u.properties.className=[];var S,x,A=function(ee){for(var ne,Q=u6e(ee.properties.className);!(ne=Q()).done;){var ie=ne.value;if(ie.slice(0,9)==="language-")return ie.slice(9).toLowerCase()}return null}(u);if(!A&&i.defaultLanguage&&u.properties.className.push("language-"+(A=i.defaultLanguage)),u.properties.className.push("code-highlight"),A)try{var C,R;R=(C=A)!=null&&C.includes("diff-")?A.split("-")[1]:A,S=n.highlight(jie(u),R),g.properties.className=(g.properties.className||[]).concat("language-"+R)}catch(ee){if(!i.ignoreMissing||!/Unknown language/.test(ee.message))throw ee;S=u}else S=u;S.children=(x=1,function ee(ne){return ne.reduce(function(Q,ie){if(ie.type==="text"){var he=ie.value,ge=(he.match(/\n/g)||"").length;if(ge===0)ie.position={start:{line:x,column:1},end:{line:x,column:1}},Q.push(ie);else for(var ce,fe=he.split(`
`),K=u6e(fe.entries());!(ce=K()).done;){var pe=ce.value,Oe=pe[0],Se=pe[1];Q.push({type:"text",value:Oe===fe.length-1?Se:Se+`
`,position:{start:{line:x+Oe,column:1},end:{line:x+Oe,column:1}}})}return x+=ge,Q}if(Object.prototype.hasOwnProperty.call(ie,"children")){var De=x;return ie.children=ee(ie.children),Q.push(ie),ie.position={start:{line:De,column:1},end:{line:x,column:1}},Q}return Q.push(ie),Q},[])})(S.children),S.position=S.children.length>0?{start:{line:S.children[0].position.start.line,column:0},end:{line:S.children[S.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var D,L=function(ee){var ne=/{([\d,-]+)}/,Q=ee.split(",").map(function(ge){return ge.trim()}).join();if(ne.test(Q)){var ie=ne.exec(Q)[1],he=qcr(ie);return function(ge){return he.includes(ge+1)}}return function(){return!1}}(E),B=function(ee){var ne=SDe(/showLineNumbers=(\d+)/i,{lines:1});if(ne.test(ee)){var Q=ne.exec(ee);return Number(Q.groups.lines)}return 1}(E),$=function(ee){for(var ne=new Array(ee),Q=0;Q<ee;Q++)ne[Q]={type:"element",tagName:"span",properties:{className:[]},children:[]};return ne}(S.position.end.line),j=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],P=function(){var ee,ne,Q=D.value,ie=Q[0],he=Q[1];he.properties.className=["code-line"];var ge=Hcr(S,function(ce){return ce.position.start.line<=ie+1&&ce.position.end.line>=ie+1});he.children=ge.children,!E.toLowerCase().includes("showLineNumbers".toLowerCase())&&!i.showLineNumbers||j.some(function(ce){return E.toLowerCase().includes(ce)})||(he.properties.line=[(ie+B).toString()],he.properties.className.push("line-number")),L(ie)&&he.properties.className.push("highlight-line"),(A==="diff"||(ee=A)!=null&&ee.includes("diff-"))&&jie(he).substring(0,1)==="-"?he.properties.className.push("deleted"):(A==="diff"||(ne=A)!=null&&ne.includes("diff-"))&&jie(he).substring(0,1)==="+"&&he.properties.className.push("inserted")},G=u6e($.entries());!(D=G()).done;)P();$.length>0&&jie($[$.length-1]).trim()===""&&$.pop(),u.children=$}}}},klr=xlr(_e),Nlr=["rehypePlugins"];const Clr=Hn.forwardRef((n,i)=>{var{rehypePlugins:s=[[klr,{ignoreMissing:!0}]]}=n,u=kJt(n,Nlr);return I.jsx(Ccr,Hk({},u,{rehypePlugins:s,ref:i}))});function Ilr({yaml:n,errors:i,warnings:s,onYamlChange:u}){const d=ko(w=>w.fromFlowGraph),g=zae();H.useEffect(()=>{},[]);const b=async w=>{const E=w.target.value;u&&u(E);try{const x=await new RM().fromYaml(E);if(!x.success||!x.graph)return;d(x.graph)}catch{}};return I.jsxs("div",{className:"flex h-full flex-col",children:[I.jsx(Clr,{value:n,language:"yaml",placeholder:"Enter YAML...",onChange:b,"data-color-mode":g?"dark":"light",padding:12,style:{fontFamily:"ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace",fontSize:13,height:"100%",resize:"none",whiteSpace:"pre-wrap",overflow:"auto"}}),i&&i.length>0&&I.jsx("div",{className:"border-red-200 border-t bg-red-50 px-3 py-2 text-red-600 text-xs",children:i.join(`
`)}),s&&s.length>0&&I.jsx("div",{className:"border-yellow-200 border-t bg-yellow-50 px-3 py-2 text-xs text-yellow-600",children:s.join(`
`)})]})}function Alr(){const{t:n}=ps(["common","errors"]),i=Do(L=>L.nodes),s=Do(L=>L.toFlowGraph),[c,d]=H.useState(!1),[g,b]=H.useState("auto"),w=H.useRef(null),{yaml:E,errors:S,warnings:x,strategy:A,isStale:C}=H.useMemo(()=>{var L;if(i.length===0)return w.current=null,{yaml:n("placeholders.addNodesForYaml"),warnings:[],errors:[],strategy:null,isStale:!1};try{const D=s(),$=new RM().transpile(D,{forceStrategy:g==="auto"?void 0:g});if(!$.success){const G=w.current;return{yaml:(G==null?void 0:G.yaml)||"",warnings:[],errors:$.errors||[n("errors:api.unknownError")],strategy:(G==null?void 0:G.strategy)||null,isStale:!!G}}const j=$.yaml||"",P=((L=$.output)==null?void 0:L.strategy)||null;return w.current={yaml:j,strategy:P},{yaml:j,warnings:$.warnings,errors:[],strategy:P,isStale:!1}}catch(D){const B=w.current;return{yaml:(B==null?void 0:B.yaml)||"",warnings:[],errors:[D instanceof Error?D.message:n("errors:api.transpileFailed")],strategy:(B==null?void 0:B.strategy)||null,isStale:!!B}}},[i,s,g,n]),R=async()=>{try{await kir(E),d(!0),setTimeout(()=>d(!1),2e3)}catch(L){console.error(n("errors:common.failedToCopy"),L)}};return I.jsxs("div",{className:"flex h-full flex-col",children:[I.jsxs("div",{className:"flex items-center justify-between border-b p-3",children:[I.jsx("h3",{className:"font-semibold text-foreground text-sm",children:n("labels.yamlOutput")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(zp,{value:g,onValueChange:L=>b(L),children:[I.jsx(zh,{className:"h-7 w-[120px] text-xs",children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"auto",children:n("strategy.auto")}),I.jsx(to,{value:"native",children:n("strategy.native")}),I.jsx(to,{value:"state-machine",children:n("strategy.stateMachine")})]})]}),I.jsx(Ri,{variant:"ghost",size:"sm",onClick:R,disabled:!E,className:Sr("h-7 w-7 p-0",c?"bg-green-100 text-green-600 hover:bg-green-100":"text-muted-foreground"),children:c?I.jsx(oN,{className:"h-4 w-4"}):I.jsx($5e,{className:"h-4 w-4"})})]})]}),A&&I.jsxs("div",{className:"flex items-center gap-2 border-b bg-muted/50 px-3 py-1.5",children:[I.jsx("span",{className:"text-muted-foreground text-xs",children:n("labels.strategy")}),I.jsx(HMe,{variant:"secondary",className:"text-xs",children:A})]}),I.jsx("div",{className:"min-h-0 flex-1",children:I.jsx(Tlr,{yaml:E,errors:S,warnings:C?[n("errors:yaml.staleWarning"),...x]:x})})]})}function _lr(){const{t:n}=ps(["common","dialogs"]),{hass:i}=pb(),{automationId:s,traceData:c,isShowingTrace:d,traceExecutionPath:g,traceTimestamps:b,showTrace:w,hideTrace:E,setActiveNode:S,simulationSpeed:x,isSimulating:A}=Do(),[C,R]=H.useState([]),[L,D]=H.useState(""),[B,$]=H.useState(!1),[j,P]=H.useState(!1),G=H.useCallback(async()=>{if(!(!s||!i)){$(!0);try{const fe=Mv(i),K=await fe.getAutomationTraces(s);if(Ef.info("Loaded automation traces:",K),R(K||[]),K&&K.length>0){const he=K[0].run_id;D(he);const Oe=await fe.getAutomationTraceDetails(s,he);Oe&&w(Oe)}}catch(fe){Ef.error("Failed to load automation traces:",fe),R([])}$(!1)}},[s,i,w]);H.useEffect(()=>{s&&i&&G()},[s,i,G]);const ee=H.useCallback(async fe=>{if(!(!s||!i||!fe)){$(!0);try{const he=await Mv(i).getAutomationTraceDetails(s,fe);Ef.info("Loaded trace details:",he),he&&w(he)}catch(K){Ef.error("Failed to load trace details:",K)}$(!1)}},[s,i,w]),re=H.useCallback(fe=>{D(fe),ee(fe)},[ee]),Q=H.useCallback(()=>{E(),S(null),P(!1)},[E,S]),ie=H.useCallback(async()=>{if(!(!g.length||A)){P(!0);try{for(const fe of g)if(S(fe),await new Promise(K=>setTimeout(K,x)),!d)break;S(null)}catch(fe){Ef.error("Trace animation error:",fe)}P(!1)}},[g,x,S,d,A]),pe=H.useCallback(()=>{P(!1),S(null)},[S]),me=fe=>{try{return new Date(fe).toLocaleTimeString()}catch{return fe}},le=(fe,K)=>{try{const he=new Date(fe);return`${(((K?new Date(K):new Date).getTime()-he.getTime())/1e3).toFixed(1)}s`}catch{return n("labels.notApplicable")}};return s?I.jsxs("div",{className:"h-full space-y-4 p-4",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("h3",{className:"font-semibold text-foreground text-sm",children:n("labels.automationTrace")}),I.jsxs("div",{className:"flex gap-1",children:[d&&!j&&I.jsx(Ri,{variant:"outline",size:"sm",onClick:ie,disabled:!g.length||A,className:Sr("h-8 w-8 p-0",!g.length||A?"text-muted-foreground":"border-orange-200 text-orange-600 hover:bg-orange-50"),children:I.jsx(rae,{className:"h-4 w-4"})}),j&&I.jsx(Ri,{variant:"outline",size:"sm",onClick:pe,className:"h-8 w-8 border-orange-200 p-0 text-orange-600 hover:bg-orange-50",children:I.jsx(mGt,{className:"h-4 w-4"})}),d?I.jsx(Ri,{variant:"outline",size:"sm",onClick:Q,className:"h-8 w-8 border-blue-200 p-0 text-blue-600 hover:bg-blue-50",children:I.jsx(pGt,{className:"h-4 w-4"})}):I.jsx(Ri,{variant:"outline",size:"sm",onClick:G,disabled:B,className:Sr("h-8 w-8 p-0",B?"text-muted-foreground":"border-blue-200 text-blue-600 hover:bg-blue-50"),children:I.jsx(z8n,{className:"h-4 w-4"})})]})]}),C.length===0&&!B&&I.jsx("div",{className:"text-center t Line truncated
//# sourceMappingURL=main-Bh6odaMI.js.map
`)})]})}function Rlr(){const{t:n}=ps(["common","errors"]),i=ko(D=>D.nodes),s=ko(D=>D.toFlowGraph),[u,d]=H.useState(!1),[g,b]=H.useState("auto"),w=H.useRef(null),{yaml:E,errors:S,warnings:x,strategy:A,isStale:C}=H.useMemo(()=>{var D;if(i.length===0)return w.current=null,{yaml:n("placeholders.addNodesForYaml"),warnings:[],errors:[],strategy:null,isStale:!1};try{const L=s(),$=new RM().transpile(L,{forceStrategy:g==="auto"?void 0:g});if(!$.success){const G=w.current;return{yaml:(G==null?void 0:G.yaml)||"",warnings:[],errors:$.errors||[n("errors:api.unknownError")],strategy:(G==null?void 0:G.strategy)||null,isStale:!!G}}const j=$.yaml||"",P=((D=$.output)==null?void 0:D.strategy)||null;return w.current={yaml:j,strategy:P},{yaml:j,warnings:$.warnings,errors:[],strategy:P,isStale:!1}}catch(L){const B=w.current;return{yaml:(B==null?void 0:B.yaml)||"",warnings:[],errors:[L instanceof Error?L.message:n("errors:api.transpileFailed")],strategy:(B==null?void 0:B.strategy)||null,isStale:!!B}}},[i,s,g,n]),R=async()=>{try{await Dir(E),d(!0),setTimeout(()=>d(!1),2e3)}catch(D){console.error(n("errors:common.failedToCopy"),D)}};return I.jsxs("div",{className:"flex h-full flex-col",children:[I.jsxs("div",{className:"flex items-center justify-between border-b p-3",children:[I.jsx("h3",{className:"font-semibold text-foreground text-sm",children:n("labels.yamlOutput")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(zp,{value:g,onValueChange:D=>b(D),children:[I.jsx(zh,{className:"h-7 w-[120px] text-xs",children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"auto",children:n("strategy.auto")}),I.jsx(to,{value:"native",children:n("strategy.native")}),I.jsx(to,{value:"state-machine",children:n("strategy.stateMachine")})]})]}),I.jsx(ki,{variant:"ghost",size:"sm",onClick:R,disabled:!E,className:Sr("h-7 w-7 p-0",u?"bg-green-100 text-green-600 hover:bg-green-100":"text-muted-foreground"),children:u?I.jsx(oN,{className:"h-4 w-4"}):I.jsx($5e,{className:"h-4 w-4"})})]})]}),A&&I.jsxs("div",{className:"flex items-center gap-2 border-b bg-muted/50 px-3 py-1.5",children:[I.jsx("span",{className:"text-muted-foreground text-xs",children:n("labels.strategy")}),I.jsx(zMe,{variant:"secondary",className:"text-xs",children:A})]}),I.jsx("div",{className:"min-h-0 flex-1",children:I.jsx(Ilr,{yaml:E,errors:S,warnings:C?[n("errors:yaml.staleWarning"),...x]:x})})]})}function Olr(){const{t:n}=ps(["common","dialogs"]),{hass:i}=pb(),{automationId:s,traceData:u,isShowingTrace:d,traceExecutionPath:g,traceTimestamps:b,showTrace:w,hideTrace:E,setActiveNode:S,simulationSpeed:x,isSimulating:A}=ko(),[C,R]=H.useState([]),[D,L]=H.useState(""),[B,$]=H.useState(!1),[j,P]=H.useState(!1),G=H.useCallback(async()=>{if(!(!s||!i)){$(!0);try{const fe=Mv(i),K=await fe.getAutomationTraces(s);if(Ef.info("Loaded automation traces:",K),R(K||[]),K&&K.length>0){const pe=K[0].run_id;L(pe);const Oe=await fe.getAutomationTraceDetails(s,pe);Oe&&w(Oe)}}catch(fe){Ef.error("Failed to load automation traces:",fe),R([])}$(!1)}},[s,i,w]);H.useEffect(()=>{s&&i&&G()},[s,i,G]);const ee=H.useCallback(async fe=>{if(!(!s||!i||!fe)){$(!0);try{const pe=await Mv(i).getAutomationTraceDetails(s,fe);Ef.info("Loaded trace details:",pe),pe&&w(pe)}catch(K){Ef.error("Failed to load trace details:",K)}$(!1)}},[s,i,w]),ne=H.useCallback(fe=>{L(fe),ee(fe)},[ee]),Q=H.useCallback(()=>{E(),S(null),P(!1)},[E,S]),ie=H.useCallback(async()=>{if(!(!g.length||A)){P(!0);try{for(const fe of g)if(S(fe),await new Promise(K=>setTimeout(K,x)),!d)break;S(null)}catch(fe){Ef.error("Trace animation error:",fe)}P(!1)}},[g,x,S,d,A]),he=H.useCallback(()=>{P(!1),S(null)},[S]),ge=fe=>{try{return new Date(fe).toLocaleTimeString()}catch{return fe}},ce=(fe,K)=>{try{const pe=new Date(fe);return`${(((K?new Date(K):new Date).getTime()-pe.getTime())/1e3).toFixed(1)}s`}catch{return n("labels.notApplicable")}};return s?I.jsxs("div",{className:"h-full space-y-4 p-4",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("h3",{className:"font-semibold text-foreground text-sm",children:n("labels.automationTrace")}),I.jsxs("div",{className:"flex gap-1",children:[d&&!j&&I.jsx(ki,{variant:"outline",size:"sm",onClick:ie,disabled:!g.length||A,className:Sr("h-8 w-8 p-0",!g.length||A?"text-muted-foreground":"border-orange-200 text-orange-600 hover:bg-orange-50"),children:I.jsx(rae,{className:"h-4 w-4"})}),j&&I.jsx(ki,{variant:"outline",size:"sm",onClick:he,className:"h-8 w-8 border-orange-200 p-0 text-orange-600 hover:bg-orange-50",children:I.jsx(vGt,{className:"h-4 w-4"})}),d?I.jsx(ki,{variant:"outline",size:"sm",onClick:Q,className:"h-8 w-8 border-blue-200 p-0 text-blue-600 hover:bg-blue-50",children:I.jsx(mGt,{className:"h-4 w-4"})}):I.jsx(ki,{variant:"outline",size:"sm",onClick:G,disabled:B,className:Sr("h-8 w-8 p-0",B?"text-muted-foreground":"border-blue-200 text-blue-600 hover:bg-blue-50"),children:I.jsx(K8n,{className:"h-4 w-4"})})]})]}),C.length===0&&!B&&I.jsx("div",{className:"text-center t Line truncated
//# sourceMappingURL=main-B-MXbKCR.js.map
@@ -1,2 +1,2 @@
var d=Object.defineProperty;var o=(t,s,e)=>s in t?d(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var h=(t,s,e)=>o(t,typeof s!="symbol"?s+"":s,e);class m extends HTMLElement{constructor(){super(...arguments);h(this,"_messageHandler");h(this,"iframe",null);h(this,"_hass")}set hass(e){var a;this._hass=e,window.hass=e;const i=(a=this.iframe)==null?void 0:a.contentWindow;i!=null&&i.setHass&&i.setHass(e)}get hass(){return this._hass}connectedCallback(){var a,n;this.style.display="block",this.style.width="100%",this.style.height="100%",this.style.position="relative";const i=((n=(a=this._hass)==null?void 0:a.themes)==null?void 0:n.darkMode)??!1?"hsl(222.2, 84%, 4.9%)":"hsl(0, 0%, 100%)";this.iframe=document.createElement("iframe"),this.iframe.src="/cafe-hass/index.html",this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none",this.iframe.style.display="block",this.iframe.style.background=i,this.iframe.setAttribute("allow","clipboard-read *; clipboard-write *"),this.appendChild(this.iframe),this._messageHandler=r=>{var l;r.source===((l=this.iframe)==null?void 0:l.contentWindow)&&r.data&&r.data.type==="CAFE_TOGGLE_SIDEBAR"&&this.dispatchEvent(new Event("hass-toggle-menu",{bubbles:!0,composed:!0}))},window.addEventListener("message",this._messageHandler)}disconnectedCallback(){this.iframe&&(this.removeChild(this.iframe),this.iframe=null),window.hass=void 0,this._messageHandler&&(window.removeEventListener("message",this._messageHandler),this._messageHandler=void 0)}}customElements.get("cafe-panel")||customElements.define("cafe-panel",m);
var d=Object.defineProperty;var o=(i,s,e)=>s in i?d(i,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[s]=e;var r=(i,s,e)=>o(i,typeof s!="symbol"?s+"":s,e);class m extends HTMLElement{constructor(){super(...arguments);r(this,"_messageHandler");r(this,"_resizeHandler");r(this,"iframe",null);r(this,"_hass")}applyHeight(){const e=this.getBoundingClientRect().top;this.style.height=`calc(100vh - ${Math.max(0,e)}px)`}set hass(e){var a;this._hass=e,window.hass=e;const t=(a=this.iframe)==null?void 0:a.contentWindow;t!=null&&t.setHass&&t.setHass(e)}get hass(){return this._hass}connectedCallback(){var a,h;this.style.display="block",this.style.width="100%",this.style.position="relative",this.applyHeight();const t=((h=(a=this._hass)==null?void 0:a.themes)==null?void 0:h.darkMode)??!1?"hsl(222.2, 84%, 4.9%)":"hsl(0, 0%, 100%)";this.iframe=document.createElement("iframe"),this.iframe.src="/cafe-hass/index.html",this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none",this.iframe.style.display="block",this.iframe.style.background=t,this.iframe.setAttribute("allow","clipboard-read *; clipboard-write *"),this.appendChild(this.iframe),this._messageHandler=n=>{var l;n.source===((l=this.iframe)==null?void 0:l.contentWindow)&&n.data&&n.data.type==="CAFE_TOGGLE_SIDEBAR"&&this.dispatchEvent(new Event("hass-toggle-menu",{bubbles:!0,composed:!0}))},window.addEventListener("message",this._messageHandler),this._resizeHandler=()=>this.applyHeight(),window.addEventListener("resize",this._resizeHandler),requestAnimationFrame(this._resizeHandler)}disconnectedCallback(){this.iframe&&(this.removeChild(this.iframe),this.iframe=null),window.hass=void 0,this._messageHandler&&(window.removeEventListener("message",this._messageHandler),this._messageHandler=void 0),this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=void 0)}}customElements.get("cafe-panel")||customElements.define("cafe-panel",m);
//# sourceMappingURL=panel-wrapper.js.map
+1 -1
View File
@@ -25,7 +25,7 @@ DOMAIN = "ha_mcp_tools"
# in CI. The
# capability negotiation — not this version — gates each WS command (see
# ``websocket_api.CAPABILITIES``).
COMPONENT_VERSION = "2.1.0"
COMPONENT_VERSION = "2.1.1"
# Config-entry discriminator (``entry.data[CONF_ENTRY_TYPE]``). A missing value
# means "tools" so the pre-existing services entry keeps working across the
+1 -1
View File
@@ -22,5 +22,5 @@
"requirements": [
"ruamel.yaml>=0.18.0"
],
"version": "2.1.0"
"version": "2.1.1"
}
+35 -50
View File
@@ -29,7 +29,7 @@ mapping); the ``ha_auth`` bearer check + discovery documents mirror the add-on's
``auth_native.py`` + the ``ha_auth`` subset of ``oauth.py``; the ``legacy``
provider + its root ``/authorize`` + ``/token`` views live in
:mod:`oauth_legacy`, ported from the ``legacy`` subset of the add-on's
``oauth.py``. The seven RFC 8414 / RFC 9728 discovery views below are shared by
``oauth.py``. The six RFC 8414 / RFC 9728 discovery views below are shared by
``ha_auth``, ``legacy``, and ``none`` (which serves a distinct auto-approve
authorization-server document pointing at :mod:`oauth_autoapprove`'s endpoints)
— see :func:`active_auth_mode`.
@@ -387,39 +387,6 @@ def _none_mode_authorization_server_document(base: str) -> dict[str, Any]:
}
class _ProtectedResourceMetadataView(HomeAssistantView):
"""RFC 9728 Protected Resource Metadata."""
requires_auth = False
cors_allowed = True
url = f"{OAUTH_BASE}/protected-resource"
name = "ha_mcp_tools:oauth:protected-resource"
def __init__(self, hass: HomeAssistant) -> None:
"""Bind the view to the HA instance; liveness is resolved per request."""
self._hass = hass
async def get(self, request: web.Request) -> web.Response:
"""Serve the protected-resource document for the bearer-gated modes only.
SECURITY (#1976 review): this ANONYMOUS, fixed (guessable) path exposes
``resource: <base>/api/webhook/<id>``. In none mode the webhook id is the
SOLE credential, so serving it here would leak it to any unauthenticated
GET. Serve only for ``ha_auth``/``legacy`` (where the id is not a secret
and the 401 ``WWW-Authenticate`` pointer legitimately directs a client
here); 404 otherwise. The PATH-SCOPED well-known view still serves in none
mode — its caller must already know the id (it is a route parameter).
"""
if active_auth_mode(self._hass) not in (WEBHOOK_AUTH_HA, WEBHOOK_AUTH_LEGACY):
return _json_not_found()
webhook_id = _active_webhook_id(self._hass)
if webhook_id is None:
return _json_not_found()
return web.json_response(
_protected_resource_document(webhook_id, _build_base_url(request))
)
class _AuthorizationServerMetadataView(HomeAssistantView):
"""RFC 8414 Authorization Server Metadata.
@@ -450,12 +417,23 @@ class _AuthorizationServerMetadataView(HomeAssistantView):
class _WellKnownProtectedResourceView(HomeAssistantView):
"""RFC 9728 §3.1 path-scoped Protected Resource Metadata.
"""RFC 9728 §3.1 path-scoped Protected Resource Metadata — the ONLY
protected-resource document this integration serves.
Same document as :class:`_ProtectedResourceMetadataView`, served at the
well-known location derived from the webhook resource URL — claude.ai's
first fallback probe when the 401's ``resource_metadata`` pointer is
missing. The webhook id is a ROUTE PARAMETER (not baked into the path at
Served at the well-known location derived from the webhook resource URL
(``/.well-known/oauth-protected-resource/api/webhook/<id>``), which is also
where the webhook's 401 ``resource_metadata`` challenge points, and which is
claude.ai's first fallback probe when that pointer is missing.
SECURITY (#1976 review): there is deliberately NO fixed-path variant of this
document. A fixed, guessable path handed ``resource: <base>/api/webhook/<id>``
to any anonymous GET while ``ha_auth``/``legacy`` was on, and a later switch
back to ``none`` mode — where the webhook id is the SOLE credential —
promoted that already-published value into the credential. This view's
caller must already hold the id (it is a route parameter), so the document
discloses nothing in any mode.
The webhook id is a ROUTE PARAMETER (not baked into the path at
registration): a remove + re-add of the entry mints a new webhook id in the
same HA session, and the bound view must serve whichever id is currently
live (404 for any other). Standalone view (not a subclass of the plain
@@ -496,10 +474,11 @@ class _WellKnownAuthorizationServerMetadataView(_AuthorizationServerMetadataView
def _metadata_views(hass: HomeAssistant) -> list[HomeAssistantView]:
"""Build the seven discovery-document views, shared by ha_auth and legacy
(mode-agnostic — each view resolves the active mode per request)."""
"""Build the six discovery-document views, shared by ha_auth and legacy
(mode-agnostic — each view resolves the active mode per request): the
path-scoped protected-resource document, the authorization-server document,
and the four RFC 8414 / OIDC well-known authorization-server locations."""
views: list[HomeAssistantView] = [
_ProtectedResourceMetadataView(hass),
_AuthorizationServerMetadataView(hass),
_WellKnownProtectedResourceView(hass),
]
@@ -528,7 +507,7 @@ def _metadata_views(hass: HomeAssistant) -> list[HomeAssistantView]:
def _register_metadata_views(hass: HomeAssistant) -> None:
"""Register the seven discovery views at most once per HA session.
"""Register the six discovery views at most once per HA session.
aiohttp cannot unregister a bound view, so a reload / re-enable / re-add /
ha_auth<->legacy mode switch must all reuse the already-bound views — they
@@ -551,15 +530,21 @@ def _register_metadata_views(hass: HomeAssistant) -> None:
hass.data[_OAUTH_VIEWS_REGISTERED_KEY] = True
def _build_unauthorized_response(request: web.Request) -> web.Response:
def _build_unauthorized_response(request: web.Request, webhook_id: str) -> web.Response:
"""Build the 401 + ``WWW-Authenticate`` challenge MCP clients use to discover.
Per RFC 9728 §5.1 / MCP spec, the ``resource_metadata`` parameter points to
the protected-resource metadata URL where the client finds the authorization
server.
Per RFC 9728 §5.1 / MCP 2026-07-28 Authorization Server Discovery, the
``resource_metadata`` parameter points to the protected-resource metadata
URL where the client finds the authorization server.
"""
base = _build_base_url(request)
metadata_url = f"{base}{OAUTH_BASE}/protected-resource"
# RFC 9728 §3.1 path-scoped location. The pointer names the id, but this
# 401 is only produced on a request TO /api/webhook/<id>, so the caller
# already holds it; there is no fixed-path document to point at (see
# _WellKnownProtectedResourceView).
metadata_url = (
f"{base}/.well-known/oauth-protected-resource/api/webhook/{webhook_id}"
)
return web.Response(
status=401,
text="Unauthorized",
@@ -592,10 +577,10 @@ async def _check_webhook_auth(
if resource_server is not None and not await resource_server.validate_request(
request
):
return _build_unauthorized_response(request)
return _build_unauthorized_response(request, cfg["webhook_id"])
oauth_provider: LegacyOAuthProvider | None = cfg.get("oauth_provider")
if oauth_provider is not None and not oauth_provider.validate_bearer(request):
return _build_unauthorized_response(request)
return _build_unauthorized_response(request, cfg["webhook_id"])
return None
@@ -49,7 +49,7 @@ from __future__ import annotations
import logging
import secrets
from typing import TYPE_CHECKING, Any
from urllib.parse import urlparse
from urllib.parse import urlencode, urlparse
import aiohttp
from aiohttp import web
@@ -303,13 +303,23 @@ class AutoApproveAuthorizeView(HomeAssistantView):
if forward_id != client_id:
params.popall("client_id", None)
params["client_id"] = forward_id
import yarl
# Keep the browser hop relative, matching the token leg. Browsers cannot
# be made to send X-Forwarded-Host, so this is consistency rather than a
# vulnerability fix.
target = yarl.URL("/auth/authorize").with_query(params)
return web.Response(status=302, headers={"Location": str(target)})
# Percent-encode the query instead of handing the params to yarl: yarl
# legally leaves ":" and "/" literal inside query values (RFC 3986
# permits both in the query component), so a loopback client's callback
# forwards as ``redirect_uri=http://127.0.0.1:1234/callback``. Reverse
# proxies shipping a generic "block common exploits" ruleset -- Nginx
# Proxy Manager enables one per host with a checkbox -- match
# ``[a-zA-Z0-9_]=http://`` and answer 403 before core ever sees the
# request, stranding every native-app client behind such a proxy.
# Full encoding is semantically identical and survives those filters.
query = urlencode(list(params.items()))
target = f"/auth/authorize?{query}" if query else "/auth/authorize"
return web.Response(status=302, headers={"Location": target})
async def post(self, request: web.Request) -> web.Response:
"""Handle a legacy-mode consent submission on the scoped route."""
@@ -29,11 +29,11 @@
"title": "Nástroje souborů a YAML HA-MCP",
"description": "Nakonfigurujte privilegované služby pro úpravu souborů a YAML používané volitelnými nástroji souborů/YAML ha-mcp. Tato nastavení se také zobrazují v uživatelském rozhraní nastavení serveru ha-mcp a aplikují se okamžitě, bez restartu. Nepřepisovatelná úroveň zákazu stále blokuje citlivé cesty (např. .storage) a klíče hranice důvěry (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Další adresáře souborů",
"allowed_dirs": "Další cesta k souborům",
"extra_yaml_keys": "Další klíče pro zápis YAML"
},
"data_description": {
"allowed_dirs": "Adresáře vzhledem ke konfiguračnímu adresáři, každému je uděleno právo čtení a zápisu (např. pyscript). Průchod a položky mimo konfiguraci jsou zahozeny.",
"allowed_dirs": "Cesty relativní k adresáři konfigurace, včetně přesných názvů souborů, jako je sensor.yaml, nebo cesty pod /share, /media, /ssl a /backup. Každá položka má uděleno oprávnění pro čtení a zápis pro danou cestu a vše pod ní; každou cestu zadejte jako samostatnou položku seznamu. Adresářový posun (traversal) a jiné nepovolené cesty budou ignorovány.",
"extra_yaml_keys": "Klíče nejvyšší úrovně, které ha_config_set_yaml může zapisovat navíc k vestavěným, pro integrace s prioritou YAML v této instalaci (např. alert2). Klíče hranice důvěry jsou zahozeny."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP File & YAML Tools",
"description": "Konfiguriere die privilegierten Datei- und YAML-Bearbeitungsdienste, die von den opt-in Datei/YAML-Tools von ha-mcp verwendet werden. Diese Einstellungen erscheinen auch in der eigenen Einstellungs-UI des ha-mcp-Servers und werden live wirksam, ohne Neustart. Eine nicht überschreibbare Deny-Grenze blockiert weiterhin sensible Pfade (z. B. .storage) und Vertrauensgrenzen-Keys (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Zusätzliche Datei-Verzeichnisse",
"allowed_dirs": "Zusätzliche Dateipfade",
"extra_yaml_keys": "Zusätzliche YAML-Schreib-Keys"
},
"data_description": {
"allowed_dirs": "Verzeichnisse relativ zum Konfigurationsverzeichnis, jeweils mit Lese- und Schreibzugriff (z. B. pyscript). Traversal- und Einträge außerhalb des Konfig-Verzeichnisses werden verworfen.",
"allowed_dirs": "Pfade relativ zum Konfigurationsverzeichnis, einschließlich genauer Dateinamen wie sensor.yaml, oder Pfade unter /share, /media, /ssl und /backup. Jedem Eintrag wird Lese- und Schreibzugriff für diesen Pfad und alles darunter gewährt; gib jeden Pfad als separaten Listeneintrag an. Verzeichnistraversierung und andere nicht erlaubte Pfade werden verworfen.",
"extra_yaml_keys": "Top-Level-Keys, die ha_config_set_yaml zusätzlich zu den eingebauten schreiben darf, für YAML-first-Integrationen auf dieser Installation (z. B. alert2). Vertrauensgrenzen-Keys werden verworfen."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP Dosieraj & YAML Iloj",
"description": "Agordu la privilegiajn dosierajn kaj YAML-redaktajn servojn uzatajn de la laŭvolaj dosieraj/YAML-iloj de ha-mcp. Ĉi tiuj agordoj ankaŭ aperas en la propra agorda UI de la ha-mcp servilo kaj aplikiĝas tuj, sen rekomenco. Ne-superregebla malpermesa limo ankoraŭ blokas sentemajn vojojn (ekz. .storage) kaj fid-limajn ŝlosilojn (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Ekstraj dosierujoj",
"allowed_dirs": "Kromaj dosiervojoj",
"extra_yaml_keys": "Ekstraj YAML-skribaj ŝlosiloj"
},
"data_description": {
"allowed_dirs": "Dosierujoj rilataj al la agorda dosierujo, ĉiu kun legado kaj skribado permesita (ekz. pyscript). Trairo kaj ekster-agordaj eniroj estas forĵetitaj.",
"allowed_dirs": "Vojoj relative al la agorda dosierujo, inkluzive de ekzakta dosiernomo kiel sensor.yaml, aŭ vojoj sub /share, /media, /ssl, kaj /backup. Ĉiu eniro ricevas leg- kaj skrib-permeson por tiu vojo kaj ĉio sub ĝi; enigu ĉiun vojon kiel apartan listan eron. Trairado kaj aliaj nepermesitaj vojoj estas forigitaj.",
"extra_yaml_keys": "Ĉefnivelaj ŝlosiloj, kiujn ha_config_set_yaml povas skribi krom la enkonstruitaj, por YAML-unuaj integriĝoj en ĉi tiu instalaĵo (ekz. alert2). Fid-limaj ŝlosiloj estas forĵetitaj."
}
},
@@ -29,11 +29,11 @@
"title": "Herramientas de archivos y YAML de HA-MCP",
"description": "Configura los servicios privilegiados de edición de archivos y YAML que usan las herramientas opcionales de archivos/YAML de ha-mcp. Estos ajustes aparecen también en la propia interfaz de ajustes del servidor ha-mcp y se aplican en caliente, sin reiniciar. Un mínimo de denegación no anulable sigue bloqueando rutas sensibles (p. ej. .storage) y claves de la frontera de confianza (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Directorios de archivos adicionales",
"allowed_dirs": "Rutas de archivos adicionales",
"extra_yaml_keys": "Claves YAML de escritura adicionales"
},
"data_description": {
"allowed_dirs": "Directorios relativos al directorio de configuración, cada uno con permiso de lectura y escritura (p. ej. pyscript). Se descartan los recorridos de ruta y las entradas fuera de la configuración.",
"allowed_dirs": "Rutas relativas al directorio de configuración, incluidos nombres de archivo exactos como sensor.yaml, o rutas bajo /share, /media, /ssl y /backup. A cada entrada se le concede lectura y escritura para esa ruta y todo lo que esté debajo de ella; introduce cada ruta como un elemento de lista separado. Se descartarán los recorridos de directorios y otras rutas no permitidas.",
"extra_yaml_keys": "Claves de primer nivel que ha_config_set_yaml puede escribir además de las integradas, para integraciones basadas en YAML de esta instalación (p. ej. alert2). Las claves de la frontera de confianza se descartan."
}
},
@@ -29,11 +29,11 @@
"title": "Outils Fichier & YAML HA-MCP",
"description": "Configurez les services privilégiés d'édition de fichiers et de YAML utilisés par les outils fichier/YAML optionnels de ha-mcp. Ces paramètres apparaissent également dans l'interface de configuration du serveur ha-mcp et s'appliquent en direct, sans redémarrage. Un plancher de refus non contournable bloque toujours les chemins sensibles (ex. .storage) et les clés de limite de confiance (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Répertoires de fichiers supplémentaires",
"allowed_dirs": "Chemins de fichiers supplémentaires",
"extra_yaml_keys": "Clés d'écriture YAML supplémentaires"
},
"data_description": {
"allowed_dirs": "Répertoires relatifs au répertoire de configuration, chacun avec accès en lecture et écriture (ex. pyscript). Les traversées et les entrées hors du répertoire de configuration sont ignorées.",
"allowed_dirs": "Chemins relatifs au répertoire de configuration, incluant les noms de fichiers exacts tels que sensor.yaml, ou les chemins sous /share, /media, /ssl et /backup. Chaque entrée bénéficie d'un accès en lecture et en écriture pour ce chemin et tout ce qu'il contient ; saisissez chaque chemin comme un élément de liste séparé. Les parcours de répertoires (traversal) et autres chemins non autorisés sont ignorés.",
"extra_yaml_keys": "Clés de premier niveau que ha_config_set_yaml peut écrire en plus de celles intégrées, pour les intégrations YAML-first de cette installation (ex. alert2). Les clés de limite de confiance sont ignorées."
}
},
@@ -29,11 +29,11 @@
"title": "Strumenti file e YAML di HA-MCP",
"description": "Configura i servizi privilegiati di modifica di file e YAML usati dagli strumenti file/YAML opzionali di ha-mcp. Queste impostazioni compaiono anche nell'interfaccia delle impostazioni del server ha-mcp e si applicano subito, senza riavvio. Una soglia di divieto non aggirabile continua a bloccare i percorsi sensibili (per esempio .storage) e le chiavi del confine di fiducia (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Directory di file aggiuntive",
"allowed_dirs": "Percorsi file extra",
"extra_yaml_keys": "Chiavi YAML scrivibili aggiuntive"
},
"data_description": {
"allowed_dirs": "Directory relative alla directory di configurazione, ciascuna con permesso di lettura e scrittura (per esempio pyscript). I percorsi che risalgono l'albero e le voci fuori dalla configurazione vengono scartati.",
"allowed_dirs": "Percorsi relativi alla directory di configurazione, inclusi nomi di file esatti come sensor.yaml, o percorsi sotto /share, /media, /ssl e /backup. A ciascuna voce viene concesso l'accesso in lettura e scrittura per quel percorso e per tutto ciò che si trova al di sotto; inserisci ogni percorso come elemento di elenco separato. I percorsi di attraversamento e altri non consentiti vengono scartati.",
"extra_yaml_keys": "Chiavi di primo livello che ha_config_set_yaml può scrivere oltre a quelle integrate, per le integrazioni basate su YAML di questa installazione (per esempio alert2). Le chiavi del confine di fiducia vengono scartate."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP 파일 및 YAML 도구",
"description": "ha-mcp의 선택형 파일/YAML 도구가 사용하는, 권한이 필요한 파일 및 YAML 편집 서비스를 구성합니다. 이 설정은 ha-mcp 서버 자체의 설정 UI에도 나타나며 다시 시작하지 않아도 즉시 적용됩니다. 재정의할 수 없는 기본 차단 규칙은 민감한 경로(예: .storage)와 신뢰 경계 키(homeassistant, http, frontend, lovelace)를 계속 차단합니다.",
"data": {
"allowed_dirs": "추가 파일 디렉터리",
"allowed_dirs": "추가 파일 경로",
"extra_yaml_keys": "추가 YAML 쓰기 허용 키"
},
"data_description": {
"allowed_dirs": "설정 디렉터리 기준 상대 디렉터리이며 각각 읽기와 쓰기가 허용됩니다(예: pyscript). 경로 탈출과 설정 디렉터리 밖의 항목은 무시됩니다.",
"allowed_dirs": "sensor.yaml 같은 정확한 파일 이름을 포함하여 config 디렉토리 상대 경로, 또는 /share, /media, /ssl, /backup 아래의 경로입니다. 각 항목에는 해당 경로 및 그 하위 경로에 대한 읽기 및 쓰기 권한이 부여되며, 각 경로는 별도의 목록 항목으로 입력하세요. 상위 디렉토리 순회 및 허용되지 않는 경로는 제외됩니다.",
"extra_yaml_keys": "이 설치본에서 YAML 우선으로 동작하는 통합 구성요소(예: alert2)를 위해, ha_config_set_yaml이 기본 허용 키 외에 추가로 쓸 수 있는 최상위 키입니다. 신뢰 경계 키는 무시됩니다."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP Bestands- & YAML-hulpmiddelen",
"description": "Configureer de geprivilegieerde bestands- en YAML-bewerkingsservices die worden gebruikt door de opt-in bestands-/YAML-hulpmiddelen van ha-mcp. Deze instellingen verschijnen ook in de eigen instellingen-UI van de ha-mcp server en worden direct toegepast, zonder herstart. Een niet-overbrugbare blokkade weigert nog steeds gevoelige paden (bijv. .storage) en trust-boundary sleutels (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Extra bestandsmappen",
"allowed_dirs": "Extra bestandspaden",
"extra_yaml_keys": "Extra YAML-schrijfsleutels"
},
"data_description": {
"allowed_dirs": "Mappen relatief aan de configuratiemap, elk met lees- en schrijfrechten (bijv. pyscript). Traversale en buiten-configuratie ingangen worden genegeerd.",
"allowed_dirs": "Paden relatief ten opzichte van deconfiguratiemap, inclusief exacte bestandsnamen zoals sensor.yaml, of paden onder /share, /media, /ssl en /backup. Elk opgegeven pad en alles daaronder krijgt lees- en schrijfrechten; voer elk pad in als een apart lijstitem. Padtraversatie en andere niet-toegestane paden worden genegeerd.",
"extra_yaml_keys": "Top-level sleutels die ha_config_set_yaml mag schrijven naast de ingebouwde, voor YAML-first integraties op deze installatie (bijv. alert2). Trust-boundary sleutels worden genegeerd."
}
},
@@ -29,11 +29,11 @@
"title": "Narzędzia plików i YAML HA-MCP",
"description": "Skonfiguruj uprzywilejowane usługi edycji plików i YAML używane przez opcjonalne narzędzia plików/YAML ha-mcp. Te ustawienia pojawiają się również w interfejsie ustawień serwera ha-mcp i są stosowane na żywo, bez restartu. Nienadpisywalna blokada nadal blokuje wrażliwe ścieżki (np. .storage) i klucze graniczne zaufania (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Dodatkowe katalogi plików",
"allowed_dirs": "Dodatkowe ścieżki plików",
"extra_yaml_keys": "Dodatkowe klucze zapisu YAML"
},
"data_description": {
"allowed_dirs": "Katalogi względem katalogu konfiguracyjnego, każdy z uprawnieniami do odczytu i zapisu (np. pyscript). Wpisy poza konfiguracją i przechodzenie przez katalogi są odrzucane.",
"allowed_dirs": "Ścieżki względne do katalogu konfiguracyjnego, w tym dokładne nazwy plików, takie jak sensor.yaml, lub ścieżki w katalogach /share, /media, /ssl i /backup. Każdy wpis otrzymuje uprawnienia do odczytu i zapisu dla danej ścieżki oraz wszystkiego, co się w niej znajduje; wpisz każdą ścieżkę jako oddzielny element listy. Przechodzenie w górę drzewa katalogów (traversal) i inne niedozwolone ścieżki są odrzucane.",
"extra_yaml_keys": "Klucze najwyższego poziomu, które ha_config_set_yaml może zapisywać oprócz wbudowanych, dla integracji opartych na YAML w tej instalacji (np. alert2). Klucze graniczne zaufania są odrzucane."
}
},
@@ -29,11 +29,11 @@
"title": "Файловые инструменты и инструменты YAML HA-MCP",
"description": "Настройка привилегированных служб для работы с файлами и редактирования YAML, которые используются отключёнными по умолчанию файловыми инструментами и инструментами YAML в ha-mcp. Эти параметры также отображаются в собственном интерфейсе настроек сервера ha-mcp и применяются сразу, без перезапуска. Неотключаемый базовый запрет по-прежнему блокирует чувствительные пути (например, .storage) и ключи границы доверия (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Дополнительные файловые каталоги",
"allowed_dirs": "Дополнительные пути к файлам",
"extra_yaml_keys": "Дополнительные YAML-ключи для записи"
},
"data_description": {
"allowed_dirs": "Каталоги относительно каталога конфигурации, каждому предоставляется доступ на чтение и запись (например, pyscript). Записи с обходом пути и вне каталога конфигурации отбрасываются.",
"allowed_dirs": "Пути относительно каталога конфигурации, включая точные имена файлов, такие как sensor.yaml, или пути в директориях /share, /media, /ssl и /backup. Для каждого элемента предоставляется доступ на чтение и запись к самому пути и всему, что находится в нем; вводите каждый путь как отдельный элемент списка. Обход каталогов и другие запрещенные пути отбрасываются.",
"extra_yaml_keys": "Верхнеуровневые ключи, которые ha_config_set_yaml может записывать вдобавок к встроенным, — для YAML-ориентированных интеграций на этой установке (например, alert2). Ключи границы доверия отбрасываются."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP Fil- & YAML-verktyg",
"description": "Konfigurera de privilegierade fil- och YAML-redigeringstjänsterna som används av ha-mcp:s valfria fil-/YAML-verktyg. Dessa inställningar visas också i ha-mcp-serverns eget inställningsgränssnitt och tillämpas direkt, utan omstart. En icke-överskridbar spärr blockerar fortfarande känsliga sökvägar (t.ex. .storage) och nycklar för förtroendegränser (homeassistant, http, frontend, lovelace).",
"data": {
"allowed_dirs": "Extra filkataloger",
"allowed_dirs": "Extra filvägar",
"extra_yaml_keys": "Extra YAML-skrivnycklar"
},
"data_description": {
"allowed_dirs": "Kataloger i förhållande till konfigurationskatalogen, var och en beviljas läs- och skrivrättigheter (t.ex. pyscript). Genomgång och poster utanför konfigurationen ignoreras.",
"allowed_dirs": "Sökvägar relativt konfigurationskatalogen, inklusive exakta filnamn som sensor.yaml, eller sökvägar under /share, /media, /ssl och /backup. Varje post ges läs- och skrivbehörighet för den sökvägen och allt under den; ange varje sökväg som ett separat listobjekt. Sökordsbläddring (traversal) och andra otillåtna sökvägar tas bort.",
"extra_yaml_keys": "Toppnivånycklar som ha_config_set_yaml får skriva utöver de inbyggda, för YAML-först-integrationer på denna installation (t.ex. alert2). Nycklar för förtroendegränser ignoreras."
}
},
@@ -29,11 +29,11 @@
"title": "HA-MCP 文件与 YAML 工具",
"description": "配置 ha-mcp 可选文件/YAML 工具所使用的特权文件和 YAML 编辑服务。这些设置也会出现在 ha-mcp 服务器自身的设置界面中,并实时生效,无需重启。不可覆盖的拒绝底线仍会阻止敏感路径(例如 .storage)和信任边界键(homeassistant、http、frontend、lovelace)。",
"data": {
"allowed_dirs": "额外的文件目录",
"allowed_dirs": "额外文件路径",
"extra_yaml_keys": "额外的 YAML 可写键"
},
"data_description": {
"allowed_dirs": "相对于配置目录的目录,每个目录都授予读写权限(例如 pyscript)。路径穿越以及配置目录之外的条目会被丢弃。",
"allowed_dirs": "相对于配置目录的路径,包括诸如 sensor.yaml 的确切文件名,或 /share、/media、/ssl 和 /backup 下的路径。每个条目均被授予对该路径及其中所有内容的读写权限;每个路径请作为一个单独的列表项输入。将丢弃目录遍历及其他不允许的路径。",
"extra_yaml_keys": "除内置键外,ha_config_set_yaml 还可写入的顶层键,适用于本安装中以 YAML 为主的集成(例如 alert2)。信任边界键会被丢弃。"
}
},
+92 -17
View File
@@ -5647,11 +5647,23 @@ async def _call_service_prep(
domain, so it holds no matter which path reaches this function.
2. **ServiceNotFound** before dispatch, so an unknown service is a clean
``SERVICE_NOT_FOUND`` and never a landed-but-unreported write.
3. Pre-state capture for each ``entity_id`` (a synchronous in-memory read).
3. Pre-state capture for each ``entity_id`` (a synchronous in-memory read). A
target whose captured state is ``None`` — absent from the state machine, so
it structurally cannot ever emit a ``state_changed`` for this dispatch — is
excluded from the wait entirely (:func:`_confirmable_entity_ids`); waiting on
it would only burn the full ``timeout`` to learn what the pre-state already
proved. An ``"unavailable"`` target stays IN the wait (unlike a nonexistent
one, it can legitimately reconnect and transition mid-dispatch — excluding it
too would silently miss that), so ``should_confirm`` itself stays keyed off
the full ``entity_ids`` (intent to confirm), not the narrower confirmable
subset — a ``validate_first=False`` caller that intentionally skips the
not-found/unavailable error mapping still needs ``partial=True`` on a
genuinely-excluded target, not a bare unconfirmed-but-not-partial result.
4. Register the expected-aware ``EVENT_STATE_CHANGED`` waiter BEFORE the dispatch
(D5) so a fast entity's event can't arrive before the listener exists. The
waiter confirms only on reaching the server's ``expected_state`` hint (skipping
intermediate/noise events); a ``None`` hint keeps any-first-event confirmation.
(D5) so a fast entity's event can't arrive before the listener exists, scoped
to only the confirmable targets from step 3. The waiter confirms only on
reaching the server's ``expected_state`` hint (skipping intermediate/noise
events); a ``None`` hint keeps any-first-event confirmation.
5. Fire exactly ONE ``async_call`` (``blocking=True``); flip ``dispatched``
immediately after so a post-dispatch problem is never retried as a failed
call (D3/D9).
@@ -5695,22 +5707,32 @@ async def _call_service_prep(
wait = msg.get("wait", True)
timeout = msg.get("timeout", CALL_SERVICE_DEFAULT_TIMEOUT)
return_response = msg.get("return_response", False)
should_confirm = bool(wait and entity_ids)
# The server's confirmation HINT (``_SERVICE_TO_STATE.get(service)``), applied to
# every confirmation target. Absent / None keeps any-first-event confirmation.
expected_state = msg.get("expected_state")
expected_by_entity = dict.fromkeys(entity_ids, expected_state)
# should_confirm stays keyed off the full entity_ids (intent to confirm) — see
# the docstring's step 3 for why this must NOT narrow to the confirmable subset.
should_confirm = bool(wait and entity_ids)
# 3. Pre-state capture (synchronous in-memory reads, guarded against drift).
pre = {eid: _state_as_dict(_state_get(hass, eid)) for eid in entity_ids}
# Only a target whose pre-dispatch state proves it can possibly report a
# confirming event is worth actually waiting on (see
# ``_confirmable_entity_ids``) — a target absent from the state machine can
# never emit one, so waiting on it is certain to burn the full ``timeout`` for
# no new information; the server reads the certain ``None`` old_state straight
# off the transition instead.
confirmable_entity_ids = _confirmable_entity_ids(entity_ids, pre)
# 4. Register-before-fire (D5): only when there is something to confirm.
# 4. Register-before-fire (D5): only when there is something worth confirming.
evt: Any = None
captured: dict[str, Any] = {}
unsub: Any = None
if should_confirm:
if should_confirm and confirmable_entity_ids:
evt, captured, unsub = _register_transition_waiter(
hass, set(entity_ids), expected_by_entity
hass, set(confirmable_entity_ids), expected_by_entity
)
# 5. Dispatch exactly once. 6. Immediate-match + bounded wait. 7. Build the diff.
@@ -5729,9 +5751,13 @@ async def _call_service_prep(
return_response=return_response,
)
dispatched = True
if should_confirm:
# ``evt`` is None when nothing was worth waiting on (should_confirm was
# True but every target was excluded as unconfirmable) — there is then
# nothing that could ever confirm, so skip the wait outright rather than
# awaiting an event that was never registered to fire.
if should_confirm and evt is not None:
await _await_confirmation(
hass, entity_ids, expected_by_entity, captured, evt, timeout
hass, confirmable_entity_ids, expected_by_entity, captured, evt, timeout
)
result = _build_call_service_result(
hass,
@@ -5764,6 +5790,26 @@ async def _call_service_prep(
return {"result": result}
def _confirmable_entity_ids(entity_ids: list[str], pre: Mapping[str, Any]) -> list[str]:
"""Targets whose pre-dispatch state proves they can possibly confirm.
A target absent from the state machine (``pre[eid] is None``) can never emit a
confirming ``state_changed`` for this dispatch — HA no-ops a service call for
an entity id that matches nothing, and nothing will register that id mid-call
either. Excluding it from the wait lets the server read the certain outcome
straight off the transition's ``None`` ``old_state`` instead of burning the
full timeout to learn nothing new.
Deliberately NOT excluded: a target whose captured state is ``"unavailable"``.
Unlike a nonexistent id, an unavailable entity can legitimately reconnect and
transition during the blocking dispatch (the very case ``ENTITY_UNAVAILABLE``
exists to distinguish from a real failure would itself go undetected if the
listener were never registered) — so it stays in the wait and is judged by
whether it actually confirmed, not excluded upfront.
"""
return [eid for eid in entity_ids if pre.get(eid) is not None]
def _guard_call_service_target(hass: HomeAssistant, domain: str, service: str) -> None:
"""Pre-dispatch refusals for ``call_service`` — raise BEFORE any dispatch.
@@ -5953,6 +5999,9 @@ def _build_call_service_result(
_call_service_transition(eid, pre.get(eid), _post_state(hass, eid, captured))
for eid in entity_ids
]
# Against the FULL entity_ids, not just the confirmable subset: an excluded
# (nonexistent) target can never land in captured, so this naturally stays
# False whenever one is present — exactly right, since it never confirmed.
confirmed = bool(should_confirm and set(entity_ids) <= set(captured))
result: dict[str, Any] = {
"domain": domain,
@@ -6155,19 +6204,36 @@ def _bulk_op_record(
``pre`` is the synchronous in-memory pre-state per target; ``expected_by_entity``
maps every target to this op's confirmation hint (``_SERVICE_TO_STATE``) so the
waiter + immediate-match key off it; ``dispatched`` / ``error`` / ``response``
start empty and are filled during dispatch; ``should_confirm`` is true only when
the batch is waiting AND this op names targets to confirm.
start empty and are filled during dispatch. ``confirmable_entity_ids`` excludes
ONLY a target whose captured pre-state is ``None`` (nonexistent) — it can never
emit a confirming event, so it is never worth the shared wait (see
``_confirmable_entity_ids``). Deliberately NOT excluded from it: a target
already ``"unavailable"``, which can legitimately reconnect and confirm
mid-dispatch. ``should_confirm`` stays intent-level (``bool(wait and
entity_ids)`` — the FULL list, not the confirmable subset): a
``validate_first=False`` caller that skips the not-found/unavailable error
mapping still needs ``partial=True`` on a genuinely-excluded target, not a
bare unconfirmed-but-not-partial result.
"""
entity_ids = list(op.get("entity_ids") or [])
expected_state = op.get("expected_state")
pre = {eid: _state_as_dict(_state_get(hass, eid)) for eid in entity_ids}
confirmable_entity_ids = _confirmable_entity_ids(entity_ids, pre)
return {
"domain": op["domain"],
"service": op["service"],
"service_data": op.get("service_data") or {},
"entity_ids": entity_ids,
"confirmable_entity_ids": confirmable_entity_ids,
"expected_by_entity": dict.fromkeys(entity_ids, expected_state),
# Intent-level (full entity_ids), NOT the confirmable subset — mirrors
# ``_call_service_prep``'s should_confirm: a validate_first=False caller
# that intentionally skips the not-found/unavailable error mapping still
# needs partial=True on a genuinely-excluded target, not a bare
# unconfirmed-but-not-partial result. confirmable_entity_ids scopes ONLY
# which targets are actually worth registering a listener / waiting for.
"should_confirm": bool(wait and entity_ids),
"pre": {eid: _state_as_dict(_state_get(hass, eid)) for eid in entity_ids},
"pre": pre,
"evt": None,
"captured": {},
"dispatched": False,
@@ -6210,9 +6276,9 @@ def _bulk_register_all(hass: HomeAssistant, ops: list[dict[str, Any]]) -> list[A
unsubs: list[Any] = []
try:
for op in ops:
if op["should_confirm"]:
if op["should_confirm"] and op["confirmable_entity_ids"]:
evt, captured, unsub = _register_transition_waiter(
hass, set(op["entity_ids"]), op["expected_by_entity"]
hass, set(op["confirmable_entity_ids"]), op["expected_by_entity"]
)
op["evt"] = evt
op["captured"] = captured
@@ -6267,7 +6333,10 @@ def _bulk_match_immediate(hass: HomeAssistant, ops: list[dict[str, Any]]) -> Non
for op in ops:
if op["should_confirm"] and op["dispatched"]:
_match_immediate(
hass, op["entity_ids"], op["expected_by_entity"], op["captured"]
hass,
op["confirmable_entity_ids"],
op["expected_by_entity"],
op["captured"],
)
@@ -6289,7 +6358,10 @@ async def _bulk_wait_all(ops: list[dict[str, Any]], timeout: float) -> None:
for op in ops
if op["should_confirm"]
and op["dispatched"]
and not (set(op["entity_ids"]) <= set(op["captured"]))
# evt is None when nothing was worth waiting on for this op (every
# target was excluded as unconfirmable) — nothing could ever set it.
and op["evt"] is not None
and not (set(op["confirmable_entity_ids"]) <= set(op["captured"]))
]
if not waiters:
return
@@ -6330,6 +6402,9 @@ def _build_bulk_op_result(hass: HomeAssistant, op: Mapping[str, Any]) -> dict[st
)
for eid in entity_ids
]
# Against the FULL entity_ids, not just the confirmable subset: an excluded
# (nonexistent) target can never land in captured, so this naturally stays
# False whenever one is present — exactly right, since it never confirmed.
confirmed = bool(should_confirm and dispatched and set(entity_ids) <= set(captured))
result: dict[str, Any] = {
"domain": op["domain"],
@@ -1,63 +1,63 @@
function t(t,e,i,o){var n,a=arguments.length,s=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,i,s):n(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s}"function"==typeof SuppressedError&&SuppressedError;
function t(t,e,i,o){var a,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(n<3?a(s):n>3?a(e,i,s):a(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}"function"==typeof SuppressedError&&SuppressedError;
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const e=globalThis,i=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;let a=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&n.set(e,t))}return t}toString(){return this.cssText}};const s=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new a(i,t,o)},r=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(e)})(t):t
const e=globalThis,i=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new WeakMap;let n=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&a.set(e,t))}return t}toString(){return this.cssText}};const s=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new n(i,t,o)},r=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,o))(e)})(t):t
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,{is:l,defineProperty:c,getOwnPropertyDescriptor:d,getOwnPropertyNames:h,getOwnPropertySymbols:u,getPrototypeOf:m}=Object,p=globalThis,_=p.trustedTypes,g=_?_.emptyScript:"",f=p.reactiveElementPolyfillSupport,b=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:n}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const a=o?.call(this);n.call(this,e),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...h(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$ES??=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$ES?.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(i)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of o){const o=document.createElement("style"),n=e.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=i.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$ES?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$ES?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:v).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=o,this[o]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,n){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??y)(o?n:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],iLine truncated
*/,{is:l,defineProperty:c,getOwnPropertyDescriptor:d,getOwnPropertyNames:h,getOwnPropertySymbols:u,getPrototypeOf:p}=Object,m=globalThis,_=m.trustedTypes,f=_?_.emptyScript:"",g=m.reactiveElementPolyfillSupport,b=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),m.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:a}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const n=o?.call(this);a?.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...h(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(i)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of o){const o=document.createElement("style"),a=e.litNonce;void 0!==a&&o.setAttribute("nonce",a),o.textContent=i.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const a=(void 0!==i.converter?.toAttribute?i.converter:v).toAttribute(e,i.type);this._$Em=t,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=o;const n=a.fromAttribute(e,t.type);this[o]=n??this._$Ej?.get(o)??n,this._$Em=null}}requestUpdate(t,e,i,o=!1,a){if(void 0!==t){const n=this.constructor;if(!1===o&&(a=this[t]),i??=n.getPropertyOptions(t),!((i.hasChanged??y)(a,e)||i.useDefault&&i.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:a},n){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==a||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scLine truncated
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const k=globalThis,T=k.trustedTypes,S=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,C="?"+D,A=`<${C}>`,P=document,E=()=>P.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,z="[ \t\n\f\r]",O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,H=/>/g,R=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,N=/"/g,F=/^(?:script|style|textarea|title)$/i,W=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),B=W(1),j=W(2),U=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),q=new WeakMap,Z=P.createTreeWalker(P,129);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}const K=(t,e)=>{const i=t.length-1,o=[];let n,a=2===e?"<svg>":"",s=O;for(let e=0;e<i;e++){const i=t[e];let r,l,c=-1,d=0;for(;d<i.length&&(s.lastIndex=d,l=s.exec(i),null!==l);)d=s.lastIndex,s===O?"!--"===l[1]?s=V:void 0!==l[1]?s=H:void 0!==l[2]?(F.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=R):void 0!==l[3]&&(s=R):s===R?">"===l[0]?(s=n??O,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?R:'"'===l[3]?N:I):s===N||s===I?s=R:s===V||s===H?s=O:(s=R,n=void 0);const h=s===R&&t[e+1].startsWith("/>")?" ":"";a+=s===O?i+A:c>=0?(o.push(r),i.slice(0,c)+M+i.slice(c)+D+h):i+D+(-2===c?e:h)}return[X(t,a+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,a=0;const s=t.length-1,r=this.parts,[l,c]=K(t,e);if(this.el=G.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Z.nextNode())&&r.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(M)){const e=c[a++],i=o.getAttribute(t).split(D),s=/([.?@])?(.*)/.exec(e);r.push({type:1,index:n,name:s[2],strings:i,ctor:"."===s[1]?it:"?"===s[1]?ot:"@"===s[1]?nt:et}),o.removeAttribute(t)}else t.startsWith(D)&&(r.push({type:6,index:n}),o.removeAttribute(t));if(F.test(o.tagName)){const t=o.textContent.split(D),e=t.length-1;if(e>0){o.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],E()),Z.nextNode(),r.push({type:2,index:++n});o.append(t[e],E())}}}else if(8===o.nodeType)if(o.data===C)r.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(D,t+1));)r.push({type:7,index:n}),t+=D.length-1}n++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){if(e===U)return e;let n=void 0!==o?i._$Co?.[o]:i._$Cl;const a=L(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),void 0===a?n=void 0:(n=new a(t),n._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=n:i._$Cl=n),void 0!==n&&(e=Q(t,n._$AS(t,e.values),n,o)),e}class J{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??P).importNode(e,!0);Z.currentNode=o;let n=Z.nextNode(),a=0,s=0,r=i[0];for(;void 0!==r;){if(a===r.index){let e;2===r.type?e=new tt(n,n.nextSibling,this,t):1===r.type?e=new r.ctor(n,r.name,r.strings,this,t):6===r.type&&(e=new at(n,this,t)),this._$AV.push(e),r=i[++s]}a!==r?.index&&(n=Z.nextNode(),a++)}return Z.currentNode=P,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),L(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>$(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=G.createElement(X(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new J(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}T(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new tt(this.k(E()),this.k(E()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){foLine truncated
const k=globalThis,S=k.trustedTypes,T=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+D,A=`<${C}>`,P=document,E=()=>P.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,z="[ \t\n\f\r]",O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,H=/>/g,I=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,F=/"/g,N=/^(?:script|style|textarea|title)$/i,j=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),W=j(1),B=j(2),U=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),q=new WeakMap,Z=P.createTreeWalker(P,129);function X(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(e):e}const K=(t,e)=>{const i=t.length-1,o=[];let a,n=2===e?"<svg>":3===e?"<math>":"",s=O;for(let e=0;e<i;e++){const i=t[e];let r,l,c=-1,d=0;for(;d<i.length&&(s.lastIndex=d,l=s.exec(i),null!==l);)d=s.lastIndex,s===O?"!--"===l[1]?s=V:void 0!==l[1]?s=H:void 0!==l[2]?(N.test(l[2])&&(a=RegExp("</"+l[2],"g")),s=I):void 0!==l[3]&&(s=I):s===I?">"===l[0]?(s=a??O,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?I:'"'===l[3]?F:R):s===F||s===R?s=I:s===V||s===H?s=O:(s=I,a=void 0);const h=s===I&&t[e+1].startsWith("/>")?" ":"";n+=s===O?i+A:c>=0?(o.push(r),i.slice(0,c)+M+i.slice(c)+D+h):i+D+(-2===c?e:h)}return[X(t,n+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let a=0,n=0;const s=t.length-1,r=this.parts,[l,c]=K(t,e);if(this.el=G.createElement(l,i),Z.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=Z.nextNode())&&r.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(M)){const e=c[n++],i=o.getAttribute(t).split(D),s=/([.?@])?(.*)/.exec(e);r.push({type:1,index:a,name:s[2],strings:i,ctor:"."===s[1]?it:"?"===s[1]?ot:"@"===s[1]?at:et}),o.removeAttribute(t)}else t.startsWith(D)&&(r.push({type:6,index:a}),o.removeAttribute(t));if(N.test(o.tagName)){const t=o.textContent.split(D),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],E()),Z.nextNode(),r.push({type:2,index:++a});o.append(t[e],E())}}}else if(8===o.nodeType)if(o.data===C)r.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(D,t+1));)r.push({type:7,index:a}),t+=D.length-1}a++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){if(e===U)return e;let a=void 0!==o?i._$Co?.[o]:i._$Cl;const n=L(e)?void 0:e._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),void 0===n?a=void 0:(a=new n(t),a._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=a:i._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,o)),e}class J{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??P).importNode(e,!0);Z.currentNode=o;let a=Z.nextNode(),n=0,s=0,r=i[0];for(;void 0!==r;){if(n===r.index){let e;2===r.type?e=new tt(a,a.nextSibling,this,t):1===r.type?e=new r.ctor(a,r.name,r.strings,this,t):6===r.type&&(e=new nt(a,this,t)),this._$AV.push(e),r=i[++s]}n!==r?.index&&(a=Z.nextNode(),n++)}return Z.currentNode=P,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),L(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>$(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=G.createElement(X(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new J(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const a of t)o===e.length?e.push(i=new tt(this.O(E()),this.O(E()),this,this.options)):i=e[o],i._$AI(a),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$Line truncated
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let lt=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let a=o._$litPart$;if(void 0===a){const t=i?.renderBefore??null;o._$litPart$=a=new tt(e.insertBefore(E(),t),t,void 0,i??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};lt._$litElement$=!0,lt.finalized=!0,rt.litElementHydrateSupport?.({LitElement:lt});const ct=rt.litElementPolyfillSupport;ct?.({LitElement:lt}),(rt.litElementVersions??=[]).push("4.2.2");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
class rt extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=i?.renderBefore??null;o._$litPart$=n=new tt(e.insertBefore(E(),t),t,void 0,i??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}}rt._$litElement$=!0,rt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:rt});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:rt}),(globalThis.litElementVersions??=[]).push("4.0.1");
const dt=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,ht={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},ut=(t=ht,e,i)=>{const{kind:o,metadata:a}=i;let n=globalThis.litPropertyMetadata.get(a);if(void 0===n&&globalThis.litPropertyMetadata.set(a,n=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const a=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,a,t,!0,i)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const a=this[o];e.call(this,i),this.requestUpdate(o,a,t,!0,i)}}throw Error("Unsupported decorator location: "+o)};function pt(t){return(e,i)=>"object"==typeof i?ut(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/}function mt(t){return pt({...t,state:!0,attribute:!1})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const ct=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/,dt={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},ht=(t=dt,e,i)=>{const{kind:o,metadata:n}=i;let a=globalThis.litPropertyMetadata.get(n);if(void 0===a&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const n=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if("setter"===o){const{name:o}=i;return function(i){const n=this[o];e.call(this,i),this.requestUpdate(o,n,t)}}throw Error("Unsupported decorator location: "+o)};function ut(t){return(e,i)=>"object"==typeof i?ht(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
*/
function _t(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/}function mt(t){return ut({...t,state:!0,attribute:!1})}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const pt=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i)
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/;function _t(t,e){return(i,o,n)=>{const a=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:s}="object"==typeof o?i:n??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return pt(i,o,{get(){if(e){let e=t.call(this);return void 0===e&&(e=a(this),s.call(this,e)),e}return a(this)}})}return pt(i,o,{get(){return a(this)}})}}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const gt=1;class ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
*/const ft=1;class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const bt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends ft{constructor(t){if(super(t),t.type!==gt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return U}});var vt="M6.59,0.66C8.93,-1.15 11.47,1.06 12.04,4.5C12.47,4.5 12.89,4.62 13.27,4.84C13.79,4.24 14.25,3.42 14.07,2.5C13.65,0.35 16.06,-1.39 18.35,1.58C20.16,3.92 17.95,6.46 14.5,7.03C14.5,7.46 14.39,7.89 14.16,8.27C14.76,8.78 15.58,9.24 16.5,9.06C18.63,8.64 20.38,11.04 17.41,13.34C15.07,15.15 12.53,12.94 11.96,9.5C11.53,9.5 11.11,9.37 10.74,9.15C10.22,9.75 9.75,10.58 9.93,11.5C10.35,13.64 7.94,15.39 5.65,12.42C3.83,10.07 6.05,7.53 9.5,6.97C9.5,6.54 9.63,6.12 9.85,5.74C9.25,5.23 8.43,4.76 7.5,4.94C5.37,5.36 3.62,2.96 6.59,0.66M5,16H7A2,2 0 0,1 9,18V24H7V22H5V24H3V18A2,2 0 0,1 5,16M5,18V20H7V18H5M12.93,16H15L12.07,24H10L12.93,16M18,16H21V18H18V22H21V24H18A2,2 0 0,1 16,22V18A2,2 0 0,1 18,16Z",yt="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M11,15H13V17H11V15M11,7H13V13H11V7",wt="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",xt="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",kt="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",Tt="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",St="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",Mt="M5,2V13H8V22L15,10H11L15,2M17,15H19V17H17V15M17,7H19V13H17V7Z",Dt="M8.5 4.5L5.4 9.5L8.5 14.7L5.2 20.5L3.4 19.6L6.1 14.7L3 9.5L6.7 3.6L8.5 4.5M14.7 4.4L11.6 9.5L14.7 14.5L11.4 20.3L9.6 19.4L12.3 14.5L9.2 9.5L12.9 3.5L14.7 4.4M21 4.4L17.9 9.5L21 14.5L17.7 20.3L15.9 19.4L18.6 14.5L15.5 9.5L19.2 3.5L21 4.4",Ct="M12,3L2,12H5V20H19V12H22L12,3M12,8.75A2.25,2.25 0 0,1 14.25,11A2.25,2.25 0 0,1 12,13.25A2.25,2.25 0 0,1 9.75,11A2.25,2.25 0 0,1 12,8.75M12,15C13.5,15 16.5,15.75 16.5,17.25V18H7.5V17.25C7.5,15.75 10.5,15 12,15Z",At="M13 9H11V7H13V9M13 17H11V11H13V17M5 3H19C20.1 3 21 3.89 21 5V19C21 19.53 20.79 20.04 20.41 20.41C20.04 20.79 19.53 21 19 21H5C4.47 21 3.96 20.79 3.59 20.41C3.21 20.04 3 19.53 3 19V5C3 3.89 3.89 3 5 3M19 19V5H5V19H19Z",Pt="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",Et="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",Lt="M12 2C7.04 2 3 6.04 3 11C3 14.91 5.5 18.24 9 19.47V22H11V19.94C11.33 20 11.66 20 12 20S12.67 20 13 19.94V22H15V19.47C18.5 18.23 21 14.9 21 11C21 6.04 16.96 2 12 2M14.25 14L11.25 17L9.75 15.5L11 14.25L9.75 13L12.75 10L14.25 11.5L13 12.75L14.25 14M16 9H8V7H16V9Z",$t="M10,0.2C9,0.2 8.2,1 8.2,2C8.2,3 9,3.8 10,3.8C11,3.8 11.8,3 11.8,2C11.8,1 11,0.2 10,0.2M15.67,1A7.33,7.33 0 0,0 23,8.33V7A6,6 0 0,1 17,1H15.67M18.33,1C18.33,3.58 20.42,5.67 23,5.67V4.33C21.16,4.33 19.67,2.84 19.67,1H18.33M21,1A2,2 0 0,0 23,3V1H21M7.92,4.03C7.75,4.03 7.58,4.06 7.42,4.11L2,5.8V11H3.8V7.33L5.91,6.67L2,22H3.8L6.67,13.89L9,17V22H10.8V15.59L8.31,11.05L9.04,8.18L10.12,10H15V8.2H11.38L9.38,4.87C9.08,4.37 8.54,4.03 7.92,4.03Z",zt="M18.73,18C15.4,21.69 9.71,22 6,18.64C2.33,15.31 2.04,9.62 5.37,5.93C6.9,4.25 9,3.2 11.27,3C7.96,6.7 8.27,12.39 12,15.71C13.63,17.19 15.78,18 18,18C18.25,18 18.5,18 18.73,18Z",Ot="M17 13V7H19V13H17M17 17V15H19V17H17M13 13V5C13 3.3 11.7 2 10 2S7 3.3 7 5V13C4.8 14.7 4.3 17.8 6 20S10.8 22.7 13 21 15.7 16.2 14 14C13.7 13.6 13.4 13.3 13 13M10 4C10.6 4 11 4.4 11 5V8H9V5C9 4.4 9.4 4 10 4Z",Vt="M12,3.25C12,3.25 6,10 6,14C6,17.32 Line truncated
*/const bt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends gt{constructor(t){if(super(t),t.type!==ft||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.st)t in e||(i.remove(t),this.st.delete(t));for(const t in e){const o=!!e[t];o===this.st.has(t)||this.nt?.has(t)||(o?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)))}return U}});var vt="M6.59,0.66C8.93,-1.15 11.47,1.06 12.04,4.5C12.47,4.5 12.89,4.62 13.27,4.84C13.79,4.24 14.25,3.42 14.07,2.5C13.65,0.35 16.06,-1.39 18.35,1.58C20.16,3.92 17.95,6.46 14.5,7.03C14.5,7.46 14.39,7.89 14.16,8.27C14.76,8.78 15.58,9.24 16.5,9.06C18.63,8.64 20.38,11.04 17.41,13.34C15.07,15.15 12.53,12.94 11.96,9.5C11.53,9.5 11.11,9.37 10.74,9.15C10.22,9.75 9.75,10.58 9.93,11.5C10.35,13.64 7.94,15.39 5.65,12.42C3.83,10.07 6.05,7.53 9.5,6.97C9.5,6.54 9.63,6.12 9.85,5.74C9.25,5.23 8.43,4.76 7.5,4.94C5.37,5.36 3.62,2.96 6.59,0.66M5,16H7A2,2 0 0,1 9,18V24H7V22H5V24H3V18A2,2 0 0,1 5,16M5,18V20H7V18H5M12.93,16H15L12.07,24H10L12.93,16M18,16H21V18H18V22H21V24H18A2,2 0 0,1 16,22V18A2,2 0 0,1 18,16Z",yt="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M11,15H13V17H11V15M11,7H13V13H11V7",wt="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",xt="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",kt="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",St="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",Tt="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",Mt="M5,2V13H8V22L15,10H11L15,2M17,15H19V17H17V15M17,7H19V13H17V7Z",Dt="M8.5 4.5L5.4 9.5L8.5 14.7L5.2 20.5L3.4 19.6L6.1 14.7L3 9.5L6.7 3.6L8.5 4.5M14.7 4.4L11.6 9.5L14.7 14.5L11.4 20.3L9.6 19.4L12.3 14.5L9.2 9.5L12.9 3.5L14.7 4.4M21 4.4L17.9 9.5L21 14.5L17.7 20.3L15.9 19.4L18.6 14.5L15.5 9.5L19.2 3.5L21 4.4",Ct="M12,3L2,12H5V20H19V12H22L12,3M12,8.75A2.25,2.25 0 0,1 14.25,11A2.25,2.25 0 0,1 12,13.25A2.25,2.25 0 0,1 9.75,11A2.25,2.25 0 0,1 12,8.75M12,15C13.5,15 16.5,15.75 16.5,17.25V18H7.5V17.25C7.5,15.75 10.5,15 12,15Z",At="M13 9H11V7H13V9M13 17H11V11H13V17M5 3H19C20.1 3 21 3.89 21 5V19C21 19.53 20.79 20.04 20.41 20.41C20.04 20.79 19.53 21 19 21H5C4.47 21 3.96 20.79 3.59 20.41C3.21 20.04 3 19.53 3 19V5C3 3.89 3.89 3 5 3M19 19V5H5V19H19Z",Pt="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",Et="M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",Lt="M12 2C7.04 2 3 6.04 3 11C3 14.91 5.5 18.24 9 19.47V22H11V19.94C11.33 20 11.66 20 12 20S12.67 20 13 19.94V22H15V19.47C18.5 18.23 21 14.9 21 11C21 6.04 16.96 2 12 2M14.25 14L11.25 17L9.75 15.5L11 14.25L9.75 13L12.75 10L14.25 11.5L13 12.75L14.25 14M16 9H8V7H16V9Z",$t="M10,0.2C9,0.2 8.2,1 8.2,2C8.2,3 9,3.8 10,3.8C11,3.8 11.8,3 11.8,2C11.8,1 11,0.2 10,0.2M15.67,1A7.33,7.33 0 0,0 23,8.33V7A6,6 0 0,1 17,1H15.67M18.33,1C18.33,3.58 20.42,5.67 23,5.67V4.33C21.16,4.33 19.67,2.84 19.67,1H18.33M21,1A2,2 0 0,0 23,3V1H21M7.92,4.03C7.75,4.03 7.58,4.06 7.42,4.11L2,5.8V11H3.8V7.33L5.91,6.67L2,22H3.8L6.67,13.89L9,17V22H10.8V15.59L8.31,11.05L9.04,8.18L10.12,10H15V8.2H11.38L9.38,4.87C9.08,4.37 8.54,4.03 7.92,4.03Z",zt="M18.73,18C15.4,21.69 9.71,22 6,18.64C2.33,15.31 2.04,9.62 5.37,5.93C6.9,4.25 9,3.2 11.27,3C7.96,6.7 8.27,12.39 12,15.71C13.63,17.19 15.78,18 18,18C18.25,18 18.5,18 18.73,18Z",Ot="M17 13V7H19V13H17M17 17V15H19V17H17M13 13V5C13 3.3 11.7 2 10 2S7 3.3 7 5V13C4.8 14.7 4.3 17.8 6 20S10.8 22.7 13 21 15.7 16.2 14 14C13.7 13.6 13.4 13.3 13 13M10 4C10.6 4 11 4.4 11 5V8H9V5C9 4.4 9.4 4 10 4Z",Vt="M12,3.25C12,3.25 6,10 6,14C6,17.32 Line truncated
#sortable a:nth-of-type(2n) paper-icon-item {
animation-name: keyframes1;
animation-iteration-count: infinite;
@@ -163,29 +163,29 @@ const ct=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)
color: var(--secondary-text-color);
cursor: pointer;
}
`;const ia=([[t,e],[i,o]],[n,a])=>[t*n+e*a,i*n+o*a],oa=([t,e],[i,o])=>[t+i,e+o],na=t=>t/180*Math.PI,aa=t=>{const{x:e,y:i,r:o,start:n,end:a,rotate:s=0}=t,r=e,l=i,c=o,d=o,h=na(n),u=(na(a)-h)%(2*Math.PI),m=na(s),p=(t=>[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]])(m),[_,g]=oa(ia(p,[c*Math.cos(h),d*Math.sin(h)]),[r,l]),[f,b]=oa(ia(p,[c*Math.cos(h+u),d*Math.sin(h+u)]),[r,l]),v=u>Math.PI?1:0,y=u>0?1:0;return["M",_,g,"A",c,d,m/(2*Math.PI)*360,v,y,f,b].join(" ")};function sa(){return sa=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},sa.apply(this,arguments)}function ra(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function la(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ca;ca="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var n in o)o.hasOwnProperty(n)&&(e[n]=o[n])}return e}:Object.assign;var da,ha=ca,ua=["","webkit","Moz","MS","ms","o"],ma="undefined"==typeof document?{style:{}}:document.createElement("div"),pa=Math.round,_a=Math.abs,ga=Date.now;function fa(t,e){for(var i,o,n=e[0].toUpperCase()+e.slice(1),a=0;a<ua.length;){if((o=(i=ua[a])?i+n:e)in t)return o;a++}}da="undefined"==typeof window?{}:window;var ba=fa(ma.style,"touchAction"),va=void 0!==ba;var ya="compute",wa="auto",xa="manipulation",ka="none",Ta="pan-x",Sa="pan-y",Ma=function(){if(!va)return!1;var t={},e=da.CSS&&da.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||da.CSS.supports("touch-action",i)})),t}(),Da="ontouchstart"in da,Ca=void 0!==fa(da,"PointerEvent"),Aa=Da&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Pa="touch",Ea="mouse",La=25,$a=1,za=4,Oa=8,Va=1,Ha=2,Ra=4,Ia=8,Na=16,Fa=Ha|Ra,Wa=Ia|Na,Ba=Fa|Wa,ja=["x","y"],Ua=["clientX","clientY"];function Ya(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function qa(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Za(t,e){return t.indexOf(e)>-1}var Xa=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===ya&&(t=this.compute()),va&&this.manager.element.style&&Ma[t]&&(this.manager.element.style[ba]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Ya(this.manager.recognizers,(function(e){qa(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Za(t,ka))return ka;var e=Za(t,Ta),i=Za(t,Sa);return e&&i?ka:e||i?e?Ta:Sa:Za(t,xa)?xa:wa}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,n=Za(o,ka)&&!Ma[ka],a=Za(o,Sa)&&!Ma[Sa],s=Za(o,Ta)&&!Ma[Ta];if(n){var r=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(r&&l&&c)return}if(!s||!a)return n||a&&i&Fa||s&&i&Wa?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ka(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Ga(t){var e=t.length;if(1===e)return{x:pa(t[0].clientX),y:pa(t[0].clientY)};for(var i=0,o=0,n=0;n<e;)i+=t[n].clientX,o+=t[n].clientY,n++;return{x:pa(i/e),y:pa(o/e)}}function Qa(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:pa(t.pointers[i].clientX),clientY:pa(t.pointers[i].clientY)},i++;return{timeStamp:ga(),pointers:e,center:Ga(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Ja(t,e,i){i||(i=ja);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(o*o+n*n)}function ts(t,e,i){i||(i=ja);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,o)/Math.PI}function es(t,e){return t===e?Va:_a(t)>=_a(e)?t<0?Ha:Ra:e<0?Ia:Na}function is(t,e,i){return{x:e/t||0,y:i/t||0}}function os(t,e){var i=t.session,o=e.pointers,n=o.length;i.firstInput||(i.firstInput=Qa(e)),n>1&&!i.firstMultiple?i.firstMultiple=Qa(e):1===n&&(i.firstMultiple=!1);var a=i.firstInput,s=i.firstMultiple,r=s?s.center:a.center,l=e.center=Ga(o);e.timeStamp=ga(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=ts(r,l),e.distance=Ja(r,l),function(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},a=t.prevInput||{};e.eventType!==$a&&a.eventType!==za||(n=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}(i,e),e.offsetDirection=es(e.deltaX,e.deltaY);var c,d,h=is(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=_a(h.x)>_a(h.y)?h.x:h.y,e.scale=s?(c=s.pointers,Ja((d=o)[0],d[1],Ua)/Ja(c[0],c[1],Ua)):1,e.rotation=s?functio Line truncated
`;const en=([[t,e],[i,o]],[a,n])=>[t*a+e*n,i*a+o*n],on=([t,e],[i,o])=>[t+i,e+o],an=t=>t/180*Math.PI,nn=t=>{const{x:e,y:i,r:o,start:a,end:n,rotate:s=0}=t,r=e,l=i,c=o,d=o,h=an(a),u=(an(n)-h)%(2*Math.PI),p=an(s),m=(t=>[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]])(p),[_,f]=on(en(m,[c*Math.cos(h),d*Math.sin(h)]),[r,l]),[g,b]=on(en(m,[c*Math.cos(h+u),d*Math.sin(h+u)]),[r,l]),v=u>Math.PI?1:0,y=u>0?1:0;return["M",_,f,"A",c,d,p/(2*Math.PI)*360,v,y,g,b].join(" ")};function sn(){return sn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},sn.apply(this,arguments)}function rn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ln(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var cn;cn="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(e[a]=o[a])}return e}:Object.assign;var dn,hn=cn,un=["","webkit","Moz","MS","ms","o"],pn="undefined"==typeof document?{style:{}}:document.createElement("div"),mn=Math.round,_n=Math.abs,fn=Date.now;function gn(t,e){for(var i,o,a=e[0].toUpperCase()+e.slice(1),n=0;n<un.length;){if((o=(i=un[n])?i+a:e)in t)return o;n++}}dn="undefined"==typeof window?{}:window;var bn=gn(pn.style,"touchAction"),vn=void 0!==bn;var yn="compute",wn="auto",xn="manipulation",kn="none",Sn="pan-x",Tn="pan-y",Mn=function(){if(!vn)return!1;var t={},e=dn.CSS&&dn.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||dn.CSS.supports("touch-action",i)})),t}(),Dn="ontouchstart"in dn,Cn=void 0!==gn(dn,"PointerEvent"),An=Dn&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Pn="touch",En="mouse",Ln=25,$n=1,zn=4,On=8,Vn=1,Hn=2,In=4,Rn=8,Fn=16,Nn=Hn|In,jn=Rn|Fn,Wn=Nn|jn,Bn=["x","y"],Un=["clientX","clientY"];function Yn(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function qn(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Zn(t,e){return t.indexOf(e)>-1}var Xn=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===yn&&(t=this.compute()),vn&&this.manager.element.style&&Mn[t]&&(this.manager.element.style[bn]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Yn(this.manager.recognizers,(function(e){qn(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Zn(t,kn))return kn;var e=Zn(t,Sn),i=Zn(t,Tn);return e&&i?kn:e||i?e?Sn:Tn:Zn(t,xn)?xn:wn}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,a=Zn(o,kn)&&!Mn[kn],n=Zn(o,Tn)&&!Mn[Tn],s=Zn(o,Sn)&&!Mn[Sn];if(a){var r=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(r&&l&&c)return}if(!s||!n)return a||n&&i&Nn||s&&i&jn?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Kn(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Gn(t){var e=t.length;if(1===e)return{x:mn(t[0].clientX),y:mn(t[0].clientY)};for(var i=0,o=0,a=0;a<e;)i+=t[a].clientX,o+=t[a].clientY,a++;return{x:mn(i/e),y:mn(o/e)}}function Qn(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:mn(t.pointers[i].clientX),clientY:mn(t.pointers[i].clientY)},i++;return{timeStamp:fn(),pointers:e,center:Gn(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Jn(t,e,i){i||(i=Bn);var o=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return Math.sqrt(o*o+a*a)}function ts(t,e,i){i||(i=Bn);var o=e[i[0]]-t[i[0]],a=e[i[1]]-t[i[1]];return 180*Math.atan2(a,o)/Math.PI}function es(t,e){return t===e?Vn:_n(t)>=_n(e)?t<0?Hn:In:e<0?Rn:Fn}function is(t,e,i){return{x:e/t||0,y:i/t||0}}function os(t,e){var i=t.session,o=e.pointers,a=o.length;i.firstInput||(i.firstInput=Qn(e)),a>1&&!i.firstMultiple?i.firstMultiple=Qn(e):1===a&&(i.firstMultiple=!1);var n=i.firstInput,s=i.firstMultiple,r=s?s.center:n.center,l=e.center=Gn(o);e.timeStamp=fn(),e.deltaTime=e.timeStamp-n.timeStamp,e.angle=ts(r,l),e.distance=Jn(r,l),function(t,e){var i=e.center,o=t.offsetDelta||{},a=t.prevDelta||{},n=t.prevInput||{};e.eventType!==$n&&n.eventType!==zn||(a=t.prevDelta={x:n.deltaX||0,y:n.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=a.x+(i.x-o.x),e.deltaY=a.y+(i.y-o.y)}(i,e),e.offsetDirection=es(e.deltaX,e.deltaY);var c,d,h=is(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=_n(h.x)>_n(h.y)?h.x:h.y,e.scale=s?(c=s.pointers,Jn((d=o)[0],d[1],Un)/Jn(c[0],c[1],Un)):1,e.rotation=s?functio Line truncated
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","PageUp","PageDown","Home","End"]);let or=class extends rt{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.min=0,this.max=100,this._localValue=this.value,this._localLow=this.low,this._localHigh=this.high,this._getPercentageFromEvent=t=>{const e=this._slider.getBoundingClientRect(),i=2*(t.center.x-e.left-e.width/2)/e.width,o=2*(t.center.y-e.top-e.height/2)/e.height,[,n]=function(t,e){return[Math.sqrt(t*t+e*e),Math.atan2(e,t)]}(i,o),a=(n/(2*Math.PI)*360+45-135+360)%360-45;return Math.max(Math.min(a/er,1),0)}}_valueToPercentage(t){return(Sn(t,this.min,this.max)-this.min)/(this.max-this.min)}_percentageToValue(t){return(this.max-this.min)*t+this.min}_steppedValue(t){return Math.round(t/this.step)*this.step}_boundedValue(t){var e,i;const o="high"===this._activeSlider?Math.min(null!==(e=this._localLow)&&void 0!==e?e:this.max):this.min,n="low"===this._activeSlider?Math.max(null!==(i=this._localHigh)&&void 0!==i?i:this.min):this.max;return Math.min(Math.max(t,o),n)}firstUpdated(t){super.firstUpdated(t),this._setupListeners()}updated(t){super.updated(t),this._activeSlider||(t.has("value")&&(this._localValue=this.value),t.has("low")&&(this._localLow=this.low),t.has("high")&&(this._localHigh=this.high))}connectedCallback(){super.connectedCallback(),this._setupListeners()}disconnectedCallback(){super.disconnectedCallback()}_findActiveSlider(t){var e,i;if(!this.dual)return"value";const o=Math.max(null!==(e=this._localLow)&&void 0!==e?e:this.min,this.min),n=Math.min(null!==(i=this._localHigh)&&void 0!==i?i:this.max,this.max);if(o>=t)return"low";if(n<=t)return"high";return Math.abs(t-o)<=Math.abs(t-n)?"low":"high"}_setActiveValue(t){switch(this._activeSlider){case"high":this._localHigh=t;break;case"low":this._localLow=t;break;case"value":this._localValue=t}}_getActiveValue(){switch(this._activeSlider){case"high":return this._localHigh;case"low":return this._localLow;case"value":return this._localValue}}_setupListeners(){this._interaction&&!this._mc&&(this._mc=new Us(this._interaction,{inputClass:Ds}),this._mc.add(new Hs({direction:Ba,enable:!0,threshold:0})),this._mc.add(new zs({event:"singletap"})),this._mc.on("pan",(t=>{t.srcEvent.stopPropagation(),t.srcEvent.preventDefault()})),this._mc.on("panstart",(t=>{var e,i;if(this.disabled)return;const o=this._getPercentageFromEvent(t),n=this._percentageToValue(o);this._activeSlider=this._findActiveSlider(n),this._lastSlider=this._activeSlider,null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("#slider"))||void 0===i||i.focus()})),this._mc.on("pancancel",(()=>{this.disabled||(this._activeSlider=void 0)})),this._mc.on("panmove",(t=>{if(this.disabled)return;const e=this._getPercentageFromEvent(t),i=this._percentageToValue(e),o=this._boundedValue(i);this._setActiveValue(o);const n=this._steppedValue(o);this._activeSlider&&Tn(this,`${this._activeSlider}-changing`,{value:n})})),this._mc.on("panend",(t=>{if(this.disabled)return;const e=this._getPercentageFromEvent(t),i=this._percentageToValue(e),o=this._boundedValue(i),n=this._steppedValue(o);this._setActiveValue(n),this._activeSlider&&(Tn(this,`${this._activeSlider}-changing`,{value:void 0}),Tn(this,`${this._activeSlider}-changed`,{value:n})),this._activeSlider=void 0})),this._mc.on("singletap",(t=>{var e,i;if(this.disabled)return;const o=this._getPercentageFromEvent(t),n=this._percentageToValue(o);this._activeSlider=this._findActiveSlider(n);const a=this._boundedValue(n),s=this._steppedValue(a);this._setActiveValue(s),this._activeSlider&&(Tn(this,`${this._activeSlider}-changing`,{value:void 0}),Tn(this,`${this._activeSlider}-changed`,{value:s})),this._lastSlider=this._activeSlider,null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("#slider"))||void 0===i||i.focus(),this._activeSlider=void 0})))}get _tenPercentStep(){return Math.max(this.step,(this.max-this.min)/10)}_handleKeyDown(t){var e,i,o;if(!ir.has(t.code))return;t.preventDefault(),this._lastSlider&&(null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById(this._lastSlider))||void 0===i||i.focus()),this._activeSlider=null!==(o=this._lastSlider)&&void 0!==o?o:t.currentTarget.id,this._lastSlider=void 0;const n=this._getActiveValue();switch(t.code){case"ArrowRight":case"ArrowUp":this._setActiveValue(this._boundedValue((null!=n?n:this.min)+this.step));break;case"ArrowLeft":case"ArrowDown":this._setActiveValue(this._boundedValue((null!=n?n:this.min)-this.step));break;case"PageUp":this._setActiveValue(this._steppedValue(this._boundedValue((null!=n?n:this.min)+this._tenPercentStep)));break;case"PageDown":this._setActiveValue(this._steppedValue(this._boundedValue((null!=n?n:this.min)-this._tenPercentStep)));break;case"Home":this._setActiveValue(this._boundedValue(this.min));break;case"End":this._setActiveValue(this._boundedValue(this.max))}Tn(this,`${this._activeSlider}-changing`,{value:this._getActiveValue()}),this._activeSliderLine truncated
const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","PageUp","PageDown","Home","End"]);let or=class extends lt{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.min=0,this.max=100,this._localValue=this.value,this._localLow=this.low,this._localHigh=this.high,this._getPercentageFromEvent=t=>{const e=this._slider.getBoundingClientRect(),i=2*(t.center.x-e.left-e.width/2)/e.width,o=2*(t.center.y-e.top-e.height/2)/e.height,[,a]=function(t,e){return[Math.sqrt(t*t+e*e),Math.atan2(e,t)]}(i,o),n=(a/(2*Math.PI)*360+45-135+360)%360-45;return Math.max(Math.min(n/er,1),0)}}_valueToPercentage(t){return(Sa(t,this.min,this.max)-this.min)/(this.max-this.min)}_percentageToValue(t){return(this.max-this.min)*t+this.min}_steppedValue(t){return Math.round(t/this.step)*this.step}_boundedValue(t){var e,i;const o="high"===this._activeSlider?Math.min(null!==(e=this._localLow)&&void 0!==e?e:this.max):this.min,a="low"===this._activeSlider?Math.max(null!==(i=this._localHigh)&&void 0!==i?i:this.min):this.max;return Math.min(Math.max(t,o),a)}firstUpdated(t){super.firstUpdated(t),this._setupListeners()}updated(t){super.updated(t),this._activeSlider||(t.has("value")&&(this._localValue=this.value),t.has("low")&&(this._localLow=this.low),t.has("high")&&(this._localHigh=this.high))}connectedCallback(){super.connectedCallback(),this._setupListeners()}disconnectedCallback(){super.disconnectedCallback()}_findActiveSlider(t){var e,i;if(!this.dual)return"value";const o=Math.max(null!==(e=this._localLow)&&void 0!==e?e:this.min,this.min),a=Math.min(null!==(i=this._localHigh)&&void 0!==i?i:this.max,this.max);if(o>=t)return"low";if(a<=t)return"high";return Math.abs(t-o)<=Math.abs(t-a)?"low":"high"}_setActiveValue(t){switch(this._activeSlider){case"high":this._localHigh=t;break;case"low":this._localLow=t;break;case"value":this._localValue=t}}_getActiveValue(){switch(this._activeSlider){case"high":return this._localHigh;case"low":return this._localLow;case"value":return this._localValue}}_setupListeners(){this._interaction&&!this._mc&&(this._mc=new Us(this._interaction,{inputClass:Ds}),this._mc.add(new Hs({direction:Wn,enable:!0,threshold:0})),this._mc.add(new zs({event:"singletap"})),this._mc.on("pan",(t=>{t.srcEvent.stopPropagation(),t.srcEvent.preventDefault()})),this._mc.on("panstart",(t=>{var e,i;if(this.disabled)return;const o=this._getPercentageFromEvent(t),a=this._percentageToValue(o);this._activeSlider=this._findActiveSlider(a),this._lastSlider=this._activeSlider,null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("#slider"))||void 0===i||i.focus()})),this._mc.on("pancancel",(()=>{this.disabled||(this._activeSlider=void 0)})),this._mc.on("panmove",(t=>{if(this.disabled)return;const e=this._getPercentageFromEvent(t),i=this._percentageToValue(e),o=this._boundedValue(i);this._setActiveValue(o);const a=this._steppedValue(o);this._activeSlider&&ka(this,`${this._activeSlider}-changing`,{value:a})})),this._mc.on("panend",(t=>{if(this.disabled)return;const e=this._getPercentageFromEvent(t),i=this._percentageToValue(e),o=this._boundedValue(i),a=this._steppedValue(o);this._setActiveValue(a),this._activeSlider&&(ka(this,`${this._activeSlider}-changing`,{value:void 0}),ka(this,`${this._activeSlider}-changed`,{value:a})),this._activeSlider=void 0})),this._mc.on("singletap",(t=>{var e,i;if(this.disabled)return;const o=this._getPercentageFromEvent(t),a=this._percentageToValue(o);this._activeSlider=this._findActiveSlider(a);const n=this._boundedValue(a),s=this._steppedValue(n);this._setActiveValue(s),this._activeSlider&&(ka(this,`${this._activeSlider}-changing`,{value:void 0}),ka(this,`${this._activeSlider}-changed`,{value:s})),this._lastSlider=this._activeSlider,null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("#slider"))||void 0===i||i.focus(),this._activeSlider=void 0})))}get _tenPercentStep(){return Math.max(this.step,(this.max-this.min)/10)}_handleKeyDown(t){var e,i,o;if(!ir.has(t.code))return;t.preventDefault(),this._lastSlider&&(null===(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById(this._lastSlider))||void 0===i||i.focus()),this._activeSlider=null!==(o=this._lastSlider)&&void 0!==o?o:t.currentTarget.id,this._lastSlider=void 0;const a=this._getActiveValue();switch(t.code){case"ArrowRight":case"ArrowUp":this._setActiveValue(this._boundedValue((null!=a?a:this.min)+this.step));break;case"ArrowLeft":case"ArrowDown":this._setActiveValue(this._boundedValue((null!=a?a:this.min)-this.step));break;case"PageUp":this._setActiveValue(this._steppedValue(this._boundedValue((null!=a?a:this.min)+this._tenPercentStep)));break;case"PageDown":this._setActiveValue(this._steppedValue(this._boundedValue((null!=a?a:this.min)-this._tenPercentStep)));break;case"Home":this._setActiveValue(this._boundedValue(this.min));break;case"End":this._setActiveValue(this._boundedValue(this.max))}ka(this,`${this._activeSlider}-changing`,{value:this._getActiveValue()}),this._activeSliderLine truncated
<g class=${bt({inactive:Boolean(this.inactive)})}>
<path
class="arc arc-clear"
d=${a}
d=${n}
stroke-dasharray=${h[0]}
stroke-dashoffset=${h[1]}
/>
<path
class="arc arc-colored ${bt({[t]:!0})}"
d=${a}
d=${n}
stroke-dasharray=${h[0]}
stroke-dashoffset=${h[1]}
/>
<path
.id=${t}
d=${a}
d=${n}
class="arc arc-active ${bt({[t]:!0})}"
stroke-dasharray=${d[0]}
stroke-dashoffset=${d[1]}
@@ -195,32 +195,32 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
aria-valuemax=${this.max}
aria-valuenow=${null!=this._localValue?this._steppedValue(this._localValue):void 0}
aria-disabled=${this.disabled}
aria-label=${(t=>t??Y)(null!==(n=this.lowLabel)&&void 0!==n?n:this.label)}
aria-label=${(t=>t??Y)(null!==(a=this.lowLabel)&&void 0!==a?a:this.label)}
@keydown=${this._handleKeyDown}
@keyup=${this._handleKeyUp}
/>
${m?j`
${p?B`
<path
class="current arc-current"
d=${a}
stroke-dasharray=${m[0]}
stroke-dashoffset=${m[1]}
d=${n}
stroke-dasharray=${p[0]}
stroke-dashoffset=${p[1]}
/>
`:Y}
<path
class="target-border ${bt({[t]:!0})}"
d=${a}
d=${n}
stroke-dasharray=${u[0]}
stroke-dashoffset=${u[1]}
/>
<path
class="target"
d=${a}
d=${n}
stroke-dasharray=${u[0]}
stroke-dashoffset=${u[1]}
/>
</g>
`}render(){const t=aa({x:0,y:0,start:0,end:er,r:145}),e=this.dual?this._localLow:this._localValue,i=this._localHigh,o=this.current,n=o?this._strokeCircleDashArc(o):void 0;return B`
`}render(){const t=nn({x:0,y:0,start:0,end:er,r:145}),e=this.dual?this._localLow:this._localValue,i=this._localHigh,o=this.current,a=o?this._strokeCircleDashArc(o):void 0;return W`
<svg
id="slider"
viewBox="0 0 320 320"
@@ -238,12 +238,12 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
</g>
<g id="display">
<path class="background" d=${t} />
${n?j`
${a?B`
<path
class="current"
d=${t}
stroke-dasharray=${n[0]}
stroke-dashoffset=${n[1]}
stroke-dasharray=${a[0]}
stroke-dashoffset=${a[1]}
/>
`:Y}
${null!=e?this.renderArc(this.dual?"low":"value",e,!this.dual&&this.mode||"start"):Y}
@@ -403,9 +403,9 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.high {
stroke: var(--state-climate-cool-color);
}
`}};function nr(t){var e,i;return B`
`}};function ar(t){var e,i;return W`
<ha-card class="gunmalmg-card ${t.hvacMode} ${t._isLocked?"locked":""}">
${t._showClassicPopup?function(t){var e,i,o;return B`
${t._showClassicPopup?function(t){var e,i,o;return W`
<div class="classic-popup-backdrop" @click=${()=>t._closeClassicPopup()}></div>
<div class="classic-popup-container">
<ha-icon-button
@@ -414,11 +414,11 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
@click=${()=>t._closeClassicPopup()}
tabindex="0"
></ha-icon-button>
${(null===(e=t._config)||void 0===e?void 0:e.disable_menu)?"":B`
${(null===(e=t._config)||void 0===e?void 0:e.disable_menu)?"":W`
<ha-icon-button
class="classic-popup-more-info"
.label=${t.hass.localize("ui.panel.lovelace.cards.show_more_info")}
.path=${Tt}
.path=${St}
@click=${()=>{t._closeClassicPopup(),t._handleMoreInfo()}}
tabindex="0"
></ha-icon-button>
@@ -438,10 +438,10 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
</div>
<div class="gunmalmg-center" @click=${()=>t._openClassicPopup()}>
<div class="temps">
${(()=>{var e,i,o,n;const a=(null===(e=t.hass)||void 0===e?void 0:e.locale)||void 0,s=new Intl.NumberFormat(a,{minimumFractionDigits:1,maximumFractionDigits:1}),r=t._display_top,l=t._display_bottom,c=(null===(n=null===(o=null===(i=t.hass)||void 0===i?void 0:i.config)||void 0===o?void 0:o.unit_system)||void 0===n?void 0:n.temperature)||"",d=null==r?t.hass?t.hass.localize("extra_states.temp_unavailable"):"":s.format(r),h=null==l?null:s.format(l);return B`
${(()=>{var e,i,o,a;const n=(null===(e=t.hass)||void 0===e?void 0:e.locale)||void 0,s=new Intl.NumberFormat(n,{minimumFractionDigits:1,maximumFractionDigits:1}),r=t._display_top,l=t._display_bottom,c=(null===(a=null===(o=null===(i=t.hass)||void 0===i?void 0:i.config)||void 0===o?void 0:o.unit_system)||void 0===a?void 0:a.temperature)||"",d=null==r?t.hass?t.hass.localize("extra_states.temp_unavailable"):"":s.format(r),h=null==l?null:s.format(l);return W`
<div class="gunmalmg-temps-inline">
<span class="gunmalmg-temp-main ${t._hasError?"has-error":""}">${d}<span class="gunmalmg-uom"> ${c}</span></span>
${h?B`<span class="gunmalmg-temp-secondary">(${h}<span class="gunmalmg-uom"> ${c}</span>)</span>`:""}
${h?W`<span class="gunmalmg-temp-secondary">(${h}<span class="gunmalmg-uom"> ${c}</span>)</span>`:""}
</div>
`})()}
</div>
@@ -449,11 +449,11 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
<div class="gunmalmg-right">
<div class="gunmalmg-presets-scroll">
<div id="presets" class="gunmalmg-presets">
${(null===(e=t._config)||void 0===e?void 0:e.disable_presets)?"":t.presets.map((e=>B`${t._renderPreset(e,t.preset)}`))}
${(null===(e=t._config)||void 0===e?void 0:e.disable_presets)?"":t.presets.map((e=>W`${t._renderPreset(e,t.preset)}`))}
</div>
</div>
<div class="gunmalmg-actions">
${(null===(i=t._config)||void 0===i?void 0:i.allow_lock_toggle)?B`
${(null===(i=t._config)||void 0===i?void 0:i.allow_lock_toggle)?W`
<ha-icon-button
class="gunmalmg-lock-btn ${t._isLocked?"locked":"unlocked"}"
.path=${t._isLocked?Pt:Et}
@@ -461,38 +461,38 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
tabindex="0"
></ha-icon-button>
`:""}
${function(t){var e,i,o,n;return(null===(e=t._config)||void 0===e?void 0:e.disable_timed_preset)?B``:B`
${function(t){var e,i,o,a;return(null===(e=t._config)||void 0===e?void 0:e.disable_timed_preset)?W``:W`
<div class="gunmalmg-timed-preset">
${t.timedPresetActive?B`
${t.timedPresetActive?W`
<span class="gunmalmg-timed-remaining"
title="${_n({hass:t.hass,string:"extra_states.cancel_timed_preset"})}"
title="${ma({hass:t.hass,string:"extra_states.cancel_timed_preset"})}"
@click=${t._handleCancelTimedPreset}>
${t._formatRemainingTime(t.timedPresetRemainingTime)}
</span>
${(null!==(i=t.timedPresetRemainingTime)&&void 0!==i?i:0)<60?B`
<span class="gunmalmg-timed-label">${_n({hass:t.hass,string:"extra_states.minutes"})}</span>
${(null!==(i=t.timedPresetRemainingTime)&&void 0!==i?i:0)<60?W`
<span class="gunmalmg-timed-label">${ma({hass:t.hass,string:"extra_states.minutes"})}</span>
`:""}
`:(null===(o=t._config)||void 0===o?void 0:o.use_manual_duration_input)?B`
`:(null===(o=t._config)||void 0===o?void 0:o.use_manual_duration_input)?W`
<input
type="number"
class="gunmalmg-timed-input ${t.timedPresetDuration?"active":""}"
.value=${null!==(n=t.timedPresetDuration)&&void 0!==n?n:""}
.value=${null!==(a=t.timedPresetDuration)&&void 0!==a?a:""}
@input=${t._handleTimedPresetDurationChange}
placeholder="0"
min="0"
max="1440"
title="${_n({hass:t.hass,string:"extra_states.timed_preset_title"})}"
title="${ma({hass:t.hass,string:"extra_states.timed_preset_title"})}"
/>
<span class="gunmalmg-timed-label">${_n({hass:t.hass,string:"extra_states.minutes"})}</span>
`:B`
<span class="gunmalmg-timed-label">${ma({hass:t.hass,string:"extra_states.minutes"})}</span>
`:W`
<select
class="gunmalmg-timed-select ${t.timedPresetDuration?"active":""}"
@change=${t._handleTimedPresetSelectChange}
title="${_n({hass:t.hass,string:"extra_states.timed_preset_title"})}"
title="${ma({hass:t.hass,string:"extra_states.timed_preset_title"})}"
>
<option value="" ?selected=${!t.timedPresetDuration}>--</option>
<option value="15" ?selected=${15===t.timedPresetDuration}>15 ${_n({hass:t.hass,string:"extra_states.minutes"})}</option>
<option value="30" ?selected=${30===t.timedPresetDuration}>30 ${_n({hass:t.hass,string:"extra_states.minutes"})}</option>
<option value="15" ?selected=${15===t.timedPresetDuration}>15 ${ma({hass:t.hass,string:"extra_states.minutes"})}</option>
<option value="30" ?selected=${30===t.timedPresetDuration}>30 ${ma({hass:t.hass,string:"extra_states.minutes"})}</option>
<option value="60" ?selected=${60===t.timedPresetDuration}>1 h</option>
<option value="120" ?selected=${120===t.timedPresetDuration}>2 h</option>
<option value="240" ?selected=${240===t.timedPresetDuration}>4 h</option>
@@ -506,7 +506,7 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
</div>
</div>
</ha-card>
`}t([ut({type:Boolean,reflect:!0})],or.prototype,"disabled",void 0),t([ut({type:Boolean})],or.prototype,"dual",void 0),t([ut({type:String})],or.prototype,"mode",void 0),t([ut({type:Boolean})],or.prototype,"inactive",void 0),t([ut({type:String})],or.prototype,"label",void 0),t([ut({type:String,attribute:"low-label"})],or.prototype,"lowLabel",void 0),t([ut({type:String,attribute:"high-label"})],or.prototype,"highLabel",void 0),t([ut({type:Number})],or.prototype,"value",void 0),t([ut({type:Number})],or.prototype,"low",void 0),t([ut({type:Number})],or.prototype,"high",void 0),t([ut({type:Number})],or.prototype,"current",void 0),t([ut({type:Number})],or.prototype,"step",void 0),t([ut({type:Number})],or.prototype,"min",void 0),t([ut({type:Number})],or.prototype,"max",void 0),t([mt()],or.prototype,"_localValue",void 0),t([mt()],or.prototype,"_localLow",void 0),t([mt()],or.prototype,"_localHigh",void 0),t([mt()],or.prototype,"_activeSlider",void 0),t([mt()],or.prototype,"_lastSlider",void 0),t([_t("#slider")],or.prototype,"_slider",void 0),t([_t("#interaction")],or.prototype,"_interaction",void 0),or=t([ct("vt-ha-control-circular-slider")],or);const ar=s`
`}t([pt({type:Boolean,reflect:!0})],or.prototype,"disabled",void 0),t([pt({type:Boolean})],or.prototype,"dual",void 0),t([pt({type:String})],or.prototype,"mode",void 0),t([pt({type:Boolean})],or.prototype,"inactive",void 0),t([pt({type:String})],or.prototype,"label",void 0),t([pt({type:String,attribute:"low-label"})],or.prototype,"lowLabel",void 0),t([pt({type:String,attribute:"high-label"})],or.prototype,"highLabel",void 0),t([pt({type:Number})],or.prototype,"value",void 0),t([pt({type:Number})],or.prototype,"low",void 0),t([pt({type:Number})],or.prototype,"high",void 0),t([pt({type:Number})],or.prototype,"current",void 0),t([pt({type:Number})],or.prototype,"step",void 0),t([pt({type:Number})],or.prototype,"min",void 0),t([pt({type:Number})],or.prototype,"max",void 0),t([mt()],or.prototype,"_localValue",void 0),t([mt()],or.prototype,"_localLow",void 0),t([mt()],or.prototype,"_localHigh",void 0),t([mt()],or.prototype,"_activeSlider",void 0),t([mt()],or.prototype,"_lastSlider",void 0),t([_t("#slider")],or.prototype,"_slider",void 0),t([_t("#interaction")],or.prototype,"_interaction",void 0),or=t([dt("vt-ha-control-circular-slider")],or);const nr=s`
:host([theme="gunmalmg"]) vt-ha-control-circular-slider { display: none; }
:host([theme="gunmalmg"]) vt-ha-control-circular-slider { display: none !important; }
:host([theme="gunmalmg"]) .disabled-circle-container { display: block; background: none; }
@@ -1216,9 +1216,9 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
color: var(--disabled-text-color);
pointer-events: none;
}
`;var rr;let lr=rr=class extends rt{constructor(){super(...arguments),this.hass=null,this.entityId="",this.visible=!1,this.targetTemp=null,this.roomTemp=null,this.regulatedTemp=null,this.extTemp=null,this.powerPercent=null,this._history=[],this._loading=!1,this._chart=null,this._canvas=null,this._chartReady=!1,this._destroyed=!1,this._lastEntityId="",this._initialViewSet=!1}connectedCallback(){super.connectedCallback(),this._destroyed=!1}disconnectedCallback(){super.disconnectedCallback(),this._destroyed=!0,this._destroyChart()}async firstUpdated(){var t;await this._initChart(),this._addLiveDataPoint(),this.entityId&&this.hass&&(this._lastEntityId=this.entityId,await this._fetchHistory()),this.visible&&this._chartReady&&(null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._applyInitialView())}updated(t){if(t.has("visible")&&this.visible&&this._chartReady)return void requestAnimationFrame((()=>{var t;null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._applyInitialView()}));if(t.has("entityId")&&this.entityId&&this.entityId!==this._lastEntityId)return this._lastEntityId=this.entityId,this._history=[],void this._fetchHistory().then((()=>{var t;this._chartReady&&this.visible&&(null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._initialViewSet=!1,this._applyInitialView())}));const e=["targetTemp","roomTemp","regulatedTemp","extTemp","powerPercent"].some((e=>t.has(e)));!e||null===this.targetTemp&&null===this.roomTemp&&null===this.powerPercent||(this._addLiveDataPoint(),this._chartReady&&this.visible&&this._updateChart())}async _fetchHistory(){if(!this.hass||!this.entityId)return;this._loading=!0;const t=new Date,e=`history/period/${new Date(t.getTime()-864e5).toISOString()}?filter_entity_id=${this.entityId}&end_time=${t.toISOString()}&significant_changes_only=false&minimal_response=false`;try{const t=await this.hass.callApi("GET",e);if(!Array.isArray(t)||0===t.length)return;const i=t[0].filter((t=>t.attributes&&t.last_updated)).map((t=>{var e,i,o,n,a,s,r,l,c,d,h,u,m,p,_,g,f,b,v,y,w,x,k;return{timestamp:new Date(t.last_updated).getTime(),targetTemp:null!==(e=t.attributes.temperature)&&void 0!==e?e:null,roomTemp:null!==(i=t.attributes.current_temperature)&&void 0!==i?i:null,regulatedTemp:null!==(l=null!==(s=null===(a=null===(n=null===(o=t.attributes)||void 0===o?void 0:o.vtherm_over_climate)||void 0===n?void 0:n.regulation)||void 0===a?void 0:a.regulated_target_temperature)&&void 0!==s?s:null===(r=t.attributes)||void 0===r?void 0:r.regulated_target_temperature)&&void 0!==l?l:null,extTemp:null!==(h=null===(d=null===(c=t.attributes)||void 0===c?void 0:c.specific_states)||void 0===d?void 0:d.ext_current_temperature)&&void 0!==h?h:null,powerPercent:null!==(k=null!==(v=null!==(g=null!==(m=null===(u=t.attributes)||void 0===u?void 0:u.power_percent)&&void 0!==m?m:null===(_=null===(p=t.attributes)||void 0===p?void 0:p.specific_states)||void 0===_?void 0:_.power_percent)&&void 0!==g?g:null===(b=null===(f=t.attributes)||void 0===f?void 0:f.vtherm_over_switch)||void 0===b?void 0:b.power_percent)&&void 0!==v?v:null===(x=null===(w=null===(y=t.attributes)||void 0===y?void 0:y.vtherm_over_climate)||void 0===w?void 0:w.valve_regulation)||void 0===x?void 0:x.power_percent)&&void 0!==k?k:null}})).filter((t=>null!==t.targetTemp||null!==t.roomTemp)),o=i.length>0?i[i.length-1].timestamp:0,n=this._history.filter((t=>t.timestamp>o));this._history=[...i,...n].slice(-rr.MAX_POINTS)}catch(t){console.error("[VtRegulationChart] History fetch failed:",t)}finally{this._loading=!1}}_addLiveDataPoint(){var t,e;const i=Date.now(),o=this._history[this._history.length-1],n={timestamp:i,targetTemp:this.targetTemp,roomTemp:this.roomTemp,regulatedTemp:null!==(t=this.regulatedTemp)&&void 0!==t?t:null,extTemp:null!==(e=this.extTemp)&&void 0!==e?e:null,powerPercent:this.powerPercent};o&&i-o.timestamp<3e4?this._history=[...this._history.slice(0,-1),n]:this._history=[...this._history,n].slice(-rr.MAX_POINTS)}_resolveColor(t,e){return getComputedStyle(this).getPropertyValue(t).trim()||e}async _initChart(){var t,e;if(!this._destroyed&&(this._canvas=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("canvas"))&&void 0!==e?e:null,this._canvas))try{const[{Chart:t,registerables:e},{default:i}]=await Promise.all([Promise.resolve().then((function(){return r_})),Promise.resolve().then((function(){return pg}))]);if(await Promise.resolve().then((function(){return Ob})),this._destroyed)return;t.register(...e,i);const o=this._resolveColor("--primary-text-color","#e5e5e5"),n=this._resolveColor("--secondary-text-color","#9e9e9e"),a="rgba(128,128,128,0.18)";this._chart=new t(this._canvas,{type:"line",data:{datasets:[{label:"Consigne",data:[],borderColor:"#f9a21f",backgroundColor:"rgba(249,162,31,0.08)",borderWidth:2,pointRadius:0,pointHoverRadius:4,tension:.3,yAxisID:"yTemp"},{label:"Pièce",data:[],borderColor:"#3a9ff2",backgroundColor:"rgba(58,159,242,0.08)",borderWidth:2,pointRadius:0,po Line truncated
`;var rr;let lr=rr=class extends lt{constructor(){super(...arguments),this.hass=null,this.entityId="",this.visible=!1,this.targetTemp=null,this.roomTemp=null,this.regulatedTemp=null,this.extTemp=null,this.powerPercent=null,this._history=[],this._loading=!1,this._chart=null,this._canvas=null,this._chartReady=!1,this._destroyed=!1,this._lastEntityId="",this._initialViewSet=!1}connectedCallback(){super.connectedCallback(),this._destroyed=!1}disconnectedCallback(){super.disconnectedCallback(),this._destroyed=!0,this._destroyChart()}async firstUpdated(){var t;await this._initChart(),this._addLiveDataPoint(),this.entityId&&this.hass&&(this._lastEntityId=this.entityId,await this._fetchHistory()),this.visible&&this._chartReady&&(null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._applyInitialView())}updated(t){if(t.has("visible")&&this.visible&&this._chartReady)return void requestAnimationFrame((()=>{var t;null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._applyInitialView()}));if(t.has("entityId")&&this.entityId&&this.entityId!==this._lastEntityId)return this._lastEntityId=this.entityId,this._history=[],void this._fetchHistory().then((()=>{var t;this._chartReady&&this.visible&&(null===(t=this._chart)||void 0===t||t.resize(),this._updateChart(),this._initialViewSet=!1,this._applyInitialView())}));const e=["targetTemp","roomTemp","regulatedTemp","extTemp","powerPercent"].some((e=>t.has(e)));!e||null===this.targetTemp&&null===this.roomTemp&&null===this.powerPercent||(this._addLiveDataPoint(),this._chartReady&&this.visible&&this._updateChart())}async _fetchHistory(){if(!this.hass||!this.entityId)return;this._loading=!0;const t=new Date,e=`history/period/${new Date(t.getTime()-864e5).toISOString()}?filter_entity_id=${this.entityId}&end_time=${t.toISOString()}&significant_changes_only=false&minimal_response=false`;try{const t=await this.hass.callApi("GET",e);if(!Array.isArray(t)||0===t.length)return;const i=t[0].filter((t=>t.attributes&&t.last_updated)).map((t=>{var e,i,o,a,n,s,r,l,c,d,h,u,p,m,_,f,g,b,v,y,w,x,k;return{timestamp:new Date(t.last_updated).getTime(),targetTemp:null!==(e=t.attributes.temperature)&&void 0!==e?e:null,roomTemp:null!==(i=t.attributes.current_temperature)&&void 0!==i?i:null,regulatedTemp:null!==(l=null!==(s=null===(n=null===(a=null===(o=t.attributes)||void 0===o?void 0:o.vtherm_over_climate)||void 0===a?void 0:a.regulation)||void 0===n?void 0:n.regulated_target_temperature)&&void 0!==s?s:null===(r=t.attributes)||void 0===r?void 0:r.regulated_target_temperature)&&void 0!==l?l:null,extTemp:null!==(h=null===(d=null===(c=t.attributes)||void 0===c?void 0:c.specific_states)||void 0===d?void 0:d.ext_current_temperature)&&void 0!==h?h:null,powerPercent:null!==(k=null!==(v=null!==(f=null!==(p=null===(u=t.attributes)||void 0===u?void 0:u.power_percent)&&void 0!==p?p:null===(_=null===(m=t.attributes)||void 0===m?void 0:m.specific_states)||void 0===_?void 0:_.power_percent)&&void 0!==f?f:null===(b=null===(g=t.attributes)||void 0===g?void 0:g.vtherm_over_switch)||void 0===b?void 0:b.power_percent)&&void 0!==v?v:null===(x=null===(w=null===(y=t.attributes)||void 0===y?void 0:y.vtherm_over_climate)||void 0===w?void 0:w.valve_regulation)||void 0===x?void 0:x.power_percent)&&void 0!==k?k:null}})).filter((t=>null!==t.targetTemp||null!==t.roomTemp)),o=i.length>0?i[i.length-1].timestamp:0,a=this._history.filter((t=>t.timestamp>o));this._history=[...i,...a].slice(-rr.MAX_POINTS)}catch(t){console.error("[VtRegulationChart] History fetch failed:",t)}finally{this._loading=!1}}_addLiveDataPoint(){var t,e;const i=Date.now(),o=this._history[this._history.length-1],a={timestamp:i,targetTemp:this.targetTemp,roomTemp:this.roomTemp,regulatedTemp:null!==(t=this.regulatedTemp)&&void 0!==t?t:null,extTemp:null!==(e=this.extTemp)&&void 0!==e?e:null,powerPercent:this.powerPercent};o&&i-o.timestamp<3e4?this._history=[...this._history.slice(0,-1),a]:this._history=[...this._history,a].slice(-rr.MAX_POINTS)}_resolveColor(t,e){return getComputedStyle(this).getPropertyValue(t).trim()||e}async _initChart(){var t,e;if(!this._destroyed&&(this._canvas=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("canvas"))&&void 0!==e?e:null,this._canvas))try{const[{Chart:t,registerables:e},{default:i}]=await Promise.all([Promise.resolve().then((function(){return p_})),Promise.resolve().then((function(){return kf}))]);if(await Promise.resolve().then((function(){return Wb})),this._destroyed)return;t.register(...e,i);const o=this._resolveColor("--primary-text-color","#e5e5e5"),a=this._resolveColor("--secondary-text-color","#9e9e9e"),n="rgba(128,128,128,0.18)";this._chart=new t(this._canvas,{type:"line",data:{datasets:[{label:"Consigne",data:[],borderColor:"#f9a21f",backgroundColor:"rgba(249,162,31,0.08)",borderWidth:2,pointRadius:0,pointHoverRadius:4,tension:.3,yAxisID:"yTemp"},{label:"Pièce",data:[],borderColor:"#3a9ff2",backgroundColor:"rgba(58,159,242,0.08)",borderWidth:2,pointRadius:0,po Line truncated
<div class="chart-wrapper">
${this._loading?B`<div class="chart-loading"></div>`:""}
${this._loading?W`<div class="chart-loading"></div>`:""}
<canvas></canvas>
<div class="zoom-btns">
<button class="reset-zoom-btn" @click=${()=>this._zoomTo2h()} title="Vue 2 heures">2h</button>
@@ -1285,13 +1285,13 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
@keyframes vt-spin {
to { transform: translate(-50%, -50%) rotate(360deg); }
}
`}};lr.MAX_POINTS=1440,t([ut({attribute:!1})],lr.prototype,"hass",void 0),t([ut({type:String})],lr.prototype,"entityId",void 0),t([ut({type:Boolean})],lr.prototype,"visible",void 0),t([ut({type:Number})],lr.prototype,"targetTemp",void 0),t([ut({type:Number})],lr.prototype,"roomTemp",void 0),t([ut({type:Number})],lr.prototype,"regulatedTemp",void 0),t([ut({type:Number})],lr.prototype,"extTemp",void 0),t([ut({type:Number})],lr.prototype,"powerPercent",void 0),t([mt()],lr.prototype,"_history",void 0),t([mt()],lr.prototype,"_loading",void 0),lr=rr=t([ct("vt-regulation-chart")],lr);const cr={auto:"M18,11V12.5C21.19,12.5 23.09,16.05 21.33,18.71L20.24,17.62C21.06,15.96 19.85,14 18,14V15.5L15.75,13.25L18,11M18,22V20.5C14.81,20.5 12.91,16.95 14.67,14.29L15.76,15.38C14.94,17.04 16.15,19 18,19V17.5L20.25,19.75L18,22M19,3H18V1H16V3H8V1H6V3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H14C13.36,20.45 12.86,19.77 12.5,19H5V8H19V10.59C19.71,10.7 20.39,10.94 21,11.31V5A2,2 0 0,0 19,3Z",heat_cool:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z",heat:"M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",cool:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z",off:"M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",fan_only:St,dry:Vt,window_open:Ht,windowBypass:Rt,presence:Ct,motion:$t,eco:"M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z",comfort:"M12.5 7C12.5 5.89 13.39 5 14.5 5H18C19.1 5 20 5.9 20 7V9.16C18.84 9.57 18 10.67 18 11.97V14H12.5V7M6 11.96V14H11.5V7C11.5 5.89 10.61 5 9.5 5H6C4.9 5 4 5.9 4 7V9.15C5.16 9.56 6 10.67 6 11.96M20.66 10.03C19.68 10.19 19 11.12 19 12.12V15H5V12C5 10.9 4.11 10 3 10S1 10.9 1 12V17C1 18.1 1.9 19 3 19V21H5V19H19V21H21V19C22.1 19 23 18.1 23 17V12C23 10.79 21.91 9.82 20.66 10.03Z",boost:"M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39C21.61 2.39 16.66 .269 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.79 17.45 10.61 17.63 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39M14.54 9.46C13.76 8.68 13.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z",frost:"M14.46 9.41L11 7.38V5.12L12.71 3.41L11.29 2L10 3.29L8.71 2L7.29 3.41L9 5.12V7.38L6.5 8.82L4.5 7.69L3.92 5.36L2 5.88L2.47 7.65L.7 8.12L1.22 10.05L3.55 9.43L5.55 10.56V13.45L3.55 14.58L1.22 13.96L.7 15.89L2.47 16.36L2 18.12L3.93 18.64L4.55 16.31L6.55 15.18L9 16.62V18.88L7.29 20.59L8.71 22L10 20.71L11.29 22L12.7 20.59L11 18.88V16.62L14.46 14.61M7.5 10.56L10 9.11L12.5 10.56V13.44L10 14.89L7.5 13.44M19 5C17.89 5 17 5.89 17 7V13.76C16.36 14.33 16 15.15 16 16C16 17.66 17.34 19 19 19S22 17.66 22 16C22 15.15 21.64 14.33 21 13.77V7C21 5.89 20.11 5 19 5M19 6C19.55 6 20 6.45 20 7V8H18V7C18 6.45 18.45 6 19 6",activity:$t,power:"M12 3L2 12H5V20H19V12H22L12 3M11.5 18V14H9L12.5 7V11H15L11.5 18Z",flashAlert:Mt,temperature:"M15 13V5A3 3 0 0 0 9 5V13A5 5 Line truncated
`}};lr.MAX_POINTS=1440,t([pt({attribute:!1})],lr.prototype,"hass",void 0),t([pt({type:String})],lr.prototype,"entityId",void 0),t([pt({type:Boolean})],lr.prototype,"visible",void 0),t([pt({type:Number})],lr.prototype,"targetTemp",void 0),t([pt({type:Number})],lr.prototype,"roomTemp",void 0),t([pt({type:Number})],lr.prototype,"regulatedTemp",void 0),t([pt({type:Number})],lr.prototype,"extTemp",void 0),t([pt({type:Number})],lr.prototype,"powerPercent",void 0),t([mt()],lr.prototype,"_history",void 0),t([mt()],lr.prototype,"_loading",void 0),lr=rr=t([dt("vt-regulation-chart")],lr);const cr="unavailable",dr={auto:"M18,11V12.5C21.19,12.5 23.09,16.05 21.33,18.71L20.24,17.62C21.06,15.96 19.85,14 18,14V15.5L15.75,13.25L18,11M18,22V20.5C14.81,20.5 12.91,16.95 14.67,14.29L15.76,15.38C14.94,17.04 16.15,19 18,19V17.5L20.25,19.75L18,22M19,3H18V1H16V3H8V1H6V3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H14C13.36,20.45 12.86,19.77 12.5,19H5V8H19V10.59C19.71,10.7 20.39,10.94 21,11.31V5A2,2 0 0,0 19,3Z",heat_cool:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z",heat:"M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",cool:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z",off:"M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",fan_only:Tt,dry:Vt,window_open:Ht,windowBypass:It,presence:Ct,motion:$t,eco:"M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z",comfort:"M12.5 7C12.5 5.89 13.39 5 14.5 5H18C19.1 5 20 5.9 20 7V9.16C18.84 9.57 18 10.67 18 11.97V14H12.5V7M6 11.96V14H11.5V7C11.5 5.89 10.61 5 9.5 5H6C4.9 5 4 5.9 4 7V9.15C5.16 9.56 6 10.67 6 11.96M20.66 10.03C19.68 10.19 19 11.12 19 12.12V15H5V12C5 10.9 4.11 10 3 10S1 10.9 1 12V17C1 18.1 1.9 19 3 19V21H5V19H19V21H21V19C22.1 19 23 18.1 23 17V12C23 10.79 21.91 9.82 20.66 10.03Z",boost:"M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39C21.61 2.39 16.66 .269 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.79 17.45 10.61 17.63 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39M14.54 9.46C13.76 8.68 13.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z",frost:"M14.46 9.41L11 7.38V5.12L12.71 3.41L11.29 2L10 3.29L8.71 2L7.29 3.41L9 5.12V7.38L6.5 8.82L4.5 7.69L3.92 5.36L2 5.88L2.47 7.65L.7 8.12L1.22 10.05L3.55 9.43L5.55 10.56V13.45L3.55 14.58L1.22 13.96L.7 15.89L2.47 16.36L2 18.12L3.93 18.64L4.55 16.31L6.55 15.18L9 16.62V18.88L7.29 20.59L8.71 22L10 20.71L11.29 22L12.7 20.59L11 18.88V16.62L14.46 14.61M7.5 10.56L10 9.11L12.5 10.56V13.44L10 14.89L7.5 13.44M19 5C17.89 5 17 5.89 17 7V13.76C16.36 14.33 16 15.15 16 16C16 17.66 17.34 19 19 19S22 17.66 22 16C22 15.15 21.64 14.33 21 13.77V7C21 5.89 20.11 5 19 5M19 6C19.55 6 20 6.45 20 7V8H18V7C18 6.45 18.45 6 19 6",activity:$t,power:"M12 3L2 12H5V20H19V12H22L12 3M11.5 18V14H9L12.5 7V11H15L11.5 18Z",flashAlert:Mt,temperature:"M15 13V5A3 3 Line truncated
<div class="regulation-chart-panel">
<div
class="regulation-chart-header"
@click=${()=>{this._regulationChartOpen=!this._regulationChartOpen}}
>
<span class="regulation-chart-title">${_n({hass:this.hass,string:"extra_states.regulation_chart_title"})}</span>
<span class="regulation-chart-title">${ma({hass:this.hass,string:"extra_states.regulation_chart_title"})}</span>
<ha-svg-icon
class="regulation-chart-chevron"
.path=${this._regulationChartOpen?wt:xt}
@@ -1303,99 +1303,107 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.entityId=${null!==(i=null===(e=this._config)||void 0===e?void 0:e.entity)&&void 0!==i?i:""}
.visible=${this._regulationChartOpen}
.targetTemp=${null!==(o=this.temperature)&&void 0!==o?o:null}
.roomTemp=${null!==(n=this.current)&&void 0!==n?n:null}
.roomTemp=${null!==(a=this.current)&&void 0!==a?a:null}
.regulatedTemp=${this.regulatedTargetTemperature}
.extTemp=${null!==(u=null===(h=null===(d=null===(c=null===(s=null===(a=this.hass)||void 0===a?void 0:a.states)||void 0===s?void 0:s[null!==(l=null===(r=this._config)||void 0===r?void 0:r.entity)&&void 0!==l?l:""])||void 0===c?void 0:c.attributes)||void 0===d?void 0:d.specific_states)||void 0===h?void 0:h.ext_current_temperature)&&void 0!==u?u:null}
.powerPercent=${null!==(m=this.powerPercent)&&void 0!==m?m:null}
.extTemp=${null!==(u=null===(h=null===(d=null===(c=null===(s=null===(n=this.hass)||void 0===n?void 0:n.states)||void 0===s?void 0:s[null!==(l=null===(r=this._config)||void 0===r?void 0:r.entity)&&void 0!==l?l:""])||void 0===c?void 0:c.attributes)||void 0===d?void 0:d.specific_states)||void 0===h?void 0:h.ext_current_temperature)&&void 0!==u?u:null}
.powerPercent=${null!==(p=this.powerPercent)&&void 0!==p?p:null}
></vt-regulation-chart>
</div>
</div>
`:B``}_renderPresetModificationPanel(){var t;if(!(null===(t=this._config)||void 0===t?void 0:t.allow_preset_modification))return B``;const e=["frost","eco","comfort","boost"],i={frost:_n({hass:this.hass,string:"extra_states.frost"}),eco:_n({hass:this.hass,string:"extra_states.eco"}),comfort:_n({hass:this.hass,string:"extra_states.comfort"}),boost:_n({hass:this.hass,string:"extra_states.boost"})},o=new Map;for(const t of this._presetTempEntities){const e=`${t.mode}_${t.away?"away":"present"}_${t.preset}`;o.set(e,t.entityId)}const n=[{mode:"heat",away:!1,labelKey:"extra_states.preset_row_heat"},{mode:"heat",away:!0,labelKey:"extra_states.preset_row_heat_away"},{mode:"cool",away:!1,labelKey:"extra_states.preset_row_cool"},{mode:"cool",away:!0,labelKey:"extra_states.preset_row_cool_away"}].filter((t=>e.some((e=>o.has(`${t.mode}_${t.away?"away":"present"}_${e}`))))),a=this._presetTempEntities.length>0,s=(t,e,i)=>{var n,a,s,r,l,c,d;const h=`${t}_${e?"away":"present"}_${i}`,u=o.get(h);if(!u)return B`<td class="preset-temp-cell empty">–</td>`;const m=null===(n=this.hass)||void 0===n?void 0:n.states[u],p=m?parseFloat(m.state):null,_=null!==(s=null===(a=null==m?void 0:m.attributes)||void 0===a?void 0:a.step)&&void 0!==s?s:.5,g=null!==(l=null===(r=null==m?void 0:m.attributes)||void 0===r?void 0:r.min)&&void 0!==l?l:7,f=null!==(d=null===(c=null==m?void 0:m.attributes)||void 0===c?void 0:c.max)&&void 0!==d?d:35,b=t=>{const e=Math.round(Math.min(f,Math.max(g,t))/_)*_,i=Math.round(100*e)/100;this.hass.callService("number","set_value",{entity_id:u,value:i})};return B`
<td class="preset-temp-cell preset-col-${i}">
<div class="preset-temp-stepper">
<input
type="number"
class="preset-temp-input"
.value=${null===p||isNaN(p)?"":String(p)}
step=${_}
min=${g}
max=${f}
@change=${t=>{const e=parseFloat(t.target.value);isNaN(e)||b(e)}}
/>
<div class="preset-step-btns">
<button class="preset-step-btn preset-step-up" @click=${()=>{null===p||isNaN(p)||b(p+_)}}>+</button>
<button class="preset-step-btn preset-step-down" @click=${()=>{null===p||isNaN(p)||b(p-_)}}>−</button>
`:W``}_renderPresetModificationPanel(){var t;if(!(null===(t=this._config)||void 0===t?void 0:t.allow_preset_modification))return W``;const e=["frost","eco","comfort","boost"],i={frost:ma({hass:this.hass,string:"extra_states.frost"}),eco:ma({hass:this.hass,string:"extra_states.eco"}),comfort:ma({hass:this.hass,string:"extra_states.comfort"}),boost:ma({hass:this.hass,string:"extra_states.boost"})},o=new Map;for(const t of this._presetTempEntities){const e=`${t.mode}_${t.away?"away":"present"}_${t.preset}`;o.set(e,t.entityId)}const a=this._hasValidCentralPresetTemperatures(),n=this._presetTempEntities.some((t=>{var e;const i=null===(e=this.hass)||void 0===e?void 0:e.states[t.entityId];return!!i&&i.state!==cr})),s=this.hvacMode===pr?"cool":"heat";let r=[{mode:"heat",away:!1,labelKey:"extra_states.preset_row_heat"},{mode:"heat",away:!0,labelKey:"extra_states.preset_row_heat_away"},{mode:"cool",away:!1,labelKey:"extra_states.preset_row_cool"},{mode:"cool",away:!0,labelKey:"extra_states.preset_row_cool_away"}];r=r.filter((t=>t.mode===s)),n?r=r.filter((t=>e.some((e=>o.has(`${t.mode}_${t.away?"away":"present"}_${e}`))))):a||(r=[]);const l=n||a,c=(t,e,i)=>{var s,r,l,c,d,h;const u=`${t}_${e?"away":"present"}_${i}`,p=o.get(u),m=p?this.hass.states[p]:void 0,_=!!m&&m.state!==cr;if(p&&_){const t=parseFloat(m.state),e=null!==(r=null===(s=null==m?void 0:m.attributes)||void 0===s?void 0:s.step)&&void 0!==r?r:.5,o=null!==(c=null===(l=null==m?void 0:m.attributes)||void 0===l?void 0:l.min)&&void 0!==c?c:7,a=null!==(h=null===(d=null==m?void 0:m.attributes)||void 0===d?void 0:d.max)&&void 0!==h?h:35,n=t=>{const i=Math.round(Math.min(a,Math.max(o,t))/e)*e,n=Math.round(100*i)/100;this.hass.callService("number","set_value",{entity_id:p,value:n})};return W`
<td class="preset-temp-cell preset-col-${i}">
<div class="preset-temp-stepper">
<input
type="number"
class="preset-temp-input"
.value=${null===t||isNaN(t)?"":String(t)}
step=${e}
min=${o}
max=${a}
@change=${t=>{const e=parseFloat(t.target.value);isNaN(e)||n(e)}}
/>
<div class="preset-step-btns">
<button class="preset-step-btn preset-step-up" @click=${()=>{null===t||isNaN(t)||n(t+e)}}>+</button>
<button class="preset-step-btn preset-step-down" @click=${()=>{null===t||isNaN(t)||n(t-e)}}>−</button>
</div>
</div>
</div>
</td>
`};return B`
</td>
`}if(!n&&a){const o=this._getPresetTemperature(i,t,e,!1);if(null!==o)return W`
<td class="preset-temp-cell preset-col-${i}">
<div class="preset-temp-stepper">
<div class="preset-temp-readonly">
${Ta(o,this.hass.locale,{minimumFractionDigits:1,maximumFractionDigits:1})} ${this.hass.config.unit_system.temperature}
</div>
</div>
</td>
`}return W`<td class="preset-temp-cell empty">–</td>`};return W`
<div class="preset-mod-panel ${this._isLocked?"locked":""}">
<div
class="preset-mod-header"
@click=${()=>{this._isLocked||(this._presetsPanelOpen=!this._presetsPanelOpen)}}
title=${_n({hass:this.hass,string:"extra_states.preset_mod_title"})}
title=${ma({hass:this.hass,string:"extra_states.preset_mod_title"})}
>
<span class="preset-mod-title">${_n({hass:this.hass,string:"extra_states.preset_mod_title"})}</span>
<span class="preset-mod-title">${ma({hass:this.hass,string:"extra_states.preset_mod_title"})}</span>
<ha-svg-icon
class="preset-mod-chevron ${this._presetsPanelOpen?"open":""}"
.path=${this._presetsPanelOpen?wt:xt}
></ha-svg-icon>
</div>
${this._presetsPanelOpen?B`
${this._presetsPanelOpen?W`
<div class="preset-mod-body">
${a?B`
${l?W`
<table class="preset-temp-table">
<thead>
<tr>
<th class="preset-temp-row-label"></th>
${e.map((t=>B`<th class="preset-temp-col-label col-${t}">${i[t]}</th>`))}
${e.map((t=>W`<th class="preset-temp-col-label col-${t}">${i[t]}</th>`))}
</tr>
</thead>
<tbody>
${n.map((t=>B`
${r.map((t=>W`
<tr>
<td class="preset-temp-row-label">
${_n({hass:this.hass,string:t.labelKey})}
${ma({hass:this.hass,string:t.labelKey})}
</td>
${e.map((e=>s(t.mode,t.away,e)))}
${e.map((e=>c(t.mode,t.away,e)))}
</tr>
`))}
</tbody>
</table>
`:B`
`:W`
<div class="preset-mod-empty">
${_n({hass:this.hass,string:"extra_states.preset_mod_no_entities"})}
${ma({hass:this.hass,string:"extra_states.preset_mod_no_entities"})}
</div>
`}
</div>
`:""}
</div>
`}_renderClassicContent(t=!1){var e,i,o,n,a,s,r,l,c,d,h,u,m,p,_,g,f,b,v,y,w,x,k;const T=!t&&this.effectiveDisableCircle,S=!t&&this.effectiveDisableBackgroundColor;this._renderingAsClassic=t;const M=B`
${this.name.length>0?B`
`}_renderClassicContent(t=!1){var e,i,o,a,n,s,r,l,c,d,h,u,p,m,_,f,g,b,v,y,w,x,k;const S=!t&&this.effectiveDisableCircle,T=!t&&this.effectiveDisableBackgroundColor;this._renderingAsClassic=t;const M=W`
${this.name.length>0?W`
<div class="name">${this.name}</div>
`:""}
${(null===(e=this.safety_state)||void 0===e?void 0:e.length)>0&&!this.displayMessages?B`
${(null===(e=this.safety_state)||void 0===e?void 0:e.length)>0&&!this.displayMessages?W`
<div class="security">
<ha-icon-button class="alert" .path=${Ot}>
</ha-icon-button>
${B`
${this.safety_state.map((t=>B`<span>${t.name}: ${t.security_msg}</span>`))}
${W`
${this.safety_state.map((t=>W`<span>${t.name}: ${t.security_msg}</span>`))}
`}
</div>
`:""}
${this.messages.length>0&&this.displayMessages?B`
${this.messages.length>0&&this.displayMessages?W`
<div class="messages">
<ha-icon-button class="alert" .path=${this._hasError?yt:At}>
</ha-icon-button>
${this.messages.map((t=>B`<span>${t}</span>`))}
${this.messages.map((t=>W`<span>${t}</span>`))}
</div>
`:""}
<div title="${this.buildTitle()}" class="${T?"disabled-circle-container":""} ${S?"no-background-color":""} ${this.hvacMode}_${this.hvacAction} ${this._hasWindow?"window_open":""} ${this.overpowering?"overpowering":""}">
${T?B`
<div title="${this.buildTitle()}" class="${S?"disabled-circle-container":""} ${T?"no-background-color":""} ${this.hvacMode}_${this.hvacAction} ${this._hasWindow?"window_open":""} ${this.overpowering?"overpowering":""}">
${S?W`
<!-- No circle configured -->
`:null!=this.value.low&&null!=this.value.high&&"unavailable"!==(null===(i=this.stateObj)||void 0===i?void 0:i.state)?B`
`:null!=this.value.low&&null!=this.value.high&&(null===(i=this.stateObj)||void 0===i?void 0:i.state)!==cr?W`
<vt-ha-control-circular-slider
class="${null!==this.safety_state||this.displayMessages?"security_msg":""} ${this._hasWindow?"window_open":""} ${this.overpowering?"overpowering":""} ${this.presence?"presence":""} ${this.motion?"motion":""} ${this._hasWindowByPass?"windowByPass":""} ${(null===(o=this._config)||void 0===o?void 0:o.show_background_gradient_on_active)&&this.isDeviceActive?"with-background-gradient":""}"
.inactive=${this._hasWindow}
@@ -1411,9 +1419,9 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
@high-changed=${this._highChanged}
@high-changing=${this._highChanging}
>
`:B`
`:W`
<vt-ha-control-circular-slider
class="${null!==this.safety_state||this.displayMessages?"security_msg":""} ${this._hasWindow?"window_open":""} ${this.overpowering?"overpowering":""} ${this.presence?"presence":""} ${this.motion?"motion":""} ${this._hasWindowByPass?"windowByPass":""} ${(null===(n=this._config)||void 0===n?void 0:n.show_background_gradient_on_active)&&this.isDeviceActive?"with-background-gradient":""}"
class="${null!==this.safety_state||this.displayMessages?"security_msg":""} ${this._hasWindow?"window_open":""} ${this.overpowering?"overpowering":""} ${this.presence?"presence":""} ${this.motion?"motion":""} ${this._hasWindowByPass?"windowByPass":""} ${(null===(a=this._config)||void 0===a?void 0:a.show_background_gradient_on_active)&&this.isDeviceActive?"with-background-gradient":""}"
.inactive=${this._hasWindow}
.mode="start"
@value-changed=${this._highChanged}
@@ -1425,45 +1433,45 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
max=${this.max}
>
`}
<div class="content${(null===(a=this._config)||void 0===a?void 0:a.disable_presets)?" no-presets":""} ${0==this.name.length?" noname":""} ${null!==this.safety_state||this.displayMessages?" security_msg":""} ${this._hasWindow?" window_open":""} ${this.overpowering?" overpowering":""} ${this.presence?" presence":""} ${this.motion?" motion":""} ${this._hasWindowByPass?" windowByPass":""} " >
<div class="content${(null===(n=this._config)||void 0===n?void 0:n.disable_presets)?" no-presets":""} ${0==this.name.length?" noname":""} ${null!==this.safety_state||this.displayMessages?" security_msg":""} ${this._hasWindow?" window_open":""} ${this.overpowering?" overpowering":""} ${this.presence?" presence":""} ${this.motion?" motion":""} ${this._hasWindowByPass?" windowByPass":""} " >
<svg id="main" viewbox="0 0 125 100">
<g transform="translate(57.5,37) scale(0.35)">
${this._hasWindowByPass?j`
${this._hasWindowByPass?B`
<g transform="${this._hasWindowByPass?"translate(-50.25,0)":""}" @click=${this._handleToggleWindowByPass} class="icon-group">
<rect width="24" height="24" fill="transparent" style="cursor: pointer;"/>
<path class="window window-by-pass ${this._hasWindowByPass?"active":""}" id="window-by-pass" d=${Rt}/>
<path class="window window-by-pass ${this._hasWindowByPass?"active":""}" id="window-by-pass" d=${It}/>
</g>
`:""}
${this._hasWindowByPass||!this._hasWindow||(null===(s=this._config)||void 0===s?void 0:s.disable_window)?"":j`
${this._hasWindowByPass||!this._hasWindow||(null===(s=this._config)||void 0===s?void 0:s.disable_window)?"":B`
<g transform="${this._hasWindow&&!(null===(r=this._config)||void 0===r?void 0:r.disable_window)?"translate(-50.25,0)":""}" @click=${this._handleToggleWindowByPass} class="icon-group">
<rect width="24" height="24" fill="transparent" style="cursor: pointer;"/>
<path class="window ${this._hasWindow?"active":""}" id="window" d=${Ht}/>
</g>
`}
${this._hasOverpowering&&!(null===(l=this._config)||void 0===l?void 0:l.disable_overpowering)?j`
${this._hasOverpowering&&!(null===(l=this._config)||void 0===l?void 0:l.disable_overpowering)?B`
<path class="overpowering ${this.overpowering?"active":""}" transform="${this._hasOverpowering&&!(null===(c=this._config)||void 0===c?void 0:c.disable_overpowering)?"translate(-25.25,0)":""}" id="overpowering" d=${Mt} />
`:""}
${this._hasPresence?j`
${this._hasPresence?B`
<path class="presence ${this.presence?"active":""}" transform="${this._hasPresence?"translate(0.25,0)":""}" id="overpowering" d=${Ct} />
`:""}
${this._hasAutoStartStop&&!(null===(d=this._config)||void 0===d?void 0:d.disable_autoStartStop)?j`
${this._hasAutoStartStop&&!(null===(d=this._config)||void 0===d?void 0:d.disable_autoStartStop)?B`
<path class="auto-start-stop" transform="${this._hasAutoStartStop&&!(null===(h=this._config)||void 0===h?void 0:h.disable_autoStartStop)?"translate(25.25,0)":""}" id="autoStartStop" d=${zt}/>
`:""}
${this._hasMotion?j`
${this._hasMotion?B`
<path class="motion ${this.motion?"active":""}" transform="${this._hasMotion?"translate(50.25,0)":""}" id="motion" d=${$t} />
`:""}
</g>
${T?j`
${S?B`
${this._renderStatusText("62.5","50")}
${this._renderTemperature(this._display_top,!0,"55","62%",!(null===(u=null==this?void 0:this._config)||void 0===u?void 0:u.set_current_as_main))}
${this._renderTemperature(this._display_bottom,!1,"90","62%",1==(null===(m=null==this?void 0:this._config)||void 0===m?void 0:m.set_current_as_main))}
${this._renderTemperature(this._display_bottom,!1,"90","62%",1==(null===(p=null==this?void 0:this._config)||void 0===p?void 0:p.set_current_as_main))}
<g class="current-info" transform="translate(100,65)">
${this._renderHVACAction()}
</g>
`:j`
`:B`
${this._renderStatusText("62.5","50")}
${this._renderTemperature(this._display_top,!0,"50%","62%",!(null===(p=null==this?void 0:this._config)||void 0===p?void 0:p.set_current_as_main))}
${this._renderTemperature(this._display_top,!0,"50%","62%",!(null===(m=null==this?void 0:this._config)||void 0===m?void 0:m.set_current_as_main))}
<line x1="35" y1="72" x2="90" y2="72" stroke="#e7e7e8" stroke-width="0.5" />
<g class="current-info" transform="translate(62.5,80)">
${this._renderTemperature(this._display_bottom,!1,"-5%","0%",1==(null===(_=null==this?void 0:this._config)||void 0===_?void 0:_.set_current_as_main))}
@@ -1472,15 +1480,15 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
`}
</svg>
</div>
${T?"":B`
${S?"":W`
</vt-ha-control-circular-slider>`}
</div>
<div id="modes" class="${null!==this.safety_state||this.displayMessages?"security_msg":""}">
${j`
${this.modes.map((t=>{var e,i,o,n,a,s,r,l;return(null===(e=this._config)||void 0===e?void 0:e.disable_heat)&&"heat"===t||(null===(i=this._config)||void 0===i?void 0:i.disable_auto)&&"auto"===t||(null===(o=this._config)||void 0===o?void 0:o.disable_cool)&&"cool"===t||(null===(n=this._config)||void 0===n?void 0:n.disable_heat_cool)&&"heat_cool"===t||(null===(a=this._config)||void 0===a?void 0:a.disable_dry)&&"dry"===t||(null===(s=this._config)||void 0===s?void 0:s.disable_fan_only)&&"fan_only"===t||(null===(r=this._config)||void 0===r?void 0:r.disable_off)&&"off"===t||(null===(l=this._config)||void 0===l?void 0:l.disable_sleep)&&"sleep"===t?B``:this._renderIcon(t,this.hvacMode)}))}
${B`
${this.modes.map((t=>{var e,i,o,a,n,s,r,l;return(null===(e=this._config)||void 0===e?void 0:e.disable_heat)&&"heat"===t||(null===(i=this._config)||void 0===i?void 0:i.disable_auto)&&"auto"===t||(null===(o=this._config)||void 0===o?void 0:o.disable_cool)&&"cool"===t||(null===(a=this._config)||void 0===a?void 0:a.disable_heat_cool)&&"heat_cool"===t||(null===(n=this._config)||void 0===n?void 0:n.disable_dry)&&"dry"===t||(null===(s=this._config)||void 0===s?void 0:s.disable_fan_only)&&"fan_only"===t||(null===(r=this._config)||void 0===r?void 0:r.disable_off)&&"off"===t||(null===(l=this._config)||void 0===l?void 0:l.disable_sleep)&&"sleep"===t?W``:this._renderIcon(t,this.hvacMode)}))}
`}
</div>
${(null===(g=null==this?void 0:this._config)||void 0===g?void 0:g.disable_buttons)?B``:B`
${(null===(f=null==this?void 0:this._config)||void 0===f?void 0:f.disable_buttons)?W``:W`
<div id="vt-control-buttons" class="${null!==this.safety_state||this.displayMessages?"security_msg":""}">
<div class="button">
<vt-ha-outlined-icon-button
@@ -1503,23 +1511,23 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
</div>
`}
${(null===(f=this._config)||void 0===f?void 0:f.disable_presets)?"":B`
${(null===(g=this._config)||void 0===g?void 0:g.disable_presets)?"":W`
<div id="presets" class="${null!==this.safety_state||this.displayMessages?"security_msg":""}">
${j`
${B`
${this.presets.map((t=>this._renderPreset(t,this.preset)))}
`}
${(null===(b=this._config)||void 0===b?void 0:b.disable_timed_preset)?"":B`
${(null===(b=this._config)||void 0===b?void 0:b.disable_timed_preset)?"":W`
<div class="timed-preset-container ${this._isLocked?"locked":""}">
${this.timedPresetActive?B`
${this.timedPresetActive?W`
<span class="timed-preset-remaining"
title="${_n({hass:this.hass,string:"extra_states.cancel_timed_preset"})}"
title="${ma({hass:this.hass,string:"extra_states.cancel_timed_preset"})}"
@click=${this._handleCancelTimedPreset}>
${this._formatRemainingTime(this.timedPresetRemainingTime)}
</span>
${(null!==(v=this.timedPresetRemainingTime)&&void 0!==v?v:0)<60?B`
<span class="timed-preset-label">${_n({hass:this.hass,string:"extra_states.minutes"})}</span>
${(null!==(v=this.timedPresetRemainingTime)&&void 0!==v?v:0)<60?W`
<span class="timed-preset-label">${ma({hass:this.hass,string:"extra_states.minutes"})}</span>
`:""}
`:(null===(y=this._config)||void 0===y?void 0:y.use_manual_duration_input)?B`
`:(null===(y=this._config)||void 0===y?void 0:y.use_manual_duration_input)?W`
<input
type="number"
class="timed-preset-input ${this.timedPresetDuration?"active":""}"
@@ -1528,18 +1536,18 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
placeholder="0"
min="0"
max="1440"
title="${_n({hass:this.hass,string:"extra_states.timed_preset_title"})}"
title="${ma({hass:this.hass,string:"extra_states.timed_preset_title"})}"
/>
<span class="timed-preset-label">${_n({hass:this.hass,string:"extra_states.minutes"})}</span>
`:B`
<span class="timed-preset-label">${ma({hass:this.hass,string:"extra_states.minutes"})}</span>
`:W`
<select
class="timed-preset-select ${this.timedPresetDuration?"active":""}"
@change=${this._handleTimedPresetSelectChange}
title="${_n({hass:this.hass,string:"extra_states.timed_preset_title"})}"
title="${ma({hass:this.hass,string:"extra_states.timed_preset_title"})}"
>
<option value="" ?selected=${!this.timedPresetDuration}>--</option>
<option value="15" ?selected=${15===this.timedPresetDuration}>15 ${_n({hass:this.hass,string:"extra_states.minutes"})}</option>
<option value="30" ?selected=${30===this.timedPresetDuration}>30 ${_n({hass:this.hass,string:"extra_states.minutes"})}</option>
<option value="15" ?selected=${15===this.timedPresetDuration}>15 ${ma({hass:this.hass,string:"extra_states.minutes"})}</option>
<option value="30" ?selected=${30===this.timedPresetDuration}>30 ${ma({hass:this.hass,string:"extra_states.minutes"})}</option>
<option value="60" ?selected=${60===this.timedPresetDuration}>1 h</option>
<option value="120" ?selected=${120===this.timedPresetDuration}>2 h</option>
<option value="240" ?selected=${240===this.timedPresetDuration}>4 h</option>
@@ -1553,28 +1561,28 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
`}
<div id="left-infos" class="${(null===(x=this._config)||void 0===x?void 0:x.disable_presets)?"no-presets":""}">
${this.isRecalculateScheduled?j`
${this.isRecalculateScheduled?B`
${this._renderRecalculateScheduledButton()}
`:""}
${this.messages.length>0?j`
${this.messages.length>0?B`
${this._renderMessagesButton()}
`:""}
${this._config.autoStartStopEnableEntity&&this._isAutoStartStopConfigured?j`
${(this._config.autoStartStopEnableEntity||this._config.autoStartStopStopModeEntity)&&this._isAutoStartStopConfigured?B`
${this._renderAutoStartStopEnable()}
`:""}
${j`
${B`
${this._externalPowerInfos.map((t=>this._renderPowerInfo(t)))}
`}
${j`
${B`
${this.powerInfos.map((t=>this._renderPowerInfo(t)))}
`}
${j`
${B`
${this.autoFanInfos.map((t=>this._renderAutoFanInfo(t)))}
`}
</div>
<div id="right-lock">
${(null===(k=this._config)||void 0===k?void 0:k.allow_lock_toggle)?B`
${(null===(k=this._config)||void 0===k?void 0:k.allow_lock_toggle)?W`
<ha-icon-button
class="lock-icon ${this._isLocked?"locked":"unlocked"}"
.path=${this._isLocked?Pt:Et}
@@ -1587,11 +1595,11 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
${this._renderPresetModificationPanel()}
${this._renderRegulationChartPanel()}
</div>
`;return this._renderingAsClassic=!1,M}_applyTheme(t){this._config||(this._config={}),this._config.theme=t,Tn(this,"config-changed",{config:this._config}),this._closeThemeMenu(),this.setAttribute("theme",t),this._applyThemeOverrides(t)}async _menuLockToggle(){var t;if((null===(t=this._config)||void 0===t?void 0:t.entity)&&this.hass&&this.stateObj){if(this._hasLockCode)return this.isLocking=!this._isLocked,this.showDigicodeModal=!0,void(this.enteredCode="");try{this._isLocked?this._isLockConfigured?await this.hass.callService("versatile_thermostat","unlock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!1,this.requestUpdate()):this._isLockConfigured?await this.hass.callService("versatile_thermostat","lock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!0,this.requestUpdate())}catch(t){console.error(t)}}}_menuCancelTimedPreset(){this.timedPresetActive&&this._handleCancelTimedPreset()}firstUpdated(t){this._init=!1}shouldUpdate(t){return void 0!==t.has("_config")&&void 0!==t.get("_config")&&(this._hasOverpowering=!1,this._hasWindow=!1,this._hasWindowByPass=!1,this._hasMotion=!1,this._hasPresence=!1,this._hasAutoStartStop=!1,this._isAutoStartStopEnabled=!1,this.humidity=0),void 0!==t.get("hass")&&(this._init=!1),!0}updated(t){var e,i,o;super.updated(t),this._firstRender=!1,"gunmalmg"!==(null===(e=this._config)||void 0===e?void 0:e.theme)||this._gunmalmgPresetScrollDone||requestAnimationFrame((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".gunmalmg-presets-scroll"),i=null==e?void 0:e.querySelector(".selected-icon");if(i&&e){this._gunmalmgPresetScrollDone=!0;const t=i.closest(".preset-label")||i,o=t.offsetLeft,n=t.offsetWidth,a=e.clientWidth,s=n,r=Math.max(0,o-(a-n)/2+s);e.scrollLeft=r}})),t.has("showDigicodeModal")&&(this.showDigicodeModal?window.addEventListener("keydown",this._handleKeyDown):window.removeEventListener("keydown",this._handleKeyDown)),null===(o=null===(i=null==this?void 0:this.shadowRoot)||void 0===i?void 0:i.querySelector(".security"))||void 0===o||o.addEventListener("click",(()=>{var t,e,i,o;null===(e=null===(t=null==this?void 0:this.shadowRoot)||void 0===t?void 0:t.querySelector(".security"))||void 0===e||e.remove(),null===(o=null===(i=null==this?void 0:this.shadowRoot)||void 0===i?void 0:i.querySelector(".content"))||void 0===o||o.classList.remove("security_msg"),this._vibrate(2)}))}_willUpdatePower(){let t,e,i;this._externalPowerInfos=[],this._config.powerEntity&&(console.log(`There is a powerEntity ${this._config.powerEntity}`),t=this.hass.states[this._config.powerEntity],e=Number(t.state),i=t.attributes.unit_of_measurement,console.log(`Power found ${e} ${i} for ${name}`)),e&&(console.log("J'ai pushé du power"),this._externalPowerInfos.push({name:"mean_power_cycle",value:e,unit:i,class:"vt-power-color"}))}_classifyPresetEntity(t){const e=t.toLowerCase(),i=/_cool_/.test(e)||e.endsWith("_cool")||/_ac_(away_)?temp$/.test(e),o=e.includes("_away");let n=null;return e.includes("frost")||e.includes("hors_gel")?n="frost":e.includes("eco")?n="eco":e.includes("comfort")?n="comfort":e.includes("boost")&&(n="boost"),n?{entityId:t,preset:n,mode:i?"cool":"heat",away:o}:null}_discoverPresetTempEntities(){var t,e;if(!this.hass||!(null===(t=this._config)||void 0===t?void 0:t.entity))return;const i=this.hass.entities;if(!i)return void console.log("[PresetMod] hass.entities not available");const o=i[this._config.entity];if(!(null==o?void 0:o.device_id))return void console.log(`[PresetMod] No device_id for entity ${this._config.entity}`);const n=o.device_id;console.log(`[PresetMod] device_id=${n}`);const a=[];for(const[t,o]of Object.entries(i)){if(o.device_id!==n)continue;if(!t.startsWith("number."))continue;const i=this.hass.states[t];if(!i)continue;if("temperature"!==(null===(e=i.attributes)||void 0===e?void 0:e.device_class))continue;const s=this._classifyPresetEntity(t);s&&(console.log(`[PresetMod] found entity: ${t} preset=${s.preset} mode=${s.mode} away=${s.away}`),a.push(s))}const s=this._presetTempEntities.map((t=>t.entityId)).join(","),r=a.map((t=>t.entityId)).join(",");s!==r&&(this._presetTempEntities=a)}willUpdate(t){var e,i,o,n,a,s,r,l,c,d,h,u,m,p,_,g,f,b,v,y,w,x,k,T,S,M,D,C,A,P,E,L,$,z,O,V,H,R,I,N,F,W,B,j,U,Y,q,Z,X,K,G,Q,J;if(!this.hass||!this._config||!t.has("hass")&&!t.has("_config"))return;const tt=this._config.entity;this._willUpdatePower(),(null===(e=this._config)||void 0===e?void 0:e.allow_preset_modification)&&this._discoverPresetTempEntities();const et=this.hass.states[tt];if(!et)return void console.log("No state");const it=t.get("hass");if(!it||it.states[tt]!==et){if(!this._config||!this.hass||!this._config.entity)return void console.log("No change return");console.log("Something may have change"),this.stateObj=et;const t=this.stateObj.attributes,e=this.stateObj.state;this._isLockConfigured=!0===(null==t?void 0:t.is_lock_configured),(null==t?void 0:t.lock_manager)&&(this._isLocked=(null===(i=null==t?void 0 Line truncated
`;return this._renderingAsClassic=!1,M}_applyTheme(t){this._config||(this._config={}),this._config.theme=t,ka(this,"config-changed",{config:this._config}),this._closeThemeMenu(),this.setAttribute("theme",t),this._applyThemeOverrides(t)}async _menuLockToggle(){var t;if((null===(t=this._config)||void 0===t?void 0:t.entity)&&this.hass&&this.stateObj){if(this._hasLockCode)return this.isLocking=!this._isLocked,this.showDigicodeModal=!0,void(this.enteredCode="");try{this._isLocked?this._isLockConfigured?await this.hass.callService("versatile_thermostat","unlock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!1,this.requestUpdate()):this._isLockConfigured?await this.hass.callService("versatile_thermostat","lock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!0,this.requestUpdate())}catch(t){console.error(t)}}}_menuCancelTimedPreset(){this.timedPresetActive&&this._handleCancelTimedPreset()}firstUpdated(t){this._init=!1}shouldUpdate(t){return void 0!==t.has("_config")&&void 0!==t.get("_config")&&(this._hasOverpowering=!1,this._hasWindow=!1,this._hasWindowByPass=!1,this._hasMotion=!1,this._hasPresence=!1,this._hasAutoStartStop=!1,this._isAutoStartStopEnabled=!1,this._autoStartStopStopMode=xr,this._autoStartStopStopModeOptions=[],this.humidity=0),void 0!==t.get("hass")&&(this._init=!1),!0}updated(t){var e,i,o;super.updated(t),this._firstRender=!1,"gunmalmg"!==(null===(e=this._config)||void 0===e?void 0:e.theme)||this._gunmalmgPresetScrollDone||requestAnimationFrame((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".gunmalmg-presets-scroll"),i=null==e?void 0:e.querySelector(".selected-icon");if(i&&e){this._gunmalmgPresetScrollDone=!0;const t=i.closest(".preset-label")||i,o=t.offsetLeft,a=t.offsetWidth,n=e.clientWidth,s=a,r=Math.max(0,o-(n-a)/2+s);e.scrollLeft=r}})),t.has("showDigicodeModal")&&(this.showDigicodeModal?window.addEventListener("keydown",this._handleKeyDown):window.removeEventListener("keydown",this._handleKeyDown)),null===(o=null===(i=null==this?void 0:this.shadowRoot)||void 0===i?void 0:i.querySelector(".security"))||void 0===o||o.addEventListener("click",(()=>{var t,e,i,o;null===(e=null===(t=null==this?void 0:this.shadowRoot)||void 0===t?void 0:t.querySelector(".security"))||void 0===e||e.remove(),null===(o=null===(i=null==this?void 0:this.shadowRoot)||void 0===i?void 0:i.querySelector(".content"))||void 0===o||o.classList.remove("security_msg"),this._vibrate(2)}))}_willUpdatePower(){let t,e,i;this._externalPowerInfos=[],this._config.powerEntity&&(console.log(`There is a powerEntity ${this._config.powerEntity}`),t=this.hass.states[this._config.powerEntity],e=Number(t.state),i=t.attributes.unit_of_measurement,console.log(`Power found ${e} ${i} for ${name}`)),e&&(console.log("J'ai pushé du power"),this._externalPowerInfos.push({name:"mean_power_cycle",value:e,unit:i,class:"vt-power-color"}))}_classifyPresetEntity(t){const e=t.toLowerCase(),i=/_cool_/.test(e)||e.endsWith("_cool")||/_ac_(away_)?temp$/.test(e),o=e.includes("_away");let a=null;return e.includes("frost")||e.includes("hors_gel")?a="frost":e.includes("eco")?a="eco":e.includes("comfort")?a="comfort":e.includes("boost")&&(a="boost"),a?{entityId:t,preset:a,mode:i?"cool":"heat",away:o}:null}_discoverPresetTempEntities(){var t,e;if(!this.hass||!(null===(t=this._config)||void 0===t?void 0:t.entity))return;const i=this.hass.entities;if(!i)return void console.log("[PresetMod] hass.entities not available");const o=i[this._config.entity];if(!(null==o?void 0:o.device_id))return void console.log(`[PresetMod] No device_id for entity ${this._config.entity}`);const a=o.device_id;console.log(`[PresetMod] device_id=${a}`);const n=[];for(const[t,o]of Object.entries(i)){if(o.device_id!==a)continue;if(!t.startsWith("number."))continue;const i=this.hass.states[t];if(!i)continue;if("temperature"!==(null===(e=i.attributes)||void 0===e?void 0:e.device_class))continue;const s=this._classifyPresetEntity(t);s&&(console.log(`[PresetMod] found entity: ${t} preset=${s.preset} mode=${s.mode} away=${s.away}`),n.push(s))}const s=this._presetTempEntities.map((t=>t.entityId)).join(","),r=n.map((t=>t.entityId)).join(",");s!==r&&(this._presetTempEntities=n)}willUpdate(t){var e,i,o,a,n,s,r,l,c,d,h,u,p,m,_,f,g,b,v,y,w,x,k,S,T,M,D,C,A,P,E,L,$,z,O,V,H,I,R,F,N,j,W,B,U,Y,q,Z,X,K,G,Q,J,tt,et,it,ot,at,nt,st;if(!this.hass||!this._config||!t.has("hass")&&!t.has("_config"))return;const rt=this._config.entity;this._willUpdatePower(),(null===(e=this._config)||void 0===e?void 0:e.allow_preset_modification)&&this._discoverPresetTempEntities();const lt=this.hass.states[rt];if(!lt)return void console.log("No state");const ct=t.get("hass"),dt=null===(i=this._config)||void 0===i?void 0:i.autoFanEnableEntity,ht=!(!dt||ct&&ct.states[dt]===this.hass.states[dt]);if(!ct||ct.states[rt]!==lt||ht){if(!this._config||!this.hass||!this._config.entity)return void console.log("No change return");console.log("Something may have change" Line truncated
<text class="hvac-action-text-svg ${this.hvacAction}" x="${t}" y="${e}" dominant-baseline="middle" text-anchor="middle">
${o}
</text>
`}_renderHVACAction(){return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?"heating"===this.hvacAction?j`<path class="status ${this.isDeviceActive?"active":""}" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${Dt}" />`:"cooling"===this.hvacAction||"cool"==this.hvacMode?j`<path class="status cooler ${this.isDeviceActive?"active":""}" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${vt}" />`:j`<path class="status" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${kt}" />`:B``}_renderHVACActionBadge(){return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?"heating"===this.hvacAction?j`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Dt}"/></svg>`:"cooling"===this.hvacAction?j`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${vt}"/></svg>`:j`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${yt}"/></svg>`:B``}_renderIcon(t,e,i){if(!cr[t])return B``;const o=this.hass.localize(`component.climate.state._.${t}`)||_n({hass:this.hass,string:`extra_states.${t}`});return B`
`}_renderHVACAction(){return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?"heating"===this.hvacAction?B`<path class="status ${this.isDeviceActive?"active":""}" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${Dt}" />`:"cooling"===this.hvacAction||"cool"==this.hvacMode?B`<path class="status cooler ${this.isDeviceActive?"active":""}" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${vt}" />`:B`<path class="status" transform="translate(5,-4) scale(0.25)" fill="#9d9d9d" d="${kt}" />`:W``}_renderHVACActionBadge(){return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?"heating"===this.hvacAction?B`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Dt}"/></svg>`:"cooling"===this.hvacAction?B`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${vt}"/></svg>`:B`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${yt}"/></svg>`:W``}_renderIcon(t,e,i){if(!dr[t])return W``;const o=this.hass.localize(`component.climate.state._.${t}`)||ma({hass:this.hass,string:`extra_states.${t}`});return W`
<div class="hvac-badge-container">
<ha-icon-button
title="${e===t?t:""}"
@@ -1599,12 +1607,12 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.mode=${t}
@click=${i?this._cycleHvacMode:this._handleAction}
tabindex="0"
.path=${cr[t]}
.path=${dr[t]}
.label=${o}
></ha-icon-button>
${(()=>{if(this.theme!==vr||this._renderingAsClassic)return B``;let t="";return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?(t="heating"===this.hvacAction?"heating":"cooling"===this.hvacAction?"cooling":"warning",B`<div class="hvac-badge ${t}">${this._renderHVACActionBadge()}</div>`):B``})()}
${(()=>{if(this.theme!==Tr||this._renderingAsClassic)return W``;let t="";return this.hvacAction&&"off"!==this.hvacAction&&"idle"!==this.hvacAction?(t="heating"===this.hvacAction?"heating":"cooling"===this.hvacAction?"cooling":"warning",W`<div class="hvac-badge ${t}">${this._renderHVACActionBadge()}</div>`):W``})()}
</div>
`}async _cycleHvacMode(){var t;if(!(null===(t=this._config)||void 0===t?void 0:t.entity)||!this.hass)return;const e=Array.isArray(this.modes)&&this.modes.length>0?this.modes:[];if(0===e.length)return;const i=this.hvacMode||"";let o=e.indexOf(i);-1===o&&(o=0);const n=e[(o+1)%e.length];try{n===ur?await this.hass.callService("versatile_thermostat","set_hvac_mode_sleep",{entity_id:this._config.entity}):await this.hass.callService("climate","set_hvac_mode",{entity_id:this._config.entity,hvac_mode:n})}catch(t){console.error(t)}}_renderMessagesButton(){const t=_n({hass:this.hass,string:"extra_states.messages-button"});return B`
`}async _cycleHvacMode(){var t;if(!(null===(t=this._config)||void 0===t?void 0:t.entity)||!this.hass)return;const e=Array.isArray(this.modes)&&this.modes.length>0?this.modes:[];if(0===e.length)return;const i=this.hvacMode||"";let o=e.indexOf(i);-1===o&&(o=0);const a=e[(o+1)%e.length];try{a===mr?await this.hass.callService("versatile_thermostat","set_hvac_mode_sleep",{entity_id:this._config.entity}):await this.hass.callService("climate","set_hvac_mode",{entity_id:this._config.entity,hvac_mode:a})}catch(t){console.error(t)}}_renderMessagesButton(){const t=ma({hass:this.hass,string:"extra_states.messages-button"});return W`
<ha-icon-button
title="${t}"
class="messages-button ${this._hasError?"error":""}"
@@ -1614,7 +1622,7 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.label=${t}
>
</ha-icon-button>
`}_renderRecalculateScheduledButton(){const t=_n({hass:this.hass,string:"extra_states.recalculation_scheduled"});return B`
`}_renderRecalculateScheduledButton(){const t=ma({hass:this.hass,string:"extra_states.recalculation_scheduled"});return W`
<ha-icon-button
title="${t}"
class="messages-button"
@@ -1623,30 +1631,30 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.label=${t}
>
</ha-icon-button>
`}_renderWindowByPassButton(){const t=_n({hass:this.hass,string:"extra_states.window-bypass-button"});return B`
`}_renderWindowByPassButton(){const t=ma({hass:this.hass,string:"extra_states.window-bypass-button"});return W`
<ha-icon-button
title="${t}"
class="window-bypass-button"
@click=${this._handleToggleWindowByPass}
tabindex="0"
.path=${Rt}
.path=${It}
.label=${t}
>
</ha-icon-button>
`}_renderPreset(t,e){const i=(this.hass.localize(`component.climate.state._.${t}`)||_n({hass:this.hass,string:`extra_states.${t}`}))+"\n"+_n({hass:this.hass,string:"extra_states.change_message"});return B`
`}_getPresetTemperature(t,e,i,o=!0){var a,n,s;if(!this.hass)return null;const r=null!=e?e:this.hvacMode===pr?"cool":"heat",l=null!=i?i:!!this._hasPresence&&!this.presence;if(o&&(null===(a=this._presetTempEntities)||void 0===a?void 0:a.length)){const e=this._presetTempEntities.filter((e=>e.preset===t));if(e.length>0){const i=[...e.filter((t=>t.mode===r&&t.away===l)),...e.filter((t=>t.mode===r&&t.away!==l)),...e.filter((t=>t.mode!==r))];for(const e of i){const i=this.hass.states[e.entityId];if(i&&i.state!==cr){const o=Number.parseFloat(i.state);if(Number.isFinite(o)&&0!==o)return console.log(`[PresetTemp] entity value for ${t} from ${e.entityId}: ${o}`),o}}}}const c=null===(s=null===(n=this.stateObj)||void 0===n?void 0:n.attributes)||void 0===s?void 0:s.preset_temperatures;if(!c||"object"!=typeof c)return null;const d=[],h=`${t}_${r}_temp`,u=`${t}_${r}_away_temp`;l&&d.push(u),d.push(h,`${t}_away_temp`,`${t}_temp`,t);for(const e of d)if(e in c&&void 0!==c[e]){const i=Number.parseFloat(String(c[e]));if(Number.isFinite(i)&&0!==i)return console.log(`[PresetTemp] central value for ${t} using key ${e}: ${i}`),i}if(c[r]&&"object"==typeof c[r]){const e=c[r];if(void 0!==e[t]){const i=Number.parseFloat(String(e[t]));if(Number.isFinite(i)&&0!==i)return console.log(`[PresetTemp] central nested value for ${t} in ${r}: ${i}`),i}}return null}_hasValidCentralPresetTemperatures(){var t,e;if(!(null===(e=null===(t=this.stateObj)||void 0===t?void 0:t.attributes)||void 0===e?void 0:e.preset_temperatures))return!1;const i=this.stateObj.attributes.preset_temperatures,o=t=>"number"==typeof t?Number.isFinite(t)&&0!==t:!(!t||"object"!=typeof t)&&Object.values(t).some(o);return o(i)}_renderPreset(t,e){const i=this.hass.localize(`component.climate.state._.${t}`)||ma({hass:this.hass,string:`extra_states.${t}`}),o=this._getPresetTemperature(t),a=null!==o?`${Ta(o,this.hass.locale,{minimumFractionDigits:1,maximumFractionDigits:1})} ${this.hass.config.unit_system.temperature}`:null,n=a?`${i} - ${a}`:i,s=`${n}\n${ma({hass:this.hass,string:"extra_states.change_message"})}`;return W`
<div class="preset-label preset-${t}">
<ha-icon-button
title="${e===t?t:""}"
title="${n}"
class=${bt({"selected-icon":e===t})}
.preset=${t}
@click=${this._handlePreset}
tabindex="0"
.path=${cr[t]}
.label=${i}
.path=${dr[t]}
.label=${s}
>
</ha-icon-button>
</div>
`}_renderPowerInfo(t){const e=this.hass.localize(`component.climate.state._.${t.name}`)||_n({hass:this.hass,string:`extra_states.${t.name}`});return B`
`}_renderPowerInfo(t){const e=this.hass.localize(`component.climate.state._.${t.name}`)||ma({hass:this.hass,string:`extra_states.${t.name}`});return W`
<div class="left-info-label">
<span>
<ha-icon-button
@@ -1654,14 +1662,14 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
class=${t.class}
.name=${t.name}
tabindex="0"
.path=${cr[t.name]}
.path=${dr[t.name]}
.label=${e}
>
</ha-icon-button>
</span>
<span>${t.value} ${t.unit}</span>
</div>
`}_renderAutoFanInfo(t){const e=(this.hass.localize(`component.climate.state._.${t.name}`)||_n({hass:this.hass,string:`extra_states.${t.name}`}))+"\n"+_n({hass:this.hass,string:"extra_states.toggle_message"});return B`
`}_renderAutoFanInfo(t){const e=(this.hass.localize(`component.climate.state._.${t.name}`)||ma({hass:this.hass,string:`extra_states.${t.name}`}))+"\n"+ma({hass:this.hass,string:"extra_states.toggle_message"});return W`
<div class="left-info-label">
<span>
<ha-icon-button
@@ -1670,22 +1678,49 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
.name=${t.name}
@click=${this._handleClickAutoFanInfo}
tabindex="0"
.path=${cr[t.name]}
.path=${dr[t.name]}
.label=${e}
>
</ha-icon-button>
</span>
<span>${t.value} ${t.unit}</span>
<span class="clickable-info-label" @click=${this._handleClickAutoFanInfo}>${t.value} ${t.unit}</span>
</div>
`}_renderAutoStartStopEnable(){const t=_n({hass:this.hass,string:"extra_states.auto_start_stop_enable"}),e=_n({hass:this.hass,string:"extra_states.auto_start_stop_label"}),i=this._isAutoStartStopEnabled?"checked":"";return console.log(`checked=${i}`),B`
<div class="left-info-label" title="${t}">
`}_renderAutoStartStopEnable(){const t=ma({hass:this.hass,string:"extra_states.auto_start_stop_enable"}),e=ma({hass:this.hass,string:"extra_states.auto_start_stop_label"}),i=this._isAutoStartStopEnabled?this._autoStartStopStopMode:wr,o=this._autoStartStopStopModeOptions.length?this._autoStartStopStopModeOptions:[xr],a=[wr,...o],n=ma({hass:this.hass,string:`extra_states.auto_start_stop_mode_${i}`});return W`
<div class="left-info-label" title="${e}">
<span>
<input type="checkbox" .checked=${this._isAutoStartStopEnabled} class="auto-start-stop-enable" @click=${this._handleClickAutoStartStopEnable} .label="${t}" name="auto-start-stop-enable">
<ha-icon-button
title="${e}"
class="auto-start-stop"
.name=${"auto_start_stop"}
@click=${this._handleClickAutoStartStopIcon}
tabindex="0"
.path=${dr.auto_start_stop}
.label=${e}
>
</ha-icon-button>
</span>
<span>${e}</span>
${this._autoStartStopEditMode&&!this.isUserLocked?W`
<span>
<select
class="auto-start-stop-select ${this._isAutoStartStopEnabled?"active":""}"
@change=${this._handleChangeAutoStartStop}
@blur=${this._handleBlurAutoStartStop}
title="${t}"
name="auto-start-stop-select"
>
${a.map((t=>W`
<option value="${t}" ?selected=${i===t}>
${ma({hass:this.hass,string:`extra_states.auto_start_stop_mode_${t}`})}
</option>
`))}
</select>
</span>
`:W`
<span class="clickable-info-label" @click=${this._handleClickAutoStartStopIcon}>${n}</span>
`}
</div>
`}_handleMoreInfo(){Tn(this,"hass-more-info",{entityId:this._config.entity})}_handleLockToggle(){var t,e;if((null===(t=this._config)||void 0===t?void 0:t.allow_lock_toggle)&&(null===(e=this._config)||void 0===e?void 0:e.entity)&&this.hass&&this.stateObj)if(this._isLocked){if(this._hasLockCode)return this.isLocking=!1,this.showDigicodeModal=!0,void(this.enteredCode="");this._isLockConfigured?this.hass.callService("versatile_thermostat","unlock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!1,this.requestUpdate())}else{if(this._hasLockCode)return this.isLocking=!0,this.showDigicodeModal=!0,void(this.enteredCode="");this._isLockConfigured?this.hass.callService("versatile_thermostat","lock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!0,this.requestUpdate())}}_handleKeypadPress(t){this.enteredCode.length<4&&(this.enteredCode+=t,this.codeError=!1,4===this.enteredCode.length&&this._handleValidate())}_handleKeypadClear(){this.enteredCode=this.enteredCode.slice(0,-1),this.codeError=!1}_handleModalClose(){this.showDigicodeModal=!1,this.enteredCode="",this.codeError=!1}async _handleValidate(){if(4===this.enteredCode.length){const t=this.isLocking?"lock":"unlock";try{await this.hass.callService("versatile_thermostat",t,{entity_id:this._config.entity,code:this.enteredCode}),this._handleModalClose()}catch(t){this.codeError=!0,this.enteredCode="",this._vibrate(200)}}else this.codeError=!0,this.enteredCode="",this._vibrate(200)}buildTitle(){var t,e,i;let o="";return this._hasWindow&&!(null===(t=this._config)||void 0===t?void 0:t.disable_window)&&(o+=_n({hass:this.hass,string:"extra_states.window_open"})+"\n"),this._hasWindowByPass&&(o+=_n({hass:this.hass,string:"extra_states.window_bypass"})+"\n"),this._hasOverpowering&&!(null===(e=this._config)||void 0===e?void 0:e.disable_overpowering)&&(o+=_n({hass:this.hass,string:"extra_states.overpowering"})+"\n"),this._hasPresence&&(o+=_n({hass:this.hass,string:"extra_states.presence"})+"\n"),this._hasAutoStartStop&&!(null===(i=this._config)||void 0===i?void 0:i.disable_autoStartStop)&&(o+=_n({hass:this.hass,string:"extra_states.auto_start_stop"})+"\n"),this._hasMotion&&(o+=_n({hass:this.hass,string:"extra_states.motion"})+"\n"),o}_renderTemperature(t,e,i,o,n){var a;let s=76,r=56,l=.2;const c=e?-2:-1,d=e?-5.5:-2;let h;h=t?Mn(t,this.hass.locale,{minimumFractionDigits:1,maximumFractionDigits:1}):this.hass.localize("extra_states.temp_unavailable"),n&&e&&(s=this.effectiveDisableCircle?30:35,r=56,l=.25);const u=e?"temp-main":"temp-secondary";return j`
${n&&!(null===(a=this._config)||void 0===a?void 0:a.disable_target_icon)?j`
`}_handleClickAutoStartStopIcon(){this.isUserLocked||(this._autoStartStopEditMode=!this._autoStartStopEditMode)}_handleBlurAutoStartStop(){this._autoStartStopEditMode=!1}_handleMoreInfo(){ka(this,"hass-more-info",{entityId:this._config.entity})}_handleLockToggle(){var t,e;if((null===(t=this._config)||void 0===t?void 0:t.allow_lock_toggle)&&(null===(e=this._config)||void 0===e?void 0:e.entity)&&this.hass&&this.stateObj)if(this._isLocked){if(this._hasLockCode)return this.isLocking=!1,this.showDigicodeModal=!0,void(this.enteredCode="");this._isLockConfigured?this.hass.callService("versatile_thermostat","unlock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!1,this.requestUpdate())}else{if(this._hasLockCode)return this.isLocking=!0,this.showDigicodeModal=!0,void(this.enteredCode="");this._isLockConfigured?this.hass.callService("versatile_thermostat","lock",{entity_id:this._config.entity}):(this._isLocked=this.isUserLocked=!0,this.requestUpdate())}}_handleKeypadPress(t){this.enteredCode.length<4&&(this.enteredCode+=t,this.codeError=!1,4===this.enteredCode.length&&this._handleValidate())}_handleKeypadClear(){this.enteredCode=this.enteredCode.slice(0,-1),this.codeError=!1}_handleModalClose(){this.showDigicodeModal=!1,this.enteredCode="",this.codeError=!1}async _handleValidate(){if(4===this.enteredCode.length){const t=this.isLocking?"lock":"unlock";try{await this.hass.callService("versatile_thermostat",t,{entity_id:this._config.entity,code:this.enteredCode}),this._handleModalClose()}catch(t){this.codeError=!0,this.enteredCode="",this._vibrate(200)}}else this.codeError=!0,this.enteredCode="",this._vibrate(200)}buildTitle(){var t,e,i;let o="";return this._hasWindow&&!(null===(t=this._config)||void 0===t?void 0:t.disable_window)&&(o+=ma({hass:this.hass,string:"extra_states.window_open"})+"\n"),this._hasWindowByPass&&(o+=ma({hass:this.hass,string:"extra_states.window_bypass"})+"\n"),this._hasOverpowering&&!(null===(e=this._config)||void 0===e?void 0:e.disable_overpowering)&&(o+=ma({hass:this.hass,string:"extra_states.overpowering"})+"\n"),this._hasPresence&&(o+=ma({hass:this.hass,string:"extra_states.presence"})+"\n"),this._hasAutoStartStop&&!(null===(i=this._config)||void 0===i?void 0:i.disable_autoStartStop)&&(o+=ma({hass:this.hass,string:"extra_states.auto_start_stop"})+"\n"),this._hasMotion&&(o+=ma({hass:this.hass,string:"extra_states.motion"})+"\n"),o}_renderTemperature(t,e,i,o,a){var n;let s=76,r=56,l=.2;const c=e?-2:-1,d=e?-5.5:-2;let h;h=t?Ta(t,this.hass.locale,{minimumFractionDigits:1,maximumFractionDigits:1}):this.hass.localize("extra_states.temp_unavailable"),a&&e&&(s=this.effectiveDisableCircle?30:35,r=56,l=.25);const u=e?"temp-main":"temp-secondary";return B`
${a&&!(null===(n=this._config)||void 0===n?void 0:n.disable_target_icon)?B`
<path
class="target-icon"
transform="translate(${s}, ${r}) scale(${l})"
@@ -1693,46 +1728,46 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
d="${"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,10.84 21.79,9.69 21.39,8.61L19.79,10.21C19.93,10.8 20,11.4 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.6,4 13.2,4.07 13.79,4.21L15.4,2.6C14.31,2.21 13.16,2 12,2M19,2L15,6V7.5L12.45,10.05C12.3,10 12.15,10 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12C14,11.85 14,11.7 13.95,11.55L16.5,9H18L22,5H19V2M12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18A6,6 0 0,0 18,12H16A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8V6Z"}"
/>`:""}
<text class="main-value ${u}" x="${i}" y="${o}" dominant-baseline="middle" text-anchor="middle">
${j`${h}`}
${B`${h}`}
<tspan class="uom" dx="${c}" dy="${d}">
${j`
${B`
${this.hass.config.unit_system.temperature}
`}
</tspan>
</text>
`}constructor(){super(),this.value={},this._selectTargetTemperature="low",this.current=0,this.humidity=0,this.temperature=0,this.min=7,this.max=35,this.step=.5,this.powerPercent=0,this.meanCyclePower=0,this.valveOpenPercent=0,this.devicePower=0,this.regulatedTargetTemperature=null,this.isOn=!1,this.window=!1,this.windowByPass=!1,this.presence=!1,this.motion=!1,this.overpowering=!1,this.isDeviceActive=!1,this.isSleeping=!1,this.isRegulated=!1,this.isRecalculateScheduled=!1,this.windowState="off",this.windowAutoState="off",this.overpoweringState="off",this.presenceState="off",this.motionState="off",this.safetyState="off",this.status="loading",this.hvacMode=hr,this.hvacAction="idle",this.preset=dr,this.autoRegulationMode="",this.currentAutoFanMode=mr,this.autoFanMode=mr,this.fanMode="",this.hvacOffReason="",this.dragging=!1,this.name="",this.target="value",this._debouncedCallService=((t,e,i=!1)=>{let o;const n=(...n)=>{const a=i&&!o;clearTimeout(o),o=window.setTimeout((()=>{o=void 0,i||t(...n)}),e),a&&t(...n)};return n.cancel=()=>{clearTimeout(o)},n})((t=>this._callService(t)),1e3),this._init=!0,this._firstRender=!0,this._gunmalmgPresetScrollDone=!1,this._ignore=!1,this._hasWindow=!1,this._hasWindowByPass=!1,this._hasPresence=!1,this._hasMotion=!1,this._hasOverpowering=!1,this._hasAutoStartStop=!1,this._isAutoStartStopEnabled=!1,this._isAutoStartStopConfigured=!1,this._isLockConfigured=!1,this._isLocked=!1,this._hasLockCode=!1,this._oldValueMin=0,this._oldValueMax=0,this._display_bottom=0,this._display_top=0,this.modes=[],this.presets=[],this.safety_state={},this.powerInfos=[],this._externalPowerInfos=[],this.autoFanInfos=[],this.messages=[],this.displayMessages=!1,this._hasError=!1,this._renderingAsClassic=!1,this._showThemeMenu=!1,this._showClassicPopup=!1,this.theme="",this.isLocked=!1,this.isUserLocked=!1,this.isAutomationLocked=!1,this.showDigicodeModal=!1,this.enteredCode="",this.codeError=!1,this.isLocking=!1,this.timedPresetDuration=null,this.timedPresetActive=!1,this.timedPresetRemainingTime=null,this.timedPresetPreset=null,this._presetsPanelOpen=!1,this._regulationChartOpen=!1,this._presetTempEntities=[],this._handleKeyDown=t=>{t.key>="0"&&t.key<="9"?this._handleKeypadPress(t.key):"Backspace"===t.key&&this._handleKeypadClear()},this.render=()=>{var t,e,i,o,n;return(null===(t=this._config)||void 0===t?void 0:t.theme)===vr?(console.log("Rendering Gunmalmg theme"),nr(this)):B`
`}constructor(){super(),this.value={},this._selectTargetTemperature="low",this.current=0,this.humidity=0,this.temperature=0,this.min=7,this.max=35,this.step=.5,this.powerPercent=0,this.meanCyclePower=0,this.valveOpenPercent=0,this.devicePower=0,this.regulatedTargetTemperature=null,this.isOn=!1,this.window=!1,this.windowByPass=!1,this.presence=!1,this.motion=!1,this.overpowering=!1,this.isDeviceActive=!1,this.isSleeping=!1,this.isRegulated=!1,this.isRecalculateScheduled=!1,this.windowState="off",this.windowAutoState="off",this.overpoweringState="off",this.presenceState="off",this.motionState="off",this.safetyState="off",this.status="loading",this.hvacMode=ur,this.hvacAction="idle",this.preset=hr,this.autoRegulationMode="",this.currentAutoFanMode=_r,this.autoFanMode=_r,this.fanMode="",this.hvacModeReason="",this.dragging=!1,this.name="",this.target="value",this._debouncedCallService=((t,e,i=!1)=>{let o;const a=(...a)=>{const n=i&&!o;clearTimeout(o),o=window.setTimeout((()=>{o=void 0,i||t(...a)}),e),n&&t(...a)};return a.cancel=()=>{clearTimeout(o)},a})((t=>this._callService(t)),1e3),this._init=!0,this._firstRender=!0,this._gunmalmgPresetScrollDone=!1,this._ignore=!1,this._hasWindow=!1,this._hasWindowByPass=!1,this._hasPresence=!1,this._hasMotion=!1,this._hasOverpowering=!1,this._hasAutoStartStop=!1,this._isAutoStartStopEnabled=!1,this._isAutoStartStopConfigured=!1,this._autoStartStopStopMode=xr,this._autoStartStopStopModeOptions=[],this._isAutoFanPlugin=!1,this._isAutoFanEnabled=!1,this._autoFanSelectedMode="",this._isLockConfigured=!1,this._isLocked=!1,this._hasLockCode=!1,this._oldValueMin=0,this._oldValueMax=0,this._display_bottom=0,this._display_top=0,this.modes=[],this.presets=[],this.safety_state={},this.powerInfos=[],this._externalPowerInfos=[],this.autoFanInfos=[],this.messages=[],this.displayMessages=!1,this._hasError=!1,this._renderingAsClassic=!1,this._showThemeMenu=!1,this._showClassicPopup=!1,this.theme="",this.isLocked=!1,this.isUserLocked=!1,this.isAutomationLocked=!1,this.showDigicodeModal=!1,this.enteredCode="",this.codeError=!1,this.isLocking=!1,this.timedPresetDuration=null,this.timedPresetActive=!1,this.timedPresetRemainingTime=null,this.timedPresetPreset=null,this._presetsPanelOpen=!1,this._regulationChartOpen=!1,this._presetTempEntities=[],this._autoStartStopEditMode=!1,this._handleKeyDown=t=>{t.key>="0"&&t.key<="9"?this._handleKeypadPress(t.key):"Backspace"===t.key&&this._handleKeypadClear()},this.render=()=>{var t,e,i,o,a;return(null===(t=this._config)||void 0===t?void 0:t.theme)===Tr?(console.log("Rendering Gunmalmg theme"),ar(this)):W`
<ha-card class=${bt({[this.hvacMode]:!0,locked:this.isUserLocked,"has-preset-mod":!!(null===(e=this._config)||void 0===e?void 0:e.allow_preset_modification),"has-regulation-chart":!!(null===(i=this._config)||void 0===i?void 0:i.show_regulation_chart)})}
>
${(null===(o=this._config)||void 0===o?void 0:o.disable_menu)?"":B`
${(null===(o=this._config)||void 0===o?void 0:o.disable_menu)?"":W`
<ha-icon-button
class="more-info"
.label=${this.hass.localize("ui.panel.lovelace.cards.show_more_info")}
.path=${Tt}
.path=${St}
@click=${this._toggleThemeMenu}
tabindex="0"
></ha-icon-button>
${this._showThemeMenu?B`
${this._showThemeMenu?W`
<div class="menu-backdrop" @click=${this._closeThemeMenu}></div>
<div class="theme-menu">
<div class="theme-menu-header">
<div class="theme-menu-title" @click=${()=>{this._handleMoreInfo(),this._closeThemeMenu()}}>${_n({hass:this.hass,string:"editor.card.climate.menu_system"})}</div>
<div class="theme-menu-title" @click=${()=>{this._handleMoreInfo(),this._closeThemeMenu()}}>${ma({hass:this.hass,string:"editor.card.climate.menu_system"})}</div>
</div>
<div class="theme-menu-item" style="border-top:1px solid var(--divider-color, #e0e0e0);"></div>
${""}
${(null===(n=this._config)||void 0===n?void 0:n.theme)===vr?B`
${(null===(a=this._config)||void 0===a?void 0:a.theme)===Tr?W`
<div class="theme-menu-item" @click=${()=>{this._menuLockToggle(),this._closeThemeMenu()}}>
${this._isLocked?_n({hass:this.hass,string:"extra_states.unlock"}):_n({hass:this.hass,string:"extra_states.lock"})}
${this._isLocked?ma({hass:this.hass,string:"extra_states.unlock"}):ma({hass:this.hass,string:"extra_states.lock"})}
</div>
${this.timedPresetActive?B`
${this.timedPresetActive?W`
<div class="theme-menu-item" @click=${()=>{this._menuCancelTimedPreset(),this._closeThemeMenu()}}>
${_n({hass:this.hass,string:"extra_states.cancel_timed_preset"})}
${ma({hass:this.hass,string:"extra_states.cancel_timed_preset"})}
</div>
`:""}
`:""}
<div class="theme-menu-item" @click=${()=>this._applyTheme("classic")}>${_n({hass:this.hass,string:"editor.card.climate.theme_classic"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("vtherm")}>${_n({hass:this.hass,string:"editor.card.climate.theme_vtherm"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("uncolored")}>${_n({hass:this.hass,string:"editor.card.climate.theme_uncolored"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("gunmalmg")}>${_n({hass:this.hass,string:"editor.card.climate.theme_gunmalmg"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("classic")}>${ma({hass:this.hass,string:"editor.card.climate.theme_classic"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("vtherm")}>${ma({hass:this.hass,string:"editor.card.climate.theme_vtherm"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("uncolored")}>${ma({hass:this.hass,string:"editor.card.climate.theme_uncolored"})}</div>
<div class="theme-menu-item" @click=${()=>this._applyTheme("gunmalmg")}>${ma({hass:this.hass,string:"editor.card.climate.theme_gunmalmg"})}</div>
</div>
`:""}
`}
@@ -1747,7 +1782,7 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
>
<div class="dialog-content">
<h2 class="dialog-title">
${this.isLocking?_n({hass:this.hass,string:"extra_states.lock"}):_n({hass:this.hass,string:"extra_states.unlock"})} ${this.name}
${this.isLocking?ma({hass:this.hass,string:"extra_states.lock"}):ma({hass:this.hass,string:"extra_states.unlock"})} ${this.name}
</h2>
<div class="code-display ${this.codeError?"error":""}">
<span class="digit ${this.enteredCode.length>0?"filled":""}"></span>
@@ -1756,7 +1791,7 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
<span class="digit ${this.enteredCode.length>3?"filled":""}"></span>
</div>
<div class="error-message ${this.codeError?"visible":""}">
${_n({hass:this.hass,string:"extra_states.code_error"})}
${ma({hass:this.hass,string:"extra_states.code_error"})}
</div>
<div class="keypad">
@@ -1784,7 +1819,7 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
</div>
</ha-dialog>
</ha-card>
`}}connectedCallback(){super.connectedCallback(),this._gunmalmgPresetScrollDone=!1}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleKeyDown)}static async getConfigElement(){return await Promise.resolve().then((function(){return Bb})),document.createElement("versatile-thermostat-ui-card-editor")}static async getStubConfig(t){const e=Object.keys(t.states).filter((t=>["climate"].includes(t.split(".")[0]))),i=e.filter((e=>{var i;return null===(i=t.states[e].attributes)||void 0===i?void 0:i.specific_states}));return{type:"custom:versatile-thermostat-ui-card",entity:i[0]||e[0]}}};function Tr(t){return t+.5|0}kr.styles=[s`
`}}connectedCallback(){super.connectedCallback(),this._gunmalmgPresetScrollDone=!1}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._handleKeyDown)}static async getConfigElement(){return await Promise.resolve().then((function(){return Gb})),document.createElement("versatile-thermostat-ui-card-editor")}static async getStubConfig(t){const e=Object.keys(t.states).filter((t=>["climate"].includes(t.split(".")[0]))),i=e.filter((e=>{var i;return null===(i=t.states[e].attributes)||void 0===i?void 0:i.specific_states}));return{type:"custom:versatile-thermostat-ui-card",entity:i[0]||e[0]}}};function Pr(t){return t+.5|0}Ar.styles=[s`
:host {
display: block;
box-sizing: border-box;
@@ -2170,6 +2205,28 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
color: var(--text-primary-color, #fff);
}
.auto-start-stop-select {
height: 28px;
max-width: 120px;
border: 1px solid var(--divider-color, #e0e0e0);
border-radius: 4px;
padding: 0 4px;
font-size: 13px;
background: var(--card-background-color, #fff);
color: var(--primary-text-color);
outline: none;
cursor: pointer;
transition: border-color 0.2s ease;
}
.auto-start-stop-select:focus {
border-color: var(--primary-color);
}
.auto-start-stop-select.active {
border-color: var(--primary-color);
}
.timed-preset-remaining {
font-size: 16px;
font-weight: 500;
@@ -2258,6 +2315,12 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
width: 40px;
}
.clickable-info-label {
cursor: pointer;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
#vt-control-buttons {
z-index: 0;
position: absolute;
@@ -2805,10 +2868,10 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
}
/* Column colors */
.preset-temp-col-label.col-frost { color: #3a9ff2; }
.preset-temp-col-label.col-eco { color: #5dd461; }
.preset-temp-col-label.col-comfort { color: #f9a21f; }
.preset-temp-col-label.col-boost { color: #f75252; }
.preset-temp-col-label.col-frost, .preset-temp-cell.preset-col-frost { color: #3a9ff2; }
.preset-temp-col-label.col-eco, .preset-temp-cell.preset-col-eco { color: #5dd461; }
.preset-temp-col-label.col-comfort, .preset-temp-cell.preset-col-comfort { color: #f9a21f; }
.preset-temp-col-label.col-boost, .preset-temp-cell.preset-col-boost { color: #f75252; }
.preset-col-frost .preset-step-btn { background: rgba(58,159,242,0.15); color: #3a9ff2; border-color: rgba(58,159,242,0.4); }
.preset-col-frost .preset-step-btn:hover { background: #3a9ff2; color: white; }
@@ -2901,12 +2964,12 @@ const er=270;const ir=new Set(["ArrowRight","ArrowUp","ArrowLeft","ArrowDown","P
fill: var(--hvac-mode-color, #f44336);
}
`,ar,sr],kr.additionalThemeStyles=[sr],t([ut({attribute:!1})],kr.prototype,"hass",void 0),t([ut({type:Number})],kr.prototype,"value",void 0),t([mt()],kr.prototype,"_selectTargetTemperature",void 0),t([ut({type:Number})],kr.prototype,"current",void 0),t([ut({type:Number})],kr.prototype,"humidity",void 0),t([ut({type:Number})],kr.prototype,"temperature",void 0),t([ut({type:Number})],kr.prototype,"min",void 0),t([ut({type:Number})],kr.prototype,"max",void 0),t([ut({type:Number})],kr.prototype,"step",void 0),t([ut({type:Number})],kr.prototype,"powerPercent",void 0),t([ut({type:Number})],kr.prototype,"meanCyclePower",void 0),t([ut({type:Number})],kr.prototype,"valveOpenPercent",void 0),t([ut({type:Number})],kr.prototype,"devicePower",void 0),t([ut({type:Number})],kr.prototype,"regulatedTargetTemperature",void 0),t([ut({type:Boolean})],kr.prototype,"isOn",void 0),t([ut({type:Boolean})],kr.prototype,"window",void 0),t([ut({type:Boolean})],kr.prototype,"windowByPass",void 0),t([ut({type:Boolean})],kr.prototype,"presence",void 0),t([ut({type:Boolean})],kr.prototype,"motion",void 0),t([ut({type:Boolean})],kr.prototype,"overpowering",void 0),t([ut({type:Boolean})],kr.prototype,"isDeviceActive",void 0),t([ut({type:Boolean})],kr.prototype,"isSleeping",void 0),t([ut({type:Boolean})],kr.prototype,"isRegulated",void 0),t([ut({type:Boolean})],kr.prototype,"isRecalculateScheduled",void 0),t([ut({type:String})],kr.prototype,"windowState",void 0),t([ut({type:String})],kr.prototype,"windowAutoState",void 0),t([ut({type:String})],kr.prototype,"overpoweringState",void 0),t([ut({type:String})],kr.prototype,"presenceState",void 0),t([ut({type:String})],kr.prototype,"motionState",void 0),t([ut({type:String})],kr.prototype,"safetyState",void 0),t([ut({type:String})],kr.prototype,"status",void 0),t([ut({type:String})],kr.prototype,"hvacMode",void 0),t([ut({type:String})],kr.prototype,"hvacAction",void 0),t([ut({type:String})],kr.prototype,"preset",void 0),t([ut({type:String})],kr.prototype,"autoRegulationMode",void 0),t([ut({type:String})],kr.prototype,"currentAutoFanMode",void 0),t([ut({type:String})],kr.prototype,"autoFanMode",void 0),t([ut({type:String})],kr.prototype,"fanMode",void 0),t([ut({type:String})],kr.prototype,"hvacOffReason",void 0),t([ut({type:Boolean,reflect:!0})],kr.prototype,"dragging",void 0),t([ut({type:String})],kr.prototype,"name",void 0),t([mt()],kr.prototype,"changingHigh",void 0),t([mt()],kr.prototype,"_hasError",void 0),t([mt()],kr.prototype,"_config",void 0),t([mt()],kr.prototype,"_showThemeMenu",void 0),t([mt()],kr.prototype,"_showClassicPopup",void 0),t([ut({type:String})],kr.prototype,"theme",void 0),t([mt()],kr.prototype,"isLocked",void 0),t([mt()],kr.prototype,"isUserLocked",void 0),t([mt()],kr.prototype,"isAutomationLocked",void 0),t([mt()],kr.prototype,"showDigicodeModal",void 0),t([mt()],kr.prototype,"enteredCode",void 0),t([mt()],kr.prototype,"codeError",void 0),t([mt()],kr.prototype,"isLocking",void 0),t([mt()],kr.prototype,"timedPresetDuration",void 0),t([mt()],kr.prototype,"timedPresetActive",void 0),t([mt()],kr.prototype,"timedPresetRemainingTime",void 0),t([mt()],kr.prototype,"timedPresetPreset",void 0),t([mt()],kr.prototype,"_presetsPanelOpen",void 0),t([mt()],kr.prototype,"_regulationChartOpen",void 0),t([mt()],kr.prototype,"_presetTempEntities",void 0),kr=t([ct("versatile-thermostat-ui-card")],kr);const Sr=(t,e,i)=>Math.max(Math.min(t,i),e);function Mr(t){return Sr(Tr(2.55*t),0,255)}function Dr(t){return Sr(Tr(255*t),0,255)}function Cr(t){return Sr(Tr(t/2.55)/100,0,1)}function Ar(t){return Sr(Tr(100*t),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Er=[..."0123456789ABCDEF"],Lr=t=>Er[15&t],$r=t=>Er[(240&t)>>4]+Er[15&t],zr=t=>(240&t)>>4==(15&t);function Or(t){var e=(t=>zr(t.r)&&zr(t.g)&&zr(t.b)&&zr(t.a))(t)?Lr:$r;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Vr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Hr(t,e,i){const o=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-o*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Rr(t,e,i){const o=(o,n=(o+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[o(5),o(3),o(1)]}function Ir(t,e,i){const o=Hr(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)o[n]*=1-e-i,o[n]+=e;return o}function Nr(t){const e=t.r/255,i=t.g/255,o=t.b/255,n=Math.max(e,i,o),a=Math.min(e,i,o),s=(n+a)/2;let r,l,c;return n!==a&&(c=n-a,l=s>.5?c/(2-n-a):c/(n+a),r=function(t,e,i,o,n){return t===n?(e-i)/o+(e<i?6:0):e===n?(i-t)/o+2:(t-e)/o+4}(e,i,o,c,n),r=60*r+.5),[0|r,l||0,s]}function Fr(t,e,i,o){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,o)).map(Dr)}function Wr(t,e,i){return Fr(Hr,t,e,i)}function Br(t){return(t%360+360)%360}function jr(t){const e=Vr.exec(t);let i,o=255;if(!e)return;e[5]!==i&&(o=e[6]?Mr(+e[5]):Dr(+e[5]));const n=Br(+e[2]),a=+e[3]/100,s=+e[4]/100;return i="hwb"===e[1]?fu Line truncated
`,nr,sr],Ar.additionalThemeStyles=[sr],t([pt({attribute:!1})],Ar.prototype,"hass",void 0),t([pt({type:Number})],Ar.prototype,"value",void 0),t([mt()],Ar.prototype,"_selectTargetTemperature",void 0),t([pt({type:Number})],Ar.prototype,"current",void 0),t([pt({type:Number})],Ar.prototype,"humidity",void 0),t([pt({type:Number})],Ar.prototype,"temperature",void 0),t([pt({type:Number})],Ar.prototype,"min",void 0),t([pt({type:Number})],Ar.prototype,"max",void 0),t([pt({type:Number})],Ar.prototype,"step",void 0),t([pt({type:Number})],Ar.prototype,"powerPercent",void 0),t([pt({type:Number})],Ar.prototype,"meanCyclePower",void 0),t([pt({type:Number})],Ar.prototype,"valveOpenPercent",void 0),t([pt({type:Number})],Ar.prototype,"devicePower",void 0),t([pt({type:Number})],Ar.prototype,"regulatedTargetTemperature",void 0),t([pt({type:Boolean})],Ar.prototype,"isOn",void 0),t([pt({type:Boolean})],Ar.prototype,"window",void 0),t([pt({type:Boolean})],Ar.prototype,"windowByPass",void 0),t([pt({type:Boolean})],Ar.prototype,"presence",void 0),t([pt({type:Boolean})],Ar.prototype,"motion",void 0),t([pt({type:Boolean})],Ar.prototype,"overpowering",void 0),t([pt({type:Boolean})],Ar.prototype,"isDeviceActive",void 0),t([pt({type:Boolean})],Ar.prototype,"isSleeping",void 0),t([pt({type:Boolean})],Ar.prototype,"isRegulated",void 0),t([pt({type:Boolean})],Ar.prototype,"isRecalculateScheduled",void 0),t([pt({type:String})],Ar.prototype,"windowState",void 0),t([pt({type:String})],Ar.prototype,"windowAutoState",void 0),t([pt({type:String})],Ar.prototype,"overpoweringState",void 0),t([pt({type:String})],Ar.prototype,"presenceState",void 0),t([pt({type:String})],Ar.prototype,"motionState",void 0),t([pt({type:String})],Ar.prototype,"safetyState",void 0),t([pt({type:String})],Ar.prototype,"status",void 0),t([pt({type:String})],Ar.prototype,"hvacMode",void 0),t([pt({type:String})],Ar.prototype,"hvacAction",void 0),t([pt({type:String})],Ar.prototype,"preset",void 0),t([pt({type:String})],Ar.prototype,"autoRegulationMode",void 0),t([pt({type:String})],Ar.prototype,"currentAutoFanMode",void 0),t([pt({type:String})],Ar.prototype,"autoFanMode",void 0),t([pt({type:String})],Ar.prototype,"fanMode",void 0),t([pt({type:String})],Ar.prototype,"hvacModeReason",void 0),t([pt({type:Boolean,reflect:!0})],Ar.prototype,"dragging",void 0),t([pt({type:String})],Ar.prototype,"name",void 0),t([mt()],Ar.prototype,"changingHigh",void 0),t([mt()],Ar.prototype,"_hasError",void 0),t([mt()],Ar.prototype,"_config",void 0),t([mt()],Ar.prototype,"_showThemeMenu",void 0),t([mt()],Ar.prototype,"_showClassicPopup",void 0),t([pt({type:String})],Ar.prototype,"theme",void 0),t([mt()],Ar.prototype,"isLocked",void 0),t([mt()],Ar.prototype,"isUserLocked",void 0),t([mt()],Ar.prototype,"isAutomationLocked",void 0),t([mt()],Ar.prototype,"showDigicodeModal",void 0),t([mt()],Ar.prototype,"enteredCode",void 0),t([mt()],Ar.prototype,"codeError",void 0),t([mt()],Ar.prototype,"isLocking",void 0),t([mt()],Ar.prototype,"timedPresetDuration",void 0),t([mt()],Ar.prototype,"timedPresetActive",void 0),t([mt()],Ar.prototype,"timedPresetRemainingTime",void 0),t([mt()],Ar.prototype,"timedPresetPreset",void 0),t([mt()],Ar.prototype,"_presetsPanelOpen",void 0),t([mt()],Ar.prototype,"_regulationChartOpen",void 0),t([mt()],Ar.prototype,"_presetTempEntities",void 0),t([mt()],Ar.prototype,"_autoStartStopEditMode",void 0),Ar=t([dt("versatile-thermostat-ui-card")],Ar);const Er=(t,e,i)=>Math.max(Math.min(t,i),e);function Lr(t){return Er(Pr(2.55*t),0,255)}function $r(t){return Er(Pr(255*t),0,255)}function zr(t){return Er(Pr(t/2.55)/100,0,1)}function Or(t){return Er(Pr(100*t),0,100)}const Vr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Hr=[..."0123456789ABCDEF"],Ir=t=>Hr[15&t],Rr=t=>Hr[(240&t)>>4]+Hr[15&t],Fr=t=>(240&t)>>4==(15&t);function Nr(t){var e=(t=>Fr(t.r)&&Fr(t.g)&&Fr(t.b)&&Fr(t.a))(t)?Ir:Rr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const jr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wr(t,e,i){const o=e*Math.min(i,1-i),a=(e,a=(e+t/30)%12)=>i-o*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function Br(t,e,i){const o=(o,a=(o+t/60)%6)=>i-i*e*Math.max(Math.min(a,4-a,1),0);return[o(5),o(3),o(1)]}function Ur(t,e,i){const o=Wr(t,1,.5);let a;for(e+i>1&&(a=1/(e+i),e*=a,i*=a),a=0;a<3;a++)o[a]*=1-e-i,o[a]+=e;return o}function Yr(t){const e=t.r/255,i=t.g/255,o=t.b/255,a=Math.max(e,i,o),n=Math.min(e,i,o),s=(a+n)/2;let r,l,c;return a!==n&&(c=a-n,l=s>.5?c/(2-a-n):c/(a+n),r=function(t,e,i,o,a){return t===a?(e-i)/o+(e<i?6:0):e===a?(i-t)/o+2:(t-e)/o+4}(e,i,o,c,a),r=60*r+.5),[0|r,l||0,s]}function qr(t,e,i,o){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,o)).map($r)}function Zr(t,e,i){return qr(Wr,t,e,i)}function Xr(t){return(t%360+360)%360}function Kr(t){const e=jr.exec(t);let i,o=255;if(!e)return;e[5]!==i&&(o=e[6]?Lr(+e[5]):$r(+e[5]));const a=Xr Line truncated
<ha-form
.hass=${this.hass}
.data=${a}
.schema=${n}
.data=${n}
.schema=${a}
.computeLabel=${this._computeLabel}
@value-changed=${this._valueChanged}
></ha-form>
`}_valueChanged(t){const e=t.detail.value,{section_all_themes:i,section_classic_only:o}=e,n=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(i[o[n]]=t[o[n]])}return i}(e,["section_all_themes","section_classic_only"]),a=Object.assign(Object.assign(Object.assign({},n),i||{}),o||{});a.theme||(a.theme="classic"),Tn(this,"config-changed",{config:a}),Tn(this,"hass",{config:a})}};Wb.ALL_THEMES_KEYS=["disable_name","disable_safety_warning","set_current_as_main","allow_lock_toggle","disable_timed_preset","use_manual_duration_input","allow_preset_modification","show_regulation_chart"],Wb.CLASSIC_ONLY_KEYS=["disable_window","disable_autoStartStop","disable_overpowering","disable_heat","disable_cool","disable_heat_cool","disable_auto","disable_dry","disable_fan_only","disable_off","disable_sleep","disable_menu","disable_buttons","disable_power_infos","disable_auto_fan_infos","disable_target_icon","disable_presets","show_status_text","show_background_gradient_on_active"],t([mt()],Wb.prototype,"_config",void 0),t([ut({attribute:!1})],Wb.prototype,"hass",void 0),Wb=Hb=t([ct("versatile-thermostat-ui-card-editor")],Wb);var Bb=Object.freeze({__proto__:null,get ClimateCardEditor(){return Wb}});export{kr as VersatileThermostatUi,yr as registerCustomCard};
`}_valueChanged(t){const e=t.detail.value,{section_all_themes:i,section_classic_only:o}=e,a=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(t);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(t,o[a])&&(i[o[a]]=t[o[a]])}return i}(e,["section_all_themes","section_classic_only"]),n=Object.assign(Object.assign(Object.assign({},a),i||{}),o||{});n.theme||(n.theme="classic"),ka(this,"config-changed",{config:n}),ka(this,"hass",{config:n})}};Kb.ALL_THEMES_KEYS=["disable_name","disable_safety_warning","set_current_as_main","allow_lock_toggle","disable_timed_preset","use_manual_duration_input","allow_preset_modification","show_regulation_chart"],Kb.CLASSIC_ONLY_KEYS=["disable_window","disable_autoStartStop","disable_overpowering","disable_heat","disable_cool","disable_heat_cool","disable_auto","disable_dry","disable_fan_only","disable_off","disable_sleep","disable_menu","disable_buttons","disable_power_infos","disable_auto_fan_infos","disable_target_icon","disable_presets","show_status_text","show_background_gradient_on_active"],t([mt()],Kb.prototype,"_config",void 0),t([pt({attribute:!1})],Kb.prototype,"hass",void 0),Kb=Ub=t([dt("versatile-thermostat-ui-card-editor")],Kb);var Gb=Object.freeze({__proto__:null,get ClimateCardEditor(){return Kb}});export{Ar as VersatileThermostatUi,Mr as registerCustomCard};