@atolis-hq/wake 0.4.89 → 0.4.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/src/bootstrap/analytics-reports.d.ts +2 -1
  2. package/dist/src/bootstrap/analytics-reports.js +3 -2
  3. package/dist/src/bootstrap/composition-root.d.ts +2 -0
  4. package/dist/src/bootstrap/composition-root.js +5 -1
  5. package/dist/src/bootstrap/run-repository-lookup.d.ts +4 -0
  6. package/dist/src/bootstrap/run-repository-lookup.js +59 -0
  7. package/dist/src/bootstrap/surface-api-applications.js +1 -1
  8. package/dist/src/bootstrap/version.js +1 -1
  9. package/dist/src/execution/application/run-duration.d.ts +11 -0
  10. package/dist/src/execution/application/run-duration.js +70 -0
  11. package/dist/src/execution/application/run-metrics.d.ts +3 -0
  12. package/dist/src/execution/application/run-metrics.js +22 -0
  13. package/dist/src/execution/application/run-reports.d.ts +6 -5
  14. package/dist/src/execution/application/run-reports.js +46 -86
  15. package/dist/src/execution/contracts/run-report-value.d.ts +3 -0
  16. package/dist/src/execution/contracts/run-report-value.js +2 -0
  17. package/dist/src/integrations/github/contracts/external-key.d.ts +2 -0
  18. package/dist/src/integrations/github/contracts/external-key.js +10 -0
  19. package/dist/src/integrations/github/index.d.ts +1 -0
  20. package/dist/src/integrations/github/index.js +1 -0
  21. package/dist/src/kernel/contracts/reports.d.ts +6 -0
  22. package/dist/src/resources/contracts/views.d.ts +1 -0
  23. package/dist/src/resources/domain/repository-candidate.d.ts +3 -0
  24. package/dist/src/resources/domain/repository-candidate.js +13 -0
  25. package/dist/src/resources/index.d.ts +1 -0
  26. package/dist/src/resources/index.js +1 -0
  27. package/dist/src/surfaces/web-assets/assets/{index-B0jIss24.js → index-s9CWgq-s.js} +2 -2
  28. package/dist/src/surfaces/web-assets/index.html +1 -1
  29. package/package.json +1 -1
@@ -71,7 +71,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
71
71
 
72
72
  `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ea,s=!zi.jitless,c=s&&ta.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?bs([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Cs(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ha(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ya(e,r,Bi())))}),t)}var ws=Ii(`$ZodUnion`,(e,t)=>{Lo.init(e,t),Ji(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),Ji(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Ji(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Ji(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Gi(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Cs(t,r,e,i)):Cs(o,r,e,i)}}),Ts=Ii(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,ws.init(e,t);let n=e._zod.parse;Ji(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=Ui(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ea(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Es=Ii(`$ZodIntersection`,(e,t)=>{Lo.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Os(e,t,n)):Os(e,i,a)}});function Ds(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(na(e)&&na(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Ds(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ds(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Os(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ha(e))return e;let o=Ds(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var ks=Ii(`$ZodEnum`,(e,t)=>{Lo.init(e,t);let n=Vi(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ia.has(typeof e)).map(e=>typeof e==`string`?aa(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),As=Ii(`$ZodLiteral`,(e,t)=>{if(Lo.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?aa(e):e?aa(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),js=Ii(`$ZodTransform`,(e,t)=>{Lo.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ri(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new Li;return n.value=i,n.fallback=!0,n}});function Ms(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Ns=Ii(`$ZodOptional`,(e,t)=>{Lo.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,Ji(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ji(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Gi(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Ms(e,r)):Ms(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Ps=Ii(`$ZodExactOptional`,(e,t)=>{Ns.init(e,t),Ji(e._zod,`values`,()=>t.innerType._zod.values),Ji(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Fs=Ii(`$ZodNullable`,(e,t)=>{Lo.init(e,t),Ji(e._zod,`optin`,()=>t.innerType._zod.optin),Ji(e._zod,`optout`,()=>t.innerType._zod.optout),Ji(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Gi(e.source)}|null)$`):void 0}),Ji(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Is=Ii(`$ZodDefault`,(e,t)=>{Lo.init(e,t),e._zod.optin=`optional`,Ji(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ls(e,t)):Ls(r,t)}});function Ls(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Rs=Ii(`$ZodPrefault`,(e,t)=>{Lo.init(e,t),e._zod.optin=`optional`,Ji(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),zs=Ii(`$ZodNonOptional`,(e,t)=>{Lo.init(e,t),Ji(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Bs(t,e)):Bs(i,e)}});function Bs(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Vs=Ii(`$ZodCatch`,(e,t)=>{Lo.init(e,t),e._zod.optin=`optional`,Ji(e._zod,`optout`,()=>t.innerType._zod.optout),Ji(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ya(e,n,Bi()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>ya(e,n,Bi()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Hs=Ii(`$ZodPipe`,(e,t)=>{Lo.init(e,t),Ji(e._zod,`values`,()=>t.in._zod.values),Ji(e._zod,`optin`,()=>t.in._zod.optin),Ji(e._zod,`optout`,()=>t.out._zod.optout),Ji(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Us(e,t.in,n)):Us(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Us(e,t.out,n)):Us(r,t.out,n)}});function Us(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Ws=Ii(`$ZodReadonly`,(e,t)=>{Lo.init(e,t),Ji(e._zod,`propValues`,()=>t.innerType._zod.propValues),Ji(e._zod,`values`,()=>t.innerType._zod.values),Ji(e._zod,`optin`,()=>t.innerType?._zod?.optin),Ji(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Gs):Gs(r)}});function Gs(e){return e.value=Object.freeze(e.value),e}var Ks=Ii(`$ZodCustom`,(e,t)=>{yo.init(e,t),Lo.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>qs(t,n,r,e));qs(i,n,r,e)}});function qs(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(xa(e))}}var Js,Ys=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Xs(){return new Ys}(Js=globalThis).__zod_globalRegistry??(Js.__zod_globalRegistry=Xs());var Zs=globalThis.__zod_globalRegistry;function Qs(e,t){return new e({type:`string`,...sa(t)})}function $s(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...sa(t)})}function ec(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...sa(t)})}function tc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...sa(t)})}function nc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...sa(t)})}function rc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...sa(t)})}function ic(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...sa(t)})}function ac(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...sa(t)})}function oc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...sa(t)})}function sc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...sa(t)})}function cc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...sa(t)})}function lc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...sa(t)})}function uc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...sa(t)})}function dc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...sa(t)})}function fc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...sa(t)})}function pc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...sa(t)})}function mc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...sa(t)})}function hc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...sa(t)})}function gc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...sa(t)})}function _c(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...sa(t)})}function vc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...sa(t)})}function yc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...sa(t)})}function bc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...sa(t)})}function xc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...sa(t)})}function lee(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...sa(t)})}function Sc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...sa(t)})}function Cc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...sa(t)})}function wc(e,t){return new e({type:`number`,checks:[],...sa(t)})}function Tc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...sa(t)})}function Ec(e,t){return new e({type:`boolean`,...sa(t)})}function Dc(e){return new e({type:`unknown`})}function Oc(e,t){return new e({type:`never`,...sa(t)})}function kc(e,t){return new xo({check:`less_than`,...sa(t),value:e,inclusive:!1})}function Ac(e,t){return new xo({check:`less_than`,...sa(t),value:e,inclusive:!0})}function jc(e,t){return new So({check:`greater_than`,...sa(t),value:e,inclusive:!1})}function Mc(e,t){return new So({check:`greater_than`,...sa(t),value:e,inclusive:!0})}function Nc(e,t){return new Co({check:`multiple_of`,...sa(t),value:e})}function Pc(e,t){return new To({check:`max_length`,...sa(t),maximum:e})}function Fc(e,t){return new Eo({check:`min_length`,...sa(t),minimum:e})}function Ic(e,t){return new Do({check:`length_equals`,...sa(t),length:e})}function Lc(e,t){return new ko({check:`string_format`,format:`regex`,...sa(t),pattern:e})}function Rc(e){return new Ao({check:`string_format`,format:`lowercase`,...sa(e)})}function zc(e){return new jo({check:`string_format`,format:`uppercase`,...sa(e)})}function Bc(e,t){return new Mo({check:`string_format`,format:`includes`,...sa(t),includes:e})}function Vc(e,t){return new No({check:`string_format`,format:`starts_with`,...sa(t),prefix:e})}function Hc(e,t){return new Po({check:`string_format`,format:`ends_with`,...sa(t),suffix:e})}function Uc(e){return new Fo({check:`overwrite`,tx:e})}function Wc(e){return Uc(t=>t.normalize(e))}function Gc(){return Uc(e=>e.trim())}function Kc(){return Uc(e=>e.toLowerCase())}function qc(){return Uc(e=>e.toUpperCase())}function Jc(){return Uc(e=>Qi(e))}function Yc(e,t,n){return new e({type:`array`,element:t,...sa(n)})}function Xc(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...sa(n)})}function Zc(e,t){let n=Qc(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(xa(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(xa(r))}},e(t.value,t)),t);return n}function Qc(e,t){let n=new yo({check:`custom`,...sa(t)});return n._zod.check=e,n}function $c(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Zs,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function el(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,el(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&rl(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function tl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
73
73
 
74
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function nl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:al(t,`input`,e.processors),output:al(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function rl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return rl(r.element,n);if(r.type===`set`)return rl(r.valueType,n);if(r.type===`lazy`)return rl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return rl(r.innerType,n);if(r.type===`intersection`)return rl(r.left,n)||rl(r.right,n);if(r.type===`record`||r.type===`map`)return rl(r.keyType,n)||rl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:rl(r.in,n)||rl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(rl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(rl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(rl(e,n))return!0;return!!(r.rest&&rl(r.rest,n))}return!1}var il=(e,t={})=>n=>{let r=$c({...n,processors:t});return el(e,r),tl(r,e),nl(r,e)},al=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=$c({...i??{},target:a,io:t,processors:n});return el(e,o),tl(o,e),nl(o,e)},ol={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},sl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ol[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},cl=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},ll=(e,t,n,r)=>{n.type=`boolean`},ul=(e,t,n,r)=>{n.not={}},dl=(e,t,n,r)=>{let i=e._zod.def,a=Vi(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},fl=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},pl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ml=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},hl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=el(a.element,t,{...r,path:[...r.path,`items`]})},gl=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=el(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=el(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},_l=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>el(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},vl=(e,t,n,r)=>{let i=e._zod.def,a=el(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=el(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},yl=(e,t,n,r)=>{let i=e._zod.def,a=el(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},bl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},xl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Sl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Cl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},wl=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;el(o,t,r);let s=t.seen.get(e);s.ref=o},Tl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},El=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Dl=Ii(`ZodISODateTime`,(e,t)=>{Zo.init(e,t),eu.init(e,t)});function Ol(e){return xc(Dl,e)}var kl=Ii(`ZodISODate`,(e,t)=>{Qo.init(e,t),eu.init(e,t)});function Al(e){return lee(kl,e)}var jl=Ii(`ZodISOTime`,(e,t)=>{$o.init(e,t),eu.init(e,t)});function Ml(e){return Sc(jl,e)}var Nl=Ii(`ZodISODuration`,(e,t)=>{es.init(e,t),eu.init(e,t)});function Pl(e){return Cc(Nl,e)}var Fl=Ii(`ZodError`,(e,t)=>{Ca.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ea(e,t)},flatten:{value:t=>Ta(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Hi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Hi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Il=Da(Fl),Ll=Oa(Fl),Rl=ka(Fl),zl=ja(Fl),Bl=Na(Fl),Vl=Pa(Fl),Hl=Fa(Fl),Ul=Ia(Fl),Wl=La(Fl),Gl=Ra(Fl),Kl=za(Fl),ql=Ba(Fl),Jl=new WeakMap;function Yl(e,t,n){let r=Object.getPrototypeOf(e),i=Jl.get(r);if(i||(i=new Set,Jl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Xl=Ii(`ZodType`,(e,t)=>(Lo.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:al(e,`input`),output:al(e,`output`)}}),e.toJSONSchema=il(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Il(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Rl(e,t,n),e.parseAsync=async(t,n)=>Ll(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Bl(e,t,n),e.decode=(t,n)=>Vl(e,t,n),e.encodeAsync=async(t,n)=>Hl(e,t,n),e.decodeAsync=async(t,n)=>Ul(e,t,n),e.safeEncode=(t,n)=>Wl(e,t,n),e.safeDecode=(t,n)=>Gl(e,t,n),e.safeEncodeAsync=async(t,n)=>Kl(e,t,n),e.safeDecodeAsync=async(t,n)=>ql(e,t,n),Yl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Xi(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return oa(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(fee(e,t))},superRefine(e,t){return this.check(pee(e,t))},overwrite(e){return this.check(Uc(e))},optional(){return qu(this)},exactOptional(){return Yu(this)},nullable(){return Zu(this)},nullish(){return qu(Zu(this))},nonoptional(e){return rd(this,e)},array(){return ju(this)},or(e){return Fu([this,e])},and(e){return zu(this,e)},transform(e){return sd(this,Gu(e))},default(e){return $u(this,e)},prefault(e){return td(this,e)},catch(e){return ad(this,e)},pipe(e){return sd(this,e)},readonly(){return cd(this)},describe(e){let t=this.clone();return Zs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Zs.get(this);let t=this.clone();return Zs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Zs.get(e)?.description},configurable:!0}),e)),Zl=Ii(`_ZodString`,(e,t)=>{Ro.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Yl(e,`_ZodString`,{regex(...e){return this.check(Lc(...e))},includes(...e){return this.check(Bc(...e))},startsWith(...e){return this.check(Vc(...e))},endsWith(...e){return this.check(Hc(...e))},min(...e){return this.check(Fc(...e))},max(...e){return this.check(Pc(...e))},length(...e){return this.check(Ic(...e))},nonempty(...e){return this.check(Fc(1,...e))},lowercase(e){return this.check(Rc(e))},uppercase(e){return this.check(zc(e))},trim(){return this.check(Gc())},normalize(...e){return this.check(Wc(...e))},toLowerCase(){return this.check(Kc())},toUpperCase(){return this.check(qc())},slugify(){return this.check(Jc())}})}),Ql=Ii(`ZodString`,(e,t)=>{Ro.init(e,t),Zl.init(e,t),e.email=t=>e.check($s(tu,t)),e.url=t=>e.check(ac(iu,t)),e.jwt=t=>e.check(bc(yu,t)),e.emoji=t=>e.check(oc(au,t)),e.guid=t=>e.check(ec(nu,t)),e.uuid=t=>e.check(tc(ru,t)),e.uuidv4=t=>e.check(nc(ru,t)),e.uuidv6=t=>e.check(rc(ru,t)),e.uuidv7=t=>e.check(ic(ru,t)),e.nanoid=t=>e.check(sc(ou,t)),e.guid=t=>e.check(ec(nu,t)),e.cuid=t=>e.check(cc(su,t)),e.cuid2=t=>e.check(lc(cu,t)),e.ulid=t=>e.check(uc(lu,t)),e.base64=t=>e.check(_c(gu,t)),e.base64url=t=>e.check(vc(_u,t)),e.xid=t=>e.check(dc(uu,t)),e.ksuid=t=>e.check(fc(du,t)),e.ipv4=t=>e.check(pc(fu,t)),e.ipv6=t=>e.check(mc(pu,t)),e.cidrv4=t=>e.check(hc(mu,t)),e.cidrv6=t=>e.check(gc(hu,t)),e.e164=t=>e.check(yc(vu,t)),e.datetime=t=>e.check(Ol(t)),e.date=t=>e.check(Al(t)),e.time=t=>e.check(Ml(t)),e.duration=t=>e.check(Pl(t))});function $l(e){return Qs(Ql,e)}var eu=Ii(`ZodStringFormat`,(e,t)=>{zo.init(e,t),Zl.init(e,t)}),tu=Ii(`ZodEmail`,(e,t)=>{Ho.init(e,t),eu.init(e,t)}),nu=Ii(`ZodGUID`,(e,t)=>{Bo.init(e,t),eu.init(e,t)}),ru=Ii(`ZodUUID`,(e,t)=>{Vo.init(e,t),eu.init(e,t)}),iu=Ii(`ZodURL`,(e,t)=>{Uo.init(e,t),eu.init(e,t)}),au=Ii(`ZodEmoji`,(e,t)=>{Wo.init(e,t),eu.init(e,t)}),ou=Ii(`ZodNanoID`,(e,t)=>{Go.init(e,t),eu.init(e,t)}),su=Ii(`ZodCUID`,(e,t)=>{Ko.init(e,t),eu.init(e,t)}),cu=Ii(`ZodCUID2`,(e,t)=>{qo.init(e,t),eu.init(e,t)}),lu=Ii(`ZodULID`,(e,t)=>{Jo.init(e,t),eu.init(e,t)}),uu=Ii(`ZodXID`,(e,t)=>{Yo.init(e,t),eu.init(e,t)}),du=Ii(`ZodKSUID`,(e,t)=>{Xo.init(e,t),eu.init(e,t)}),fu=Ii(`ZodIPv4`,(e,t)=>{ts.init(e,t),eu.init(e,t)}),pu=Ii(`ZodIPv6`,(e,t)=>{ns.init(e,t),eu.init(e,t)}),mu=Ii(`ZodCIDRv4`,(e,t)=>{rs.init(e,t),eu.init(e,t)}),hu=Ii(`ZodCIDRv6`,(e,t)=>{is.init(e,t),eu.init(e,t)}),gu=Ii(`ZodBase64`,(e,t)=>{os.init(e,t),eu.init(e,t)}),_u=Ii(`ZodBase64URL`,(e,t)=>{cs.init(e,t),eu.init(e,t)}),vu=Ii(`ZodE164`,(e,t)=>{ls.init(e,t),eu.init(e,t)}),yu=Ii(`ZodJWT`,(e,t)=>{ds.init(e,t),eu.init(e,t)}),bu=Ii(`ZodNumber`,(e,t)=>{fs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r),Yl(e,`ZodNumber`,{gt(e,t){return this.check(jc(e,t))},gte(e,t){return this.check(Mc(e,t))},min(e,t){return this.check(Mc(e,t))},lt(e,t){return this.check(kc(e,t))},lte(e,t){return this.check(Ac(e,t))},max(e,t){return this.check(Ac(e,t))},int(e){return this.check(Cu(e))},safe(e){return this.check(Cu(e))},positive(e){return this.check(jc(0,e))},nonnegative(e){return this.check(Mc(0,e))},negative(e){return this.check(kc(0,e))},nonpositive(e){return this.check(Ac(0,e))},multipleOf(e,t){return this.check(Nc(e,t))},step(e,t){return this.check(Nc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function xu(e){return wc(bu,e)}var Su=Ii(`ZodNumberFormat`,(e,t)=>{cee.init(e,t),bu.init(e,t)});function Cu(e){return Tc(Su,e)}var wu=Ii(`ZodBoolean`,(e,t)=>{ps.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r)});function Tu(e){return Ec(wu,e)}var Eu=Ii(`ZodUnknown`,(e,t)=>{ms.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Du(){return Dc(Eu)}var Ou=Ii(`ZodNever`,(e,t)=>{hs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r)});function ku(e){return Oc(Ou,e)}var Au=Ii(`ZodArray`,(e,t)=>{_s.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.element=t.element,Yl(e,`ZodArray`,{min(e,t){return this.check(Fc(e,t))},nonempty(e){return this.check(Fc(1,e))},max(e,t){return this.check(Pc(e,t))},length(e,t){return this.check(Ic(e,t))},unwrap(){return this.element}})});function ju(e,t){return Yc(Au,e,t)}var Mu=Ii(`ZodObject`,(e,t)=>{Ss.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),Ji(e,`shape`,()=>t.shape),Yl(e,`ZodObject`,{keyof(){return Vu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Du()})},loose(){return this.clone({...this._zod.def,catchall:Du()})},strict(){return this.clone({...this._zod.def,catchall:ku()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return fa(this,e)},safeExtend(e){return aee(this,e)},merge(e){return oee(this,e)},pick(e){return ua(this,e)},omit(e){return da(this,e)},partial(...e){return pa(Ku,this,e[0])},required(...e){return ma(nd,this,e[0])}})});function Nu(e,t){return new Mu({type:`object`,shape:e??{},...sa(t)})}var Pu=Ii(`ZodUnion`,(e,t)=>{ws.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_l(e,t,n,r),e.options=t.options});function Fu(e,t){return new Pu({type:`union`,options:e,...sa(t)})}var Iu=Ii(`ZodDiscriminatedUnion`,(e,t)=>{Pu.init(e,t),Ts.init(e,t)});function Lu(e,t,n){return new Iu({type:`union`,options:t,discriminator:e,...sa(n)})}var Ru=Ii(`ZodIntersection`,(e,t)=>{Es.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vl(e,t,n,r)});function zu(e,t){return new Ru({type:`intersection`,left:e,right:t})}var Bu=Ii(`ZodEnum`,(e,t)=>{ks.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Bu({...t,checks:[],...sa(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Bu({...t,checks:[],...sa(r),entries:i})}});function Vu(e,t){return new Bu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...sa(t)})}var Hu=Ii(`ZodLiteral`,(e,t)=>{As.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Uu(e,t){return new Hu({type:`literal`,values:Array.isArray(e)?e:[e],...sa(t)})}var Wu=Ii(`ZodTransform`,(e,t)=>{js.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ri(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(xa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(xa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Gu(e){return new Wu({type:`transform`,transform:e})}var Ku=Ii(`ZodOptional`,(e,t)=>{Ns.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qu(e){return new Ku({type:`optional`,innerType:e})}var Ju=Ii(`ZodExactOptional`,(e,t)=>{Ps.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yu(e){return new Ju({type:`optional`,innerType:e})}var Xu=Ii(`ZodNullable`,(e,t)=>{Fs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zu(e){return new Xu({type:`nullable`,innerType:e})}var Qu=Ii(`ZodDefault`,(e,t)=>{Is.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $u(e,t){return new Qu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}var ed=Ii(`ZodPrefault`,(e,t)=>{Rs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e,t){return new ed({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}var nd=Ii(`ZodNonOptional`,(e,t)=>{zs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e,t){return new nd({type:`nonoptional`,innerType:e,...sa(t)})}var id=Ii(`ZodCatch`,(e,t)=>{Vs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ad(e,t){return new id({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var od=Ii(`ZodPipe`,(e,t)=>{Hs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.in=t.in,e.out=t.out});function sd(e,t){return new od({type:`pipe`,in:e,out:t})}var uee=Ii(`ZodReadonly`,(e,t)=>{Ws.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cd(e){return new uee({type:`readonly`,innerType:e})}var dee=Ii(`ZodCustom`,(e,t)=>{Ks.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r)});function fee(e,t={}){return Xc(dee,e,t)}function pee(e,t){return Zc(e,t)}var ld=e=>e,ud=ld({Day:`1d`,ThreeDays:`3d`,FiveDays:`5d`,Week:`7d`}),dd=Object.keys({accepted:!0,completed:!0}),fd={Accepted:dd[0],Completed:dd[1]},pd={Active:Object.keys({active:!0})[0]},md={Adapter:Object.keys({adapter:!0})[0]},hd=Object.keys({failed:!0,succeeded:!0}),gd={Failed:hd[0],Succeeded:hd[1]},_d=Object.keys({starting:!0,started:!0}),vd={Starting:_d[0],Started:_d[1]},yd=ld({Waiting:`waiting`,Done:`done`,Rejected:`rejected`,Blocked:`blocked`,Failed:`failed`}),bd=Object.keys({ready:!0,active:!0,"needs-input":!0,error:!0,finished:!0}),xd={Ready:bd[0],Active:bd[1],NeedsInput:bd[2],Error:bd[3],Finished:bd[4]};Object.keys({stage:!0})[0];var Sd=Object.keys({input:!0,agent:!0}),Cd={Input:Sd[0],Agent:Sd[1]},wd=Object.keys({session:!0,run:!0}),Td={Session:wd[0],Run:wd[1]},Ed={Event:`event`,Cron:`cron`,Manual:`manual`},Dd={started:!0},Od={Started:Object.keys(Dd)[0],Coalesced:`coalesced`,Skipped:`skipped`},kd={OwnScope:`own-scope`,Paused:`paused`,Removed:`removed`,DispatchPaused:`dispatch-paused`,Capacity:`capacity-unavailable`,PendingLimit:`pending-source-limit`},Ad=Object.keys({completed:!0,superseded:!0}),jd={Completed:Ad[0],Superseded:Ad[1]},Md={Started:Object.keys(Dd)[0],Coalesced:Od.Coalesced,Skipped:Od.Skipped},Nd=Object.keys({pause:!0,resume:!0,run:!0}),Pd={Pause:Nd[0],Resume:Nd[1],Run:Nd[2]},Fd=ld({Active:`active`,Waiting:`waiting`,Completed:`completed`,Blocked:`blocked`,Superseded:`superseded`}),Id=Object.keys({"execution-recovery-ambiguous:":!0})[0];function Ld(e){return e?.startsWith(Id)===!0||e!==void 0&&/^run-ambiguous-after-\d+-attempts$/.test(e)}var Rd=xd,zd=ld({Unknown:`unknown`}),Bd=Object.keys({enabled:!0,paused:!0,running:!0,removed:!0}),Vd={Enabled:Bd[0],Paused:Bd[1],Running:Bd[2],Removed:Bd[3]},Hd=Object.keys({pause:!0,resume:!0,run:!0});Hd[0],Hd[1],Hd[2];var Ud=Object.keys({activity:!0,watch:!0,"watch-gate":!0,reactor:!0}),Wd={Activity:Ud[0],Watch:Ud[1],WatchGate:Ud[2],Reactor:Ud[3]},Gd=Lu(`kind`,[Nu({kind:Uu(Ed.Manual),commandId:$l(),operator:$l()}),Nu({kind:Uu(Ed.Cron),slot:$l()}),Nu({kind:Uu(Ed.Event),eventId:$l(),eventType:$l()})]),Kd=Nu({triggerId:$l(),source:Gd,occurredAt:$l(),reason:Vu(kd)}),qd=Nu({id:$l(),workflow:$l(),contextScope:$l().optional(),on:Nu({cron:$l().optional(),events:ju($l()).optional()}),when:Nu({capacityAvailable:Uu(!0)}).optional()}),Jd=Lu(`disposition`,[Nu({disposition:Uu(Md.Started),workItemId:$l().optional()}),Nu({disposition:Uu(Md.Coalesced),activeWorkItemId:$l().optional()}),Nu({disposition:Uu(Md.Skipped),reason:Vu(kd)})]),Yd=Object.keys({stage:!0})[0];function Xd(e){return(t,n=``)=>{let r=Si(t,n);return{data:e(r.data,Mi(n,`data`)),meta:xi(r.meta,Mi(n,`meta`))}}}function Zd(e){return(t,n=``)=>{let r=Si(t,n),i=Si(r.page,Mi(n,`page`));return{items:Ci(r.items,Mi(n,`items`),e),page:{nextCursor:Ti(i.nextCursor,Mi(n,`page.nextCursor`)),hasMore:Ei(i.hasMore,Mi(n,`page.hasMore`)),...ki(i,`total`,Mi(n,`page`))},meta:xi(r.meta,Mi(n,`meta`))}}}var Qd=(e,t=``)=>{let n=Si(e,t);return{dispatchPaused:Ei(n.dispatchPaused,Mi(t,`dispatchPaused`)),...Oi(n,`dispatchPausedUntil`,t),...Oi(n,`dispatchPauseReason`,t),updatedAt:wi(n.updatedAt,Mi(t,`updatedAt`)),...n.maintenanceLease===void 0?{}:{maintenanceLease:$d(n.maintenanceLease,Mi(t,`maintenanceLease`))}}};function $d(e,t){let n=Si(e,t);return{attemptId:wi(n.attemptId,Mi(t,`attemptId`)),phase:wi(n.phase,Mi(t,`phase`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`failure`,t)}}var ef=(e,t=``)=>{let n=Si(e,t),r=wi(n.status,Mi(t,`status`));return r!==fd.Accepted&&r!==fd.Completed&&Ni(Mi(t,`status`)),{...n.triggerOutcome===void 0?{}:{triggerOutcome:Jd.parse(n.triggerOutcome)},commandId:wi(n.commandId,Mi(t,`commandId`)),idempotencyKey:wi(n.idempotencyKey,Mi(t,`idempotencyKey`)),acceptedAt:wi(n.acceptedAt,Mi(t,`acceptedAt`)),status:r}},tf=(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workItemId:wi(n.workItemId,Mi(t,`workItemId`)),objective:wi(n.objective,Mi(t,`objective`)),state:wi(n.state,Mi(t,`state`)),...Ai(n,`frozen`,t),...Ai(n,`deleted`,t),...Oi(n,`externalRef`,t),...Oi(n,`lastRunOutcome`,t),relatedWorkItems:Ci(n.relatedWorkItems,Mi(t,`relatedWorkItems`),(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t??``,`workItemKey`)),relation:wi(n.relation,Mi(t??``,`relation`))}})}},nf=(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workItemId:wi(n.workItemId,Mi(t,`workItemId`)),objective:wi(n.objective,Mi(t,`objective`)),condition:wi(n.condition,Mi(t,`condition`)),...Ai(n,`frozen`,t),...Ai(n,`awaitingApproval`,t),...Ai(n,`extendEligible`,t),...Oi(n,`workflowName`,t),...Oi(n,Yd,t),...Oi(n,`blockReason`,t),dwellSince:wi(n.dwellSince,Mi(t,`dwellSince`)),runCount:Di(n.runCount,Mi(t,`runCount`)),...Oi(n,`lastRunAt`,t),...Oi(n,`lastRunOutcome`,t),...ki(n,`lastRunAgeMs`,t),totalTokens:Di(n.totalTokens,Mi(t,`totalTokens`)),...ki(n,`inputTokens`,t),...ki(n,`outputTokens`,t),...ki(n,`cacheReadTokens`,t),...ki(n,`cacheWriteTokens`,t),totalCostUsd:Di(n.totalCostUsd,Mi(t,`totalCostUsd`)),totalDurationMs:Di(n.totalDurationMs,Mi(t,`totalDurationMs`)),activeRuns:rf(n.activeRuns,Mi(t,`activeRuns`)),...Oi(n,`externalRef`,t)}};function rf(e,t){return e===void 0?{}:Object.fromEntries(Object.entries(Si(e,t)).map(([e,n])=>[e,af(n,Mi(t,e))]))}function af(e,t){let n=Si(e,t),r=wi(n.phase,Mi(t,`phase`));return Object.values(vd).includes(r)||Ni(Mi(t,`phase`)),{action:wi(n.action,Mi(t,`action`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),elapsedMs:Di(n.elapsedMs,Mi(t,`elapsedMs`)),phase:r,...Oi(n,`runnerName`,t)}}var of=(e,t=``)=>{let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),adapter:wi(n[md.Adapter],Mi(t,md.Adapter)),kind:wi(n.kind,Mi(t,`kind`)),locatorLabel:wi(n.locatorLabel,Mi(t,`locatorLabel`)),capabilities:Ci(n.capabilities,Mi(t,`capabilities`),wi),...Oi(n,`title`,t),...Oi(n,`externalUrl`,t),...Oi(n,`revision`,t)}},sf=(e,t=``)=>{let n=Si(e,t),r=n.waitingFor;return{workflowInstanceId:wi(n.workflowInstanceId,Mi(t,`workflowInstanceId`)),workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workflowName:wi(n.workflowName,Mi(t,`workflowName`)),orchestrationGroupId:wi(n.orchestrationGroupId,Mi(t,`orchestrationGroupId`)),...Oi(n,`parentWorkflowInstanceId`,t),status:wi(n.status,Mi(t,`status`)),currentStage:wi(n.currentStage,Mi(t,`currentStage`)),...Oi(n,`blockReason`,t),...Ai(n,`retryEligible`,t),...Ai(n,`extendEligible`,t),...n.mergePolicyBlock===void 0?{}:{mergePolicyBlock:wf(n.mergePolicyBlock,Mi(t,`mergePolicyBlock`))},...r===void 0?{}:{waitingFor:{signalKind:wi(Si(r,Mi(t,`waitingFor`)).signalKind,Mi(t,`waitingFor.signalKind`))}}}},mee=(e,t=``)=>({diagrams:Ci(Si(e,t).diagrams,Mi(t,`diagrams`),cf)});function cf(e,t=``){let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),direction:`left-to-right`,stages:Ci(n.stages,Mi(t,`stages`),(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),children:Ci(n.children,Mi(t,`children`),(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),kind:lf(n.kind,Mi(t,`kind`)),...uf(n,t)}}),...uf(n,t)}}),transitions:Ci(n.transitions,Mi(t,`transitions`),(e,t=``)=>{let n=Si(e,t);return{from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),label:wi(n.label,Mi(t,`label`)),...Oi(n,`fromChildId`,t)}})}}function lf(e,t){let n=wi(e,t);return Object.values(Wd).includes(n)||Ni(t),n}function uf(e,t){let n=e.activeRuns;return{...Oi(e,`status`,t),...Oi(e,`lastOutcome`,t),...ki(e,`runCount`,t),...ki(e,`totalDurationMs`,t),...ki(e,`totalTokens`,t),...ki(e,`inputTokens`,t),...ki(e,`outputTokens`,t),...ki(e,`cacheReadTokens`,t),...ki(e,`cacheWriteTokens`,t),...ki(e,`totalCostUsd`,t),...n===void 0?{}:{activeRuns:Ci(n,Mi(t,`activeRuns`),(e,t=``)=>{let n=Si(e,t);return{runId:wi(n.runId,Mi(t,`runId`)),activity:wi(n.activity,Mi(t,`activity`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`runnerName`,t)}})}}}var df=[`DONE`,`FAILED`,`AMBIGUOUS`];function ff(e,t){let n=Mi(t,`resolution`),r=Si(e,n),i=wi(r.sentinel,Mi(n,`sentinel`));return df.includes(i)||Ni(Mi(n,`sentinel`)),{sentinel:i,resolvedAt:wi(r.resolvedAt,Mi(n,`resolvedAt`))}}var pf=(e,t=``)=>{let n=Si(e,t),r=n.failure,i=n.resolution;return{...n.operatorInstructions===void 0?{}:{operatorInstructions:Tf(n.operatorInstructions)},runId:wi(n.runId,Mi(t,`runId`)),activationId:wi(n.activationId,Mi(t,`activationId`)),activity:wi(n.activity,Mi(t,`activity`)),workflowInstanceId:wi(n.workflowInstanceId,Mi(t,`workflowInstanceId`)),orchestrationGroupId:wi(n.orchestrationGroupId,Mi(t,`orchestrationGroupId`)),attempt:Di(n.attempt,Mi(t,`attempt`)),status:wi(n.status,Mi(t,`status`)),active:Ei(n.active,Mi(t,pd.Active)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`executionStartedAt`,t),...Oi(n,`finishedAt`,t),sentinel:wi(n.sentinel,Mi(t,`sentinel`)),...Oi(n,`runnerName`,t),...Oi(n,`runnerModel`,t),...Oi(n,`workflowName`,t),...Oi(n,Yd,t),totalTokens:Di(n.totalTokens,Mi(t,`totalTokens`)),...ki(n,`inputTokens`,t),...ki(n,`outputTokens`,t),...ki(n,`cacheReadTokens`,t),...ki(n,`cacheWriteTokens`,t),totalCostUsd:Di(n.totalCostUsd,Mi(t,`totalCostUsd`)),...n.outcome===void 0?{}:{outcome:ji(n.outcome,Mi(t,`outcome`))},...r===void 0?{}:{failure:{kind:wi(Si(r,Mi(t,`failure`)).kind,Mi(t,`failure.kind`))}},...i===void 0?{}:{resolution:ff(i,t)}}},mf=(e,t=``)=>{let n=Object.keys({conversation:!0})[0],r=Object.keys({stage:!0})[0],i=Si(e,t),a=Si(i.orchestration,Mi(t,`orchestration`)),o=Si(i.execution,Mi(t,`execution`)),s=Si(i.activities,Mi(t,`activities`)),c=i.artifacts===void 0?[]:Ci(i.artifacts,Mi(t,`artifacts`),(e,t=``)=>{let n=Si(e,t);return{revisionId:wi(n.revisionId,Mi(t,`revisionId`)),producer:wi(n.producer,Mi(t,`producer`)),path:wi(n.path,Mi(t,`path`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),...Oi(n,`mediaType`,t),...ki(n,`byteLength`,t),...Oi(n,`digest`,t),href:wi(n.href,Mi(t,`href`))}}),l=i.conversation===void 0?void 0:Si(i.conversation,Mi(t,n));return{...Oi(i,`triggerOrigin`,t),work:tf(i.work,Mi(t,`work`)),resources:Ci(i.resources,Mi(t,`resources`),of),orchestration:{primary:a.primary===null?null:sf(a.primary,Mi(t,`orchestration.primary`)),children:Ci(a.children,Mi(t,`orchestration.children`),sf),diagram:bf(a.diagram,Mi(t,`orchestration.diagram`))},execution:{runs:Ci(o.runs,Mi(t,`execution.runs`),pf),transcriptGroups:Ci(o.transcriptGroups,Mi(t,`execution.transcriptGroups`),(e,t=``)=>{let n=Si(e,t);return{groupId:wi(n.groupId,Mi(t,`groupId`)),kind:Sf(n.kind,Mi(t,`kind`)),...Oi(n,`cli`,t),latestAt:wi(n.latestAt,Mi(t,`latestAt`)),runIds:Ci(n.runIds,Mi(t,`runIds`),wi)}})},activities:s.pullRequest===void 0?{}:{pullRequest:Cf(s.pullRequest,Mi(t,`activities.pullRequest`))},artifacts:c,conversation:{canCreateEntries:l?.canCreateEntries===!0,canContinue:l?.canContinue===!0,entries:l===void 0?[]:Ci(l.entries,Mi(t,`${n}.entries`),(e,t=``)=>{let n=Si(e,t);return{entryId:wi(n.entryId,Mi(t,`entryId`)),body:wi(n.body,Mi(t,`body`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),origin:wi(n.origin,Mi(t,`origin`)),actorId:wi(n.actorId,Mi(t,`actorId`)),...Oi(n,`runId`,t),...Oi(n,r,t),...Oi(n,`sourceAdapter`,t),...Oi(n,`sourceResourceId`,t),...Oi(n,`sourceThreadId`,t),deleted:Ei(n.deleted,Mi(t,`deleted`)),representations:Ci(n.representations,Mi(t,`representations`),(e,t=``)=>{let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),externalId:wi(n.externalId,Mi(t,`externalId`))}})}})}}},hf=(e,t=``)=>{let n=Si(e,t),r=n.stream;return{id:wi(n.id,Mi(t,`id`)),type:wi(n.type,Mi(t,`type`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),position:Di(n.position,Mi(t,`position`)),...r===void 0?{}:{stream:{kind:wi(Si(r,Mi(t,`stream`)).kind,Mi(t,`stream.kind`)),id:wi(Si(r,Mi(t,`stream`)).id,Mi(t,`stream.id`))}},...Oi(n,`causationId`,t),...Oi(n,`correlationId`,t),payload:n.payload}},gf=(e,t=``)=>{let n=Si(e,t);return{runnerId:wi(n.runnerId,Mi(t,`runnerId`)),status:wi(n.status,Mi(t,`status`)),available:Ei(n.available,Mi(t,`available`)),...Oi(n,`detail`,t),updatedAt:wi(n.updatedAt,Mi(t,`updatedAt`))}},_f=(e,t=``)=>{let n=Si(e,t);return{runId:wi(n.runId,Mi(t,`runId`)),...Oi(n,`groupId`,t),available:Ei(n.available,Mi(t,`available`)),entries:Ci(n.entries,Mi(t,`entries`),(e,t=``)=>{let n=Si(e,t);return{occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),channel:xf(n.channel,Mi(t,`channel`)),text:wi(n.text,Mi(t,`text`)),runId:wi(n.runId,Mi(t,`runId`)),groupId:wi(n.groupId,Mi(t,`groupId`)),...ki(n,`durationMs`,t)}})}},vf=(e,t=``)=>{let n=Si(e,t);return{groupId:wi(n.groupId,Mi(t,`groupId`)),available:Ei(n.available,Mi(t,`available`)),entries:Ci(n.entries,Mi(t,`entries`),yf)}};function yf(e,t=``){let n=Si(e,t);return{occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),channel:xf(n.channel,Mi(t,`channel`)),text:wi(n.text,Mi(t,`text`)),runId:wi(n.runId,Mi(t,`runId`)),groupId:wi(n.groupId,Mi(t,`groupId`)),...ki(n,`durationMs`,t)}}function bf(e,t){return{href:wi(Si(e,t).href,Mi(t,`href`))}}function xf(e,t){let n=wi(e,t);return n!==Cd.Input&&n!==Cd.Agent&&Ni(t),n}function Sf(e,t){let n=wi(e,t);return n!==Td.Session&&n!==Td.Run&&Ni(t),n}function Cf(e,t=``){let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),state:wi(n.state,Mi(t,`state`)),...Ai(n,`frozen`,t),...Ai(n,`deleted`,t),headRevision:wi(n.headRevision,Mi(t,`headRevision`)),baseRevision:wi(n.baseRevision,Mi(t,`baseRevision`)),checks:wi(n.checks,Mi(t,`checks`))}}function wf(e,t){let n=Si(e,t),r=wi(n.status,Mi(t,`status`));if(r!==`awaiting-human-merge`&&r!==`recovering`)throw Error(`${t}.status: invalid merge policy status`);let i=n.policy===void 0?void 0:Si(n.policy,Mi(t,`policy`));return{status:r,explanation:wi(n.explanation,Mi(t,`explanation`)),nextAction:wi(n.nextAction,Mi(t,`nextAction`)),...Oi(n,`href`,t),...i===void 0?{}:{policy:{...i.blockedPaths===void 0?{}:{blockedPaths:Ci(i.blockedPaths,Mi(t,`policy.blockedPaths`),wi)},...i.matchedPaths===void 0?{}:{matchedPaths:Ci(i.matchedPaths,Mi(t,`policy.matchedPaths`),wi)},...ki(i,`maxFilesChanged`,Mi(t,`policy`)),...ki(i,`filesChanged`,Mi(t,`policy`))}}}}function Tf(e){let t=Si(e,`operatorInstructions`);return{...Oi(t,`content`,`operatorInstructions`),...Oi(t,`author`,`operatorInstructions`),...Oi(t,`occurredAt`,`operatorInstructions`),contextScope:wi(t.contextScope,`operatorInstructions.contextScope`),revisionId:t.revisionId===null?null:wi(t.revisionId,`operatorInstructions.revisionId`)}}var Ef=(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),title:wi(n.title,Mi(t,`title`))}},Df=(e,t=``)=>Ci(e,t,Ef);function Of(e,t){let n=Si(e,t),r=Object.values(ud).find(e=>e===n.id);return r===void 0&&Ni(Mi(t,`id`)),{id:r,from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),bucketMs:Di(n.bucketMs,Mi(t,`bucketMs`))}}function kf(e,t){return Object.fromEntries(Object.entries(Si(e,t)).map(([e,n])=>[e,Di(n,Mi(t,e))]))}var Af=(e,t=``)=>{let n=Si(e,t);if(`statistics`in n){let e=(e,t=``)=>{let n=Si(e,t),r=e=>n[e]===null?null:Di(n[e],Mi(t,e));return{count:Di(n.count,Mi(t,`count`)),medianMs:r(`medianMs`),averageMs:r(`averageMs`)}};return{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),statistics:e(n.statistics,Mi(t,`statistics`)),groups:Ci(n.groups,Mi(t,`groups`),(t,n=``)=>{let r=Si(t,n);return{...Ef(t,n),rows:Ci(r.rows,Mi(n,`rows`),(t,n=``)=>({value:wi(Si(t,n).value,Mi(n,`value`)),...e(t,n)}))}}),buckets:Ci(n.buckets,Mi(t,`buckets`),(t,n=``)=>{let r=Si(t,n);return{from:wi(r.from,Mi(n,`from`)),to:wi(r.to,Mi(n,`to`)),...e(t,n)}})}}return`dimensions`in n?{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),total:Di(n.total,Mi(t,`total`)),dimensions:Ci(n.dimensions,Mi(t,`dimensions`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),rows:Ci(n.rows,Mi(t,`rows`),(e,t=``)=>{let n=Si(e,t);return{value:wi(n.value,Mi(t,`value`)),count:Di(n.count,Mi(t,`count`)),share:Di(n.share,Mi(t,`share`))}})}})}:{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),series:Ci(n.series,Mi(t,`series`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),...n.unit===void 0?{}:{unit:wi(n.unit,Mi(t,`unit`))}}}),...n.durationRows===void 0?{}:{durationRows:Ci(n.durationRows,Mi(t,`durationRows`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),createdAt:wi(n.createdAt,Mi(t,`createdAt`)),completedAt:wi(n.completedAt,Mi(t,`completedAt`)),durationMs:Di(n.durationMs,Mi(t,`durationMs`))}}),excludedDurationCount:Di(n.excludedDurationCount,Mi(t,`excludedDurationCount`))},totals:kf(n.totals,Mi(t,`totals`)),buckets:Ci(n.buckets,Mi(t,`buckets`),(e,t=``)=>{let n=Si(e,t);return{from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),values:kf(n.values,Mi(t,`values`))}})}},jf=Object.keys({completed:!0,failed:!0}),Mf={Completed:jf[0],Failed:jf[1]},Nf=(e,t=``)=>{let n=Si(e,t),r=e=>Di(n[e],Mi(t,e)),i=e=>n[e]===null?null:r(e);return{window:Of(n.window,Mi(t,`window`)),runs:r(`runs`),completed:r(Mf.Completed),blockedOrAwaitingApproval:r(`blockedOrAwaitingApproval`),failed:r(Mf.Failed),totalTokens:r(`totalTokens`),totalCostUsd:r(`totalCostUsd`),medianRunDurationMs:i(`medianRunDurationMs`),workItemsDone:r(`workItemsDone`),medianEndToEndDurationMs:i(`medianEndToEndDurationMs`)}},Pf=(e,t=``)=>{let n=Si(e,t),r=Si(n.values,Mi(t,`values`));return{collectedAt:wi(n.collectedAt,Mi(t,`collectedAt`)),window:Ff(n.window,Mi(t,`window`)),values:Object.fromEntries(Object.entries(r).map(([e,n])=>[e,Di(n,Mi(t,`values.${e}`))]))}};function Ff(e,t){let n=Si(e,t);return{days:Di(n.days,Mi(t,`days`)),from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`))}}var If=(e,t=``)=>{let n=Si(e,t);return{status:Vf(n.status,Mi(t,`status`)),version:wi(n.version,Mi(t,`version`)),checkedAt:wi(n.checkedAt,Mi(t,`checkedAt`)),...n.checks===void 0?{}:{checks:Ci(n.checks,Mi(t,`checks`),(e,t=``)=>{let n=Si(e,t);return{name:wi(n.name,Mi(t,`name`)),status:Vf(n.status,Mi(t,`status`)),...Oi(n,`detail`,t)}})},...n.adapters===void 0?{}:{adapters:Ci(n.adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapterId`)),provider:wi(n.provider,Mi(t,`provider`)),scope:wi(n.scope,Mi(t,`scope`)),channel:wi(n.channel,Mi(t,`channel`)),status:Hf(n.status,Mi(t,`status`)),successCount:Di(n.successCount,Mi(t,`successCount`)),failureCount:Di(n.failureCount,Mi(t,`failureCount`)),...Oi(n,`detail`,t)}})}}},Lf=(e,t=``)=>{let n=Si(e,t),r=Mi(t,`configuration`);return{configuration:Si(ji(n.configuration,r),r)}},Rf=(e,t=``)=>({adapters:Ci(Si(e,t).adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapterId`)),provider:wi(n.provider,Mi(t,`provider`)),commands:Ci(n.commands,Mi(t,`commands`),(e,t=``)=>({syntax:wi(Si(e,t).syntax,Mi(t,`syntax`))}))}})}),zf=(e,t=``)=>({adapters:Ci(Si(e,t).adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapter`)),provider:wi(n.provider,Mi(t,`provider`)),hooks:Ci(n.hooks,Mi(t,`hooks`),(e,t=``)=>{let n=Si(e,t);return{scope:wi(n.scope,Mi(t,`scope`)),endpoint:wi(n.endpoint,Mi(t,`endpoint`)),events:Ci(n.events,Mi(t,`events`),wi),secret:wi(n.secret,Mi(t,`secret`))}})}})});function Bf(e,t){try{let t=Si(e,`problem`);return{type:wi(t.type,`problem.type`),title:wi(t.title,`problem.title`),status:Di(t.status,`problem.status`),...Oi(t,`detail`,`problem`),...Oi(t,`instance`,`problem`),...Oi(t,`code`,`problem`),...t.retryable===void 0?{}:{retryable:Ei(t.retryable,`problem.retryable`)},...t.current===void 0?{}:{current:ji(t.current,`problem.current`)},...t.violations===void 0?{}:{violations:Ci(t.violations,`problem.violations`,(e,t=``)=>{let n=Si(e,t);return{path:wi(n.path,Mi(t,`path`)),message:wi(n.message,Mi(t,`message`))}})}}}catch{return{type:`about:blank`,title:`Request failed`,status:t}}}function Vf(e,t){let n=wi(e,t);return n!==`ok`&&n!==`degraded`&&Ni(t),n}function Hf(e,t){let n=wi(e,t);return n!==`ok`&&n!==`degraded`&&n!==zd.Unknown&&Ni(t),n}var Uf=Nu({triggerId:$l(),coordinationKey:$l(),source:Gd,disposition:Vu(Od),sources:ju(Gd),manualOutcome:Jd.optional(),activeWorkItemId:$l().nullable()}),Wf=Nu({claim:Nu({triggerId:$l(),coordinationKey:$l(),source:Gd,sources:ju(Gd),workItemId:$l(),workflowInstanceId:$l(),workflowName:$l()}),claimedAt:$l(),startedAt:$l().optional(),finishedAt:$l().optional(),failureOutcomeCount:xu().optional(),result:Nu({triggerId:$l(),coordinationKey:$l(),workItemId:$l(),workflowInstanceId:$l(),status:Vu([jd.Completed,jd.Superseded]),reason:$l().optional()}).optional(),workItemKey:$l()}),Gf=Nu({operatorInstructions:Nu({contextScope:$l(),revisionId:$l(),content:$l(),author:$l(),occurredAt:$l()}).nullable().optional(),activeInvocation:Nu({activeWorkItemId:$l(),workItemKey:$l(),triggerId:$l(),workflowInstanceId:$l(),workflowStatus:Vu(Fd).nullable(),blockReason:$l().nullable(),retryEligible:Tu()}).nullable(),triggerId:$l(),status:Vu(Vd),definition:qd.nullable(),paused:Tu(),pauseReason:$l().nullable(),nextOccurrence:$l().nullable(),pending:ju(Uf),latestSkip:Kd.nullable(),invocations:ju(Wf)});function Kf(e){return Gf.parse(e)}function qf(e){return ju(Gf).parse(e)}function Jf(e){return ju(Nu({contextScope:$l(),revisionId:$l(),content:$l().nullable(),author:$l(),occurredAt:$l()})).parse(e)}var Yf=class extends Error{constructor(e){super(e.detail??e.title),this.problem=e,this.name=`ApiProblem`}},Xf=class{constructor(e=fetch,t=`/api/v1`){this.fetchImplementation=e,this.baseUrl=t,this.auth={session:async()=>{let e=this.fetchImplementation;return(await e(`${this.baseUrl}/auth/session`)).ok},login:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/login`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({accessKey:e})})).ok},redeem:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/redeem`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({grant:e})})).ok}},this.triggers={list:e=>this.get(`/triggers`,e=>{let t=Xd(qf)(e),n=Si(e,`triggers`);return{...t,orphanedInstructions:Jf(n.orphanedInstructions??[])}},e),detail:(e,t)=>this.get(`/triggers/`+encodeURIComponent(e),Xd(Kf),t),saveInstructions:(e,t,n,r)=>this.request(`/triggers/`+encodeURIComponent(e)+`/commands/instructions`,Xd(ef),{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({content:t,expectedRevisionId:n,idempotencyKey:r})}),command:(e,t,n,r)=>this.command(`/triggers/`+encodeURIComponent(e)+`/commands/`+t,n,ef,r)},this.board={list:(e,t)=>this.get(`/board${Zf({cursor:e})}`,Zd(nf),t)},this.status={get:e=>this.get(`/status`,Xd(e=>e),e)},this.controlPlane={status:e=>this.get(`/control-plane/status`,Xd(Qd),e),pauseDispatch:(e,t)=>this.command(`/control-plane/commands/pause-dispatch`,e,ef,t),resumeDispatch:(e,t)=>this.command(`/control-plane/commands/resume-dispatch`,e,ef,t),clearMaintenance:(e,t,n)=>this.request(`/control-plane/commands/clear-maintenance`,Xd(ef),{method:`POST`,body:JSON.stringify({attemptId:e,idempotencyKey:t}),headers:{"content-type":`application/json`},...n===void 0?{}:{signal:n}})},this.work={list:(e={},t)=>this.get(`/work-items${Zf(e)}`,Zd(tf),t),detail:(e,t)=>this.get(`/work-items/${encodeURIComponent(e)}`,Xd(mf),t),artifactText:async(e,t,n)=>{let r=this.fetchImplementation,i=await r(`${this.baseUrl}/work-items/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(t)}`,{...n===void 0?{}:{signal:n}});if(!i.ok)throw Error(`Unable to load this artifact. Please try again.`);return i.text()},transcript:(e,t,n)=>this.get(`/work-items/${encodeURIComponent(e)}/transcripts/${encodeURIComponent(t)}`,Xd(vf),n),message:(e,t,n,r,i)=>this.request(`/work-items/${encodeURIComponent(e)}/commands/message`,Xd(ef),{method:`POST`,body:JSON.stringify({idempotencyKey:n,body:t,...i===void 0?{}:{continuation:i}}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),command:(e,t,n,r)=>this.command(`/work-items/${encodeURIComponent(e)}/commands/${t}`,n,ef,r)},this.resources={list:(e,t)=>this.get(`/resources${Zf({cursor:e})}`,Zd(of),t)},this.orchestration={list:(e,t)=>this.get(`/workflow-instances${Zf({cursor:e})}`,Zd(sf),t)},this.workflowDiagrams={get:(e,t)=>this.get(`/workflow-diagrams${Zf({workItemKey:e})}`,Xd(mee),t)},this.execution={runs:(e,t)=>this.get(`/runs${Zf({cursor:e})}`,Zd(pf),t),run:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}`,Xd(pf),t),transcript:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}/transcript`,Xd(_f),t),resolveAmbiguousRun:(e,t,n,r)=>this.request(`/runs/${encodeURIComponent(e)}/commands/resolve`,Xd(ef),{method:`POST`,body:JSON.stringify({idempotencyKey:n,...t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),runners:e=>this.get(`/runners`,Zd(gf),e),pauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/pause`,t,ef,n),unpauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/unpause`,t,ef,n)},this.events={list:(e,t,n)=>{let r=typeof t==`string`?t:void 0,i=typeof t==`string`?n:t;return this.get(`/events${Zf({cursor:e,workItemKey:r})}`,Zd(hf),i)}},this.observability={reports:e=>this.get(`/observability/reports`,Xd(Df),e),report:(e,t,n)=>this.get(`/observability/reports`+Zf({window:e,report:t}),Xd(Af),n),summary:(e,t)=>this.get(`/observability/summary`+Zf({window:e}),Xd(Nf),t),metrics:(e=7,t)=>this.get(`/observability/metrics${Zf({days:String(e)})}`,Xd(Pf),t)},this.system={health:e=>this.get(`/system/health`,Xd(If),e),configuration:e=>this.get(`/system/configuration`,Xd(Lf),e),commands:e=>this.get(`/system/commands`,Xd(Rf),e),webhooks:e=>this.get(`/system/webhooks`,Xd(zf),e)}}async command(e,t,n,r){return this.request(e,Xd(n),{method:`POST`,body:JSON.stringify({idempotencyKey:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}})}get(e,t,n){return this.request(e,t,n===void 0?{}:{signal:n})}async request(e,t,n){let r=this.fetchImplementation,i=await r(`${this.baseUrl}${e}`,{...n,headers:{accept:`application/json, application/problem+json`,...n.headers}}),a=await i.json();if(!i.ok)throw new Yf(Bf(a,i.status));return t(a)}};function Zf(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,r);let n=t.toString();return n===``?``:`?${n}`}var Qf=(0,C.createContext)(null);function $f(){let e=(0,C.useContext)(Qf);if(e===null)throw Error(`WakeApiClient is not configured`);return e}var ep={prefix:`fas`,iconName:`filter`,icon:[512,512,[],`f0b0`,`M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z`]},tp={prefix:`fas`,iconName:`table-columns`,icon:[448,512,[`columns`],`f0db`,`M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z`]},hee={prefix:`fas`,iconName:`paper-plane`,icon:[576,512,[61913],`f1d8`,`M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z`]},np={prefix:`fas`,iconName:`chevron-right`,icon:[320,512,[9002],`f054`,`M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z`]},gee={prefix:`fas`,iconName:`heart-pulse`,icon:[512,512,[`heartbeat`],`f21e`,`M256 107.9L241 87.1C216 52.5 175.9 32 133.1 32 59.6 32 0 91.6 0 165.1l0 2.6c0 23.6 6.2 48 16.6 72.3l106 0c3.2 0 6.1-1.9 7.4-4.9l31.8-76.3c3.7-8.8 12.3-14.6 21.8-14.8s18.3 5.4 22.2 14.1l51.3 113.9 41.4-82.8c4.1-8.1 12.4-13.3 21.5-13.3s17.4 5.1 21.5 13.3l23.2 46.3c1.4 2.7 4.1 4.4 7.2 4.4l123.6 0c10.5-24.3 16.6-48.7 16.6-72.3l0-2.6C512 91.6 452.4 32 378.9 32 336.2 32 296 52.5 271 87.1l-15 20.7zM469.6 288l-97.8 0c-21.2 0-40.6-12-50.1-31l-1.7-3.4-42.5 85.1c-4.1 8.3-12.7 13.5-22 13.3s-17.6-5.7-21.4-14.1l-49.3-109.5-10.5 25.2c-8.7 20.9-29.1 34.5-51.7 34.5l-80.2 0c47.2 73.8 123 141.7 170.4 177.9 12.4 9.4 27.6 14.1 43.1 14.1s30.8-4.6 43.1-14.1C346.6 429.7 422.4 361.8 469.6 288z`]},rp={prefix:`fas`,iconName:`chart-line`,icon:[512,512,[`line-chart`],`f201`,`M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z`]},_ee={prefix:`fas`,iconName:`play`,icon:[448,512,[9654],`f04b`,`M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z`]},ip={prefix:`fas`,iconName:`sliders`,icon:[512,512,[`sliders-h`],`f1de`,`M32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 224zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384z`]},ap={prefix:`fas`,iconName:`chevron-down`,icon:[448,512,[],`f078`,`M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z`]},op={prefix:`fas`,iconName:`clock-rotate-left`,icon:[576,512,[`history`],`f1da`,`M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z`]},vee={prefix:`fas`,iconName:`hourglass-half`,icon:[384,512,[`hourglass-2`],`f252`,`M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z`]},sp={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},yee={prefix:`fas`,iconName:`arrow-down-wide-short`,icon:[576,512,[`sort-amount-asc`,`sort-amount-down`],`f160`,`M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z`]},bee={prefix:`fas`,iconName:`bars`,icon:[448,512,[`navicon`],`f0c9`,`M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z`]},cp={prefix:`fas`,iconName:`list-check`,icon:[512,512,[`tasks`],`f0ae`,`M133.8 36.3c10.9 7.6 13.5 22.6 5.9 33.4l-56 80c-4.1 5.8-10.5 9.5-17.6 10.1S52 158 47 153L7 113C-2.3 103.6-2.3 88.4 7 79S31.6 69.7 41 79l19.8 19.8 39.6-56.6c7.6-10.9 22.6-13.5 33.4-5.9zm0 160c10.9 7.6 13.5 22.6 5.9 33.4l-56 80c-4.1 5.8-10.5 9.5-17.6 10.1S52 318 47 313L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l19.8 19.8 39.6-56.6c7.6-10.9 22.6-13.5 33.4-5.9zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM64 376a40 40 0 1 1 0 80 40 40 0 1 1 0-80z`]};function lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function up(e){if(Array.isArray(e))return e}function dp(e){if(Array.isArray(e))return lp(e)}function fp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ep(r.key),r)}}function mp(e,t,n){return t&&pp(e.prototype,t),n&&pp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hp(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Op(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
74
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function nl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:al(t,`input`,e.processors),output:al(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function rl(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return rl(r.element,n);if(r.type===`set`)return rl(r.valueType,n);if(r.type===`lazy`)return rl(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return rl(r.innerType,n);if(r.type===`intersection`)return rl(r.left,n)||rl(r.right,n);if(r.type===`record`||r.type===`map`)return rl(r.keyType,n)||rl(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:rl(r.in,n)||rl(r.out,n);if(r.type===`object`){for(let e in r.shape)if(rl(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(rl(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(rl(e,n))return!0;return!!(r.rest&&rl(r.rest,n))}return!1}var il=(e,t={})=>n=>{let r=$c({...n,processors:t});return el(e,r),tl(r,e),nl(r,e)},al=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=$c({...i??{},target:a,io:t,processors:n});return el(e,o),tl(o,e),nl(o,e)},ol={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},sl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ol[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},cl=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},ll=(e,t,n,r)=>{n.type=`boolean`},ul=(e,t,n,r)=>{n.not={}},dl=(e,t,n,r)=>{let i=e._zod.def,a=Vi(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},fl=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},pl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ml=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},hl=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=el(a.element,t,{...r,path:[...r.path,`items`]})},gl=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=el(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=el(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},_l=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>el(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},vl=(e,t,n,r)=>{let i=e._zod.def,a=el(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=el(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},yl=(e,t,n,r)=>{let i=e._zod.def,a=el(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},bl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},xl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Sl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Cl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},wl=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;el(o,t,r);let s=t.seen.get(e);s.ref=o},Tl=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},El=(e,t,n,r)=>{let i=e._zod.def;el(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Dl=Ii(`ZodISODateTime`,(e,t)=>{Zo.init(e,t),eu.init(e,t)});function Ol(e){return xc(Dl,e)}var kl=Ii(`ZodISODate`,(e,t)=>{Qo.init(e,t),eu.init(e,t)});function Al(e){return lee(kl,e)}var jl=Ii(`ZodISOTime`,(e,t)=>{$o.init(e,t),eu.init(e,t)});function Ml(e){return Sc(jl,e)}var Nl=Ii(`ZodISODuration`,(e,t)=>{es.init(e,t),eu.init(e,t)});function Pl(e){return Cc(Nl,e)}var Fl=Ii(`ZodError`,(e,t)=>{Ca.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ea(e,t)},flatten:{value:t=>Ta(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Hi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Hi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Il=Da(Fl),Ll=Oa(Fl),Rl=ka(Fl),zl=ja(Fl),Bl=Na(Fl),Vl=Pa(Fl),Hl=Fa(Fl),Ul=Ia(Fl),Wl=La(Fl),Gl=Ra(Fl),Kl=za(Fl),ql=Ba(Fl),Jl=new WeakMap;function Yl(e,t,n){let r=Object.getPrototypeOf(e),i=Jl.get(r);if(i||(i=new Set,Jl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Xl=Ii(`ZodType`,(e,t)=>(Lo.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:al(e,`input`),output:al(e,`output`)}}),e.toJSONSchema=il(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Il(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Rl(e,t,n),e.parseAsync=async(t,n)=>Ll(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>zl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Bl(e,t,n),e.decode=(t,n)=>Vl(e,t,n),e.encodeAsync=async(t,n)=>Hl(e,t,n),e.decodeAsync=async(t,n)=>Ul(e,t,n),e.safeEncode=(t,n)=>Wl(e,t,n),e.safeDecode=(t,n)=>Gl(e,t,n),e.safeEncodeAsync=async(t,n)=>Kl(e,t,n),e.safeDecodeAsync=async(t,n)=>ql(e,t,n),Yl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Xi(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return oa(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(fee(e,t))},superRefine(e,t){return this.check(pee(e,t))},overwrite(e){return this.check(Uc(e))},optional(){return qu(this)},exactOptional(){return Yu(this)},nullable(){return Zu(this)},nullish(){return qu(Zu(this))},nonoptional(e){return rd(this,e)},array(){return ju(this)},or(e){return Fu([this,e])},and(e){return zu(this,e)},transform(e){return sd(this,Gu(e))},default(e){return $u(this,e)},prefault(e){return td(this,e)},catch(e){return ad(this,e)},pipe(e){return sd(this,e)},readonly(){return cd(this)},describe(e){let t=this.clone();return Zs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Zs.get(this);let t=this.clone();return Zs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Zs.get(e)?.description},configurable:!0}),e)),Zl=Ii(`_ZodString`,(e,t)=>{Ro.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Yl(e,`_ZodString`,{regex(...e){return this.check(Lc(...e))},includes(...e){return this.check(Bc(...e))},startsWith(...e){return this.check(Vc(...e))},endsWith(...e){return this.check(Hc(...e))},min(...e){return this.check(Fc(...e))},max(...e){return this.check(Pc(...e))},length(...e){return this.check(Ic(...e))},nonempty(...e){return this.check(Fc(1,...e))},lowercase(e){return this.check(Rc(e))},uppercase(e){return this.check(zc(e))},trim(){return this.check(Gc())},normalize(...e){return this.check(Wc(...e))},toLowerCase(){return this.check(Kc())},toUpperCase(){return this.check(qc())},slugify(){return this.check(Jc())}})}),Ql=Ii(`ZodString`,(e,t)=>{Ro.init(e,t),Zl.init(e,t),e.email=t=>e.check($s(tu,t)),e.url=t=>e.check(ac(iu,t)),e.jwt=t=>e.check(bc(yu,t)),e.emoji=t=>e.check(oc(au,t)),e.guid=t=>e.check(ec(nu,t)),e.uuid=t=>e.check(tc(ru,t)),e.uuidv4=t=>e.check(nc(ru,t)),e.uuidv6=t=>e.check(rc(ru,t)),e.uuidv7=t=>e.check(ic(ru,t)),e.nanoid=t=>e.check(sc(ou,t)),e.guid=t=>e.check(ec(nu,t)),e.cuid=t=>e.check(cc(su,t)),e.cuid2=t=>e.check(lc(cu,t)),e.ulid=t=>e.check(uc(lu,t)),e.base64=t=>e.check(_c(gu,t)),e.base64url=t=>e.check(vc(_u,t)),e.xid=t=>e.check(dc(uu,t)),e.ksuid=t=>e.check(fc(du,t)),e.ipv4=t=>e.check(pc(fu,t)),e.ipv6=t=>e.check(mc(pu,t)),e.cidrv4=t=>e.check(hc(mu,t)),e.cidrv6=t=>e.check(gc(hu,t)),e.e164=t=>e.check(yc(vu,t)),e.datetime=t=>e.check(Ol(t)),e.date=t=>e.check(Al(t)),e.time=t=>e.check(Ml(t)),e.duration=t=>e.check(Pl(t))});function $l(e){return Qs(Ql,e)}var eu=Ii(`ZodStringFormat`,(e,t)=>{zo.init(e,t),Zl.init(e,t)}),tu=Ii(`ZodEmail`,(e,t)=>{Ho.init(e,t),eu.init(e,t)}),nu=Ii(`ZodGUID`,(e,t)=>{Bo.init(e,t),eu.init(e,t)}),ru=Ii(`ZodUUID`,(e,t)=>{Vo.init(e,t),eu.init(e,t)}),iu=Ii(`ZodURL`,(e,t)=>{Uo.init(e,t),eu.init(e,t)}),au=Ii(`ZodEmoji`,(e,t)=>{Wo.init(e,t),eu.init(e,t)}),ou=Ii(`ZodNanoID`,(e,t)=>{Go.init(e,t),eu.init(e,t)}),su=Ii(`ZodCUID`,(e,t)=>{Ko.init(e,t),eu.init(e,t)}),cu=Ii(`ZodCUID2`,(e,t)=>{qo.init(e,t),eu.init(e,t)}),lu=Ii(`ZodULID`,(e,t)=>{Jo.init(e,t),eu.init(e,t)}),uu=Ii(`ZodXID`,(e,t)=>{Yo.init(e,t),eu.init(e,t)}),du=Ii(`ZodKSUID`,(e,t)=>{Xo.init(e,t),eu.init(e,t)}),fu=Ii(`ZodIPv4`,(e,t)=>{ts.init(e,t),eu.init(e,t)}),pu=Ii(`ZodIPv6`,(e,t)=>{ns.init(e,t),eu.init(e,t)}),mu=Ii(`ZodCIDRv4`,(e,t)=>{rs.init(e,t),eu.init(e,t)}),hu=Ii(`ZodCIDRv6`,(e,t)=>{is.init(e,t),eu.init(e,t)}),gu=Ii(`ZodBase64`,(e,t)=>{os.init(e,t),eu.init(e,t)}),_u=Ii(`ZodBase64URL`,(e,t)=>{cs.init(e,t),eu.init(e,t)}),vu=Ii(`ZodE164`,(e,t)=>{ls.init(e,t),eu.init(e,t)}),yu=Ii(`ZodJWT`,(e,t)=>{ds.init(e,t),eu.init(e,t)}),bu=Ii(`ZodNumber`,(e,t)=>{fs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r),Yl(e,`ZodNumber`,{gt(e,t){return this.check(jc(e,t))},gte(e,t){return this.check(Mc(e,t))},min(e,t){return this.check(Mc(e,t))},lt(e,t){return this.check(kc(e,t))},lte(e,t){return this.check(Ac(e,t))},max(e,t){return this.check(Ac(e,t))},int(e){return this.check(Cu(e))},safe(e){return this.check(Cu(e))},positive(e){return this.check(jc(0,e))},nonnegative(e){return this.check(Mc(0,e))},negative(e){return this.check(kc(0,e))},nonpositive(e){return this.check(Ac(0,e))},multipleOf(e,t){return this.check(Nc(e,t))},step(e,t){return this.check(Nc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function xu(e){return wc(bu,e)}var Su=Ii(`ZodNumberFormat`,(e,t)=>{cee.init(e,t),bu.init(e,t)});function Cu(e){return Tc(Su,e)}var wu=Ii(`ZodBoolean`,(e,t)=>{ps.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r)});function Tu(e){return Ec(wu,e)}var Eu=Ii(`ZodUnknown`,(e,t)=>{ms.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Du(){return Dc(Eu)}var Ou=Ii(`ZodNever`,(e,t)=>{hs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r)});function ku(e){return Oc(Ou,e)}var Au=Ii(`ZodArray`,(e,t)=>{_s.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.element=t.element,Yl(e,`ZodArray`,{min(e,t){return this.check(Fc(e,t))},nonempty(e){return this.check(Fc(1,e))},max(e,t){return this.check(Pc(e,t))},length(e,t){return this.check(Ic(e,t))},unwrap(){return this.element}})});function ju(e,t){return Yc(Au,e,t)}var Mu=Ii(`ZodObject`,(e,t)=>{Ss.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),Ji(e,`shape`,()=>t.shape),Yl(e,`ZodObject`,{keyof(){return Vu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Du()})},loose(){return this.clone({...this._zod.def,catchall:Du()})},strict(){return this.clone({...this._zod.def,catchall:ku()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return fa(this,e)},safeExtend(e){return aee(this,e)},merge(e){return oee(this,e)},pick(e){return ua(this,e)},omit(e){return da(this,e)},partial(...e){return pa(Ku,this,e[0])},required(...e){return ma(nd,this,e[0])}})});function Nu(e,t){return new Mu({type:`object`,shape:e??{},...sa(t)})}var Pu=Ii(`ZodUnion`,(e,t)=>{ws.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_l(e,t,n,r),e.options=t.options});function Fu(e,t){return new Pu({type:`union`,options:e,...sa(t)})}var Iu=Ii(`ZodDiscriminatedUnion`,(e,t)=>{Pu.init(e,t),Ts.init(e,t)});function Lu(e,t,n){return new Iu({type:`union`,options:t,discriminator:e,...sa(n)})}var Ru=Ii(`ZodIntersection`,(e,t)=>{Es.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vl(e,t,n,r)});function zu(e,t){return new Ru({type:`intersection`,left:e,right:t})}var Bu=Ii(`ZodEnum`,(e,t)=>{ks.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Bu({...t,checks:[],...sa(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Bu({...t,checks:[],...sa(r),entries:i})}});function Vu(e,t){return new Bu({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...sa(t)})}var Hu=Ii(`ZodLiteral`,(e,t)=>{As.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Uu(e,t){return new Hu({type:`literal`,values:Array.isArray(e)?e:[e],...sa(t)})}var Wu=Ii(`ZodTransform`,(e,t)=>{js.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ri(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(xa(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(xa(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Gu(e){return new Wu({type:`transform`,transform:e})}var Ku=Ii(`ZodOptional`,(e,t)=>{Ns.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qu(e){return new Ku({type:`optional`,innerType:e})}var Ju=Ii(`ZodExactOptional`,(e,t)=>{Ps.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>El(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yu(e){return new Ju({type:`optional`,innerType:e})}var Xu=Ii(`ZodNullable`,(e,t)=>{Fs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zu(e){return new Xu({type:`nullable`,innerType:e})}var Qu=Ii(`ZodDefault`,(e,t)=>{Is.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $u(e,t){return new Qu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}var ed=Ii(`ZodPrefault`,(e,t)=>{Rs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function td(e,t){return new ed({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ra(t)}})}var nd=Ii(`ZodNonOptional`,(e,t)=>{zs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rd(e,t){return new nd({type:`nonoptional`,innerType:e,...sa(t)})}var id=Ii(`ZodCatch`,(e,t)=>{Vs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ad(e,t){return new id({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var od=Ii(`ZodPipe`,(e,t)=>{Hs.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wl(e,t,n,r),e.in=t.in,e.out=t.out});function sd(e,t){return new od({type:`pipe`,in:e,out:t})}var uee=Ii(`ZodReadonly`,(e,t)=>{Ws.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function cd(e){return new uee({type:`readonly`,innerType:e})}var dee=Ii(`ZodCustom`,(e,t)=>{Ks.init(e,t),Xl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r)});function fee(e,t={}){return Xc(dee,e,t)}function pee(e,t){return Zc(e,t)}var ld=e=>e,ud=ld({Day:`1d`,ThreeDays:`3d`,FiveDays:`5d`,Week:`7d`}),dd=Object.keys({accepted:!0,completed:!0}),fd={Accepted:dd[0],Completed:dd[1]},pd={Active:Object.keys({active:!0})[0]},md={Adapter:Object.keys({adapter:!0})[0]},hd=Object.keys({failed:!0,succeeded:!0}),gd={Failed:hd[0],Succeeded:hd[1]},_d=Object.keys({starting:!0,started:!0}),vd={Starting:_d[0],Started:_d[1]},yd=ld({Waiting:`waiting`,Done:`done`,Rejected:`rejected`,Blocked:`blocked`,Failed:`failed`}),bd=Object.keys({ready:!0,active:!0,"needs-input":!0,error:!0,finished:!0}),xd={Ready:bd[0],Active:bd[1],NeedsInput:bd[2],Error:bd[3],Finished:bd[4]};Object.keys({stage:!0})[0];var Sd=Object.keys({input:!0,agent:!0}),Cd={Input:Sd[0],Agent:Sd[1]},wd=Object.keys({session:!0,run:!0}),Td={Session:wd[0],Run:wd[1]},Ed={Event:`event`,Cron:`cron`,Manual:`manual`},Dd={started:!0},Od={Started:Object.keys(Dd)[0],Coalesced:`coalesced`,Skipped:`skipped`},kd={OwnScope:`own-scope`,Paused:`paused`,Removed:`removed`,DispatchPaused:`dispatch-paused`,Capacity:`capacity-unavailable`,PendingLimit:`pending-source-limit`},Ad=Object.keys({completed:!0,superseded:!0}),jd={Completed:Ad[0],Superseded:Ad[1]},Md={Started:Object.keys(Dd)[0],Coalesced:Od.Coalesced,Skipped:Od.Skipped},Nd=Object.keys({pause:!0,resume:!0,run:!0}),Pd={Pause:Nd[0],Resume:Nd[1],Run:Nd[2]},Fd=ld({Active:`active`,Waiting:`waiting`,Completed:`completed`,Blocked:`blocked`,Superseded:`superseded`}),Id=Object.keys({"execution-recovery-ambiguous:":!0})[0];function Ld(e){return e?.startsWith(Id)===!0||e!==void 0&&/^run-ambiguous-after-\d+-attempts$/.test(e)}var Rd=xd,zd=ld({Unknown:`unknown`}),Bd=Object.keys({enabled:!0,paused:!0,running:!0,removed:!0}),Vd={Enabled:Bd[0],Paused:Bd[1],Running:Bd[2],Removed:Bd[3]},Hd=Object.keys({pause:!0,resume:!0,run:!0});Hd[0],Hd[1],Hd[2];var Ud=Object.keys({activity:!0,watch:!0,"watch-gate":!0,reactor:!0}),Wd={Activity:Ud[0],Watch:Ud[1],WatchGate:Ud[2],Reactor:Ud[3]},Gd=Lu(`kind`,[Nu({kind:Uu(Ed.Manual),commandId:$l(),operator:$l()}),Nu({kind:Uu(Ed.Cron),slot:$l()}),Nu({kind:Uu(Ed.Event),eventId:$l(),eventType:$l()})]),Kd=Nu({triggerId:$l(),source:Gd,occurredAt:$l(),reason:Vu(kd)}),qd=Nu({id:$l(),workflow:$l(),contextScope:$l().optional(),on:Nu({cron:$l().optional(),events:ju($l()).optional()}),when:Nu({capacityAvailable:Uu(!0)}).optional()}),Jd=Lu(`disposition`,[Nu({disposition:Uu(Md.Started),workItemId:$l().optional()}),Nu({disposition:Uu(Md.Coalesced),activeWorkItemId:$l().optional()}),Nu({disposition:Uu(Md.Skipped),reason:Vu(kd)})]),Yd=Object.keys({stage:!0})[0];function Xd(e){return(t,n=``)=>{let r=Si(t,n);return{data:e(r.data,Mi(n,`data`)),meta:xi(r.meta,Mi(n,`meta`))}}}function Zd(e){return(t,n=``)=>{let r=Si(t,n),i=Si(r.page,Mi(n,`page`));return{items:Ci(r.items,Mi(n,`items`),e),page:{nextCursor:Ti(i.nextCursor,Mi(n,`page.nextCursor`)),hasMore:Ei(i.hasMore,Mi(n,`page.hasMore`)),...ki(i,`total`,Mi(n,`page`))},meta:xi(r.meta,Mi(n,`meta`))}}}var Qd=(e,t=``)=>{let n=Si(e,t);return{dispatchPaused:Ei(n.dispatchPaused,Mi(t,`dispatchPaused`)),...Oi(n,`dispatchPausedUntil`,t),...Oi(n,`dispatchPauseReason`,t),updatedAt:wi(n.updatedAt,Mi(t,`updatedAt`)),...n.maintenanceLease===void 0?{}:{maintenanceLease:$d(n.maintenanceLease,Mi(t,`maintenanceLease`))}}};function $d(e,t){let n=Si(e,t);return{attemptId:wi(n.attemptId,Mi(t,`attemptId`)),phase:wi(n.phase,Mi(t,`phase`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`failure`,t)}}var ef=(e,t=``)=>{let n=Si(e,t),r=wi(n.status,Mi(t,`status`));return r!==fd.Accepted&&r!==fd.Completed&&Ni(Mi(t,`status`)),{...n.triggerOutcome===void 0?{}:{triggerOutcome:Jd.parse(n.triggerOutcome)},commandId:wi(n.commandId,Mi(t,`commandId`)),idempotencyKey:wi(n.idempotencyKey,Mi(t,`idempotencyKey`)),acceptedAt:wi(n.acceptedAt,Mi(t,`acceptedAt`)),status:r}},tf=(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workItemId:wi(n.workItemId,Mi(t,`workItemId`)),objective:wi(n.objective,Mi(t,`objective`)),state:wi(n.state,Mi(t,`state`)),...Ai(n,`frozen`,t),...Ai(n,`deleted`,t),...Oi(n,`externalRef`,t),...Oi(n,`lastRunOutcome`,t),relatedWorkItems:Ci(n.relatedWorkItems,Mi(t,`relatedWorkItems`),(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t??``,`workItemKey`)),relation:wi(n.relation,Mi(t??``,`relation`))}})}},nf=(e,t=``)=>{let n=Si(e,t);return{workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workItemId:wi(n.workItemId,Mi(t,`workItemId`)),objective:wi(n.objective,Mi(t,`objective`)),condition:wi(n.condition,Mi(t,`condition`)),...Ai(n,`frozen`,t),...Ai(n,`awaitingApproval`,t),...Ai(n,`extendEligible`,t),...Oi(n,`workflowName`,t),...Oi(n,Yd,t),...Oi(n,`blockReason`,t),dwellSince:wi(n.dwellSince,Mi(t,`dwellSince`)),runCount:Di(n.runCount,Mi(t,`runCount`)),...Oi(n,`lastRunAt`,t),...Oi(n,`lastRunOutcome`,t),...ki(n,`lastRunAgeMs`,t),totalTokens:Di(n.totalTokens,Mi(t,`totalTokens`)),...ki(n,`inputTokens`,t),...ki(n,`outputTokens`,t),...ki(n,`cacheReadTokens`,t),...ki(n,`cacheWriteTokens`,t),totalCostUsd:Di(n.totalCostUsd,Mi(t,`totalCostUsd`)),totalDurationMs:Di(n.totalDurationMs,Mi(t,`totalDurationMs`)),activeRuns:rf(n.activeRuns,Mi(t,`activeRuns`)),...Oi(n,`externalRef`,t)}};function rf(e,t){return e===void 0?{}:Object.fromEntries(Object.entries(Si(e,t)).map(([e,n])=>[e,af(n,Mi(t,e))]))}function af(e,t){let n=Si(e,t),r=wi(n.phase,Mi(t,`phase`));return Object.values(vd).includes(r)||Ni(Mi(t,`phase`)),{action:wi(n.action,Mi(t,`action`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),elapsedMs:Di(n.elapsedMs,Mi(t,`elapsedMs`)),phase:r,...Oi(n,`runnerName`,t)}}var of=(e,t=``)=>{let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),adapter:wi(n[md.Adapter],Mi(t,md.Adapter)),kind:wi(n.kind,Mi(t,`kind`)),locatorLabel:wi(n.locatorLabel,Mi(t,`locatorLabel`)),capabilities:Ci(n.capabilities,Mi(t,`capabilities`),wi),...Oi(n,`title`,t),...Oi(n,`externalUrl`,t),...Oi(n,`revision`,t)}},sf=(e,t=``)=>{let n=Si(e,t),r=n.waitingFor;return{workflowInstanceId:wi(n.workflowInstanceId,Mi(t,`workflowInstanceId`)),workItemKey:wi(n.workItemKey,Mi(t,`workItemKey`)),workflowName:wi(n.workflowName,Mi(t,`workflowName`)),orchestrationGroupId:wi(n.orchestrationGroupId,Mi(t,`orchestrationGroupId`)),...Oi(n,`parentWorkflowInstanceId`,t),status:wi(n.status,Mi(t,`status`)),currentStage:wi(n.currentStage,Mi(t,`currentStage`)),...Oi(n,`blockReason`,t),...Ai(n,`retryEligible`,t),...Ai(n,`extendEligible`,t),...n.mergePolicyBlock===void 0?{}:{mergePolicyBlock:wf(n.mergePolicyBlock,Mi(t,`mergePolicyBlock`))},...r===void 0?{}:{waitingFor:{signalKind:wi(Si(r,Mi(t,`waitingFor`)).signalKind,Mi(t,`waitingFor.signalKind`))}}}},mee=(e,t=``)=>({diagrams:Ci(Si(e,t).diagrams,Mi(t,`diagrams`),cf)});function cf(e,t=``){let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),direction:`left-to-right`,stages:Ci(n.stages,Mi(t,`stages`),(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),children:Ci(n.children,Mi(t,`children`),(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),label:wi(n.label,Mi(t,`label`)),kind:lf(n.kind,Mi(t,`kind`)),...uf(n,t)}}),...uf(n,t)}}),transitions:Ci(n.transitions,Mi(t,`transitions`),(e,t=``)=>{let n=Si(e,t);return{from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),label:wi(n.label,Mi(t,`label`)),...Oi(n,`fromChildId`,t)}})}}function lf(e,t){let n=wi(e,t);return Object.values(Wd).includes(n)||Ni(t),n}function uf(e,t){let n=e.activeRuns;return{...Oi(e,`status`,t),...Oi(e,`lastOutcome`,t),...ki(e,`runCount`,t),...ki(e,`totalDurationMs`,t),...ki(e,`totalTokens`,t),...ki(e,`inputTokens`,t),...ki(e,`outputTokens`,t),...ki(e,`cacheReadTokens`,t),...ki(e,`cacheWriteTokens`,t),...ki(e,`totalCostUsd`,t),...n===void 0?{}:{activeRuns:Ci(n,Mi(t,`activeRuns`),(e,t=``)=>{let n=Si(e,t);return{runId:wi(n.runId,Mi(t,`runId`)),activity:wi(n.activity,Mi(t,`activity`)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`runnerName`,t)}})}}}var df=[`DONE`,`FAILED`,`AMBIGUOUS`];function ff(e,t){let n=Mi(t,`resolution`),r=Si(e,n),i=wi(r.sentinel,Mi(n,`sentinel`));return df.includes(i)||Ni(Mi(n,`sentinel`)),{sentinel:i,resolvedAt:wi(r.resolvedAt,Mi(n,`resolvedAt`))}}var pf=(e,t=``)=>{let n=Si(e,t),r=n.failure,i=n.resolution;return{...n.operatorInstructions===void 0?{}:{operatorInstructions:Tf(n.operatorInstructions)},runId:wi(n.runId,Mi(t,`runId`)),activationId:wi(n.activationId,Mi(t,`activationId`)),activity:wi(n.activity,Mi(t,`activity`)),workflowInstanceId:wi(n.workflowInstanceId,Mi(t,`workflowInstanceId`)),orchestrationGroupId:wi(n.orchestrationGroupId,Mi(t,`orchestrationGroupId`)),attempt:Di(n.attempt,Mi(t,`attempt`)),status:wi(n.status,Mi(t,`status`)),active:Ei(n.active,Mi(t,pd.Active)),startedAt:wi(n.startedAt,Mi(t,`startedAt`)),...Oi(n,`executionStartedAt`,t),...Oi(n,`finishedAt`,t),sentinel:wi(n.sentinel,Mi(t,`sentinel`)),...Oi(n,`runnerName`,t),...Oi(n,`runnerModel`,t),...Oi(n,`workflowName`,t),...Oi(n,Yd,t),totalTokens:Di(n.totalTokens,Mi(t,`totalTokens`)),...ki(n,`inputTokens`,t),...ki(n,`outputTokens`,t),...ki(n,`cacheReadTokens`,t),...ki(n,`cacheWriteTokens`,t),totalCostUsd:Di(n.totalCostUsd,Mi(t,`totalCostUsd`)),...n.outcome===void 0?{}:{outcome:ji(n.outcome,Mi(t,`outcome`))},...r===void 0?{}:{failure:{kind:wi(Si(r,Mi(t,`failure`)).kind,Mi(t,`failure.kind`))}},...i===void 0?{}:{resolution:ff(i,t)}}},mf=(e,t=``)=>{let n=Object.keys({conversation:!0})[0],r=Object.keys({stage:!0})[0],i=Si(e,t),a=Si(i.orchestration,Mi(t,`orchestration`)),o=Si(i.execution,Mi(t,`execution`)),s=Si(i.activities,Mi(t,`activities`)),c=i.artifacts===void 0?[]:Ci(i.artifacts,Mi(t,`artifacts`),(e,t=``)=>{let n=Si(e,t);return{revisionId:wi(n.revisionId,Mi(t,`revisionId`)),producer:wi(n.producer,Mi(t,`producer`)),path:wi(n.path,Mi(t,`path`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),...Oi(n,`mediaType`,t),...ki(n,`byteLength`,t),...Oi(n,`digest`,t),href:wi(n.href,Mi(t,`href`))}}),l=i.conversation===void 0?void 0:Si(i.conversation,Mi(t,n));return{...Oi(i,`triggerOrigin`,t),work:tf(i.work,Mi(t,`work`)),resources:Ci(i.resources,Mi(t,`resources`),of),orchestration:{primary:a.primary===null?null:sf(a.primary,Mi(t,`orchestration.primary`)),children:Ci(a.children,Mi(t,`orchestration.children`),sf),diagram:bf(a.diagram,Mi(t,`orchestration.diagram`))},execution:{runs:Ci(o.runs,Mi(t,`execution.runs`),pf),transcriptGroups:Ci(o.transcriptGroups,Mi(t,`execution.transcriptGroups`),(e,t=``)=>{let n=Si(e,t);return{groupId:wi(n.groupId,Mi(t,`groupId`)),kind:Sf(n.kind,Mi(t,`kind`)),...Oi(n,`cli`,t),latestAt:wi(n.latestAt,Mi(t,`latestAt`)),runIds:Ci(n.runIds,Mi(t,`runIds`),wi)}})},activities:s.pullRequest===void 0?{}:{pullRequest:Cf(s.pullRequest,Mi(t,`activities.pullRequest`))},artifacts:c,conversation:{canCreateEntries:l?.canCreateEntries===!0,canContinue:l?.canContinue===!0,entries:l===void 0?[]:Ci(l.entries,Mi(t,`${n}.entries`),(e,t=``)=>{let n=Si(e,t);return{entryId:wi(n.entryId,Mi(t,`entryId`)),body:wi(n.body,Mi(t,`body`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),origin:wi(n.origin,Mi(t,`origin`)),actorId:wi(n.actorId,Mi(t,`actorId`)),...Oi(n,`runId`,t),...Oi(n,r,t),...Oi(n,`sourceAdapter`,t),...Oi(n,`sourceResourceId`,t),...Oi(n,`sourceThreadId`,t),deleted:Ei(n.deleted,Mi(t,`deleted`)),representations:Ci(n.representations,Mi(t,`representations`),(e,t=``)=>{let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),externalId:wi(n.externalId,Mi(t,`externalId`))}})}})}}},hf=(e,t=``)=>{let n=Si(e,t),r=n.stream;return{id:wi(n.id,Mi(t,`id`)),type:wi(n.type,Mi(t,`type`)),occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),position:Di(n.position,Mi(t,`position`)),...r===void 0?{}:{stream:{kind:wi(Si(r,Mi(t,`stream`)).kind,Mi(t,`stream.kind`)),id:wi(Si(r,Mi(t,`stream`)).id,Mi(t,`stream.id`))}},...Oi(n,`causationId`,t),...Oi(n,`correlationId`,t),payload:n.payload}},gf=(e,t=``)=>{let n=Si(e,t);return{runnerId:wi(n.runnerId,Mi(t,`runnerId`)),status:wi(n.status,Mi(t,`status`)),available:Ei(n.available,Mi(t,`available`)),...Oi(n,`detail`,t),updatedAt:wi(n.updatedAt,Mi(t,`updatedAt`))}},_f=(e,t=``)=>{let n=Si(e,t);return{runId:wi(n.runId,Mi(t,`runId`)),...Oi(n,`groupId`,t),available:Ei(n.available,Mi(t,`available`)),entries:Ci(n.entries,Mi(t,`entries`),(e,t=``)=>{let n=Si(e,t);return{occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),channel:xf(n.channel,Mi(t,`channel`)),text:wi(n.text,Mi(t,`text`)),runId:wi(n.runId,Mi(t,`runId`)),groupId:wi(n.groupId,Mi(t,`groupId`)),...ki(n,`durationMs`,t)}})}},vf=(e,t=``)=>{let n=Si(e,t);return{groupId:wi(n.groupId,Mi(t,`groupId`)),available:Ei(n.available,Mi(t,`available`)),entries:Ci(n.entries,Mi(t,`entries`),yf)}};function yf(e,t=``){let n=Si(e,t);return{occurredAt:wi(n.occurredAt,Mi(t,`occurredAt`)),channel:xf(n.channel,Mi(t,`channel`)),text:wi(n.text,Mi(t,`text`)),runId:wi(n.runId,Mi(t,`runId`)),groupId:wi(n.groupId,Mi(t,`groupId`)),...ki(n,`durationMs`,t)}}function bf(e,t){return{href:wi(Si(e,t).href,Mi(t,`href`))}}function xf(e,t){let n=wi(e,t);return n!==Cd.Input&&n!==Cd.Agent&&Ni(t),n}function Sf(e,t){let n=wi(e,t);return n!==Td.Session&&n!==Td.Run&&Ni(t),n}function Cf(e,t=``){let n=Si(e,t);return{resourceId:wi(n.resourceId,Mi(t,`resourceId`)),state:wi(n.state,Mi(t,`state`)),...Ai(n,`frozen`,t),...Ai(n,`deleted`,t),headRevision:wi(n.headRevision,Mi(t,`headRevision`)),baseRevision:wi(n.baseRevision,Mi(t,`baseRevision`)),checks:wi(n.checks,Mi(t,`checks`))}}function wf(e,t){let n=Si(e,t),r=wi(n.status,Mi(t,`status`));if(r!==`awaiting-human-merge`&&r!==`recovering`)throw Error(`${t}.status: invalid merge policy status`);let i=n.policy===void 0?void 0:Si(n.policy,Mi(t,`policy`));return{status:r,explanation:wi(n.explanation,Mi(t,`explanation`)),nextAction:wi(n.nextAction,Mi(t,`nextAction`)),...Oi(n,`href`,t),...i===void 0?{}:{policy:{...i.blockedPaths===void 0?{}:{blockedPaths:Ci(i.blockedPaths,Mi(t,`policy.blockedPaths`),wi)},...i.matchedPaths===void 0?{}:{matchedPaths:Ci(i.matchedPaths,Mi(t,`policy.matchedPaths`),wi)},...ki(i,`maxFilesChanged`,Mi(t,`policy`)),...ki(i,`filesChanged`,Mi(t,`policy`))}}}}function Tf(e){let t=Si(e,`operatorInstructions`);return{...Oi(t,`content`,`operatorInstructions`),...Oi(t,`author`,`operatorInstructions`),...Oi(t,`occurredAt`,`operatorInstructions`),contextScope:wi(t.contextScope,`operatorInstructions.contextScope`),revisionId:t.revisionId===null?null:wi(t.revisionId,`operatorInstructions.revisionId`)}}var Ef=(e,t=``)=>{let n=Si(e,t);return{id:wi(n.id,Mi(t,`id`)),title:wi(n.title,Mi(t,`title`))}},Df=(e,t=``)=>Ci(e,t,Ef);function Of(e,t){let n=Si(e,t),r=Object.values(ud).find(e=>e===n.id);return r===void 0&&Ni(Mi(t,`id`)),{id:r,from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),bucketMs:Di(n.bucketMs,Mi(t,`bucketMs`))}}function kf(e,t){return Object.fromEntries(Object.entries(Si(e,t)).map(([e,n])=>[e,Di(n,Mi(t,e))]))}var Af=(e,t=``)=>{let n=Si(e,t);if(`statistics`in n){let e=(e,t=``)=>{let n=Si(e,t),r=e=>n[e]===null?null:Di(n[e],Mi(t,e));return{count:Di(n.count,Mi(t,`count`)),medianMs:r(`medianMs`),averageMs:r(`averageMs`)}};return{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),statistics:e(n.statistics,Mi(t,`statistics`)),groups:Ci(n.groups,Mi(t,`groups`),(t,n=``)=>{let r=Si(t,n);return{...Ef(t,n),rows:Ci(r.rows,Mi(n,`rows`),(t,n=``)=>({value:wi(Si(t,n).value,Mi(n,`value`)),...e(t,n)}))}}),buckets:Ci(n.buckets,Mi(t,`buckets`),(t,n=``)=>{let r=Si(t,n);return{from:wi(r.from,Mi(n,`from`)),to:wi(r.to,Mi(n,`to`)),...e(t,n)}})}}return`dimensions`in n?{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),total:Di(n.total,Mi(t,`total`)),dimensions:Ci(n.dimensions,Mi(t,`dimensions`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),rows:Ci(n.rows,Mi(t,`rows`),(e,t=``)=>{let n=Si(e,t);return{value:wi(n.value,Mi(t,`value`)),count:Di(n.count,Mi(t,`count`)),share:Di(n.share,Mi(t,`share`)),tokens:Di(n.tokens,Mi(t,`tokens`)),costUsd:Di(n.costUsd,Mi(t,`costUsd`)),durationMs:Di(n.durationMs,Mi(t,`durationMs`)),tokenRuns:Di(n.tokenRuns,Mi(t,`tokenRuns`)),costRuns:Di(n.costRuns,Mi(t,`costRuns`)),durationRuns:Di(n.durationRuns,Mi(t,`durationRuns`))}})}})}:{report:Ef(n.report,Mi(t,`report`)),window:Of(n.window,Mi(t,`window`)),series:Ci(n.series,Mi(t,`series`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),...n.unit===void 0?{}:{unit:wi(n.unit,Mi(t,`unit`))}}}),...n.durationRows===void 0?{}:{durationRows:Ci(n.durationRows,Mi(t,`durationRows`),(e,t=``)=>{let n=Si(e,t);return{...Ef(e,t),createdAt:wi(n.createdAt,Mi(t,`createdAt`)),completedAt:wi(n.completedAt,Mi(t,`completedAt`)),durationMs:Di(n.durationMs,Mi(t,`durationMs`))}}),excludedDurationCount:Di(n.excludedDurationCount,Mi(t,`excludedDurationCount`))},totals:kf(n.totals,Mi(t,`totals`)),buckets:Ci(n.buckets,Mi(t,`buckets`),(e,t=``)=>{let n=Si(e,t);return{from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`)),values:kf(n.values,Mi(t,`values`))}})}},jf=Object.keys({completed:!0,failed:!0}),Mf={Completed:jf[0],Failed:jf[1]},Nf=(e,t=``)=>{let n=Si(e,t),r=e=>Di(n[e],Mi(t,e)),i=e=>n[e]===null?null:r(e);return{window:Of(n.window,Mi(t,`window`)),runs:r(`runs`),completed:r(Mf.Completed),blockedOrAwaitingApproval:r(`blockedOrAwaitingApproval`),failed:r(Mf.Failed),totalTokens:r(`totalTokens`),totalCostUsd:r(`totalCostUsd`),medianRunDurationMs:i(`medianRunDurationMs`),workItemsDone:r(`workItemsDone`),medianEndToEndDurationMs:i(`medianEndToEndDurationMs`)}},Pf=(e,t=``)=>{let n=Si(e,t),r=Si(n.values,Mi(t,`values`));return{collectedAt:wi(n.collectedAt,Mi(t,`collectedAt`)),window:Ff(n.window,Mi(t,`window`)),values:Object.fromEntries(Object.entries(r).map(([e,n])=>[e,Di(n,Mi(t,`values.${e}`))]))}};function Ff(e,t){let n=Si(e,t);return{days:Di(n.days,Mi(t,`days`)),from:wi(n.from,Mi(t,`from`)),to:wi(n.to,Mi(t,`to`))}}var If=(e,t=``)=>{let n=Si(e,t);return{status:Vf(n.status,Mi(t,`status`)),version:wi(n.version,Mi(t,`version`)),checkedAt:wi(n.checkedAt,Mi(t,`checkedAt`)),...n.checks===void 0?{}:{checks:Ci(n.checks,Mi(t,`checks`),(e,t=``)=>{let n=Si(e,t);return{name:wi(n.name,Mi(t,`name`)),status:Vf(n.status,Mi(t,`status`)),...Oi(n,`detail`,t)}})},...n.adapters===void 0?{}:{adapters:Ci(n.adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapterId`)),provider:wi(n.provider,Mi(t,`provider`)),scope:wi(n.scope,Mi(t,`scope`)),channel:wi(n.channel,Mi(t,`channel`)),status:Hf(n.status,Mi(t,`status`)),successCount:Di(n.successCount,Mi(t,`successCount`)),failureCount:Di(n.failureCount,Mi(t,`failureCount`)),...Oi(n,`detail`,t)}})}}},Lf=(e,t=``)=>{let n=Si(e,t),r=Mi(t,`configuration`);return{configuration:Si(ji(n.configuration,r),r)}},Rf=(e,t=``)=>({adapters:Ci(Si(e,t).adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapterId`)),provider:wi(n.provider,Mi(t,`provider`)),commands:Ci(n.commands,Mi(t,`commands`),(e,t=``)=>({syntax:wi(Si(e,t).syntax,Mi(t,`syntax`))}))}})}),zf=(e,t=``)=>({adapters:Ci(Si(e,t).adapters,Mi(t,`adapters`),(e,t=``)=>{let n=Si(e,t);return{adapter:wi(n.adapter,Mi(t,`adapter`)),provider:wi(n.provider,Mi(t,`provider`)),hooks:Ci(n.hooks,Mi(t,`hooks`),(e,t=``)=>{let n=Si(e,t);return{scope:wi(n.scope,Mi(t,`scope`)),endpoint:wi(n.endpoint,Mi(t,`endpoint`)),events:Ci(n.events,Mi(t,`events`),wi),secret:wi(n.secret,Mi(t,`secret`))}})}})});function Bf(e,t){try{let t=Si(e,`problem`);return{type:wi(t.type,`problem.type`),title:wi(t.title,`problem.title`),status:Di(t.status,`problem.status`),...Oi(t,`detail`,`problem`),...Oi(t,`instance`,`problem`),...Oi(t,`code`,`problem`),...t.retryable===void 0?{}:{retryable:Ei(t.retryable,`problem.retryable`)},...t.current===void 0?{}:{current:ji(t.current,`problem.current`)},...t.violations===void 0?{}:{violations:Ci(t.violations,`problem.violations`,(e,t=``)=>{let n=Si(e,t);return{path:wi(n.path,Mi(t,`path`)),message:wi(n.message,Mi(t,`message`))}})}}}catch{return{type:`about:blank`,title:`Request failed`,status:t}}}function Vf(e,t){let n=wi(e,t);return n!==`ok`&&n!==`degraded`&&Ni(t),n}function Hf(e,t){let n=wi(e,t);return n!==`ok`&&n!==`degraded`&&n!==zd.Unknown&&Ni(t),n}var Uf=Nu({triggerId:$l(),coordinationKey:$l(),source:Gd,disposition:Vu(Od),sources:ju(Gd),manualOutcome:Jd.optional(),activeWorkItemId:$l().nullable()}),Wf=Nu({claim:Nu({triggerId:$l(),coordinationKey:$l(),source:Gd,sources:ju(Gd),workItemId:$l(),workflowInstanceId:$l(),workflowName:$l()}),claimedAt:$l(),startedAt:$l().optional(),finishedAt:$l().optional(),failureOutcomeCount:xu().optional(),result:Nu({triggerId:$l(),coordinationKey:$l(),workItemId:$l(),workflowInstanceId:$l(),status:Vu([jd.Completed,jd.Superseded]),reason:$l().optional()}).optional(),workItemKey:$l()}),Gf=Nu({operatorInstructions:Nu({contextScope:$l(),revisionId:$l(),content:$l(),author:$l(),occurredAt:$l()}).nullable().optional(),activeInvocation:Nu({activeWorkItemId:$l(),workItemKey:$l(),triggerId:$l(),workflowInstanceId:$l(),workflowStatus:Vu(Fd).nullable(),blockReason:$l().nullable(),retryEligible:Tu()}).nullable(),triggerId:$l(),status:Vu(Vd),definition:qd.nullable(),paused:Tu(),pauseReason:$l().nullable(),nextOccurrence:$l().nullable(),pending:ju(Uf),latestSkip:Kd.nullable(),invocations:ju(Wf)});function Kf(e){return Gf.parse(e)}function qf(e){return ju(Gf).parse(e)}function Jf(e){return ju(Nu({contextScope:$l(),revisionId:$l(),content:$l().nullable(),author:$l(),occurredAt:$l()})).parse(e)}var Yf=class extends Error{constructor(e){super(e.detail??e.title),this.problem=e,this.name=`ApiProblem`}},Xf=class{constructor(e=fetch,t=`/api/v1`){this.fetchImplementation=e,this.baseUrl=t,this.auth={session:async()=>{let e=this.fetchImplementation;return(await e(`${this.baseUrl}/auth/session`)).ok},login:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/login`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({accessKey:e})})).ok},redeem:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/redeem`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({grant:e})})).ok}},this.triggers={list:e=>this.get(`/triggers`,e=>{let t=Xd(qf)(e),n=Si(e,`triggers`);return{...t,orphanedInstructions:Jf(n.orphanedInstructions??[])}},e),detail:(e,t)=>this.get(`/triggers/`+encodeURIComponent(e),Xd(Kf),t),saveInstructions:(e,t,n,r)=>this.request(`/triggers/`+encodeURIComponent(e)+`/commands/instructions`,Xd(ef),{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({content:t,expectedRevisionId:n,idempotencyKey:r})}),command:(e,t,n,r)=>this.command(`/triggers/`+encodeURIComponent(e)+`/commands/`+t,n,ef,r)},this.board={list:(e,t)=>this.get(`/board${Zf({cursor:e})}`,Zd(nf),t)},this.status={get:e=>this.get(`/status`,Xd(e=>e),e)},this.controlPlane={status:e=>this.get(`/control-plane/status`,Xd(Qd),e),pauseDispatch:(e,t)=>this.command(`/control-plane/commands/pause-dispatch`,e,ef,t),resumeDispatch:(e,t)=>this.command(`/control-plane/commands/resume-dispatch`,e,ef,t),clearMaintenance:(e,t,n)=>this.request(`/control-plane/commands/clear-maintenance`,Xd(ef),{method:`POST`,body:JSON.stringify({attemptId:e,idempotencyKey:t}),headers:{"content-type":`application/json`},...n===void 0?{}:{signal:n}})},this.work={list:(e={},t)=>this.get(`/work-items${Zf(e)}`,Zd(tf),t),detail:(e,t)=>this.get(`/work-items/${encodeURIComponent(e)}`,Xd(mf),t),artifactText:async(e,t,n)=>{let r=this.fetchImplementation,i=await r(`${this.baseUrl}/work-items/${encodeURIComponent(e)}/artifacts/${encodeURIComponent(t)}`,{...n===void 0?{}:{signal:n}});if(!i.ok)throw Error(`Unable to load this artifact. Please try again.`);return i.text()},transcript:(e,t,n)=>this.get(`/work-items/${encodeURIComponent(e)}/transcripts/${encodeURIComponent(t)}`,Xd(vf),n),message:(e,t,n,r,i)=>this.request(`/work-items/${encodeURIComponent(e)}/commands/message`,Xd(ef),{method:`POST`,body:JSON.stringify({idempotencyKey:n,body:t,...i===void 0?{}:{continuation:i}}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),command:(e,t,n,r)=>this.command(`/work-items/${encodeURIComponent(e)}/commands/${t}`,n,ef,r)},this.resources={list:(e,t)=>this.get(`/resources${Zf({cursor:e})}`,Zd(of),t)},this.orchestration={list:(e,t)=>this.get(`/workflow-instances${Zf({cursor:e})}`,Zd(sf),t)},this.workflowDiagrams={get:(e,t)=>this.get(`/workflow-diagrams${Zf({workItemKey:e})}`,Xd(mee),t)},this.execution={runs:(e,t)=>this.get(`/runs${Zf({cursor:e})}`,Zd(pf),t),run:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}`,Xd(pf),t),transcript:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}/transcript`,Xd(_f),t),resolveAmbiguousRun:(e,t,n,r)=>this.request(`/runs/${encodeURIComponent(e)}/commands/resolve`,Xd(ef),{method:`POST`,body:JSON.stringify({idempotencyKey:n,...t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),runners:e=>this.get(`/runners`,Zd(gf),e),pauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/pause`,t,ef,n),unpauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/unpause`,t,ef,n)},this.events={list:(e,t,n)=>{let r=typeof t==`string`?t:void 0,i=typeof t==`string`?n:t;return this.get(`/events${Zf({cursor:e,workItemKey:r})}`,Zd(hf),i)}},this.observability={reports:e=>this.get(`/observability/reports`,Xd(Df),e),report:(e,t,n)=>this.get(`/observability/reports`+Zf({window:e,report:t}),Xd(Af),n),summary:(e,t)=>this.get(`/observability/summary`+Zf({window:e}),Xd(Nf),t),metrics:(e=7,t)=>this.get(`/observability/metrics${Zf({days:String(e)})}`,Xd(Pf),t)},this.system={health:e=>this.get(`/system/health`,Xd(If),e),configuration:e=>this.get(`/system/configuration`,Xd(Lf),e),commands:e=>this.get(`/system/commands`,Xd(Rf),e),webhooks:e=>this.get(`/system/webhooks`,Xd(zf),e)}}async command(e,t,n,r){return this.request(e,Xd(n),{method:`POST`,body:JSON.stringify({idempotencyKey:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}})}get(e,t,n){return this.request(e,t,n===void 0?{}:{signal:n})}async request(e,t,n){let r=this.fetchImplementation,i=await r(`${this.baseUrl}${e}`,{...n,headers:{accept:`application/json, application/problem+json`,...n.headers}}),a=await i.json();if(!i.ok)throw new Yf(Bf(a,i.status));return t(a)}};function Zf(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,r);let n=t.toString();return n===``?``:`?${n}`}var Qf=(0,C.createContext)(null);function $f(){let e=(0,C.useContext)(Qf);if(e===null)throw Error(`WakeApiClient is not configured`);return e}var ep={prefix:`fas`,iconName:`filter`,icon:[512,512,[],`f0b0`,`M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z`]},tp={prefix:`fas`,iconName:`table-columns`,icon:[448,512,[`columns`],`f0db`,`M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z`]},hee={prefix:`fas`,iconName:`paper-plane`,icon:[576,512,[61913],`f1d8`,`M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z`]},np={prefix:`fas`,iconName:`chevron-right`,icon:[320,512,[9002],`f054`,`M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z`]},gee={prefix:`fas`,iconName:`heart-pulse`,icon:[512,512,[`heartbeat`],`f21e`,`M256 107.9L241 87.1C216 52.5 175.9 32 133.1 32 59.6 32 0 91.6 0 165.1l0 2.6c0 23.6 6.2 48 16.6 72.3l106 0c3.2 0 6.1-1.9 7.4-4.9l31.8-76.3c3.7-8.8 12.3-14.6 21.8-14.8s18.3 5.4 22.2 14.1l51.3 113.9 41.4-82.8c4.1-8.1 12.4-13.3 21.5-13.3s17.4 5.1 21.5 13.3l23.2 46.3c1.4 2.7 4.1 4.4 7.2 4.4l123.6 0c10.5-24.3 16.6-48.7 16.6-72.3l0-2.6C512 91.6 452.4 32 378.9 32 336.2 32 296 52.5 271 87.1l-15 20.7zM469.6 288l-97.8 0c-21.2 0-40.6-12-50.1-31l-1.7-3.4-42.5 85.1c-4.1 8.3-12.7 13.5-22 13.3s-17.6-5.7-21.4-14.1l-49.3-109.5-10.5 25.2c-8.7 20.9-29.1 34.5-51.7 34.5l-80.2 0c47.2 73.8 123 141.7 170.4 177.9 12.4 9.4 27.6 14.1 43.1 14.1s30.8-4.6 43.1-14.1C346.6 429.7 422.4 361.8 469.6 288z`]},rp={prefix:`fas`,iconName:`chart-line`,icon:[512,512,[`line-chart`],`f201`,`M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z`]},_ee={prefix:`fas`,iconName:`play`,icon:[448,512,[9654],`f04b`,`M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z`]},ip={prefix:`fas`,iconName:`sliders`,icon:[512,512,[`sliders-h`],`f1de`,`M32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 224zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384z`]},ap={prefix:`fas`,iconName:`chevron-down`,icon:[448,512,[],`f078`,`M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z`]},op={prefix:`fas`,iconName:`clock-rotate-left`,icon:[576,512,[`history`],`f1da`,`M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z`]},vee={prefix:`fas`,iconName:`hourglass-half`,icon:[384,512,[`hourglass-2`],`f252`,`M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z`]},sp={prefix:`fas`,iconName:`chevron-left`,icon:[320,512,[9001],`f053`,`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`]},yee={prefix:`fas`,iconName:`arrow-down-wide-short`,icon:[576,512,[`sort-amount-asc`,`sort-amount-down`],`f160`,`M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z`]},bee={prefix:`fas`,iconName:`bars`,icon:[448,512,[`navicon`],`f0c9`,`M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z`]},cp={prefix:`fas`,iconName:`list-check`,icon:[512,512,[`tasks`],`f0ae`,`M133.8 36.3c10.9 7.6 13.5 22.6 5.9 33.4l-56 80c-4.1 5.8-10.5 9.5-17.6 10.1S52 158 47 153L7 113C-2.3 103.6-2.3 88.4 7 79S31.6 69.7 41 79l19.8 19.8 39.6-56.6c7.6-10.9 22.6-13.5 33.4-5.9zm0 160c10.9 7.6 13.5 22.6 5.9 33.4l-56 80c-4.1 5.8-10.5 9.5-17.6 10.1S52 318 47 313L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l19.8 19.8 39.6-56.6c7.6-10.9 22.6-13.5 33.4-5.9zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM64 376a40 40 0 1 1 0 80 40 40 0 1 1 0-80z`]};function lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function up(e){if(Array.isArray(e))return e}function dp(e){if(Array.isArray(e))return lp(e)}function fp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ep(r.key),r)}}function mp(e,t,n){return t&&pp(e.prototype,t),n&&pp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hp(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Op(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
75
75
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function gp(e,t,n){return(t=Ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function vp(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yp(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
76
76
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bp(){throw TypeError(`Invalid attempt to spread non-iterable instance.
77
77
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xp(Object(n),!0).forEach(function(t){gp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cp(e,t){return up(e)||vp(e,t)||Op(e,t)||yp()}function wp(e){return dp(e)||_p(e)||Op(e)||bp()}function Tp(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ep(e){var t=Tp(e,`string`);return typeof t==`symbol`?t:t+``}function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Dp(e)}function Op(e,t){if(e){if(typeof e==`string`)return lp(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lp(e,t):void 0}}var kp=function(){},Ap={},jp={},Mp=null,Np={mark:kp,measure:kp};try{typeof window<`u`&&(Ap=window),typeof document<`u`&&(jp=document),typeof MutationObserver<`u`&&(Mp=MutationObserver),typeof performance<`u`&&(Np=performance)}catch{}var Pp=(Ap.navigator||{}).userAgent,Fp=Pp===void 0?``:Pp,Ip=Ap,Lp=jp,Rp=Mp,zp=Np;Ip.document;var Bp=!!Lp.documentElement&&!!Lp.head&&typeof Lp.addEventListener==`function`&&typeof Lp.createElement==`function`,Vp=~Fp.indexOf(`MSIE`)||~Fp.indexOf(`Trident/`),Hp,Up=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,Wp=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i,Gp={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`},slab:{"fa-regular":`regular`,faslr:`regular`},"slab-press":{"fa-regular":`regular`,faslpr:`regular`},"slab-duo":{"fa-regular":`regular`,fasldr:`regular`},"slab-press-duo":{"fa-regular":`regular`,faslpdr:`regular`},thumbprint:{"fa-light":`light`,fatl:`light`},vellum:{"fa-solid":`solid`,favs:`solid`},pixel:{"fa-regular":`regular`,fapr:`regular`},mosaic:{"fa-solid":`solid`,fams:`solid`},whiteboard:{"fa-semibold":`semibold`,fawsb:`semibold`},notdog:{"fa-solid":`solid`,fans:`solid`},"notdog-duo":{"fa-solid":`solid`,fands:`solid`},etch:{"fa-solid":`solid`,faes:`solid`},graphite:{"fa-thin":`thin`,fagt:`thin`},jelly:{"fa-regular":`regular`,fajr:`regular`},"jelly-fill":{"fa-regular":`regular`,fajfr:`regular`},"jelly-duo":{"fa-regular":`regular`,fajdr:`regular`},chisel:{"fa-regular":`regular`,facr:`regular`},utility:{"fa-semibold":`semibold`,fausb:`semibold`},"utility-duo":{"fa-semibold":`semibold`,faudsb:`semibold`},"utility-fill":{"fa-semibold":`semibold`,faufsb:`semibold`}},Kp={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},xee=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-slab-press-duo`,`fa-slab-duo`,`fa-mosaic`,`fa-pixel`,`fa-vellum`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`],qp=`classic`,Jp=`duotone`,See=`sharp`,Cee=`sharp-duotone`,wee=`chisel`,Tee=`etch`,Eee=`graphite`,Dee=`jelly`,Oee=`jelly-duo`,kee=`jelly-fill`,Aee=`mosaic`,jee=`notdog`,Mee=`notdog-duo`,Nee=`pixel`,Pee=`slab`,Yp=`slab-duo`,Fee=`slab-press`,Xp=`slab-press-duo`,Zp=`thumbprint`,Qp=`utility`,$p=`utility-duo`,Iee=`utility-fill`,em=`vellum`,tm=`whiteboard`,nm=`Classic`,Lee=`Duotone`,rm=`Sharp`,im=`Sharp Duotone`,am=`Chisel`,om=`Etch`,sm=`Graphite`,cm=`Jelly`,lm=`Jelly Duo`,um=`Jelly Fill`,dm=`Mosaic`,Ree=`Notdog`,zee=`Notdog Duo`,Bee=`Pixel`,Vee=`Slab`,Hee=`Slab Duo`,Uee=`Slab Press`,Wee=`Slab Press Duo`,fm=`Thumbprint`,E=`Utility`,Gee=`Utility Duo`,Kee=`Utility Fill`,qee=`Vellum`,Jee=`Whiteboard`,pm=[qp,Jp,See,Cee,wee,Tee,Eee,Dee,Oee,kee,Aee,jee,Mee,Nee,Pee,Yp,Fee,Xp,Zp,Qp,$p,Iee,em,tm];Hp={},gp(gp(gp(gp(gp(gp(gp(gp(gp(gp(Hp,qp,nm),Jp,Lee),See,rm),Cee,im),wee,am),Tee,om),Eee,sm),Dee,cm),Oee,lm),kee,um),gp(gp(gp(gp(gp(gp(gp(gp(gp(gp(Hp,Aee,dm),jee,Ree),Mee,zee),Nee,Bee),Pee,Vee),Yp,Hee),Fee,Uee),Xp,Wee),Zp,fm),Qp,E),gp(gp(gp(gp(Hp,$p,Gee),Iee,Kee),em,qee),tm,Jee);var mm={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`},slab:{400:`faslr`},"slab-press":{400:`faslpr`},"slab-duo":{400:`fasldr`},"slab-press-duo":{400:`faslpdr`},vellum:{900:`favs`},mosaic:{900:`fams`},pixel:{400:`fapr`},whiteboard:{600:`fawsb`},thumbprint:{300:`fatl`},notdog:{900:`fans`},"notdog-duo":{900:`fands`},etch:{900:`faes`},graphite:{100:`fagt`},chisel:{400:`facr`},jelly:{400:`fajr`},"jelly-fill":{400:`fajfr`},"jelly-duo":{400:`fajdr`},utility:{600:`fausb`},"utility-duo":{600:`faudsb`},"utility-fill":{600:`faufsb`}},Yee={"Font Awesome 7 Free":{900:`fas`,400:`far`},"Font Awesome 7 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 7 Brands":{400:`fab`,normal:`fab`},"Font Awesome 7 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 7 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 7 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`},"Font Awesome 7 Jelly":{400:`fajr`,normal:`fajr`},"Font Awesome 7 Jelly Fill":{400:`fajfr`,normal:`fajfr`},"Font Awesome 7 Jelly Duo":{400:`fajdr`,normal:`fajdr`},"Font Awesome 7 Slab":{400:`faslr`,normal:`faslr`},"Font Awesome 7 Slab Press":{400:`faslpr`,normal:`faslpr`},"Font Awesome 7 Slab Duo":{400:`fasldr`,normal:`fasldr`},"Font Awesome 7 Slab Press Duo":{400:`faslpdr`,normal:`faslpdr`},"Font Awesome 7 Pixel":{400:`fapr`,normal:`fapr`},"Font Awesome 7 Mosaic":{900:`fams`,normal:`fams`},"Font Awesome 7 Vellum":{900:`favs`,normal:`favs`},"Font Awesome 7 Thumbprint":{300:`fatl`,normal:`fatl`},"Font Awesome 7 Notdog":{900:`fans`,normal:`fans`},"Font Awesome 7 Notdog Duo":{900:`fands`,normal:`fands`},"Font Awesome 7 Etch":{900:`faes`,normal:`faes`},"Font Awesome 7 Graphite":{100:`fagt`,normal:`fagt`},"Font Awesome 7 Chisel":{400:`facr`,normal:`facr`},"Font Awesome 7 Whiteboard":{600:`fawsb`,normal:`fawsb`},"Font Awesome 7 Utility":{600:`fausb`,normal:`fausb`},"Font Awesome 7 Utility Duo":{600:`faudsb`,normal:`faudsb`},"Font Awesome 7 Utility Fill":{600:`faufsb`,normal:`faufsb`}},Xee=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`chisel`,{defaultShortPrefixId:`facr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`etch`,{defaultShortPrefixId:`faes`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`graphite`,{defaultShortPrefixId:`fagt`,defaultStyleId:`thin`,styleIds:[`thin`],futureStyleIds:[],defaultFontWeight:100}],[`jelly`,{defaultShortPrefixId:`fajr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-duo`,{defaultShortPrefixId:`fajdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-fill`,{defaultShortPrefixId:`fajfr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`mosaic`,{defaultShortPrefixId:`fams`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog`,{defaultShortPrefixId:`fans`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog-duo`,{defaultShortPrefixId:`fands`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`pixel`,{defaultShortPrefixId:`fapr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab`,{defaultShortPrefixId:`faslr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-duo`,{defaultShortPrefixId:`fasldr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press`,{defaultShortPrefixId:`faslpr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press-duo`,{defaultShortPrefixId:`faslpdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`thumbprint`,{defaultShortPrefixId:`fatl`,defaultStyleId:`light`,styleIds:[`light`],futureStyleIds:[],defaultFontWeight:300}],[`utility`,{defaultShortPrefixId:`fausb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-duo`,{defaultShortPrefixId:`faudsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-fill`,{defaultShortPrefixId:`faufsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`vellum`,{defaultShortPrefixId:`favs`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`whiteboard`,{defaultShortPrefixId:`fawsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}]]),hm={chisel:{regular:`facr`},classic:{brands:`fab`,light:`fal`,regular:`far`,solid:`fas`,thin:`fat`},duotone:{light:`fadl`,regular:`fadr`,solid:`fad`,thin:`fadt`},etch:{solid:`faes`},graphite:{thin:`fagt`},jelly:{regular:`fajr`},"jelly-duo":{regular:`fajdr`},"jelly-fill":{regular:`fajfr`},mosaic:{solid:`fams`},notdog:{solid:`fans`},"notdog-duo":{solid:`fands`},pixel:{regular:`fapr`},sharp:{light:`fasl`,regular:`fasr`,solid:`fass`,thin:`fast`},"sharp-duotone":{light:`fasdl`,regular:`fasdr`,solid:`fasds`,thin:`fasdt`},slab:{regular:`faslr`},"slab-duo":{regular:`fasldr`},"slab-press":{regular:`faslpr`},"slab-press-duo":{regular:`faslpdr`},thumbprint:{light:`fatl`},utility:{semibold:`fausb`},"utility-duo":{semibold:`faudsb`},"utility-fill":{semibold:`faufsb`},vellum:{solid:`favs`},whiteboard:{semibold:`fawsb`}},gm=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],_m={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},Zee=[`kit`];gp(gp({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Qee={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},$ee={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},ete={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},vm={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},ym,bm={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},tte=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-slab-press-duo`,`fa-slab-duo`,`fa-mosaic`,`fa-pixel`,`fa-vellum`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`];ym={},gp(gp(gp(gp(gp(gp(gp(gp(gp(gp(ym,`classic`,`Classic`),`duotone`,`Duotone`),`sharp`,`Sharp`),`sharp-duotone`,`Sharp Duotone`),`chisel`,`Chisel`),`etch`,`Etch`),`graphite`,`Graphite`),`jelly`,`Jelly`),`jelly-duo`,`Jelly Duo`),`jelly-fill`,`Jelly Fill`),gp(gp(gp(gp(gp(gp(gp(gp(gp(gp(ym,`mosaic`,`Mosaic`),`notdog`,`Notdog`),`notdog-duo`,`Notdog Duo`),`pixel`,`Pixel`),`slab`,`Slab`),`slab-duo`,`Slab Duo`),`slab-press`,`Slab Press`),`slab-press-duo`,`Slab Press Duo`),`thumbprint`,`Thumbprint`),`utility`,`Utility`),gp(gp(gp(gp(ym,`utility-duo`,`Utility Duo`),`utility-fill`,`Utility Fill`),`vellum`,`Vellum`),`whiteboard`,`Whiteboard`),gp(gp({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var nte={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`},slab:{"fa-regular":`faslr`},"slab-press":{"fa-regular":`faslpr`},"slab-duo":{"fa-regular":`fasldr`},"slab-press-duo":{"fa-regular":`faslpdr`},pixel:{"fa-regular":`fapr`},mosaic:{"fa-solid":`fams`},vellum:{"fa-solid":`favs`},whiteboard:{"fa-semibold":`fawsb`},thumbprint:{"fa-light":`fatl`},notdog:{"fa-solid":`fans`},"notdog-duo":{"fa-solid":`fands`},etch:{"fa-solid":`faes`},graphite:{"fa-thin":`fagt`},jelly:{"fa-regular":`fajr`},"jelly-fill":{"fa-regular":`fajfr`},"jelly-duo":{"fa-regular":`fajdr`},chisel:{"fa-regular":`facr`},utility:{"fa-semibold":`fausb`},"utility-duo":{"fa-semibold":`faudsb`},"utility-fill":{"fa-semibold":`faufsb`}},xm={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`],slab:[`faslr`],"slab-press":[`faslpr`],"slab-duo":[`fasldr`],"slab-press-duo":[`faslpdr`],pixel:[`fapr`],mosaic:[`fams`],vellum:[`favs`],whiteboard:[`fawsb`],thumbprint:[`fatl`],notdog:[`fans`],"notdog-duo":[`fands`],etch:[`faes`],graphite:[`fagt`],jelly:[`fajr`],"jelly-fill":[`fajfr`],"jelly-duo":[`fajdr`],chisel:[`facr`],utility:[`fausb`],"utility-duo":[`faudsb`],"utility-fill":[`faufsb`]},Sm={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`},slab:{faslr:`fa-regular`},"slab-press":{faslpr:`fa-regular`},"slab-duo":{fasldr:`fa-regular`},"slab-press-duo":{faslpdr:`fa-regular`},pixel:{fapr:`fa-regular`},mosaic:{fams:`fa-solid`},vellum:{favs:`fa-solid`},whiteboard:{fawsb:`fa-semibold`},thumbprint:{fatl:`fa-light`},notdog:{fans:`fa-solid`},"notdog-duo":{fands:`fa-solid`},etch:{faes:`fa-solid`},graphite:{fagt:`fa-thin`},jelly:{fajr:`fa-regular`},"jelly-fill":{fajfr:`fa-regular`},"jelly-duo":{fajdr:`fa-regular`},chisel:{facr:`fa-regular`},utility:{fausb:`fa-semibold`},"utility-duo":{faudsb:`fa-semibold`},"utility-fill":{faufsb:`fa-semibold`}},Cm=`fa.fas.far.fal.fat.fad.fadr.fadl.fadt.fab.fass.fasr.fasl.fast.fasds.fasdr.fasdl.fasdt.faslr.faslpr.fasldr.faslpdr.fapr.fams.favs.fawsb.fatl.fans.fands.faes.fagt.fajr.fajfr.fajdr.facr.fausb.faudsb.faufsb`.split(`.`).concat(tte,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),wm=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Tm=[1,2,3,4,5,6,7,8,9,10],rte=Tm.concat([11,12,13,14,15,16,17,18,19,20]),Em=[].concat(wp(Object.keys(xm)),wm,[`aw`,`fw`,`pull-left`,`pull-right`],[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`beat-fade`,`border`,`bounce`,`buzz`,`canvas-square`,`canvas-roomy`,`fade`,`flip-360`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`float`,`inverse`,`jello`,`layers`,`layers-bottom-left`,`layers-bottom-right`,`layers-counter`,`layers-text`,`layers-top-left`,`layers-top-right`,`li`,`pull-end`,`pull-start`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`spin-snap`,`spin-snap-4`,`spin-snap-8`,`stack-1x`,`stack-2x`,`stack`,`swing`,`ul`,`wag`,`width-auto`,`width-fixed`,bm.GROUP,bm.SWAP_OPACITY,bm.PRIMARY,bm.SECONDARY],Tm.map(function(e){return`${e}x`}),rte.map(function(e){return`w-${e}`})),ite={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},Dm=`___FONT_AWESOME___`,Om=16,km=`fa`,Am=`svg-inline--fa`,jm=`data-fa-i2svg`,Mm=`data-fa-pseudo-element`,Nm=`data-fa-pseudo-element-pending`,Pm=`data-prefix`,Fm=`data-icon`,Im=`fontawesome-i2svg`,ate=`async`,ote=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],Lm=[`::before`,`::after`,`:before`,`:after`],Rm=function(){try{return!0}catch{return!1}}();function zm(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[qp]}})}var Bm=Sp({},Gp);Bm[qp]=Sp(Sp(Sp(Sp({},{"fa-duotone":`duotone`}),Gp[qp]),_m.kit),_m[`kit-duotone`]);var ste=zm(Bm),Vm=Sp({},hm);Vm[qp]=Sp(Sp(Sp(Sp({},{duotone:`fad`}),Vm[qp]),vm.kit),vm[`kit-duotone`]);var Hm=zm(Vm),Um=Sp({},Sm);Um[qp]=Sp(Sp({},Um[qp]),ete.kit);var Wm=zm(Um),Gm=Sp({},nte);Gm[qp]=Sp(Sp({},Gm[qp]),Qee.kit),zm(Gm);var cte=Up,Km=`fa-layers-text`,lte=Wp;zm(Sp({},mm));var ute=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],qm=Kp,dte=[].concat(wp(Zee),wp(Em)),Jm=Ip.FontAwesomeConfig||{};function fte(e){var t=Lp.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function pte(e){return e===``?!0:e===`false`?!1:e===`true`||e}Lp&&typeof Lp.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-search-pseudo-elements-warnings`,`searchPseudoElementsWarnings`],[`data-search-pseudo-elements-full-scan`,`searchPseudoElementsFullScan`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(function(e){var t=Cp(e,2),n=t[0],r=t[1],i=pte(fte(n));i!=null&&(Jm[r]=i)});var Ym={styleDefault:`solid`,familyDefault:qp,cssPrefix:km,replacementClass:Am,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Jm.familyPrefix&&(Jm.cssPrefix=Jm.familyPrefix);var Xm=Sp(Sp({},Ym),Jm);Xm.autoReplaceSvg||(Xm.observeMutations=!1);var Zm={};Object.keys(Ym).forEach(function(e){Object.defineProperty(Zm,e,{enumerable:!0,set:function(t){Xm[e]=t,Qm.forEach(function(e){return e(Zm)})},get:function(){return Xm[e]}})}),Object.defineProperty(Zm,"familyPrefix",{enumerable:!0,set:function(e){Xm.cssPrefix=e,Qm.forEach(function(e){return e(Zm)})},get:function(){return Xm.cssPrefix}}),Ip.FontAwesomeConfig=Zm;var Qm=[];function mte(e){return Qm.push(e),function(){Qm.splice(Qm.indexOf(e),1)}}var $m=Om,eh={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hte(e){if(!(!e||!Bp)){var t=Lp.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=Lp.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(o)>-1&&(r=a)}return Lp.head.insertBefore(t,r),e}}var gte=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function th(){for(var e=12,t=``;e-->0;)t+=gte[Math.random()*62|0];return t}function nh(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function rh(e){return e.classList?nh(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function ih(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function _te(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${ih(e[n])}" `},``).trim()}function ah(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function oh(e){return e.size!==eh.size||e.x!==eh.x||e.y!==eh.y||e.rotate!==eh.rotate||e.flipX||e.flipY}function vte(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function yte(e){var t=e.transform,n=e.width,r=n===void 0?Om:n,i=e.height,a=i===void 0?Om:i,o=e.startCentered,s=o!==void 0&&o,c=``;return c+=s&&Vp?`translate(${t.x/$m-r/2}em, ${t.y/$m-a/2}em) `:s?`translate(calc(-50% + ${t.x/$m}em), calc(-50% + ${t.y/$m}em)) `:`translate(${t.x/$m}em, ${t.y/$m}em) `,c+=`scale(${t.size/$m*(t.flipX?-1:1)}, ${t.size/$m*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var bte=`:root, :host {
@@ -1173,7 +1173,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
1173
1173
  `),i.length!=2)throw D(new _v(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=lV(OV(i[0])),this.b=lV(OV(i[1]))}catch(e){throw e=HF(e),M(e,131)?(n=e,D(new _v(yct+n))):D(e)}},Q.Ib=function(){return`(`+this.a+`,`+this.b+`)`},Q.a=0,Q.b=0;var T6=L(EJ,`KVector`,8);q(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},D_,Py,qde),Q.Nc=function(){return Dze(this)},Q.ag=function(e){var t,n,r=IU(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
1174
1174
  `),i,a,o;hk(this);try{for(n=0,a=0,i=0,o=0;n<r.length;)r[n]!=null&&OV(r[n]).length>0&&(a%2==0?i=lV(r[n]):o=lV(r[n]),a>0&&a%2!=0&&qE(this,new A(i,o)),++a),++n}catch(e){throw e=HF(e),M(e,131)?(t=e,D(new _v(`The given string does not match the expected format for vectors.`+t))):D(e)}},Q.Ib=function(){for(var e=new tT(`(`),t=iz(this,0),n;t.b!=t.d.c;)n=P(qA(t),8),FC(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var LIt=L(EJ,`KVectorChain`,79);q(256,24,{3:1,35:1,24:1,256:1},YS);var RIt,E6,D6,O6,k6,A6,zIt=tP(CX,`Alignment`,256,fQ,Kje,oge),BIt;q(976,1,Lq,Cf),Q.tf=function(e){J7e(e)};var VIt,HIt,UIt,WIt,GIt,KIt,qIt,JIt,YIt,XIt,ZIt,QIt;L(CX,`BoxLayouterOptions`,976),q(977,1,{},Pc),Q.uf=function(){var e;return e=new Lc,e},Q.vf=function(e){},L(CX,`BoxLayouterOptions/BoxFactory`,977),q(299,24,{3:1,35:1,24:1,299:1},XS);var j6,$It,M6,N6,P6,eLt,tLt=tP(CX,`ContentAlignment`,299,fQ,Yje,sge),nLt;q(689,1,Lq,Sf),Q.tf=function(e){XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Nft),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(xV(),C6)),OQ),KL((nz(),m6))))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Pft),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),S6),kIt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,gut),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),iLt),y6),zIt),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Wq),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Fft),``),`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.`),S6),LIt),KL(d6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,NY),``),`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.`),lLt),b6),tLt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,MY),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(iT(),!1)),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,yut),``),`Direction`),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),uLt),y6),C8),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,OY),``),`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.`),mLt),y6),kRt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,jft),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,DY),``),`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`."),vLt),y6),GRt),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,qq),``),`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.`),PLt),S6),Zbt),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Jq),``),`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),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,FY),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Zq),``),`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 labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Yq),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),KLt),y6),ezt),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,PY),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),S6),T6),xD(p6,U(k(g6,1),Z,160,0,[h6,f6]))))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Vq),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),x6),TQ),xD(p6,U(k(g6,1),Z,160,0,[d6]))))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Gq),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),x6),TQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Kq),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Out),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),ELt),S6),LIt),KL(d6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Mut),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),_6),bQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Nut),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),_6),bQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Ift),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),S6),sHt),xD(m6,U(k(g6,1),Z,160,0,[f6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Lft),``),`Softwrapping Fuzziness`),`Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line.`),0),v6),CQ),KL(f6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Lut),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),DLt),S6),Jbt),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,mut),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),_6),bQ),xD(p6,U(k(g6,1),Z,160,0,[d6,h6,f6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Rft),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),v6),CQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,zft),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Bft),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,rJ),``),wft),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),_6),bQ),KL(m6)))),PA(e,rJ,sJ,null),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Vft),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Hft),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),G(100)),x6),TQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Uft),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Wft),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),G(4e3)),x6),TQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Gft),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),G(400)),x6),TQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Kft),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,qft),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Jft),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Yft),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Mft),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),sLt),y6),kzt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Xft),`json`),`Shape Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports.`),TLt),y6),dzt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Zft),`json`),`Edge Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels.`),CLt),y6),wRt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,tut),kY),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,nut),kY),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,rut),kY),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,iut),kY),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Uq),kY),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,aut),kY),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,out),kY),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,lut),kY),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,sut),kY),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,cut),kY),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Hq),kY),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,uut),kY),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),v6),CQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,dut),kY),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),v6),CQ),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,fut),kY),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),S6),jzt),xD(p6,U(k(g6,1),Z,160,0,[d6,h6,f6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Rut),kY),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),fRt),S6),Jbt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Iut),apt),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),x6),TQ),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),PA(e,Iut,Fut,RLt),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Fut),apt),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),ILt),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,but),opt),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),kLt),S6),Zbt),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,tJ),opt),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),ALt),b6),Y8),xD(p6,U(k(g6,1),Z,160,0,[f6]))))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Cut),TX),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),BLt),y6),$8),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,wut),TX),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),y6),$8),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Tut),TX),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),y6),$8),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Eut),TX),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),y6),$8),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Dut),TX),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),y6),$8),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,eJ),spt),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),jLt),b6),B5),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,$q),spt),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),NLt),b6),hzt),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,lJ),spt),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),MLt),S6),T6),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Qq),spt),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),_6),bQ),KL(m6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Aut),$lt),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),fLt),y6),ERt),KL(f6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Xq),$lt),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),_6),bQ),KL(f6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Qft),`font`),`Font Name`),`Font name used for a label.`),C6),OQ),KL(f6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,$ft),`font`),`Font Size`),`Font size used for a label.`),x6),TQ),KL(f6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,Put),cpt),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),S6),T6),KL(h6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,jut),cpt),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),x6),TQ),KL(h6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,hut),cpt),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),ZLt),y6),P5),KL(h6)))),XL(e,new bV(ky(Oy(Ay(Sy(Dy(wy(Ty(new Nc,put),cpt),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),v6),CQ),KL(h6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,nJ),lpt),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),YLt),b6),f5),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,xut),lpt),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),_6),bQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,Sut),lpt),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),_6),bQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,ept),EX),`Number of size categories`),`Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator.`),G(3)),x6),TQ),KL(m6)))),PA(e,ept,npt,yRt),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,tpt),EX),`Weight of a node containing children for determining the graph size`),`When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five.`),G(4)),x6),TQ),KL(m6)))),PA(e,tpt,ept,null),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,iJ),EX),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),v6),CQ),KL(m6)))),PA(e,iJ,sJ,gRt),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,npt),EX),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),S6),qRt),KL(p6)))),PA(e,npt,sJ,_Rt),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,aJ),EX),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),v6),CQ),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),PA(e,aJ,sJ,null),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,oJ),EX),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),v6),CQ),xD(m6,U(k(g6,1),Z,160,0,[p6]))))),PA(e,oJ,sJ,null),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,sJ),EX),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),y6),vzt),KL(p6)))),PA(e,sJ,Qq,null),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,rpt),EX),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),v6),CQ),KL(m6)))),PA(e,rpt,sJ,hRt),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,_ut),upt),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),_6),bQ),KL(p6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,vut),upt),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),_6),bQ),KL(d6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,kut),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),v6),CQ),KL(d6)))),XL(e,new bV(ky(Oy(Ay(Cy(Sy(Dy(wy(Ty(new Nc,ipt),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),gLt),y6),LRt),KL(d6)))),Zb(e,new lA(yy(xy(by(new fc,LK),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Zb(e,new lA(yy(xy(by(new fc,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Zb(e,new lA(yy(xy(by(new fc,Bq),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Zb(e,new lA(yy(xy(by(new fc,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Zb(e,new lA(yy(xy(by(new fc,mdt),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Zb(e,new lA(yy(xy(by(new fc,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Zb(e,new lA(yy(xy(by(new fc,sX),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),A5e((new wf,e)),J7e((new Cf,e)),a8e((new Tf,e))};var F6,rLt,iLt,I6,aLt,oLt,sLt,L6,R6,cLt,z6,lLt,B6,V6,uLt,H6,dLt,fLt,pLt,mLt,hLt,gLt,_Lt,U6,vLt,yLt,W6,bLt,G6,xLt,SLt,CLt,wLt,TLt,K6,ELt,q6,DLt,OLt,kLt,J6,ALt,Y6,jLt,X6,Z6,MLt,Q6,NLt,$6,e8,t8,PLt,FLt,ILt,LLt,RLt,zLt,BLt,VLt,HLt,ULt,WLt,GLt,n8,r8,KLt,qLt,JLt,i8,YLt,XLt,a8,ZLt,o8,s8,QLt,c8,$Lt,eRt,tRt,nRt,rRt,iRt,aRt,oRt,l8,sRt,u8,cRt,lRt,d8,uRt,dRt,fRt,pRt,f8,p8,m8,h8,mRt,hRt,g8,gRt,_8,_Rt,vRt,yRt,bRt;L(CX,`CoreOptions`,689),q(86,24,{3:1,35:1,24:1,86:1},ZS);var v8,y8,b8,x8,S8,C8=tP(CX,`Direction`,86,fQ,Nke,cge),xRt;q(278,24,{3:1,35:1,24:1,278:1},QS);var w8,T8,SRt,CRt,wRt=tP(CX,`EdgeCoords`,278,fQ,wOe,lge),TRt;q(279,24,{3:1,35:1,24:1,279:1},$S);var E8,D8,O8,ERt=tP(CX,`EdgeLabelPlacement`,279,fQ,dEe,uge),DRt;q(222,24,{3:1,35:1,24:1,222:1},eC);var k8,A8,j8,ORt,kRt=tP(CX,`EdgeRouting`,222,fQ,DOe,dge),ARt;q(328,24,{3:1,35:1,24:1,328:1},tC);var jRt,MRt,NRt,PRt,FRt,IRt,LRt=tP(CX,`EdgeType`,328,fQ,Xje,fge),RRt;q(974,1,Lq,wf),Q.tf=function(e){A5e(e)};var zRt,BRt,VRt,HRt,URt,WRt,M8;L(CX,`FixedLayouterOptions`,974),q(975,1,{},Fc),Q.uf=function(){var e;return e=new Bc,e},Q.vf=function(e){},L(CX,`FixedLayouterOptions/FixedFactory`,975),q(347,24,{3:1,35:1,24:1,347:1},nC);var N8,P8,F8,GRt=tP(CX,`HierarchyHandling`,347,fQ,fEe,pge),KRt,qRt=aD(CX,`ITopdownSizeApproximator`);q(292,24,{3:1,35:1,24:1,292:1},rC);var I8,L8,R8,z8,JRt=tP(CX,`LabelSide`,292,fQ,OOe,mge),YRt;q(96,24,{3:1,35:1,24:1,96:1},iC);var B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8=tP(CX,`NodeLabelPlacement`,96,fQ,UPe,hge),XRt;q(257,24,{3:1,35:1,24:1,257:1},aC);var ZRt,X8,Z8,QRt,Q8,$8=tP(CX,`PortAlignment`,257,fQ,tAe,gge),$Rt;q(102,24,{3:1,35:1,24:1,102:1},oC);var e5,t5,n5,r5,i5,a5,ezt=tP(CX,`PortConstraints`,102,fQ,qje,_ge),tzt;q(280,24,{3:1,35:1,24:1,280:1},sC);var o5,s5,c5,l5,u5,d5,f5=tP(CX,`PortLabelPlacement`,280,fQ,Jje,vge),nzt;q(64,24,{3:1,35:1,24:1,64:1},lC);var p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5=tP(CX,`PortSide`,64,fQ,Pke,yge),rzt;q(978,1,Lq,Tf),Q.tf=function(e){a8e(e)};var izt,azt,ozt,szt,czt;L(CX,`RandomLayouterOptions`,978),q(979,1,{},Ic),Q.uf=function(){var e;return e=new Yc,e},Q.vf=function(e){},L(CX,`RandomLayouterOptions/RandomFactory`,979),q(300,24,{3:1,35:1,24:1,300:1},cC);var F5,lzt,uzt,dzt=tP(CX,`ShapeCoords`,300,fQ,pEe,bge),fzt;q(380,24,{3:1,35:1,24:1,380:1},uC);var I5,L5,R5,z5,B5=tP(CX,`SizeConstraint`,380,fQ,EOe,xge),pzt;q(266,24,{3:1,35:1,24:1,266:1},dC);var V5,H5,U5,mzt,W5,G5,K5,q5,J5,hzt=tP(CX,`SizeOptions`,266,fQ,bFe,Sge),gzt;q(281,24,{3:1,35:1,24:1,281:1},fC);var Y5,_zt,X5,vzt=tP(CX,`TopdownNodeTypes`,281,fQ,mEe,Cge),yzt;q(288,24,kX);var bzt,xzt,Szt,Czt,Z5=tP(CX,`TopdownSizeApproximator`,288,fQ,TOe,wge);q(970,288,kX,rve),Q.Sg=function(e){return xGe(e)},tP(CX,`TopdownSizeApproximator/1`,970,Z5,null,null),q(971,288,kX,bye),Q.Sg=function(e){var t=P(J(e,(XW(),c8)),144),n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=(Iy(),m=new T_,m),ee,te,w;for(OH(C,e),ee=new bg,o=new Jw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));o.e!=o.i.gc();)i=P(sz(o),26),y=(p=new T_,p),DH(y,C),OH(y,i),w=xGe(i),ow(y,r.Math.max(i.g,w.a),r.Math.max(i.f,w.b)),jV(ee.f,i,y);for(a=new Jw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=P(sz(a),26),d=new Jw((!i.e&&(i.e=new fE(i7,i,7,4)),i.e));d.e!=d.i.gc();)u=P(sz(d),85),x=P(wC(CD(ee.f,i)),26),S=P(SO(ee,H((!u.c&&(u.c=new fE(r7,u,5,8)),u.c),0)),26),b=(f=new Qc,f),pM((!b.b&&(b.b=new fE(r7,b,4,7)),b.b),x),pM((!b.c&&(b.c=new fE(r7,b,5,8)),b.c),S),wH(b,Zk(x)),OH(b,u);g=P(Pk(t.f),214);try{g.kf(C,new Uc),Gxe(t.f,g)}catch(e){throw e=HF(e),M(e,101)?(h=e,D(h)):D(e)}return sM(C,R6)||sM(C,L6)||VW(C),l=O(N(J(C,R6))),c=O(N(J(C,L6))),s=l/c,n=O(N(J(C,p8)))*r.Math.sqrt((!C.a&&(C.a=new F(p7,C,10,11)),C.a).i),te=P(J(C,t8),104),v=te.b+te.c+1,_=te.d+te.a+1,new A(r.Math.max(v,n),r.Math.max(_,n/s))},tP(CX,`TopdownSizeApproximator/2`,971,Z5,null,null),q(972,288,kX,gwe),Q.Sg=function(e){var t,n=O(N(J(e,(XW(),p8)))),r,i,a,o;return t=n/O(N(J(e,f8))),r=B9e(e),a=P(J(e,t8),104),i=O(N(oz(d8))),Zk(e)&&(i=O(N(J(Zk(e),d8)))),o=Bw(new A(n,t),r),cE(o,new A(-(a.b+a.c)-i,-(a.d+a.a)-i))},tP(CX,`TopdownSizeApproximator/3`,972,Z5,null,null),q(973,288,kX,Yye),Q.Sg=function(e){var t,n,i,a,o,s,c,l,u,d;for(s=new Jw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));s.e!=s.i.gc();)o=P(sz(s),26),J(o,(XW(),_8))!=null&&(!o.a&&(o.a=new F(p7,o,10,11)),o.a)&&(!o.a&&(o.a=new F(p7,o,10,11)),o.a).i>0?(n=P(J(o,_8),522),d=n.Sg(o),u=P(J(o,t8),104),ow(o,r.Math.max(o.g,d.a+u.b+u.c),r.Math.max(o.f,d.b+u.d+u.a))):(!o.a&&(o.a=new F(p7,o,10,11)),o.a).i!=0&&ow(o,O(N(J(o,p8))),O(N(J(o,p8)))/O(N(J(o,f8))));t=P(J(e,(XW(),c8)),144),l=P(Pk(t.f),214);try{l.kf(e,new Uc),Gxe(t.f,l)}catch(e){throw e=HF(e),M(e,101)?(c=e,D(c)):D(e)}return hz(e,F6,DX),ike(e),VW(e),a=O(N(J(e,R6))),i=O(N(J(e,L6))),new A(a,i)},tP(CX,`TopdownSizeApproximator/4`,973,Z5,null,null);var wzt;q(345,1,{853:1},B_),Q.Tg=function(e,t){return aXe(this,e,t)},Q.Ug=function(){UZe(this)},Q.Vg=function(){return this.q},Q.Wg=function(){return this.f?xk(this.f):null},Q.Xg=function(){return xk(this.a)},Q.Yg=function(){return this.p},Q.Zg=function(){return!1},Q.$g=function(){return this.n},Q._g=function(){return this.p!=null&&!this.b},Q.ah=function(e){var t;this.n&&(t=e,Vw(this.f,t))},Q.bh=function(e,t){var n,r;this.n&&e&&zEe(this,(n=new Vbe,r=CU(n,e),Hrt(n),r),(AI(),Nzt))},Q.dh=function(e){var t;return this.b?null:(t=rPe(this,this.g),qE(this.a,t),t.i=this,this.d=e,t)},Q.eh=function(e){e>0&&!this.b&&MFe(this,e)},Q.b=!1,Q.c=0,Q.d=-1,Q.e=null,Q.f=null,Q.g=-1,Q.j=!1,Q.k=!1,Q.n=!1,Q.o=0,Q.q=0,Q.r=0,L(IY,`BasicProgressMonitor`,345),q(706,214,Oq,Lc),Q.kf=function(e,t){I9e(e,t)},L(IY,`BoxLayoutProvider`,706),q(966,1,cq,Qh),Q.Le=function(e,t){return t3e(this,P(e,26),P(t,26))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},Q.a=!1,L(IY,`BoxLayoutProvider/1`,966),q(167,1,{167:1},kN,Kde),Q.Ib=function(){return this.c?c5e(this.c):aV(this.b)},L(IY,`BoxLayoutProvider/Group`,167),q(327,24,{3:1,35:1,24:1,327:1},mC);var Tzt,Ezt,Dzt,Ozt,kzt=tP(IY,`BoxLayoutProvider/PackingMode`,327,fQ,kOe,Tge),Azt;q(967,1,cq,Wc),Q.Le=function(e,t){return sCe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},L(IY,`BoxLayoutProvider/lambda$0$Type`,967),q(968,1,cq,Gc),Q.Le=function(e,t){return HSe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},L(IY,`BoxLayoutProvider/lambda$1$Type`,968),q(969,1,cq,Kc),Q.Le=function(e,t){return USe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},L(IY,`BoxLayoutProvider/lambda$2$Type`,969),q(1339,1,{830:1},qc),Q.Lg=function(e,t){return Wb(),!M(t,174)||Pie((ZF(),P(e,174)),t)},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1339),q(1340,1,OG,$h),Q.Ad=function(e){Hze(this.a,P(e,147))},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1340),q(1341,1,OG,Jc),Q.Ad=function(e){P(e,105),Wb()},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1341),q(1345,1,OG,Ute),Q.Ad=function(e){aIe(this.a,P(e,105))},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1345),q(1343,1,GG,hse),Q.Mb=function(e){return XRe(this.a,this.b,P(e,147))},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1343),q(1342,1,GG,gse),Q.Mb=function(e){return Rde(this.a,this.b,P(e,830))},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1342),q(1344,1,OG,_se),Q.Ad=function(e){Rye(this.a,this.b,P(e,147))},L(IY,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1344),q(931,1,{},zc),Q.Kb=function(e){return Hce(e)},Q.Fb=function(e){return this===e},L(IY,`ElkUtil/lambda$0$Type`,931),q(932,1,OG,vse),Q.Ad=function(e){E1e(this.a,this.b,P(e,85))},Q.a=0,Q.b=0,L(IY,`ElkUtil/lambda$1$Type`,932),q(933,1,OG,yse),Q.Ad=function(e){Dre(this.a,this.b,P(e,170))},Q.a=0,Q.b=0,L(IY,`ElkUtil/lambda$2$Type`,933),q(934,1,OG,bse),Q.Ad=function(e){lle(this.a,this.b,P(e,157))},Q.a=0,Q.b=0,L(IY,`ElkUtil/lambda$3$Type`,934),q(935,1,OG,Wte),Q.Ad=function(e){$_e(this.a,P(e,372))},L(IY,`ElkUtil/lambda$4$Type`,935),q(331,1,{35:1,331:1},vg),Q.Dd=function(e){return due(this,P(e,242))},Q.Fb=function(e){var t;return M(e,331)?(t=P(e,331),this.a==t.a):!1},Q.Hb=function(){return Bk(this.a)},Q.Ib=function(){return this.a+` (exclusive)`},Q.a=0,L(IY,`ExclusiveBounds/ExclusiveLowerBound`,331),q(1089,214,Oq,Bc),Q.kf=function(e,t){var n,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S,C,ee,te,w;for(t.Tg(`Fixed Layout`,1),o=P(J(e,(XW(),pLt)),222),p=0,m=0,b=new Jw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));b.e!=b.i.gc();){for(v=P(sz(b),26),w=P(J(v,(TI(),M8)),8),w&&(sw(v,w.a,w.b),P(J(v,BRt),182).Gc((OR(),I5))&&(h=P(J(v,HRt),8),h.a>0&&h.b>0&&IW(v,h.a,h.b,!0,!0))),p=r.Math.max(p,v.i+v.g),m=r.Math.max(m,v.j+v.f),u=new Jw((!v.n&&(v.n=new F(f7,v,1,7)),v.n));u.e!=u.i.gc();)c=P(sz(u),157),w=P(J(c,M8),8),w&&sw(c,w.a,w.b),p=r.Math.max(p,v.i+c.i+c.g),m=r.Math.max(m,v.j+c.j+c.f);for(C=new Jw((!v.c&&(v.c=new F(m7,v,9,9)),v.c));C.e!=C.i.gc();)for(S=P(sz(C),125),w=P(J(S,M8),8),w&&sw(S,w.a,w.b),ee=v.i+S.i,te=v.j+S.j,p=r.Math.max(p,ee+S.g),m=r.Math.max(m,te+S.f),l=new Jw((!S.n&&(S.n=new F(f7,S,1,7)),S.n));l.e!=l.i.gc();)c=P(sz(l),157),w=P(J(c,M8),8),w&&sw(c,w.a,w.b),p=r.Math.max(p,ee+c.i+c.g),m=r.Math.max(m,te+c.j+c.f);for(a=new ND(Zw(vH(v).a.Jc(),new f));aH(a);)n=P(Nj(a),85),d=Jit(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b);for(i=new ND(Zw(_H(v).a.Jc(),new f));aH(i);)n=P(Nj(i),85),Zk(iV(n))!=e&&(d=Jit(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b))}if(o==(xL(),k8))for(y=new Jw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));y.e!=y.i.gc();)for(v=P(sz(y),26),i=new ND(Zw(vH(v).a.Jc(),new f));aH(i);)n=P(Nj(i),85),s=c9e(n),s.b==0?hz(n,K6,null):hz(n,K6,s);xv(BT(J(e,(TI(),VRt))))||(x=P(J(e,URt),104),_=p+x.b+x.c,g=m+x.d+x.a,IW(e,_,g,!0,!0)),t.Ug()},L(IY,`FixedLayoutProvider`,1089),q(379,150,{3:1,414:1,379:1,105:1,150:1},Vc,pNe),Q.ag=function(e){var t,n,r,i,a,o,s,c,l;if(e)try{for(c=IU(e,`;,;`),a=c,o=0,s=a.length;o<s;++o){if(i=a[o],n=IU(i,`\\:`),r=Vnt(aP(),n[0]),!r)throw D(new _v(`Invalid option id: `+n[0]));if(l=Ent(r,n[1]),l==null)throw D(new _v(`Invalid option value: `+n[1]));l==null?(!this.q&&(this.q=new bg),Vj(this.q,r)):(!this.q&&(this.q=new bg),WO(this.q,r,l))}}catch(e){throw e=HF(e),M(e,101)?(t=e,D(new Pze(t))):D(e)}},Q.Ib=function(){return VT(gj(nk((this.q?this.q:(fk(),fk(),LQ)).vc().Mc(),new Rc),$Me(new y_e,new we,new ve,new xe,U(k(UQ,1),Z,130,0,[]))))};var jzt=L(IY,`IndividualSpacings`,379);q(965,1,{},Rc),Q.Kb=function(e){return oCe(P(e,45))},L(IY,`IndividualSpacings/lambda$0$Type`,965),q(708,1,{},Rve),Q.c=0,L(IY,`InstancePool`,708),q(1819,1,{},Hc),L(IY,`LoggedGraph`,1819),q(407,24,{3:1,35:1,24:1,407:1},gC);var Mzt,Nzt,Pzt,Fzt,Izt=tP(IY,`LoggedGraph/Type`,407,fQ,AOe,Ege),Lzt;q(615,1,{853:1},Uc),Q.Tg=function(e,t){return!1},Q.Ug=function(){},Q.Vg=function(){return 0},Q.Wg=function(){return null},Q.Xg=function(){return null},Q.Yg=function(){return null},Q.Zg=function(){return!1},Q.$g=function(){return!1},Q._g=function(){return!1},Q.ah=function(e){},Q.bh=function(e,t){},Q.dh=function(e){return this},Q.eh=function(e){},L(IY,`NullElkProgressMonitor`,615),q(49,1,{20:1,49:1},hC),Q.Ic=function(e){Sj(this,e)},Q.Fb=function(e){var t,n,r;return M(e,49)?(n=P(e,49),t=this.a==null?n.a==null:sL(this.a,n.a),r=this.b==null?n.b==null:sL(this.b,n.b),t&&r):!1},Q.Hb=function(){var e,t,n=this.a==null?0:IP(this.a),r,i,a;return e=n&tK,t=n&-65536,a=this.b==null?0:IP(this.b),r=a&tK,i=a&-65536,e^i>>16&tK|t^r<<16},Q.Jc=function(){return new eg(this)},Q.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+QL(this.b)+`)`:this.b==null?`pair(`+QL(this.a)+`,null)`:`pair(`+QL(this.a)+`,`+QL(this.b)+`)`},L(IY,`Pair`,49),q(980,1,vG,eg),Q.Nb=function(e){QD(this,e)},Q.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},Q.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw D(new Ug)},Q.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),D(new Bg)},Q.b=!1,Q.c=!1,L(IY,`Pair/1`,980),q(1079,214,Oq,Yc),Q.kf=function(e,t){var n,r,i,a,o;if(t.Tg(`Random Layout`,1),(!e.a&&(e.a=new F(p7,e,10,11)),e.a).i==0){t.Ug();return}a=P(J(e,(sUe(),szt)),15),i=a&&a.a!=0?new hj(a.a):new JL,n=Sv(N(J(e,izt))),o=Sv(N(J(e,czt))),r=P(J(e,azt),104),git(e,i,n,o,r),t.Ug()},L(IY,`RandomLayoutProvider`,1079),q(240,1,{240:1},Pge),Q.Fb=function(e){return GO(this.a,P(e,240).a)&&GO(this.b,P(e,240).b)&&GO(this.c,P(e,240).c)},Q.Hb=function(){return LI(U(k(sQ,1),fG,1,5,[this.a,this.b,this.c]))},Q.Ib=function(){return`(`+this.a+dG+this.b+dG+this.c+`)`},L(IY,`Triple`,240);var Rzt;q(551,1,{}),Q.Jf=function(){return new A(this.f.i,this.f.j)},Q.mf=function(e){return LCe(e,(XW(),n8))?J(this.f,zzt):J(this.f,e)},Q.Kf=function(){return new A(this.f.g,this.f.f)},Q.Lf=function(){return this.g},Q.nf=function(e){return sM(this.f,e)},Q.Mf=function(e){GN(this.f,e.a),KN(this.f,e.b)},Q.Nf=function(e){WN(this.f,e.a),zN(this.f,e.b)},Q.Of=function(e){this.g=e},Q.g=0;var zzt;L(AX,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,551),q(553,1,{838:1},tg),Q.Pf=function(){var e,t;if(!this.b)for(this.b=IA(nSe(this.a).i),t=new Jw(nSe(this.a));t.e!=t.i.gc();)e=P(sz(t),157),Vw(this.b,new mv(e));return this.b},Q.b=null,L(AX,`ElkGraphAdapters/ElkEdgeAdapter`,553),q(260,551,{},hv),Q.Qf=function(){return wKe(this)},Q.a=null,L(AX,`ElkGraphAdapters/ElkGraphAdapter`,260),q(631,551,{187:1},mv),L(AX,`ElkGraphAdapters/ElkLabelAdapter`,631),q(552,551,{685:1},mT),Q.Pf=function(){return SKe(this)},Q.Tf=function(){var e;return e=P(J(this.f,(XW(),q6)),140),!e&&(e=new y_),e},Q.Vf=function(){return CKe(this)},Q.Xf=function(e){var t=new OE(e);hz(this.f,(XW(),q6),t)},Q.Yf=function(e){hz(this.f,(XW(),t8),new Nme(e))},Q.Rf=function(){return this.d},Q.Sf=function(){var e,t;if(!this.a)for(this.a=new yg,t=new ND(Zw(_H(P(this.f,26)).a.Jc(),new f));aH(t);)e=P(Nj(t),85),Vw(this.a,new tg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=new yg,t=new ND(Zw(vH(P(this.f,26)).a.Jc(),new f));aH(t);)e=P(Nj(t),85),Vw(this.c,new tg(e));return this.c},Q.Wf=function(){return vk(P(this.f,26)).i!=0||xv(BT(P(this.f,26).mf((XW(),W6))))},Q.Zf=function(){cNe(this,($b(),Rzt))},Q.a=null,Q.b=null,Q.c=null,Q.d=null,Q.e=null,L(AX,`ElkGraphAdapters/ElkNodeAdapter`,552),q(1251,551,{837:1},une),Q.Pf=function(){return FKe(this)},Q.Sf=function(){var e,t;if(!this.a)for(this.a=xT(P(this.f,125).gh().i),t=new Jw(P(this.f,125).gh());t.e!=t.i.gc();)e=P(sz(t),85),Vw(this.a,new tg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=xT(P(this.f,125).hh().i),t=new Jw(P(this.f,125).hh());t.e!=t.i.gc();)e=P(sz(t),85),Vw(this.c,new tg(e));return this.c},Q.$f=function(){return P(P(this.f,125).mf((XW(),a8)),64)},Q._f=function(){var e,t,n,r=Jk(P(this.f,125)),i,a,o,s;for(n=new Jw(P(this.f,125).hh());n.e!=n.i.gc();)for(e=P(sz(n),85),s=new Jw((!e.c&&(e.c=new fE(r7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=P(sz(s),84),wN(UB(o),r)||UB(o)==r&&xv(BT(J(e,(XW(),bLt)))))return!0;for(t=new Jw(P(this.f,125).gh());t.e!=t.i.gc();)for(e=P(sz(t),85),a=new Jw((!e.b&&(e.b=new fE(r7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=P(sz(a),84),wN(UB(i),r))return!0;return!1},Q.a=null,Q.b=null,Q.c=null,L(AX,`ElkGraphAdapters/ElkPortAdapter`,1251),q(1252,1,cq,Xc),Q.Le=function(e,t){return s5e(P(e,125),P(t,125))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},L(AX,`ElkGraphAdapters/PortComparator`,1252);var Q5=aD(jX,`EObject`),$5=aD(MX,mpt),e7=aD(MX,hpt),t7=aD(MX,gpt),n7=aD(MX,`ElkShape`),r7=aD(MX,_pt),i7=aD(MX,vpt),a7=aD(MX,ypt),o7=aD(jX,bpt),s7=aD(jX,`EFactory`),Bzt,Vzt=aD(jX,xpt),c7=aD(jX,`EPackage`),l7,Hzt,Uzt,Wzt,u7,Gzt,Kzt,qzt,Jzt,d7,Yzt,Xzt,f7=aD(MX,Spt),p7=aD(MX,Cpt),m7=aD(MX,wpt);q(93,1,Tpt),Q.qh=function(){return this.rh(),null},Q.rh=function(){return null},Q.sh=function(){return this.rh(),!1},Q.th=function(){return!1},Q.uh=function(e){uF(this,e)},L(NX,`BasicNotifierImpl`,93),q(100,93,Apt),Q.Vh=function(){return tw(this)},Q.vh=function(e,t){return e},Q.wh=function(){throw D(new Hg)},Q.xh=function(e){var t;return t=jz(P(_N(this.Ah(),this.Ch()),19)),this.Mh().Qh(this,t.n,t.f,e)},Q.yh=function(e,t){throw D(new Hg)},Q.zh=function(e,t,n){return DU(this,e,t,n)},Q.Ah=function(){var e;return this.wh()&&(e=this.wh().Lk(),e)?e:this.fi()},Q.Bh=function(){return rH(this)},Q.Ch=function(){throw D(new Hg)},Q.Dh=function(){var e,t=this.Xh().Mk();return!t&&this.wh().Rk(t=(ix(),e=dwe(zU(this.Ah())),e==null?JBt:new hT(this,e))),t},Q.Eh=function(e,t){return e},Q.Fh=function(e){return e.nk()?e.Jj():fR(this.Ah(),e)},Q.Gh=function(){var e=this.wh();return e?e.Ok():null},Q.Hh=function(){return this.wh()?this.wh().Lk():null},Q.Ih=function(e,t,n){return vz(this,e,t,n)},Q.Jh=function(e){return SM(this,e)},Q.Kh=function(e,t){return Ij(this,e,t)},Q.Lh=function(){var e=this.wh();return!!e&&e.Pk()},Q.Mh=function(){throw D(new Hg)},Q.Nh=function(){return GR(this)},Q.Oh=function(e,t,n,r){return mz(this,e,t,r)},Q.Ph=function(e,t,n){var r;return r=P(_N(this.Ah(),t),69),r.uk().xk(this,this.ei(),t-this.gi(),e,n)},Q.Qh=function(e,t,n,r){return Nk(this,e,t,r)},Q.Rh=function(e,t,n){var r;return r=P(_N(this.Ah(),t),69),r.uk().yk(this,this.ei(),t-this.gi(),e,n)},Q.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},Q.Th=function(e){return az(this,e)},Q.Uh=function(e){return Bwe(this,e)},Q.Wh=function(e){return krt(this,e)},Q.Xh=function(){throw D(new Hg)},Q.Yh=function(){return this.wh()?this.wh().Nk():null},Q.Zh=function(){return GR(this)},Q.$h=function(e,t){NV(this,e,t)},Q._h=function(e){this.Xh().Qk(e)},Q.ai=function(e){this.Xh().Tk(e)},Q.bi=function(e){this.Xh().Sk(e)},Q.ci=function(e,t){var n,r,i,a=this.Gh();return a&&e&&(t=_z(a.Cl(),this,t),a.Gl(this)),r=this.Mh(),r&&((hU(this,this.Mh(),this.Ch()).Bb&RK)==0?(t=(n=this.Ch(),n>=0?this.xh(t):this.Mh().Qh(this,-1-n,null,t)),t=this.zh(null,-1,t)):(i=r.Nh(),i&&(e?!a&&i.Gl(this):i.Fl(this)))),this.ai(e),t},Q.di=function(e){var t,n=this.Ah(),r,i,a=fR(n,e),o,s,c;if(t=this.gi(),a>=t)return P(e,69).uk().Bk(this,this.ei(),a-t);if(a<=-1)if(o=xW((CV(),p9),n,e),o){if(sx(),P(o,69).vk()||(o=yA(UM(p9,o))),i=(r=this.Fh(o),P(r>=0?this.Ih(r,!0,!0):YV(this,o,!0),163)),c=o.Gk(),c>1||c==-1)return P(P(i,219).Ql(e,!1),78)}else throw D(new _v(PX+e.ve()+Dpt));else if(e.Hk())return r=this.Fh(e),P(r>=0?this.Ih(r,!1,!0):YV(this,e,!1),78);return s=new zse(this,e),s},Q.ei=function(){return oNe(this)},Q.fi=function(){return(mO(),K7).S},Q.gi=function(){return hO(this.fi())},Q.hi=function(e){yV(this,e)},Q.Ib=function(){return uH(this)},L(LX,`BasicEObjectImpl`,100);var Zzt;q(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),Q.ii=function(e){return sNe(this)[e]},Q.ji=function(e,t){xO(sNe(this),e,t)},Q.ki=function(e){xO(sNe(this),e,null)},Q.qh=function(){return P(vF(this,4),129)},Q.rh=function(){throw D(new Hg)},Q.sh=function(){return!!(this.Db&4)},Q.wh=function(){throw D(new Hg)},Q.li=function(e){VR(this,2,e)},Q.yh=function(e,t){this.Db=t<<16|this.Db&255,this.li(e)},Q.Ah=function(){return jk(this)},Q.Ch=function(){return this.Db>>16},Q.Dh=function(){var e,t;return ix(),t=dwe(zU((e=P(vF(this,16),29),e||this.fi()))),t==null?JBt:new hT(this,t)},Q.th=function(){return!(this.Db&1)},Q.Gh=function(){return P(vF(this,128),1999)},Q.Hh=function(){return P(vF(this,16),29)},Q.Lh=function(){return!!(this.Db&32)},Q.Mh=function(){return P(vF(this,2),52)},Q.Sh=function(){return!!(this.Db&64)},Q.Xh=function(){throw D(new Hg)},Q.Yh=function(){return P(vF(this,64),290)},Q._h=function(e){VR(this,16,e)},Q.ai=function(e){VR(this,128,e)},Q.bi=function(e){VR(this,64,e)},Q.ei=function(){return BR(this)},Q.Db=0,L(LX,`MinimalEObjectImpl`,117),q(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.li=function(e){this.Cb=e},Q.Mh=function(){return this.Cb},L(LX,`MinimalEObjectImpl/Container`,118),q(RX,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return LKe(this,e,t,n)},Q.Rh=function(e,t,n){return dZe(this,e,t,n)},Q.Th=function(e){return GEe(this,e)},Q.$h=function(e,t){QRe(this,e,t)},Q.fi=function(){return HW(),Xzt},Q.hi=function(e){cRe(this,e)},Q.lf=function(){return PWe(this)},Q.fh=function(){return!this.o&&(this.o=new _M((HW(),d7),g7,this,0)),this.o},Q.mf=function(e){return J(this,e)},Q.nf=function(e){return sM(this,e)},Q.of=function(e,t){return hz(this,e,t)},L(zX,`EMapPropertyHolderImpl`,RX),q(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},$c),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return vz(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return az(this,e)},Q.$h=function(e,t){switch(e){case 0:BN(this,O(N(t)));return;case 1:VN(this,O(N(t)));return}NV(this,e,t)},Q.fi=function(){return HW(),Hzt},Q.hi=function(e){switch(e){case 0:BN(this,0);return;case 1:VN(this,0);return}yV(this,e)},Q.Ib=function(){var e;return this.Db&64?uH(this):(e=new eT(uH(this)),e.a+=` (x: `,Uy(e,this.a),e.a+=`, y: `,Uy(e,this.b),e.a+=`)`,e.a)},Q.a=0,Q.b=0,L(zX,`ElkBendPointImpl`,559),q(727,RX,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return XBe(this,e,t,n)},Q.Ph=function(e,t,n){return KB(this,e,t,n)},Q.Rh=function(e,t,n){return RF(this,e,t,n)},Q.Th=function(e){return bLe(this,e)},Q.$h=function(e,t){PJe(this,e,t)},Q.fi=function(){return HW(),Gzt},Q.hi=function(e){kBe(this,e)},Q.ih=function(){return this.k},Q.jh=function(){return nSe(this)},Q.Ib=function(){return IL(this)},Q.k=null,L(zX,`ElkGraphElementImpl`,727),q(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return nHe(this,e,t,n)},Q.Th=function(e){return SHe(this,e)},Q.$h=function(e,t){FJe(this,e,t)},Q.fi=function(){return HW(),Yzt},Q.hi=function(e){HHe(this,e)},Q.kh=function(){return this.f},Q.lh=function(){return this.g},Q.mh=function(){return this.i},Q.nh=function(){return this.j},Q.oh=function(e,t){ow(this,e,t)},Q.ph=function(e,t){sw(this,e,t)},Q.Ib=function(){return dV(this)},Q.f=0,Q.g=0,Q.i=0,Q.j=0,L(zX,`ElkShapeImpl`,728),q(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return jGe(this,e,t,n)},Q.Ph=function(e,t,n){return fJe(this,e,t,n)},Q.Rh=function(e,t,n){return pJe(this,e,t,n)},Q.Th=function(e){return KRe(this,e)},Q.$h=function(e,t){U0e(this,e,t)},Q.fi=function(){return HW(),Uzt},Q.hi=function(e){YWe(this,e)},Q.gh=function(){return!this.d&&(this.d=new fE(i7,this,8,5)),this.d},Q.hh=function(){return!this.e&&(this.e=new fE(i7,this,7,4)),this.e},L(zX,`ElkConnectableShapeImpl`,729),q(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Qc),Q.xh=function(e){return xqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 3:return qk(this);case 4:return!this.b&&(this.b=new fE(r7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new fE(r7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new F(a7,this,6,6)),this.a;case 7:return iT(),!this.b&&(this.b=new fE(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new fE(r7,this,5,8)),this.c.i<=1));case 8:return iT(),!!tH(this);case 9:return iT(),!!GV(this);case 10:return iT(),!this.b&&(this.b=new fE(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new fE(r7,this,5,8)),this.c.i!=0)}return XBe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?xqe(this,n):this.Cb.Qh(this,-1-r,null,n))),Lfe(this,P(e,26),n);case 4:return!this.b&&(this.b=new fE(r7,this,4,7)),yR(this.b,e,n);case 5:return!this.c&&(this.c=new fE(r7,this,5,8)),yR(this.c,e,n);case 6:return!this.a&&(this.a=new F(a7,this,6,6)),yR(this.a,e,n)}return KB(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 3:return Lfe(this,null,n);case 4:return!this.b&&(this.b=new fE(r7,this,4,7)),_z(this.b,e,n);case 5:return!this.c&&(this.c=new fE(r7,this,5,8)),_z(this.c,e,n);case 6:return!this.a&&(this.a=new F(a7,this,6,6)),_z(this.a,e,n)}return RF(this,e,t,n)},Q.Th=function(e){switch(e){case 3:return!!qk(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new fE(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new fE(r7,this,5,8)),this.c.i<=1));case 8:return tH(this);case 9:return GV(this);case 10:return!this.b&&(this.b=new fE(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new fE(r7,this,5,8)),this.c.i!=0)}return bLe(this,e)},Q.$h=function(e,t){switch(e){case 3:wH(this,P(t,26));return;case 4:!this.b&&(this.b=new fE(r7,this,4,7)),_W(this.b),!this.b&&(this.b=new fE(r7,this,4,7)),gO(this.b,P(t,18));return;case 5:!this.c&&(this.c=new fE(r7,this,5,8)),_W(this.c),!this.c&&(this.c=new fE(r7,this,5,8)),gO(this.c,P(t,18));return;case 6:!this.a&&(this.a=new F(a7,this,6,6)),_W(this.a),!this.a&&(this.a=new F(a7,this,6,6)),gO(this.a,P(t,18));return}PJe(this,e,t)},Q.fi=function(){return HW(),Wzt},Q.hi=function(e){switch(e){case 3:wH(this,null);return;case 4:!this.b&&(this.b=new fE(r7,this,4,7)),_W(this.b);return;case 5:!this.c&&(this.c=new fE(r7,this,5,8)),_W(this.c);return;case 6:!this.a&&(this.a=new F(a7,this,6,6)),_W(this.a);return}kBe(this,e)},Q.Ib=function(){return Jet(this)},L(zX,`ElkEdgeImpl`,271),q(443,RX,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},el),Q.xh=function(e){return hqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Ww(e7,this,5)),this.a;case 6:return zwe(this);case 7:return t?Az(this):this.i;case 8:return t?kz(this):this.f;case 9:return!this.g&&(this.g=new fE(a7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new fE(a7,this,10,9)),this.e;case 11:return this.d}return LKe(this,e,t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?hqe(this,n):this.Cb.Qh(this,-1-i,null,n))),Rfe(this,P(e,85),n);case 9:return!this.g&&(this.g=new fE(a7,this,9,10)),yR(this.g,e,n);case 10:return!this.e&&(this.e=new fE(a7,this,10,9)),yR(this.e,e,n)}return a=P(_N((r=P(vF(this,16),29),r||(HW(),u7)),t),69),a.uk().xk(this,BR(this),t-hO((HW(),u7)),e,n)},Q.Rh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new Ww(e7,this,5)),_z(this.a,e,n);case 6:return Rfe(this,null,n);case 9:return!this.g&&(this.g=new fE(a7,this,9,10)),_z(this.g,e,n);case 10:return!this.e&&(this.e=new fE(a7,this,10,9)),_z(this.e,e,n)}return dZe(this,e,t,n)},Q.Th=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!zwe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return GEe(this,e)},Q.$h=function(e,t){switch(e){case 1:qN(this,O(N(t)));return;case 2:JN(this,O(N(t)));return;case 3:HN(this,O(N(t)));return;case 4:UN(this,O(N(t)));return;case 5:!this.a&&(this.a=new Ww(e7,this,5)),_W(this.a),!this.a&&(this.a=new Ww(e7,this,5)),gO(this.a,P(t,18));return;case 6:I4e(this,P(t,85));return;case 7:xP(this,P(t,84));return;case 8:bP(this,P(t,84));return;case 9:!this.g&&(this.g=new fE(a7,this,9,10)),_W(this.g),!this.g&&(this.g=new fE(a7,this,9,10)),gO(this.g,P(t,18));return;case 10:!this.e&&(this.e=new fE(a7,this,10,9)),_W(this.e),!this.e&&(this.e=new fE(a7,this,10,9)),gO(this.e,P(t,18));return;case 11:WFe(this,VT(t));return}QRe(this,e,t)},Q.fi=function(){return HW(),u7},Q.hi=function(e){switch(e){case 1:qN(this,0);return;case 2:JN(this,0);return;case 3:HN(this,0);return;case 4:UN(this,0);return;case 5:!this.a&&(this.a=new Ww(e7,this,5)),_W(this.a);return;case 6:I4e(this,null);return;case 7:xP(this,null);return;case 8:bP(this,null);return;case 9:!this.g&&(this.g=new fE(a7,this,9,10)),_W(this.g);return;case 10:!this.e&&(this.e=new fE(a7,this,10,9)),_W(this.e);return;case 11:WFe(this,null);return}cRe(this,e)},Q.Ib=function(){return r0e(this)},Q.b=0,Q.c=0,Q.d=null,Q.j=0,Q.k=0,L(zX,`ElkEdgeSectionImpl`,443),q(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Ih=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab):EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n)):(i=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),i.uk().xk(this,BR(this),t-hO(this.fi()),e,n))},Q.Rh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n)):(i=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),i.uk().yk(this,BR(this),t-hO(this.fi()),e,n))},Q.Th=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.Wh=function(e){return Hit(this,e)},Q.$h=function(e,t){var n;if(e===0){!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.ai=function(e){VR(this,128,e)},Q.fi=function(){return eG(),LBt},Q.hi=function(e){var t;if(e===0){!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.mi=function(){this.Bb|=1},Q.ni=function(e){return OU(this,e)},Q.Bb=0,L(LX,`EModelElementImpl`,161),q(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},Ef),Q.oi=function(e,t){return drt(this,e,t)},Q.pi=function(e){var t,n,r,i,a;if(this.a!=FN(e)||e.Bb&256)throw D(new _v(Mpt+e.zb+HX));for(r=Ak(e);oj(r.a).i!=0;){if(n=P(wW(r,0,(t=P(H(oj(r.a),0),87),a=t.c,M(a,88)?P(a,29):(eG(),t9))),29),Zz(n))return i=FN(n).ti().pi(n),P(i,52)._h(e),i;r=Ak(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new nve(e):new x_e(e)},Q.qi=function(e,t){return UW(this,e,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.a}return EM(this,e-hO((eG(),Q7)),_N((r=P(vF(this,16),29),r||Q7),e),t,n)},Q.Ph=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 1:return this.a&&(n=P(this.a,52).Qh(this,4,c7,n)),gBe(this,P(e,241),n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),Q7)),t),69),i.uk().xk(this,BR(this),t-hO((eG(),Q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 1:return gBe(this,null,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),Q7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),Q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return XA(this,e-hO((eG(),Q7)),_N((t=P(vF(this,16),29),t||Q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:XXe(this,P(t,241));return}ZL(this,e-hO((eG(),Q7)),_N((n=P(vF(this,16),29),n||Q7),e),t)},Q.fi=function(){return eG(),Q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:XXe(this,null);return}lL(this,e-hO((eG(),Q7)),_N((t=P(vF(this,16),29),t||Q7),e))};var h7,Qzt,$zt;L(LX,`EFactoryImpl`,710),q(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},tl),Q.oi=function(e,t){switch(e.fk()){case 12:return P(t,147).Og();case 13:return QL(t);default:throw D(new _v(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a,o,s,c;switch(e.G==-1&&(e.G=(t=FN(e),t?wz(t.si(),e):-1)),e.G){case 4:return a=new nl,a;case 6:return o=new T_,o;case 7:return s=new E_,s;case 8:return r=new Qc,r;case 9:return n=new $c,n;case 10:return i=new el,i;case 11:return c=new rl,c;default:throw D(new _v(Mpt+e.zb+HX))}},Q.qi=function(e,t){switch(e.fk()){case 13:case 12:return null;default:throw D(new _v(VX+e.ve()+HX))}},L(zX,`ElkGraphFactoryImpl`,1019),q(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Dh=function(){var e,t=(e=P(vF(this,16),29),dwe(zU(e||this.fi())));return t==null?(ix(),ix(),JBt):new Yde(this,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.ve()}return EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:this.ri(VT(t));return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return eG(),RBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:this.ri(null);return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.ve=function(){return this.zb},Q.ri=function(e){RP(this,e)},Q.Ib=function(){return rL(this)},Q.zb=null,L(LX,`ENamedElementImpl`,439),q(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},fCe),Q.xh=function(e){return yqe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new UD(this,F7,this)),this.rb;case 6:return!this.vb&&(this.vb=new uE(c7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?P(this.Cb,241):null:eTe(this)}return EM(this,e-hO((eG(),r9)),_N((r=P(vF(this,16),29),r||r9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 4:return this.sb&&(n=P(this.sb,52).Qh(this,1,s7,n)),BBe(this,P(e,469),n);case 5:return!this.rb&&(this.rb=new UD(this,F7,this)),yR(this.rb,e,n);case 6:return!this.vb&&(this.vb=new uE(c7,this,6,7)),yR(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?yqe(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,7,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),r9)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),r9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 4:return BBe(this,null,n);case 5:return!this.rb&&(this.rb=new UD(this,F7,this)),_z(this.rb,e,n);case 6:return!this.vb&&(this.vb=new uE(c7,this,6,7)),_z(this.vb,e,n);case 7:return DU(this,null,7,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),r9)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),r9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!eTe(this)}return XA(this,e-hO((eG(),r9)),_N((t=P(vF(this,16),29),t||r9),e))},Q.Wh=function(e){return _3e(this,e)||Hit(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:RP(this,VT(t));return;case 2:HP(this,VT(t));return;case 3:VP(this,VT(t));return;case 4:cV(this,P(t,469));return;case 5:!this.rb&&(this.rb=new UD(this,F7,this)),_W(this.rb),!this.rb&&(this.rb=new UD(this,F7,this)),gO(this.rb,P(t,18));return;case 6:!this.vb&&(this.vb=new uE(c7,this,6,7)),_W(this.vb),!this.vb&&(this.vb=new uE(c7,this,6,7)),gO(this.vb,P(t,18));return}ZL(this,e-hO((eG(),r9)),_N((n=P(vF(this,16),29),n||r9),e),t)},Q.bi=function(e){var t,n;if(e&&this.rb)for(n=new Jw(this.rb);n.e!=n.i.gc();)t=sz(n),M(t,360)&&(P(t,360).w=null);VR(this,64,e)},Q.fi=function(){return eG(),r9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:RP(this,null);return;case 2:HP(this,null);return;case 3:VP(this,null);return;case 4:cV(this,null);return;case 5:!this.rb&&(this.rb=new UD(this,F7,this)),_W(this.rb);return;case 6:!this.vb&&(this.vb=new uE(c7,this,6,7)),_W(this.vb);return}lL(this,e-hO((eG(),r9)),_N((t=P(vF(this,16),29),t||r9),e))},Q.mi=function(){rB(this)},Q.si=function(){return!this.rb&&(this.rb=new UD(this,F7,this)),this.rb},Q.ti=function(){return this.sb},Q.ui=function(){return this.ub},Q.vi=function(){return this.xb},Q.wi=function(){return this.yb},Q.xi=function(e){this.ub=e},Q.Ib=function(){var e;return this.Db&64?rL(this):(e=new eT(rL(this)),e.a+=` (nsURI: `,MC(e,this.yb),e.a+=`, nsPrefix: `,MC(e,this.xb),e.a+=`)`,e.a)},Q.xb=null,Q.yb=null;var eBt;L(LX,`EPackageImpl`,184),q(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},w0e),Q.q=!1,Q.r=!1;var tBt=!1;L(zX,`ElkGraphPackageImpl`,556),q(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},nl),Q.xh=function(e){return gqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 7:return tTe(this);case 8:return this.a}return nHe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?gqe(this,n):this.Cb.Qh(this,-1-r,null,n))),tye(this,P(e,174),n)):KB(this,e,t,n)},Q.Rh=function(e,t,n){return t==7?tye(this,null,n):RF(this,e,t,n)},Q.Th=function(e){switch(e){case 7:return!!tTe(this);case 8:return!mE(``,this.a)}return SHe(this,e)},Q.$h=function(e,t){switch(e){case 7:h3e(this,P(t,174));return;case 8:IFe(this,VT(t));return}FJe(this,e,t)},Q.fi=function(){return HW(),Kzt},Q.hi=function(e){switch(e){case 7:h3e(this,null);return;case 8:IFe(this,``);return}HHe(this,e)},Q.Ib=function(){return sQe(this)},Q.a=``,L(zX,`ElkLabelImpl`,362),q(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},T_),Q.xh=function(e){return Fqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new F(p7,this,10,11)),this.a;case 11:return Zk(this);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),this.b;case 13:return iT(),!this.a&&(this.a=new F(p7,this,10,11)),this.a.i>0}return jGe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),yR(this.c,e,n);case 10:return!this.a&&(this.a=new F(p7,this,10,11)),yR(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?Fqe(this,n):this.Cb.Qh(this,-1-r,null,n))),bpe(this,P(e,26),n);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),yR(this.b,e,n)}return fJe(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),_z(this.c,e,n);case 10:return!this.a&&(this.a=new F(p7,this,10,11)),_z(this.a,e,n);case 11:return bpe(this,null,n);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),_z(this.b,e,n)}return pJe(this,e,t,n)},Q.Th=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Zk(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new F(p7,this,10,11)),this.a.i>0}return KRe(this,e)},Q.$h=function(e,t){switch(e){case 9:!this.c&&(this.c=new F(m7,this,9,9)),_W(this.c),!this.c&&(this.c=new F(m7,this,9,9)),gO(this.c,P(t,18));return;case 10:!this.a&&(this.a=new F(p7,this,10,11)),_W(this.a),!this.a&&(this.a=new F(p7,this,10,11)),gO(this.a,P(t,18));return;case 11:DH(this,P(t,26));return;case 12:!this.b&&(this.b=new F(i7,this,12,3)),_W(this.b),!this.b&&(this.b=new F(i7,this,12,3)),gO(this.b,P(t,18));return}U0e(this,e,t)},Q.fi=function(){return HW(),qzt},Q.hi=function(e){switch(e){case 9:!this.c&&(this.c=new F(m7,this,9,9)),_W(this.c);return;case 10:!this.a&&(this.a=new F(p7,this,10,11)),_W(this.a);return;case 11:DH(this,null);return;case 12:!this.b&&(this.b=new F(i7,this,12,3)),_W(this.b);return}YWe(this,e)},Q.Ib=function(){return c5e(this)},L(zX,`ElkNodeImpl`,206),q(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},E_),Q.xh=function(e){return _qe(this,e)},Q.Ih=function(e,t,n){return e==9?Jk(this):jGe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?_qe(this,n):this.Cb.Qh(this,-1-r,null,n))),zfe(this,P(e,26),n)):fJe(this,e,t,n)},Q.Rh=function(e,t,n){return t==9?zfe(this,null,n):pJe(this,e,t,n)},Q.Th=function(e){return e==9?!!Jk(this):KRe(this,e)},Q.$h=function(e,t){if(e===9){L4e(this,P(t,26));return}U0e(this,e,t)},Q.fi=function(){return HW(),Jzt},Q.hi=function(e){if(e===9){L4e(this,null);return}YWe(this,e)},Q.Ib=function(){return l5e(this)},L(zX,`ElkPortImpl`,193);var nBt=aD(qX,`BasicEMap/Entry`);q(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},rl),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.Hb=function(){return lT(this)},Q.Ai=function(e){LFe(this,P(e,147))},Q.Ih=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return vz(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return az(this,e)},Q.$h=function(e,t){switch(e){case 0:LFe(this,P(t,147));return;case 1:NFe(this,t);return}NV(this,e,t)},Q.fi=function(){return HW(),d7},Q.hi=function(e){switch(e){case 0:LFe(this,null);return;case 1:NFe(this,null);return}yV(this,e)},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?IP(e):0),this.a},Q.kd=function(){return this.c},Q.zi=function(e){this.a=e},Q.ld=function(e){var t=this.c;return NFe(this,e),t},Q.Ib=function(){var e;return this.Db&64?uH(this):(e=new Jv,FC(FC(FC(e,this.b?this.b.Og():pG),CJ),$w(this.c)),e.a)},Q.a=-1,Q.c=null;var g7=L(zX,`ElkPropertyToValueMapEntryImpl`,1092);q(981,1,{},il),L(YX,`JsonAdapter`,981),q(215,63,YG,Nv),L(YX,`JsonImportException`,215),q(851,1,{},c0e),L(YX,`JsonImporter`,851),q(885,1,{},xse),Q.Bi=function(e){mJe(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$0$Type`,885),q(886,1,{},Sse),Q.Bi=function(e){p1e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$1$Type`,886),q(894,1,{},ng),Q.Bi=function(e){sSe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$10$Type`,894),q(896,1,{},Cse),Q.Bi=function(e){F$e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$11$Type`,896),q(897,1,{},wse),Q.Bi=function(e){I$e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$12$Type`,897),q(903,1,{},LSe),Q.Bi=function(e){GZe(this.a,this.b,this.c,this.d,P(e,139))},L(YX,`JsonImporter/lambda$13$Type`,903),q(902,1,{},RSe),Q.Bi=function(e){V7e(this.a,this.b,this.c,this.d,P(e,149))},L(YX,`JsonImporter/lambda$14$Type`,902),q(898,1,{},Tse),Q.Bi=function(e){xpe(this.a,this.b,VT(e))},L(YX,`JsonImporter/lambda$15$Type`,898),q(899,1,{},Ese),Q.Bi=function(e){Spe(this.a,this.b,VT(e))},L(YX,`JsonImporter/lambda$16$Type`,899),q(900,1,{},Dse),Q.Bi=function(e){XKe(this.b,this.a,P(e,139))},L(YX,`JsonImporter/lambda$17$Type`,900),q(901,1,{},Ose),Q.Bi=function(e){ZKe(this.b,this.a,P(e,139))},L(YX,`JsonImporter/lambda$18$Type`,901),q(906,1,{},rg),Q.Bi=function(e){pZe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$19$Type`,906),q(887,1,{},Gte),Q.Bi=function(e){Rqe(this.a,P(e,139))},L(YX,`JsonImporter/lambda$2$Type`,887),q(904,1,{},Kte),Q.Bi=function(e){qN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$20$Type`,904),q(905,1,{},ig),Q.Bi=function(e){JN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$21$Type`,905),q(909,1,{},ag),Q.Bi=function(e){fZe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$22$Type`,909),q(907,1,{},qte),Q.Bi=function(e){HN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$23$Type`,907),q(908,1,{},Jte),Q.Bi=function(e){UN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$24$Type`,908),q(911,1,{},Yte),Q.Bi=function(e){fYe(this.a,P(e,139))},L(YX,`JsonImporter/lambda$25$Type`,911),q(910,1,{},Xte),Q.Bi=function(e){cSe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$26$Type`,910),q(912,1,OG,kse),Q.Ad=function(e){nMe(this.b,this.a,VT(e))},L(YX,`JsonImporter/lambda$27$Type`,912),q(913,1,OG,Ase),Q.Ad=function(e){rMe(this.b,this.a,VT(e))},L(YX,`JsonImporter/lambda$28$Type`,913),q(914,1,{},jse),Q.Bi=function(e){r2e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$29$Type`,914),q(890,1,{},Zte),Q.Bi=function(e){LHe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$3$Type`,890),q(915,1,{},Mse),Q.Bi=function(e){w4e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$30$Type`,915),q(916,1,{},Qte),Q.Bi=function(e){lNe(this.a,N(e))},L(YX,`JsonImporter/lambda$31$Type`,916),q(917,1,{},$te),Q.Bi=function(e){fNe(this.a,N(e))},L(YX,`JsonImporter/lambda$32$Type`,917),q(918,1,{},ene),Q.Bi=function(e){uNe(this.a,N(e))},L(YX,`JsonImporter/lambda$33$Type`,918),q(919,1,{},og),Q.Bi=function(e){dNe(this.a,N(e))},L(YX,`JsonImporter/lambda$34$Type`,919),q(920,1,{},tne),Q.Bi=function(e){WXe(this.a,P(e,57))},L(YX,`JsonImporter/lambda$35$Type`,920),q(921,1,{},nne),Q.Bi=function(e){GXe(this.a,P(e,57))},L(YX,`JsonImporter/lambda$36$Type`,921),q(925,1,{},ISe),L(YX,`JsonImporter/lambda$37$Type`,925),q(922,1,OG,Age),Q.Ad=function(e){wIe(this.a,this.c,this.b,P(e,372))},L(YX,`JsonImporter/lambda$38$Type`,922),q(923,1,OG,Nse),Q.Ad=function(e){Zse(this.a,this.b,P(e,170))},L(YX,`JsonImporter/lambda$39$Type`,923),q(888,1,{},sg),Q.Bi=function(e){qN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$4$Type`,888),q(924,1,OG,Pse),Q.Ad=function(e){Qse(this.a,this.b,P(e,170))},L(YX,`JsonImporter/lambda$40$Type`,924),q(926,1,OG,jge),Q.Ad=function(e){TIe(this.a,this.b,this.c,P(e,8))},L(YX,`JsonImporter/lambda$41$Type`,926),q(889,1,{},rne),Q.Bi=function(e){JN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$5$Type`,889),q(893,1,{},cg),Q.Bi=function(e){RHe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$6$Type`,893),q(891,1,{},lg),Q.Bi=function(e){HN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$7$Type`,891),q(892,1,{},ine),Q.Bi=function(e){UN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$8$Type`,892),q(895,1,{},ane),Q.Bi=function(e){pYe(this.a,P(e,139))},L(YX,`JsonImporter/lambda$9$Type`,895),q(945,1,OG,one),Q.Ad=function(e){wO(this.a,new TO(VT(e)))},L(YX,`JsonMetaDataConverter/lambda$0$Type`,945),q(946,1,OG,sne),Q.Ad=function(e){Pbe(this.a,P(e,244))},L(YX,`JsonMetaDataConverter/lambda$1$Type`,946),q(947,1,OG,cne),Q.Ad=function(e){ITe(this.a,P(e,144))},L(YX,`JsonMetaDataConverter/lambda$2$Type`,947),q(948,1,OG,lne),Q.Ad=function(e){Fbe(this.a,P(e,160))},L(YX,`JsonMetaDataConverter/lambda$3$Type`,948),q(244,24,{3:1,35:1,24:1,244:1},_C);var _7,v7,rBt,y7,b7,x7,iBt,aBt,S7=tP(Aq,`GraphFeature`,244,fQ,$Ne,Kge),oBt;q(11,1,{35:1,147:1},dg,iE,BC,gw),Q.Dd=function(e){return fue(this,P(e,147))},Q.Fb=function(e){return LCe(this,e)},Q.Rg=function(){return oz(this)},Q.Og=function(){return this.b},Q.Hb=function(){return hI(this.b)},Q.Ib=function(){return this.b},L(Aq,`Property`,11),q(657,1,cq,ug),Q.Le=function(e,t){return MVe(this,P(e,105),P(t,105))},Q.Fb=function(e){return this===e},Q.Me=function(){return new dm(this)},L(Aq,`PropertyHolderComparator`,657),q(698,1,vG,dne),Q.Nb=function(e){QD(this,e)},Q.Pb=function(){return oMe(this)},Q.Qb=function(){Jy()},Q.Ob=function(){return!!this.a},L(eZ,`ElkGraphUtil/AncestorIterator`,698);var sBt=aD(qX,`EList`);q(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),Q._c=function(e,t){mL(this,e,t)},Q.Ec=function(e){return pM(this,e)},Q.ad=function(e,t){return gRe(this,e,t)},Q.Fc=function(e){return gO(this,e)},Q.Gi=function(){return new vT(this)},Q.Hi=function(){return new yT(this)},Q.Ii=function(e){return lP(this,e)},Q.Ji=function(){return!0},Q.Ki=function(e,t){},Q.Li=function(){},Q.Mi=function(e,t){oM(this,e,t)},Q.Ni=function(e,t,n){},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Fb=function(e){return g8e(this,e)},Q.Hb=function(){return YLe(this)},Q.Qi=function(){return!1},Q.Jc=function(){return new Jw(this)},Q.cd=function(){return new _T(this)},Q.dd=function(e){var t=this.gc();if(e<0||e>t)throw D(new pE(e,t));return new _be(this,e)},Q.Si=function(e,t){this.Ri(e,this.bd(t))},Q.Kc=function(e){return tN(this,e)},Q.Ui=function(e,t){return t},Q.fd=function(e,t){return Cz(this,e,t)},Q.Ib=function(){return gHe(this)},Q.Wi=function(){return!0},Q.Xi=function(e,t){return gI(this,t)},L(qX,`AbstractEList`,71),q(67,71,rZ,al,CN,WIe),Q.Ci=function(e,t){return qB(this,e,t)},Q.Di=function(e){return JGe(this,e)},Q.Ei=function(e,t){aL(this,e,t)},Q.Fi=function(e){Bj(this,e)},Q.Yi=function(e){return dMe(this,e)},Q.$b=function(){zj(this)},Q.Gc=function(e){return CB(this,e)},Q.Xb=function(e){return H(this,e)},Q.Zi=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t<e&&(t=e),this.g=this.$i(t),r!=null&&FU(r,0,this.g,0,this.i))},Q.bd=function(e){return iqe(this,e)},Q.dc=function(){return this.i==0},Q.Ri=function(e,t){return KV(this,e,t)},Q.$i=function(e){return V(sQ,fG,1,e,5,1)},Q.Ti=function(e){return this.g[e]},Q.ed=function(e){return sB(this,e)},Q.Vi=function(e,t){return eN(this,e,t)},Q.gc=function(){return this.i},Q.Nc=function(){return FOe(this)},Q.Oc=function(e){return GHe(this,e)},Q.i=0;var cBt=L(qX,`BasicEList`,67),lBt=aD(qX,`TreeIterator`);q(697,67,lmt),Q.Nb=function(e){QD(this,e)},Q.Ob=function(){return this.g==null&&!this.c?Xwe(this):this.g==null||this.i!=0&&P(this.g[this.i-1],50).Ob()},Q.Pb=function(){return mH(this)},Q.Qb=function(){if(!this.e)throw D(new vv(`There is no valid object to remove.`));this.e.Qb()},Q.c=!1,L(qX,`AbstractTreeIterator`,697),q(605,697,lmt,dw),Q._i=function(e){var t=P(e,57).Dh().Jc();return M(t,287)&&P(t,287).ul(new ol),t},L(eZ,`ElkGraphUtil/PropertiesSkippingTreeIterator`,605),q(949,1,{},ol),L(eZ,`ElkGraphUtil/PropertiesSkippingTreeIterator/1`,949);var C7,uBt,w7=L(eZ,`ElkReflect`,null);q(883,1,bX,sl),Q.Qg=function(e){return oA(),EEe(P(e,182))},L(eZ,`ElkReflect/lambda$0$Type`,883);var T7;aD(qX,`ResourceLocator`),q(1046,1,{}),L(qX,`DelegatingResourceLocator`,1046),q(1047,1046,{}),L(`org.eclipse.emf.common`,`EMFPlugin`,1047);var dBt=aD(Wmt,`Adapter`),fBt=aD(Wmt,`Notification`);q(1144,1,Gmt),Q.aj=function(){return this.d},Q.bj=function(e){},Q.cj=function(e){this.d=e},Q.dj=function(e){this.d==e&&(this.d=null)},Q.d=null,L(NX,`AdapterImpl`,1144),q(2058,71,Kmt),Q.Ci=function(e,t){return PHe(this,e,t)},Q.Di=function(e){var t,n,r;if(++this.j,e.dc())return!1;for(t=this.Cj(),r=e.Jc();r.Ob();)n=r.Pb(),this.pj(this.Xi(t,n)),++t;return!0},Q.Ei=function(e,t){Bfe(this,e,t)},Q.Fi=function(e){dxe(this,e)},Q.nj=function(){return this.qj()},Q.$b=function(){qT(this,this.Cj(),this.Dj())},Q.Gc=function(e){return this.sj(e)},Q.Hc=function(e){return this.tj(e)},Q.oj=function(e,t){this.zj().Sm()},Q.pj=function(e){this.zj().Sm()},Q.qj=function(){return this.zj()},Q.rj=function(){this.zj().Sm()},Q.sj=function(e){return this.zj().Sm()},Q.tj=function(e){return this.zj().Sm()},Q.uj=function(e){return this.zj().Sm()},Q.vj=function(e){return this.zj().Sm()},Q.wj=function(){return this.zj().Sm()},Q.xj=function(e){return this.zj().Sm()},Q.yj=function(){return this.zj().Sm()},Q.Aj=function(e){return this.zj().Sm()},Q.Bj=function(e,t){return this.zj().Sm()},Q.Cj=function(){return this.zj().Sm()},Q.Dj=function(){return this.zj().Sm()},Q.Ej=function(e){return this.zj().Sm()},Q.Fj=function(){return this.zj().Sm()},Q.Fb=function(e){return this.uj(e)},Q.Xb=function(e){return this.Ui(e,this.vj(e))},Q.Hb=function(){return this.wj()},Q.bd=function(e){return this.xj(e)},Q.dc=function(){return this.yj()},Q.Ri=function(e,t){return qXe(this,e,t)},Q.Ti=function(e){return this.vj(e)},Q.ed=function(e){return eD(this,e)},Q.Kc=function(e){var t=this.bd(e);return t>=0&&(this.ed(t),!0)},Q.Vi=function(e,t){return this.Bj(e,this.Xi(e,t))},Q.gc=function(){return this.Cj()},Q.Nc=function(){return this.Dj()},Q.Oc=function(e){return this.Ej(e)},Q.Ib=function(){return this.Fj()},L(qX,`DelegatingEList`,2058),q(2059,2058,Kmt),Q.Ci=function(e,t){return u9e(this,e,t)},Q.Di=function(e){return this.Ci(this.Cj(),e)},Q.Ei=function(e,t){T0e(this,e,t)},Q.Fi=function(e){$1e(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){vW(this)},Q.Gj=function(e,t,n,r,i){return new FCe(this,e,t,n,r,i)},Q.Hj=function(e){uF(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return!this.yj()},Q.Ri=function(e,t){var n,r;return this.Nj()?(r=this.Oj(),n=qXe(this,e,t),this.Hj(this.Gj(7,G(t),n,e,r)),n):qXe(this,e,t)},Q.ed=function(e){var t,n,r,i;return this.Nj()?(n=null,r=this.Oj(),t=this.Gj(4,i=eD(this,e),null,e,r),this.Kj()&&i&&(n=this.Mj(i,n)),n?(n.lj(t),n.mj()):this.Hj(t),i):(i=eD(this,e),this.Kj()&&i&&(n=this.Mj(i,null),n&&n.mj()),i)},Q.Vi=function(e,t){return d9e(this,e,t)},L(NX,`DelegatingNotifyingListImpl`,2059),q(151,1,uZ),Q.lj=function(e){return yYe(this,e)},Q.mj=function(){FM(this)},Q.ej=function(){return this.d},Q.Ij=function(){return null},Q.Pj=function(){return null},Q.fj=function(e){return-1},Q.gj=function(){return m6e(this)},Q.hj=function(){return null},Q.ij=function(){return h6e(this)},Q.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Q.Qj=function(){return!1},Q.kj=function(e){var t,n,r,i,a,o,s,c,l,u,d;switch(this.d){case 1:case 2:switch(i=e.ej(),i){case 1:case 2:if(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0}case 4:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null)))return l=Dnt(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.jj(),this.d=6,d=new CN(2),c<=o?(pM(d,this.n),pM(d,e.ij()),this.g=U(k(q9,1),hK,30,15,[this.o=c,o+1])):(pM(d,e.ij()),pM(d,this.n),this.g=U(k(q9,1),hK,30,15,[this.o=o,c])),this.n=d,l||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null))){for(l=Dnt(this),o=e.jj(),u=P(this.g,54),r=V(q9,hK,30,u.length+1,15,1),t=0;t<u.length&&(s=u[t],s<=o);)r[t++]=s,++o;for(n=P(this.n,16),n._c(t,e.ij()),r[t]=o;++t<r.length;)r[t]=u[t-1];return this.g=r,l||(this.o=-2-r[0]),!0}}return!1},Q.Ib=function(){var e,t,n,r=new eT(qy(this.Pm)+`@`+(t=IP(this)>>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:Wy(r,this.d)}if(E5e(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,Wy(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,jC(r,this.hj()),r.a+=`, feature: `,jC(r,this.Ij()),r.a+=`, oldValue: `,jC(r,h6e(this)),r.a+=`, newValue: `,this.d==6&&M(this.g,54)){for(n=P(this.g,54),r.a+=`[`,e=0;e<n.length;)r.a+=n[e],++e<n.length&&(r.a+=dG);r.a+=`]`}else jC(r,m6e(this));return r.a+=`, isTouch: `,Gy(r,E5e(this)),r.a+=`, wasSet: `,Gy(r,Dnt(this)),r.a+=`)`,r.a},Q.d=0,Q.e=0,Q.f=0,Q.j=0,Q.k=0,Q.o=0,Q.p=0,L(NX,`NotificationImpl`,151),q(1158,151,uZ,FCe),Q.Ij=function(){return this.a.Ij()},Q.fj=function(e){return this.a.Jj()},Q.hj=function(){return this.a.hj()},L(NX,`DelegatingNotifyingListImpl/1`,1158),q(252,67,rZ,cl,Fy),Q.Ec=function(e){return FHe(this,P(e,373))},Q.lj=function(e){return FHe(this,e)},Q.mj=function(){var e,t,n;for(e=0;e<this.i;++e)t=P(this.g[e],373),n=t.hj(),n!=null&&t.ej()!=-1&&P(n,94).uh(t)},Q.$i=function(e){return V(fBt,fG,373,e,0,1)},L(NX,`NotificationChainImpl`,252),q(1486,93,Tpt),Q.rh=function(){return this.e},Q.th=function(){return!!(this.f&1)},Q.f=1,L(NX,`NotifierImpl`,1486),q(2056,67,rZ),Q.Ci=function(e,t){return PU(this,e,t)},Q.Di=function(e){return this.Ci(this.i,e)},Q.Ei=function(e,t){e0e(this,e,t)},Q.Fi=function(e){nH(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){_W(this)},Q.Gj=function(e,t,n,r,i){return new ICe(this,e,t,n,r,i)},Q.Hj=function(e){uF(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Rj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return this.i!=0},Q.Ri=function(e,t){return wL(this,e,t)},Q.ed=function(e){return KH(this,e)},Q.Vi=function(e,t){return fet(this,e,t)},Q.Sj=function(e,t){return t},Q.Tj=function(e,t){return t},Q.Uj=function(e,t,n){return n},L(NX,`NotifyingListImpl`,2056),q(1157,151,uZ,ICe),Q.Ij=function(){return this.a.Ij()},Q.fj=function(e){return this.a.Jj()},Q.hj=function(){return this.a.hj()},L(NX,`NotifyingListImpl/1`,1157),q(950,67,rZ,Hfe),Q.Gc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new cD(this),this.a=this.j),xb(this.b,e)):CB(this,e)},Q.Wi=function(){return!0},Q.a=0,L(qX,`AbstractEList/1`,950),q(306,99,MK,pE),L(qX,`AbstractEList/BasicIndexOutOfBoundsException`,306),q(42,1,vG,Jw),Q.Nb=function(e){QD(this,e)},Q.Vj=function(){if(this.i.j!=this.f)throw D(new Lg)},Q.Wj=function(){return sz(this)},Q.Ob=function(){return this.e!=this.i.gc()},Q.Pb=function(){return this.Wj()},Q.Qb=function(){kB(this)},Q.e=0,Q.f=0,Q.g=-1,L(qX,`AbstractEList/EIterator`,42),q(286,42,wG,_T,_be),Q.Qb=function(){kB(this)},Q.Rb=function(e){oUe(this,e)},Q.Xj=function(){var e;try{return e=this.d.Xb(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=HF(e),M(e,99)?(this.Vj(),D(new Ug)):D(e)}},Q.Yj=function(e){iKe(this,e)},Q.Sb=function(){return this.e!=0},Q.Tb=function(){return this.e},Q.Ub=function(){return this.Xj()},Q.Vb=function(){return this.e-1},Q.Wb=function(e){this.Yj(e)},L(qX,`AbstractEList/EListIterator`,286),q(355,42,vG,vT),Q.Wj=function(){return cz(this)},Q.Qb=function(){throw D(new Hg)},L(qX,`AbstractEList/NonResolvingEIterator`,355),q(391,286,wG,yT,eme),Q.Rb=function(e){throw D(new Hg)},Q.Wj=function(){var e;try{return e=this.c.Ti(this.e),this.Vj(),this.g=this.e++,e}catch(e){throw e=HF(e),M(e,99)?(this.Vj(),D(new Ug)):D(e)}},Q.Xj=function(){var e;try{return e=this.c.Ti(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=HF(e),M(e,99)?(this.Vj(),D(new Ug)):D(e)}},Q.Qb=function(){throw D(new Hg)},Q.Wb=function(e){throw D(new Hg)},L(qX,`AbstractEList/NonResolvingEListIterator`,391),q(2045,71,Jmt),Q.Ci=function(e,t){var n,r,i=t.gc(),a,o,s,c,l,u,d,f;if(i!=0){for(l=P(vF(this.a,4),129),u=l==null?0:l.length,f=u+i,r=SI(this,f),d=u-e,d>0&&FU(l,e,r,e+i,d),c=t.Jc(),o=0;o<i;++o)s=c.Pb(),n=e+o,_w(r,n,gI(this,s));for(dz(this,r),a=0;a<i;++a)s=r[e],this.Ki(e,s),++e;return!0}return++this.j,!1},Q.Di=function(e){var t,n,r=e.gc(),i,a,o,s,c,l;if(r!=0){for(c=(n=P(vF(this.a,4),129),n==null?0:n.length),l=c+r,t=SI(this,l),s=e.Jc(),a=c;a<l;++a)o=s.Pb(),_w(t,a,gI(this,o));for(dz(this,t),i=c;i<l;++i)o=t[i],this.Ki(i,o);return!0}return++this.j,!1},Q.Ei=function(e,t){var n,r=P(vF(this.a,4),129),i=r==null?0:r.length,a;n=SI(this,i+1),a=gI(this,t),e!=i&&FU(r,e,n,e+1,i-e),xO(n,e,a),dz(this,n),this.Ki(e,t)},Q.Fi=function(e){var t,n,r=(n=P(vF(this.a,4),129),n==null?0:n.length);t=SI(this,r+1),_w(t,r,gI(this,e)),dz(this,t),this.Ki(r,e)},Q.Gi=function(){return new oAe(this)},Q.Hi=function(){return new qye(this)},Q.Ii=function(e){var t,n=(t=P(vF(this.a,4),129),t==null?0:t.length);if(e<0||e>n)throw D(new pE(e,n));return new Vxe(this,e)},Q.$b=function(){var e,t;++this.j,e=P(vF(this.a,4),129),t=e==null?0:e.length,dz(this,null),oM(this,t,e)},Q.Gc=function(e){var t=P(vF(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],sL(e,n))return!0}else for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],j(n)===j(e))return!0}return!1},Q.Xb=function(e){var t=P(vF(this.a,4),129),n=t==null?0:t.length;if(e>=n)throw D(new pE(e,n));return t[e]},Q.bd=function(e){var t=P(vF(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;n<r;++n)if(sL(e,t[n]))return n}else for(n=0,r=t.length;n<r;++n)if(j(t[n])===j(e))return n}return-1},Q.dc=function(){return P(vF(this.a,4),129)==null},Q.Jc=function(){return new aAe(this)},Q.cd=function(){return new Kye(this)},Q.dd=function(e){var t,n=(t=P(vF(this.a,4),129),t==null?0:t.length);if(e<0||e>n)throw D(new pE(e,n));return new Bxe(this,e)},Q.Ri=function(e,t){var n=bUe(this),r,i=n==null?0:n.length;if(e>=i)throw D(new uv(smt+e+nZ+i));if(t>=i)throw D(new uv(cmt+t+nZ+i));return r=n[t],e!=t&&(e<t?FU(n,e,n,e+1,t-e):FU(n,t+1,n,t,e-t),xO(n,e,r),dz(this,n)),r},Q.Ti=function(e){return P(vF(this.a,4),129)[e]},Q.ed=function(e){return H1e(this,e)},Q.Vi=function(e,t){var n=bUe(this),r=n[e];return _w(n,e,gI(this,t)),dz(this,n),r},Q.gc=function(){var e;return e=P(vF(this.a,4),129),e==null?0:e.length},Q.Nc=function(){var e=P(vF(this.a,4),129),t,n=e==null?0:e.length;return t=V(dBt,qmt,415,n,0,1),n>0&&FU(e,0,t,0,n),t},Q.Oc=function(e){var t=P(vF(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.length<r&&(n=$N(CI(e).c,r),e=n),FU(t,0,e,0,r)),e.length>r&&xO(e,r,null),e};var pBt;L(qX,`ArrayDelegatingEList`,2045),q(1033,42,vG,aAe),Q.Vj=function(){if(this.b.j!=this.f||j(P(vF(this.b.a,4),129))!==j(this.a))throw D(new Lg)},Q.Qb=function(){kB(this),this.a=P(vF(this.b.a,4),129)},L(qX,`ArrayDelegatingEList/EIterator`,1033),q(712,286,wG,Kye,Bxe),Q.Vj=function(){if(this.b.j!=this.f||j(P(vF(this.b.a,4),129))!==j(this.a))throw D(new Lg)},Q.Yj=function(e){iKe(this,e),this.a=P(vF(this.b.a,4),129)},Q.Qb=function(){kB(this),this.a=P(vF(this.b.a,4),129)},L(qX,`ArrayDelegatingEList/EListIterator`,712),q(1034,355,vG,oAe),Q.Vj=function(){if(this.b.j!=this.f||j(P(vF(this.b.a,4),129))!==j(this.a))throw D(new Lg)},L(qX,`ArrayDelegatingEList/NonResolvingEIterator`,1034),q(713,391,wG,qye,Vxe),Q.Vj=function(){if(this.b.j!=this.f||j(P(vF(this.b.a,4),129))!==j(this.a))throw D(new Lg)},L(qX,`ArrayDelegatingEList/NonResolvingEListIterator`,713),q(606,306,MK,VC),L(qX,`BasicEList/BasicIndexOutOfBoundsException`,606),q(699,67,rZ,Bse),Q._c=function(e,t){throw D(new Hg)},Q.Ec=function(e){throw D(new Hg)},Q.ad=function(e,t){throw D(new Hg)},Q.Fc=function(e){throw D(new Hg)},Q.$b=function(){throw D(new Hg)},Q.Zi=function(e){throw D(new Hg)},Q.Jc=function(){return this.Gi()},Q.cd=function(){return this.Hi()},Q.dd=function(e){return this.Ii(e)},Q.Ri=function(e,t){throw D(new Hg)},Q.Si=function(e,t){throw D(new Hg)},Q.ed=function(e){throw D(new Hg)},Q.Kc=function(e){throw D(new Hg)},Q.fd=function(e,t){throw D(new Hg)},L(qX,`BasicEList/UnmodifiableEList`,699),q(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),Q._c=function(e,t){qle(this,e,P(t,45))},Q.Ec=function(e){return $de(this,P(e,45))},Q.Ic=function(e){Sj(this,e)},Q.Xb=function(e){return P(H(this.c,e),136)},Q.Ri=function(e,t){return P(this.c.Ri(e,t),45)},Q.Si=function(e,t){Jle(this,e,P(t,45))},Q.ed=function(e){return P(this.c.ed(e),45)},Q.fd=function(e,t){return jbe(this,e,P(t,45))},Q.gd=function(e){UP(this,e)},Q.Lc=function(){return new mA(this,16)},Q.Mc=function(){return new lD(null,new mA(this,16))},Q.ad=function(e,t){return this.c.ad(e,t)},Q.Fc=function(e){return this.c.Fc(e)},Q.$b=function(){this.c.$b()},Q.Gc=function(e){return this.c.Gc(e)},Q.Hc=function(e){return VF(this.c,e)},Q.Zj=function(){var e,t,n;if(this.d==null){for(this.d=V(cBt,Ymt,67,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)e=P(t.Wj(),136),Mz(this,e);this.e=n}},Q.Fb=function(e){return fme(this,e)},Q.Hb=function(){return YLe(this.c)},Q.bd=function(e){return this.c.bd(e)},Q.$j=function(){this.c=new fne(this)},Q.dc=function(){return this.f==0},Q.Jc=function(){return this.c.Jc()},Q.cd=function(){return this.c.cd()},Q.dd=function(e){return this.c.dd(e)},Q._j=function(){return iM(this)},Q.ak=function(e,t,n){return new Fge(e,t,n)},Q.bk=function(){return new dl},Q.Kc=function(e){return oFe(this,e)},Q.gc=function(){return this.f},Q.hd=function(e,t){return new pA(this.c,e,t)},Q.Nc=function(){return this.c.Nc()},Q.Oc=function(e){return this.c.Oc(e)},Q.Ib=function(){return gHe(this.c)},Q.e=0,Q.f=0,L(qX,`BasicEMap`,711),q(1028,67,rZ,fne),Q.Ki=function(e,t){Qg(this,P(t,136))},Q.Ni=function(e,t,n){var r;++(r=this,P(t,136),r).a.e},Q.Oi=function(e,t){$g(this,P(t,136))},Q.Pi=function(e,t,n){_de(this,P(t,136),P(n,136))},Q.Mi=function(e,t){dLe(this.a)},L(qX,`BasicEMap/1`,1028),q(1029,67,rZ,dl),Q.$i=function(e){return V(mBt,Xmt,612,e,0,1)},L(qX,`BasicEMap/2`,1029),q(1030,SG,CG,pne),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return gR(this.a,e)},Q.Jc=function(){return this.a.f==0?(YT(),E7.a):new pie(this.a)},Q.Kc=function(e){var t=this.a.f;return RR(this.a,e),this.a.f!=t},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/3`,1030),q(1031,31,xG,mne),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return _8e(this.a,e)},Q.Jc=function(){return this.a.f==0?(YT(),E7.a):new mie(this.a)},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/4`,1031),q(1032,SG,CG,hne),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){var t,n,r,i,a,o,s,c,l;if(this.a.f>0&&M(e,45)&&(this.a.Zj(),c=P(e,45),s=c.jd(),i=s==null?0:IP(s),a=Xfe(this.a,i),t=this.a.d[a],t)){for(n=P(t.g,374),l=t.i,o=0;o<l;++o)if(r=n[o],r.yi()==i&&r.Fb(c))return!0}return!1},Q.Jc=function(){return this.a.f==0?(YT(),E7.a):new PSe(this.a)},Q.Kc=function(e){return z0e(this,e)},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/5`,1032),q(613,1,vG,PSe),Q.Nb=function(e){QD(this,e)},Q.Ob=function(){return this.b!=-1},Q.Pb=function(){var e;if(this.f.e!=this.c)throw D(new Lg);if(this.b==-1)throw D(new Ug);return this.d=this.a,this.e=this.b,sJe(this),e=P(this.f.d[this.d].g[this.e],136),this.ck(e)},Q.Qb=function(){if(this.f.e!=this.c)throw D(new Lg);if(this.e==-1)throw D(new Bg);this.f.c.Kc(H(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},Q.ck=function(e){return e},Q.a=0,Q.b=-1,Q.c=0,Q.d=0,Q.e=0,L(qX,`BasicEMap/BasicEMapIterator`,613),q(1026,613,vG,pie),Q.ck=function(e){return e.jd()},L(qX,`BasicEMap/BasicEMapKeyIterator`,1026),q(1027,613,vG,mie),Q.ck=function(e){return e.kd()},L(qX,`BasicEMap/BasicEMapValueIterator`,1027),q(1025,1,bG,gne),Q.wc=function(e){aF(this,e)},Q.$b=function(){this.a.c.$b()},Q._b=function(e){return Jse(this,e)},Q.uc=function(e){return _8e(this.a,e)},Q.vc=function(){return Eje(this.a)},Q.Fb=function(e){return fme(this.a,e)},Q.xc=function(e){return bR(this.a,e)},Q.Hb=function(){return YLe(this.a.c)},Q.dc=function(){return this.a.f==0},Q.ec=function(){return Dje(this.a)},Q.yc=function(e,t){return SB(this.a,e,t)},Q.Ac=function(e){return RR(this.a,e)},Q.gc=function(){return this.a.f},Q.Ib=function(){return gHe(this.a.c)},Q.Bc=function(){return Oje(this.a)},L(qX,`BasicEMap/DelegatingMap`,1025),q(612,1,{45:1,136:1,612:1},Fge),Q.Fb=function(e){var t;return M(e,45)?(t=P(e,45),(this.b==null?j(this.b)===j(t.jd()):sL(this.b,t.jd()))&&(this.c==null?j(this.c)===j(t.kd()):sL(this.c,t.kd()))):!1},Q.yi=function(){return this.a},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return this.a^(this.c==null?0:IP(this.c))},Q.zi=function(e){this.a=e},Q.Ai=function(e){throw D(new Eg)},Q.ld=function(e){var t=this.c;return this.c=e,t},Q.Ib=function(){return this.b+`->`+this.c},Q.a=0;var mBt=L(qX,`BasicEMap/EntryImpl`,612);q(535,1,{},ll),L(qX,`BasicEMap/View`,535);var E7;q(770,1,{}),Q.Fb=function(e){return W0e((fk(),IQ),e)},Q.Hb=function(){return URe((fk(),IQ))},Q.Ib=function(){return aV((fk(),IQ))},L(qX,`ECollections/BasicEmptyUnmodifiableEList`,770),q(1303,1,wG,ul),Q.Nb=function(e){QD(this,e)},Q.Rb=function(e){throw D(new Hg)},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Pb=function(){throw D(new Ug)},Q.Tb=function(){return 0},Q.Ub=function(){throw D(new Ug)},Q.Vb=function(){return-1},Q.Qb=function(){throw D(new Hg)},Q.Wb=function(e){throw D(new Hg)},L(qX,`ECollections/BasicEmptyUnmodifiableEList/1`,1303),q(1301,770,{20:1,18:1,16:1,61:1},O_),Q._c=function(e,t){Vie()},Q.Ec=function(e){return Bie()},Q.ad=function(e,t){return Hie()},Q.Fc=function(e){return Uie()},Q.$b=function(){Wie()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){Sj(this,e)},Q.Xb=function(e){return ice((fk(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Gie()},Q.Si=function(e,t){Kie()},Q.ed=function(e){return qie()},Q.Kc=function(e){return Jie()},Q.fd=function(e,t){return Yie()},Q.gc=function(){return 0},Q.gd=function(e){UP(this,e)},Q.Lc=function(){return new mA(this,16)},Q.Mc=function(){return new lD(null,new mA(this,16))},Q.hd=function(e,t){return fk(),new pA(IQ,e,t)},Q.Nc=function(){return _ye((fk(),IQ))},Q.Oc=function(e){return fk(),Hz(IQ,e)},L(qX,`ECollections/EmptyUnmodifiableEList`,1301),q(1302,770,{20:1,18:1,16:1,61:1,587:1},cre),Q._c=function(e,t){Vie()},Q.Ec=function(e){return Bie()},Q.ad=function(e,t){return Hie()},Q.Fc=function(e){return Uie()},Q.$b=function(){Wie()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){Sj(this,e)},Q.Xb=function(e){return ice((fk(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Gie()},Q.Si=function(e,t){Kie()},Q.ed=function(e){return qie()},Q.Kc=function(e){return Jie()},Q.fd=function(e,t){return Yie()},Q.gc=function(){return 0},Q.gd=function(e){UP(this,e)},Q.Lc=function(){return new mA(this,16)},Q.Mc=function(){return new lD(null,new mA(this,16))},Q.hd=function(e,t){return fk(),new pA(IQ,e,t)},Q.Nc=function(){return _ye((fk(),IQ))},Q.Oc=function(e){return fk(),Hz(IQ,e)},Q._j=function(){return fk(),fk(),LQ},L(qX,`ECollections/EmptyUnmodifiableEMap`,1302);var hBt=aD(qX,`Enumerator`),D7;q(290,1,{290:1},tU),Q.Fb=function(e){var t;return this===e?!0:M(e,290)?(t=P(e,290),this.f==t.f&&Lve(this.i,t.i)&&Ive(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&Ive(this.d,t.d)&&Ive(this.g,t.g)&&Ive(this.e,t.e)&&GWe(this,t)):!1},Q.Hb=function(){return this.f},Q.Ib=function(){return P7e(this)},Q.f=0;var gBt=0,_Bt=0,vBt=0,yBt=0,bBt=0,xBt=0,SBt=0,CBt=0,wBt=0,TBt,O7=0,k7=0,EBt=0,DBt=0,A7,OBt;L(qX,`URI`,290),q(1091,44,JK,lre),Q.yc=function(e,t){return P(rA(this,VT(e),P(t,290)),290)},L(qX,`URI/URICache`,1091),q(492,67,rZ,fl,gD),Q.Qi=function(){return!0},L(qX,`UniqueEList`,492),q(579,63,YG,JM),L(qX,`WrappedException`,579);var j7=aD(jX,$mt),M7=aD(jX,eht),N7=aD(jX,tht),P7=aD(jX,nht),F7=aD(jX,rht),I7=aD(jX,`EClass`),kBt=aD(jX,`EDataType`),ABt;q(1199,44,JK,ure),Q.xc=function(e){return SC(e)?zk(this,e):wC(CD(this.f,e))},L(jX,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1199);var L7=aD(jX,`EEnum`),R7=aD(jX,iht),z7=aD(jX,aht),B7=aD(jX,oht),V7,H7=aD(jX,sht),U7=aD(jX,cht);q(fZ,1,{},pl),Q.Ib=function(){return`NIL`},L(jX,`EStructuralFeature/Internal/DynamicValueHolder/1`,fZ);var jBt;q(1023,44,JK,dre),Q.xc=function(e){return SC(e)?zk(this,e):wC(CD(this.f,e))},L(jX,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1023);var W7=aD(jX,lht),G7=aD(jX,`EValidator/PatternMatcher`),MBt,NBt,K7,q7,J7,Y7,PBt,FBt,IBt,X7,Z7,Q7,$7,e9,LBt,RBt,t9,n9,zBt,r9,i9,a9,o9,BBt,VBt,s9,c9=aD(pZ,`FeatureMap/Entry`);q(534,1,{75:1},vC),Q.Jk=function(){return this.a},Q.kd=function(){return this.b},L(LX,`BasicEObjectImpl/1`,534),q(1022,1,uht,zse),Q.Dk=function(e){return Ij(this.a,this.b,e)},Q.Oj=function(){return Bwe(this.a,this.b)},Q.Wb=function(e){Owe(this.a,this.b,e)},Q.Ek=function(){kxe(this.a,this.b)},L(LX,`BasicEObjectImpl/4`,1022),q(2046,1,{114:1}),Q.Kk=function(e){this.e=e==0?HBt:V(sQ,fG,1,e,5,1)},Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Lk=function(){return this.c},Q.Mk=function(){throw D(new Hg)},Q.Nk=function(){throw D(new Hg)},Q.Ok=function(){return this.d},Q.Pk=function(){return this.e!=null},Q.Qk=function(e){this.c=e},Q.Rk=function(e){throw D(new Hg)},Q.Sk=function(e){throw D(new Hg)},Q.Tk=function(e){this.d=e};var HBt;L(LX,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2046),q(192,2046,{114:1},Of),Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},L(LX,`BasicEObjectImpl/EPropertiesHolderImpl`,192),q(502,100,Apt,ml),Q.rh=function(){return this.f},Q.wh=function(){return this.k},Q.yh=function(e,t){this.g=e,this.i=t},Q.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},Q.Ch=function(){return this.i},Q.th=function(){return!!(this.j&1)},Q.Mh=function(){return this.g},Q.Sh=function(){return!!(this.j&4)},Q.Xh=function(){return!this.k&&(this.k=new Of),this.k},Q._h=function(e){this.Xh().Qk(e),e?this.j|=2:this.j&=-3},Q.bi=function(e){this.Xh().Sk(e),e?this.j|=4:this.j&=-5},Q.fi=function(){return(mO(),K7).S},Q.i=0,Q.j=1,L(LX,`EObjectImpl`,502),q(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},x_e),Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Ah=function(){return this.d},Q.Fh=function(e){return fR(this.d,e)},Q.Hh=function(){return this.d},Q.Lh=function(){return this.e!=null},Q.Xh=function(){return!this.k&&(this.k=new hl),this.k},Q._h=function(e){this.d=e},Q.ei=function(){var e;return this.e??=(e=hO(this.d),e==0?UBt:V(sQ,fG,1,e,5,1)),this},Q.gi=function(){return 0};var UBt;L(LX,`DynamicEObjectImpl`,786),q(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},nve),Q.Fb=function(e){return this===e},Q.Hb=function(){return lT(this)},Q._h=function(e){this.d=e,this.b=MH(e,`key`),this.c=MH(e,GX)},Q.yi=function(){var e;return this.a==-1&&(e=$M(this,this.b),this.a=e==null?0:IP(e)),this.a},Q.jd=function(){return $M(this,this.b)},Q.kd=function(){return $M(this,this.c)},Q.zi=function(e){this.a=e},Q.Ai=function(e){Owe(this,this.b,e)},Q.ld=function(e){var t=$M(this,this.c);return Owe(this,this.c,e),t},Q.a=0,L(LX,`DynamicEObjectImpl/BasicEMapEntry`,1484),q(1485,1,{114:1},hl),Q.Kk=function(e){throw D(new Hg)},Q.ii=function(e){throw D(new Hg)},Q.ji=function(e,t){throw D(new Hg)},Q.ki=function(e){throw D(new Hg)},Q.Lk=function(){throw D(new Hg)},Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Ok=function(){return this.c},Q.Pk=function(){throw D(new Hg)},Q.Qk=function(e){throw D(new Hg)},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},Q.Tk=function(e){this.c=e},L(LX,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1485),q(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},gl),Q.xh=function(e){return bqe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new IT((eG(),o9),d9,this)),this.b):(!this.b&&(this.b=new IT((eG(),o9),d9,this)),iM(this.b));case 3:return nTe(this);case 4:return!this.a&&(this.a=new Ww(Q5,this,4)),this.a;case 5:return!this.c&&(this.c=new Kw(Q5,this,5)),this.c}return EM(this,e-hO((eG(),q7)),_N((r=P(vF(this,16),29),r||q7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?bqe(this,n):this.Cb.Qh(this,-1-i,null,n))),nye(this,P(e,158),n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),q7)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 2:return!this.b&&(this.b=new IT((eG(),o9),d9,this)),gE(this.b,e,n);case 3:return nye(this,null,n);case 4:return!this.a&&(this.a=new Ww(Q5,this,4)),_z(this.a,e,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),q7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!nTe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return XA(this,e-hO((eG(),q7)),_N((t=P(vF(this,16),29),t||q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:mve(this,VT(t));return;case 2:!this.b&&(this.b=new IT((eG(),o9),d9,this)),iF(this.b,t);return;case 3:g3e(this,P(t,158));return;case 4:!this.a&&(this.a=new Ww(Q5,this,4)),_W(this.a),!this.a&&(this.a=new Ww(Q5,this,4)),gO(this.a,P(t,18));return;case 5:!this.c&&(this.c=new Kw(Q5,this,5)),_W(this.c),!this.c&&(this.c=new Kw(Q5,this,5)),gO(this.c,P(t,18));return}ZL(this,e-hO((eG(),q7)),_N((n=P(vF(this,16),29),n||q7),e),t)},Q.fi=function(){return eG(),q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:FFe(this,null);return;case 2:!this.b&&(this.b=new IT((eG(),o9),d9,this)),this.b.c.$b();return;case 3:g3e(this,null);return;case 4:!this.a&&(this.a=new Ww(Q5,this,4)),_W(this.a);return;case 5:!this.c&&(this.c=new Kw(Q5,this,5)),_W(this.c);return}lL(this,e-hO((eG(),q7)),_N((t=P(vF(this,16),29),t||q7),e))},Q.Ib=function(){return eVe(this)},Q.d=null,L(LX,`EAnnotationImpl`,505),q(142,711,dht,_M),Q.Ei=function(e,t){dle(this,e,P(t,45))},Q.Uk=function(e,t){return sme(this,P(e,45),t)},Q.Yi=function(e){return P(P(this.c,72).Yi(e),136)},Q.Gi=function(){return P(this.c,72).Gi()},Q.Hi=function(){return P(this.c,72).Hi()},Q.Ii=function(e){return P(this.c,72).Ii(e)},Q.Vk=function(e,t){return gE(this,e,t)},Q.Dk=function(e){return P(this.c,78).Dk(e)},Q.$j=function(){},Q.Oj=function(){return P(this.c,78).Oj()},Q.ak=function(e,t,n){var r=P(FN(this.b).ti().pi(this.b),136);return r.zi(e),r.Ai(t),r.ld(n),r},Q.bk=function(){return new Ene(this)},Q.Wb=function(e){iF(this,e)},Q.Ek=function(){P(this.c,78).Ek()},L(pZ,`EcoreEMap`,142),q(169,142,dht,IT),Q.Zj=function(){var e,t,n,r,i,a;if(this.d==null){for(a=V(cBt,Ymt,67,2*this.f+1,0,1),n=this.c.Jc();n.e!=n.i.gc();)t=P(n.Wj(),136),r=t.yi(),i=(r&sG)%a.length,e=a[i],!e&&(e=a[i]=new Ene(this)),e.Ec(t);this.d=a}},L(LX,`EAnnotationImpl/1`,169),q(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),!!this.Hk();case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q}return EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 9:return Ibe(this,n)}return i=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),i.uk().yk(this,BR(this),t-hO(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0)}return XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:this.ri(VT(t));return;case 2:uL(this,xv(BT(t)));return;case 3:dL(this,xv(BT(t)));return;case 4:XN(this,P(t,15).a);return;case 5:this.Xk(P(t,15).a);return;case 8:HI(this,P(t,143));return;case 9:r=JB(this,P(t,87),null),r&&r.mj();return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return eG(),VBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:this.ri(null);return;case 2:uL(this,!0);return;case 3:dL(this,!0);return;case 4:XN(this,0);return;case 5:this.Xk(1);return;case 8:HI(this,null);return;case 9:n=JB(this,null,null),n&&n.mj();return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.mi=function(){gB(this),this.Bb|=1},Q.Fk=function(){return gB(this)},Q.Gk=function(){return this.t},Q.Hk=function(){var e;return e=this.t,e>1||e==-1},Q.Qi=function(){return!!(this.Bb&512)},Q.Wk=function(e,t){return HBe(this,e,t)},Q.Xk=function(e){ZN(this,e)},Q.Ib=function(){return i0e(this)},Q.s=0,Q.t=1,L(LX,`ETypedElementImpl`,293),q(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),Q.xh=function(e){return UKe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),!!this.Hk();case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q;case 10:return iT(),(this.Bb&fZ)!=0;case 11:return iT(),(this.Bb&RX)!=0;case 12:return iT(),(this.Bb&IK)!=0;case 13:return this.j;case 14:return TH(this);case 15:return iT(),(this.Bb&mZ)!=0;case 16:return iT(),(this.Bb&EG)!=0;case 17:return Qk(this)}return EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?UKe(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,17,n)}return a=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),a.uk().xk(this,BR(this),t-hO(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 9:return Ibe(this,n);case 17:return DU(this,null,17,n)}return i=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),i.uk().yk(this,BR(this),t-hO(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&IK)!=0;case 13:return this.j!=null;case 14:return TH(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&EG)!=0;case 17:return!!Qk(this)}return XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:TTe(this,VT(t));return;case 2:uL(this,xv(BT(t)));return;case 3:dL(this,xv(BT(t)));return;case 4:XN(this,P(t,15).a);return;case 5:this.Xk(P(t,15).a);return;case 8:HI(this,P(t,143));return;case 9:r=JB(this,P(t,87),null),r&&r.mj();return;case 10:DL(this,xv(BT(t)));return;case 11:kL(this,xv(BT(t)));return;case 12:OL(this,xv(BT(t)));return;case 13:Kse(this,VT(t));return;case 15:EL(this,xv(BT(t)));return;case 16:WL(this,xv(BT(t)));return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return eG(),BBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,88)&&PV(kj(P(this.Cb,88)),4),RP(this,null);return;case 2:uL(this,!0);return;case 3:dL(this,!0);return;case 4:XN(this,0);return;case 5:this.Xk(1);return;case 8:HI(this,null);return;case 9:n=JB(this,null,null),n&&n.mj();return;case 10:DL(this,!0);return;case 11:kL(this,!1);return;case 12:OL(this,!1);return;case 13:this.i=null,SP(this,null);return;case 15:EL(this,!1);return;case 16:WL(this,!1);return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.mi=function(){QO(UM((CV(),p9),this)),gB(this),this.Bb|=1},Q.nk=function(){return this.f},Q.gk=function(){return TH(this)},Q.ok=function(){return Qk(this)},Q.sk=function(){return null},Q.Yk=function(){return this.k},Q.Jj=function(){return this.n},Q.tk=function(){return NB(this)},Q.uk=function(){var e,t,n,r,i,a,o,s,c;return this.p||(n=Qk(this),(n.i??zU(n),n.i).length,r=this.sk(),r&&hO(Qk(r)),i=gB(this),o=i.ik(),e=o?o.i&1?o==J9?bQ:o==q9?TQ:o==Q9?wQ:o==Z9?CQ:o==Y9?EQ:o==$9?DQ:o==X9?xQ:SQ:o:null,t=TH(this),s=i.gk(),GVe(this),(this.Bb&EG)!=0&&((a=hJe((CV(),p9),n))&&a!=this||(a=yA(UM(p9,this))))?this.p=new Use(this,a):this.Hk()?this.$k()?this.p=r?(this.Bb&mZ)==0?e?this._k()?new uk(49,e,this,r):new uk(7,e,this,r):this._k()?new lj(48,this,r):new lj(6,this,r):e?this._k()?new uk(47,e,this,r):new uk(5,e,this,r):this._k()?new lj(46,this,r):new lj(4,this,r):(this.Bb&mZ)==0?e?e==dQ?new PE(41,nBt,this):this._k()?new PE(45,e,this):new PE(3,e,this):this._k()?new Tk(44,this):new Tk(2,this):e?e==dQ?new PE(50,nBt,this):this._k()?new PE(43,e,this):new PE(1,e,this):this._k()?new Tk(42,this):new Tk(0,this):M(i,159)?this.p=e==c9?new Tk(40,this):this.Bb&512?(this.Bb&mZ)==0?e?new PE(11,e,this):new Tk(10,this):e?new PE(9,e,this):new Tk(8,this):(this.Bb&mZ)==0?e?new PE(15,e,this):new Tk(14,this):e?new PE(13,e,this):new Tk(12,this):r?(c=r.t,this.p=c>1||c==-1?this._k()?(this.Bb&mZ)==0?e?new uk(27,e,this,r):new lj(26,this,r):e?new uk(25,e,this,r):new lj(24,this,r):(this.Bb&mZ)==0?e?new uk(31,e,this,r):new lj(30,this,r):e?new uk(29,e,this,r):new lj(28,this,r):this._k()?(this.Bb&mZ)==0?e?new uk(35,e,this,r):new lj(34,this,r):e?new uk(33,e,this,r):new lj(32,this,r):(this.Bb&mZ)==0?e?new uk(39,e,this,r):new lj(38,this,r):e?new uk(37,e,this,r):new lj(36,this,r)):this.p=this._k()?(this.Bb&mZ)==0?e?new PE(19,e,this):new Tk(18,this):e?new PE(17,e,this):new Tk(16,this):(this.Bb&mZ)==0?e?new PE(23,e,this):new Tk(22,this):e?new PE(21,e,this):new Tk(20,this):this.p=this.Zk()?this._k()?new Lge(P(i,29),this,r):new mwe(P(i,29),this,r):M(i,159)?e==c9?new Tk(40,this):(this.Bb&mZ)==0?e?new aye(t,s,this,(ER(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new zSe(P(i,159),t,s,this):e?new oye(t,s,this,(ER(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new BSe(P(i,159),t,s,this):this.$k()?r?(this.Bb&mZ)==0?this._k()?new Vge(P(i,29),this,r):new Rge(P(i,29),this,r):this._k()?new Uge(P(i,29),this,r):new Hge(P(i,29),this,r):(this.Bb&mZ)==0?this._k()?new ofe(P(i,29),this):new LT(P(i,29),this):this._k()?new cfe(P(i,29),this):new sfe(P(i,29),this):this._k()?r?(this.Bb&mZ)==0?new zge(P(i,29),this,r):new Wge(P(i,29),this,r):(this.Bb&mZ)==0?new ife(P(i,29),this):new lfe(P(i,29),this):r?(this.Bb&mZ)==0?new Bge(P(i,29),this,r):new Gge(P(i,29),this,r):(this.Bb&mZ)==0?new hD(P(i,29),this):new afe(P(i,29),this)),this.p},Q.pk=function(){return(this.Bb&fZ)!=0},Q.Zk=function(){return!1},Q.$k=function(){return!1},Q.qk=function(){return(this.Bb&EG)!=0},Q.vk=function(){return nN(this)},Q._k=function(){return!1},Q.rk=function(){return(this.Bb&mZ)!=0},Q.al=function(e){this.k=e},Q.ri=function(e){TTe(this,e)},Q.Ib=function(){return iU(this)},Q.e=!1,Q.n=0,L(LX,`EStructuralFeatureImpl`,451),q(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},k_),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),!!m1e(this);case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q;case 10:return iT(),(this.Bb&fZ)!=0;case 11:return iT(),(this.Bb&RX)!=0;case 12:return iT(),(this.Bb&IK)!=0;case 13:return this.j;case 14:return TH(this);case 15:return iT(),(this.Bb&mZ)!=0;case 16:return iT(),(this.Bb&EG)!=0;case 17:return Qk(this);case 18:return iT(),(this.Bb&IX)!=0;case 19:return t?IF(this):WAe(this)}return EM(this,e-hO((eG(),J7)),_N((r=P(vF(this,16),29),r||J7),e),t,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return m1e(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&IK)!=0;case 13:return this.j!=null;case 14:return TH(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&EG)!=0;case 17:return!!Qk(this);case 18:return(this.Bb&IX)!=0;case 19:return!!WAe(this)}return XA(this,e-hO((eG(),J7)),_N((t=P(vF(this,16),29),t||J7),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:TTe(this,VT(t));return;case 2:uL(this,xv(BT(t)));return;case 3:dL(this,xv(BT(t)));return;case 4:XN(this,P(t,15).a);return;case 5:bie(this,P(t,15).a);return;case 8:HI(this,P(t,143));return;case 9:r=JB(this,P(t,87),null),r&&r.mj();return;case 10:DL(this,xv(BT(t)));return;case 11:kL(this,xv(BT(t)));return;case 12:OL(this,xv(BT(t)));return;case 13:Kse(this,VT(t));return;case 15:EL(this,xv(BT(t)));return;case 16:WL(this,xv(BT(t)));return;case 18:GL(this,xv(BT(t)));return}ZL(this,e-hO((eG(),J7)),_N((n=P(vF(this,16),29),n||J7),e),t)},Q.fi=function(){return eG(),J7},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,88)&&PV(kj(P(this.Cb,88)),4),RP(this,null);return;case 2:uL(this,!0);return;case 3:dL(this,!0);return;case 4:XN(this,0);return;case 5:this.b=0,ZN(this,1);return;case 8:HI(this,null);return;case 9:n=JB(this,null,null),n&&n.mj();return;case 10:DL(this,!0);return;case 11:kL(this,!1);return;case 12:OL(this,!1);return;case 13:this.i=null,SP(this,null);return;case 15:EL(this,!1);return;case 16:WL(this,!1);return;case 18:GL(this,!1);return}lL(this,e-hO((eG(),J7)),_N((t=P(vF(this,16),29),t||J7),e))},Q.mi=function(){IF(this),QO(UM((CV(),p9),this)),gB(this),this.Bb|=1},Q.Hk=function(){return m1e(this)},Q.Wk=function(e,t){return this.b=0,this.a=null,HBe(this,e,t)},Q.Xk=function(e){bie(this,e)},Q.Ib=function(){var e;return this.Db&64?iU(this):(e=new eT(iU(this)),e.a+=` (iD: `,Gy(e,(this.Bb&IX)!=0),e.a+=`)`,e.a)},Q.b=0,L(LX,`EAttributeImpl`,335),q(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),Q.bl=function(e){return e.Ah()==this},Q.xh=function(e){return eB(this,e)},Q.yh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return Zz(this);case 4:return this.gk();case 5:return this.F;case 6:return t?FN(this):Xk(this);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),this.A}return EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?eB(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,6,n)}return a=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),a.uk().xk(this,BR(this),t-hO(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 6:return DU(this,null,6,n);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),_z(this.A,e,n)}return i=P(_N((r=P(vF(this,16),29),r||this.fi()),t),69),i.uk().yk(this,BR(this),t-hO(this.fi()),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zz(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Xk(this);case 7:return!!this.A&&this.A.i!=0}return XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:uA(this,VT(t));return;case 2:uw(this,VT(t));return;case 5:EW(this,VT(t));return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A),!this.A&&(this.A=new Gw(W7,this,7)),gO(this.A,P(t,18));return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return eG(),PBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),RP(this,null);return;case 2:PI(this,null),QN(this,this.D);return;case 5:EW(this,null);return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A);return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.fk=function(){var e;return this.G==-1&&(this.G=(e=FN(this),e?wz(e.si(),this):-1)),this.G},Q.gk=function(){return null},Q.hk=function(){return FN(this)},Q.cl=function(){return this.v},Q.ik=function(){return Zz(this)},Q.jk=function(){return this.D==null?this.B:this.D},Q.kk=function(){return this.F},Q.dk=function(e){return MU(this,e)},Q.dl=function(e){this.v=e},Q.el=function(e){mIe(this,e)},Q.fl=function(e){this.C=e},Q.ri=function(e){uA(this,e)},Q.Ib=function(){return mR(this)},Q.C=null,Q.D=null,Q.G=-1,L(LX,`EClassifierImpl`,360),q(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},Df),Q.bl=function(e){return Rpe(this,e.Ah())},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return Zz(this);case 4:return null;case 5:return this.F;case 6:return t?FN(this):Xk(this);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),this.A;case 8:return iT(),!!(this.Bb&256);case 9:return iT(),!!(this.Bb&512);case 10:return Ak(this);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),this.q;case 12:return $U(this);case 13:return YU(this);case 14:return YU(this),this.r;case 15:return $U(this),this.k;case 16:return VQe(this);case 17:return GU(this);case 18:return zU(this);case 19:return xH(this);case 20:return $U(this),this.o;case 21:return!this.s&&(this.s=new F(N7,this,21,17)),this.s;case 22:return oj(this);case 23:return QH(this)}return EM(this,e-hO((eG(),Y7)),_N((r=P(vF(this,16),29),r||Y7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?eB(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,6,n);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),yR(this.q,e,n);case 21:return!this.s&&(this.s=new F(N7,this,21,17)),yR(this.s,e,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),Y7)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),Y7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 6:return DU(this,null,6,n);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),_z(this.A,e,n);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),_z(this.q,e,n);case 21:return!this.s&&(this.s=new F(N7,this,21,17)),_z(this.s,e,n);case 22:return _z(oj(this),e,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),Y7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),Y7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zz(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Xk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&oj(this.u.a).i!=0&&!(this.n&&Fz(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return $U(this).i!=0;case 13:return YU(this).i!=0;case 14:return YU(this),this.r.i!=0;case 15:return $U(this),this.k.i!=0;case 16:return VQe(this).i!=0;case 17:return GU(this).i!=0;case 18:return zU(this).i!=0;case 19:return xH(this).i!=0;case 20:return $U(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Fz(this.n);case 23:return QH(this).i!=0}return XA(this,e-hO((eG(),Y7)),_N((t=P(vF(this,16),29),t||Y7),e))},Q.Wh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:MH(this,e))||Hit(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:uA(this,VT(t));return;case 2:uw(this,VT(t));return;case 5:EW(this,VT(t));return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A),!this.A&&(this.A=new Gw(W7,this,7)),gO(this.A,P(t,18));return;case 8:QBe(this,xv(BT(t)));return;case 9:$Be(this,xv(BT(t)));return;case 10:vW(Ak(this)),gO(Ak(this),P(t,18));return;case 11:!this.q&&(this.q=new F(B7,this,11,10)),_W(this.q),!this.q&&(this.q=new F(B7,this,11,10)),gO(this.q,P(t,18));return;case 21:!this.s&&(this.s=new F(N7,this,21,17)),_W(this.s),!this.s&&(this.s=new F(N7,this,21,17)),gO(this.s,P(t,18));return;case 22:_W(oj(this)),gO(oj(this),P(t,18));return}ZL(this,e-hO((eG(),Y7)),_N((n=P(vF(this,16),29),n||Y7),e),t)},Q.fi=function(){return eG(),Y7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),RP(this,null);return;case 2:PI(this,null),QN(this,this.D);return;case 5:EW(this,null);return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A);return;case 8:QBe(this,!1);return;case 9:$Be(this,!1);return;case 10:this.u&&vW(this.u);return;case 11:!this.q&&(this.q=new F(B7,this,11,10)),_W(this.q);return;case 21:!this.s&&(this.s=new F(N7,this,21,17)),_W(this.s);return;case 22:this.n&&_W(this.n);return}lL(this,e-hO((eG(),Y7)),_N((t=P(vF(this,16),29),t||Y7),e))},Q.mi=function(){var e,t;if($U(this),YU(this),VQe(this),GU(this),zU(this),xH(this),QH(this),zj($ge(kj(this))),this.s)for(e=0,t=this.s.i;e<t;++e)HT(H(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)HT(H(this.q,e));iL((CV(),p9),this).ve(),this.Bb|=1},Q.Ib=function(){return eYe(this)},Q.k=null,Q.r=null;var l9,WBt,GBt;L(LX,`EClassImpl`,88),q(2057,2056,hht),Q.Ci=function(e,t){return PU(this,e,t)},Q.Di=function(e){return PU(this,this.i,e)},Q.Ei=function(e,t){e0e(this,e,t)},Q.Fi=function(e){nH(this,e)},Q.Uk=function(e,t){return yR(this,e,t)},Q.Yi=function(e){return dMe(this,e)},Q.Vk=function(e,t){return _z(this,e,t)},Q.Vi=function(e,t){return fet(this,e,t)},Q.Gi=function(){return new vT(this)},Q.Hi=function(){return new yT(this)},Q.Ii=function(e){return lP(this,e)},L(pZ,`NotifyingInternalEListImpl`,2057),q(624,2057,CZ),Q.Gc=function(e){return Gtt(this,e)},Q.Gj=function(e,t,n,r,i){return iA(this,e,t,n,r,i)},Q.Hj=function(e){e_(this,e)},Q.Dk=function(e){return this},Q.Jk=function(){return _N(this.e.Ah(),this.Jj())},Q.Ij=function(){return this.Jk()},Q.Jj=function(){return fR(this.e.Ah(),this.Jk())},Q.gl=function(){return P(this.Jk().Fk(),29).ik()},Q.hl=function(){return jz(P(this.Jk(),19)).n},Q.hj=function(){return this.e},Q.il=function(){return!0},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!1},Q.bd=function(e){return wz(this,e)},Q.Lj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Oh(this.e,this.hl(),this.gl(),t):n.Oh(this.e,fR(n.Ah(),jz(P(this.Jk(),19))),null,t):n.Oh(this.e,-1-this.Jj(),null,t)},Q.Mj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Qh(this.e,this.hl(),this.gl(),t):n.Qh(this.e,fR(n.Ah(),jz(P(this.Jk(),19))),null,t):n.Qh(this.e,-1-this.Jj(),null,t)},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return LOe(this.d,e)},Q.Nj=function(){return tw(this.e)},Q.Oj=function(){return this.i!=0},Q.$i=function(e){return $N(this.d,e)},Q.Ui=function(e,t){return this.ml()&&this.ll()?eH(this,e,P(t,57)):t},Q.nl=function(e){return e.Sh()?QI(this.e,P(e,52)):e},Q.Wb=function(e){Yle(this,e)},Q.Nc=function(){return fMe(this)},Q.Oc=function(e){var t;if(this.ll())for(t=this.i-1;t>=0;--t)H(this,t);return GHe(this,e)},Q.Ek=function(){_W(this)},Q.Xi=function(e,t){return iFe(this,e,t)},L(pZ,`EcoreEList`,624),q(491,624,CZ,WE),Q.Ji=function(){return!1},Q.Jj=function(){return this.c},Q.Kj=function(){return!1},Q.ml=function(){return!0},Q.Qi=function(){return!0},Q.Ui=function(e,t){return t},Q.Wi=function(){return!1},Q.c=0,L(pZ,`EObjectEList`,491),q(81,491,CZ,Ww),Q.Kj=function(){return!0},Q.kl=function(){return!1},Q.$k=function(){return!0},L(pZ,`EObjectContainmentEList`,81),q(544,81,CZ,Uw),Q.Li=function(){this.b=!0},Q.Oj=function(){return this.b},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.b,this.b=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.b=!1},Q.b=!1,L(pZ,`EObjectContainmentEList/Unsettable`,544),q(1131,544,CZ,rye),Q.Ri=function(e,t){var n,r;return n=P(wL(this,e,t),87),tw(this.e)&&e_(this,new yM(this.a,7,(eG(),FBt),G(t),(r=n.c,M(r,88)?P(r,29):t9),e)),n},Q.Sj=function(e,t){return $He(this,P(e,87),t)},Q.Tj=function(e,t){return QHe(this,P(e,87),t)},Q.Uj=function(e,t,n){return AJe(this,P(e,87),P(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return iA(this,e,t,n,r,this.i>1);case 5:return iA(this,e,t,n,r,this.i-P(n,16).gc()>0);default:return new YM(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return Fz(this)},Q.Ek=function(){_W(this)},L(LX,`EClassImpl/1`,1131),q(1145,1144,Gmt),Q.bj=function(e){var t,n=e.ej(),r,i,a,o,s;if(n!=8){if(r=TWe(e),r==0)switch(n){case 1:case 9:s=e.ij(),s!=null&&(t=kj(P(s,471)),!t.c&&(t.c=new Fl),tN(t.c,e.hj())),o=e.gj(),o!=null&&(i=P(o,471),i.Bb&1||(t=kj(i),!t.c&&(t.c=new Fl),pM(t.c,P(e.hj(),29))));break;case 3:o=e.gj(),o!=null&&(i=P(o,471),i.Bb&1||(t=kj(i),!t.c&&(t.c=new Fl),pM(t.c,P(e.hj(),29))));break;case 5:if(o=e.gj(),o!=null)for(a=P(o,18).Jc();a.Ob();)i=P(a.Pb(),471),i.Bb&1||(t=kj(i),!t.c&&(t.c=new Fl),pM(t.c,P(e.hj(),29)));break;case 4:s=e.ij(),s!=null&&(i=P(s,471),i.Bb&1||(t=kj(i),!t.c&&(t.c=new Fl),tN(t.c,e.hj())));break;case 6:if(s=e.ij(),s!=null)for(a=P(s,18).Jc();a.Ob();)i=P(a.Pb(),471),i.Bb&1||(t=kj(i),!t.c&&(t.c=new Fl),tN(t.c,e.hj()))}this.ol(r)}},Q.ol=function(e){F8e(this,e)},Q.b=63,L(LX,`ESuperAdapter`,1145),q(1146,1145,Gmt,_ne),Q.ol=function(e){PV(this,e)},L(LX,`EClassImpl/10`,1146),q(1135,699,CZ),Q.Ci=function(e,t){return qB(this,e,t)},Q.Di=function(e){return JGe(this,e)},Q.Ei=function(e,t){aL(this,e,t)},Q.Fi=function(e){Bj(this,e)},Q.Yi=function(e){return dMe(this,e)},Q.Vi=function(e,t){return eN(this,e,t)},Q.Uk=function(e,t){throw D(new Hg)},Q.Gi=function(){return new vT(this)},Q.Hi=function(){return new yT(this)},Q.Ii=function(e){return lP(this,e)},Q.Vk=function(e,t){throw D(new Hg)},Q.Dk=function(e){return this},Q.Oj=function(){return this.i!=0},Q.Wb=function(e){throw D(new Hg)},Q.Ek=function(){throw D(new Hg)},L(pZ,`EcoreEList/UnmodifiableEList`,1135),q(333,1135,CZ,HC),Q.Wi=function(){return!1},L(pZ,`EcoreEList/UnmodifiableEList/FastCompare`,333),q(1138,333,CZ,jRe),Q.bd=function(e){var t,n,r;if(M(e,179)&&(t=P(e,179),n=t.Jj(),n!=-1)){for(r=this.i;n<r;++n)if(j(this.g[n])===j(e))return n}return-1},L(LX,`EClassImpl/1EAllStructuralFeaturesList`,1138),q(1132,492,rZ,_l),Q.$i=function(e){return V(z7,ght,87,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1EGenericSuperTypeEList`,1132),q(625,492,rZ,vl),Q.$i=function(e){return V(N7,SZ,179,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1EStructuralFeatureUniqueEList`,625),q(743,492,rZ,yl),Q.$i=function(e){return V(U7,SZ,19,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1ReferenceList`,743),q(1133,492,rZ,vne),Q.Ki=function(e,t){sye(this,P(t,38))},Q.$i=function(e){return V(P7,SZ,38,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/2`,1133),q(1134,492,rZ,bl),Q.$i=function(e){return V(P7,SZ,38,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/3`,1134),q(1136,333,CZ,S_e),Q.Ec=function(e){return ske(this,P(e,38))},Q.Fi=function(e){xae(this,P(e,38))},L(LX,`EClassImpl/4`,1136),q(1137,333,CZ,C_e),Q.Ec=function(e){return cke(this,P(e,19))},Q.Fi=function(e){Sae(this,P(e,19))},L(LX,`EClassImpl/5`,1137),q(1139,492,rZ,xl),Q.$i=function(e){return V(B7,mht,62,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/6`,1139),q(1140,492,rZ,Sl),Q.$i=function(e){return V(U7,SZ,19,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/7`,1140),q(2060,2059,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,72:1}),Q.Ci=function(e,t){return u9e(this,e,t)},Q.Di=function(e){return u9e(this,this.Cj(),e)},Q.Ei=function(e,t){T0e(this,e,t)},Q.Fi=function(e){$1e(this,e)},Q.Uk=function(e,t){return YGe(this,e,t)},Q.Vk=function(e,t){return rGe(this,e,t)},Q.Vi=function(e,t){return d9e(this,e,t)},Q.Yi=function(e){return this.vj(e)},Q.Gi=function(){return new vT(this)},Q.nj=function(){return this.qj()},Q.Hi=function(){return new yT(this)},Q.Ii=function(e){return lP(this,e)},L(pZ,`DelegatingNotifyingInternalEListImpl`,2060),q(744,2060,_ht),Q.Ji=function(){var e=_N(jk(this.b),this.Jj()).Fk();return M(e,159)&&!M(e,459)&&!(e.ik().i&1)},Q.Gc=function(e){var t,n,r,i,a,o,s,c;if(this.ml()){if(c=this.Cj(),c>4)if(this.dk(e)){if(this.$k()){if(r=P(e,52),n=r.Bh(),s=n==this.b&&(this.kl()?r.vh(r.Ch(),P(_N(jk(this.b),this.Jj()).Fk(),29).ik())==jz(P(_N(jk(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!s&&!n&&r.Gh()){for(i=0;i<c;++i)if(t=Qye(this,this.vj(i)),j(t)===j(e))return!0}return s}if(this.kl()&&!this.jl()){if(a=P(e,57).Jh(jz(P(_N(jk(this.b),this.Jj()),19))),j(a)===j(this.b))return!0;if(a==null||!P(a,57).Sh())return!1}}else return!1;if(o=this.sj(e),this.ll()&&!o){for(i=0;i<c;++i)if(r=Qye(this,this.vj(i)),j(r)===j(e))return!0}return o}return this.sj(e)},Q.Gj=function(e,t,n,r,i){return new YM(this.b,e,this.Jj(),t,n,r,i)},Q.Hj=function(e){uF(this.b,e)},Q.Dk=function(e){return this},Q.Ij=function(){return _N(jk(this.b),this.Jj())},Q.Jj=function(){return fR(jk(this.b),_N(jk(this.b),this.Jj()))},Q.hj=function(){return this.b},Q.il=function(){return!!_N(jk(this.b),this.Jj()).Fk().ik()},Q.Kj=function(){var e,t=_N(jk(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&IX)!=0||!!jz(P(t,19))):!1},Q.jl=function(){var e,t=_N(jk(this.b),this.Jj()),n,r;return M(t,103)?(e=P(t,19),n=jz(e),!!n&&(r=n.t,r>1||r==-1)):!1},Q.kl=function(){var e,t=_N(jk(this.b),this.Jj()),n;return M(t,103)?(e=P(t,19),n=jz(e),!!n):!1},Q.ll=function(){var e,t=_N(jk(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&RK)!=0):!1},Q.bd=function(e){var t,n,r=this.xj(e),i;if(r>=0)return r;if(this.ml()){for(n=0,i=this.Cj();n<i;++n)if(t=Qye(this,this.vj(n)),j(t)===j(e))return n}return-1},Q.Lj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Oh(this.b,jz(P(_N(jk(this.b),this.Jj()),19)).n,P(_N(jk(this.b),this.Jj()).Fk(),29).ik(),t):n.Oh(this.b,fR(n.Ah(),jz(P(_N(jk(this.b),this.Jj()),19))),null,t):n.Oh(this.b,-1-this.Jj(),null,t)},Q.Mj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Qh(this.b,jz(P(_N(jk(this.b),this.Jj()),19)).n,P(_N(jk(this.b),this.Jj()).Fk(),29).ik(),t):n.Qh(this.b,fR(n.Ah(),jz(P(_N(jk(this.b),this.Jj()),19))),null,t):n.Qh(this.b,-1-this.Jj(),null,t)},Q.$k=function(){var e,t=_N(jk(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&IX)!=0):!1},Q.ml=function(){return M(_N(jk(this.b),this.Jj()).Fk(),88)},Q.dk=function(e){return _N(jk(this.b),this.Jj()).Fk().dk(e)},Q.Nj=function(){return tw(this.b)},Q.Oj=function(){return!this.yj()},Q.Qi=function(){return _N(jk(this.b),this.Jj()).Qi()},Q.Ui=function(e,t){return wW(this,e,t)},Q.Wb=function(e){vW(this),gO(this,P(e,16))},Q.Nc=function(){var e;if(this.ll())for(e=this.Cj()-1;e>=0;--e)wW(this,e,this.vj(e));return this.Dj()},Q.Oc=function(e){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)wW(this,t,this.vj(t));return this.Ej(e)},Q.Ek=function(){vW(this)},Q.Xi=function(e,t){return bMe(this,e,t)},L(pZ,`DelegatingEcoreEList`,744),q(1141,744,_ht,Ufe),Q.oj=function(e,t){rfe(this,e,P(t,29))},Q.pj=function(e){sle(this,P(e,29))},Q.vj=function(e){var t,n;return t=P(H(oj(this.a),e),87),n=t.c,M(n,88)?P(n,29):(eG(),t9)},Q.Aj=function(e){var t,n;return t=P(KH(oj(this.a),e),87),n=t.c,M(n,88)?P(n,29):(eG(),t9)},Q.Bj=function(e,t){return XGe(this,e,P(t,29))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new yne(this)},Q.rj=function(){_W(oj(this.a))},Q.sj=function(e){return nVe(this,e)},Q.tj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!nVe(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(M(e,16)&&(r=P(e,16),r.gc()==oj(this.a).i)){for(t=r.Jc(),n=new Jw(this);t.Ob();)if(j(t.Pb())!==j(sz(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new Jw(oj(this.a));t.e!=t.i.gc();)e=P(sz(t),87),r=(i=e.c,M(i,88)?P(i,29):(eG(),t9)),n=31*n+(r?lT(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new Jw(oj(this.a));n.e!=n.i.gc();){if(t=P(sz(n),87),j(e)===j((i=t.c,M(i,88)?P(i,29):(eG(),t9))))return r;++r}return-1},Q.yj=function(){return oj(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return oj(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=oj(this.a).i;for(i=V(sQ,fG,1,a,5,1),n=0,t=new Jw(oj(this.a));t.e!=t.i.gc();)e=P(sz(t),87),i[n++]=(r=e.c,M(r,88)?P(r,29):(eG(),t9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=oj(this.a).i;for(e.length<s&&(i=$N(CI(e).c,s),e=i),e.length>s&&xO(e,s,null),r=0,n=new Jw(oj(this.a));n.e!=n.i.gc();)t=P(sz(n),87),a=(o=t.c,M(o,88)?P(o,29):(eG(),t9)),xO(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new Kv;for(i.a+=`[`,e=oj(this.a),t=0,r=oj(this.a).i;t<r;)MC(i,$w((n=P(H(e,t),87).c,M(n,88)?P(n,29):(eG(),t9)))),++t<r&&(i.a+=dG);return i.a+=`]`,i.a},Q.Hj=function(e){},Q.Jj=function(){return 10},Q.il=function(){return!0},Q.Kj=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!0},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return M(e,88)},Q.Oj=function(){return WEe(this.a)},Q.Qi=function(){return!0},Q.Wi=function(){return!0},L(LX,`EClassImpl/8`,1141),q(1142,2027,UG,yne),Q.dd=function(e){return lP(this.a,e)},Q.gc=function(){return oj(this.a.a).i},L(LX,`EClassImpl/8/1`,1142),q(1143,492,rZ,Cl),Q.$i=function(e){return V(F7,fG,143,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/9`,1143),q(1130,48,pst,A_),L(LX,`EClassImpl/MyHashSet`,1130),q(563,360,{109:1,94:1,93:1,143:1,159:1,832:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1},Gg),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return Zz(this);case 4:return this.gk();case 5:return this.F;case 6:return t?FN(this):Xk(this);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),this.A;case 8:return iT(),!!(this.Bb&256)}return EM(this,e-hO(this.fi()),_N((r=P(vF(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zz(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Xk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256)}return XA(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:uA(this,VT(t));return;case 2:uw(this,VT(t));return;case 5:EW(this,VT(t));return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A),!this.A&&(this.A=new Gw(W7,this,7)),gO(this.A,P(t,18));return;case 8:fL(this,xv(BT(t)));return}ZL(this,e-hO(this.fi()),_N((n=P(vF(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return eG(),IBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),RP(this,null);return;case 2:PI(this,null),QN(this,this.D);return;case 5:EW(this,null);return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A);return;case 8:fL(this,!0);return}lL(this,e-hO(this.fi()),_N((t=P(vF(this,16),29),t||this.fi()),e))},Q.mi=function(){iL((CV(),p9),this).ve(),this.Bb|=1},Q.mk=function(){var e,t,n;if(!this.c&&(e=O2e(FN(this)),!e.dc()))for(n=e.Jc();n.Ob();)t=VT(n.Pb()),OU(this,t)&&wVe(this);return this.b},Q.gk=function(){var e;if(!this.e){e=null;try{e=Zz(this)}catch(e){if(e=HF(e),!M(e,101))throw D(e)}this.d=null,e&&e.i&1&&(this.d=e==J9?(iT(),vQ):e==q9?G(0):e==Q9?new Zp(0):e==Z9?0:e==Y9?UR(0):e==$9?eL(0):e==X9?QM(0):bF(0)),this.e=!0}return this.d},Q.lk=function(){return!!(this.Bb&256)},Q.pl=function(e){e&&(this.D=`org.eclipse.emf.common.util.AbstractEnumerator`)},Q.el=function(e){mIe(this,e),this.pl(e)},Q.fl=function(e){this.C=e,this.e=!1},Q.Ib=function(){var e;return this.Db&64?mR(this):(e=new eT(mR(this)),e.a+=` (serializable: `,Gy(e,!!(this.Bb&256)),e.a+=`)`,e.a)},Q.c=!1,Q.d=null,Q.e=!1,L(LX,`EDataTypeImpl`,563),q(459,563,{109:1,94:1,93:1,143:1,159:1,832:1,675:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,459:1,161:1,117:1,118:1,681:1},fre),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return Zz(this);case 4:return Bze(this);case 5:return this.F;case 6:return t?FN(this):Xk(this);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),this.A;case 8:return iT(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),this.a}return EM(this,e-hO((eG(),X7)),_N((r=P(vF(this,16),29),r||X7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?eB(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,6,n);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),yR(this.a,e,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),X7)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),X7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 6:return DU(this,null,6,n);case 7:return!this.A&&(this.A=new Gw(W7,this,7)),_z(this.A,e,n);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),_z(this.a,e,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),X7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),X7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zz(this);case 4:return!!Bze(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Xk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return XA(this,e-hO((eG(),X7)),_N((t=P(vF(this,16),29),t||X7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:uA(this,VT(t));return;case 2:uw(this,VT(t));return;case 5:EW(this,VT(t));return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A),!this.A&&(this.A=new Gw(W7,this,7)),gO(this.A,P(t,18));return;case 8:fL(this,xv(BT(t)));return;case 9:!this.a&&(this.a=new F(R7,this,9,5)),_W(this.a),!this.a&&(this.a=new F(R7,this,9,5)),gO(this.a,P(t,18));return}ZL(this,e-hO((eG(),X7)),_N((n=P(vF(this,16),29),n||X7),e),t)},Q.fi=function(){return eG(),X7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),RP(this,null);return;case 2:PI(this,null),QN(this,this.D);return;case 5:EW(this,null);return;case 7:!this.A&&(this.A=new Gw(W7,this,7)),_W(this.A);return;case 8:fL(this,!0);return;case 9:!this.a&&(this.a=new F(R7,this,9,5)),_W(this.a);return}lL(this,e-hO((eG(),X7)),_N((t=P(vF(this,16),29),t||X7),e))},Q.mi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)HT(H(this.a,e));iL((CV(),p9),this).ve(),this.Bb|=1},Q.gk=function(){return Bze(this)},Q.dk=function(e){return e!=null},Q.pl=function(e){},L(LX,`EEnumImpl`,459),q(568,439,{109:1,94:1,93:1,2004:1,684:1,158:1,197:1,57:1,114:1,52:1,100:1,568:1,161:1,117:1,118:1},Lne),Q.ve=function(){return this.zb},Q.xh=function(e){return vqe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return G(this.d);case 3:return this.b?this.b:this.a;case 4:return i=this.c,i??this.zb;case 5:return this.Db>>16==5?P(this.Cb,675):null}return EM(this,e-hO((eG(),Z7)),_N((r=P(vF(this,16),29),r||Z7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?vqe(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,5,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),Z7)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),Z7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 5:return DU(this,null,5,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),Z7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),Z7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&P(this.Cb,675))}return XA(this,e-hO((eG(),Z7)),_N((t=P(vF(this,16),29),t||Z7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:RP(this,VT(t));return;case 2:YN(this,P(t,15).a);return;case 3:R1e(this,P(t,2004));return;case 4:_P(this,VT(t));return}ZL(this,e-hO((eG(),Z7)),_N((n=P(vF(this,16),29),n||Z7),e),t)},Q.fi=function(){return eG(),Z7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:RP(this,null);return;case 2:YN(this,0);return;case 3:R1e(this,null);return;case 4:_P(this,null);return}lL(this,e-hO((eG(),Z7)),_N((t=P(vF(this,16),29),t||Z7),e))},Q.Ib=function(){var e;return e=this.c,e??this.zb},Q.b=null,Q.c=null,Q.d=0,L(LX,`EEnumLiteralImpl`,568);var KBt=aD(LX,`EFactoryImpl/InternalEDateTimeFormat`);q(485,1,{2079:1},fg),L(LX,`EFactoryImpl/1ClientInternalEDateTimeFormat`,485),q(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},Sg),Q.zh=function(e,t,n){var r;return n=DU(this,e,t,n),this.e&&M(e,179)&&(r=bH(this,this.e),r!=this.c&&(n=DW(this,r,n))),n},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Ww(z7,this,1)),this.d;case 2:return t?jU(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Rz(this):this.a}return EM(this,e-hO((eG(),$7)),_N((r=P(vF(this,16),29),r||$7),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return vBe(this,null,n);case 1:return!this.d&&(this.d=new Ww(z7,this,1)),_z(this.d,e,n);case 3:return _Be(this,null,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),$7)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),$7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return XA(this,e-hO((eG(),$7)),_N((t=P(vF(this,16),29),t||$7),e))},Q.$h=function(e,t){var n;switch(e){case 0:aYe(this,P(t,87));return;case 1:!this.d&&(this.d=new Ww(z7,this,1)),_W(this.d),!this.d&&(this.d=new Ww(z7,this,1)),gO(this.d,P(t,18));return;case 3:iYe(this,P(t,87));return;case 4:ZXe(this,P(t,835));return;case 5:PN(this,P(t,143));return}ZL(this,e-hO((eG(),$7)),_N((n=P(vF(this,16),29),n||$7),e),t)},Q.fi=function(){return eG(),$7},Q.hi=function(e){var t;switch(e){case 0:aYe(this,null);return;case 1:!this.d&&(this.d=new Ww(z7,this,1)),_W(this.d);return;case 3:iYe(this,null);return;case 4:ZXe(this,null);return;case 5:PN(this,null);return}lL(this,e-hO((eG(),$7)),_N((t=P(vF(this,16),29),t||$7),e))},Q.Ib=function(){var e=new tT(uH(this));return e.a+=` (expression: `,cW(this,e),e.a+=`)`,e.a};var qBt;L(LX,`EGenericTypeImpl`,248),q(2032,2027,DZ),Q.Ei=function(e,t){Vfe(this,e,t)},Q.Uk=function(e,t){return Vfe(this,this.gc(),e),t},Q.Yi=function(e){return gz(this.nj(),e)},Q.Gi=function(){return this.Hi()},Q.nj=function(){return new Tne(this)},Q.Hi=function(){return this.Ii(0)},Q.Ii=function(e){return this.nj().dd(e)},Q.Vk=function(e,t){return dR(this,e,!0),t},Q.Ri=function(e,t){var n,r=dB(this,t);return n=this.dd(e),n.Rb(r),r},Q.Si=function(e,t){var n;dR(this,t,!0),n=this.dd(e),n.Rb(t)},L(pZ,`AbstractSequentialInternalEList`,2032),q(482,2032,DZ,hT),Q.Yi=function(e){return gz(this.nj(),e)},Q.Gi=function(){return this.b==null?(ax(),ax(),u9):this.ql()},Q.nj=function(){return new _ce(this.a,this.b)},Q.Hi=function(){return this.b==null?(ax(),ax(),u9):this.ql()},Q.Ii=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw D(new uv(dZ+e+`, size=0`));return ax(),ax(),u9}for(n=this.ql(),t=0;t<e;++t)yF(n);return n},Q.dc=function(){var e,t,n,r,i,a;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.tl()||this.a.Uh(e)){if(a=this.a.Kh(e,!1),sx(),P(e,69).vk()){for(t=P(a,163),r=0,i=t.gc();r<i;++r)if(Cxe(t.Rl(r))&&t.Sl(r)!=null)return!1}else if(e.Hk()){if(!P(a,18).dc())return!1}else if(a!=null)return!1}}return!0},Q.Jc=function(){return YFe(this)},Q.dd=function(e){var t,n;if(this.b==null){if(e!=0)throw D(new uv(dZ+e+`, size=0`));return ax(),ax(),u9}for(n=this.sl()?this.rl():this.ql(),t=0;t<e;++t)yF(n);return n},Q.Ri=function(e,t){throw D(new Hg)},Q.Si=function(e,t){throw D(new Hg)},Q.ql=function(){return new gT(this.a,this.b)},Q.rl=function(){return new Xde(this.a,this.b)},Q.sl=function(){return!0},Q.gc=function(){var e,t,n,r,i=0,a,o;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.tl()||this.a.Uh(e))if(o=this.a.Kh(e,!1),sx(),P(e,69).vk())for(t=P(o,163),r=0,a=t.gc();r<a;++r)Cxe(t.Rl(r))&&t.Sl(r)!=null&&++i;else e.Hk()?i+=P(o,18).gc():o!=null&&++i}return i},Q.tl=function(){return!0};var JBt;L(pZ,`EContentsEList`,482),q(1147,482,DZ,Yde),Q.ql=function(){return new Zde(this.a,this.b)},Q.rl=function(){return new Qde(this.a,this.b)},Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1`,1147),q(287,1,OZ,gT),Q.Nb=function(e){QD(this,e)},Q.Rb=function(e){throw D(new Hg)},Q.ul=function(e){if(this.g!=0||this.e)throw D(new vv(`Iterator already in use or already filtered`));this.e=e},Q.Ob=function(){var e,t,n,r,i,a;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!wQe(this,this.p):!U1e(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.nk()!=$5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(sx(),P(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=P(a,16),this.k=r):(r=P(a,72),this.k=this.j=r),M(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?wQe(this,this.p):U1e(this))return i=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}return i=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}},Q.Sb=function(){var e,t,n,r,i,a;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!TQe(this,this.p):!c$e(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.nk()!=$5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(sx(),P(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=P(a,16),this.k=r):(r=P(a,72),this.k=this.j=r),M(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?TQe(this,this.p):c$e(this))return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},Q.Pb=function(){return yF(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw D(new Ug)},Q.Vb=function(){return this.a-1},Q.Qb=function(){throw D(new Hg)},Q.sl=function(){return!1},Q.Wb=function(e){throw D(new Hg)},Q.tl=function(){return!0},Q.a=0,Q.d=0,Q.f=!1,Q.g=0,Q.n=0,Q.o=0;var u9;L(pZ,`EContentsEList/FeatureIteratorImpl`,287),q(700,287,OZ,Xde),Q.sl=function(){return!0},L(pZ,`EContentsEList/ResolvingFeatureIteratorImpl`,700),q(1148,700,OZ,Qde),Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1/1`,1148),q(1149,287,OZ,Zde),Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1/2`,1149),q(39,151,uZ,dj,fj,WD,vM,YM,jj,qPe,ZEe,JPe,QEe,lAe,$Ee,ZPe,eDe,cAe,tDe,YPe,nDe,GD,yM,hCe,XPe,rDe,sAe,XEe),Q.Ij=function(){return Zje(this)},Q.Pj=function(){var e=Zje(this);return e?e.gk():null},Q.fj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,e)},Q.hj=function(){return this.c},Q.Qj=function(){var e=Zje(this);return e?e.rk():!1},Q.b=-1,L(LX,`ENotificationImpl`,39),q(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},j_),Q.xh=function(e){return Iqe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),a=this.t,a>1||a==-1;case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?P(this.Cb,29):null;case 11:return!this.d&&(this.d=new Gw(W7,this,11)),this.d;case 12:return!this.c&&(this.c=new F(H7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new JT(this,this)),this.a;case 14:return GM(this)}return EM(this,e-hO((eG(),n9)),_N((r=P(vF(this,16),29),r||n9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?Iqe(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,10,n);case 12:return!this.c&&(this.c=new F(H7,this,12,10)),yR(this.c,e,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),n9)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),n9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 9:return Ibe(this,n);case 10:return DU(this,null,10,n);case 11:return!this.d&&(this.d=new Gw(W7,this,11)),_z(this.d,e,n);case 12:return!this.c&&(this.c=new F(H7,this,12,10)),_z(this.c,e,n);case 14:return _z(GM(this),e,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),n9)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),n9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0);case 10:return!!(this.Db>>16==10&&P(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&GM(this.a.a).i!=0&&!(this.b&&Iz(this.b));case 14:return!!this.b&&Iz(this.b)}return XA(this,e-hO((eG(),n9)),_N((t=P(vF(this,16),29),t||n9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:RP(this,VT(t));return;case 2:uL(this,xv(BT(t)));return;case 3:dL(this,xv(BT(t)));return;case 4:XN(this,P(t,15).a);return;case 5:ZN(this,P(t,15).a);return;case 8:HI(this,P(t,143));return;case 9:r=JB(this,P(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new Gw(W7,this,11)),_W(this.d),!this.d&&(this.d=new Gw(W7,this,11)),gO(this.d,P(t,18));return;case 12:!this.c&&(this.c=new F(H7,this,12,10)),_W(this.c),!this.c&&(this.c=new F(H7,this,12,10)),gO(this.c,P(t,18));return;case 13:!this.a&&(this.a=new JT(this,this)),vW(this.a),!this.a&&(this.a=new JT(this,this)),gO(this.a,P(t,18));return;case 14:_W(GM(this)),gO(GM(this),P(t,18));return}ZL(this,e-hO((eG(),n9)),_N((n=P(vF(this,16),29),n||n9),e),t)},Q.fi=function(){return eG(),n9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:RP(this,null);return;case 2:uL(this,!0);return;case 3:dL(this,!0);return;case 4:XN(this,0);return;case 5:ZN(this,1);return;case 8:HI(this,null);return;case 9:n=JB(this,null,null),n&&n.mj();return;case 11:!this.d&&(this.d=new Gw(W7,this,11)),_W(this.d);return;case 12:!this.c&&(this.c=new F(H7,this,12,10)),_W(this.c);return;case 13:this.a&&vW(this.a);return;case 14:this.b&&_W(this.b);return}lL(this,e-hO((eG(),n9)),_N((t=P(vF(this,16),29),t||n9),e))},Q.mi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)HT(H(this.c,e));gB(this),this.Bb|=1},L(LX,`EOperationImpl`,403),q(500,744,_ht,JT),Q.oj=function(e,t){nfe(this,e,P(t,143))},Q.pj=function(e){cle(this,P(e,143))},Q.vj=function(e){var t,n;return t=P(H(GM(this.a),e),87),n=t.c,n||(eG(),e9)},Q.Aj=function(e){var t,n;return t=P(KH(GM(this.a),e),87),n=t.c,n||(eG(),e9)},Q.Bj=function(e,t){return KUe(this,e,P(t,143))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new bne(this)},Q.rj=function(){_W(GM(this.a))},Q.sj=function(e){return lVe(this,e)},Q.tj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!lVe(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(M(e,16)&&(r=P(e,16),r.gc()==GM(this.a).i)){for(t=r.Jc(),n=new Jw(this);t.Ob();)if(j(t.Pb())!==j(sz(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new Jw(GM(this.a));t.e!=t.i.gc();)e=P(sz(t),87),r=(i=e.c,i||(eG(),e9)),n=31*n+(r?IP(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new Jw(GM(this.a));n.e!=n.i.gc();){if(t=P(sz(n),87),j(e)===j((i=t.c,i||(eG(),e9))))return r;++r}return-1},Q.yj=function(){return GM(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return GM(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=GM(this.a).i;for(i=V(sQ,fG,1,a,5,1),n=0,t=new Jw(GM(this.a));t.e!=t.i.gc();)e=P(sz(t),87),i[n++]=(r=e.c,r||(eG(),e9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=GM(this.a).i;for(e.length<s&&(i=$N(CI(e).c,s),e=i),e.length>s&&xO(e,s,null),r=0,n=new Jw(GM(this.a));n.e!=n.i.gc();)t=P(sz(n),87),a=(o=t.c,o||(eG(),e9)),xO(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new Kv;for(i.a+=`[`,e=GM(this.a),t=0,r=GM(this.a).i;t<r;)MC(i,$w((n=P(H(e,t),87).c,n||(eG(),e9)))),++t<r&&(i.a+=dG);return i.a+=`]`,i.a},Q.Hj=function(e){},Q.Jj=function(){return 13},Q.il=function(){return!0},Q.Kj=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!0},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return M(e,143)},Q.Oj=function(){return dDe(this.a)},Q.Qi=function(){return!0},Q.Wi=function(){return!0},L(LX,`EOperationImpl/1`,500),q(1331,2027,UG,bne),Q.dd=function(e){return lP(this.a,e)},Q.gc=function(){return GM(this.a.a).i},L(LX,`EOperationImpl/1/1`,1331),q(1332,544,CZ,iye),Q.Ri=function(e,t){var n,r;return n=P(wL(this,e,t),87),tw(this.e)&&e_(this,new yM(this.a,7,(eG(),zBt),G(t),(r=n.c,r||e9),e)),n},Q.Sj=function(e,t){return WBe(this,P(e,87),t)},Q.Tj=function(e,t){return UBe(this,P(e,87),t)},Q.Uj=function(e,t,n){return bWe(this,P(e,87),P(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return iA(this,e,t,n,r,this.i>1);case 5:return iA(this,e,t,n,r,this.i-P(n,16).gc()>0);default:return new YM(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return Iz(this)},Q.Ek=function(){_W(this)},L(LX,`EOperationImpl/2`,1332),q(493,1,{2002:1,493:1},Hse),L(LX,`EPackageImpl/1`,493),q(14,81,CZ,F),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.kl=function(){return!0},Q.b=0,L(pZ,`EObjectContainmentWithInverseEList`,14),q(361,14,CZ,uE),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectContainmentWithInverseEList/Resolving`,361),q(313,361,CZ,UD),Q.Li=function(){this.a.tb=null},L(LX,`EPackageImpl/2`,313),q(1244,1,{},wl),L(LX,`EPackageImpl/3`,1244),q(721,44,JK,M_),Q._b=function(e){return SC(e)?wCe(this,e):!!CD(this.f,e)},L(LX,`EPackageRegistryImpl`,721),q(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},N_),Q.xh=function(e){return Lqe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),a=this.t,a>1||a==-1;case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?P(this.Cb,62):null}return EM(this,e-hO((eG(),i9)),_N((r=P(vF(this,16),29),r||i9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),yR(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?Lqe(this,n):this.Cb.Qh(this,-1-i,null,n))),DU(this,e,10,n)}return a=P(_N((r=P(vF(this,16),29),r||(eG(),i9)),t),69),a.uk().xk(this,BR(this),t-hO((eG(),i9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 9:return Ibe(this,n);case 10:return DU(this,null,10,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),i9)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),i9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0);case 10:return!!(this.Db>>16==10&&P(this.Cb,62))}return XA(this,e-hO((eG(),i9)),_N((t=P(vF(this,16),29),t||i9),e))},Q.fi=function(){return eG(),i9},L(LX,`EParameterImpl`,504),q(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},vfe),Q.Ih=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return iT(),!!(this.Bb&256);case 3:return iT(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return iT(),o=this.t,o>1||o==-1;case 7:return iT(),i=this.s,i>=1;case 8:return t?gB(this):this.r;case 9:return this.q;case 10:return iT(),(this.Bb&fZ)!=0;case 11:return iT(),(this.Bb&RX)!=0;case 12:return iT(),(this.Bb&IK)!=0;case 13:return this.j;case 14:return TH(this);case 15:return iT(),(this.Bb&mZ)!=0;case 16:return iT(),(this.Bb&EG)!=0;case 17:return Qk(this);case 18:return iT(),(this.Bb&IX)!=0;case 19:return iT(),a=jz(this),!!(a&&(a.Bb&IX)!=0);case 20:return iT(),(this.Bb&RK)!=0;case 21:return t?jz(this):this.b;case 22:return t?TRe(this):iAe(this);case 23:return!this.a&&(this.a=new Kw(P7,this,23)),this.a}return EM(this,e-hO((eG(),a9)),_N((r=P(vF(this,16),29),r||a9),e),t,n)},Q.Th=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&EO(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&EO(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&IK)!=0;case 13:return this.j!=null;case 14:return TH(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&EG)!=0;case 17:return!!Qk(this);case 18:return(this.Bb&IX)!=0;case 19:return r=jz(this),!!r&&(r.Bb&IX)!=0;case 20:return(this.Bb&RK)==0;case 21:return!!this.b;case 22:return!!iAe(this);case 23:return!!this.a&&this.a.i!=0}return XA(this,e-hO((eG(),a9)),_N((t=P(vF(this,16),29),t||a9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:TTe(this,VT(t));return;case 2:uL(this,xv(BT(t)));return;case 3:dL(this,xv(BT(t)));return;case 4:XN(this,P(t,15).a);return;case 5:ZN(this,P(t,15).a);return;case 8:HI(this,P(t,143));return;case 9:r=JB(this,P(t,87),null),r&&r.mj();return;case 10:DL(this,xv(BT(t)));return;case 11:kL(this,xv(BT(t)));return;case 12:OL(this,xv(BT(t)));return;case 13:Kse(this,VT(t));return;case 15:EL(this,xv(BT(t)));return;case 16:WL(this,xv(BT(t)));return;case 18:wTe(this,xv(BT(t)));return;case 20:HVe(this,xv(BT(t)));return;case 21:QFe(this,P(t,19));return;case 23:!this.a&&(this.a=new Kw(P7,this,23)),_W(this.a),!this.a&&(this.a=new Kw(P7,this,23)),gO(this.a,P(t,18));return}ZL(this,e-hO((eG(),a9)),_N((n=P(vF(this,16),29),n||a9),e),t)},Q.fi=function(){return eG(),a9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:M(this.Cb,88)&&PV(kj(P(this.Cb,88)),4),RP(this,null);return;case 2:uL(this,!0);return;case 3:dL(this,!0);return;case 4:XN(this,0);return;case 5:ZN(this,1);return;case 8:HI(this,null);return;case 9:n=JB(this,null,null),n&&n.mj();return;case 10:DL(this,!0);return;case 11:kL(this,!1);return;case 12:OL(this,!1);return;case 13:this.i=null,SP(this,null);return;case 15:EL(this,!1);return;case 16:WL(this,!1);return;case 18:VVe(this,!1),M(this.Cb,88)&&PV(kj(P(this.Cb,88)),2);return;case 20:HVe(this,!0);return;case 21:QFe(this,null);return;case 23:!this.a&&(this.a=new Kw(P7,this,23)),_W(this.a);return}lL(this,e-hO((eG(),a9)),_N((t=P(vF(this,16),29),t||a9),e))},Q.mi=function(){TRe(this),QO(UM((CV(),p9),this)),gB(this),this.Bb|=1},Q.sk=function(){return jz(this)},Q.Zk=function(){var e;return e=jz(this),!!e&&(e.Bb&IX)!=0},Q.$k=function(){return(this.Bb&IX)!=0},Q._k=function(){return(this.Bb&RK)!=0},Q.Wk=function(e,t){return this.c=null,HBe(this,e,t)},Q.Ib=function(){var e;return this.Db&64?iU(this):(e=new eT(iU(this)),e.a+=` (containment: `,Gy(e,(this.Bb&IX)!=0),e.a+=`, resolveProxies: `,Gy(e,(this.Bb&RK)!=0),e.a+=`)`,e.a)},L(LX,`EReferenceImpl`,103),q(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},Tl),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return lT(this)},Q.Ai=function(e){hve(this,VT(e))},Q.ld=function(e){return A_e(this,VT(e))},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return EM(this,e-hO((eG(),o9)),_N((r=P(vF(this,16),29),r||o9),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return XA(this,e-hO((eG(),o9)),_N((t=P(vF(this,16),29),t||o9),e))},Q.$h=function(e,t){var n;switch(e){case 0:gve(this,VT(t));return;case 1:PFe(this,VT(t));return}ZL(this,e-hO((eG(),o9)),_N((n=P(vF(this,16),29),n||o9),e),t)},Q.fi=function(){return eG(),o9},Q.hi=function(e){var t;switch(e){case 0:RFe(this,null);return;case 1:PFe(this,null);return}lL(this,e-hO((eG(),o9)),_N((t=P(vF(this,16),29),t||o9),e))},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:hI(e)),this.a},Q.zi=function(e){this.a=e},Q.Ib=function(){var e;return this.Db&64?uH(this):(e=new eT(uH(this)),e.a+=` (key: `,MC(e,this.b),e.a+=`, value: `,MC(e,this.c),e.a+=`)`,e.a)},Q.a=-1,Q.b=null,Q.c=null;var d9=L(LX,`EStringToStringMapEntryImpl`,550),YBt=aD(pZ,`FeatureMap/Entry/Internal`);q(562,1,kZ),Q.vl=function(e){return this.wl(P(e,52))},Q.wl=function(e){return this.vl(e)},Q.Fb=function(e){var t,n;return this===e?!0:M(e,75)?(t=P(e,75),t.Jk()==this.c&&(n=this.kd(),n==null?t.kd()==null:sL(n,t.kd()))):!1},Q.Jk=function(){return this.c},Q.Hb=function(){var e=this.kd();return IP(this.c)^(e==null?0:IP(e))},Q.Ib=function(){var e=this.c,t=FN(e.ok()).vi();return e.ve(),(t!=null&&t.length!=0?t+`:`+e.ve():e.ve())+`=`+this.kd()},L(LX,`EStructuralFeatureImpl/BasicFeatureMapEntry`,562),q(778,562,kZ,spe),Q.wl=function(e){return new spe(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return BIe(this,e,this.a,t,n)},Q.yl=function(e,t,n){return VIe(this,e,this.a,t,n)},L(LX,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,778),q(1305,1,{},Use),Q.wk=function(e,t,n,r,i){return P(SM(e,this.b),219).Wl(this.a).Dk(r)},Q.xk=function(e,t,n,r,i){return P(SM(e,this.b),219).Nl(this.a,r,i)},Q.yk=function(e,t,n,r,i){return P(SM(e,this.b),219).Ol(this.a,r,i)},Q.zk=function(e,t,n){return P(SM(e,this.b),219).Wl(this.a).Oj()},Q.Ak=function(e,t,n,r){P(SM(e,this.b),219).Wl(this.a).Wb(r)},Q.Bk=function(e,t,n){return P(SM(e,this.b),219).Wl(this.a)},Q.Ck=function(e,t,n){P(SM(e,this.b),219).Wl(this.a).Ek()},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1305),q(89,1,{},PE,uk,Tk,lj),Q.wk=function(e,t,n,r,i){var a=t.ii(n);if(a??t.ji(n,a=YW(this,e)),!i)switch(this.e){case 50:case 41:return P(a,587)._j();case 40:return P(a,219).Tl()}return a},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return o??t.ji(n,o=YW(this,e)),a=P(o,72).Uk(r,i),a},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return a!=null&&(i=P(a,72).Vk(r,i)),i},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&P(r,78).Oj()},Q.Ak=function(e,t,n,r){var i=P(t.ii(n),78);!i&&t.ji(n,i=YW(this,e)),i.Wb(r)},Q.Bk=function(e,t,n){var r,i=t.ii(n);return i??t.ji(n,i=YW(this,e)),M(i,78)?P(i,78):(r=P(t.ii(n),16),new xne(r))},Q.Ck=function(e,t,n){var r=P(t.ii(n),78);!r&&t.ji(n,r=YW(this,e)),r.Ek()},Q.b=0,Q.e=0,L(LX,`EStructuralFeatureImpl/InternalSettingDelegateMany`,89),q(499,1,{}),Q.xk=function(e,t,n,r,i){throw D(new Hg)},Q.yk=function(e,t,n,r,i){throw D(new Hg)},Q.Bk=function(e,t,n){return new FSe(this,e,t,n)};var f9;L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,499),q(1322,1,uht,FSe),Q.Dk=function(e){return this.a.wk(this.c,this.d,this.b,e,!0)},Q.Oj=function(){return this.a.zk(this.c,this.d,this.b)},Q.Wb=function(e){this.a.Ak(this.c,this.d,this.b,e)},Q.Ek=function(){this.a.Ck(this.c,this.d,this.b)},Q.b=0,L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1322),q(771,499,{},mwe),Q.wk=function(e,t,n,r,i){return hU(e,e.Mh(),e.Ch())==this.b?this._k()&&r?rH(e):e.Mh():null},Q.xk=function(e,t,n,r,i){var a,o;return e.Mh()&&(i=(a=e.Ch(),a>=0?e.xh(i):e.Mh().Qh(e,-1-a,null,i))),o=fR(e.Ah(),this.e),e.zh(r,o,i)},Q.yk=function(e,t,n,r,i){var a=fR(e.Ah(),this.e);return e.zh(null,a,i)},Q.zk=function(e,t,n){var r=fR(e.Ah(),this.e);return!!e.Mh()&&e.Ch()==r},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!MU(this.a,r))throw D(new gv(AZ+(M(r,57)?eYe(P(r,57).Ah()):OPe(CI(r)))+jZ+this.a+`'`));if(i=e.Mh(),o=fR(e.Ah(),this.e),j(r)!==j(i)||e.Ch()!=o&&r!=null){if(mB(e,P(r,57)))throw D(new _v(BX+e.Ib()));c=null,i&&(c=(a=e.Ch(),a>=0?e.xh(c):e.Mh().Qh(e,-1-a,null,c))),s=P(r,52),s&&(c=s.Oh(e,fR(s.Ah(),this.b),null,c)),c=e.zh(s,o,c),c&&c.mj()}else e.sh()&&e.th()&&uF(e,new WD(e,1,o,r,r))},Q.Ck=function(e,t,n){var r=e.Mh(),i,a,o;r?(o=(i=e.Ch(),i>=0?e.xh(null):e.Mh().Qh(e,-1-i,null,null)),a=fR(e.Ah(),this.e),o=e.zh(null,a,o),o&&o.mj()):e.sh()&&e.th()&&uF(e,new GD(e,1,this.e,null,null))},Q._k=function(){return!1},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,771),q(1306,771,{},Lge),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1306),q(560,499,{}),Q.wk=function(e,t,n,r,i){var a;return a=t.ii(n),a==null?this.b:j(a)===j(f9)?null:a},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&(j(r)===j(f9)||!sL(r,this.b))},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=(a=t.ii(n),a==null?this.b:j(a)===j(f9)?null:a),r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),uF(e,this.d.Al(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=(i=t.ii(n),i==null?this.b:j(i)===j(f9)?null:i),t.ki(n),uF(e,this.d.Al(e,1,this.e,r,this.b))):t.ki(n)},Q.zl=function(e){throw D(new Ig)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,560),q(MZ,1,{},El),Q.Al=function(e,t,n,r,i){return new GD(e,t,n,r,i)},Q.Bl=function(e,t,n,r,i,a){return new hCe(e,t,n,r,i,a)};var XBt,ZBt,QBt,$Bt,eVt,tVt,nVt,rVt,iVt;L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,MZ),q(1323,MZ,{},Dl),Q.Al=function(e,t,n,r,i){return new sAe(e,t,n,xv(BT(r)),xv(BT(i)))},Q.Bl=function(e,t,n,r,i,a){return new XEe(e,t,n,xv(BT(r)),xv(BT(i)),a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1323),q(1324,MZ,{},Ol),Q.Al=function(e,t,n,r,i){return new qPe(e,t,n,P(r,221).a,P(i,221).a)},Q.Bl=function(e,t,n,r,i,a){return new ZEe(e,t,n,P(r,221).a,P(i,221).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1324),q(1325,MZ,{},kl),Q.Al=function(e,t,n,r,i){return new JPe(e,t,n,P(r,180).a,P(i,180).a)},Q.Bl=function(e,t,n,r,i,a){return new QEe(e,t,n,P(r,180).a,P(i,180).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1325),q(1326,MZ,{},Al),Q.Al=function(e,t,n,r,i){return new lAe(e,t,n,O(N(r)),O(N(i)))},Q.Bl=function(e,t,n,r,i,a){return new $Ee(e,t,n,O(N(r)),O(N(i)),a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1326),q(1327,MZ,{},jl),Q.Al=function(e,t,n,r,i){return new ZPe(e,t,n,P(r,164).a,P(i,164).a)},Q.Bl=function(e,t,n,r,i,a){return new eDe(e,t,n,P(r,164).a,P(i,164).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1327),q(1328,MZ,{},Ml),Q.Al=function(e,t,n,r,i){return new cAe(e,t,n,P(r,15).a,P(i,15).a)},Q.Bl=function(e,t,n,r,i,a){return new tDe(e,t,n,P(r,15).a,P(i,15).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1328),q(1329,MZ,{},Nl),Q.Al=function(e,t,n,r,i){return new YPe(e,t,n,P(r,190).a,P(i,190).a)},Q.Bl=function(e,t,n,r,i,a){return new nDe(e,t,n,P(r,190).a,P(i,190).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1329),q(1330,MZ,{},Pl),Q.Al=function(e,t,n,r,i){return new XPe(e,t,n,P(r,191).a,P(i,191).a)},Q.Bl=function(e,t,n,r,i,a){return new rDe(e,t,n,P(r,191).a,P(i,191).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1330),q(1308,560,{},zSe),Q.zl=function(e){if(!this.a.dk(e))throw D(new gv(AZ+CI(e)+jZ+this.a+`'`))},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1308),q(1309,560,{},aye),Q.zl=function(e){},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1309),q(772,560,{}),Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=!0,a=t.ii(n),a==null?(i=!1,a=this.b):j(a)===j(f9)&&(a=null),r==null?this.c==null?t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),uF(e,this.d.Bl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=!0,i=t.ii(n),i==null?(r=!1,i=this.b):j(i)===j(f9)&&(i=null),t.ki(n),uF(e,this.d.Bl(e,2,this.e,i,this.b,r))):t.ki(n)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,772),q(1310,772,{},BSe),Q.zl=function(e){if(!this.a.dk(e))throw D(new gv(AZ+CI(e)+jZ+this.a+`'`))},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1310),q(1311,772,{},oye),Q.zl=function(e){},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1311),q(402,499,{},hD),Q.wk=function(e,t,n,r,i){var a,o,s,c,l=t.ii(n);if(this.rk()&&j(l)===j(f9))return null;if(this._k()&&r&&l!=null){if(s=P(l,52),s.Sh()&&(c=QI(e,s),s!=c)){if(!MU(this.a,c))throw D(new gv(AZ+CI(c)+jZ+this.a+`'`));t.ji(n,l=c),this.$k()&&(a=P(c,52),o=s.Qh(e,this.b?fR(s.Ah(),this.b):-1-fR(e.Ah(),this.e),null,null),!a.Mh()&&(o=a.Oh(e,this.b?fR(a.Ah(),this.b):-1-fR(e.Ah(),this.e),null,o)),o&&o.mj()),e.sh()&&e.th()&&uF(e,new GD(e,9,this.e,s,c))}return l}return l},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return j(o)===j(f9)&&(o=null),t.ji(n,r),this.Kj()?j(o)!==j(r)&&o!=null&&(a=P(o,52),i=a.Qh(e,fR(a.Ah(),this.b),null,i)):this.$k()&&o!=null&&(i=P(o,52).Qh(e,-1-fR(e.Ah(),this.e),null,i)),e.sh()&&e.th()&&(!i&&(i=new Fy(4)),i.lj(new GD(e,1,this.e,o,r))),i},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return j(a)===j(f9)&&(a=null),t.ki(n),e.sh()&&e.th()&&(!i&&(i=new Fy(4)),this.rk()?i.lj(new GD(e,2,this.e,a,null)):i.lj(new GD(e,1,this.e,a,null))),i},Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!MU(this.a,r))throw D(new gv(AZ+(M(r,57)?eYe(P(r,57).Ah()):OPe(CI(r)))+jZ+this.a+`'`));c=t.ii(n),s=c!=null,this.rk()&&j(c)===j(f9)&&(c=null),o=null,this.Kj()?j(c)!==j(r)&&(c!=null&&(i=P(c,52),o=i.Qh(e,fR(i.Ah(),this.b),null,o)),r!=null&&(i=P(r,52),o=i.Oh(e,fR(i.Ah(),this.b),null,o))):this.$k()&&j(c)!==j(r)&&(c!=null&&(o=P(c,52).Qh(e,-1-fR(e.Ah(),this.e),null,o)),r!=null&&(o=P(r,52).Oh(e,-1-fR(e.Ah(),this.e),null,o))),r==null&&this.rk()?t.ji(n,f9):t.ji(n,r),e.sh()&&e.th()?(a=new hCe(e,1,this.e,c,r,this.rk()&&!s),o?(o.lj(a),o.mj()):uF(e,a)):o&&o.mj()},Q.Ck=function(e,t,n){var r,i,a,o,s=t.ii(n);o=s!=null,this.rk()&&j(s)===j(f9)&&(s=null),a=null,s!=null&&(this.Kj()?(r=P(s,52),a=r.Qh(e,fR(r.Ah(),this.b),null,a)):this.$k()&&(a=P(s,52).Qh(e,-1-fR(e.Ah(),this.e),null,a))),t.ki(n),e.sh()&&e.th()?(i=new hCe(e,this.rk()?2:1,this.e,s,null,o),a?(a.lj(i),a.mj()):uF(e,i)):a&&a.mj()},Q.Kj=function(){return!1},Q.$k=function(){return!1},Q._k=function(){return!1},Q.rk=function(){return!1},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,402),q(561,402,{},LT),Q.$k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,561),q(1314,561,{},ofe),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1314),q(774,561,{},sfe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,774),q(1316,774,{},cfe),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1316),q(639,561,{},Rge),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,639),q(1315,639,{},Vge),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1315),q(775,639,{},Hge),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,775),q(1317,775,{},Uge),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1317),q(640,402,{},ife),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,640),q(1318,640,{},lfe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1318),q(776,640,{},zge),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,776),q(1319,776,{},Wge),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1319),q(1312,402,{},afe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1312),q(773,402,{},Bge),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,773),q(1313,773,{},Gge),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1313),q(777,562,kZ,mxe),Q.wl=function(e){return new mxe(this.a,this.c,e)},Q.kd=function(){return this.b},Q.xl=function(e,t,n){return kje(this,e,this.b,n)},Q.yl=function(e,t,n){return Aje(this,e,this.b,n)},L(LX,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,777),q(1320,1,uht,xne),Q.Dk=function(e){return this.a},Q.Oj=function(){return M(this.a,98)?P(this.a,98).Oj():!this.a.dc()},Q.Wb=function(e){this.a.$b(),this.a.Fc(P(e,16))},Q.Ek=function(){M(this.a,98)?P(this.a,98).Ek():this.a.$b()},L(LX,`EStructuralFeatureImpl/SettingMany`,1320),q(1321,562,kZ,lke),Q.vl=function(e){return new aE((SW(),A9),this.b.oi(this.a,e))},Q.kd=function(){return null},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},L(LX,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1321),q(641,562,kZ,aE),Q.vl=function(e){return new aE(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},L(LX,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,641),q(396,492,rZ,Fl),Q.$i=function(e){return V(I7,fG,29,e,0,1)},Q.Wi=function(){return!1},L(LX,`ESuperAdapter/1`,396),q(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},Il),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new _D(this,z7,this)),this.a}return EM(this,e-hO((eG(),s9)),_N((r=P(vF(this,16),29),r||s9),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),_z(this.Ab,e,n);case 2:return!this.a&&(this.a=new _D(this,z7,this)),_z(this.a,e,n)}return i=P(_N((r=P(vF(this,16),29),r||(eG(),s9)),t),69),i.uk().yk(this,BR(this),t-hO((eG(),s9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return XA(this,e-hO((eG(),s9)),_N((t=P(vF(this,16),29),t||s9),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),gO(this.Ab,P(t,18));return;case 1:RP(this,VT(t));return;case 2:!this.a&&(this.a=new _D(this,z7,this)),_W(this.a),!this.a&&(this.a=new _D(this,z7,this)),gO(this.a,P(t,18));return}ZL(this,e-hO((eG(),s9)),_N((n=P(vF(this,16),29),n||s9),e),t)},Q.fi=function(){return eG(),s9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),_W(this.Ab);return;case 1:RP(this,null);return;case 2:!this.a&&(this.a=new _D(this,z7,this)),_W(this.a);return}lL(this,e-hO((eG(),s9)),_N((t=P(vF(this,16),29),t||s9),e))},L(LX,`ETypeParameterImpl`,446),q(447,81,CZ,_D),Q.Lj=function(e,t){return cXe(this,P(e,87),t)},Q.Mj=function(e,t){return lXe(this,P(e,87),t)},L(LX,`ETypeParameterImpl/1`,447),q(638,44,JK,P_),Q.ec=function(){return new pg(this)},L(LX,`ETypeParameterImpl/2`,638),q(557,SG,CG,pg),Q.Ec=function(e){return Vpe(this,P(e,87))},Q.Fc=function(e){var t,n,r=!1;for(n=e.Jc();n.Ob();)t=P(n.Pb(),87),WO(this.a,t,``)??(r=!0);return r},Q.$b=function(){rO(this.a)},Q.Gc=function(e){return XD(this.a,e)},Q.Jc=function(){var e;return e=new sF(new rm(this.a).a),new mg(e)},Q.Kc=function(e){return zAe(this,e)},Q.gc=function(){return bb(this.a)},L(LX,`ETypeParameterImpl/2/1`,557),q(558,1,vG,mg),Q.Nb=function(e){QD(this,e)},Q.Pb=function(){return P(CP(this.a).jd(),87)},Q.Ob=function(){return this.a.b},Q.Qb=function(){aNe(this.a)},L(LX,`ETypeParameterImpl/2/1/1`,558),q(1282,44,JK,pre),Q._b=function(e){return SC(e)?wCe(this,e):!!CD(this.f,e)},Q.xc=function(e){var t=SC(e)?zk(this,e):wC(CD(this.f,e)),n;return M(t,836)?(n=P(t,836),t=n.Ik(),WO(this,P(e,241),t),t):t??(e==null?(ox(),fVt):null)},L(LX,`EValidatorRegistryImpl`,1282),q(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},Ll),Q.oi=function(e,t){switch(e.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:QL(t);case 25:return TPe(t);case 27:return hMe(t);case 28:return gMe(t);case 29:return t==null?null:Ble(h7[0],P(t,205));case 41:return t==null?``:qy(P(t,298));case 42:return QL(t);case 50:return VT(t);default:throw D(new _v(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;switch(e.G==-1&&(e.G=(f=FN(e),f?wz(f.si(),e):-1)),e.G){case 0:return n=new k_,n;case 1:return t=new gl,t;case 2:return r=new Df,r;case 4:return i=new Gg,i;case 5:return a=new fre,a;case 6:return o=new Lne,o;case 7:return s=new Ef,s;case 10:return l=new ml,l;case 11:return u=new j_,u;case 12:return d=new fCe,d;case 13:return p=new N_,p;case 14:return m=new vfe,m;case 17:return h=new Tl,h;case 18:return c=new Sg,c;case 19:return g=new Il,g;default:throw D(new _v(Mpt+e.zb+HX))}},Q.qi=function(e,t){switch(e.fk()){case 20:return t==null?null:new Sie(t);case 21:return t==null?null:new fw(t);case 23:case 22:return t==null?null:VUe(t);case 26:case 24:return t==null?null:QM(wU(t,-128,127)<<24>>24);case 25:return b2e(t);case 27:return RKe(t);case 28:return zKe(t);case 29:return zXe(t);case 32:case 31:return t==null?null:lV(t);case 38:case 37:return t==null?null:new n_(t);case 40:case 39:return t==null?null:G(wU(t,JG,sG));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:UR(LW(t));case 49:case 48:return t==null?null:eL(wU(t,PZ,32767)<<16>>16);case 50:return t;default:throw D(new _v(VX+e.ve()+HX))}},L(LX,`EcoreFactoryImpl`,1304),q(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},Hxe),Q.gb=!1,Q.hb=!1;var aVt,oVt=!1;L(LX,`EcorePackageImpl`,549),q(1200,1,{836:1},Rl),Q.Ik=function(){return Oue(),pVt},L(LX,`EcorePackageImpl/1`,1200),q(1209,1,RZ,zl),Q.dk=function(e){return M(e,158)},Q.ek=function(e){return V(o7,fG,158,e,0,1)},L(LX,`EcorePackageImpl/10`,1209),q(1210,1,RZ,Bl),Q.dk=function(e){return M(e,197)},Q.ek=function(e){return V(Vzt,fG,197,e,0,1)},L(LX,`EcorePackageImpl/11`,1210),q(1211,1,RZ,Vl),Q.dk=function(e){return M(e,57)},Q.ek=function(e){return V(Q5,fG,57,e,0,1)},L(LX,`EcorePackageImpl/12`,1211),q(1212,1,RZ,Hl),Q.dk=function(e){return M(e,403)},Q.ek=function(e){return V(B7,mht,62,e,0,1)},L(LX,`EcorePackageImpl/13`,1212),q(1213,1,RZ,Ul),Q.dk=function(e){return M(e,241)},Q.ek=function(e){return V(c7,fG,241,e,0,1)},L(LX,`EcorePackageImpl/14`,1213),q(1214,1,RZ,Wl),Q.dk=function(e){return M(e,504)},Q.ek=function(e){return V(H7,fG,2081,e,0,1)},L(LX,`EcorePackageImpl/15`,1214),q(1215,1,RZ,Gl),Q.dk=function(e){return M(e,103)},Q.ek=function(e){return V(U7,SZ,19,e,0,1)},L(LX,`EcorePackageImpl/16`,1215),q(1216,1,RZ,Kl),Q.dk=function(e){return M(e,179)},Q.ek=function(e){return V(N7,SZ,179,e,0,1)},L(LX,`EcorePackageImpl/17`,1216),q(1217,1,RZ,ql),Q.dk=function(e){return M(e,470)},Q.ek=function(e){return V(M7,fG,470,e,0,1)},L(LX,`EcorePackageImpl/18`,1217),q(1218,1,RZ,Jl),Q.dk=function(e){return M(e,550)},Q.ek=function(e){return V(d9,Xmt,550,e,0,1)},L(LX,`EcorePackageImpl/19`,1218),q(1201,1,RZ,Yl),Q.dk=function(e){return M(e,335)},Q.ek=function(e){return V(P7,SZ,38,e,0,1)},L(LX,`EcorePackageImpl/2`,1201),q(1219,1,RZ,Xl),Q.dk=function(e){return M(e,248)},Q.ek=function(e){return V(z7,ght,87,e,0,1)},L(LX,`EcorePackageImpl/20`,1219),q(1220,1,RZ,Zl),Q.dk=function(e){return M(e,446)},Q.ek=function(e){return V(W7,fG,835,e,0,1)},L(LX,`EcorePackageImpl/21`,1220),q(1221,1,RZ,Ql),Q.dk=function(e){return bC(e)},Q.ek=function(e){return V(bQ,X,473,e,8,1)},L(LX,`EcorePackageImpl/22`,1221),q(1222,1,RZ,$l),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(LX,`EcorePackageImpl/23`,1222),q(1223,1,RZ,eu),Q.dk=function(e){return M(e,221)},Q.ek=function(e){return V(xQ,X,221,e,0,1)},L(LX,`EcorePackageImpl/24`,1223),q(1224,1,RZ,tu),Q.dk=function(e){return M(e,180)},Q.ek=function(e){return V(SQ,X,180,e,0,1)},L(LX,`EcorePackageImpl/25`,1224),q(1225,1,RZ,nu),Q.dk=function(e){return M(e,205)},Q.ek=function(e){return V(gQ,X,205,e,0,1)},L(LX,`EcorePackageImpl/26`,1225),q(1226,1,RZ,ru),Q.dk=function(e){return!1},Q.ek=function(e){return V(cHt,fG,2177,e,0,1)},L(LX,`EcorePackageImpl/27`,1226),q(1227,1,RZ,iu),Q.dk=function(e){return xC(e)},Q.ek=function(e){return V(CQ,X,346,e,7,1)},L(LX,`EcorePackageImpl/28`,1227),q(1228,1,RZ,au),Q.dk=function(e){return M(e,61)},Q.ek=function(e){return V(sBt,Eq,61,e,0,1)},L(LX,`EcorePackageImpl/29`,1228),q(1202,1,RZ,ou),Q.dk=function(e){return M(e,505)},Q.ek=function(e){return V(j7,{3:1,4:1,5:1,1998:1},588,e,0,1)},L(LX,`EcorePackageImpl/3`,1202),q(1229,1,RZ,su),Q.dk=function(e){return M(e,568)},Q.ek=function(e){return V(hBt,fG,2004,e,0,1)},L(LX,`EcorePackageImpl/30`,1229),q(1230,1,RZ,cu),Q.dk=function(e){return M(e,163)},Q.ek=function(e){return V(dVt,Eq,163,e,0,1)},L(LX,`EcorePackageImpl/31`,1230),q(1231,1,RZ,lu),Q.dk=function(e){return M(e,75)},Q.ek=function(e){return V(c9,Dht,75,e,0,1)},L(LX,`EcorePackageImpl/32`,1231),q(1232,1,RZ,uu),Q.dk=function(e){return M(e,164)},Q.ek=function(e){return V(wQ,X,164,e,0,1)},L(LX,`EcorePackageImpl/33`,1232),q(1233,1,RZ,du),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(LX,`EcorePackageImpl/34`,1233),q(1234,1,RZ,fu),Q.dk=function(e){return M(e,298)},Q.ek=function(e){return V(Agt,fG,298,e,0,1)},L(LX,`EcorePackageImpl/35`,1234),q(1235,1,RZ,pu),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(LX,`EcorePackageImpl/36`,1235),q(1236,1,RZ,mu),Q.dk=function(e){return M(e,92)},Q.ek=function(e){return V(Ngt,fG,92,e,0,1)},L(LX,`EcorePackageImpl/37`,1236),q(1237,1,RZ,hu),Q.dk=function(e){return M(e,589)},Q.ek=function(e){return V(sVt,fG,589,e,0,1)},L(LX,`EcorePackageImpl/38`,1237),q(1238,1,RZ,gu),Q.dk=function(e){return!1},Q.ek=function(e){return V(lHt,fG,2178,e,0,1)},L(LX,`EcorePackageImpl/39`,1238),q(1203,1,RZ,_u),Q.dk=function(e){return M(e,88)},Q.ek=function(e){return V(I7,fG,29,e,0,1)},L(LX,`EcorePackageImpl/4`,1203),q(1239,1,RZ,vu),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(LX,`EcorePackageImpl/40`,1239),q(1240,1,RZ,yu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(LX,`EcorePackageImpl/41`,1240),q(1241,1,RZ,bu),Q.dk=function(e){return M(e,586)},Q.ek=function(e){return V(lBt,fG,586,e,0,1)},L(LX,`EcorePackageImpl/42`,1241),q(1242,1,RZ,xu),Q.dk=function(e){return!1},Q.ek=function(e){return V(uHt,X,2179,e,0,1)},L(LX,`EcorePackageImpl/43`,1242),q(1243,1,RZ,Su),Q.dk=function(e){return M(e,45)},Q.ek=function(e){return V(dQ,PG,45,e,0,1)},L(LX,`EcorePackageImpl/44`,1243),q(1204,1,RZ,Cu),Q.dk=function(e){return M(e,143)},Q.ek=function(e){return V(F7,fG,143,e,0,1)},L(LX,`EcorePackageImpl/5`,1204),q(1205,1,RZ,wu),Q.dk=function(e){return M(e,159)},Q.ek=function(e){return V(kBt,fG,159,e,0,1)},L(LX,`EcorePackageImpl/6`,1205),q(1206,1,RZ,Tu),Q.dk=function(e){return M(e,459)},Q.ek=function(e){return V(L7,fG,675,e,0,1)},L(LX,`EcorePackageImpl/7`,1206),q(1207,1,RZ,Eu),Q.dk=function(e){return M(e,568)},Q.ek=function(e){return V(R7,fG,684,e,0,1)},L(LX,`EcorePackageImpl/8`,1207),q(1208,1,RZ,Du),Q.dk=function(e){return M(e,469)},Q.ek=function(e){return V(s7,fG,469,e,0,1)},L(LX,`EcorePackageImpl/9`,1208),q(1020,2045,Jmt,Fre),Q.Ki=function(e,t){KBe(this,P(t,415))},Q.Oi=function(e,t){GQe(this,e,P(t,415))},L(LX,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1020),q(1021,151,uZ,hxe),Q.hj=function(){return this.a.a},L(LX,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1021),q(1048,1047,{},hle),L(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1048);var sVt=aD(Oht,`Resource`);q(787,1486,kht),Q.Fl=function(e){},Q.Gl=function(e){},Q.Cl=function(){return!this.a&&(this.a=new gg(this)),this.a},Q.Dl=function(e){var t,n,r=e.length,i,a;if(r>0){if(gA(0,e.length),e.charCodeAt(0)==47){for(a=new dM(4),i=1,t=1;t<r;++t)gA(t,e.length),e.charCodeAt(t)==47&&(Vw(a,i==t?``:(cM(i,t,e.length),e.substr(i,t-i))),i=t+1);return Vw(a,(gA(i,e.length+1),e.substr(i))),cJe(this,a)}gA(r-1,e.length),e.charCodeAt(r-1)==63&&(n=zpe(e,XB(63),r-2),n>0&&(e=(cM(0,n,e.length),e.substr(0,n))))}return t1e(this,e)},Q.El=function(){return this.c},Q.Ib=function(){var e;return qy(this.Pm)+`@`+(e=IP(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},Q.b=!1,L(Aht,`ResourceImpl`,787),q(1487,787,kht,wne),L(Aht,`BinaryResourceImpl`,1487),q(1160,697,lmt),Q._i=function(e){return M(e,57)?RCe(this,P(e,57)):M(e,589)?new Jw(P(e,589).Cl()):j(e)===j(this.f)?P(e,18).Jc():(YT(),E7.a)},Q.Ob=function(){return I1e(this)},Q.a=!1,L(pZ,`EcoreUtil/ContentTreeIterator`,1160),q(1488,1160,lmt,Jye),Q._i=function(e){return j(e)===j(this.f)?P(e,16).Jc():new GDe(P(e,57))},L(Aht,`ResourceImpl/5`,1488),q(648,2057,hht,gg),Q.Gc=function(e){return this.i<=4?CB(this,e):M(e,52)&&P(e,52).Gh()==this.a},Q.Ki=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},Q.Mi=function(e,t){e==0?this.a.b||(this.a.b=!0):oM(this,e,t)},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Jj=function(){return 2},Q.hj=function(){return this.a},Q.Kj=function(){return!0},Q.Lj=function(e,t){return t=P(e,52).ci(this.a,t),t},Q.Mj=function(e,t){return P(e,52).ci(null,t)},Q.Nj=function(){return!1},Q.Qi=function(){return!0},Q.$i=function(e){return V(Q5,fG,57,e,0,1)},Q.Wi=function(){return!1},L(Aht,`ResourceImpl/ContentsEList`,648),q(954,2027,UG,Tne),Q.dd=function(e){return this.a.Ii(e)},Q.gc=function(){return this.a.gc()},L(pZ,`AbstractSequentialInternalEList/1`,954);var cVt,lVt,p9,uVt;q(626,1,{},w_e);var m9,h9;L(pZ,`BasicExtendedMetaData`,626),q(1151,1,{},Wse),Q.Hl=function(){return null},Q.Il=function(){return this.a==-2&&xee(this,DXe(this.d,this.b)),this.a},Q.Jl=function(){return null},Q.Kl=function(){return fk(),fk(),IQ},Q.ve=function(){return this.c==qZ&&See(this,iWe(this.d,this.b)),this.c},Q.Ll=function(){return 0},Q.a=-2,Q.c=qZ,L(pZ,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1151),q(1152,1,{},aDe),Q.Hl=function(){return this.a==(Yj(),m9)&&qp(this,G8e(this.f,this.b)),this.a},Q.Il=function(){return 0},Q.Jl=function(){return this.c==(Yj(),m9)&&Cee(this,K8e(this.f,this.b)),this.c},Q.Kl=function(){return!this.d&&Tee(this,K9e(this.f,this.b)),this.d},Q.ve=function(){return this.e==qZ&&Dee(this,iWe(this.f,this.b)),this.e},Q.Ll=function(){return this.g==-2&&kee(this,MYe(this.f,this.b)),this.g},Q.e=qZ,Q.g=-2,L(pZ,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1152),q(1150,1,{},Gse),Q.b=!1,Q.c=!1,L(pZ,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1150),q(1153,1,{},oDe),Q.c=-2,Q.e=qZ,Q.f=qZ,L(pZ,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1153),q(582,624,CZ,GE),Q.Jj=function(){return this.c},Q.ml=function(){return!1},Q.Ui=function(e,t){return t},Q.c=0,L(pZ,`EDataTypeEList`,582);var dVt=aD(pZ,`FeatureMap`);q(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},oF),Q._c=function(e,t){r3e(this,e,P(t,75))},Q.Ec=function(e){return o4e(this,P(e,75))},Q.Fi=function(e){Rbe(this,P(e,75))},Q.Lj=function(e,t){return cme(this,P(e,75),t)},Q.Mj=function(e,t){return lme(this,P(e,75),t)},Q.Ri=function(e,t){return h7e(this,e,t)},Q.Ui=function(e,t){return Fnt(this,e,P(t,75))},Q.fd=function(e,t){return o6e(this,e,P(t,75))},Q.Sj=function(e,t){return ume(this,P(e,75),t)},Q.Tj=function(e,t){return dme(this,P(e,75),t)},Q.Uj=function(e,t,n){return oYe(this,P(e,75),P(t,75),n)},Q.Xi=function(e,t){return VB(this,e,P(t,75))},Q.Ml=function(e,t){return J5e(this,e,t)},Q.ad=function(e,t){var n,r,i,a,o,s,c,l=new CN(t.gc()),u;for(i=t.Jc();i.Ob();)if(r=P(i.Pb(),75),a=r.Jk(),HH(this.e,a))(!a.Qi()||!tj(this,a,r.kd())&&!CB(l,r))&&pM(l,r);else{for(u=zH(this.e.Ah(),a),n=P(this.g,122),o=!0,s=0;s<this.i;++s)if(c=n[s],u.$l(c.Jk())){P(Cz(this,s,r),75),o=!1;break}o&&pM(l,r)}return gRe(this,e,l)},Q.Fc=function(e){var t,n,r,i,a,o,s,c=new CN(e.gc()),l;for(r=e.Jc();r.Ob();)if(n=P(r.Pb(),75),i=n.Jk(),HH(this.e,i))(!i.Qi()||!tj(this,i,n.kd())&&!CB(c,n))&&pM(c,n);else{for(l=zH(this.e.Ah(),i),t=P(this.g,122),a=!0,o=0;o<this.i;++o)if(s=t[o],l.$l(s.Jk())){P(Cz(this,o,n),75),a=!1;break}a&&pM(c,n)}return gO(this,c)},Q.Di=function(e){return this.j=-1,PU(this,this.i,e)},Q.Nl=function(e,t,n){return Z8e(this,e,t,n)},Q.Vk=function(e,t){return vU(this,e,t)},Q.Ol=function(e,t,n){return Bet(this,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return tW(this,e,t)},Q.Rl=function(e){return P(H(this,e),75).Jk()},Q.Sl=function(e){return P(H(this,e),75).kd()},Q.Tl=function(){return this.b},Q.Kj=function(){return!0},Q.Rj=function(){return!0},Q.Ul=function(e){return!_R(this,e)},Q.$i=function(e){return V(YBt,Dht,344,e,0,1)},Q.nl=function(e){return RT(this,e)},Q.Wb=function(e){sO(this,e)},Q.Vl=function(e,t){sW(this,e,t)},Q.Wl=function(e){return BFe(this,e)},Q.Xl=function(e){fKe(this,e)},L(pZ,`BasicFeatureMap`,76),q(1925,1,wG),Q.Nb=function(e){QD(this,e)},Q.Rb=function(e){if(this.g==-1)throw D(new Bg);AD(this);try{g6e(this.e,this.b,this.a,e),this.d=this.e.j,bz(this)}catch(e){throw e=HF(e),M(e,99)?D(new Lg):D(e)}},Q.Ob=function(){return xI(this)},Q.Sb=function(){return bze(this)},Q.Pb=function(){return bz(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(bze(this))return AD(this),this.g=--this.a,this.sl()&&(e=HV(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw D(new Ug)},Q.Vb=function(){return this.a-1},Q.Qb=function(){if(this.g==-1)throw D(new Bg);AD(this);try{cQe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=HF(e),M(e,99)?D(new Lg):D(e)}},Q.sl=function(){return!1},Q.Wb=function(e){if(this.g==-1)throw D(new Bg);AD(this);try{Z9e(this.e,this.b,this.g,e),this.d=this.e.j}catch(e){throw e=HF(e),M(e,99)?D(new Lg):D(e)}},Q.a=0,Q.c=0,Q.d=0,Q.f=!1,Q.g=0,Q.i=0,L(pZ,`FeatureMapUtil/BasicFeatureEIterator`,1925),q(412,1925,wG,wF),Q.Yl=function(){var e,t,n=this.e.i;for(e=P(this.e.g,122);this.c<n;){if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},Q.Zl=function(){for(var e=P(this.e.g,122),t;--this.c>=0;)if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},L(pZ,`BasicFeatureMap/FeatureEIterator`,412),q(666,412,wG,UC),Q.sl=function(){return!0},L(pZ,`BasicFeatureMap/ResolvingFeatureEIterator`,666),q(952,482,DZ,Qle),Q.nj=function(){return this},L(pZ,`EContentsEList/1`,952),q(953,482,DZ,_ce),Q.sl=function(){return!1},L(pZ,`EContentsEList/2`,953),q(951,287,OZ,$le),Q.ul=function(e){},Q.Ob=function(){return!1},Q.Sb=function(){return!1},L(pZ,`EContentsEList/FeatureIteratorImpl/1`,951),q(825,582,CZ,_ue),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.a,this.a=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EDataTypeEList/Unsettable`,825),q(1923,582,CZ,vue),Q.Qi=function(){return!0},L(pZ,`EDataTypeUniqueEList`,1923),q(1924,825,CZ,yue),Q.Qi=function(){return!0},L(pZ,`EDataTypeUniqueEList/Unsettable`,1924),q(145,81,CZ,Gw),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectContainmentEList/Resolving`,145),q(1154,544,CZ,bue),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectContainmentEList/Unsettable/Resolving`,1154),q(753,14,CZ,wpe),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.a,this.a=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectContainmentWithInverseEList/Unsettable`,753),q(1188,753,CZ,Tpe),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1188),q(745,491,CZ,xue),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.a,this.a=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectEList/Unsettable`,745),q(339,491,CZ,Kw),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectResolvingEList`,339),q(1828,745,CZ,Sue),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectResolvingEList/Unsettable`,1828),q(1489,1,{},Ou);var fVt;L(pZ,`EObjectValidator`,1489),q(548,491,CZ,KD),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.Kj=function(){return!0},Q.kl=function(){return!0},Q.b=0,L(pZ,`EObjectWithInverseEList`,548),q(1191,548,CZ,Epe),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseEList/ManyInverse`,1191),q(627,548,CZ,dE),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.a,this.a=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectWithInverseEList/Unsettable`,627),q(1190,627,CZ,Dpe),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseEList/Unsettable/ManyInverse`,1190),q(754,548,CZ,Ope),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectWithInverseResolvingEList`,754),q(33,754,CZ,fE),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseResolvingEList/ManyInverse`,33),q(755,627,CZ,kpe),Q.ll=function(){return!0},Q.Ui=function(e,t){return eH(this,e,P(t,57))},L(pZ,`EObjectWithInverseResolvingEList/Unsettable`,755),q(1189,755,CZ,Ape),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1189),q(1155,624,CZ),Q.Ji=function(){return!(this.b&1792)},Q.Li=function(){this.b|=1},Q.il=function(){return!!(this.b&4)},Q.Kj=function(){return!!(this.b&40)},Q.jl=function(){return!!(this.b&16)},Q.kl=function(){return!!(this.b&8)},Q.ll=function(){return(this.b&RX)!=0},Q.$k=function(){return!!(this.b&32)},Q.ml=function(){return(this.b&fZ)!=0},Q.dk=function(e){return this.d?LOe(this.d,e):this.Jk().Fk().dk(e)},Q.Oj=function(){return this.b&2?!!(this.b&1):this.i!=0},Q.Qi=function(){return!!(this.b&128)},Q.Ek=function(){var e;_W(this),this.b&2&&(tw(this.e)?(e=!!(this.b&1),this.b&=-2,e_(this,new jj(this.e,2,fR(this.e.Ah(),this.Jk()),e,!1))):this.b&=-2)},Q.Wi=function(){return!(this.b&1536)},Q.b=0,L(pZ,`EcoreEList/Generic`,1155),q(1156,1155,CZ,mCe),Q.Jk=function(){return this.a},L(pZ,`EcoreEList/Dynamic`,1156),q(752,67,rZ,Ene),Q.$i=function(e){return $N(this.a.a,e)},L(pZ,`EcoreEMap/1`,752),q(751,81,CZ,Xye),Q.Ki=function(e,t){Mz(this.b,P(t,136))},Q.Mi=function(e,t){dLe(this.b)},Q.Ni=function(e,t,n){var r;++(r=this.b,P(t,136),r).e},Q.Oi=function(e,t){TL(this.b,P(t,136))},Q.Pi=function(e,t,n){TL(this.b,P(n,136)),j(n)===j(t)&&P(n,136).zi(ole(P(t,136).jd())),Mz(this.b,P(t,136))},L(pZ,`EcoreEMap/DelegateEObjectContainmentEList`,751),q(1186,142,dht,sFe),L(pZ,`EcoreEMap/Unsettable`,1186),q(1187,751,CZ,jpe),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;_W(this),tw(this.e)?(e=this.a,this.a=!1,uF(this.e,new jj(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1187),q(1159,223,JK,Vbe),Q.a=!1,Q.b=!1,L(pZ,`EcoreUtil/Copier`,1159),q(747,1,vG,GDe),Q.Nb=function(e){QD(this,e)},Q.Ob=function(){return lUe(this)},Q.Pb=function(){var e;return lUe(this),e=this.b,this.b=null,e},Q.Qb=function(){this.a.Qb()},L(pZ,`EcoreUtil/ProperContentIterator`,747),q(1490,1489,{},kf);var pVt;L(pZ,`EcoreValidator`,1490);var mVt;aD(pZ,`FeatureMapUtil/Validator`),q(1260,1,{2006:1},ku),Q.$l=function(e){return!0},L(pZ,`FeatureMapUtil/1`,1260),q(760,1,{2006:1},vit),Q.$l=function(e){var t;return this.c==e||(t=BT(SO(this.a,e)),t==null?t5e(this,e)?(bAe(this.a,e,(iT(),yQ)),!0):(bAe(this.a,e,(iT(),vQ)),!1):t==(iT(),yQ))},Q.e=!1;var hVt;L(pZ,`FeatureMapUtil/BasicValidator`,760),q(761,44,JK,rue),L(pZ,`FeatureMapUtil/BasicValidator/Cache`,761),q(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},DC),Q._c=function(e,t){g6e(this.c,this.b,e,t)},Q.Ec=function(e){return J5e(this.c,this.b,e)},Q.ad=function(e,t){return stt(this.c,this.b,e,t)},Q.Fc=function(e){return jw(this,e)},Q.Ei=function(e,t){lPe(this.c,this.b,e,t)},Q.Uk=function(e,t){return Z8e(this.c,this.b,e,t)},Q.Yi=function(e){return nW(this.c,this.b,e,!1)},Q.Gi=function(){return Kce(this.c,this.b)},Q.Hi=function(){return qce(this.c,this.b)},Q.Ii=function(e){return jje(this.c,this.b,e)},Q.Vk=function(e,t){return Zfe(this,e,t)},Q.$b=function(){t_(this)},Q.Gc=function(e){return tj(this.c,this.b,e)},Q.Hc=function(e){return RIe(this.c,this.b,e)},Q.Xb=function(e){return nW(this.c,this.b,e,!0)},Q.Dk=function(e){return this},Q.bd=function(e){return XOe(this.c,this.b,e)},Q.dc=function(){return yC(this)},Q.Oj=function(){return!_R(this.c,this.b)},Q.Jc=function(){return _Ne(this.c,this.b)},Q.cd=function(){return vNe(this.c,this.b)},Q.dd=function(e){return EVe(this.c,this.b,e)},Q.Ri=function(e,t){return y9e(this.c,this.b,e,t)},Q.Si=function(e,t){Ije(this.c,this.b,e,t)},Q.ed=function(e){return cQe(this.c,this.b,e)},Q.Kc=function(e){return B5e(this.c,this.b,e)},Q.fd=function(e,t){return Z9e(this.c,this.b,e,t)},Q.Wb=function(e){$V(this.c,this.b),jw(this,P(e,16))},Q.gc=function(){return DVe(this.c,this.b)},Q.Nc=function(){return cDe(this.c,this.b)},Q.Oc=function(e){return ZOe(this.c,this.b,e)},Q.Ib=function(){var e,t=new Kv;for(t.a+=`[`,e=Kce(this.c,this.b);xI(e);)MC(t,$w(bz(e))),xI(e)&&(t.a+=dG);return t.a+=`]`,t.a},Q.Ek=function(){$V(this.c,this.b)},L(pZ,`FeatureMapUtil/FeatureEList`,495),q(635,39,uZ,pj),Q.fj=function(e){return pL(this,e)},Q.kj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0;break;case 3:if(i=e.ej(),i===3&&(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null)))return this.d=5,t=new CN(2),pM(t,this.g),pM(t,e.gj()),this.g=t,!0;break;case 5:if(i=e.ej(),i===3&&(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null)))return n=P(this.g,18),n.Ec(e.gj()),!0;break;case 4:switch(i=e.ej(),i){case 3:if(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null))return this.d=1,this.g=e.gj(),!0;break;case 4:if(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null))return this.d=6,s=new CN(2),pM(s,this.n),pM(s,e.ij()),this.n=s,o=U(k(q9,1),hK,30,15,[this.o,e.jj()]),this.g=o,!0}break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.c)&&pL(this,null)==e.fj(null)))return n=P(this.n,18),n.Ec(e.ij()),o=P(this.g,54),r=V(q9,hK,30,o.length+1,15,1),FU(o,0,r,0,o.length),r[o.length]=e.jj(),this.g=r,!0}return!1},L(pZ,`FeatureMapUtil/FeatureENotificationImpl`,635),q(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},nD),Q.Ml=function(e,t){return J5e(this.c,e,t)},Q.Nl=function(e,t,n){return Z8e(this.c,e,t,n)},Q.Ol=function(e,t,n){return Bet(this.c,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return tW(this.c,e,t)},Q.Rl=function(e){return P(nW(this.c,this.b,e,!1),75).Jk()},Q.Sl=function(e){return P(nW(this.c,this.b,e,!1),75).kd()},Q.Tl=function(){return this.a},Q.Ul=function(e){return!_R(this.c,e)},Q.Vl=function(e,t){sW(this.c,e,t)},Q.Wl=function(e){return BFe(this.c,e)},Q.Xl=function(e){fKe(this.c,e)},L(pZ,`FeatureMapUtil/FeatureFeatureMap`,554),q(1259,1,uht,ece),Q.Dk=function(e){return nW(this.b,this.a,-1,e)},Q.Oj=function(){return!_R(this.b,this.a)},Q.Wb=function(e){sW(this.b,this.a,e)},Q.Ek=function(){$V(this.b,this.a)},L(pZ,`FeatureMapUtil/FeatureValue`,1259);var g9,gVt,_Vt,_9,vVt,v9=aD(YZ,`AnyType`);q(670,63,YG,Fv),L(YZ,`InvalidDatatypeValueException`,670);var y9=aD(YZ,Lht),b9=aD(YZ,Rht),yVt=aD(YZ,zht),bVt,x9,xVt,S9,SVt,CVt,wVt,TVt,EVt,DVt,OVt,kVt,AVt,jVt,MVt,C9,NVt,w9,T9,PVt,E9,D9,O9,FVt,k9,A9;q(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},F_),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new oF(this,0)),this.c):(!this.c&&(this.c=new oF(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)):(!this.c&&(this.c=new oF(this,0)),P(P(fA(this.c,(SW(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new oF(this,2)),this.b):(!this.b&&(this.b=new oF(this,2)),this.b.b)}return EM(this,e-hO(this.fi()),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():this.fi(),e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new oF(this,0)),vU(this.c,e,n);case 1:return(!this.c&&(this.c=new oF(this,0)),P(P(fA(this.c,(SW(),S9)),163),72)).Vk(e,n);case 2:return!this.b&&(this.b=new oF(this,2)),vU(this.b,e,n)}return r=P(_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():this.fi(),t),69),r.uk().yk(this,oNe(this),t-hO(this.fi()),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return XA(this,e-hO(this.fi()),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():this.fi(),e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new oF(this,0)),sO(this.c,t);return;case 1:(!this.c&&(this.c=new oF(this,0)),P(P(fA(this.c,(SW(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new oF(this,2)),sO(this.b,t);return}ZL(this,e-hO(this.fi()),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():this.fi(),e),t)},Q.fi=function(){return SW(),xVt},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new oF(this,0)),_W(this.c);return;case 1:(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new oF(this,2)),_W(this.b);return}lL(this,e-hO(this.fi()),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():this.fi(),e))},Q.Ib=function(){var e;return this.j&4?uH(this):(e=new eT(uH(this)),e.a+=` (mixed: `,jC(e,this.c),e.a+=`, anyAttribute: `,jC(e,this.b),e.a+=`)`,e.a)},L(XZ,`AnyTypeImpl`,829),q(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},Fu),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return EM(this,e-hO((SW(),C9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():C9,e),t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return XA(this,e-hO((SW(),C9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():C9,e))},Q.$h=function(e,t){switch(e){case 0:Mee(this,VT(t));return;case 1:Pee(this,VT(t));return}ZL(this,e-hO((SW(),C9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():C9,e),t)},Q.fi=function(){return SW(),C9},Q.hi=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}lL(this,e-hO((SW(),C9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():C9,e))},Q.Ib=function(){var e;return this.j&4?uH(this):(e=new eT(uH(this)),e.a+=` (data: `,MC(e,this.a),e.a+=`, target: `,MC(e,this.b),e.a+=`)`,e.a)},Q.a=null,Q.b=null,L(XZ,`ProcessingInstructionImpl`,671),q(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},mre),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new oF(this,0)),this.c):(!this.c&&(this.c=new oF(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)):(!this.c&&(this.c=new oF(this,0)),P(P(fA(this.c,(SW(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new oF(this,2)),this.b):(!this.b&&(this.b=new oF(this,2)),this.b.b);case 3:return!this.c&&(this.c=new oF(this,0)),VT(tW(this.c,(SW(),T9),!0));case 4:return Ppe(this.a,(!this.c&&(this.c=new oF(this,0)),VT(tW(this.c,(SW(),T9),!0))));case 5:return this.a}return EM(this,e-hO((SW(),w9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():w9,e),t,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new oF(this,0)),VT(tW(this.c,(SW(),T9),!0))!=null;case 4:return Ppe(this.a,(!this.c&&(this.c=new oF(this,0)),VT(tW(this.c,(SW(),T9),!0))))!=null;case 5:return!!this.a}return XA(this,e-hO((SW(),w9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():w9,e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new oF(this,0)),sO(this.c,t);return;case 1:(!this.c&&(this.c=new oF(this,0)),P(P(fA(this.c,(SW(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new oF(this,2)),sO(this.b,t);return;case 3:sDe(this,VT(t));return;case 4:sDe(this,Npe(this.a,t));return;case 5:Nee(this,P(t,159));return}ZL(this,e-hO((SW(),w9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():w9,e),t)},Q.fi=function(){return SW(),w9},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new oF(this,0)),_W(this.c);return;case 1:(!this.c&&(this.c=new oF(this,0)),P(fA(this.c,(SW(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new oF(this,2)),_W(this.b);return;case 3:!this.c&&(this.c=new oF(this,0)),sW(this.c,(SW(),T9),null);return;case 4:sDe(this,Npe(this.a,null));return;case 5:this.a=null;return}lL(this,e-hO((SW(),w9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():w9,e))},L(XZ,`SimpleAnyTypeImpl`,672),q(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},I_),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new oF(this,0)),this.a):(!this.a&&(this.a=new oF(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new _M((eG(),o9),d9,this,1)),this.b):(!this.b&&(this.b=new _M((eG(),o9),d9,this,1)),iM(this.b));case 2:return n?(!this.c&&(this.c=new _M((eG(),o9),d9,this,2)),this.c):(!this.c&&(this.c=new _M((eG(),o9),d9,this,2)),iM(this.c));case 3:return!this.a&&(this.a=new oF(this,0)),fA(this.a,(SW(),D9));case 4:return!this.a&&(this.a=new oF(this,0)),fA(this.a,(SW(),O9));case 5:return!this.a&&(this.a=new oF(this,0)),fA(this.a,(SW(),k9));case 6:return!this.a&&(this.a=new oF(this,0)),fA(this.a,(SW(),A9))}return EM(this,e-hO((SW(),E9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():E9,e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new oF(this,0)),vU(this.a,e,n);case 1:return!this.b&&(this.b=new _M((eG(),o9),d9,this,1)),gE(this.b,e,n);case 2:return!this.c&&(this.c=new _M((eG(),o9),d9,this,2)),gE(this.c,e,n);case 5:return!this.a&&(this.a=new oF(this,0)),Zfe(fA(this.a,(SW(),k9)),e,n)}return r=P(_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():(SW(),E9),t),69),r.uk().yk(this,oNe(this),t-hO((SW(),E9)),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new oF(this,0)),!yC(fA(this.a,(SW(),D9)));case 4:return!this.a&&(this.a=new oF(this,0)),!yC(fA(this.a,(SW(),O9)));case 5:return!this.a&&(this.a=new oF(this,0)),!yC(fA(this.a,(SW(),k9)));case 6:return!this.a&&(this.a=new oF(this,0)),!yC(fA(this.a,(SW(),A9)))}return XA(this,e-hO((SW(),E9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():E9,e))},Q.$h=function(e,t){switch(e){case 0:!this.a&&(this.a=new oF(this,0)),sO(this.a,t);return;case 1:!this.b&&(this.b=new _M((eG(),o9),d9,this,1)),iF(this.b,t);return;case 2:!this.c&&(this.c=new _M((eG(),o9),d9,this,2)),iF(this.c,t);return;case 3:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),D9))),!this.a&&(this.a=new oF(this,0)),jw(fA(this.a,D9),P(t,18));return;case 4:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),O9))),!this.a&&(this.a=new oF(this,0)),jw(fA(this.a,O9),P(t,18));return;case 5:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),k9))),!this.a&&(this.a=new oF(this,0)),jw(fA(this.a,k9),P(t,18));return;case 6:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),A9))),!this.a&&(this.a=new oF(this,0)),jw(fA(this.a,A9),P(t,18));return}ZL(this,e-hO((SW(),E9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():E9,e),t)},Q.fi=function(){return SW(),E9},Q.hi=function(e){switch(e){case 0:!this.a&&(this.a=new oF(this,0)),_W(this.a);return;case 1:!this.b&&(this.b=new _M((eG(),o9),d9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new _M((eG(),o9),d9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),D9)));return;case 4:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),O9)));return;case 5:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),k9)));return;case 6:!this.a&&(this.a=new oF(this,0)),t_(fA(this.a,(SW(),A9)));return}lL(this,e-hO((SW(),E9)),_N(this.j&2?(!this.k&&(this.k=new Of),this.k).Lk():E9,e))},Q.Ib=function(){var e;return this.j&4?uH(this):(e=new eT(uH(this)),e.a+=` (mixed: `,jC(e,this.a),e.a+=`)`,e.a)},L(XZ,`XMLTypeDocumentRootImpl`,673),q(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},Au),Q.oi=function(e,t){switch(e.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:QL(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return VT(t);case 6:return gfe(P(t,195));case 12:case 47:case 49:case 11:return drt(this,e,t);case 13:return t==null?null:mtt(P(t,247));case 15:case 14:return t==null?null:xbe(O(N(t)));case 17:return sYe((SW(),t));case 18:return sYe(t);case 21:case 20:return t==null?null:Sbe(P(t,164).a);case 27:return _fe(P(t,195));case 30:return pKe((SW(),P(t,16)));case 31:return pKe(P(t,16));case 40:return hfe((SW(),t));case 42:return cYe((SW(),t));case 43:return cYe(t);case 59:case 48:return mfe((SW(),t));default:throw D(new _v(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=FN(e),n?wz(n.si(),e):-1)),e.G){case 0:return t=new F_,t;case 1:return r=new Fu,r;case 2:return i=new mre,i;case 3:return a=new I_,a;default:throw D(new _v(Mpt+e.zb+HX))}},Q.qi=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;switch(e.fk()){case 5:case 52:case 4:return t;case 6:return FWe(t);case 8:case 7:return t==null?null:xYe(t);case 9:return t==null?null:QM(wU((r=aW(t,!0),r.length>0&&(gA(0,r.length),r.charCodeAt(0)==43)?(gA(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:QM(wU((i=aW(t,!0),i.length>0&&(gA(0,i.length),i.charCodeAt(0)==43)?(gA(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return VT(UW(this,(SW(),wVt),t));case 12:return VT(UW(this,(SW(),TVt),t));case 13:return t==null?null:new Sie(aW(t,!0));case 15:case 14:return d4e(t);case 16:return VT(UW(this,(SW(),EVt),t));case 17:return xUe((SW(),t));case 18:return xUe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return aW(t,!0);case 21:case 20:return T4e(t);case 22:return VT(UW(this,(SW(),DVt),t));case 23:return VT(UW(this,(SW(),OVt),t));case 24:return VT(UW(this,(SW(),kVt),t));case 25:return VT(UW(this,(SW(),AVt),t));case 26:return VT(UW(this,(SW(),jVt),t));case 27:return xWe(t);case 30:return SUe((SW(),t));case 31:return SUe(t);case 32:return t==null?null:G(wU((u=aW(t,!0),u.length>0&&(gA(0,u.length),u.charCodeAt(0)==43)?(gA(1,u.length+1),u.substr(1)):u),JG,sG));case 33:return t==null?null:new fw((d=aW(t,!0),d.length>0&&(gA(0,d.length),d.charCodeAt(0)==43)?(gA(1,d.length+1),d.substr(1)):d));case 34:return t==null?null:G(wU((f=aW(t,!0),f.length>0&&(gA(0,f.length),f.charCodeAt(0)==43)?(gA(1,f.length+1),f.substr(1)):f),JG,sG));case 36:return t==null?null:UR(LW((p=aW(t,!0),p.length>0&&(gA(0,p.length),p.charCodeAt(0)==43)?(gA(1,p.length+1),p.substr(1)):p)));case 37:return t==null?null:UR(LW((m=aW(t,!0),m.length>0&&(gA(0,m.length),m.charCodeAt(0)==43)?(gA(1,m.length+1),m.substr(1)):m)));case 40:return QGe((SW(),t));case 42:return CUe((SW(),t));case 43:return CUe(t);case 44:return t==null?null:new fw((h=aW(t,!0),h.length>0&&(gA(0,h.length),h.charCodeAt(0)==43)?(gA(1,h.length+1),h.substr(1)):h));case 45:return t==null?null:new fw((g=aW(t,!0),g.length>0&&(gA(0,g.length),g.charCodeAt(0)==43)?(gA(1,g.length+1),g.substr(1)):g));case 46:return aW(t,!1);case 47:return VT(UW(this,(SW(),MVt),t));case 59:case 48:return ZGe((SW(),t));case 49:return VT(UW(this,(SW(),NVt),t));case 50:return t==null?null:eL(wU((_=aW(t,!0),_.length>0&&(gA(0,_.length),_.charCodeAt(0)==43)?(gA(1,_.length+1),_.substr(1)):_),PZ,32767)<<16>>16);case 51:return t==null?null:eL(wU((a=aW(t,!0),a.length>0&&(gA(0,a.length),a.charCodeAt(0)==43)?(gA(1,a.length+1),a.substr(1)):a),PZ,32767)<<16>>16);case 53:return VT(UW(this,(SW(),PVt),t));case 55:return t==null?null:eL(wU((o=aW(t,!0),o.length>0&&(gA(0,o.length),o.charCodeAt(0)==43)?(gA(1,o.length+1),o.substr(1)):o),PZ,32767)<<16>>16);case 56:return t==null?null:eL(wU((s=aW(t,!0),s.length>0&&(gA(0,s.length),s.charCodeAt(0)==43)?(gA(1,s.length+1),s.substr(1)):s),PZ,32767)<<16>>16);case 57:return t==null?null:UR(LW((c=aW(t,!0),c.length>0&&(gA(0,c.length),c.charCodeAt(0)==43)?(gA(1,c.length+1),c.substr(1)):c)));case 58:return t==null?null:UR(LW((l=aW(t,!0),l.length>0&&(gA(0,l.length),l.charCodeAt(0)==43)?(gA(1,l.length+1),l.substr(1)):l)));case 60:return t==null?null:G(wU((n=aW(t,!0),n.length>0&&(gA(0,n.length),n.charCodeAt(0)==43)?(gA(1,n.length+1),n.substr(1)):n),JG,sG));case 61:return t==null?null:G(wU(aW(t,!0),JG,sG));default:throw D(new _v(VX+e.ve()+HX))}};var IVt,LVt,RVt,zVt;L(XZ,`XMLTypeFactoryImpl`,1993),q(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},Uxe),Q.N=!1,Q.O=!1;var BVt=!1;L(XZ,`XMLTypePackageImpl`,583),q(1926,1,{836:1},ju),Q.Ik=function(){return h9e(),oHt},L(XZ,`XMLTypePackageImpl/1`,1926),q(1935,1,RZ,Mu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/10`,1935),q(1936,1,RZ,Nu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/11`,1936),q(1937,1,RZ,Pu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/12`,1937),q(1938,1,RZ,Iu),Q.dk=function(e){return xC(e)},Q.ek=function(e){return V(CQ,X,346,e,7,1)},L(XZ,`XMLTypePackageImpl/13`,1938),q(1939,1,RZ,Lu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/14`,1939),q(1940,1,RZ,Ru),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/15`,1940),q(1941,1,RZ,zu),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/16`,1941),q(1942,1,RZ,Bu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/17`,1942),q(1943,1,RZ,Vu),Q.dk=function(e){return M(e,164)},Q.ek=function(e){return V(wQ,X,164,e,0,1)},L(XZ,`XMLTypePackageImpl/18`,1943),q(1944,1,RZ,Hu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/19`,1944),q(1927,1,RZ,Uu),Q.dk=function(e){return M(e,842)},Q.ek=function(e){return V(v9,fG,842,e,0,1)},L(XZ,`XMLTypePackageImpl/2`,1927),q(1945,1,RZ,Wu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/20`,1945),q(1946,1,RZ,Gu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/21`,1946),q(1947,1,RZ,Ku),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/22`,1947),q(1948,1,RZ,qu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/23`,1948),q(1949,1,RZ,Ju),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(XZ,`XMLTypePackageImpl/24`,1949),q(1950,1,RZ,Yu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/25`,1950),q(1951,1,RZ,Xu),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/26`,1951),q(1952,1,RZ,Zu),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/27`,1952),q(1953,1,RZ,Qu),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/28`,1953),q(1954,1,RZ,$u),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/29`,1954),q(1928,1,RZ,ed),Q.dk=function(e){return M(e,671)},Q.ek=function(e){return V(y9,fG,2084,e,0,1)},L(XZ,`XMLTypePackageImpl/3`,1928),q(1955,1,RZ,td),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(XZ,`XMLTypePackageImpl/30`,1955),q(1956,1,RZ,nd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/31`,1956),q(1957,1,RZ,rd),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(XZ,`XMLTypePackageImpl/32`,1957),q(1958,1,RZ,id),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/33`,1958),q(1959,1,RZ,ad),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/34`,1959),q(1960,1,RZ,od),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/35`,1960),q(1961,1,RZ,sd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/36`,1961),q(1962,1,RZ,uee),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/37`,1962),q(1963,1,RZ,cd),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,Eq,16,e,0,1)},L(XZ,`XMLTypePackageImpl/38`,1963),q(1964,1,RZ,dee),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/39`,1964),q(1929,1,RZ,fee),Q.dk=function(e){return M(e,672)},Q.ek=function(e){return V(b9,fG,2085,e,0,1)},L(XZ,`XMLTypePackageImpl/4`,1929),q(1965,1,RZ,pee),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/40`,1965),q(1966,1,RZ,ld),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/41`,1966),q(1967,1,RZ,ud),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/42`,1967),q(1968,1,RZ,dd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/43`,1968),q(1969,1,RZ,fd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/44`,1969),q(1970,1,RZ,pd),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(XZ,`XMLTypePackageImpl/45`,1970),q(1971,1,RZ,md),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/46`,1971),q(1972,1,RZ,hd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/47`,1972),q(1973,1,RZ,gd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/48`,1973),q(1974,1,RZ,_d),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(XZ,`XMLTypePackageImpl/49`,1974),q(1930,1,RZ,vd),Q.dk=function(e){return M(e,673)},Q.ek=function(e){return V(yVt,fG,2086,e,0,1)},L(XZ,`XMLTypePackageImpl/5`,1930),q(1975,1,RZ,yd),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(XZ,`XMLTypePackageImpl/50`,1975),q(1976,1,RZ,bd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/51`,1976),q(1977,1,RZ,xd),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(XZ,`XMLTypePackageImpl/52`,1977),q(1931,1,RZ,Sd),Q.dk=function(e){return SC(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/6`,1931),q(1932,1,RZ,Cd),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(XZ,`XMLTypePackageImpl/7`,1932),q(1933,1,RZ,wd),Q.dk=function(e){return bC(e)},Q.ek=function(e){return V(bQ,X,473,e,8,1)},L(XZ,`XMLTypePackageImpl/8`,1933),q(1934,1,RZ,Td),Q.dk=function(e){return M(e,221)},Q.ek=function(e){return V(xQ,X,221,e,0,1)},L(XZ,`XMLTypePackageImpl/9`,1934);var j9,M9,N9,P9,$;q(53,63,YG,Pv),L(tQ,`RegEx/ParseException`,53),q(821,1,{},Ed),Q._l=function(e){return e<this.j&&UO(this.i,e)==63},Q.am=function(){var e,t,n,r,i;if(this.c!=10)throw D(new Pv(nG((bw(),aZ))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(KW(this),this.c!=0)throw D(new Pv(nG((bw(),cZ))));if(this.a==123){i=0,n=0;do{if(KW(this),this.c!=0)throw D(new Pv(nG((bw(),cZ))));if((i=zz(this.a))<0)break;if(n>n*16)throw D(new Pv(nG((bw(),Fmt))));n=n*16+i}while(!0);if(this.a!=125)throw D(new Pv(nG((bw(),Imt))));if(n>nQ)throw D(new Pv(nG((bw(),Lmt))));e=n}else{if(i=0,this.c!=0||(i=zz(this.a))<0||(n=i,KW(this),this.c!=0||(i=zz(this.a))<0))throw D(new Pv(nG((bw(),cZ))));n=n*16+i,e=n}break;case 117:if(r=0,KW(this),this.c!=0||(r=zz(this.a))<0||(t=r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0))throw D(new Pv(nG((bw(),cZ))));t=t*16+r,e=t;break;case 118:if(KW(this),this.c!=0||(r=zz(this.a))<0||(t=r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0)||(t=t*16+r,KW(this),this.c!=0||(r=zz(this.a))<0))throw D(new Pv(nG((bw(),cZ))));if(t=t*16+r,t>nQ)throw D(new Pv(nG((bw(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw D(new Pv(nG((bw(),Rmt))))}return e},Q.bm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?RW(`Nd`,!0):(QW(),B9);break;case 68:n=(this.e&32)==32?RW(`Nd`,!1):(QW(),YVt);break;case 119:n=(this.e&32)==32?RW(`IsWord`,!0):(QW(),U9);break;case 87:n=(this.e&32)==32?RW(`IsWord`,!1):(QW(),ZVt);break;case 115:n=(this.e&32)==32?RW(`IsSpace`,!0):(QW(),H9);break;case 83:n=(this.e&32)==32?RW(`IsSpace`,!1):(QW(),XVt);break;default:throw D(new rv((t=e,sgt+t.toString(16))))}return n},Q.cm=function(e){var t,n,r,i,a,o,s,c,l,u,d,f;for(this.b=1,KW(this),t=null,this.c==0&&this.a==94?(KW(this),e?u=(QW(),QW(),++W9,new wA(5)):(t=(QW(),QW(),++W9,new wA(4)),WH(t,0,nQ),u=(++W9,new wA(4)))):u=(QW(),QW(),++W9,new wA(4)),i=!0;(f=this.c)!=1&&!(f==0&&this.a==93&&!i);){if(i=!1,n=this.a,r=!1,f==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:oW(u,this.bm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.sm(u,n),n<0&&(r=!0);break;case 112:case 80:if(d=h1e(this,n),!d)throw D(new Pv(nG((bw(),Tmt))));oW(u,d),r=!0;break;default:n=this.am()}else if(f==20){if(o=ST(this.i,58,this.d),o<0)throw D(new Pv(nG((bw(),Emt))));if(s=!0,UO(this.i,this.d)==94&&(++this.d,s=!1),a=Dk(this.i,this.d,o),c=Qje(a,s,(this.e&512)==512),!c)throw D(new Pv(nG((bw(),Dmt))));if(oW(u,c),r=!0,o+1>=this.j||UO(this.i,o+1)!=93)throw D(new Pv(nG((bw(),Emt))));this.d=o+2}if(KW(this),!r)if(this.c!=0||this.a!=45)WH(u,n,n);else{if(KW(this),(f=this.c)==1)throw D(new Pv(nG((bw(),sZ))));f==0&&this.a==93?(WH(u,n,n),WH(u,45,45)):(l=this.a,f==10&&(l=this.am()),KW(this),WH(u,n,l))}(this.e&fZ)==fZ&&this.c==0&&this.a==44&&KW(this)}if(this.c==1)throw D(new Pv(nG((bw(),sZ))));return t&&(TW(t,u),u=t),lH(u),mW(u),this.b=0,KW(this),u},Q.dm=function(){for(var e,t,n=this.cm(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(KW(this),this.c!=9)throw D(new Pv(nG((bw(),Mmt))));if(t=this.cm(!1),r==4)oW(n,t);else if(e==45)TW(n,t);else if(e==38)Qnt(n,t);else throw D(new rv(`ASSERT`))}else throw D(new Pv(nG((bw(),Nmt))));return KW(this),n},Q.em=function(){var e=this.a-48,t=(QW(),QW(),++W9,new hwe(12,null,e));return!this.g&&(this.g=new i_),Yg(this.g,new Dne(e)),KW(this),t},Q.fm=function(){return KW(this),QW(),$Vt},Q.gm=function(){return KW(this),QW(),QVt},Q.hm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.im=function(){throw D(new Pv(nG((bw(),lZ))))},Q.jm=function(){return KW(this),aze()},Q.km=function(){return KW(this),QW(),tHt},Q.lm=function(){return KW(this),QW(),rHt},Q.mm=function(){var e;if(this.d>=this.j||((e=UO(this.i,this.d++))&65504)!=64)throw D(new Pv(nG((bw(),xmt))));return KW(this),QW(),QW(),++W9,new mD(0,e-64)},Q.nm=function(){return KW(this),R9e()},Q.om=function(){return KW(this),QW(),iHt},Q.pm=function(){var e=(QW(),QW(),++W9,new mD(0,105));return KW(this),e},Q.qm=function(){return KW(this),QW(),nHt},Q.rm=function(){return KW(this),QW(),eHt},Q.sm=function(e,t){return this.am()},Q.tm=function(){return KW(this),QW(),qVt},Q.um=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw D(new Pv(nG((bw(),vmt))));if(r=-1,t=null,e=UO(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new i_),Yg(this.g,new Dne(r)),++this.d,UO(this.i,this.d)!=41)throw D(new Pv(nG((bw(),oZ))));++this.d}else switch(e==63&&--this.d,KW(this),t=Uat(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw D(new Pv(nG((bw(),oZ))));break;default:throw D(new Pv(nG((bw(),ymt))))}if(KW(this),i=LR(this),n=null,i.e==2){if(i.Nm()!=2)throw D(new Pv(nG((bw(),bmt))));n=i.Jm(1),i=i.Jm(0)}if(this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),QW(),QW(),++W9,new KNe(r,t,i,n)},Q.vm=function(){return KW(this),QW(),JVt},Q.wm=function(){var e;if(KW(this),e=ZD(24,LR(this)),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.xm=function(){var e;if(KW(this),e=ZD(20,LR(this)),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.ym=function(){var e;if(KW(this),e=ZD(22,LR(this)),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.zm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d<this.j&&(t=UO(this.i,this.d),i=f0e(t),i!=0);)e|=i,++this.d;if(this.d>=this.j)throw D(new Pv(nG((bw(),gmt))));if(t==45){for(++this.d;this.d<this.j&&(t=UO(this.i,this.d),i=f0e(t),i!=0);)n|=i,++this.d;if(this.d>=this.j)throw D(new Pv(nG((bw(),gmt))))}if(t==58){if(++this.d,KW(this),r=Lbe(LR(this),e,n),this.c!=7)throw D(new Pv(nG((bw(),oZ))));KW(this)}else if(t==41)++this.d,KW(this),r=Lbe(LR(this),e,n);else throw D(new Pv(nG((bw(),_mt))));return r},Q.Am=function(){var e;if(KW(this),e=ZD(21,LR(this)),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.Bm=function(){var e;if(KW(this),e=ZD(23,LR(this)),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.Cm=function(){var e,t;if(KW(this),e=this.f++,t=nbe(LR(this),e),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),t},Q.Dm=function(){var e;if(KW(this),e=nbe(LR(this),0),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.Em=function(e){return KW(this),this.c==5?(KW(this),pD(e,(QW(),QW(),++W9,new ij(9,e)))):pD(e,(QW(),QW(),++W9,new ij(3,e)))},Q.Fm=function(e){var t;return KW(this),t=(QW(),QW(),++W9,new xw(2)),this.c==5?(KW(this),gW(t,V9),gW(t,e)):(gW(t,e),gW(t,V9)),t},Q.Gm=function(e){return KW(this),this.c==5?(KW(this),QW(),QW(),++W9,new ij(9,e)):(QW(),QW(),++W9,new ij(3,e))},Q.a=0,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=1,Q.g=null,Q.j=0,L(tQ,`RegEx/RegexParser`,821),q(1913,821,{},hre),Q._l=function(e){return!1},Q.am=function(){return u8e(this)},Q.bm=function(e){return TU(e)},Q.cm=function(e){return cot(this)},Q.dm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.em=function(){throw D(new Pv(nG((bw(),lZ))))},Q.fm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.gm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.hm=function(){return KW(this),TU(67)},Q.im=function(){return KW(this),TU(73)},Q.jm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.km=function(){throw D(new Pv(nG((bw(),lZ))))},Q.lm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.mm=function(){return KW(this),TU(99)},Q.nm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.om=function(){throw D(new Pv(nG((bw(),lZ))))},Q.pm=function(){return KW(this),TU(105)},Q.qm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.rm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.sm=function(e,t){return oW(e,TU(t)),-1},Q.tm=function(){return KW(this),QW(),QW(),++W9,new mD(0,94)},Q.um=function(){throw D(new Pv(nG((bw(),lZ))))},Q.vm=function(){return KW(this),QW(),QW(),++W9,new mD(0,36)},Q.wm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.xm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.ym=function(){throw D(new Pv(nG((bw(),lZ))))},Q.zm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.Am=function(){throw D(new Pv(nG((bw(),lZ))))},Q.Bm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.Cm=function(){var e;if(KW(this),e=nbe(LR(this),0),this.c!=7)throw D(new Pv(nG((bw(),oZ))));return KW(this),e},Q.Dm=function(){throw D(new Pv(nG((bw(),lZ))))},Q.Em=function(e){return KW(this),pD(e,(QW(),QW(),++W9,new ij(3,e)))},Q.Fm=function(e){var t;return KW(this),t=(QW(),QW(),++W9,new xw(2)),gW(t,e),gW(t,V9),t},Q.Gm=function(e){return KW(this),QW(),QW(),++W9,new ij(3,e)};var F9=null,I9=null;L(tQ,`RegEx/ParserForXMLSchema`,1913),q(121,1,iQ,_g),Q.Hm=function(e){throw D(new rv(`Not supported.`))},Q.Im=function(){return-1},Q.Jm=function(e){return null},Q.Km=function(){return null},Q.Lm=function(e){},Q.Mm=function(e){},Q.Nm=function(){return 0},Q.Ib=function(){return this.Om(0)},Q.Om=function(e){return this.e==11?`.`:``},Q.e=0;var VVt,L9,R9,HVt,UVt,z9=null,B9,WVt=null,GVt,V9,KVt=null,qVt,JVt,YVt,XVt,ZVt,QVt,H9,$Vt,eHt,tHt,nHt,U9,rHt,iHt,W9=0,aHt=L(tQ,`RegEx/Token`,121);q(137,121,{3:1,137:1,121:1},wA),Q.Om=function(e){var t,n,r;if(this.e==4)if(this==GVt)n=`.`;else if(this==B9)n=`\\d`;else if(this==U9)n=`\\w`;else if(this==H9)n=`\\s`;else{for(r=new Kv,r.a+=`[`,t=0;t<this.b.length;t+=2)(e&fZ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?MC(r,UU(this.b[t])):(MC(r,UU(this.b[t])),r.a+=`-`,MC(r,UU(this.b[t+1])));r.a+=`]`,n=r.a}else if(this==YVt)n=`\\D`;else if(this==ZVt)n=`\\W`;else if(this==XVt)n=`\\S`;else{for(r=new Kv,r.a+=`[^`,t=0;t<this.b.length;t+=2)(e&fZ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?MC(r,UU(this.b[t])):(MC(r,UU(this.b[t])),r.a+=`-`,MC(r,UU(this.b[t+1])));r.a+=`]`,n=r.a}return n},Q.a=!1,Q.c=!1,L(tQ,`RegEx/RangeToken`,137),q(581,1,{581:1},Dne),Q.a=0,L(tQ,`RegEx/RegexParser/ReferencePosition`,581),q(580,1,{3:1,580:1},bae),Q.Fb=function(e){var t;return e==null||!M(e,580)?!1:(t=P(e,580),mE(this.b,t.b)&&this.a==t.a)},Q.Hb=function(){return hI(this.b+`/`+F3e(this.a))},Q.Ib=function(){return this.c.Om(this.a)},Q.a=0,L(tQ,`RegEx/RegularExpression`,580),q(228,121,iQ,mD),Q.Im=function(){return this.a},Q.Om=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+eE(this.a&tK);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=RK?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+Dk(n,n.length-6,n.length)):r=``+eE(this.a&tK)}break;case 8:r=this==qVt||this==JVt?``+eE(this.a&tK):`\\`+eE(this.a&tK);break;default:r=null}return r},Q.a=0,L(tQ,`RegEx/Token/CharToken`,228),q(323,121,iQ,ij),Q.Jm=function(e){return this.a},Q.Lm=function(e){this.b=e},Q.Mm=function(e){this.c=e},Q.Nm=function(){return 1},Q.Om=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Om(e)+`*`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}`;else throw D(new rv(`Token#toString(): CLOSURE `+this.c+dG+this.b));else if(this.c<0&&this.b<0)t=this.a.Om(e)+`*?`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}?`;else throw D(new rv(`Token#toString(): NONGREEDYCLOSURE `+this.c+dG+this.b));return t},Q.b=0,Q.c=0,L(tQ,`RegEx/Token/ClosureToken`,323),q(822,121,iQ,vbe),Q.Jm=function(e){return e==0?this.a:this.b},Q.Nm=function(){return 2},Q.Om=function(e){return this.b.e==3&&this.b.Jm(0)==this.a?this.a.Om(e)+`+`:this.b.e==9&&this.b.Jm(0)==this.a?this.a.Om(e)+`+?`:this.a.Om(e)+(``+this.b.Om(e))},L(tQ,`RegEx/Token/ConcatToken`,822),q(1911,121,iQ,KNe),Q.Jm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw D(new rv(`Internal Error: `+e))},Q.Nm=function(){return this.b?2:1},Q.Om=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},Q.c=0,L(tQ,`RegEx/Token/ConditionToken`,1911),q(1912,121,iQ,AEe),Q.Jm=function(e){return this.b},Q.Nm=function(){return 1},Q.Om=function(e){return`(?`+(this.a==0?``:F3e(this.a))+(this.c==0?``:F3e(this.c))+`:`+this.b.Om(e)+`)`},Q.a=0,Q.c=0,L(tQ,`RegEx/Token/ModifierToken`,1912),q(823,121,iQ,vxe),Q.Jm=function(e){return this.a},Q.Nm=function(){return 1},Q.Om=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Om(e)+`)`:`(`+this.a.Om(e)+`)`;break;case 20:t=`(?=`+this.a.Om(e)+`)`;break;case 21:t=`(?!`+this.a.Om(e)+`)`;break;case 22:t=`(?<=`+this.a.Om(e)+`)`;break;case 23:t=`(?<!`+this.a.Om(e)+`)`;break;case 24:t=`(?>`+this.a.Om(e)+`)`}return t},Q.b=0,L(tQ,`RegEx/Token/ParenToken`,823),q(518,121,{3:1,121:1,518:1},hwe),Q.Km=function(){return this.b},Q.Om=function(e){return this.e==12?`\\`+this.a:U2e(this.b)},Q.a=0,L(tQ,`RegEx/Token/StringToken`,518),q(466,121,iQ,xw),Q.Hm=function(e){gW(this,e)},Q.Jm=function(e){return P(MO(this.a,e),121)},Q.Nm=function(){return this.a?this.a.a.c.length:0},Q.Om=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=P(MO(this.a,0),121),n=P(MO(this.a,1),121),i=n.e==3&&n.Jm(0)==t?t.Om(e)+`+`:n.e==9&&n.Jm(0)==t?t.Om(e)+`+?`:t.Om(e)+(``+n.Om(e));else{for(a=new Kv,r=0;r<this.a.a.c.length;r++)MC(a,P(MO(this.a,r),121).Om(e));i=a.a}return i}if(this.a.a.c.length==2&&P(MO(this.a,1),121).e==7)i=P(MO(this.a,0),121).Om(e)+`?`;else if(this.a.a.c.length==2&&P(MO(this.a,0),121).e==7)i=P(MO(this.a,1),121).Om(e)+`??`;else{for(a=new Kv,MC(a,P(MO(this.a,0),121).Om(e)),r=1;r<this.a.a.c.length;r++)a.a+=`|`,MC(a,P(MO(this.a,r),121).Om(e));i=a.a}return i},L(tQ,`RegEx/Token/UnionToken`,466),q(515,1,{590:1},ab),Q.Ib=function(){return this.a.b},L(vgt,`XMLTypeUtil/PatternMatcherImpl`,515),q(1676,1489,{},Dd);var oHt;L(vgt,`XMLTypeValidator`,1676),q(270,1,MG,OD),Q.Ic=function(e){Sj(this,e)},Q.Jc=function(){return(this.b-this.a)*this.c<0?G9:new qw(this)},Q.a=0,Q.b=0,Q.c=0;var G9;L(ygt,`ExclusiveRange`,270),q(1055,1,wG,Od),Q.Rb=function(e){P(e,15),_le()},Q.Nb=function(e){QD(this,e)},Q.Pb=function(){return Xie()},Q.Ub=function(){return Zie()},Q.Wb=function(e){P(e,15),gle()},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Tb=function(){return-1},Q.Vb=function(){return-1},Q.Qb=function(){throw D(new Av(Sgt))},L(ygt,`ExclusiveRange/1`,1055),q(259,1,wG,qw),Q.Rb=function(e){P(e,15),vle()},Q.Nb=function(e){QD(this,e)},Q.Pb=function(){return sBe(this)},Q.Ub=function(){return sMe(this)},Q.Wb=function(e){P(e,15),yle()},Q.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Vb=function(){return this.b-1},Q.Qb=function(){throw D(new Av(Sgt))},Q.a=0,Q.b=0,L(ygt,`ExclusiveRange/RangeIterator`,259);var K9=VO(gZ,`C`),q9=VO(yZ,`I`),J9=VO(iG,`Z`),Y9=VO(bZ,`J`),X9=VO(hZ,`B`),Z9=VO(_Z,`D`),Q9=VO(vZ,`F`),$9=VO(xZ,`S`),sHt=aD(`org.eclipse.elk.core.labels`,`ILabelManager`),cHt=aD(qX,`DiagnosticChain`),lHt=aD(Oht,`ResourceSet`),uHt=L(qX,`InvocationTargetException`,null),dHt=(Gv(),nAe),fHt=fHt=qJe;pFe(Une),hIe(`permProps`,[[[`locale`,`default`],[Cgt,`gecko1_8`]],[[`locale`,`default`],[Cgt,`safari`]]]),fHt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=s(e,`string`);return r(t)==`symbol`?t:t+``}function s(e,t){if(r(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||`default`);if(r(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t,n){return t=p(t),u(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(e,t){if(t&&(r(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return d(e)}function d(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var g=function(t){function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c(this,n);var r=Object.assign({},t),i=!1;try{e.resolve(`web-worker`),i=!0}catch{}if(t.workerUrl)if(i){var a=e("web-worker");r.workerFactory=function(e){return new a(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
1175
1175
  Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
1176
- ... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})})),k_=cre(),A_=lre(),fre=ure(),j_=l(dre(),1);function M_(){return new j_.default}var N_=M_(),P_=264,pre=52,F_=54,mre=5;function I_(e){return e===0?pre:57+e*F_+(e-1)*mre}async function hre(e,t){let n=await N_.layout({id:e.id,layoutOptions:{"elk.algorithm":`layered`,"elk.direction":t,"elk.spacing.nodeNode":`44`,"elk.layered.spacing.nodeNodeBetweenLayers":`88`},children:e.stages.map(e=>({id:e.id,width:P_,height:I_(e.children.length)})),edges:e.transitions.map((e,t)=>({id:`${e.from}-${e.to}-${t}`,sources:[e.from],targets:[e.to]}))}),r=(n.children??[]).map(e=>({id:e.id,x:e.x??0,y:t===`RIGHT`?0:e.y??0,width:e.width??P_,height:e.height??I_(0)})),i=(n.edges??[]).map((t,n)=>{let r=e.transitions[n];return{id:t.id,label:r?.label??``,from:r?.from??``,to:r?.to??``,...r?.fromChildId===void 0?{}:{fromChildId:r.fromChildId},points:(t.sections??[]).flatMap(e=>[e.startPoint,...e.bendPoints??[],e.endPoint])}});return Object.freeze({width:n.width??P_,height:n.height??I_(0),nodes:Object.freeze(r.map(e=>Object.freeze(e))),edges:Object.freeze(i.map(e=>Object.freeze({...e,points:Object.freeze(e.points.map(e=>Object.freeze(e)))})))})}var L_={diagram:`_diagram_1akxc_1`,dragging:`_dragging_1akxc_45`,canvas:`_canvas_1akxc_50`,canvasLoading:`_canvasLoading_1akxc_56`,edges:`_edges_1akxc_60`,edgeActive:`_edgeActive_1akxc_80`,edgeLabel:`_edgeLabel_1akxc_85`,edgeLabelActive:`_edgeLabelActive_1akxc_101`,stage:`_stage_1akxc_105`,stageCard:`_stageCard_1akxc_116`,stageTitleRow:`_stageTitleRow_1akxc_127`,chips:`_chips_1akxc_137`,metrics:`_metrics_1akxc_138`,stageTotals:`_stageTotals_1akxc_139`,children:`_children_1akxc_152`,childCard:`_childCard_1akxc_158`,childCardWithoutStatus:`_childCardWithoutStatus_1akxc_165`,childStatusDot:`_childStatusDot_1akxc_174`,collapsedStatusDot:`_collapsedStatusDot_1akxc_179`,collapsedStatusDots:`_collapsedStatusDots_1akxc_183`,childTitle:`_childTitle_1akxc_189`,childKindIcon:`_childKindIcon_1akxc_195`,"active-run-pulse":`_active-run-pulse_1akxc_1`,srOnly:`_srOnly_1akxc_258`},R_={width:0,height:0,nodes:[],edges:[]},z_={activity:fre.faRobot,watch:A_.faEye,"watch-gate":A_.faEye,reactor:k_.faBolt};function B_(e,t){let[n,r]=(0,C.useState)(R_);return(0,C.useEffect)(()=>{if(t===`DOWN`){r(R_);return}let n=!0;return hre(e,t).then(e=>{n&&r(e)}),()=>{n=!1}},[e,t]),n}function gre(){let[e,t]=(0,C.useState)(()=>globalThis.matchMedia?.(`(max-width: 48rem)`).matches?`DOWN`:`RIGHT`);return(0,C.useEffect)(()=>{let e=globalThis.matchMedia?.(`(max-width: 48rem)`);if(e===void 0)return;let n=()=>t(e.matches?`DOWN`:`RIGHT`);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function _re(e){let t=(0,C.useRef)(null),n=(0,C.useRef)(new Map),[r,i]=(0,C.useState)(new Map),a=(0,C.useCallback)((e,t)=>{t===null?n.current.delete(e):n.current.set(e,t)},[]);return(0,C.useLayoutEffect)(()=>{let r=t.current;if(r===null||e.nodes.length===0)return;let a=()=>{let e=r.getBoundingClientRect(),t=new Map;for(let[r,i]of n.current){let n=i.getBoundingClientRect();t.set(r,{left:n.left-e.left,top:n.top-e.top,right:n.right-e.left,bottom:n.bottom-e.top});for(let n of i.querySelectorAll(`[data-diagram-child]`)){let i=n.getBoundingClientRect(),a=n.dataset.diagramChild;a!==void 0&&t.set(`${r}:${a}`,{left:i.left-e.left,top:i.top-e.top,right:i.right-e.left,bottom:i.bottom-e.top})}}i(t)};a();let o=globalThis.ResizeObserver===void 0?void 0:new ResizeObserver(a);o?.observe(r);for(let e of n.current.values())o?.observe(e);return()=>o?.disconnect()},[e]),{anchors:r,canvasRef:t,stageRef:a}}function V_(e){return e.totalTokens===void 0?null:(0,T.jsx)(g_,{usage:{totalTokens:e.totalTokens,...e.inputTokens===void 0?{}:{inputTokens:e.inputTokens},...e.outputTokens===void 0?{}:{outputTokens:e.outputTokens},...e.cacheReadTokens===void 0?{}:{cacheReadTokens:e.cacheReadTokens},...e.cacheWriteTokens===void 0?{}:{cacheWriteTokens:e.cacheWriteTokens}}})}function H_(e){return e.kind===`reactor`||e.runCount===void 0&&e.totalDurationMs===void 0&&e.totalCostUsd===void 0&&e.totalTokens===void 0?null:(0,T.jsxs)(`div`,{className:L_.metrics,children:[e.runCount===void 0?null:(0,T.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,T.jsx)(`span`,{children:f_(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,T.jsx)(`span`,{children:u_(e.totalCostUsd)}),e.totalTokens===void 0?null:V_(e)]})}function vre({child:e,onHover:t,showStatus:n}){let r=(e.activeRuns?.length??0)>0,i=U_(e,r);return(0,T.jsxs)(`article`,{className:`${L_.childCard} ${c_.childRun} ${n?``:L_.childCardWithoutStatus}`,"data-diagram-child":e.id,"data-kind":e.kind,onMouseEnter:()=>t(e.id),onMouseLeave:()=>t(void 0),children:[n?(0,T.jsx)(`span`,{"aria-label":r?`active run`:`${i} status`,className:`${c_.childRunDot} ${L_.childStatusDot}`,"data-status":i,"data-active-run":r||void 0,"data-testid":`child-status-${e.id}`,role:`img`}):null,(0,T.jsxs)(`div`,{children:[(0,T.jsxs)(`div`,{className:`${c_.childRunTitle} ${L_.childTitle}`,children:[(0,T.jsx)(Vg,{className:L_.childKindIcon,icon:z_[e.kind]}),(0,T.jsx)(`span`,{children:e.label})]}),H_(e),e.kind===`reactor`?null:e.activeRuns?.map(e=>(0,T.jsxs)(`div`,{className:c_.childRunMeta,children:[(0,T.jsxs)(`span`,{children:[e.activity,` running`]}),e.runnerName===void 0?null:(0,T.jsxs)(T.Fragment,{children:[` `,`· `,(0,T.jsx)(`span`,{children:e.runnerName})]}),` · `,(0,T.jsx)(`span`,{children:f_(Math.max(0,Date.now()-new Date(e.startedAt).getTime()))})]},e.runId))]})]})}function U_(e,t=!1){if(t)return`active`;if(e.lastOutcome===void 0)return e.status??`pending`;switch(m_(e.lastOutcome)){case`good`:return`completed`;case`warning`:return`blocked`;case`bad`:return`failed`;case`info`:return`needs-clarification`;case`neutral`:return`pending`}}function W_(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=1;n<e.length;n+=1){let r=e[n-1],i=e[n],a=e[n+1];if(a===void 0){t+=` L ${i.x} ${i.y}`;continue}let o=Math.min(10,Math.hypot(i.x-r.x,i.y-r.y)/2),s=Math.min(10,Math.hypot(a.x-i.x,a.y-i.y)/2),c={x:i.x+(r.x-i.x)*o/Math.hypot(r.x-i.x,r.y-i.y),y:i.y+(r.y-i.y)*o/Math.hypot(r.x-i.x,r.y-i.y)},l={x:i.x+(a.x-i.x)*s/Math.hypot(a.x-i.x,a.y-i.y),y:i.y+(a.y-i.y)*s/Math.hypot(a.x-i.x,a.y-i.y)};t+=` L ${c.x} ${c.y} Q ${i.x} ${i.y} ${l.x} ${l.y}`}return t}function G_(e,t){return e.fromChildId===void 0?t.stages.find(t=>t.id===e.from)?.children.find(e=>e.kind===`activity`)?.id:e.fromChildId}function K_(e,t,n,r,i){if(e.points.length===0)return e.points;let a=n.get(e.from),o=t.stages.find(t=>t.id===e.from),s=G_(e,t),c=o?.children.findIndex(e=>e.id===s)??-1,l=r.get(s===void 0?e.from:`${e.from}:${s}`),u=r.get(e.to);if(l!==void 0&&u!==void 0){let n=i===`RIGHT`?{x:l.right,y:(l.top+l.bottom)/2}:{x:(l.left+l.right)/2,y:l.bottom},a=i===`RIGHT`?{x:u.left,y:u.top+16}:{x:(u.left+u.right)/2,y:u.top};if(i===`RIGHT`){let i=t.stages.filter(t=>t.id!==e.from&&t.id!==e.to).map(e=>r.get(e.id)).filter(e=>e!==void 0&&e.left>=n.x&&e.right<=a.x);if(i.length>0){let e=Math.max(l.bottom,u.bottom,...i.map(e=>e.bottom))+24,t=n.x+18,r=a.x-18;return[n,{x:t,y:n.y},{x:t,y:e},{x:r,y:e},{x:r,y:a.y},a]}if(n.y===a.y)return[n,a];let o=(n.x+a.x)/2;return[n,{x:o,y:n.y},{x:o,y:a.y},a]}if(n.x===a.x)return[n,a];let o=(n.y+a.y)/2;return[n,{x:n.x,y:o},{x:a.x,y:o},a]}if(s===void 0||a===void 0||c<0)return e.points;let d=57+c*59+27;return[i===`RIGHT`?{x:a.x+a.width,y:a.y+d}:{x:a.x+a.width/2,y:a.y+d+52},...e.points.slice(1)]}function yre(e){if(e.length===0)return;if(e.length===1)return e[0];let t=e.slice(1).map((t,n)=>Math.hypot(t.x-e[n].x,t.y-e[n].y)),n=t.reduce((e,t)=>e+t,0)/2,r=0;for(let i=0;i<t.length;i+=1){let a=t[i];if(r+a>=n){let t=e[i],o=e[i+1],s=(n-r)/a;return{x:t.x+(o.x-t.x)*s,y:t.y+(o.y-t.y)*s}}r+=a}return e.at(-1)}function q_({diagram:e}){let t=gre(),n=B_(e,t),{anchors:r,canvasRef:i,stageRef:a}=_re(n),o=(0,C.useRef)(void 0),[s,c]=(0,C.useState)(!1),[l,u]=(0,C.useState)(()=>{let t=e.stages.filter(e=>(e.activeRuns?.length??0)>0||e.children.some(e=>(e.activeRuns?.length??0)>0));return new Set(t.map(e=>e.id))}),[d,f]=(0,C.useState)(),p=e.stages.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0||e.children.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0)),m=new Map(n.nodes.map(e=>[e.id,e])),h=l.size>0,g=n.width||(t===`RIGHT`?e.stages.length*352:300),_=n.edges.flatMap(n=>K_(n,e,m,r,t)),v=Math.max(0,...Array.from(r.values(),e=>e.bottom),..._.map(e=>e.y)),y=t===`RIGHT`&&v>0?v+20:n.height||(t===`RIGHT`?176:e.stages.length*172),b=t===`DOWN`||n.nodes.length>0&&r.size>0,x=e=>{if(t!==`RIGHT`||e.button!==0)return;let n=e.currentTarget;o.current={pointerId:e.pointerId,startX:e.clientX,scrollLeft:n.scrollLeft},n.setPointerCapture(e.pointerId),c(!0)},S=e=>{let t=o.current;t!==void 0&&t.pointerId===e.pointerId&&(e.currentTarget.scrollLeft=t.scrollLeft-(e.clientX-t.startX))},ee=e=>{o.current?.pointerId===e.pointerId&&(o.current=void 0,c(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))};return(0,T.jsx)(`section`,{"aria-label":`Workflow ${e.label}`,className:`${L_.diagram} ${s?L_.dragging:``}`,"data-direction":t,onPointerCancel:ee,onPointerDown:x,onPointerMove:S,onPointerUp:ee,children:(0,T.jsxs)(`div`,{ref:i,className:`${L_.canvas} ${b?``:L_.canvasLoading}`,"data-direction":t,style:{"--graph-width":`${g}px`,"--graph-height":`${y}px`},children:[(0,T.jsxs)(`svg`,{className:L_.edges,"aria-hidden":`true`,viewBox:`0 0 ${g} ${y}`,preserveAspectRatio:`none`,children:[(0,T.jsx)(`defs`,{children:(0,T.jsx)(`marker`,{id:`workflow-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`7`,refY:`4`,orient:`auto`,children:(0,T.jsx)(`path`,{d:`M 0 0 L 8 4 L 0 8 z`,fill:`context-stroke`})})}),n.edges.map(n=>{let i=K_(n,e,m,r,t),a=G_(n,e)===d;return(0,T.jsx)(`g`,{className:a?L_.edgeActive:L_.edge,children:(0,T.jsx)(`path`,{d:W_(i),markerEnd:`url(#workflow-arrow)`})},n.id)})]}),n.edges.map(n=>{let i=yre(K_(n,e,m,r,t)),a=G_(n,e)===d;return i===void 0||n.label.length===0?null:(0,T.jsx)(`span`,{className:`${L_.edgeLabel} ${a?L_.edgeLabelActive:``}`,style:{left:`${i.x}px`,top:`${i.y}px`},children:n.label},`${n.id}-label`)}),e.stages.map((e,n)=>{let r=m.get(e.id),i=t===`RIGHT`||l.has(e.id),o=t===`RIGHT`?n*352:18,s=t===`RIGHT`?20:n*172,c=e.runCount!==void 0||e.totalDurationMs!==void 0||e.totalCostUsd!==void 0||e.totalTokens!==void 0,d=()=>u(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n});return(0,T.jsxs)(`div`,{className:`${L_.stage} ${c_.card}`,ref:t=>a(e.id,t),role:`group`,"aria-label":`Stage ${e.id}`,style:t===`RIGHT`?{left:`${r?.x??o}px`,top:`${r?.y??s}px`,width:`${r?.width??264}px`}:void 0,children:[(0,T.jsxs)(`div`,{"aria-expanded":t===`DOWN`?i:void 0,className:`${L_.stageCard} ${c_.cardLink}`,onClick:t===`DOWN`?d:void 0,onKeyDown:t===`DOWN`?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,role:t===`DOWN`?`button`:void 0,tabIndex:t===`DOWN`?0:void 0,children:[(0,T.jsx)(`div`,{children:(0,T.jsx)(`div`,{className:L_.stageTitleRow,children:(0,T.jsx)(`strong`,{className:c_.cardTitle,children:e.label})})}),t===`DOWN`&&p&&!i?(0,T.jsx)(`span`,{className:L_.collapsedStatusDots,children:e.children.map(t=>(0,T.jsx)(`span`,{"aria-label":`${U_(t,(t.activeRuns?.length??0)>0)} status`,className:`${c_.childRunDot} ${L_.childStatusDot} ${L_.collapsedStatusDot}`,"data-active-run":(t.activeRuns?.length??0)>0||void 0,"data-status":U_(t,(t.activeRuns?.length??0)>0),"data-testid":`collapsed-status-${e.id}-${t.id}`,role:`img`},t.id))}):null,c?(0,T.jsxs)(`div`,{className:L_.stageTotals,children:[e.runCount===void 0?null:(0,T.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,T.jsx)(`span`,{children:f_(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,T.jsx)(`span`,{children:u_(e.totalCostUsd)}),e.totalTokens===void 0?null:V_(e)]}):null]}),i?(0,T.jsx)(`div`,{className:L_.children,style:t===`DOWN`?{display:`grid`,visibility:`visible`}:void 0,children:e.children.map(e=>(0,T.jsx)(vre,{child:e,onHover:t===`RIGHT`?f:()=>void 0,showStatus:p},e.id))}):null]},e.id)}),h?null:(0,T.jsx)(`span`,{className:L_.srOnly,children:`All stages are collapsed.`})]})})}function bre(){let e=$f(),[t,n]=(0,C.useState)(`configuration`),r=_i({queryKey:Hg.system.configuration,queryFn:({signal:t})=>e.system.configuration(t),refetchInterval:Ug.configuration}),i=_i({queryKey:Hg.system.commands,queryFn:({signal:t})=>e.system.commands(t),refetchInterval:Ug.commands,enabled:t===`commands`}),a=_i({queryKey:Hg.workflowDiagrams.get(),queryFn:({signal:t})=>e.workflowDiagrams.get(void 0,t),refetchInterval:Ug.workflowDiagrams,enabled:t===`workflows`}),o=_i({queryKey:Hg.system.webhooks,queryFn:({signal:t})=>e.system.webhooks(t),refetchInterval:Ug.webhooks,enabled:t===`webhooks`}),s=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),r=t.indexOf(e.currentTarget);if(r<0)return;let i=e.key===`ArrowRight`?(r+1)%t.length:e.key===`ArrowLeft`?(r-1+t.length)%t.length:void 0;if(i===void 0)return;e.preventDefault();let a=t[i];a!==void 0&&(n(a.dataset.tab),a.focus())},c=(0,T.jsx)(qg,{actions:(0,T.jsxs)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void(t===`commands`?i.refetch():t===`workflows`?a.refetch():t===`webhooks`?o.refetch():r.refetch()),children:[`Refresh`,` `,t===`commands`?`commands`:t===`workflows`?`workflows`:t===`webhooks`?`webhooks`:`configuration`]})});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Configuration sections`,children:[(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`configuration`,id:`configuration-tab`,"aria-controls":`configuration-panel`,"aria-selected":t===`configuration`,tabIndex:t===`configuration`?0:-1,onKeyDown:s,onClick:()=>n(`configuration`),children:`Configuration`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`commands`,id:`commands-tab`,"aria-controls":`commands-panel`,"aria-selected":t===`commands`,tabIndex:t===`commands`?0:-1,onKeyDown:s,onClick:()=>n(`commands`),children:`Commands`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`webhooks`,id:`webhooks-tab`,"aria-controls":`webhooks-panel`,"aria-selected":t===`webhooks`,tabIndex:t===`webhooks`?0:-1,onKeyDown:s,onClick:()=>n(`webhooks`),children:`Webhooks`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`workflows`,id:`workflows-tab`,"aria-controls":`workflows-panel`,"aria-selected":t===`workflows`,tabIndex:t===`workflows`?0:-1,onKeyDown:s,onClick:()=>n(`workflows`),children:`Workflows`})]}),t===`commands`?(0,T.jsxs)(`section`,{id:`commands-panel`,role:`tabpanel`,"aria-labelledby":`commands-tab`,className:c_.tabPanel,children:[c,i.isPending?(0,T.jsx)(Zg,{label:`Loading commands`}):i.error&&!i.data?(0,T.jsx)($g,{error:i.error,retry:()=>void i.refetch()}):i.data&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`p`,{children:`Commands and actions recognized by each configured surface adapter.`}),i.data.data.adapters.length===0?(0,T.jsx)(Qg,{children:`No adapters expose commands`}):i.data.data.adapters.map(e=>(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`h2`,{children:e.adapter}),e.commands.length===0?(0,T.jsx)(Qg,{children:`No commands`}):(0,T.jsx)(`ul`,{children:e.commands.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(`code`,{children:e.syntax})},e.syntax))})]},e.adapter))]})]}):t===`webhooks`?(0,T.jsxs)(`section`,{id:`webhooks-panel`,role:`tabpanel`,"aria-labelledby":`webhooks-tab`,className:c_.tabPanel,children:[c,o.isPending?(0,T.jsx)(Zg,{label:`Loading webhook setup instructions`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data?.data.adapters.length===0?(0,T.jsx)(Qg,{children:`No webhook-enabled adapters are configured`}):o.data?.data.adapters.flatMap(e=>e.hooks.map(t=>(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`h2`,{children:t.scope}),(0,T.jsxs)(`p`,{children:[`Configure this webhook manually in `,e.provider,` when Wake cannot manage it.`]}),(0,T.jsxs)(`p`,{children:[`Payload URL: `,(0,T.jsx)(`code`,{children:t.endpoint})]}),(0,T.jsxs)(`p`,{children:[`Content type: `,(0,T.jsx)(`code`,{children:`application/json`})]}),(0,T.jsxs)(`p`,{children:[`Events: `,(0,T.jsx)(`code`,{children:t.events.join(`, `)})]}),(0,T.jsxs)(`p`,{children:[`Signing secret: `,(0,T.jsx)(`code`,{children:t.secret})]})]},`${e.adapter}:${t.scope}`)))]}):t===`workflows`?(0,T.jsxs)(`section`,{id:`workflows-panel`,role:`tabpanel`,"aria-labelledby":`workflows-tab`,className:c_.tabPanel,children:[c,a.isPending?(0,T.jsx)(Zg,{label:`Loading workflows`}):a.error&&!a.data?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):a.data?.data.diagrams.length===0?(0,T.jsx)(Qg,{children:`No workflows are configured`}):a.data?.data.diagrams.map(e=>(0,T.jsxs)(`section`,{"aria-labelledby":`workflow-${e.id}`,children:[(0,T.jsx)(`h2`,{id:`workflow-${e.id}`,children:e.label}),(0,T.jsx)(q_,{diagram:e})]},e.id))]}):(0,T.jsxs)(`section`,{id:`configuration-panel`,role:`tabpanel`,"aria-labelledby":`configuration-tab`,className:c_.tabPanel,children:[c,r.isPending?(0,T.jsx)(Zg,{label:`Loading redacted configuration`}):r.error&&!r.data?(0,T.jsx)($g,{error:r.error,retry:()=>void r.refetch()}):r.data&&(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`p`,{children:`Read-only effective configuration. Secrets are redacted by Wake.`}),(0,T.jsx)(t_,{value:r.data.data.configuration})]})]})]})}function J_(){let[e,t]=Un(),n=e.get(`cursor`)??void 0,r=e.getAll(`previous`);return{...n===void 0?{}:{cursor:n},hasPrevious:r.length>0,next(r){let i=new URLSearchParams(e);i.append(`previous`,n??``),i.set(`cursor`,r),t(i)},previous(){let n=r.at(-1);if(n===void 0)return;let i=new URLSearchParams(e);i.delete(`previous`);for(let e of r.slice(0,-1))i.append(`previous`,e);n===``?i.delete(`cursor`):i.set(`cursor`,n),t(i)},setFilter(n,r){let i=new URLSearchParams(e);r===``?i.delete(n):i.set(n,r),i.delete(`cursor`),i.delete(`previous`),t(i,{replace:!0})}}}function Y_({navigation:e,nextCursor:t,hasMore:n}){return(0,T.jsxs)(`nav`,{className:Kg.pagination,"aria-label":`Collection pages`,children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,disabled:!e.hasPrevious,onClick:e.previous,children:`Previous page`}),(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,disabled:!n||t===null,onClick:()=>t!==null&&e.next(t),children:`Next page`})]})}function xre(e,t,n){let r=new Intl.DateTimeFormat(t??`en-CA`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,...n===void 0?{}:{timeZone:n}}),i=Object.fromEntries(r.formatToParts(new Date(e)).map(e=>[e.type,e.value]));return`${i.year}-${i.month}-${i.day} ${i.hour}:${i.minute}`}function X_({value:e,locale:t,timeZone:n}){return(0,T.jsx)(`time`,{dateTime:e,title:e,"aria-label":`${xre(e,t,n)}; exact UTC ${e}`,children:xre(e,t,n)})}function Sre(){let e=$f(),t=J_();return(0,T.jsx)(Cre,{client:e,navigation:t},t.cursor??`initial`)}function Cre({client:e,navigation:t}){let n=(0,C.useRef)({page:t.cursor,live:t.cursor}),[r,i]=(0,C.useState)([]),a=_i({queryKey:Hg.events.list(t.cursor),queryFn:async({signal:t})=>e.events.list(n.current.live,void 0,t),refetchInterval:e=>e.state.data?.page.hasMore!==!0&&Ug.events});return(0,C.useEffect)(()=>{a.data!==void 0&&(i(e=>Q_(e,a.data.items)),!a.data.page.hasMore&&a.data.page.nextCursor!==null&&(n.current.live=a.data.page.nextCursor))},[a.data]),(0,T.jsx)(T.Fragment,{children:a.isPending?(0,T.jsx)(Zg,{label:`Loading events`}):a.error&&!a.data?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(wre,{records:r}),a.data&&(0,T.jsx)(Y_,{navigation:t,nextCursor:a.data.page.nextCursor,hasMore:a.data.page.hasMore})]})})}function Z_({record:e}){let[t,n]=(0,C.useState)(!1);return(0,T.jsxs)(`li`,{className:c_.event,children:[(0,T.jsxs)(`button`,{type:`button`,className:c_.eventButton,onClick:()=>n(e=>!e),"aria-expanded":t,children:[(0,T.jsx)(X_,{value:e.occurredAt}),(0,T.jsx)(`span`,{className:c_.eventType,children:e.type}),(0,T.jsx)(`span`,{className:c_.eventId,children:e.id}),(0,T.jsx)(`span`,{className:c_.eventChevron,"aria-hidden":`true`,children:t?`v`:`>`})]}),t&&(0,T.jsx)(`div`,{className:c_.eventPayload,children:(0,T.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})}function wre({records:e}){let[t,n]=(0,C.useState)(!1),[r,i]=(0,C.useState)(!1),[a,o]=(0,C.useState)(()=>[...e]),[s,c]=(0,C.useState)([]),l=(0,C.useRef)(a.at(-1)?.position??-1),u=t||r;(0,C.useEffect)(()=>{let e=()=>{let e=document.scrollingElement??document.documentElement;i(e.scrollHeight-e.scrollTop-e.clientHeight>1)};return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,C.useEffect)(()=>{let t=e.filter(e=>e.position>l.current);t.length!==0&&(u?c(e=>Q_(e,t)):(o(e=>Q_(e,t)),l.current=t.at(-1).position))},[e,u]);let d=(0,C.useMemo)(()=>[...a].sort((e,t)=>t.position-e.position),[a]),f=()=>{o(e=>Q_(e,s)),l.current=Math.max(l.current,...s.map(e=>e.position)),c([]),n(!1),i(!1)};return(0,T.jsxs)(`section`,{children:[(0,T.jsxs)(`div`,{className:c_.toolbar,children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>u?f():n(!0),children:u?`Resume live view`:`Pause live view`}),s.length>0&&(0,T.jsxs)(Yg,{type:`button`,onClick:f,"aria-live":`polite`,children:[s.length,` new `,s.length===1?`event`:`events`]})]}),d.length===0?(0,T.jsx)(Qg,{children:`No events`}):(0,T.jsx)(`ol`,{className:c_.eventList,children:d.map(e=>(0,T.jsx)(Z_,{record:e},e.id))})]})}function Q_(e,t,n=200){return[...new Map([...e,...t].map(e=>[e.id,e])).values()].sort((e,t)=>e.position-t.position).slice(-n)}function $_({caption:e,rows:t,rowKey:n,columns:r,tableClassName:i}){return(0,T.jsx)(`div`,{className:Kg.tableWrap,children:(0,T.jsxs)(`table`,{className:[Kg.table,i].filter(Boolean).join(` `),children:[(0,T.jsx)(`caption`,{children:e}),(0,T.jsx)(`thead`,{children:(0,T.jsx)(`tr`,{children:r.map(e=>(0,T.jsx)(`th`,{scope:`col`,children:e.label},e.label))})}),(0,T.jsx)(`tbody`,{children:t.map(e=>(0,T.jsx)(`tr`,{children:r.map(t=>(0,T.jsx)(`td`,{"data-label":t.label,children:(0,T.jsx)(`div`,{children:t.render(e)})},t.label))},n(e)))})]})})}function ev(){let e=$f(),[t,n]=(0,C.useState)(`overview`),r=[[`overview`,`Overview`],[`adapters`,`Adapter health`],[`runners`,`Runner availability`],[`maintenance`,`Maintenance recovery`]],i=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),n=t.indexOf(e.currentTarget),r=e.key===`ArrowRight`?(n+1)%t.length:e.key===`ArrowLeft`?(n-1+t.length)%t.length:e.key===`Home`?0:e.key===`End`?t.length-1:void 0;r!==void 0&&(e.preventDefault(),t[r]?.click(),t[r]?.focus())},a=ni(),o=_i({queryKey:Hg.system.health,queryFn:({signal:t})=>e.system.health(t),refetchInterval:Ug.health}),s=_i({queryKey:Hg.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Ug.runners}),c=_i({queryKey:Hg.controlPlane.status,queryFn:({signal:t})=>e.controlPlane.status(t),refetchInterval:Ug.status}),l=vi({mutationKey:[`control-plane`,`clear-maintenance`],mutationFn:t=>e.controlPlane.clearMaintenance(t,crypto.randomUUID()),onSuccess:()=>{a.invalidateQueries({queryKey:Hg.controlPlane.status}),a.invalidateQueries({queryKey:Hg.system.health})}}),u=async(t,n)=>{let r=crypto.randomUUID();n?await e.execution.unpauseRunner(t,r):await e.execution.pauseRunner(t,r),await s.refetch()};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Health sections`,children:r.map(([e,r])=>(0,T.jsx)(`button`,{type:`button`,role:`tab`,id:`health-${e}-tab`,"aria-controls":`health-${e}-panel`,"aria-selected":t===e,tabIndex:t===e?0:-1,onKeyDown:i,onClick:()=>n(e),children:r},e))}),(0,T.jsxs)(`section`,{className:c_.tabPanel,role:`tabpanel`,id:`health-${t}-panel`,"aria-labelledby":`health-${t}-tab`,children:[(0,T.jsx)(qg,{actions:(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>{o.refetch(),s.refetch(),c.refetch()},children:`Refresh health`})}),t===`overview`&&(0,T.jsx)(T.Fragment,{children:o.isPending?(0,T.jsx)(Zg,{label:`Checking health`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data&&(0,T.jsx)(tv,{health:o.data.data})}),t===`maintenance`&&(0,T.jsx)(T.Fragment,{children:c.isPending?(0,T.jsx)(Zg,{label:`Checking maintenance`}):c.error&&!c.data?(0,T.jsx)($g,{error:c.error,retry:()=>void c.refetch()}):c.data?.data.maintenanceLease?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Maintenance recovery`}),(0,T.jsxs)(Jg,{children:[(0,T.jsx)(Xg,{tone:c.data.data.maintenanceLease.phase===`failed`?`bad`:`warning`,children:c.data.data.maintenanceLease.phase}),(0,T.jsxs)(`p`,{children:[`Started: `,c.data.data.maintenanceLease.startedAt]}),c.data.data.maintenanceLease.failure?(0,T.jsxs)(`p`,{children:[`Failure: `,c.data.data.maintenanceLease.failure]}):(0,T.jsx)(Qg,{children:`No maintenance lease`}),c.data.data.maintenanceLease.phase===`failed`?(0,T.jsx)(Yg,{type:`button`,disabled:l.isPending,onClick:()=>{window.confirm(`Clear this failed maintenance lease? This immediately resumes intake and dispatch. Confirm the update attempt is abandoned.`)&&l.mutate(c.data.data.maintenanceLease.attemptId)},children:`Clear failed maintenance`}):(0,T.jsx)(`p`,{children:`Maintenance is active and cannot be cleared until the update fails.`})]})]}):(0,T.jsx)(Qg,{children:`No maintenance lease`})}),t===`adapters`&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Adapter health`}),o.isPending?(0,T.jsx)(Zg,{label:`Checking adapters`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data&&(o.data.data.adapters?.length??0)===0?(0,T.jsx)(Qg,{children:`No adapter health reported`}):o.data&&(0,T.jsx)($_,{caption:`Adapter health`,tableClassName:c_.adapterHealthTable,rows:o.data.data.adapters,rowKey:e=>`${e.adapter}:${e.scope}:${e.channel}`,columns:[{label:`Adapter`,render:e=>e.adapter},{label:`Scope`,render:e=>e.scope},{label:`Channel`,render:e=>e.channel},{label:`Status`,render:e=>(0,T.jsx)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:e.status})},{label:`Successes`,render:e=>e.successCount},{label:`Failures`,render:e=>e.failureCount},{label:`Detail`,render:e=>e.detail??`—`}]})]}),t===`runners`&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Runner availability`}),s.isPending?(0,T.jsx)(Zg,{label:`Loading runners`}):s.error&&!s.data?(0,T.jsx)($g,{error:s.error,retry:()=>void s.refetch()}):(s.data?.items.length??0)===0?(0,T.jsx)(Qg,{children:`No runners configured`}):(0,T.jsx)($_,{caption:`Runner availability`,rows:s.data.items,rowKey:e=>e.runnerId,columns:[{label:`Runner`,render:e=>e.runnerId},{label:`Availability`,render:e=>(0,T.jsx)(Xg,{tone:e.available?`good`:`warning`,children:e.status})},{label:`Detail`,render:e=>e.detail??`—`},{label:`Control`,render:e=>(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void u(e.runnerId,!e.available),children:e.available?`Pause`:`Unpause`})}]})]})]})]})}function tv({health:e}){let t=e.checks??[],n=t.filter(e=>e.status===`ok`),r=t.filter(e=>e.status===`degraded`),i=[...r,...n];return(0,T.jsxs)(`div`,{className:c_.healthOverview,children:[(0,T.jsx)(Jg,{children:(0,T.jsxs)(`div`,{className:c_.healthSummary,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:c_.healthEyebrow,children:`System health`}),(0,T.jsxs)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:[`Wake `,e.status]})]}),(0,T.jsxs)(`dl`,{className:c_.healthMeta,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`dt`,{children:`Version`}),(0,T.jsx)(`dd`,{children:e.version})]}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`dt`,{children:`Last checked`}),(0,T.jsx)(`dd`,{children:(0,T.jsx)(`time`,{dateTime:e.checkedAt,children:new Date(e.checkedAt).toLocaleString()})})]})]})]})}),(0,T.jsxs)(Jg,{labelledBy:`health-checks-title`,children:[(0,T.jsxs)(`div`,{className:c_.healthChecksHeader,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:c_.healthEyebrow,children:`Checks`}),(0,T.jsx)(`h2`,{id:`health-checks-title`,children:`System checks`})]}),(0,T.jsxs)(`div`,{className:c_.healthCounts,"aria-label":`Health check counts`,children:[(0,T.jsxs)(`span`,{children:[n.length,` healthy`]}),r.length>0&&(0,T.jsxs)(`span`,{children:[r.length,` need attention`]})]})]}),i.length===0?(0,T.jsx)(Qg,{children:`No health checks reported`}):(0,T.jsx)(`ul`,{className:c_.healthCheckList,children:i.map(e=>(0,T.jsxs)(`li`,{children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`strong`,{children:e.name}),e.detail&&(0,T.jsx)(`span`,{children:e.detail})]}),(0,T.jsx)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:e.status===`ok`?`Healthy`:`Needs attention`})]},e.name))})]})]})}function nv({label:e,value:t}){return(0,T.jsxs)(`div`,{className:Kg.tile,role:`group`,"aria-label":e,children:[(0,T.jsx)(`div`,{className:Kg.tileValue,children:t}),(0,T.jsx)(`div`,{className:Kg.tileLabel,children:e})]})}var rv={controls:`_controls_unps5_1`,legend:`_legend_unps5_2`,chart:`_chart_unps5_23`,table:`_table_unps5_31`};function Tre(){let[e,t]=(0,C.useState)(`reports`),n=[[`reports`,`Reports`],[`activity`,`System activity`]],r=n=>{if(![`ArrowRight`,`ArrowLeft`,`Home`,`End`].includes(n.key))return;n.preventDefault();let r=n.key===`Home`?`reports`:n.key===`End`||e===`reports`?`activity`:`reports`;t(r),document.getElementById(`analytics-${r}-tab`)?.focus()};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(qg,{}),(0,T.jsx)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Analytics sections`,children:n.map(([n,i])=>(0,T.jsx)(`button`,{type:`button`,role:`tab`,id:`analytics-${n}-tab`,"aria-controls":`analytics-${n}-panel`,"aria-selected":e===n,tabIndex:e===n?0:-1,onClick:()=>t(n),onKeyDown:r,children:i},n))}),(0,T.jsx)(`section`,{className:c_.tabPanel,role:`tabpanel`,id:`analytics-${e}-panel`,"aria-labelledby":`analytics-${e}-tab`,children:e===`reports`?(0,T.jsx)(av,{}):(0,T.jsx)(iv,{})})]})}function iv(){let e=$f(),t=_i({queryKey:Hg.observability.metrics(1),queryFn:({signal:t})=>e.observability.metrics(1,t),refetchInterval:Ug.observability});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void t.refetch(),children:`Refresh metrics`}),t.isPending?(0,T.jsx)(Zg,{label:`Loading metrics`}):t.error?(0,T.jsx)($g,{error:t.error,retry:()=>void t.refetch()}):(0,T.jsx)(`div`,{className:c_.tiles,children:Object.entries(t.data.data.values).map(([e,t])=>(0,T.jsx)(nv,{label:e,value:String(t)},e))})]})}function av(){let e=$f(),[t,n]=(0,C.useState)(ud.Day),[r,i]=(0,C.useState)(),a=_i({queryKey:[`observability`,`reports`],queryFn:({signal:t})=>e.observability.reports(t)}),o=r??a.data?.data[0]?.id,s=_i({queryKey:[`observability`,`summary`,t,o],queryFn:({signal:n})=>e.observability.summary(t,n),enabled:o!==void 0}),c=_i({queryKey:[`observability`,`report`,t,o],queryFn:({signal:n})=>e.observability.report(t,o,n),enabled:o!==void 0});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:rv.controls,children:[(0,T.jsxs)(`label`,{children:[`Window`,` `,(0,T.jsx)(`select`,{value:t,onChange:e=>{let t=Object.values(ud).find(t=>t===e.target.value);t!==void 0&&n(t)},children:Object.values(ud).map(e=>(0,T.jsx)(`option`,{value:e,children:e},e))})]}),(0,T.jsxs)(`label`,{children:[`Report`,` `,(0,T.jsx)(`select`,{value:o??``,onChange:e=>i(e.target.value),disabled:a.isPending,children:a.data?.data.map(({id:e,title:t})=>(0,T.jsx)(`option`,{value:e,children:t},e))})]})]}),a.isPending?(0,T.jsx)(Zg,{label:`Loading reports`}):a.error?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):a.data.data.length===0?(0,T.jsx)(Qg,{children:`No reports registered`}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`section`,{"aria-label":`Summary tiles`,children:s.isPending?(0,T.jsx)(Zg,{label:`Loading summary`}):s.error?(0,T.jsx)($g,{error:s.error,retry:()=>void s.refetch()}):(0,T.jsx)(Ere,{data:s.data.data})}),(0,T.jsx)(`section`,{"aria-label":`Selected report`,children:c.isPending?(0,T.jsx)(Zg,{label:`Loading report`}):c.error?(0,T.jsx)($g,{error:c.error,retry:()=>void c.refetch()}):`statistics`in c.data.data?(0,T.jsx)(Ore,{data:c.data.data}):`dimensions`in c.data.data?(0,T.jsx)(Dre,{data:c.data.data}):(0,T.jsx)(cv,{data:c.data.data})})]})]})}function Ere({data:e}){let t=e=>e===null?`No data`:`${(e/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} s`,n=[[`Runs`,e.runs.toLocaleString()],[`Completed`,e.completed.toLocaleString()],[`Blocked or awaiting approval`,e.blockedOrAwaitingApproval.toLocaleString()],[`Failed`,e.failed.toLocaleString()],[`Total tokens`,e.totalTokens.toLocaleString()],[`Total cost (USD)`,`$${e.totalCostUsd.toFixed(4)}`],[`Median run duration`,t(e.medianRunDurationMs)],[`Work items done`,e.workItemsDone.toLocaleString()],[`Median end-to-end duration`,t(e.medianEndToEndDurationMs)]];return(0,T.jsx)(`div`,{className:c_.tiles,children:n.map(([e,t])=>(0,T.jsx)(nv,{label:e,value:t},e))})}function ov(e,t){return t===`USD`?`$`+e.toFixed(4):e.toLocaleString()}var sv=[`#36a269`,`#c58a31`,`#687bd3`,`#d15b65`,`#8b929e`];function cv({data:e}){if(e.series.some(e=>e.unit!==void 0)&&e.series.length>1)return(0,T.jsx)(T.Fragment,{children:e.series.map(t=>(0,T.jsx)(cv,{data:{...e,report:{...e.report,title:t.title},series:[t],buckets:e.buckets.map(e=>({...e,values:{[t.id]:e.values[t.id]??0}}))}},t.id))});let t=Math.max(0,...e.buckets.map(e=>Object.values(e.values).reduce((e,t)=>e+t,0))),n=t||1,r=800/Math.max(1,e.buckets.length);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsx)(`div`,{className:rv.legend,children:e.series.map(({id:t,title:n},r)=>(0,T.jsxs)(`span`,{children:[(0,T.jsx)(`i`,{style:{backgroundColor:sv[r%sv.length]}}),n,`: `,ov(e.totals[t]??0,e.series[r]?.unit)]},t))}),(0,T.jsxs)(`svg`,{className:rv.chart,viewBox:`0 0 800 228`,role:`img`,"aria-label":e.report.title,children:[(0,T.jsxs)(`text`,{x:`0`,y:`12`,children:[ov(t,e.series[0]?.unit),` `,e.series[0]?.unit??`runs`]}),e.buckets.map((t,i)=>{let a=0;return(0,T.jsxs)(`g`,{children:[(0,T.jsxs)(`title`,{children:[t.from,`:`,` `,e.series.map(({id:e,title:n,unit:r})=>`${n} ${ov(t.values[e]??0,r)}`).join(`, `)]}),e.series.map(({id:e},o)=>{let s=(t.values[e]??0)/n*180;return a+=s,(0,T.jsx)(`rect`,{x:i*r+1,y:200-a,width:Math.max(1,r-2),height:s,fill:sv[o%sv.length]},e)}),i%Math.max(1,Math.ceil(e.buckets.length/5))===0&&(0,T.jsx)(`text`,{x:i*r,y:220,children:new Date(t.from).toISOString().slice(5,16).replace(`T`,` `)})]},t.from)}),(0,T.jsx)(`line`,{x1:`0`,y1:200,x2:800,y2:200,stroke:`currentColor`})]}),e.durationRows!==void 0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`p`,{children:`Completion means the first primary workflow completion per work item; child workflows are excluded.`}),(0,T.jsxs)(`p`,{children:[`Duration rows exclude missing, invalid, or inconsistent timestamps (completion before creation). Excluded: `,e.excludedDurationCount??0,`. Completion counts still include these items.`]}),Object.values(e.totals).every(e=>e===0)?(0,T.jsx)(Qg,{children:`No completed work items in this window`}):e.durationRows.length===0?(0,T.jsx)(Qg,{children:`No valid work item durations in this window`}):(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Work item durations`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Work item`}),(0,T.jsx)(`th`,{children:`Created (UTC)`}),(0,T.jsx)(`th`,{children:`Completed (UTC)`}),(0,T.jsx)(`th`,{children:`End-to-end duration`})]})}),(0,T.jsx)(`tbody`,{children:e.durationRows.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsxs)(`th`,{scope:`row`,children:[e.title,` (`,e.id,`)`]}),(0,T.jsx)(`td`,{children:e.createdAt}),(0,T.jsx)(`td`,{children:e.completedAt}),(0,T.jsxs)(`td`,{children:[(e.durationMs/1e3).toLocaleString(),` s`]})]},e.id))})]})})]}),(0,T.jsxs)(`details`,{children:[(0,T.jsx)(`summary`,{children:`Bucket values`}),(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":(e.series[0]?.unit,`${e.report.title} by bucket`),children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Bucket start (UTC)`}),e.series.map(({id:e,title:t})=>(0,T.jsx)(`th`,{children:t},e))]})}),(0,T.jsx)(`tbody`,{children:e.buckets.map(t=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:t.from}),e.series.map(({id:e,unit:n})=>(0,T.jsx)(`td`,{children:ov(t.values[e]??0,n)},e))]},t.from))})]})})]})]})}function Dre({data:e}){let[t,n]=(0,C.useState)(),r=e.dimensions.find(({id:e})=>e===t)??e.dimensions[0];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsxs)(`label`,{children:[`Dimension`,` `,(0,T.jsx)(`select`,{value:r?.id??``,onChange:e=>n(e.target.value),children:e.dimensions.map(({id:e,title:t})=>(0,T.jsx)(`option`,{value:e,children:t},e))})]}),e.total===0?(0,T.jsx)(Qg,{children:`No runs in this window`}):(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run breakdowns by dimension`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:r?.title}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Share`})]})}),(0,T.jsx)(`tbody`,{children:r?.rows.map(({value:e,count:t,share:n})=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e}),(0,T.jsx)(`td`,{children:t.toLocaleString()}),(0,T.jsxs)(`td`,{children:[(n*100).toLocaleString(void 0,{maximumFractionDigits:1}),`%`]})]},e))})]})})]})}function Ore({data:e}){let t=e=>e===null?`No data`:`${(e/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} s`;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsx)(`p`,{children:`Unfinished runs and runs without valid start/finish timestamps are excluded. Counts show qualifying runs.`}),(0,T.jsxs)(`p`,{children:[`Median: `,t(e.statistics.medianMs),`; Average: `,t(e.statistics.averageMs)]}),e.statistics.count===0&&(0,T.jsx)(Qg,{children:`No valid run durations in this window`}),e.groups.map(e=>(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run duration by ${e.title}`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:e.title}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Median`}),(0,T.jsx)(`th`,{children:`Average`})]})}),(0,T.jsx)(`tbody`,{children:e.rows.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e.value}),(0,T.jsx)(`td`,{children:e.count}),(0,T.jsx)(`td`,{children:(0,T.jsx)(`strong`,{children:t(e.medianMs)})}),(0,T.jsx)(`td`,{children:t(e.averageMs)})]},e.value))})]})},e.id)),(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run duration over time`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Bucket start (UTC)`}),(0,T.jsx)(`th`,{children:`Bucket end (UTC)`}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Median`}),(0,T.jsx)(`th`,{children:`Average`})]})}),(0,T.jsx)(`tbody`,{children:e.buckets.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e.from}),(0,T.jsx)(`td`,{children:e.to}),(0,T.jsx)(`td`,{children:e.count}),(0,T.jsx)(`td`,{children:(0,T.jsx)(`strong`,{children:t(e.medianMs)})}),(0,T.jsx)(`td`,{children:t(e.averageMs)})]},e.from))})]})})]})}function kre(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Are=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jre=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mre={};function Nre(e,t){return((t||Mre).jsx?jre:Are).test(e)}var Pre=/[ \t\n\f\r]/g;function lv(e){return typeof e==`object`?e.type===`text`&&uv(e.value):uv(e)}function uv(e){return e.replace(Pre,``)===``}var dv=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};dv.prototype.normal={},dv.prototype.property={},dv.prototype.space=void 0;function fv(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new dv(n,r,t)}function pv(e){return e.toLowerCase()}var mv=class{constructor(e,t){this.attribute=t,this.property=e}};mv.prototype.attribute=``,mv.prototype.booleanish=!1,mv.prototype.boolean=!1,mv.prototype.commaOrSpaceSeparated=!1,mv.prototype.commaSeparated=!1,mv.prototype.defined=!1,mv.prototype.mustUseProperty=!1,mv.prototype.number=!1,mv.prototype.overloadedBoolean=!1,mv.prototype.property=``,mv.prototype.spaceSeparated=!1,mv.prototype.space=void 0;var hv=s({boolean:()=>gv,booleanish:()=>_v,commaOrSpaceSeparated:()=>O,commaSeparated:()=>xv,number:()=>yv,overloadedBoolean:()=>vv,spaceSeparated:()=>bv}),Fre=0,gv=Sv(),_v=Sv(),vv=Sv(),yv=Sv(),bv=Sv(),xv=Sv(),O=Sv();function Sv(){return 2**++Fre}var Cv=Object.keys(hv),wv=class extends mv{constructor(e,t,n,r){let i=-1;if(super(e,t),Tv(this,`space`,r),typeof n==`number`)for(;++i<Cv.length;){let e=Cv[i];Tv(this,Cv[i],(n&hv[e])===hv[e])}}};wv.prototype.defined=!0;function Tv(e,t,n){n&&(e[t]=n)}function Ev(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new wv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[pv(r)]=r,n[pv(a.attribute)]=r}return new dv(t,n,e.space)}var Ire=Ev({properties:{ariaActiveDescendant:null,ariaAtomic:_v,ariaAutoComplete:null,ariaBusy:_v,ariaChecked:_v,ariaColCount:yv,ariaColIndex:yv,ariaColSpan:yv,ariaControls:bv,ariaCurrent:null,ariaDescribedBy:bv,ariaDetails:null,ariaDisabled:_v,ariaDropEffect:bv,ariaErrorMessage:null,ariaExpanded:_v,ariaFlowTo:bv,ariaGrabbed:_v,ariaHasPopup:null,ariaHidden:_v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bv,ariaLevel:yv,ariaLive:null,ariaModal:_v,ariaMultiLine:_v,ariaMultiSelectable:_v,ariaOrientation:null,ariaOwns:bv,ariaPlaceholder:null,ariaPosInSet:yv,ariaPressed:_v,ariaReadOnly:_v,ariaRelevant:null,ariaRequired:_v,ariaRoleDescription:bv,ariaRowCount:yv,ariaRowIndex:yv,ariaRowSpan:yv,ariaSelected:_v,ariaSetSize:yv,ariaSort:null,ariaValueMax:yv,ariaValueMin:yv,ariaValueNow:yv,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Lre(e,t){return t in e?e[t]:t}function Dv(e,t){return Lre(e,t.toLowerCase())}var Ov=Ev({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:xv,acceptCharset:bv,accessKey:bv,action:null,allow:null,allowFullScreen:gv,allowPaymentRequest:gv,allowUserMedia:gv,alpha:gv,alt:null,as:null,async:gv,autoCapitalize:null,autoComplete:bv,autoFocus:gv,autoPlay:gv,blocking:bv,capture:null,charSet:null,checked:gv,cite:null,className:bv,closedBy:null,colorSpace:null,cols:yv,colSpan:yv,command:null,commandFor:null,content:null,contentEditable:_v,controls:gv,controlsList:bv,coords:yv|xv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gv,defer:gv,dir:null,dirName:null,disabled:gv,download:vv,draggable:_v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gv,formTarget:null,headers:bv,height:yv,hidden:vv,high:yv,href:null,hrefLang:null,htmlFor:bv,httpEquiv:bv,id:null,imageSizes:null,imageSrcSet:null,inert:gv,inputMode:null,integrity:null,is:null,isMap:gv,itemId:null,itemProp:bv,itemRef:bv,itemScope:gv,itemType:bv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gv,low:yv,manifest:null,max:null,maxLength:yv,media:null,method:null,min:null,minLength:yv,multiple:gv,muted:gv,name:null,nonce:null,noModule:gv,noValidate:gv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:gv,optimum:yv,pattern:null,ping:bv,placeholder:null,playsInline:gv,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gv,referrerPolicy:null,rel:bv,required:gv,reversed:gv,rows:yv,rowSpan:yv,sandbox:bv,scope:null,scoped:gv,seamless:gv,selected:gv,shadowRootClonable:gv,shadowRootCustomElementRegistry:gv,shadowRootDelegatesFocus:gv,shadowRootMode:null,shadowRootSerializable:gv,shape:null,size:yv,sizes:null,slot:null,span:yv,spellCheck:_v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yv,step:null,style:null,tabIndex:yv,target:null,title:null,translate:null,type:null,typeMustMatch:gv,useMap:null,value:_v,width:yv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bv,axis:null,background:null,bgColor:null,border:yv,borderColor:null,bottomMargin:yv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gv,declare:gv,event:null,face:null,frame:null,frameBorder:null,hSpace:yv,leftMargin:yv,link:null,longDesc:null,lowSrc:null,marginHeight:yv,marginWidth:yv,noResize:gv,noHref:gv,noShade:gv,noWrap:gv,object:null,profile:null,prompt:null,rev:null,rightMargin:yv,rules:null,scheme:null,scrolling:_v,standby:null,summary:null,text:null,topMargin:yv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yv,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:gv,disablePictureInPicture:gv,disableRemotePlayback:gv,exportParts:xv,part:bv,prefix:null,property:null,results:yv,security:null,unselectable:null},space:`html`,transform:Dv}),kv=Ev({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:O,accentHeight:yv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yv,amplitude:yv,arabicForm:null,ascent:yv,attributeName:null,attributeType:null,azimuth:yv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yv,by:null,calcMode:null,capHeight:yv,className:bv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:yv,diffuseConstant:yv,direction:null,display:null,dur:null,divisor:yv,dominantBaseline:null,download:gv,dx:null,dy:null,edgeMode:null,editable:null,elevation:yv,enableBackground:null,end:null,event:null,exponent:yv,externalResourcesRequired:null,fill:null,fillOpacity:yv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xv,g2:xv,glyphName:xv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yv,horizOriginX:yv,horizOriginY:yv,id:null,ideographic:yv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yv,k:yv,k1:yv,k2:yv,k3:yv,k4:yv,kernelMatrix:O,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:yv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:yv,overlineThickness:yv,paintOrder:null,panose1:null,path:null,pathLength:yv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yv,pointsAtY:yv,pointsAtZ:yv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O,rev:O,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O,requiredFeatures:O,requiredFonts:O,requiredFormats:O,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:yv,specularExponent:yv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yv,strikethroughThickness:yv,string:null,stroke:null,strokeDashArray:O,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yv,strokeOpacity:yv,strokeWidth:null,style:null,surfaceScale:yv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O,tabIndex:yv,tableValues:null,target:null,targetX:yv,targetY:yv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yv,underlineThickness:yv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yv,values:null,vAlphabetic:yv,vMathematical:yv,vectorEffect:null,vHanging:yv,vIdeographic:yv,version:null,vertAdvY:yv,vertOriginX:yv,vertOriginY:yv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Lre}),Av=Ev({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),jv=Ev({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Dv}),Mv=Ev({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Nv={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Pv=/[A-Z]/g,Fv=/-[a-z]/g,Iv=/^data[-\w.:]+$/i;function Lv(e,t){let n=pv(t),r=t,i=mv;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Iv.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Fv,Rre);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Fv.test(e)){let n=e.replace(Pv,Rv);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=wv}return new i(r,t)}function Rv(e){return`-`+e.toLowerCase()}function Rre(e){return e.charAt(1).toUpperCase()}var zv=fv([Ire,Ov,Av,jv,Mv],`html`),Bv=fv([Ire,kv,Av,jv,Mv],`svg`);function zre(e){return e.join(` `).trim()}var Bre=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
1176
+ ... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})})),k_=cre(),A_=lre(),fre=ure(),j_=l(dre(),1);function M_(){return new j_.default}var N_=M_(),P_=264,pre=52,F_=54,mre=5;function I_(e){return e===0?pre:57+e*F_+(e-1)*mre}async function hre(e,t){let n=await N_.layout({id:e.id,layoutOptions:{"elk.algorithm":`layered`,"elk.direction":t,"elk.spacing.nodeNode":`44`,"elk.layered.spacing.nodeNodeBetweenLayers":`88`},children:e.stages.map(e=>({id:e.id,width:P_,height:I_(e.children.length)})),edges:e.transitions.map((e,t)=>({id:`${e.from}-${e.to}-${t}`,sources:[e.from],targets:[e.to]}))}),r=(n.children??[]).map(e=>({id:e.id,x:e.x??0,y:t===`RIGHT`?0:e.y??0,width:e.width??P_,height:e.height??I_(0)})),i=(n.edges??[]).map((t,n)=>{let r=e.transitions[n];return{id:t.id,label:r?.label??``,from:r?.from??``,to:r?.to??``,...r?.fromChildId===void 0?{}:{fromChildId:r.fromChildId},points:(t.sections??[]).flatMap(e=>[e.startPoint,...e.bendPoints??[],e.endPoint])}});return Object.freeze({width:n.width??P_,height:n.height??I_(0),nodes:Object.freeze(r.map(e=>Object.freeze(e))),edges:Object.freeze(i.map(e=>Object.freeze({...e,points:Object.freeze(e.points.map(e=>Object.freeze(e)))})))})}var L_={diagram:`_diagram_1akxc_1`,dragging:`_dragging_1akxc_45`,canvas:`_canvas_1akxc_50`,canvasLoading:`_canvasLoading_1akxc_56`,edges:`_edges_1akxc_60`,edgeActive:`_edgeActive_1akxc_80`,edgeLabel:`_edgeLabel_1akxc_85`,edgeLabelActive:`_edgeLabelActive_1akxc_101`,stage:`_stage_1akxc_105`,stageCard:`_stageCard_1akxc_116`,stageTitleRow:`_stageTitleRow_1akxc_127`,chips:`_chips_1akxc_137`,metrics:`_metrics_1akxc_138`,stageTotals:`_stageTotals_1akxc_139`,children:`_children_1akxc_152`,childCard:`_childCard_1akxc_158`,childCardWithoutStatus:`_childCardWithoutStatus_1akxc_165`,childStatusDot:`_childStatusDot_1akxc_174`,collapsedStatusDot:`_collapsedStatusDot_1akxc_179`,collapsedStatusDots:`_collapsedStatusDots_1akxc_183`,childTitle:`_childTitle_1akxc_189`,childKindIcon:`_childKindIcon_1akxc_195`,"active-run-pulse":`_active-run-pulse_1akxc_1`,srOnly:`_srOnly_1akxc_258`},R_={width:0,height:0,nodes:[],edges:[]},z_={activity:fre.faRobot,watch:A_.faEye,"watch-gate":A_.faEye,reactor:k_.faBolt};function B_(e,t){let[n,r]=(0,C.useState)(R_);return(0,C.useEffect)(()=>{if(t===`DOWN`){r(R_);return}let n=!0;return hre(e,t).then(e=>{n&&r(e)}),()=>{n=!1}},[e,t]),n}function gre(){let[e,t]=(0,C.useState)(()=>globalThis.matchMedia?.(`(max-width: 48rem)`).matches?`DOWN`:`RIGHT`);return(0,C.useEffect)(()=>{let e=globalThis.matchMedia?.(`(max-width: 48rem)`);if(e===void 0)return;let n=()=>t(e.matches?`DOWN`:`RIGHT`);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function _re(e){let t=(0,C.useRef)(null),n=(0,C.useRef)(new Map),[r,i]=(0,C.useState)(new Map),a=(0,C.useCallback)((e,t)=>{t===null?n.current.delete(e):n.current.set(e,t)},[]);return(0,C.useLayoutEffect)(()=>{let r=t.current;if(r===null||e.nodes.length===0)return;let a=()=>{let e=r.getBoundingClientRect(),t=new Map;for(let[r,i]of n.current){let n=i.getBoundingClientRect();t.set(r,{left:n.left-e.left,top:n.top-e.top,right:n.right-e.left,bottom:n.bottom-e.top});for(let n of i.querySelectorAll(`[data-diagram-child]`)){let i=n.getBoundingClientRect(),a=n.dataset.diagramChild;a!==void 0&&t.set(`${r}:${a}`,{left:i.left-e.left,top:i.top-e.top,right:i.right-e.left,bottom:i.bottom-e.top})}}i(t)};a();let o=globalThis.ResizeObserver===void 0?void 0:new ResizeObserver(a);o?.observe(r);for(let e of n.current.values())o?.observe(e);return()=>o?.disconnect()},[e]),{anchors:r,canvasRef:t,stageRef:a}}function V_(e){return e.totalTokens===void 0?null:(0,T.jsx)(g_,{usage:{totalTokens:e.totalTokens,...e.inputTokens===void 0?{}:{inputTokens:e.inputTokens},...e.outputTokens===void 0?{}:{outputTokens:e.outputTokens},...e.cacheReadTokens===void 0?{}:{cacheReadTokens:e.cacheReadTokens},...e.cacheWriteTokens===void 0?{}:{cacheWriteTokens:e.cacheWriteTokens}}})}function H_(e){return e.kind===`reactor`||e.runCount===void 0&&e.totalDurationMs===void 0&&e.totalCostUsd===void 0&&e.totalTokens===void 0?null:(0,T.jsxs)(`div`,{className:L_.metrics,children:[e.runCount===void 0?null:(0,T.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,T.jsx)(`span`,{children:f_(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,T.jsx)(`span`,{children:u_(e.totalCostUsd)}),e.totalTokens===void 0?null:V_(e)]})}function vre({child:e,onHover:t,showStatus:n}){let r=(e.activeRuns?.length??0)>0,i=U_(e,r);return(0,T.jsxs)(`article`,{className:`${L_.childCard} ${c_.childRun} ${n?``:L_.childCardWithoutStatus}`,"data-diagram-child":e.id,"data-kind":e.kind,onMouseEnter:()=>t(e.id),onMouseLeave:()=>t(void 0),children:[n?(0,T.jsx)(`span`,{"aria-label":r?`active run`:`${i} status`,className:`${c_.childRunDot} ${L_.childStatusDot}`,"data-status":i,"data-active-run":r||void 0,"data-testid":`child-status-${e.id}`,role:`img`}):null,(0,T.jsxs)(`div`,{children:[(0,T.jsxs)(`div`,{className:`${c_.childRunTitle} ${L_.childTitle}`,children:[(0,T.jsx)(Vg,{className:L_.childKindIcon,icon:z_[e.kind]}),(0,T.jsx)(`span`,{children:e.label})]}),H_(e),e.kind===`reactor`?null:e.activeRuns?.map(e=>(0,T.jsxs)(`div`,{className:c_.childRunMeta,children:[(0,T.jsxs)(`span`,{children:[e.activity,` running`]}),e.runnerName===void 0?null:(0,T.jsxs)(T.Fragment,{children:[` `,`· `,(0,T.jsx)(`span`,{children:e.runnerName})]}),` · `,(0,T.jsx)(`span`,{children:f_(Math.max(0,Date.now()-new Date(e.startedAt).getTime()))})]},e.runId))]})]})}function U_(e,t=!1){if(t)return`active`;if(e.lastOutcome===void 0)return e.status??`pending`;switch(m_(e.lastOutcome)){case`good`:return`completed`;case`warning`:return`blocked`;case`bad`:return`failed`;case`info`:return`needs-clarification`;case`neutral`:return`pending`}}function W_(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=1;n<e.length;n+=1){let r=e[n-1],i=e[n],a=e[n+1];if(a===void 0){t+=` L ${i.x} ${i.y}`;continue}let o=Math.min(10,Math.hypot(i.x-r.x,i.y-r.y)/2),s=Math.min(10,Math.hypot(a.x-i.x,a.y-i.y)/2),c={x:i.x+(r.x-i.x)*o/Math.hypot(r.x-i.x,r.y-i.y),y:i.y+(r.y-i.y)*o/Math.hypot(r.x-i.x,r.y-i.y)},l={x:i.x+(a.x-i.x)*s/Math.hypot(a.x-i.x,a.y-i.y),y:i.y+(a.y-i.y)*s/Math.hypot(a.x-i.x,a.y-i.y)};t+=` L ${c.x} ${c.y} Q ${i.x} ${i.y} ${l.x} ${l.y}`}return t}function G_(e,t){return e.fromChildId===void 0?t.stages.find(t=>t.id===e.from)?.children.find(e=>e.kind===`activity`)?.id:e.fromChildId}function K_(e,t,n,r,i){if(e.points.length===0)return e.points;let a=n.get(e.from),o=t.stages.find(t=>t.id===e.from),s=G_(e,t),c=o?.children.findIndex(e=>e.id===s)??-1,l=r.get(s===void 0?e.from:`${e.from}:${s}`),u=r.get(e.to);if(l!==void 0&&u!==void 0){let n=i===`RIGHT`?{x:l.right,y:(l.top+l.bottom)/2}:{x:(l.left+l.right)/2,y:l.bottom},a=i===`RIGHT`?{x:u.left,y:u.top+16}:{x:(u.left+u.right)/2,y:u.top};if(i===`RIGHT`){let i=t.stages.filter(t=>t.id!==e.from&&t.id!==e.to).map(e=>r.get(e.id)).filter(e=>e!==void 0&&e.left>=n.x&&e.right<=a.x);if(i.length>0){let e=Math.max(l.bottom,u.bottom,...i.map(e=>e.bottom))+24,t=n.x+18,r=a.x-18;return[n,{x:t,y:n.y},{x:t,y:e},{x:r,y:e},{x:r,y:a.y},a]}if(n.y===a.y)return[n,a];let o=(n.x+a.x)/2;return[n,{x:o,y:n.y},{x:o,y:a.y},a]}if(n.x===a.x)return[n,a];let o=(n.y+a.y)/2;return[n,{x:n.x,y:o},{x:a.x,y:o},a]}if(s===void 0||a===void 0||c<0)return e.points;let d=57+c*59+27;return[i===`RIGHT`?{x:a.x+a.width,y:a.y+d}:{x:a.x+a.width/2,y:a.y+d+52},...e.points.slice(1)]}function yre(e){if(e.length===0)return;if(e.length===1)return e[0];let t=e.slice(1).map((t,n)=>Math.hypot(t.x-e[n].x,t.y-e[n].y)),n=t.reduce((e,t)=>e+t,0)/2,r=0;for(let i=0;i<t.length;i+=1){let a=t[i];if(r+a>=n){let t=e[i],o=e[i+1],s=(n-r)/a;return{x:t.x+(o.x-t.x)*s,y:t.y+(o.y-t.y)*s}}r+=a}return e.at(-1)}function q_({diagram:e}){let t=gre(),n=B_(e,t),{anchors:r,canvasRef:i,stageRef:a}=_re(n),o=(0,C.useRef)(void 0),[s,c]=(0,C.useState)(!1),[l,u]=(0,C.useState)(()=>{let t=e.stages.filter(e=>(e.activeRuns?.length??0)>0||e.children.some(e=>(e.activeRuns?.length??0)>0));return new Set(t.map(e=>e.id))}),[d,f]=(0,C.useState)(),p=e.stages.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0||e.children.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0)),m=new Map(n.nodes.map(e=>[e.id,e])),h=l.size>0,g=n.width||(t===`RIGHT`?e.stages.length*352:300),_=n.edges.flatMap(n=>K_(n,e,m,r,t)),v=Math.max(0,...Array.from(r.values(),e=>e.bottom),..._.map(e=>e.y)),y=t===`RIGHT`&&v>0?v+20:n.height||(t===`RIGHT`?176:e.stages.length*172),b=t===`DOWN`||n.nodes.length>0&&r.size>0,x=e=>{if(t!==`RIGHT`||e.button!==0)return;let n=e.currentTarget;o.current={pointerId:e.pointerId,startX:e.clientX,scrollLeft:n.scrollLeft},n.setPointerCapture(e.pointerId),c(!0)},S=e=>{let t=o.current;t!==void 0&&t.pointerId===e.pointerId&&(e.currentTarget.scrollLeft=t.scrollLeft-(e.clientX-t.startX))},ee=e=>{o.current?.pointerId===e.pointerId&&(o.current=void 0,c(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))};return(0,T.jsx)(`section`,{"aria-label":`Workflow ${e.label}`,className:`${L_.diagram} ${s?L_.dragging:``}`,"data-direction":t,onPointerCancel:ee,onPointerDown:x,onPointerMove:S,onPointerUp:ee,children:(0,T.jsxs)(`div`,{ref:i,className:`${L_.canvas} ${b?``:L_.canvasLoading}`,"data-direction":t,style:{"--graph-width":`${g}px`,"--graph-height":`${y}px`},children:[(0,T.jsxs)(`svg`,{className:L_.edges,"aria-hidden":`true`,viewBox:`0 0 ${g} ${y}`,preserveAspectRatio:`none`,children:[(0,T.jsx)(`defs`,{children:(0,T.jsx)(`marker`,{id:`workflow-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`7`,refY:`4`,orient:`auto`,children:(0,T.jsx)(`path`,{d:`M 0 0 L 8 4 L 0 8 z`,fill:`context-stroke`})})}),n.edges.map(n=>{let i=K_(n,e,m,r,t),a=G_(n,e)===d;return(0,T.jsx)(`g`,{className:a?L_.edgeActive:L_.edge,children:(0,T.jsx)(`path`,{d:W_(i),markerEnd:`url(#workflow-arrow)`})},n.id)})]}),n.edges.map(n=>{let i=yre(K_(n,e,m,r,t)),a=G_(n,e)===d;return i===void 0||n.label.length===0?null:(0,T.jsx)(`span`,{className:`${L_.edgeLabel} ${a?L_.edgeLabelActive:``}`,style:{left:`${i.x}px`,top:`${i.y}px`},children:n.label},`${n.id}-label`)}),e.stages.map((e,n)=>{let r=m.get(e.id),i=t===`RIGHT`||l.has(e.id),o=t===`RIGHT`?n*352:18,s=t===`RIGHT`?20:n*172,c=e.runCount!==void 0||e.totalDurationMs!==void 0||e.totalCostUsd!==void 0||e.totalTokens!==void 0,d=()=>u(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n});return(0,T.jsxs)(`div`,{className:`${L_.stage} ${c_.card}`,ref:t=>a(e.id,t),role:`group`,"aria-label":`Stage ${e.id}`,style:t===`RIGHT`?{left:`${r?.x??o}px`,top:`${r?.y??s}px`,width:`${r?.width??264}px`}:void 0,children:[(0,T.jsxs)(`div`,{"aria-expanded":t===`DOWN`?i:void 0,className:`${L_.stageCard} ${c_.cardLink}`,onClick:t===`DOWN`?d:void 0,onKeyDown:t===`DOWN`?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,role:t===`DOWN`?`button`:void 0,tabIndex:t===`DOWN`?0:void 0,children:[(0,T.jsx)(`div`,{children:(0,T.jsx)(`div`,{className:L_.stageTitleRow,children:(0,T.jsx)(`strong`,{className:c_.cardTitle,children:e.label})})}),t===`DOWN`&&p&&!i?(0,T.jsx)(`span`,{className:L_.collapsedStatusDots,children:e.children.map(t=>(0,T.jsx)(`span`,{"aria-label":`${U_(t,(t.activeRuns?.length??0)>0)} status`,className:`${c_.childRunDot} ${L_.childStatusDot} ${L_.collapsedStatusDot}`,"data-active-run":(t.activeRuns?.length??0)>0||void 0,"data-status":U_(t,(t.activeRuns?.length??0)>0),"data-testid":`collapsed-status-${e.id}-${t.id}`,role:`img`},t.id))}):null,c?(0,T.jsxs)(`div`,{className:L_.stageTotals,children:[e.runCount===void 0?null:(0,T.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,T.jsx)(`span`,{children:f_(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,T.jsx)(`span`,{children:u_(e.totalCostUsd)}),e.totalTokens===void 0?null:V_(e)]}):null]}),i?(0,T.jsx)(`div`,{className:L_.children,style:t===`DOWN`?{display:`grid`,visibility:`visible`}:void 0,children:e.children.map(e=>(0,T.jsx)(vre,{child:e,onHover:t===`RIGHT`?f:()=>void 0,showStatus:p},e.id))}):null]},e.id)}),h?null:(0,T.jsx)(`span`,{className:L_.srOnly,children:`All stages are collapsed.`})]})})}function bre(){let e=$f(),[t,n]=(0,C.useState)(`configuration`),r=_i({queryKey:Hg.system.configuration,queryFn:({signal:t})=>e.system.configuration(t),refetchInterval:Ug.configuration}),i=_i({queryKey:Hg.system.commands,queryFn:({signal:t})=>e.system.commands(t),refetchInterval:Ug.commands,enabled:t===`commands`}),a=_i({queryKey:Hg.workflowDiagrams.get(),queryFn:({signal:t})=>e.workflowDiagrams.get(void 0,t),refetchInterval:Ug.workflowDiagrams,enabled:t===`workflows`}),o=_i({queryKey:Hg.system.webhooks,queryFn:({signal:t})=>e.system.webhooks(t),refetchInterval:Ug.webhooks,enabled:t===`webhooks`}),s=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),r=t.indexOf(e.currentTarget);if(r<0)return;let i=e.key===`ArrowRight`?(r+1)%t.length:e.key===`ArrowLeft`?(r-1+t.length)%t.length:void 0;if(i===void 0)return;e.preventDefault();let a=t[i];a!==void 0&&(n(a.dataset.tab),a.focus())},c=(0,T.jsx)(qg,{actions:(0,T.jsxs)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void(t===`commands`?i.refetch():t===`workflows`?a.refetch():t===`webhooks`?o.refetch():r.refetch()),children:[`Refresh`,` `,t===`commands`?`commands`:t===`workflows`?`workflows`:t===`webhooks`?`webhooks`:`configuration`]})});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Configuration sections`,children:[(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`configuration`,id:`configuration-tab`,"aria-controls":`configuration-panel`,"aria-selected":t===`configuration`,tabIndex:t===`configuration`?0:-1,onKeyDown:s,onClick:()=>n(`configuration`),children:`Configuration`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`commands`,id:`commands-tab`,"aria-controls":`commands-panel`,"aria-selected":t===`commands`,tabIndex:t===`commands`?0:-1,onKeyDown:s,onClick:()=>n(`commands`),children:`Commands`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`webhooks`,id:`webhooks-tab`,"aria-controls":`webhooks-panel`,"aria-selected":t===`webhooks`,tabIndex:t===`webhooks`?0:-1,onKeyDown:s,onClick:()=>n(`webhooks`),children:`Webhooks`}),(0,T.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`workflows`,id:`workflows-tab`,"aria-controls":`workflows-panel`,"aria-selected":t===`workflows`,tabIndex:t===`workflows`?0:-1,onKeyDown:s,onClick:()=>n(`workflows`),children:`Workflows`})]}),t===`commands`?(0,T.jsxs)(`section`,{id:`commands-panel`,role:`tabpanel`,"aria-labelledby":`commands-tab`,className:c_.tabPanel,children:[c,i.isPending?(0,T.jsx)(Zg,{label:`Loading commands`}):i.error&&!i.data?(0,T.jsx)($g,{error:i.error,retry:()=>void i.refetch()}):i.data&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`p`,{children:`Commands and actions recognized by each configured surface adapter.`}),i.data.data.adapters.length===0?(0,T.jsx)(Qg,{children:`No adapters expose commands`}):i.data.data.adapters.map(e=>(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`h2`,{children:e.adapter}),e.commands.length===0?(0,T.jsx)(Qg,{children:`No commands`}):(0,T.jsx)(`ul`,{children:e.commands.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(`code`,{children:e.syntax})},e.syntax))})]},e.adapter))]})]}):t===`webhooks`?(0,T.jsxs)(`section`,{id:`webhooks-panel`,role:`tabpanel`,"aria-labelledby":`webhooks-tab`,className:c_.tabPanel,children:[c,o.isPending?(0,T.jsx)(Zg,{label:`Loading webhook setup instructions`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data?.data.adapters.length===0?(0,T.jsx)(Qg,{children:`No webhook-enabled adapters are configured`}):o.data?.data.adapters.flatMap(e=>e.hooks.map(t=>(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`h2`,{children:t.scope}),(0,T.jsxs)(`p`,{children:[`Configure this webhook manually in `,e.provider,` when Wake cannot manage it.`]}),(0,T.jsxs)(`p`,{children:[`Payload URL: `,(0,T.jsx)(`code`,{children:t.endpoint})]}),(0,T.jsxs)(`p`,{children:[`Content type: `,(0,T.jsx)(`code`,{children:`application/json`})]}),(0,T.jsxs)(`p`,{children:[`Events: `,(0,T.jsx)(`code`,{children:t.events.join(`, `)})]}),(0,T.jsxs)(`p`,{children:[`Signing secret: `,(0,T.jsx)(`code`,{children:t.secret})]})]},`${e.adapter}:${t.scope}`)))]}):t===`workflows`?(0,T.jsxs)(`section`,{id:`workflows-panel`,role:`tabpanel`,"aria-labelledby":`workflows-tab`,className:c_.tabPanel,children:[c,a.isPending?(0,T.jsx)(Zg,{label:`Loading workflows`}):a.error&&!a.data?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):a.data?.data.diagrams.length===0?(0,T.jsx)(Qg,{children:`No workflows are configured`}):a.data?.data.diagrams.map(e=>(0,T.jsxs)(`section`,{"aria-labelledby":`workflow-${e.id}`,children:[(0,T.jsx)(`h2`,{id:`workflow-${e.id}`,children:e.label}),(0,T.jsx)(q_,{diagram:e})]},e.id))]}):(0,T.jsxs)(`section`,{id:`configuration-panel`,role:`tabpanel`,"aria-labelledby":`configuration-tab`,className:c_.tabPanel,children:[c,r.isPending?(0,T.jsx)(Zg,{label:`Loading redacted configuration`}):r.error&&!r.data?(0,T.jsx)($g,{error:r.error,retry:()=>void r.refetch()}):r.data&&(0,T.jsxs)(Jg,{children:[(0,T.jsx)(`p`,{children:`Read-only effective configuration. Secrets are redacted by Wake.`}),(0,T.jsx)(t_,{value:r.data.data.configuration})]})]})]})}function J_(){let[e,t]=Un(),n=e.get(`cursor`)??void 0,r=e.getAll(`previous`);return{...n===void 0?{}:{cursor:n},hasPrevious:r.length>0,next(r){let i=new URLSearchParams(e);i.append(`previous`,n??``),i.set(`cursor`,r),t(i)},previous(){let n=r.at(-1);if(n===void 0)return;let i=new URLSearchParams(e);i.delete(`previous`);for(let e of r.slice(0,-1))i.append(`previous`,e);n===``?i.delete(`cursor`):i.set(`cursor`,n),t(i)},setFilter(n,r){let i=new URLSearchParams(e);r===``?i.delete(n):i.set(n,r),i.delete(`cursor`),i.delete(`previous`),t(i,{replace:!0})}}}function Y_({navigation:e,nextCursor:t,hasMore:n}){return(0,T.jsxs)(`nav`,{className:Kg.pagination,"aria-label":`Collection pages`,children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,disabled:!e.hasPrevious,onClick:e.previous,children:`Previous page`}),(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,disabled:!n||t===null,onClick:()=>t!==null&&e.next(t),children:`Next page`})]})}function xre(e,t,n){let r=new Intl.DateTimeFormat(t??`en-CA`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,...n===void 0?{}:{timeZone:n}}),i=Object.fromEntries(r.formatToParts(new Date(e)).map(e=>[e.type,e.value]));return`${i.year}-${i.month}-${i.day} ${i.hour}:${i.minute}`}function X_({value:e,locale:t,timeZone:n}){return(0,T.jsx)(`time`,{dateTime:e,title:e,"aria-label":`${xre(e,t,n)}; exact UTC ${e}`,children:xre(e,t,n)})}function Sre(){let e=$f(),t=J_();return(0,T.jsx)(Cre,{client:e,navigation:t},t.cursor??`initial`)}function Cre({client:e,navigation:t}){let n=(0,C.useRef)({page:t.cursor,live:t.cursor}),[r,i]=(0,C.useState)([]),a=_i({queryKey:Hg.events.list(t.cursor),queryFn:async({signal:t})=>e.events.list(n.current.live,void 0,t),refetchInterval:e=>e.state.data?.page.hasMore!==!0&&Ug.events});return(0,C.useEffect)(()=>{a.data!==void 0&&(i(e=>Q_(e,a.data.items)),!a.data.page.hasMore&&a.data.page.nextCursor!==null&&(n.current.live=a.data.page.nextCursor))},[a.data]),(0,T.jsx)(T.Fragment,{children:a.isPending?(0,T.jsx)(Zg,{label:`Loading events`}):a.error&&!a.data?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(wre,{records:r}),a.data&&(0,T.jsx)(Y_,{navigation:t,nextCursor:a.data.page.nextCursor,hasMore:a.data.page.hasMore})]})})}function Z_({record:e}){let[t,n]=(0,C.useState)(!1);return(0,T.jsxs)(`li`,{className:c_.event,children:[(0,T.jsxs)(`button`,{type:`button`,className:c_.eventButton,onClick:()=>n(e=>!e),"aria-expanded":t,children:[(0,T.jsx)(X_,{value:e.occurredAt}),(0,T.jsx)(`span`,{className:c_.eventType,children:e.type}),(0,T.jsx)(`span`,{className:c_.eventId,children:e.id}),(0,T.jsx)(`span`,{className:c_.eventChevron,"aria-hidden":`true`,children:t?`v`:`>`})]}),t&&(0,T.jsx)(`div`,{className:c_.eventPayload,children:(0,T.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})}function wre({records:e}){let[t,n]=(0,C.useState)(!1),[r,i]=(0,C.useState)(!1),[a,o]=(0,C.useState)(()=>[...e]),[s,c]=(0,C.useState)([]),l=(0,C.useRef)(a.at(-1)?.position??-1),u=t||r;(0,C.useEffect)(()=>{let e=()=>{let e=document.scrollingElement??document.documentElement;i(e.scrollHeight-e.scrollTop-e.clientHeight>1)};return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,C.useEffect)(()=>{let t=e.filter(e=>e.position>l.current);t.length!==0&&(u?c(e=>Q_(e,t)):(o(e=>Q_(e,t)),l.current=t.at(-1).position))},[e,u]);let d=(0,C.useMemo)(()=>[...a].sort((e,t)=>t.position-e.position),[a]),f=()=>{o(e=>Q_(e,s)),l.current=Math.max(l.current,...s.map(e=>e.position)),c([]),n(!1),i(!1)};return(0,T.jsxs)(`section`,{children:[(0,T.jsxs)(`div`,{className:c_.toolbar,children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>u?f():n(!0),children:u?`Resume live view`:`Pause live view`}),s.length>0&&(0,T.jsxs)(Yg,{type:`button`,onClick:f,"aria-live":`polite`,children:[s.length,` new `,s.length===1?`event`:`events`]})]}),d.length===0?(0,T.jsx)(Qg,{children:`No events`}):(0,T.jsx)(`ol`,{className:c_.eventList,children:d.map(e=>(0,T.jsx)(Z_,{record:e},e.id))})]})}function Q_(e,t,n=200){return[...new Map([...e,...t].map(e=>[e.id,e])).values()].sort((e,t)=>e.position-t.position).slice(-n)}function $_({caption:e,rows:t,rowKey:n,columns:r,tableClassName:i}){return(0,T.jsx)(`div`,{className:Kg.tableWrap,children:(0,T.jsxs)(`table`,{className:[Kg.table,i].filter(Boolean).join(` `),children:[(0,T.jsx)(`caption`,{children:e}),(0,T.jsx)(`thead`,{children:(0,T.jsx)(`tr`,{children:r.map(e=>(0,T.jsx)(`th`,{scope:`col`,children:e.label},e.label))})}),(0,T.jsx)(`tbody`,{children:t.map(e=>(0,T.jsx)(`tr`,{children:r.map(t=>(0,T.jsx)(`td`,{"data-label":t.label,children:(0,T.jsx)(`div`,{children:t.render(e)})},t.label))},n(e)))})]})})}function ev(){let e=$f(),[t,n]=(0,C.useState)(`overview`),r=[[`overview`,`Overview`],[`adapters`,`Adapter health`],[`runners`,`Runner availability`],[`maintenance`,`Maintenance recovery`]],i=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),n=t.indexOf(e.currentTarget),r=e.key===`ArrowRight`?(n+1)%t.length:e.key===`ArrowLeft`?(n-1+t.length)%t.length:e.key===`Home`?0:e.key===`End`?t.length-1:void 0;r!==void 0&&(e.preventDefault(),t[r]?.click(),t[r]?.focus())},a=ni(),o=_i({queryKey:Hg.system.health,queryFn:({signal:t})=>e.system.health(t),refetchInterval:Ug.health}),s=_i({queryKey:Hg.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Ug.runners}),c=_i({queryKey:Hg.controlPlane.status,queryFn:({signal:t})=>e.controlPlane.status(t),refetchInterval:Ug.status}),l=vi({mutationKey:[`control-plane`,`clear-maintenance`],mutationFn:t=>e.controlPlane.clearMaintenance(t,crypto.randomUUID()),onSuccess:()=>{a.invalidateQueries({queryKey:Hg.controlPlane.status}),a.invalidateQueries({queryKey:Hg.system.health})}}),u=async(t,n)=>{let r=crypto.randomUUID();n?await e.execution.unpauseRunner(t,r):await e.execution.pauseRunner(t,r),await s.refetch()};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Health sections`,children:r.map(([e,r])=>(0,T.jsx)(`button`,{type:`button`,role:`tab`,id:`health-${e}-tab`,"aria-controls":`health-${e}-panel`,"aria-selected":t===e,tabIndex:t===e?0:-1,onKeyDown:i,onClick:()=>n(e),children:r},e))}),(0,T.jsxs)(`section`,{className:c_.tabPanel,role:`tabpanel`,id:`health-${t}-panel`,"aria-labelledby":`health-${t}-tab`,children:[(0,T.jsx)(qg,{actions:(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>{o.refetch(),s.refetch(),c.refetch()},children:`Refresh health`})}),t===`overview`&&(0,T.jsx)(T.Fragment,{children:o.isPending?(0,T.jsx)(Zg,{label:`Checking health`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data&&(0,T.jsx)(tv,{health:o.data.data})}),t===`maintenance`&&(0,T.jsx)(T.Fragment,{children:c.isPending?(0,T.jsx)(Zg,{label:`Checking maintenance`}):c.error&&!c.data?(0,T.jsx)($g,{error:c.error,retry:()=>void c.refetch()}):c.data?.data.maintenanceLease?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Maintenance recovery`}),(0,T.jsxs)(Jg,{children:[(0,T.jsx)(Xg,{tone:c.data.data.maintenanceLease.phase===`failed`?`bad`:`warning`,children:c.data.data.maintenanceLease.phase}),(0,T.jsxs)(`p`,{children:[`Started: `,c.data.data.maintenanceLease.startedAt]}),c.data.data.maintenanceLease.failure?(0,T.jsxs)(`p`,{children:[`Failure: `,c.data.data.maintenanceLease.failure]}):(0,T.jsx)(Qg,{children:`No maintenance lease`}),c.data.data.maintenanceLease.phase===`failed`?(0,T.jsx)(Yg,{type:`button`,disabled:l.isPending,onClick:()=>{window.confirm(`Clear this failed maintenance lease? This immediately resumes intake and dispatch. Confirm the update attempt is abandoned.`)&&l.mutate(c.data.data.maintenanceLease.attemptId)},children:`Clear failed maintenance`}):(0,T.jsx)(`p`,{children:`Maintenance is active and cannot be cleared until the update fails.`})]})]}):(0,T.jsx)(Qg,{children:`No maintenance lease`})}),t===`adapters`&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Adapter health`}),o.isPending?(0,T.jsx)(Zg,{label:`Checking adapters`}):o.error&&!o.data?(0,T.jsx)($g,{error:o.error,retry:()=>void o.refetch()}):o.data&&(o.data.data.adapters?.length??0)===0?(0,T.jsx)(Qg,{children:`No adapter health reported`}):o.data&&(0,T.jsx)($_,{caption:`Adapter health`,tableClassName:c_.adapterHealthTable,rows:o.data.data.adapters,rowKey:e=>`${e.adapter}:${e.scope}:${e.channel}`,columns:[{label:`Adapter`,render:e=>e.adapter},{label:`Scope`,render:e=>e.scope},{label:`Channel`,render:e=>e.channel},{label:`Status`,render:e=>(0,T.jsx)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:e.status})},{label:`Successes`,render:e=>e.successCount},{label:`Failures`,render:e=>e.failureCount},{label:`Detail`,render:e=>e.detail??`—`}]})]}),t===`runners`&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:`Runner availability`}),s.isPending?(0,T.jsx)(Zg,{label:`Loading runners`}):s.error&&!s.data?(0,T.jsx)($g,{error:s.error,retry:()=>void s.refetch()}):(s.data?.items.length??0)===0?(0,T.jsx)(Qg,{children:`No runners configured`}):(0,T.jsx)($_,{caption:`Runner availability`,rows:s.data.items,rowKey:e=>e.runnerId,columns:[{label:`Runner`,render:e=>e.runnerId},{label:`Availability`,render:e=>(0,T.jsx)(Xg,{tone:e.available?`good`:`warning`,children:e.status})},{label:`Detail`,render:e=>e.detail??`—`},{label:`Control`,render:e=>(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void u(e.runnerId,!e.available),children:e.available?`Pause`:`Unpause`})}]})]})]})]})}function tv({health:e}){let t=e.checks??[],n=t.filter(e=>e.status===`ok`),r=t.filter(e=>e.status===`degraded`),i=[...r,...n];return(0,T.jsxs)(`div`,{className:c_.healthOverview,children:[(0,T.jsx)(Jg,{children:(0,T.jsxs)(`div`,{className:c_.healthSummary,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:c_.healthEyebrow,children:`System health`}),(0,T.jsxs)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:[`Wake `,e.status]})]}),(0,T.jsxs)(`dl`,{className:c_.healthMeta,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`dt`,{children:`Version`}),(0,T.jsx)(`dd`,{children:e.version})]}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`dt`,{children:`Last checked`}),(0,T.jsx)(`dd`,{children:(0,T.jsx)(`time`,{dateTime:e.checkedAt,children:new Date(e.checkedAt).toLocaleString()})})]})]})]})}),(0,T.jsxs)(Jg,{labelledBy:`health-checks-title`,children:[(0,T.jsxs)(`div`,{className:c_.healthChecksHeader,children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:c_.healthEyebrow,children:`Checks`}),(0,T.jsx)(`h2`,{id:`health-checks-title`,children:`System checks`})]}),(0,T.jsxs)(`div`,{className:c_.healthCounts,"aria-label":`Health check counts`,children:[(0,T.jsxs)(`span`,{children:[n.length,` healthy`]}),r.length>0&&(0,T.jsxs)(`span`,{children:[r.length,` need attention`]})]})]}),i.length===0?(0,T.jsx)(Qg,{children:`No health checks reported`}):(0,T.jsx)(`ul`,{className:c_.healthCheckList,children:i.map(e=>(0,T.jsxs)(`li`,{children:[(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`strong`,{children:e.name}),e.detail&&(0,T.jsx)(`span`,{children:e.detail})]}),(0,T.jsx)(Xg,{tone:e.status===`ok`?`good`:`warning`,children:e.status===`ok`?`Healthy`:`Needs attention`})]},e.name))})]})]})}function nv({label:e,value:t}){return(0,T.jsxs)(`div`,{className:Kg.tile,role:`group`,"aria-label":e,children:[(0,T.jsx)(`div`,{className:Kg.tileValue,children:t}),(0,T.jsx)(`div`,{className:Kg.tileLabel,children:e})]})}var rv={controls:`_controls_unps5_1`,legend:`_legend_unps5_2`,chart:`_chart_unps5_23`,table:`_table_unps5_31`};function Tre(){let[e,t]=(0,C.useState)(`reports`),n=[[`reports`,`Reports`],[`activity`,`System activity`]],r=n=>{if(![`ArrowRight`,`ArrowLeft`,`Home`,`End`].includes(n.key))return;n.preventDefault();let r=n.key===`Home`?`reports`:n.key===`End`||e===`reports`?`activity`:`reports`;t(r),document.getElementById(`analytics-${r}-tab`)?.focus()};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(qg,{}),(0,T.jsx)(`div`,{className:c_.tabs,role:`tablist`,"aria-label":`Analytics sections`,children:n.map(([n,i])=>(0,T.jsx)(`button`,{type:`button`,role:`tab`,id:`analytics-${n}-tab`,"aria-controls":`analytics-${n}-panel`,"aria-selected":e===n,tabIndex:e===n?0:-1,onClick:()=>t(n),onKeyDown:r,children:i},n))}),(0,T.jsx)(`section`,{className:c_.tabPanel,role:`tabpanel`,id:`analytics-${e}-panel`,"aria-labelledby":`analytics-${e}-tab`,children:e===`reports`?(0,T.jsx)(av,{}):(0,T.jsx)(iv,{})})]})}function iv(){let e=$f(),t=_i({queryKey:Hg.observability.metrics(1),queryFn:({signal:t})=>e.observability.metrics(1,t),refetchInterval:Ug.observability});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Yg,{type:`button`,variant:`secondary`,onClick:()=>void t.refetch(),children:`Refresh metrics`}),t.isPending?(0,T.jsx)(Zg,{label:`Loading metrics`}):t.error?(0,T.jsx)($g,{error:t.error,retry:()=>void t.refetch()}):(0,T.jsx)(`div`,{className:c_.tiles,children:Object.entries(t.data.data.values).map(([e,t])=>(0,T.jsx)(nv,{label:e,value:String(t)},e))})]})}function av(){let e=$f(),[t,n]=(0,C.useState)(ud.Day),[r,i]=(0,C.useState)(),a=_i({queryKey:[`observability`,`reports`],queryFn:({signal:t})=>e.observability.reports(t)}),o=r??a.data?.data[0]?.id,s=_i({queryKey:[`observability`,`summary`,t,o],queryFn:({signal:n})=>e.observability.summary(t,n),enabled:o!==void 0}),c=_i({queryKey:[`observability`,`report`,t,o],queryFn:({signal:n})=>e.observability.report(t,o,n),enabled:o!==void 0});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:rv.controls,children:[(0,T.jsxs)(`label`,{children:[`Window`,` `,(0,T.jsx)(`select`,{value:t,onChange:e=>{let t=Object.values(ud).find(t=>t===e.target.value);t!==void 0&&n(t)},children:Object.values(ud).map(e=>(0,T.jsx)(`option`,{value:e,children:e},e))})]}),(0,T.jsxs)(`label`,{children:[`Report`,` `,(0,T.jsx)(`select`,{value:o??``,onChange:e=>i(e.target.value),disabled:a.isPending,children:a.data?.data.map(({id:e,title:t})=>(0,T.jsx)(`option`,{value:e,children:t},e))})]})]}),a.isPending?(0,T.jsx)(Zg,{label:`Loading reports`}):a.error?(0,T.jsx)($g,{error:a.error,retry:()=>void a.refetch()}):a.data.data.length===0?(0,T.jsx)(Qg,{children:`No reports registered`}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`section`,{"aria-label":`Summary tiles`,children:s.isPending?(0,T.jsx)(Zg,{label:`Loading summary`}):s.error?(0,T.jsx)($g,{error:s.error,retry:()=>void s.refetch()}):(0,T.jsx)(Ere,{data:s.data.data})}),(0,T.jsx)(`section`,{"aria-label":`Selected report`,children:c.isPending?(0,T.jsx)(Zg,{label:`Loading report`}):c.error?(0,T.jsx)($g,{error:c.error,retry:()=>void c.refetch()}):`statistics`in c.data.data?(0,T.jsx)(Ore,{data:c.data.data}):`dimensions`in c.data.data?(0,T.jsx)(Dre,{data:c.data.data}):(0,T.jsx)(cv,{data:c.data.data})})]})]})}function Ere({data:e}){let t=e=>e===null?`No data`:`${(e/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} s`,n=[[`Runs`,e.runs.toLocaleString()],[`Completed`,e.completed.toLocaleString()],[`Blocked or awaiting approval`,e.blockedOrAwaitingApproval.toLocaleString()],[`Failed`,e.failed.toLocaleString()],[`Total tokens`,e.totalTokens.toLocaleString()],[`Total cost (USD)`,`$${e.totalCostUsd.toFixed(4)}`],[`Median run duration`,t(e.medianRunDurationMs)],[`Work items done`,e.workItemsDone.toLocaleString()],[`Median end-to-end duration`,t(e.medianEndToEndDurationMs)]];return(0,T.jsx)(`div`,{className:c_.tiles,children:n.map(([e,t])=>(0,T.jsx)(nv,{label:e,value:t},e))})}function ov(e,t){return t===`USD`?`$`+e.toFixed(4):e.toLocaleString()}var sv=[`#36a269`,`#c58a31`,`#687bd3`,`#d15b65`,`#8b929e`];function cv({data:e}){if(e.series.some(e=>e.unit!==void 0)&&e.series.length>1)return(0,T.jsx)(T.Fragment,{children:e.series.map(t=>(0,T.jsx)(cv,{data:{...e,report:{...e.report,title:t.title},series:[t],buckets:e.buckets.map(e=>({...e,values:{[t.id]:e.values[t.id]??0}}))}},t.id))});let t=Math.max(0,...e.buckets.map(e=>Object.values(e.values).reduce((e,t)=>e+t,0))),n=t||1,r=800/Math.max(1,e.buckets.length);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsx)(`div`,{className:rv.legend,children:e.series.map(({id:t,title:n},r)=>(0,T.jsxs)(`span`,{children:[(0,T.jsx)(`i`,{style:{backgroundColor:sv[r%sv.length]}}),n,`: `,ov(e.totals[t]??0,e.series[r]?.unit)]},t))}),(0,T.jsxs)(`svg`,{className:rv.chart,viewBox:`0 0 800 228`,role:`img`,"aria-label":e.report.title,children:[(0,T.jsxs)(`text`,{x:`0`,y:`12`,children:[ov(t,e.series[0]?.unit),` `,e.series[0]?.unit??`runs`]}),e.buckets.map((t,i)=>{let a=0;return(0,T.jsxs)(`g`,{children:[(0,T.jsxs)(`title`,{children:[t.from,`:`,` `,e.series.map(({id:e,title:n,unit:r})=>`${n} ${ov(t.values[e]??0,r)}`).join(`, `)]}),e.series.map(({id:e},o)=>{let s=(t.values[e]??0)/n*180;return a+=s,(0,T.jsx)(`rect`,{x:i*r+1,y:200-a,width:Math.max(1,r-2),height:s,fill:sv[o%sv.length]},e)}),i%Math.max(1,Math.ceil(e.buckets.length/5))===0&&(0,T.jsx)(`text`,{x:i*r,y:220,children:new Date(t.from).toISOString().slice(5,16).replace(`T`,` `)})]},t.from)}),(0,T.jsx)(`line`,{x1:`0`,y1:200,x2:800,y2:200,stroke:`currentColor`})]}),e.durationRows!==void 0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`p`,{children:`Completion means the first primary workflow completion per work item; child workflows are excluded.`}),(0,T.jsxs)(`p`,{children:[`Duration rows exclude missing, invalid, or inconsistent timestamps (completion before creation). Excluded: `,e.excludedDurationCount??0,`. Completion counts still include these items.`]}),Object.values(e.totals).every(e=>e===0)?(0,T.jsx)(Qg,{children:`No completed work items in this window`}):e.durationRows.length===0?(0,T.jsx)(Qg,{children:`No valid work item durations in this window`}):(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Work item durations`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Work item`}),(0,T.jsx)(`th`,{children:`Created (UTC)`}),(0,T.jsx)(`th`,{children:`Completed (UTC)`}),(0,T.jsx)(`th`,{children:`End-to-end duration`})]})}),(0,T.jsx)(`tbody`,{children:e.durationRows.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsxs)(`th`,{scope:`row`,children:[e.title,` (`,e.id,`)`]}),(0,T.jsx)(`td`,{children:e.createdAt}),(0,T.jsx)(`td`,{children:e.completedAt}),(0,T.jsxs)(`td`,{children:[(e.durationMs/1e3).toLocaleString(),` s`]})]},e.id))})]})})]}),(0,T.jsxs)(`details`,{children:[(0,T.jsx)(`summary`,{children:`Bucket values`}),(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":(e.series[0]?.unit,`${e.report.title} by bucket`),children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Bucket start (UTC)`}),e.series.map(({id:e,title:t})=>(0,T.jsx)(`th`,{children:t},e))]})}),(0,T.jsx)(`tbody`,{children:e.buckets.map(t=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:t.from}),e.series.map(({id:e,unit:n})=>(0,T.jsx)(`td`,{children:ov(t.values[e]??0,n)},e))]},t.from))})]})})]})]})}function Dre({data:e}){let[t,n]=(0,C.useState)(!1),r=(e,n,r)=>t&&n===0?`n/a`:r(t?e/n:e),[i,a]=(0,C.useState)(),o=e.dimensions.find(({id:e})=>e===i)??e.dimensions[0];return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsxs)(`label`,{children:[`Dimension`,` `,(0,T.jsx)(`select`,{value:o?.id??``,onChange:e=>a(e.target.value),children:e.dimensions.map(({id:e,title:t})=>(0,T.jsx)(`option`,{value:e,children:t},e))})]}),(0,T.jsxs)(`label`,{children:[`Metrics`,` `,(0,T.jsxs)(`select`,{value:t?`averages`:`totals`,onChange:e=>n(e.target.value===`averages`),children:[(0,T.jsx)(`option`,{value:`totals`,children:`Totals`}),(0,T.jsx)(`option`,{value:`averages`,children:`Average per run`})]})]}),e.total===0?(0,T.jsx)(Qg,{children:`No runs in this window`}):(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run breakdowns by dimension`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:o?.title}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Share`}),(0,T.jsx)(`th`,{children:t?`Avg tokens / run`:`Tokens`}),(0,T.jsx)(`th`,{children:t?`Avg cost / run (USD)`:`Cost (USD)`}),(0,T.jsx)(`th`,{children:t?`Avg duration / run`:`Duration`})]})}),(0,T.jsx)(`tbody`,{children:o?.rows.map(({value:e,count:t,share:n,tokens:i,costUsd:a,durationMs:o,tokenRuns:s,costRuns:c,durationRuns:l})=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e}),(0,T.jsx)(`td`,{children:t.toLocaleString()}),(0,T.jsxs)(`td`,{children:[(n*100).toLocaleString(void 0,{maximumFractionDigits:1}),`%`]}),(0,T.jsx)(`td`,{children:r(i,s,e=>e.toLocaleString())}),(0,T.jsx)(`td`,{children:r(a,c,e=>`$`+e.toFixed(4))}),(0,T.jsx)(`td`,{children:r(o,l,e=>(e/1e3).toLocaleString(void 0,{maximumFractionDigits:1})+` s`)})]},e))})]})})]})}function Ore({data:e}){let t=e=>e===null?`No data`:`${(e/1e3).toLocaleString(void 0,{maximumFractionDigits:1})} s`;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`h2`,{children:e.report.title}),(0,T.jsxs)(`p`,{children:[e.window.from,` to `,e.window.to,` (UTC)`]}),(0,T.jsx)(`p`,{children:`Unfinished runs and runs without valid start/finish timestamps are excluded. Counts show qualifying runs.`}),(0,T.jsxs)(`p`,{children:[`Median: `,t(e.statistics.medianMs),`; Average: `,t(e.statistics.averageMs)]}),e.statistics.count===0&&(0,T.jsx)(Qg,{children:`No valid run durations in this window`}),e.groups.map(e=>(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run duration by ${e.title}`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:e.title}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Median`}),(0,T.jsx)(`th`,{children:`Average`})]})}),(0,T.jsx)(`tbody`,{children:e.rows.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e.value}),(0,T.jsx)(`td`,{children:e.count}),(0,T.jsx)(`td`,{children:(0,T.jsx)(`strong`,{children:t(e.medianMs)})}),(0,T.jsx)(`td`,{children:t(e.averageMs)})]},e.value))})]})},e.id)),(0,T.jsx)(`div`,{className:rv.table,children:(0,T.jsxs)(`table`,{"aria-label":`Run duration over time`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{children:`Bucket start (UTC)`}),(0,T.jsx)(`th`,{children:`Bucket end (UTC)`}),(0,T.jsx)(`th`,{children:`Run count`}),(0,T.jsx)(`th`,{children:`Median`}),(0,T.jsx)(`th`,{children:`Average`})]})}),(0,T.jsx)(`tbody`,{children:e.buckets.map(e=>(0,T.jsxs)(`tr`,{children:[(0,T.jsx)(`th`,{scope:`row`,children:e.from}),(0,T.jsx)(`td`,{children:e.to}),(0,T.jsx)(`td`,{children:e.count}),(0,T.jsx)(`td`,{children:(0,T.jsx)(`strong`,{children:t(e.medianMs)})}),(0,T.jsx)(`td`,{children:t(e.averageMs)})]},e.from))})]})})]})}function kre(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Are=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jre=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mre={};function Nre(e,t){return((t||Mre).jsx?jre:Are).test(e)}var Pre=/[ \t\n\f\r]/g;function lv(e){return typeof e==`object`?e.type===`text`&&uv(e.value):uv(e)}function uv(e){return e.replace(Pre,``)===``}var dv=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};dv.prototype.normal={},dv.prototype.property={},dv.prototype.space=void 0;function fv(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new dv(n,r,t)}function pv(e){return e.toLowerCase()}var mv=class{constructor(e,t){this.attribute=t,this.property=e}};mv.prototype.attribute=``,mv.prototype.booleanish=!1,mv.prototype.boolean=!1,mv.prototype.commaOrSpaceSeparated=!1,mv.prototype.commaSeparated=!1,mv.prototype.defined=!1,mv.prototype.mustUseProperty=!1,mv.prototype.number=!1,mv.prototype.overloadedBoolean=!1,mv.prototype.property=``,mv.prototype.spaceSeparated=!1,mv.prototype.space=void 0;var hv=s({boolean:()=>gv,booleanish:()=>_v,commaOrSpaceSeparated:()=>O,commaSeparated:()=>xv,number:()=>yv,overloadedBoolean:()=>vv,spaceSeparated:()=>bv}),Fre=0,gv=Sv(),_v=Sv(),vv=Sv(),yv=Sv(),bv=Sv(),xv=Sv(),O=Sv();function Sv(){return 2**++Fre}var Cv=Object.keys(hv),wv=class extends mv{constructor(e,t,n,r){let i=-1;if(super(e,t),Tv(this,`space`,r),typeof n==`number`)for(;++i<Cv.length;){let e=Cv[i];Tv(this,Cv[i],(n&hv[e])===hv[e])}}};wv.prototype.defined=!0;function Tv(e,t,n){n&&(e[t]=n)}function Ev(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new wv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[pv(r)]=r,n[pv(a.attribute)]=r}return new dv(t,n,e.space)}var Ire=Ev({properties:{ariaActiveDescendant:null,ariaAtomic:_v,ariaAutoComplete:null,ariaBusy:_v,ariaChecked:_v,ariaColCount:yv,ariaColIndex:yv,ariaColSpan:yv,ariaControls:bv,ariaCurrent:null,ariaDescribedBy:bv,ariaDetails:null,ariaDisabled:_v,ariaDropEffect:bv,ariaErrorMessage:null,ariaExpanded:_v,ariaFlowTo:bv,ariaGrabbed:_v,ariaHasPopup:null,ariaHidden:_v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:bv,ariaLevel:yv,ariaLive:null,ariaModal:_v,ariaMultiLine:_v,ariaMultiSelectable:_v,ariaOrientation:null,ariaOwns:bv,ariaPlaceholder:null,ariaPosInSet:yv,ariaPressed:_v,ariaReadOnly:_v,ariaRelevant:null,ariaRequired:_v,ariaRoleDescription:bv,ariaRowCount:yv,ariaRowIndex:yv,ariaRowSpan:yv,ariaSelected:_v,ariaSetSize:yv,ariaSort:null,ariaValueMax:yv,ariaValueMin:yv,ariaValueNow:yv,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Lre(e,t){return t in e?e[t]:t}function Dv(e,t){return Lre(e,t.toLowerCase())}var Ov=Ev({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:xv,acceptCharset:bv,accessKey:bv,action:null,allow:null,allowFullScreen:gv,allowPaymentRequest:gv,allowUserMedia:gv,alpha:gv,alt:null,as:null,async:gv,autoCapitalize:null,autoComplete:bv,autoFocus:gv,autoPlay:gv,blocking:bv,capture:null,charSet:null,checked:gv,cite:null,className:bv,closedBy:null,colorSpace:null,cols:yv,colSpan:yv,command:null,commandFor:null,content:null,contentEditable:_v,controls:gv,controlsList:bv,coords:yv|xv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:gv,defer:gv,dir:null,dirName:null,disabled:gv,download:vv,draggable:_v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:gv,formTarget:null,headers:bv,height:yv,hidden:vv,high:yv,href:null,hrefLang:null,htmlFor:bv,httpEquiv:bv,id:null,imageSizes:null,imageSrcSet:null,inert:gv,inputMode:null,integrity:null,is:null,isMap:gv,itemId:null,itemProp:bv,itemRef:bv,itemScope:gv,itemType:bv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:gv,low:yv,manifest:null,max:null,maxLength:yv,media:null,method:null,min:null,minLength:yv,multiple:gv,muted:gv,name:null,nonce:null,noModule:gv,noValidate:gv,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:gv,optimum:yv,pattern:null,ping:bv,placeholder:null,playsInline:gv,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:gv,referrerPolicy:null,rel:bv,required:gv,reversed:gv,rows:yv,rowSpan:yv,sandbox:bv,scope:null,scoped:gv,seamless:gv,selected:gv,shadowRootClonable:gv,shadowRootCustomElementRegistry:gv,shadowRootDelegatesFocus:gv,shadowRootMode:null,shadowRootSerializable:gv,shape:null,size:yv,sizes:null,slot:null,span:yv,spellCheck:_v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yv,step:null,style:null,tabIndex:yv,target:null,title:null,translate:null,type:null,typeMustMatch:gv,useMap:null,value:_v,width:yv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:bv,axis:null,background:null,bgColor:null,border:yv,borderColor:null,bottomMargin:yv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:gv,declare:gv,event:null,face:null,frame:null,frameBorder:null,hSpace:yv,leftMargin:yv,link:null,longDesc:null,lowSrc:null,marginHeight:yv,marginWidth:yv,noResize:gv,noHref:gv,noShade:gv,noWrap:gv,object:null,profile:null,prompt:null,rev:null,rightMargin:yv,rules:null,scheme:null,scrolling:_v,standby:null,summary:null,text:null,topMargin:yv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yv,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:gv,disablePictureInPicture:gv,disableRemotePlayback:gv,exportParts:xv,part:bv,prefix:null,property:null,results:yv,security:null,unselectable:null},space:`html`,transform:Dv}),kv=Ev({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:O,accentHeight:yv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yv,amplitude:yv,arabicForm:null,ascent:yv,attributeName:null,attributeType:null,azimuth:yv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yv,by:null,calcMode:null,capHeight:yv,className:bv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:yv,diffuseConstant:yv,direction:null,display:null,dur:null,divisor:yv,dominantBaseline:null,download:gv,dx:null,dy:null,edgeMode:null,editable:null,elevation:yv,enableBackground:null,end:null,event:null,exponent:yv,externalResourcesRequired:null,fill:null,fillOpacity:yv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xv,g2:xv,glyphName:xv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yv,horizOriginX:yv,horizOriginY:yv,id:null,ideographic:yv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yv,k:yv,k1:yv,k2:yv,k3:yv,k4:yv,kernelMatrix:O,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:yv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:yv,overlineThickness:yv,paintOrder:null,panose1:null,path:null,pathLength:yv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:bv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yv,pointsAtY:yv,pointsAtZ:yv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:O,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:O,rev:O,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:O,requiredFeatures:O,requiredFonts:O,requiredFormats:O,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:yv,specularExponent:yv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yv,strikethroughThickness:yv,string:null,stroke:null,strokeDashArray:O,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yv,strokeOpacity:yv,strokeWidth:null,style:null,surfaceScale:yv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:O,tabIndex:yv,tableValues:null,target:null,targetX:yv,targetY:yv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:O,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yv,underlineThickness:yv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yv,values:null,vAlphabetic:yv,vMathematical:yv,vectorEffect:null,vHanging:yv,vIdeographic:yv,version:null,vertAdvY:yv,vertOriginX:yv,vertOriginY:yv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Lre}),Av=Ev({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),jv=Ev({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Dv}),Mv=Ev({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Nv={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Pv=/[A-Z]/g,Fv=/-[a-z]/g,Iv=/^data[-\w.:]+$/i;function Lv(e,t){let n=pv(t),r=t,i=mv;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Iv.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Fv,Rre);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Fv.test(e)){let n=e.replace(Pv,Rv);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=wv}return new i(r,t)}function Rv(e){return`-`+e.toLowerCase()}function Rre(e){return e.charAt(1).toUpperCase()}var zv=fv([Ire,Ov,Av,jv,Mv],`html`),Bv=fv([Ire,kv,Av,jv,Mv],`svg`);function zre(e){return e.join(` `).trim()}var Bre=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
1177
1177
  `);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Vre=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Bre());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Hre=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Vv=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Vre()),r=Hre();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Hv=Wv(`end`),Uv=Wv(`start`);function Wv(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Gv(e){let t=Uv(e),n=Hv(e);if(t&&n)return{start:t,end:n}}function Kv(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Jv(e.position):`start`in e||`end`in e?Jv(e):`line`in e||`column`in e?qv(e):``}function qv(e){return Yv(e&&e.line)+`:`+Yv(e&&e.column)}function Jv(e){return qv(e&&e.start)+`-`+qv(e&&e.end)}function Yv(e){return e&&typeof e==`number`?e:1}var Xv=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Kv(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Xv.prototype.file=``,Xv.prototype.name=``,Xv.prototype.reason=``,Xv.prototype.message=``,Xv.prototype.stack=``,Xv.prototype.column=void 0,Xv.prototype.line=void 0,Xv.prototype.ancestors=void 0,Xv.prototype.cause=void 0,Xv.prototype.fatal=void 0,Xv.prototype.place=void 0,Xv.prototype.ruleId=void 0,Xv.prototype.source=void 0;var Zv=l(Vv(),1),Qv={}.hasOwnProperty,$v=new Map,Ure=/[A-Z]/g,ey=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Wre=new Set([`td`,`th`]);function Gre(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Qre(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Zre(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Bv:zv,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Kre(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Kre(e,t,n){if(t.type===`element`)return qre(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Jre(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return ty(e,t,n);if(t.type===`mdxjsEsm`)return Yre(e,t);if(t.type===`root`)return k(e,t,n);if(t.type===`text`)return Xre(e,t)}function qre(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Bv,e.schema=i),e.ancestors.push(t);let a=oy(e,t.tagName,!1),o=$re(e,t),s=iy(e,t);return ey.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!lv(e)})),ny(e,o,a,t),ry(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Jre(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}sy(e,t.position)}function Yre(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);sy(e,t.position)}function ty(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Bv,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:oy(e,t.name,!0),o=eie(e,t),s=iy(e,t);return ny(e,o,a,t),ry(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function k(e,t,n){let r={};return ry(r,iy(e,t)),e.create(t,e.Fragment,r,n)}function Xre(e,t){return t.value}function ny(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ry(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Zre(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Qre(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Uv(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function $re(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Qv.call(t.properties,i)){let a=ay(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Wre.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function eie(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else sy(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else sy(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function iy(e,t){let n=[],r=-1,i=e.passKeys?new Map:$v;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Kre(e,a,o);s!==void 0&&n.push(s)}return n}function ay(e,t,n){let r=Lv(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?kre(n):zre(n)),r.property===`style`){let t=typeof n==`object`?n:tie(e,String(n));return e.stylePropertyNameCase===`css`&&(t=cy(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Nv[r.property]||r.property:r.attribute,n]}}function tie(e,t){try{return(0,Zv.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Xv("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function oy(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Nre(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Nre(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Qv.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);sy(e)}function sy(e,t){let n=new Xv("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function cy(e){let t={},n;for(n in e)Qv.call(e,n)&&(t[nie(n)]=e[n]);return t}function nie(e){let t=e.replace(Ure,rie);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function rie(e){return`-`+e.toLowerCase()}var ly={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},iie={};function aie(e,t){let n=t||iie;return oie(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function oie(e,t,n){if(cie(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return sie(e.children,t,n)}return Array.isArray(e)?sie(e,t,n):``}function sie(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=oie(e[i],t,n);return r.join(``)}function cie(e){return!!(e&&typeof e==`object`)}var lie=document.createElement(`i`);function uy(e){let t=`&`+e+`;`;lie.innerHTML=t;let n=lie.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function dy(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function fy(e,t){return e.length>0?(dy(e,e.length,0,t),e):t}var py={}.hasOwnProperty;function my(e){let t={},n=-1;for(;++n<e.length;)hy(t,e[n]);return t}function hy(e,t){let n;for(n in t){let r=(py.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){py.call(r,a)||(r[a]=[]);let e=i[a];gy(r[a],Array.isArray(e)?e:e?[e]:[])}}}function gy(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);dy(e,0,0,r)}function _y(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function vy(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var yy=jy(/[A-Za-z]/),by=jy(/[\dA-Za-z]/),xy=jy(/[#-'*+\--9=?A-Z^-~]/);function Sy(e){return e!==null&&(e<32||e===127)}var Cy=jy(/\d/),wy=jy(/[\dA-Fa-f]/),Ty=jy(/[!-/:-@[-`{-~]/);function Ey(e){return e!==null&&e<-2}function Dy(e){return e!==null&&(e<0||e===32)}function Oy(e){return e===-2||e===-1||e===32}var ky=jy(/\p{P}|\p{S}/u),Ay=jy(/\s/);function jy(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function My(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&by(e.charCodeAt(n+1))&&by(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Ny(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Oy(r)?(e.enter(n),s(r)):t(r)}function s(r){return Oy(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function uie(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Oy(t)?(e.enter(r),c(t)):l(t)}function c(t){return Oy(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var die={tokenize:fie};function fie(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ny(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Ey(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Py=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){Fy(this,e,t,n,!1)}addBefore(e,t,n){Fy(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Fy(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var pie={tokenize:hie},mie={tokenize:gie};function hie(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Py;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(mie,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(mie,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Ey(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Py;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gie(e,t,n){return Ny(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Iy(e){if(e===null||Dy(e)||Ay(e))return 1;if(ky(e))return 2}function Ly(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Ry={name:`attention`,resolveAll:zy,tokenize:_ie};function zy(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};By(o,-a),By(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=fy(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=fy(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=fy(r,Ly(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=fy(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=fy(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),dy(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function _ie(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Iy(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Iy(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function By(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Vy={name:`autolink`,tokenize:vie};function vie(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return yy(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||by(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||by(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Sy(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):xy(t)?(e.consume(t),l):n(t)}function u(e){return by(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||by(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Hy={partial:!0,tokenize:yie};function yie(e,t,n){return r;function r(t){return Oy(t)?Ny(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Ey(e)?t(e):n(e)}}var bie={continuation:{tokenize:Uy},exit:Wy,name:`blockQuote`,tokenize:xie};function xie(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Oy(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Uy(e,t,n){let r=this;return i;function i(t){return Oy(t)?Ny(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(bie,t,n)(r)}}function Wy(e){e.exit(`blockQuote`)}var Gy={name:`characterEscape`,tokenize:Ky};function Ky(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ty(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var qy={name:`characterReference`,tokenize:Sie};function Sie(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=by,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=wy,u):(e.enter(`characterReferenceValue`),a=7,o=Cy,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===by&&!uy(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Jy={partial:!0,tokenize:Cie};function Cie(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var wie={concrete:!0,name:`codeFenced`,tokenize:Tie};function Tie(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Oy(t)?Ny(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Ey(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Jy,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Ey(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Oy(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Ny(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Ey(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Ey(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Oy(t)?Ny(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Ey(t)?e.check(Jy,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Ey(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Oy(t)?Ny(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Oy(t)?Ny(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Ey(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Yy={name:`codeIndented`,tokenize:Xy},Eie={partial:!0,tokenize:Zy};function Xy(e,t,n){return r;function r(t){return e.enter(`codeIndented`),uie(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Ey(t)?e.attempt(Eie,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Ey(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function Zy(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Ey(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):uie(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Ey(e)?i(e):n(e)}}var Qy={name:`codeText`,previous:Oie,resolve:Die,tokenize:kie};function Die(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Oie(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function kie(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Ey(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Ey(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Aie=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&$y(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),$y(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),$y(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);$y(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);$y(this.left,t.reverse())}}};function $y(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eb(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Aie(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,jie(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return dy(e,0,1/0,u.slice(0)),!l}function jie(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var tb={resolve:Nie,tokenize:Pie},Mie={partial:!0,tokenize:nb};function Nie(e){return eb(e),e}function Pie(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Ey(t)?e.check(Mie,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function nb(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ny(e,a,`linePrefix`)}function a(i){if(i===null||Ey(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Fie(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Sy(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Ey(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Dy(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Sy(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Iie(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Ey(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Ey(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Oy(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Lie(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Ey(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ny(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Ey(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function rb(e,t){let n;return r;function r(i){return Ey(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Oy(i)?Ny(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Rie={name:`definition`,tokenize:ib},zie={partial:!0,tokenize:Bie};function ib(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Iie.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=vy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Dy(t)?rb(e,l)(t):l(t)}function l(t){return Fie(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(zie,d,d)(t)}function d(t){return Oy(t)?Ny(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Ey(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Bie(e,t,n){return r;function r(t){return Dy(t)?rb(e,i)(t):n(t)}function i(t){return Lie(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Oy(t)?Ny(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Ey(e)?t(e):n(e)}}var Vie={name:`hardBreakEscape`,tokenize:Hie};function Hie(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Ey(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Uie={name:`headingAtx`,resolve:Wie,tokenize:Gie};function Wie(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};dy(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Gie(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Dy(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Ey(n)?(e.exit(`atxHeading`),t(n)):Oy(n)?Ny(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Dy(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Kie=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),qie=[`pre`,`script`,`style`,`textarea`],Jie={concrete:!0,name:`htmlFlow`,resolveTo:Xie,tokenize:Zie},Yie={partial:!0,tokenize:ab};function Xie(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Zie(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:de):yy(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):yy(a)?(e.consume(a),i=4,r.interrupt?t:de):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:de):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:re:m):n(i)}function h(t){return yy(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Dy(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&qie.includes(l)?(i=1,r.interrupt?t(s):re(s)):Kie.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):re(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||by(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:re):n(i)}function v(t){return Oy(t)?(e.consume(t),v):w(t)}function y(t){return t===47?(e.consume(t),w):t===58||t===95||yy(t)?(e.consume(t),b):Oy(t)?(e.consume(t),y):w(t)}function b(t){return t===45||t===46||t===58||t===95||by(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Oy(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Oy(t)?(e.consume(t),S):ee(t)}function C(t){return t===c?(e.consume(t),c=null,te):t===null||Ey(t)?n(t):(e.consume(t),C)}function ee(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Dy(t)?x(t):(e.consume(t),ee)}function te(e){return e===47||e===62||Oy(e)?y(e):n(e)}function w(t){return t===62?(e.consume(t),ne):n(t)}function ne(t){return t===null||Ey(t)?re(t):Oy(t)?(e.consume(t),ne):n(t)}function re(t){return t===45&&i===2?(e.consume(t),se):t===60&&i===1?(e.consume(t),ce):t===62&&i===4?(e.consume(t),fe):t===63&&i===3?(e.consume(t),de):t===93&&i===5?(e.consume(t),ue):Ey(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Yie,pe,ie)(t)):t===null||Ey(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(t){return e.check(Jy,ae,pe)(t)}function ae(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return t===null||Ey(t)?ie(t):(e.enter(`htmlFlowData`),re(t))}function se(t){return t===45?(e.consume(t),de):re(t)}function ce(t){return t===47?(e.consume(t),o=``,le):re(t)}function le(t){if(t===62){let n=o.toLowerCase();return qie.includes(n)?(e.consume(t),fe):re(t)}return yy(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),le):re(t)}function ue(t){return t===93?(e.consume(t),de):re(t)}function de(t){return t===62?(e.consume(t),fe):t===45&&i===2?(e.consume(t),de):re(t)}function fe(t){return t===null||Ey(t)?(e.exit(`htmlFlowData`),pe(t)):(e.consume(t),fe)}function pe(n){return e.exit(`htmlFlow`),t(n)}}function ab(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Hy,t,n)}}var ob={name:`htmlText`,tokenize:Qie};function Qie(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):yy(t)?(e.consume(t),ee):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):yy(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Ey(t)?(o=d,ce(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?se(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Ey(t)?(o=h,ce(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?se(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?se(t):Ey(t)?(o=v,ce(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Ey(t)?(o=y,ce(t)):(e.consume(t),y)}function b(e){return e===62?se(e):y(e)}function x(t){return yy(t)?(e.consume(t),S):n(t)}function S(t){return t===45||by(t)?(e.consume(t),S):C(t)}function C(t){return Ey(t)?(o=C,ce(t)):Oy(t)?(e.consume(t),C):se(t)}function ee(t){return t===45||by(t)?(e.consume(t),ee):t===47||t===62||Dy(t)?te(t):n(t)}function te(t){return t===47?(e.consume(t),se):t===58||t===95||yy(t)?(e.consume(t),w):Ey(t)?(o=te,ce(t)):Oy(t)?(e.consume(t),te):se(t)}function w(t){return t===45||t===46||t===58||t===95||by(t)?(e.consume(t),w):ne(t)}function ne(t){return t===61?(e.consume(t),re):Ey(t)?(o=ne,ce(t)):Oy(t)?(e.consume(t),ne):te(t)}function re(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ie):Ey(t)?(o=re,ce(t)):Oy(t)?(e.consume(t),re):(e.consume(t),ae)}function ie(t){return t===i?(e.consume(t),i=void 0,oe):t===null?n(t):Ey(t)?(o=ie,ce(t)):(e.consume(t),ie)}function ae(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Dy(t)?te(t):(e.consume(t),ae)}function oe(e){return e===47||e===62||Dy(e)?te(e):n(e)}function se(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ce(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),le}function le(t){return Oy(t)?Ny(e,ue,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ue(t)}function ue(t){return e.enter(`htmlTextData`),o(t)}}var sb={name:`labelEnd`,resolveAll:nae,resolveTo:rae,tokenize:iae},$ie={tokenize:aae},eae={tokenize:oae},tae={tokenize:sae};function nae(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&dy(e,0,e.length,n),e}function rae(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=fy(o,e.slice(i+1,i+r+3)),o=fy(o,[[`enter`,l,t]]),o=fy(o,Ly(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=fy(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=fy(o,e.slice(a+1)),o=fy(o,[[`exit`,s,t]]),dy(e,i,e.length,o),e}function iae(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(vy(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt($ie,u,o?u:d)(t):t===91?e.attempt(eae,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(tae,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function aae(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Dy(t)?rb(e,a)(t):a(t)}function a(t){return t===41?u(t):Fie(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Dy(t)?rb(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Lie(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Dy(t)?rb(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function oae(e,t,n){let r=this;return i;function i(t){return Iie.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(vy(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function sae(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var cb={name:`labelStartImage`,resolveAll:sb.resolveAll,tokenize:cae};function cae(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var lb={name:`labelStartLink`,resolveAll:sb.resolveAll,tokenize:ub};function ub(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var db={name:`lineEnding`,tokenize:lae};function lae(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ny(e,t,`linePrefix`)}}var fb={name:`thematicBreak`,tokenize:uae};function uae(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Ey(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Oy(t)?Ny(e,s,`whitespace`)(t):s(t))}}var pb={continuation:{tokenize:fae},exit:mae,name:`list`,tokenize:dae},mb={partial:!0,tokenize:hae},hb={partial:!0,tokenize:pae};function dae(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Cy(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(fb,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Cy(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Hy,r.interrupt?n:u,e.attempt(mb,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Oy(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function fae(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Hy,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ny(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Oy(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hb,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ny(e,e.attempt(pb,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function pae(e,t,n){let r=this;return Ny(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function mae(e){e.exit(this.containerState.type)}function hae(e,t,n){let r=this;return Ny(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Oy(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var gae={name:`setextUnderline`,resolveTo:_ae,tokenize:vae};function _ae(e,t){let n=new Py,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function vae(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Oy(t)?Ny(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Ey(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var yae={tokenize:gb};function gb(e){let t=this,n=e.attempt(Hy,r,e.attempt(this.parser.constructs.flowInitial,i,Ny(e,e.attempt(this.parser.constructs.flow,i,e.attempt(tb,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var _b={resolveAll:vb()},bae=Sae(`string`),xae=Sae(`text`);function Sae(e){return{resolveAll:vb(e===`text`?yb:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function vb(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function yb(e,t){let n=new Py,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Cae=s({attentionMarkers:()=>Cb,contentInitial:()=>Tae,disable:()=>wb,document:()=>wae,flow:()=>Dae,flowInitial:()=>Eae,insideSpan:()=>Sb,string:()=>bb,text:()=>xb}),wae={42:pb,43:pb,45:pb,48:pb,49:pb,50:pb,51:pb,52:pb,53:pb,54:pb,55:pb,56:pb,57:pb,62:bie},Tae={91:Rie},Eae={[-2]:Yy,[-1]:Yy,32:Yy},Dae={35:Uie,42:fb,45:[gae,fb],60:Jie,61:gae,95:fb,96:wie,126:wie},bb={38:qy,92:Gy},xb={[-5]:db,[-4]:db,[-3]:db,33:cb,38:qy,42:Ry,60:[Vy,ob],91:lb,92:[Vie,Gy],93:sb,95:Ry,96:Qy},Sb={null:[Ry,_b]},Cb={null:[42,95]},wb={null:[]};function Tb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=fy(o,e),g(),o[o.length-1]===null?(ee(t,0),l.events=Ly(a,l.events,l),l.events):[]}function f(e,t){return Db(p(e),t)}function p(e){return Eb(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,w()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Ey(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,w()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){ee(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=te(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function ee(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&dy(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function te(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Eb(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Db(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
1178
1178
  `;break;case-3:o=`\r
1179
1179
  `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Ob(e){let t={constructs:my([Cae,...(e||{}).extensions||[]]),content:n(die),defined:[],document:n(pie),flow:n(yae),lazy:{},string:n(bae),text:n(xae)};return t;function n(e){return n;function n(n){return Tb(t,e,n)}}}function kb(e){for(;!eb(e););return e}var Oae=/[\0\t\n\r]/g;function kae(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Oae.lastIndex=c;let n=Oae.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Ab=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Aae(e){return e.replace(Ab,jae)}function jae(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return _y(n.slice(t?2:1),t?16:10)}return uy(n)||e}var jb={}.hasOwnProperty;function Mb(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Mae(n)(kb(Ob(n).document().write(kae()(e,t,!0))))}function Mae(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(je),autolinkProtocol:w,autolinkEmail:w,atxHeading:o(De),blockQuote:o(Se),characterEscape:w,characterReference:w,codeFenced:o(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ce,s),codeText:o(we,s),codeTextData:w,data:w,codeFlowValue:w,definition:o(Te),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ee),hardBreakEscape:o(Oe),hardBreakTrailing:o(Oe),htmlFlow:o(ke,s),htmlFlowData:w,htmlText:o(ke,s),htmlTextData:w,image:o(Ae),label:s,link:o(je),listItem:o(Ne),listItemValue:p,listOrdered:o(Me,f),listUnordered:o(Me),paragraph:o(Pe),reference:he,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(De),strong:o(Fe),thematicBreak:o(Le)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:xe,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:ne,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:ve,characterReference:ye,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:ne,codeIndented:l(v),codeText:l(se),codeTextData:ne,data:ne,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ie),hardBreakTrailing:l(ie),htmlFlow:l(ae),htmlFlowData:ne,htmlText:l(oe),htmlTextData:ne,image:l(le),label:de,labelText:ue,lineEnding:re,link:l(ce),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ge,resourceDestinationString:fe,resourceTitleString:pe,resource:me,setextHeading:l(te),setextHeadingLineSequence:ee,setextHeadingText:C,strong:l(),thematicBreak:l()}};Pb(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),jb.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Nae).call(o,void 0,e[0])}for(r.position={start:Nb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Nb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Nb(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+Kv({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Nae).call(this,e,r[0])),n.position.end=Nb(e.end)}function d(){return aie(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vy(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function ee(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function w(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ie(),n.position={start:Nb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function ne(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Nb(e.end)}function re(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Nb(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(w.call(this,e),ne.call(this,e))}function ie(){this.data.atHardBreak=!0}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function se(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ce(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function le(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ue(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Aae(t),n.identifier=vy(t).toLowerCase()}function de(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function fe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function pe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function me(){this.data.inReference=void 0}function he(){this.data.referenceType=`collapsed`}function ge(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=vy(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function _e(e){this.data.characterReferenceType=e.type}function ve(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=_y(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=uy(t);let i=this.stack[this.stack.length-1];i.value+=r}function ye(e){let t=this.stack.pop();t.position.end=Nb(e.end)}function be(e){ne.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function xe(e){ne.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function Se(){return{type:`blockquote`,children:[],position:void 0}}function Ce(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function we(){return{type:`inlineCode`,value:``,position:void 0}}function Te(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function Ee(){return{type:`emphasis`,children:[],position:void 0}}function De(){return{type:`heading`,depth:0,children:[],position:void 0}}function Oe(){return{type:`break`,position:void 0}}function ke(){return{type:`html`,value:``,position:void 0}}function Ae(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function je(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Me(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function Ne(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Pe(){return{type:`paragraph`,children:[],position:void 0}}function Fe(){return{type:`strong`,children:[],position:void 0}}function Ie(){return{type:`text`,value:``,position:void 0}}function Le(){return{type:`thematicBreak`,position:void 0}}}function Nb(e){return{line:e.line,column:e.column,offset:e.offset}}function Pb(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Pb(e,r):Fb(e,r)}}function Fb(e,t){let n;for(n in t)if(jb.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Nae(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Kv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kv({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Kv({start:t.start,end:t.end})+`) is still open`)}function Pae(e){let t=this;t.parser=n;function n(n){return Mb(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Fae(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Iae(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`