"description":"C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant."
}
},
"abort":{
"already_configured":"C.A.F.E. is already configured"
"description":"C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant."
}
},
"abort":{
"already_configured":"C.A.F.E. is already configured"
*/var dz=Symbol.for("react.element"),Z3n=Symbol.for("react.portal"),Q3n=Symbol.for("react.fragment"),eCn=Symbol.for("react.strict_mode"),tCn=Symbol.for("react.profiler"),nCn=Symbol.for("react.provider"),rCn=Symbol.for("react.context"),iCn=Symbol.for("react.forward_ref"),oCn=Symbol.for("react.suspense"),sCn=Symbol.for("react.memo"),aCn=Symbol.for("react.lazy"),MLt=Symbol.iterator;function uCn(n){return n===null||typeof n!="object"?null:(n=MLt&&n[MLt]||n["@@iterator"],typeof n=="function"?n:null)}var P$t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j$t=Object.assign,F$t={};function R5(n,i,a){this.props=n,this.context=i,this.refs=F$t,this.updater=a||P$t}R5.prototype.isReactComponent={};R5.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")};R5.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function $$t(){}$$t.prototype=R5.prototype;function dLe(n,i,a){this.props=n,this.context=i,this.refs=F$t,this.updater=a||P$t}var fLe=dLe.prototype=new $$t;fLe.constructor=dLe;j$t(fLe,R5.prototype);fLe.isPureReactComponent=!0;var PLt=Array.isArray,B$t=Object.prototype.hasOwnProperty,hLe={current:null},U$t={key:!0,ref:!0,__self:!0,__source:!0};function H$t(n,i,a){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)B$t.call(i,c)&&!U$t.hasOwnProperty(c)&&(d[c]=i[c]);var w=arguments.length-2;if(w===1)d.children=a;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:dz,type:n,key:g,ref:b,props:d,_owner:hLe.current}}function cCn(n,i){return{$$typeof:dz,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function pLe(n){return typeof n=="object"&&n!==null&&n.$$typeof===dz}function lCn(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(a){returni[a]})}varjLt=/\/+/g;functionJ3e(n,i){returntypeofn=="object"&&n!==null&&n.key!=null?lCn(""+n.key):i.toString(36)}functionMie(n,i,a,c,d){varg=typeofn;(g==="undefined"||g==="boolean")&&(n=null);varb=!1;if(n===null)b=!0;elseswitch(g){case"string":case"number":b=!0;break;case"object":switch(n.$$typeof){casedz:caseZ3n:b=!0}}if(b)returnb=n,d=d(b),n=c===""?"."+J3e(b,0):c,PLt(d)?(a="",n!=null&&(a=n.replace(jLt,"$&/")+"/"),Mie(d,i,a,"",function(S){returnS})):d!=null&&(pLe(d)&&(d=cCn(d,a+(!d.key||b&&b.key===d.key?"":(""+d.key).replace(jLt,"$&/")+"/")+n)),i.push(d)),1;if(b=0,c=c===""?".":c+":",PLt(n))for(varw=0;w<n.length;w++){g=n[w];varE=c+J3e(g,w);b+=Mie(g,i,a,E,d)}elseif(E=uCn(n),typeofE=="function")for(n=E.call(n),w=0;!(g=n.next()).done;)g=g.value,E=c+J3e(g,w++),b+=Mie(g,i,a,E,d);elseif(g==="object")throwi=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.");returnb}functionGre(n,i,a){if(n==null)returnn;varc=[],d=0;returnMie(n,c,"","",function(g){returni.call(a,g,d++)}),c}functiondCn(n){if(n._status===-1){vari=n._result;i=i(),i.then(function(a){(n._status===0||n._status===-1)&&(n._status=1,n._result=a)},function(a){(n._status===0||n._status===-1)&&(n._status=2,n._result=a)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)returnn._result.default;thrown._result}varqg={current:null},Pie={transition:null},fCn={ReactCurrentDispatcher:qg,ReactCurrentBatchConfig:Pie,ReactCurrentOwner:hLe};functionz$t(){throwError("act(...) is not supported in production builds of React.")}Rs.Children={map:Gre,forEach:function(n,i,a){Gre(n,function(){i.apply(this,arguments)},a)},count:function(n){vari=0;returnGre(n,function(){i++}),i},toArray:function(n){returnGre(n,function(i){returni})||[]},only:function(n){if(!pLe(n))throwError("React.Children.only expected to receive a single React element child.");returnn}};Rs.Component=R5;Rs.Fragment=Q3n;Rs.Profiler=tCn;Rs.PureComponent=dLe;Rs.StrictMode=eCn;Rs.Suspense=oCn;Rs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fCn;Rs.act=z$t;Rs.cloneElement=function(n,i,a){if(n==null)throwError("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");varc=j$t({},n.props),d=n.key,g=n.ref,b=n._owner;if(i!=null){if(i.ref!==void0&&(g=i.ref,b=hLe.current),i.key!==void0&&(d=""+i.key),n.type&&n.type.defaultProps)varw=n.type.defaultProps;for(Eini)B$t.call(i,E)&&!U$t.hasOwnProperty(E)&&(c[E]=i[E]===void0&&w!==void0?w[E]:i[E])}varE=arguments.length-2;if(E===1)c.children=a;elseif(1<E){w=Array(E);for(varS=0;S<E;S++)w[S]=arguments[S+2];c.children=w}return{$$typeof:dz,type:n.type,key:d,ref:g,props:c,_owner:b}};Rs.createCoLine 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,a=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>`${g}`)];return new i(...a,d.join(`
`))}}const N7n={major:4,minor:3,patch:5},Wu=cn("$ZodType",(n,i)=>{var d;var a;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=N7n;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)(a=n._zod).deferred??(a.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let k=HM(w),_;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(k)continue;const R=w.issues.length,M=C._zod.check(w);if(M instanceof Promise&&(S==null?void 0:S.async)===!1)throw new t5;if(_||M instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await M,w.issues.length!==R&&(k||(k=HM(w,R)))});else{if(w.issues.length===R)continue;k||(k=HM(w,R))}}return _?_.then(()=>w):w},b=(w,E,S)=>{if(HM(w))return w.aborted=!0,w;const k=g(E,c,S);if(k instanceof Promise){if(S.async===!1)throw new t5;return k.then(_=>n._zod.parse(_,S))}return n._zod.parse(k,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const k=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return k instanceof Promise?k.then(_=>b(_,w,E)):b(k,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new t5;return S.then(k=>g(k,c,E))}return g(S,c,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=Djn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return Ljn(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}))}),IMe=cn("$ZodString",(n,i)=>{var a;Wu.init(n,i),n._zod.pattern=[...((a=n==null?void 0:n._zod.bag)==null?void 0:a.patterns)??[]].pop()??c7n(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)=>{oae.init(n,i),IMe.init(n,i)}),C7n=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=Jjn),Pc.init(n,i)}),I7n=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(`InvalidUUIDversion:"${i.version}"`);i.pattern??(i.pattern=y9t(c))}else i.pattern??(i.pattern=y9t());Pc.init(n,i)}),R7n=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=Xjn),Pc.init(n,i)}),O7n=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=a=>{try{const c=a.value.trim(),d=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:a.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)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:a.value,inst:n,continue:!i.abort})),i.normalize?a.value=d.href:a.value=c;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:n,continue:!i.abort})}}}),D7n=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=Qjn()),Pc.init(n,i)}),L7n=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=Kjn),Pc.init(n,i)}),M7n=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=zjn),Pc.init(n,i)}),P7n=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=Gjn),Pc.init(n,i)}),j7n=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=qjn),Pc.init(n,i)}),F7n=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=Vjn),Pc.init(n,i)}),$7n=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=Wjn),Pc.init(n,i)}),B7n=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=u7n(i)),Pc.init(n,i)}),U7n=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=s7n),Pc.init(n,i)}),H7n=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=a7n(i)),Pc.init(n,i)}),z7n=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=Yjn),Pc.init(n,i)}),G7n=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=e7n),Pc.init(n,i),n._zod.bag.format="ipv4"}),q7n=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=t7n),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:n,continue:!i.abort})}}}),V7n=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=n7n),Pc.init(n,i)}),W7n=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=r7n),Pc.init(n,i),n._zod.check=a=>{const c=a.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{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:n,continue:!i.abort})}}});function TGt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const K7n=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=i7n),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=a=>{TGt(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:
Line truncated
`)}R.write("payload.value = newResult;"),R.write("return payload;");const $=R.compile();return(H,Q)=>$(C,H,Q)};let g;const b=ZH,w=!cGt.jitless,S=w&&vjn.value,k=i.catchall;let _;n._zod.parse=(C,R)=>{_??(_=c.value);const M=C.value;return b(M)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),k?kGt([],M,C,R,_,n):C):a(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:M,inst:n}),C)}});function E9t(n,i,a,c){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!HM(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:a,errors:n.map(g=>g.issues.map(b=>iN(b,c,rN())))}),i)}const xGt=cn("$ZodUnion",(n,i)=>{Wu.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=>kMe(g.source)).join("|")})$`)}});const a=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(a)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=>E9t(E,d,n,g)):E9t(w,d,n,g)}}),cFn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,xGt.init(n,i);const a=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(`Invaliddiscriminatedunionoptionatindex"${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=nae(()=>{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(`Invaliddiscriminatedunionoptionatindex"${i.options.indexOf(w)}"`);for(const S of E){if(g.has(S))throw new Error(`Duplicatediscriminatorvalue"${String(S)}"`);g.set(S,w)}}return g});n._zod.parse=(d,g)=>{const b=d.value;if(!ZH(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?a(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),lFn=cn("$ZodIntersection",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{const d=a.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])=>S9t(a,E,S)):S9t(a,g,b)}});function cDe(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(A5(n)&&A5(i)){const a=Object.keys(i),c=Object.keys(n).filter(g=>a.indexOf(g)!==-1),d={...n,...i};for(const g of c){const b=cDe(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 a=[];for(let c=0;c<n.length;c++){const d=n[c],g=i[c],b=cDe(d,g);if(!b.valid)return{valid:!1,mergeErrorPath:[c,...b.mergeErrorPath]};a.push(b.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function S9t(n,i,a){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 a.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}),HM(n))return n;const b=cDe(i.value,a.value);if(!b.valid)throw new Error(`Unmergableintersection.Errorpath:${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const dFn=cn("$ZodRecord",(n,i)=>{Wu.init(n,i),n._zod.parse=(a,c)=>{const d=a.value;if(!A5(d))return a.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),a;const g=[],b=i.keyType._zod.values;if(b){a.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 k=i.valueType._zod.run({value:d[S],issues:[]},c);k instanceof Promise?g.push(k.then(_=>{_.issues.length&&a.issues.push(...zM(S,_.issues)),a.value[S]=_.value})):(k.issues.length&&a.issues.push(...zM(S,k.issues)),a.value[S]=k.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&a.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{a.value={};for(c
Line truncated
Setthe\`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(constkofn.seen.entries()){const_=k[1];if(i===k[0]){g(k);continue}if(n.external){constR=(E=n.external.registry.get(k[0]))==null?void0:E.id;if(i!==k[0]&&R){g(k);continue}}if((S=n.metadataRegistry.get(k[0]))==null?void0:S.id){g(k);continue}if(_.cycle){g(k);continue}if(_.count>1&&n.reused==="ref"){g(k);continue}}}functionDGt(n,i){varb,w,E;consta=n.seen.get(i);if(!a)thrownewError("Unprocessed schema. This is a bug in Zod.");constc=S=>{constk=n.seen.get(S);if(k.ref===null)return;const_=k.def??k.schema,C={..._},R=k.ref;if(k.ref=null,R){c(R);constD=n.seen.get(R),B=D.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(_.allOf=_.allOf??[],_.allOf.push(B)):Object.assign(_,B),Object.assign(_,C),S._zod.parent===R)for(const$in_)$==="$ref"||$==="allOf"||$inC||delete_[$];if(B.$ref)for(const$in_)$==="$ref"||$==="allOf"||$inD.def&&JSON.stringify(_[$])===JSON.stringify(D.def[$])&&delete_[$]}constM=S._zod.parent;if(M&&M!==R){c(M);constD=n.seen.get(M);if(D!=null&&D.schema.$ref&&(_.$ref=D.schema.$ref,D.def))for(constBin_)B==="$ref"||B==="allOf"||BinD.def&&JSON.stringify(_[B])===JSON.stringify(D.def[B])&&delete_[B]}n.override({zodSchema:S,jsonSchema:_,path:k.path??[]})};for(constSof[...n.seen.entries()].reverse())c(S[0]);constd={};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){constS=(w=n.external.registry.get(i))==null?void0:w.id;if(!S)thrownewError("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,a.def??a.schema);constg=((E=n.external)==null?void0:E.defs)??{};for(constSofn.seen.entries()){constk=S[1];k.def&&k.defId&&(g[k.defId]=k.def)}n.external||Object.keys(g).length>0&&(n.target==="draft-2020-12"?d.$defs=g:d.definitions=g);try{constS=JSON.parse(JSON.stringify(d));returnObject.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:Yoe(i,"input",n.processors),output:Yoe(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{thrownewError("Error converting schema to JSON.")}}functionFg(n,i){consta=i??{seen:newSet};if(a.seen.has(n))return!1;a.seen.add(n);constc=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")returnFg(c.element,a);if(c.type==="set")returnFg(c.valueType,a);if(c.type==="lazy")returnFg(c.getter(),a);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")returnFg(c.innerType,a);if(c.type==="intersection")returnFg(c.left,a)||Fg(c.right,a);if(c.type==="record"||c.type==="map")returnFg(c.keyType,a)||Fg(c.valueType,a);if(c.type==="pipe")returnFg(c.in,a)||Fg(c.out,a);if(c.type==="object"){for(constdinc.shape)if(Fg(c.shape[d],a))return!0;return!1}if(c.type==="union"){for(constdofc.options)if(Fg(d,a))return!0;return!1}if(c.type==="tuple"){for(constdofc.items)if(Fg(d,a))return!0;return!!(c.rest&&Fg(c.rest,a))}return!1}constE$n=(n,i={})=>a=>{constc=RGt({...a,processors:i});returngd(n,c),OGt(c,n),DGt(c,n)},Yoe=(n,i,a={})=>c=>{const{libraryOptions:d,target:g}=c??{},b=RGt({...d??{},target:g,io:i,processors:a});returngd(n,b),OGt(b,n),DGt(b,n)},S$n={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},T$n=(n,i,a,c)=>{constd=a;d.type="string";const{minimum:g,maximum:b,format:w,patterns:E,contentEncoding:S}=n._zod.bag;if(typeofg=="number"&&(d.minLength=g),typeofb=="number"&&(d.maxLength=b),w&&(d.format=S$n[w]??w,d.format===""&&deleted.format,w==="time"&&deleted.format),S&&(d.contentEncoding=S),E&&E.size>0){constk=[...E];k.length===1?d.pattern=k[0].source:k.length>1&&(d.allOf=[...k.map(_=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:_.source}))])}},A$n=(n,i,a,c)=>{constd=a,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:k}=n._zod.bag;typeofw=="string"&&w.includes("int")?d.type="integer":d.type="number",typeofk=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=k,d.exclusiveMinimum=!0):d.exclusiveMinimum=k),typeofg=="number"&&(d.minimum=g,typeofk=="number"&&i.target!=="draft-04"&&(k>=g?deleted.minimum:deleted.exclusiveMinimum)),typeofS=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeofb=="number"&&(d.maximum=b,typeofS=="number"&&i.target!=="draft-04"&&(S<=b?deleted.maximum:deleted.exclusiveMaximum)),typeofE=="number"&&(d.multipleOf=E)},_$n=(n,i,a,c)=>{a.type="boolean"},k$n=(n,i,a,c)=>{i.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},x$n=(n,i,a,c)=>{a.not={}},N$n=(n,i,a,c)=>{},C$n=(n,i,a,c)=Line truncated
`;return w.replace(/\n$/,"")}var gqn=pqn,bqn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],mqn=["scalar","sequence","mapping"];function wqn(n){var i={};return n!==null&&Object.keys(n).forEach(function(a){n[a].forEach(function(c){i[String(c)]=a})}),i}function yqn(n,i){if(i=i||{},Object.keys(i).forEach(function(a){if(bqn.indexOf(a)===-1)throw new ib('Unknown option "'+a+'" 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(a){return a},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=wqn(i.styleAliases||null),mqn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var $p=yqn;function C7t(n,i){var a=[];return n[i].forEach(function(c){var d=a.length;a.forEach(function(g,b){g.tag===c.tag&&g.kind===c.kind&&g.multi===c.multi&&(d=b)}),a[d]=c}),a}function vqn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,a;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,a=arguments.length;i<a;i+=1)arguments[i].forEach(c);return n}function dDe(n){return this.extend(n)}dDe.prototype.extend=function(i){var a=[],c=[];if(i instanceof $p)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&&(a=a.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: [...] })");a.forEach(function(g){if(!(g instanceof $p))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 $p))throw new ib("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var d=Object.create(dDe.prototype);return d.implicit=(this.implicit||[]).concat(a),d.explicit=(this.explicit||[]).concat(c),d.compiledImplicit=C7t(d,"implicit"),d.compiledExplicit=C7t(d,"explicit"),d.compiledTypeMap=vqn(d.compiledImplicit,d.compiledExplicit),d};var Eqn=dDe,Sqn=new $p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(n){return n!==null?n:""}}),Tqn=new $p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(n){return n!==null?n:[]}}),Aqn=new $p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(n){return n!==null?n:{}}}),_qn=new Eqn({explicit:[Sqn,Tqn,Aqn]});function kqn(n){if(n===null)return!0;var i=n.length;return i===1&&n==="~"||i===4&&(n==="null"||n==="Null"||n==="NULL")}function xqn(){return null}function Nqn(n){return n===null}var Cqn=new $p("tag:yaml.org,2002:null",{kind:"scalar",resolve:kqn,construct:xqn,predicate:Nqn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Iqn(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 Rqn(n){return n==="true"||n==="True"||n==="TRUE"}function Oqn(n){return Object.prototype.toString.call(n)==="[object Boolean]"}var Dqn=new $p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Iqn,construct:Rqn,predicate:Oqn,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 Lqn(n){return 48<=n&&n<=57||65<=n&&n<=70||97<=n&&n<=102}function Mqn(n){return 48<=n&&n<=55}function Pqn(n){return 48<=n&&n<=57}function jqn(n){if(n===null)return!1;var i=n.length,a=0,c=!1,d;if(!i)return!1;if(d=n[a],(d==="-"||d==="+")&&(d=n[++a]),d==="0"){if(a+1===i)return!0;if(d=n[++a],d==="b"){for(a++;a<i;a++)if(d=n[a],d!=="_"){if(d!=="0"&&d!=="1")return!1;c=!0}return c&&d!=="_"}if(d==="x"){for(a++;a<i;a++)if(d=n[a],d!=="_"){if(!Lqn(n.charCodeAt(a)))return!1;c=!0}return c&&d!=="_"}if(d==="o"){for(a++;a<i;a++)if(d=n[a],d!=="_"){if(!Mqn(n.charCodeAt(a)))return!1;c=!0}return c&&d!=="_"}}if(d==="_")return!1;for(;a<i;a++)if(d=n[a],d!=="_"){if(!Pqn(n.charCodeAt(a)))return!1;c=!0}return!(!c||d==="_")}function Fqn(n){var i=n,a=1,c;if(i.indexOf("_")!==-1&&(i=i.replace(/_/g,"")),c=i[0],(c==="-"||c==="+")&&(c==="-"&&(a=-1),i=i.slice(1),c=i[0]),i==="0")retur
Line truncated
`: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 xVn(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function Fqt(n,i,a){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):n[i]=a}var $qt=new Array(256),Bqt=new Array(256);for(var mM=0;mM<256;mM++)$qt[mM]=O7t(mM)?1:0,Bqt[mM]=O7t(mM);function NVn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||Dqt,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 Uqt(n,i){var a={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return a.snippet=gqn(a),new ib(i,a)}function ki(n,i){throw Uqt(n,i)}function tse(n,i){n.onWarning&&n.onWarning.call(null,Uqt(n,i))}var D7t={YAML:function(i,a,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&&tse(i,"unsupported YAML version of the document")},TAG:function(i,a,c){var d,g;c.length!==2&&ki(i,"TAG directive accepts exactly two arguments"),d=c[0],g=c[1],Pqt.test(d)||ki(i,"ill-formed tag handle (first argument) of the TAG directive"),sN.call(i.tagMap,d)&&ki(i,'there is a previously declared suffix for "'+d+'" tag handle'),jqt.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 Zx(n,i,a,c){var d,g,b,w;if(i<a){if(w=n.input.slice(i,a),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 EVn.test(w)&&ki(n,"the stream contains non-printable characters");n.result+=w}}function L7t(n,i,a,c){var d,g,b,w;for(vf.isObject(a)||ki(n,"cannot merge mappings; the provided source object is unacceptable"),d=Object.keys(a),b=0,w=d.length;b<w;b+=1)g=d[b],sN.call(i,g)||(Fqt(i,g,a[g]),c[g]=!0)}function qM(n,i,a,c,d,g,b,w,E){var S,k;if(Array.isArray(d))for(d=Array.prototype.slice.call(d),S=0,k=d.length;S<k;S+=1)Array.isArray(d[S])&&ki(n,"nested arrays are not supported inside keys"),typeof d=="object"&&R7t(d[S])==="[object Object]"&&(d[S]="[object Object]");if(typeof d=="object"&&R7t(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,k=g.length;S<k;S+=1)L7t(n,i,g[S],a);else L7t(n,i,g,a);else!n.json&&!sN.call(a,d)&&sN.call(i,d)&&(n.line=b||n.line,n.lineStart=w||n.lineStart,n.position=E||n.position,ki(n,"duplicated mapping key")),Fqt(i,d,g),delete a[d];return i}function e5e(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,a){for(var c=0,d=n.input.charCodeAt(n.position);d!==0;){for(;eR(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(B2(d))for(e5e(n),d=n.input.charCodeAt(n.position),c++,n.lineIndent=0;d===32;)n.lineIndent++,d=n.input.charCodeAt(++n.position);else break}return a!==-1&&c!==0&&n.lineIndent<a&&tse(n,"deficient indentation"),c}function yae(n){var i=n.position,a;return a=n.input.charCodeAt(i),!!((a===45||a===46)&&a===n.input.charCodeAt(i+1)&&a===n.input.charCodeAt(i+2)&&(i+=3,a=n.input.charCodeAt(i),a===0||ub(a)))}function t5e(n,i){i===1?n.result+=" ":i>1&&(n.result+=vf.repeat(`
`,i-1))}function CVn(n,i,a){var c,d,g,b,w,E,S,k,_=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||GM(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)||a&&GM(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)||a&&GM(d))break}else if(R===35){if(c=n.input.charCodeAt(n.position-1),ub(c))break}else{if(n.position===n.lineStart&&yae(n)||a&&GM(R))break;if(B2(R))if(E=n.line,S=n.lineStart,k=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=k;break}}w&&(Zx(n,g,b,!1),t5e(n,n.line-E),g=b=n.position,w=!1),eR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return Zx(n,g,b,!1),n.result?!0:(n.kind=_,n.result=C,!1)}function IVn(n,i){var a,c,d;if(a=n.input.charCodeAt(n.position),a!==39)return!1;for(n.kind="scalar",n.result="",n.position++,c=d=n.position;(a=n.input.charCodeAt(n.position))!==0;)if(a===39)if(Zx(n,c,n.position,!0),a=n.input.charCodeAt(++n.position),a===39)c=n.position,n.position++,d=n.position;else return!0;else B2(a)?(Zx(n,c,d,!0),t5e(n,$d(n,!1,i)),c=d=n.position):n.position===n.lineStart&&yae(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 RVn(n,i){var a,c,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,a=c=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return Zx(n,a,n.position,!0),n.position++,!0;if(w===92){if(Zx(n,a,n.position,!0),w=n.input.charCodeAt(++n.position),B2(w))$d(n,!1,i);else if(w<256&&$qt[w])n.result+=Bqt[w],n.position++;else if((b=_Vn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=AVn(w))>=0?g=(g<<4)+b:ki(n,"expected hexadecimal character");n.result+=xVn(g),n.position++}else ki(n,"unknown escape sequence");a=c=n.position}else B2(w)?(Zx(n,a,c,!0),t5e(n,$d(n,!1,i)),a=c=n.position):n.position===n.lineStart&&yae(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 OVn(n,i){var a=!0,c,d,g,b=n.tag,w,E=n.anchor,S,k,_,C,R,M=Object.create(null),D,B,F,$;if($=n.input.charCodeAt(n.position),$===91)k=93,R=!1,w=[];else if($===123)k=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),$=n.input.charCodeAt(++n.position);$!==0;){if($d(n,!0,i),$=n.input.charCodeAt(n.position),$===k)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;a?$===44&&ki(n,"expected the node content, but found ','"):ki(n,"missed comma between flow collection entries"),B=D=F=null,_=C=!1,$===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(_=C=!0,n.position++,$d(n,!0,i))),c=n.line,d=n.lineStart,g=n.position,k5(n,i,Qoe,!1,!0),B=n.tag,D=n.result,$d(n,!0,i),$=n.input.charCodeAt(n.position),(C||n.line===c)&&$===58&&(_=!0,$=n.input.charCodeAt(++n.position),$d(n,!0,i),k5(n,i,Qoe,!1,!0),F=n.result),R?qM(n,w,M,B,D,F,c,d,g):_?w.push(qM(n,null,M,B,D,F,c,d,g)):w.push(D),$d(n,!0,i),$=n.input.charCodeAt(n.position),$===44?(a=!0,$=n.input.charCodeAt(++n.position)):a=!1}ki(n,"unexpected end of the stream within a flow collection")}function DVn(n,i){var a,c,d=bOe,g=!1,b=!1,w=i,E=0,S=!1,k,_;if(_=n.input.charCodeAt(n.position),_===124)c=!1;else if(_===62)c=!0;else return!1;for(n.kind="scalar",n.result="";_!==0;)if(_=n.input.charCodeAt(++n.position),_===43||_===45)bOe===d?d=_===43?I7t:vVn:ki(n,"repeat of a chomping mode identifier");else if((k=kVn(_))>=0)k===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+k-1,b=!0);else break;if(eR(_)){do _=n.input.charCodeAt(++n.position);while(eR(_));if(_===35)do _=n.input.charCodeAt(++n.position);while(!B2(_)&&_!==0)}for(;_!==0;){for(e5e(n),n.lineIndent=0,_=n.input.charCodeAt(n.position);(!b||n.lineIndent<w)&&_===32;)n.lineIndent++,_=n.input.charCodeAt(++n.position);if(!b&&n.lineIndent>w&&(w=n.lineIndent),B2(_)){E++;continue}if(n.lineIndent<w){d===I7t?n.result+=vf.repeat(`
`,g?1+E:E),g=!0,b=!0,E=0,a=n.position;!B2(_)&&_!==0;)_=n.input.charCodeAt(++n.position);Zx(n,a,n.position,!1)}return!0}function M7t(n,i){var a,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(a=n.line,k5(n,i,Mqt,!1,!0),g.push(n.result),$d(n,!0,-1),E=n.input.charCodeAt(n.position),(n.line===a||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 LVn(n,i,a){var c,d,g,b,w,E,S=n.tag,k=n.anchor,_={},C=Object.create(null),R=null,M=null,D=null,B=!1,F=!1,$;if(n.firstTabInLine!==-1)return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=_),$=n.input.charCodeAt(n.position);$!==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,($===63||$===58)&&ub(c))$===63?(B&&(qM(n,_,C,R,M,null,b,w,E),R=M=D=null),F=!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,$=c;else{if(b=n.line,w=n.lineStart,E=n.position,!k5(n,a,Lqt,!1,!0))break;if(n.line===g){for($=n.input.charCodeAt(n.position);eR($);)$=n.input.charCodeAt(++n.position);if($===58)$=n.input.charCodeAt(++n.position),ub($)||ki(n,"a whitespace character is expected after the key-value separator within a block mapping"),B&&(qM(n,_,C,R,M,null,b,w,E),R=M=D=null),F=!0,B=!1,d=!1,R=n.tag,M=n.result;else if(F)ki(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=S,n.anchor=k,!0}else if(F)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=k,!0}if((n.line===g||n.lineIndent>i)&&(B&&(b=n.line,w=n.lineStart,E=n.position),k5(n,i,ese,!0,d)&&(B?M=n.result:D=n.result),B||(qM(n,_,C,R,M,D,b,w,E),R=M=D=null),$d(n,!0,-1),$=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&$!==0)ki(n,"bad indentation of a mapping entry");else if(n.lineIndent<i)break}return B&&qM(n,_,C,R,M,null,b,w,E),F&&(n.tag=S,n.anchor=k,n.kind="mapping",n.result=_),F}function MVn(n){var i,a=!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?(a=!0,b=n.input.charCodeAt(++n.position)):b===33?(c=!0,d="!!",b=n.input.charCodeAt(++n.position)):d="!",i=n.position,a){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),Pqt.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),TVn.test(g)&&ki(n,"tag suffix cannot contain flow indicator characters")}g&&!jqt.test(g)&&ki(n,"tag name cannot contain such characters: "+g);try{g=decodeURIComponent(g)}catch{ki(n,"tag name is malformed: "+g)}return a?n.tag=g:sN.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 PVn(n){var i,a;if(a=n.input.charCodeAt(n.position),a!==38)return!1;for(n.anchor!==null&&ki(n,"duplication of an anchor property"),a=n.input.charCodeAt(++n.position),i=n.position;a!==0&&!ub(a)&&!GM(a);)a=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 jVn(n){var i,a,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)&&!GM(c);)c=n.input.charCodeAt(++n.position);return n.position===i&&ki(n,"name of an alias node must contain at least one character"),a=n.input.slice(i,n.position),sN.call(n.anchorMap,a)||ki(n,'unidentified alias "'+a+'"'),n.result=n.anchorMap[a],$d(n,!0,-1),!0}function k5(n,i,a,c,d){var g,b,w,E=1,S=!1,k=!1,_,C,R,M,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=ese===a||Mqt===a,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(;MVn(n)||PVn(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||ese===a)&&(Qoe===a||Lqt===a?D=i:D=i+1,B=n.position-n.lineStart,E===1?w&&(M7t(n,B)||LVn(n,B,D))||OVn(n,D)?k=!0:(b&&DVn(n,D)||IVn(n,D)||RVn(n,D)?k=!0:jVn(n)?(k=!0,(n.tag!==null
Line truncated
`),n.charCodeAt(0)===65279&&(n=n.slice(1)));var a=new NVn(n,i),c=n.indexOf("\0");for(c!==-1&&(a.position=c,ki(a,"null byte is not allowed in input")),a.input+="\0";a.input.charCodeAt(a.position)===32;)a.lineIndent+=1,a.position+=1;for(;a.position<a.length-1;)FVn(a);return a.documents}function BVn(n,i){var a=$Vn(n,i);if(a.length!==0){if(a.length===1)return a[0];throw new ib("expected a single document in the stream, but found more")}}var UVn=BVn,HVn={load:UVn},Hqt=Object.prototype.toString,zqt=Object.prototype.hasOwnProperty,n5e=65279,zVn=9,tz=10,GVn=13,qVn=32,VVn=33,WVn=34,fDe=35,KVn=37,YVn=38,JVn=39,XVn=42,Gqt=44,ZVn=45,nse=58,QVn=61,eWn=62,tWn=63,nWn=64,qqt=91,Vqt=93,rWn=96,Wqt=123,iWn=124,Kqt=125,Gp={};Gp[0]="\\0";Gp[7]="\\a";Gp[8]="\\b";Gp[9]="\\t";Gp[10]="\\n";Gp[11]="\\v";Gp[12]="\\f";Gp[13]="\\r";Gp[27]="\\e";Gp[34]='\\"';Gp[92]="\\\\";Gp[133]="\\N";Gp[160]="\\_";Gp[8232]="\\L";Gp[8233]="\\P";var oWn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],sWn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function aWn(n,i){var a,c,d,g,b,w,E;if(i===null)return{};for(a={},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&&zqt.call(E.styleAliases,w)&&(w=E.styleAliases[w]),a[b]=w;return a}function uWn(n){var i,a,c;if(i=n.toString(16).toUpperCase(),n<=255)a="x",c=2;else if(n<=65535)a="u",c=4;else if(n<=4294967295)a="U",c=8;else throw new ib("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+a+vf.repeat("0",c-i.length)+i}var cWn=1,nz=2;function lWn(n){this.schema=n.schema||Dqt,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=aWn(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==='"'?nz:cWn,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 P7t(n,i){for(var a=vf.repeat(" ",i),c=0,d=-1,g="",b,w=n.length;c<w;)d=n.indexOf(`
\r\r`),Qo(E2,AQ,o),Qo(Ax,AQ,_y(o)),o=new bc(4),j6(o,g_t),Qo(E2,fI,o),Qo(Ax,fI,_y(o)),o=new bc(4),j6(o,g_t),Qo(E2,fI,o),Qo(Ax,fI,_y(o)),o=new bc(4),j6(o,b_t),xy(o,l(ma(E2,fI),122)),Qo(E2,TQ,o),Qo(Ax,TQ,_y(o)),o=new bc(4),j6(o,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Qo(E2,_Q,o),Qo(Ax,_Q,_y(o)),o=new bc(4),j6(o,b_t),Ea(o,95,95),Ea(o,58,58),Qo(E2,kQ,o),Qo(Ax,kQ,_y(o))),r=l(ma(t?E2:Ax,e),140),r}function MEt(e){t0(e,new Xb(fq(nO(Zm(Ym(Xm(Jm(new wb,$t),"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 sUe),$t),Ar((iT(),Ire),Z(X(iM,1),Ce,235,0,[mU,rM,nM,Cre,bU,gU]))))),Oe(e,$t,dye,ze(Ete)),Oe(e,$t,fye,ze(RAe)),Oe(e,$t,hye,ze(wL)),Oe(e,$t,pye,ze(od)),Oe(e,$t,RX,ze(o2)),Oe(e,$t,yZ,ze(mm)),Oe(e,$t,gye,ze(Qy)),Oe(e,$t,bye,ze(ix)),Oe(e,$t,mye,ze(ox)),Oe(e,$t,wye,ze(Ste)),Oe(e,$t,F0,ze(wm)),Oe(e,$t,yye,ze(Tte)),Oe(e,$t,vye,ze(UI)),Oe(e,$t,Eye,ze(yB)),Oe(e,$t,zwe,ze(mL)),Oe(e,$t,qwe,ze(Zy)),Oe(e,$t,Gwe,ze($1)),Oe(e,$t,Vwe,ze(ev)),Oe(e,$t,xD,Re(0)),Oe(e,$t,Wwe,ze(rx)),Oe(e,$t,Kwe,ze(IAe)),Oe(e,$t,Ywe,ze(PT)),Oe(e,$t,vp,ze(BAe)),Oe(e,$t,yF,ze(DAe)),Oe(e,$t,vF,ze(LAe)),Oe(e,$t,YC,ze(_te)),Oe(e,$t,tZ,ze(MAe)),Oe(e,$t,nZ,ze(PAe)),Oe(e,$t,EF,ze(vB)),Oe(e,$t,SF,ze(kte)),Oe(e,$t,TF,ze(FAe)),Oe(e,$t,AF,ze(jAe)),Oe(e,$t,rZ,ze($Ae)),Oe(e,$t,iZ,ze(yAe)),Oe(e,$t,oZ,ze(mte)),Oe(e,$t,sZ,ze(pB)),Oe(e,$t,aZ,ze(wte)),Oe(e,$t,YX,ze(iw)),Oe(e,$t,JX,ze(BI)),Oe(e,$t,bF,ze(gte)),Oe(e,$t,mF,ze(uAe)),Oe(e,$t,CD,ze(yIt)),Oe(e,$t,ID,ze(vIt)),Oe(e,$t,RD,ze(wIt)),Oe(e,$t,OD,ze(mIt)),Oe(e,$t,B0,OAe),Oe(e,$t,$0,_Ae),Oe(e,$t,FD,oAe),Oe(e,$t,Sye,0),Oe(e,$t,aF,Re(1)),Oe(e,$t,bk,gk),Oe(e,$t,Tye,ze(bm)),Oe(e,$t,uF,ze(Zr)),Oe(e,$t,Aye,ze(nx)),Oe(e,$t,$D,ze(aIt)),Oe(e,$t,_ye,ze(Wf)),Oe(e,$t,kF,ze(Vy)),Oe(e,$t,GC,(Lt(),!0)),Oe(e,$t,kye,ze(Wy)),Oe(e,$t,xye,ze(pm)),Oe(e,$t,ME,ze(gm)),Oe(e,$t,pT,ze(wB)),Oe(e,$t,yk,ze(vte)),Oe(e,$t,vZ,iAe),Oe(e,$t,vk,ze(rw)),Oe(e,$t,Nye,ze(bB)),Oe(e,$t,Ek,ze(Jy)),Oe(e,$t,Cye,ze(hIt)),Oe(e,$t,Iye,ze(NAe)),Oe(e,$t,Rye,xAe),Oe(e,$t,Oye,ze(lIt)),Oe(e,$t,Dye,ze(dIt)),Oe(e,$t,Lye,ze(fIt)),Oe(e,$t,Mye,ze(cIt)),Oe(e,$t,Iwe,ze(Ate)),Oe(e,$t,PD,ze(hB)),Oe(e,$t,BX,ze(bL)),Oe(e,$t,Cwe,ze(HI)),Oe(e,$t,Owe,ze(Ns)),Oe(e,$t,MD,ze(MT)),Oe(e,$t,KC,ze(jI)),Oe(e,$t,Mwe,ze(ex)),Oe(e,$t,Bwe,ze(tAe)),Oe(e,$t,qX,ze(fte)),Oe(e,$t,pF,ze(gL)),Oe(e,$t,GX,ze(hte)),Oe(e,$t,_we,ze(vAe)),Oe(e,$t,kwe,ze(EAe)),Oe(e,$t,hF,ze(pAe)),Oe(e,$t,PE,ze(mB)),Oe(e,$t,WX,ze(yte)),Oe(e,$t,Awe,ze(bte)),Oe(e,$t,KX,ze(TAe)),Oe(e,$t,Uwe,ze(aAe)),Oe(e,$t,Hwe,ze(pte)),Oe(e,$t,xF,ze(dte)),Oe(e,$t,VX,ze(SAe)),Oe(e,$t,Jwe,ze(aB)),Oe(e,$t,Xwe,ze(XTe)),Oe(e,$t,ZX,ze(sB)),Oe(e,$t,wF,ze(dAe)),Oe(e,$t,QX,ze(lAe)),Oe(e,$t,eZ,ze(fAe)),Oe(e,$t,gT,ze(tx)),Oe(e,$t,Pye,ze(rs)),Oe(e,$t,jye,ze(Ag)),Oe(e,$t,Fye,ze(Kf)),Oe(e,$t,ND,ze(i2)),Oe(e,$t,zX,ze(nAe)),Oe(e,$t,$ye,ze(_g)),Oe(e,$t,Bye,ze(DI)),Oe(e,$t,Uye,ze(fB)),Oe(e,$t,Hye,ze(ow)),Oe(e,$t,EZ,ze(kAe)),Oe(e,$t,SZ,ze(Ky)),Oe(e,$t,FX,ze(bAe)),Oe(e,$t,$X,ze(mAe)),Oe(e,$t,NF,ze(Xy)),Oe(e,$t,xwe,ze(ate)),Oe(e
Line truncated
`,H2t=`)]}"'\r
`,z2t="The given string contains parts that cannot be parsed as numbers.",LD="org.eclipse.elk.core.math",G2t={3:1,4:1,125:1,216:1,419:1},q2t={3:1,4:1,100:1,216:1,419:1},vg="org.eclipse.elk.alg.layered.graph.transform",V2t="ElkGraphImporter",W2t="ElkGraphImporter/lambda$1$Type",K2t="ElkGraphImporter/lambda$2$Type",Y2t="ElkGraphImporter/lambda$4$Type",Jt="org.eclipse.elk.alg.layered.intermediate",J2t="Node margin calculation",X2t="ONE_SIDED_GREEDY_SWITCH",Z2t="TWO_SIDED_GREEDY_SWITCH",LX="No implementation is available for the layout processor ",MX="IntermediateProcessorStrategy",PX="Node '",Q2t="FIRST_SEPARATE",eSt="LAST_SEPARATE",tSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",VC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",WC={223:1},mT="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",fF="org.eclipse.elk.alg.layered.intermediate.preserveorder",Hf="org.eclipse.elk.alg.layered.intermediate.wrapping",Fs="org.eclipse.elk.alg.layered.options",jX="INTERACTIVE",Swe="GREEDY",nSt="DEPTH_FIRST",rSt="EDGE_LENGTH",iSt="SELF_LOOPS",oSt="firstTryWithInitialOrder",Twe="org.eclipse.elk.layered.directionCongruency",Awe="org.eclipse.elk.layered.feedbackEdges",hF="org.eclipse.elk.layered.interactiveReferencePoint",_we="org.eclipse.elk.layered.mergeEdges",kwe="org.eclipse.elk.layered.mergeHierarchyEdges",xwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Nwe="org.eclipse.elk.layered.portSortingStrategy",Cwe="org.eclipse.elk.layered.thoroughness",Iwe="org.eclipse.elk.layered.unnecessaryBendpoints",Rwe="org.eclipse.elk.layered.generatePositionAndLayerIds",MD="org.eclipse.elk.layered.cycleBreaking.strategy",PD="org.eclipse.elk.layered.layering.strategy",Owe="org.eclipse.elk.layered.layering.layerConstraint",Dwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",Lwe="org.eclipse.elk.layered.layering.layerId",FX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",$X="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",BX="org.eclipse.elk.layered.layering.nodePromotion.strategy",UX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",HX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",KC="org.eclipse.elk.layered.crossingMinimization.strategy",Mwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",zX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",GX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Pwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",jwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Fwe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",$we="org.eclipse.elk.layered.crossingMinimization.positionId",Bwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",qX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",pF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",gF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",VX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",WX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",KX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",YX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",JX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Uwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Hwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bF="org.eclipse.elk.layered.edgeRouting.splines.mode",mF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",XX="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",zwe="org.eclipse.elk.layered.spacing.baseValue",Gwe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",qwe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Vwe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Wwe="org.eclipse.elk.layered.priority.direction",Kwe="org.eclipse.elk.layered.priority.shortness",Ywe="org.eclipse.elk.layered.priority.straightness",ZX="org.eclipse.elk.layered.compaction.connectedComponents",Jwe="org.eclipse.elk.layered.compaction.postCompaction.strategy",Xwe="org.eclipse.elk.layered.compaction.postCompaction.constraints",wF="org.eclipse.elk.layered.highDegreeNodes.treatment",QX="org.eclipse.elk.layered.highDegreeNodes.threshold",eZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",vp="org.eclipse.elk.layered.wrapping.strategy",yF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",vF="org.eclipse.elk.layered.wrapping.correctionFactor",YC="org.eclipse.elk.layered.wrapping.cutting.strategy",tZ="org.eclipse.elk.layered.wrapping.cutting.cuts",nZ="org.eclipse.elk.layered.wrapping.cut
Line truncated
start=`,ga(t,this.i),t.a+=`
end=`,ga(t,this.a),t.a+=`
nodeStartEdge=`,ga(t,this.e),t.a+=`
startEndEdge=`,ga(t,this.j),t.a+=`
originalEdge=`,ga(t,this.f),t.a+=`
startInLayerDummy=`,ga(t,this.k),t.a+=`
startInLayerEdge=`,ga(t,this.n),t.a+=`
endInLayerDummy=`,ga(t,this.b),t.a+=`
endInLayerEdge=`,ga(t,this.c),t.a},x(Hf,"BreakingPointInserter/BPInfo",318),A(657,1,{657:1},aJe),h.a=!1,h.b=0,h.c=0,x(Hf,"BreakingPointInserter/Cut",657),A(1523,1,_r,eUe),h.If=function(t,r){FEn(l(t,37),r)},x(Hf,"BreakingPointProcessor",1523),A(1524,1,Ln,XBe),h.Mb=function(t){return Wdt(l(t,9))},x(Hf,"BreakingPointProcessor/0methodref$isEnd$Type",1524),A(1525,1,Ln,tUe),h.Mb=function(t){return Kdt(l(t,9))},x(Hf,"BreakingPointProcessor/1methodref$isStart$Type",1525),A(1526,1,_r,nUe),h.If=function(t,r){a2n(this,l(t,37),r)},x(Hf,"BreakingPointRemover",1526),A(1527,1,tn,rUe),h.Ad=function(t){l(t,134).k=!0},x(Hf,"BreakingPointRemover/lambda$0$Type",1527),A(805,1,{},bme),h.b=0,h.e=0,h.f=0,h.j=0,x(Hf,"GraphStats",805),A(806,1,{},Tue),h.Te=function(t,r){return b.Math.max(ue(ce(t)),ue(ce(r)))},x(Hf,"GraphStats/0methodref$max$Type",806),A(807,1,{},Aue),h.Te=function(t,r){return b.Math.max(ue(ce(t)),ue(ce(r)))},x(Hf,"GraphStats/2methodref$max$Type",807),A(1709,1,{},iUe),h.Te=function(t,r){return Jrn(ce(t),ce(r))},x(Hf,"GraphStats/lambda$1$Type",1709),A(1710,1,{},ZYe),h.Kb=function(t){return Qgt(this.a,l(t,26))},x(Hf,"GraphStats/lambda$2$Type",1710),A(1711,1,{},QYe),h.Kb=function(t){return rwt(this.a,l(t,26))},x(Hf,"GraphStats/lambda$6$Type",1711),A(808,1,{},_ue),h.mg=function(t,r){var o;return o=l(j(t,(Be(),MAe)),16),o||(St(),St(),No)},h.ng=function(){return!1},x(Hf,"ICutIndexCalculator/ManualCutIndexCalculator",808),A(810,1,{},kue),h.mg=function(t,r){var o,s,u,f,p,m,y,v,T,N,I,L,U,G,J,ne,oe,le,Ee;for(Ee=(r.n==null&&k1t(r),r.n),y=(r.d==null&&k1t(r),r.d),le=me(Ki,Wo,30,Ee.length,15,1),le[0]=Ee[0],ne=Ee[0],v=1;v<Ee.length;v++)le[v]=le[v-1]+Ee[v],ne+=Ee[v];for(u=nmt(r)-1,p=l(j(t,(Be(),PAe)),15).a,s=Oi,o=new Pe,I=b.Math.max(0,u-p);I<=b.Math.min(r.f-1,u+p);I++){if(G=ne/(I+1),J=0,T=1,f=new Pe,oe=Oi,N=0,m=0,U=y[0],I==0)oe=ne,m=(r.g==null&&(r.g=oht(r,new Aue)),ue(r.g));else{for(;T<r.f;)le[T-1]-J>=G&&(je(f,Re(T)),oe=b.Math.max(oe,le[T-1]-N),m+=U,J+=le[T-1]-J,N=le[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}L=b.Math.min(1/oe,1/r.b/m),L>s&&(s=L,o=f)}return o},h.ng=function(){return!1},x(Hf,"MSDCutIndexHeuristic",810),A(1664,1,_r,oUe),h.If=function(t,r){KAn(l(t,37),r)},x(Hf,"SingleEdgeGraphWrapper",1664),A(233,23,{3:1,34:1,23:1,233:1},QN);var KE,Vk,Wk,Hy,TI,YE,Kk=fn(Fs,"CenterEdgeLabelPlacementStrategy",233,bn,ldn,hrn),bNt;A(427,23,{3:1,34:1,23:1,427:1},vle);var CSe,Cee,ISe=fn(Fs,"ConstraintCalculationStrategy",427,bn,Ian,frn),mNt;A(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},u8),h.bg=function(){return H0t(this)},h.og=function(){return H0t(this)};var oL,AI,RSe,OSe,DSe=fn(Fs,"CrossingMinimizationStrategy",302,bn,Bcn,brn),wNt;A(351,23,{3:1,34:1,23:1,351:1},Cq);var LSe,Iee,q$,MSe=fn(Fs,"CuttingStrategy",351,bn,xun,mrn),yNt;A(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return Wwt(this)},h.og=function(){return Wwt(this)};var Ree,PSe,Oee,Dee,Lee,Mee,Pee,jee,sL,jSe=fn(Fs,"CycleBreakingStrategy",268,bn,Efn,wrn),vNt;A(424,23,{3:1,34:1,23:1,424:1},Ele);var V$,FSe,$Se=fn(Fs,"DirectionCongruency",424,bn,Ran,yrn),ENt;A(452,23,{3:1,34:1,23:1,452:1},Iq);var Yk,Fee,JE,SNt=fn(Fs,"EdgeConstraint",452,bn,Nun,vrn),TNt;A(286,23,{3:1,34:1,23:1,286:1},e3);var $ee,Bee,Uee,Hee,W$,zee,BSe=fn(Fs,"EdgeLabelSideSelection",286,bn,adn,Ern),ANt;A(479,23,{3:1,34:1,23:1,479:1},Sle);var K$,USe,HSe=fn(Fs,"EdgeStraighteningStrategy",479,bn,Oan,Srn),_Nt;A(284,23,{3:1,34:1,23:1,284:1},t3);var Gee,zSe,GSe,Y$,qSe,VSe,WSe=fn(Fs,"FixedAlignment",284,bn,udn,Trn),kNt;A(285,23,{3:1,34:1,23:1,285:1},n3);var KSe,YSe,JSe,XSe,_I,ZSe,QSe=fn(Fs,"GraphCompactionStrategy",285,bn,cdn,Arn),xNt;A(262,23,{3:1,34:1,23:1,262:1},jw);var Jk,J$,Xk,rl,kI,X$,Zk,XE,Z$,xI,qee=fn(Fs,"GraphProperties",262,bn,Hfn,_rn),NNt;A(303,23,{3:1,34:1,23:1,303:1},Rq);var aL,Vee,Wee,Kee=fn(Fs,"GreedySwitchType",303,bn,kun,krn),CNt;A(330,23,{3:1,34:1,23:1,330:1},Oq);var zy,eTe,uL,Yee=fn(Fs,"GroupOrderStrategy",330,bn,Aun,xrn),INt;A(316,23,{3:1,34:1,23:1,316:1},Dq);var _T,cL,ZE,RNt=fn(Fs,"InLayerConstraint",316,bn,_un,Nrn),ONt;A(425,23,{3:1,34:1,23:1,425:1},Tle);var Jee,tTe,nTe=fn(Fs,"InteractiveReferencePoint",425,bn,xan,Crn),DNt,rTe,kT,Q0,lL,Q$,iTe,oTe,eB,sTe,xT,tB,NI,NT,Tp,Xee,nB,Us,aTe,j1,_a,Zee,Qee,dL,dm,ew,CT,uTe,LNt,IT,fL,Gy,Cd,Nl,ete,QE,F1,Nr,mr,cTe,lTe,dTe,fTe,hTe,tte,rB,Nu,tw,nte,RT,CI,Tg,e2,nw,t2,n2,Qk,fm,pTe,rte,ite,II,OT,iB,DT,r2;A(166,23,{3:1,34:1,23:1,166:1},pO);var RI,Ap,OI,hm,hL,gTe=fn(Fs,"LayerConstraint",166,bn,Mln,Irn),MNt;A(428,23,{3:1,34:1,23:1,428:1},Ale);var ote,ste,bTe=fn(Fs,"LayerUnzippingStrategy",428,bn,Nan,Rrn),PNt;A(851,1,td,mWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Twe),""),"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."),CTe),(A1(),$r)),$Se),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Awe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by
Line truncated
`;return u};var j3n=x(XC,"TGraph",121);A(640,497,{3:1,497:1,640:1,105:1,151:1}),x(XC,"TShape",640),A(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},MK),h.Ib=function(){return Pb(this)};var DB=x(XC,"TNode",41);A(239,1,Eh,Xh),h.Ic=function(t){co(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},x(XC,"TNode/2",239),A(335,1,Wi,qv),h.Nb=function(t){oo(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return rO(this.a)},h.Qb=function(){cK(this.a)},x(XC,"TNode/2/1",335),A(1910,1,_r,hHe),h.If=function(t,r){ZNn(this,l(t,121),r)},x(Ta,"CompactionProcessor",1910),A(1911,1,Un,MJe),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 Mn(this)},x(Ta,"CompactionProcessor/lambda$0$Type",1911),A(1912,1,Ln,Ett),h.Mb=function(t){return Aan(this.b,this.a,l(t,49))},h.a=0,h.b=0,x(Ta,"CompactionProcessor/lambda$1$Type",1912),A(1921,1,Un,pHe),h.Le=function(t,r){return hsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$10$Type",1921),A(1922,1,Un,gHe),h.Le=function(t,r){return Otn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$11$Type",1922),A(1923,1,Un,bHe),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 Mn(this)},x(Ta,"CompactionProcessor/lambda$12$Type",1923),A(1913,1,Ln,PJe),h.Mb=function(t){return wtn(this.a,l(t,49))},h.a=0,x(Ta,"CompactionProcessor/lambda$2$Type",1913),A(1914,1,Ln,jJe),h.Mb=function(t){return ytn(this.a,l(t,49))},h.a=0,x(Ta,"CompactionProcessor/lambda$3$Type",1914),A(1915,1,Ln,mHe),h.Mb=function(t){return l(t,41).c.indexOf(RF)==-1},x(Ta,"CompactionProcessor/lambda$4$Type",1915),A(1916,1,{},FJe),h.Kb=function(t){return Scn(this.a,l(t,41))},h.a=0,x(Ta,"CompactionProcessor/lambda$5$Type",1916),A(1917,1,{},$Je),h.Kb=function(t){return Rdn(this.a,l(t,41))},h.a=0,x(Ta,"CompactionProcessor/lambda$6$Type",1917),A(1918,1,Un,BJe),h.Le=function(t,r){return Bln(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$7$Type",1918),A(1919,1,Un,UJe),h.Le=function(t,r){return Uln(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$8$Type",1919),A(1920,1,Un,wHe),h.Le=function(t,r){return Dtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Mn(this)},x(Ta,"CompactionProcessor/lambda$9$Type",1920),A(1908,1,_r,yHe),h.If=function(t,r){qSn(l(t,121),r)},x(Ta,"DirectionProcessor",1908),A(x1,1,_r,hit),h.If=function(t,r){dAn(this,l(t,121),r)},x(Ta,"FanProcessor",x1),A(1263,1,_r,vHe),h.If=function(t,r){Fwt(l(t,121),r)},x(Ta,"GraphBoundsProcessor",1263),A(1264,1,{},EHe),h.We=function(t){return l(t,41).e.a},x(Ta,"GraphBoundsProcessor/lambda$0$Type",1264),A(1265,1,{},SHe),h.We=function(t){return l(t,41).e.b},x(Ta,"GraphBoundsProcessor/lambda$1$Type",1265),A(1266,1,{},THe),h.We=function(t){return QQt(l(t,41))},x(Ta,"GraphBoundsProcessor/lambda$2$Type",1266),A(1267,1,{},AHe),h.We=function(t){return een(l(t,41))},x(Ta,"GraphBoundsProcessor/lambda$3$Type",1267),A(265,23,{3:1,34:1,23:1,265:1,177:1},n0),h.bg=function(){switch(this.g){case 0:return new $Ze;case 1:return new hit;case 2:return new FZe;case 3:return new CHe;case 4:return new kHe;case 8:return new _He;case 5:return new yHe;case 6:return new RHe;case 7:return new hHe;case 9:return new vHe;case 10:return new OHe;default:throw K(new jt(LX+(this.f!=null?this.f:""+this.g)))}};var y_e,v_e,E_e,S_e,T_e,A_e,__e,k_e,x_e,N_e,Wte,F3n=fn(Ta,MX,265,bn,wht,Qrn),$4t;A(1907,1,_r,_He),h.If=function(t,r){Jxn(l(t,121),r)},x(Ta,"LevelCoordinatesProcessor",1907),A(1905,1,_r,kHe),h.If=function(t,r){g2n(this,l(t,121),r)},h.a=0,x(Ta,"LevelHeightProcessor",1905),A(1906,1,Eh,xHe),h.Ic=function(t){co(this,t)},h.Jc=function(){return St(),HA(),Uk},x(Ta,"LevelHeightProcessor/1",1906),A(1901,1,_r,FZe),h.If=function(t,r){NSn(this,l(t,121),r)},x(Ta,"LevelProcessor",1901),A(1902,1,Ln,NHe),h.Mb=function(t){return Ke(We(j(l(t,41),(xr(),z1))))},x(Ta,"LevelProcessor/lambda$0$Type",1902),A(1903,1,_r,CHe),h.If=function(t,r){vyn(this,l(t,121),r)},h.a=0,x(Ta,"NeighborsProcessor",1903),A(1904,1,Eh,IHe),h.Ic=function(t){co(this,t)},h.Jc=function(){return St(),HA(),Uk},x(Ta,"NeighborsProcessor/1",1904),A(1909,1,_r,RHe),h.If=function(t,r){cAn(this,l(t,121),r)},h.a=0,x(Ta,"NodePositionProcessor",1909),A(1899,1,_r,$Ze),h.If=function(t,r){J_n(this,l(t,121),r)},x(Ta,"RootProcessor",1899),A(1924,1,_r,OHe),h.If=function(t,r){ibn(l(t,121),r)},x(Ta,"Untreeifyer",1924),A(386,23,{3:1,34:1,23:1,386:1},Hq);var _L,Kte,C_e,I_e=fn(BD,"EdgeRoutingMode",386,bn,Pun,ein),B4t,kL,ux,Yte,R_e,O_e,Jte,Xte,D_e,Zte,L_e,Qte,e4,ene,LB,MB,sd,Id,cx,t4,n4,xg,M_e,U4t,tne,z1,xL,NL;A(854,1,td,jWe),h.tf=function(t){st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Yye),""),NSt),"Turns on Tree c
Line truncated
`),u.length!=2)throw K(new jt("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=yy(vy(u[0])),this.b=yy(vy(u[1]))}catch(f){throw f=ci(f),se(f,133)?(o=f,K(new jt(z2t+o))):K(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=x(LD,"KVector",8);A(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Du,F9,Prt),h.Nc=function(){return lpn(this)},h.ag=function(t){var r,o,s,u,f,p;s=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}|||
`),ec(this);try{for(o=0,f=0,u=0,p=0;o<s.length;)s[o]!=null&&vy(s[o]).length>0&&(f%2==0?u=yy(s[o]):p=yy(s[o]),f>0&&f%2!=0&&Gn(this,new Le(u,p)),++f),++o}catch(m){throw m=ci(m),se(m,133)?(r=m,K(new jt("The given string does not match the expected format for vectors."+r))):K(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 Rxe=x(LD,"KVectorChain",79);A(259,23,{3:1,34:1,23:1,259:1},r3);var rre,ZB,QB,ML,PL,eU,Oxe=fn(Pa,"Alignment",259,bn,hdn,Oin),p6t;A(984,1,td,YWe),h.tf=function(t){Nyt(t)};var Dxe,ire,g6t,Lxe,Mxe,b6t,Pxe,m6t,w6t,jxe,Fxe,y6t;x(Pa,"BoxLayouterOptions",984),A(985,1,{},mGe),h.uf=function(){var t;return t=new vGe,t},h.vf=function(t){},x(Pa,"BoxLayouterOptions/BoxFactory",985),A(300,23,{3:1,34:1,23:1,300:1},i3);var f4,ore,h4,p4,g4,sre,are=fn(Pa,"ContentAlignment",300,bn,fdn,Din),v6t;A(696,1,td,Lue),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,eTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),BT)),Ye),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,tTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),H3n),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,_ye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),$xe),$r),Oxe),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,bk),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Vve),""),"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),Rxe),ct(Rd)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,xF),""),"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."),Uxe),$T),are),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$D),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,vZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Hxe),$r),w4),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,FD),""),"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."),qxe),$r),vre),ct(xt)))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,Gve),""),"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(pt(Qe(nt(et(tt(new Xe,kF),""),"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`."),Wxe),$r),PNe),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,$0),""),"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."),iNe),lf),j2e),Ar(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(pt(Qe(nt(et(tt(new Xe,mk),""),"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(pt(Qe(nt(et(tt(new Xe,CF),""),"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(pt(Qe(nt(et(tt(new Xe,wk),""),"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
${Q}`:""}`});returnconsole.error("Zod validation error details:",P),{success:!1,errors:P,warnings:a,hadMetadata:g}}const$=qGt(F.data);return$.valid?{success:!0,graph:F.data,warnings:a,hadMetadata:g}:{success:!1,errors:$.errors,warnings:a,hadMetadata:g}}catch(c){returnconsole.error("YAML parsing error:",c),console.error("YAML string:",i),{success:!1,errors:[cinstanceofError?c.message:"Unknown parsing error"],warnings:a,hadMetadata:!1}}}extractMetadata(i){try{leta;if(typeofi.variables=="object"&&i.variables!==null&&(a=i.variables),a&&typeofa=="object"&&"_cafe_metadata"ina&&typeofa._cafe_metadata=="object"&&a._cafe_metadata!==null){constc=a._cafe_metadata,d=zGt.safeParse(c);if(d.success)returnd.data}}catch{}returnnull}extractUserVariables(i){consta={};if(typeofi.variables=="object"&&i.variables!==null){constc=i.variables;for(const[d,g]ofObject.entries(c))d!=="_cafe_metadata"&&(a[d]=g)}returna}detectStateMachineFormat(i){consta=i.actions||i.action;if(!Array.isArray(a))return!1;letc=!1,d=!1;for(constgofa){constb=g;if(b.variables){constw=b.variables;"current_node"inw&&"flow_context"inw&&(c=!0)}if(b.repeat){constE=b.repeat.sequence;if(Array.isArray(E))for(constSofE){constk=S;if(Array.isArray(k.choose)){d=!0;break}}}}returnc&&d}parseStateMachineStructure(i,a,c){constd=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))returna.push("No actions found in automation"),{nodes:d,edges:g};letw=null;constE=newMap;for(constFofb){const$=F;if($.variables){constP=$.variables;typeofP.current_node=="string"&&P.current_node!=="END"&&(w=P.current_node)}if($.repeat){constH=$.repeat.sequence;if(Array.isArray(H))for(constQofH){constre=Q;if(Array.isArray(re.choose))for(consteeofre.choose){constae=this.parseStateMachineChooseBlock(ee);ae&&E.set(ae.nodeId,ae)}}}}constS=newSet(E.keys()),k=c.filter(F=>!S.has(F));let_=0,C=0;constR=F=>_<k.length?k[_++]:q7t(F,C++),M=i.triggers||i.trigger;if(!M)returna.push("No triggers found in automation"),{nodes:d,edges:g};constD=Array.isArray(M)?M:[M],B=this.parseTriggers(D,a,R);d.push(...B);for(const[F,$]ofE)switch($.nodeType){case"condition":d.push({id:F,type:"condition",position:{x:0,y:0},data:$.data});break;case"action":d.push({id:F,type:"action",position:{x:0,y:0},data:$.data});break;case"delay":d.push({id:F,type:"delay",position:{x:0,y:0},data:$.data});break;case"wait":d.push({id:F,type:"wait",position:{x:0,y:0},data:$.data});break}if(w){constF=this.parseEntryNodeTemplate(w);if(F&&F.size>0)for(let$=0;$<B.length;$++){constP=F.get($);P&&g.push(this.createEdge(B[$].id,P))}elsefor(const$ofB)g.push(this.createEdge($.id,w))}for(const[F,$]ofE)$.trueTarget&&$.trueTarget!=="END"&&g.push({id:`edge-${F}-${$.trueTarget}`,source:F,target:$.trueTarget,sourceHandle:$.falseTarget?"true":void0}),$.falseTarget&&$.falseTarget!=="END"&&g.push({id:`edge-${F}-${$.falseTarget}`,source:F,target:$.falseTarget,sourceHandle:"false"});return{nodes:d,edges:g}}parseEntryNodeTemplate(i){if(!i.includes("{%")||!i.includes("trigger.idx"))returnnull;consta=newMap,c=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(c);for(constbofd){constw=parseInt(b[1],10),E=b[2].trim();a.set(w,E)}constg=i.match(/{%\s*else\s*%}\s*([^{%]+?)(?={%|$)/);if(g&&a.size>0){constb=Math.max(...a.keys());a.set(b+1,g[1].trim())}returna.size>0?a:null}parseStateMachineChooseBlock(i){consta=i.conditions;if(!Array.isArray(a)||a.length===0)returnnull;constd=a[0].value_template;if(!d)returnnull;constg=d.match(/current_node\s*==\s*["']([^"']+)["']/);if(!g)returnnull;constb=g[1],w=i.sequence;if(!Array.isArray(w)||w.length===0)returnnull;letE="action";constS={};letk=null,_=null;for(constCofw){constR=C;if(R.variables){constD=R.variables.current_node;if(typeofD=="string")if(D.includes("{%")&&D.includes("%}")){E="condition";constB=D.match(/{%\s*if[^%]*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/),F=D.match(/{%\s*else\s*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/);k=B?B[1]:null,_=F?F[1]:null;const$=D.match(/{%\s*if\s+(.+?)\s*%}/);if($){constP=$[1];Object.assign(S,this.parseJinjaCondition(P))}}elsek=D==="END"?null:D}elseR.delay!==void0?(E="delay",S.delay=R.delay,R.alias&&(S.alias=R.alias)):R.wait_template!==void0?(E="wait",S.wait_template=R.wait_template,R.timeout&&(S.timeout=R.timeout),R.continue_on_timeout!==void0&&(S.continue_on_timeout=R.continue_on_timeout),R.alias&&(S.alias=R.alias)):(R.service||R.action)&&(E="action",S.service=R.service||R.action,R.target&&(S.target=R.target),R.data&&(S.data=R.data),R.alias&&(S.alias=R.alias))}return{nodeId:b,nodeType:E,data:S,trueTarget:k,falseTarget:_}}parseJinjaCondition(i){consta=i.match(/is_state\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)/);if(a){constd=a[1],g=a[2];if(d==="sun.sun"){if(g==="above_horizon")return{condition:"sun",after:"sunrise",before:"sunset"};if(g==="below_horizon")return{condition:"sun",after:"sunset",before:"sunrise"}}return{condition:"state",entity_id:d,state:g}}constc=i.match(Line truncated
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.